| 07-23-2003, 04:51 AM | #1 |
ok im having trouble moving units to the middle of the map i have a dialog saying attack middle when i click it nothing sends. but for that button i have a tigger say send tiggering units to attack middle or region. i dont get it can some 1 help me. |
| 07-23-2003, 06:05 AM | #2 |
The units themselves aren't triggering the trigger. Try a unit group. |
| 07-23-2003, 06:17 AM | #3 |
post ur map and il see what i can do... |
| 07-23-2003, 06:37 AM | #4 |
arg i dont wanan do that cant u just tell me wut ur thinking of doing |
| 07-23-2003, 07:45 AM | #5 |
Maybe this works? Code:
Events -A dialog button is clicked Conditions (none) Actions -Pick every unit in (playable map area) owned by player 1 (red) and do Order (picked Unit) to Attack-move to (center of Playable map area) |
| 07-23-2003, 10:56 AM | #6 |
Guest | condition: clicked dialogbutton equal to X ^^ |
| 07-23-2003, 12:37 PM | #7 |
umm that still didnt work do i hvae to make a tigger for the valve |
| 07-23-2003, 04:32 PM | #8 |
Just post ur map..or make a map with nothing in it except the trigger this way its way easier for us |
| 07-23-2003, 05:26 PM | #9 |
yeah really, its hard to figure out ur problem without the actual problem in the map...u really havnt explained what ur problem is u just said u cant make em go to middle. |
| 07-23-2003, 06:06 PM | #10 |
I got a question. How the Hell do you test which dialog button has been clicked? If you use the condition "Dialogu button equal to" you have to have a dialog button saved as a variable. But if you have a dialog button variable, there is no way to put the variable into your dialog! Argh! |
| 07-23-2003, 07:29 PM | #11 |
ok i got the dialog and the moving to the middle but it doesnt move all my units. plus it moves all the units in the map from every player. this mite be the reason y it aitn workering. do i have to make a dialog for every player.(like a different dialog for everyplayer) |
| 07-24-2003, 02:16 AM | #12 |
god just post the map if u want help... |
| 07-24-2003, 03:43 AM | #13 |
Ok here is what you should do... Go to variables. Click Add Variable. Check Array. Name the Variable MoveTo. Leave size (if you have TFT) alone. Make the variable a Dialog. You should now have a dialog array! Good, now go to add variable again. Name this one Buttons1. Check Array. Leave size alone. Change to Dialog Button. (Create a Dialog Button Array for every button that will be on your dialog) Now, the actions that create the dialog and the right buttons are: Dialog - Clear MoveTo[Player Number of Triggering Player]. Dialog - Change the Title of MoveTo[Player Number of Triggering Player] to Attack at Dialog - Create a Dialog Button labeled Center for MoveTo[Player Number of Triggering Player] Set Buttons1[Player Number of Triggering Player] to Last Created Dialog. (keep doing the last 2 actions for every button you created) There! We arent done yet, though. Now make a new trigger. Event: A Dialog Button is Clicked for MoveTo[1] (or in other words, player 1 clicks a button on his dialog) Condition: None Actions: If(Clicked Dialog Button = Buttons[1]) then do Whatever else do nothing. And the whatever is: Unit Group - Pick Every Player in Playable Map Area owned by Player 1 and do Unit - Order Picked Unit to move to center of playable map area. And don't be afraid to take your time, i had to go over Republicola's Exporter Tutorial 5 times before I got it (I'm not slow, I screwed up in the animation section and gave up) ENJOY! and pm me if you somehow do not understand. |
| 07-24-2003, 03:23 PM | #14 |
ok i have some shit like that but i only want the units to attack the middle but when i do it. it only sends like 3 units. here is my tigger wut i have Events Dialog - A dialog button is clicked for Player01 Actions If ((Clicked dialog button) Equal to player01[0]) then do (Unit Group - Order (Units owned by Player 1 (Red)) to Attack-Move To (Center of Region 003 <gen>)) else do (Do nothing) |
| 07-24-2003, 03:33 PM | #15 |
do u think that would work or i need to change something |
