This is sort of a 'wait for condition' trigger, but without a 'wait for condition' action, basically because I have to do a 'unit group - pick every unit and do action' thing for the condition. So I want the bolded area to loop, and I've tried but failed. So what I want is, either a way to make a 'wait for condition' AND to make the 'unit group - pick every unit and do action', OR an action to make the bolded area (the 'then' actions) to loop. And don't know how to do neither.
It feels like the solution is very obvious...>.> This is the last question of a big thing I'm doing.
It has to loop until the condition is true.
It feels like the solution is very obvious...>.> This is the last question of a big thing I'm doing.
Code:
Events
Time - Every 2.00 seconds of game time
Actions
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units within 600.00 of (Position of (Picked unit)) matching ((Owner of (Matching unit)) Equal to Player 11 (Dark Green)))) Equal to 0
Then - Actions
[b]Skip remaining actions
Trigger - Reset (This trigger) [/b]
Else - Actions
Game - Display to (All players) the text: yo
Game - Display to (All players) the text: hej
Trigger - Turn off (This trigger)