I've been working on this trigger for awhile and have been able to come up with some so-so solutions that really don't create the results I'm looking for. :banghead: Anyways, I am trying to make a trigger so for a unit that is moving along a set path and when it comes in range of enemy units, it stops, waits until they are dead, then moves again to a set location.
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 4 (Purple)) and (((Matching unit) is A structure) Equal to False))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in (Units within 800.00 of (Position of Wagon 0007 <gen>))) Equal to True
Then - Actions
Unit - Order Wagon 0007 <gen> to Stop
Else - Actions
Unit - Order Wagon 0007 <gen> to Move To (Center of Region 017 <gen>)
The wagon doesn't move at all, no matter whether the condition is true or false and I need help on what to do at this point or even if my trigger is completely off base.
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Player 4 (Purple)) and (((Matching unit) is A structure) Equal to False))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in (Units within 800.00 of (Position of Wagon 0007 <gen>))) Equal to True
Then - Actions
Unit - Order Wagon 0007 <gen> to Stop
Else - Actions
Unit - Order Wagon 0007 <gen> to Move To (Center of Region 017 <gen>)
The wagon doesn't move at all, no matter whether the condition is true or false and I need help on what to do at this point or even if my trigger is completely off base.