| 08-21-2002, 03:38 PM | #1 |
Guest | Hey... How would I go about making a trigger with: Conditions: user controlled players contain no Unit X's in region X Actions: explode ALL units in region X (and i only want this done once) thanx :) Apoc - A dumbshit:D |
| 08-22-2002, 06:25 AM | #2 |
Or... Event-Unit leaves region Condition-number of units in region matching condition(MatchingUnit controlled by user) )==0 Action-Pick every unit in region and do explode picked unit |
| 08-22-2002, 04:29 PM | #3 |
Guest | Which may fail because the leaving unit is not necessarily out of the region yet. |
| 08-22-2002, 05:27 PM | #4 | |
Quote:
Even easier, Event: - Periodic every 1 Second... Condition: - User controlled players contain no Unit X's in region X Action: - Pick every Unit in Region X and explode picked unit - Turn off this trigger. |
| 08-22-2002, 05:55 PM | #5 |
Guest | Conditions: -> variable DONE is equal false user controlled players contain no Unit X's in region X Actions: explode ALL units in region X (and i only want this done once) -> Set variable DONE to true But don't forgett to create a new variable DONE !!! type: boolean starting value: false Boolean value is only true or false. :D |
| 08-22-2002, 08:33 PM | #6 |
Guest | you dont need a variable? try the "turn off this trigger" action o_O and if the unit leaving isnt exactly left yet, make it == 1 .. this is a 1 trigger problem that requires no variables.. |
| 08-22-2002, 09:14 PM | #7 |
Okay golden, add in one more line there...if (picked unit controller == computer) then explode picked unit, else do nothing |
