- Joined
- May 31, 2013
- Messages
- 19
Hello. I got this problem...
i Made this trigger but the problem is that i want an action to be performed only ONCE not once every picked unit. as a result of this trigger depending on how many units are picked that amount of messages and damages are done. To be clear - i want that if supply used by picked units is higher than supply limit then do damage(ONCE) to all living units and show message (ONCE).
i Made this trigger but the problem is that i want an action to be performed only ONCE not once every picked unit. as a result of this trigger depending on how many units are picked that amount of messages and damages are done. To be clear - i want that if supply used by picked units is higher than supply limit then do damage(ONCE) to all living units and show message (ONCE).
-
Events
- Time - Every 10.00 seconds of game time
- Conditions
-
Actions
-
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
-
Actions -
-
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
-
Actions -
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Number of units in (Units owned by (Picked player) matching ((Supply used by (Picked unit)) Higher Than (>) 0))) Higher Than (>) ((Picked player) Food Limit)
-
Then - Actions
- Game - Display to (Player group((Picked player))) for 20.00 seconds the text: |cffff0000Food Shor...
-
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
-
Actions -
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditionsi
- ((Picked unit) is Building) Equal to (==) NO
-
Then - Actions
- Unit - Cause Stone Wall (V) 0746 <gen> to damage circular area after 0.00 seconds of radius 5.00 at (Position of (Picked unit)), dealing 10.00 damage of attack type Magic and damage type Normal
- Else - Actions
-
If - Conditionsi
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Actions -
- Else - Actions
-
If - Conditions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Actions -
-
Unit Group - Pick every unit in (Units owned by (Picked player)) and do (Actions)
-
Actions -
-
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
Last edited: