- Joined
- Mar 5, 2010
- Messages
- 7
Hey,
Ive been racking my mind over this the last two days so any help would be appreciated.
I'm attempting to create a trigger to remove all units in a region owned by player 12 ((brown)Computer) when there are no units in the region owned by players 1-10 (Users) Ive tried any variation of trigger I can think of so I'm rather stumped. There are several different unit types in the region under Player 12's control so I'm not sure a 'remove unit type' would be appropriate in this situation. I have included the main trigger I have been trying with variations below but for simplicity sake only included units owned by Player 1 in the condition:
Unit Despawn
Events
Unit - A unit leaves Unit Spawn Region <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Unit Spawn Region <gen> owned by Player 1 (Red))) Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units in Unit Spawn Region <gen>) and do (Unit - Remove (Picked unit) from the game)
Else - Actions
Thanks in advance!
Ive been racking my mind over this the last two days so any help would be appreciated.
I'm attempting to create a trigger to remove all units in a region owned by player 12 ((brown)Computer) when there are no units in the region owned by players 1-10 (Users) Ive tried any variation of trigger I can think of so I'm rather stumped. There are several different unit types in the region under Player 12's control so I'm not sure a 'remove unit type' would be appropriate in this situation. I have included the main trigger I have been trying with variations below but for simplicity sake only included units owned by Player 1 in the condition:
Unit Despawn
Events
Unit - A unit leaves Unit Spawn Region <gen>
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in (Units in Unit Spawn Region <gen> owned by Player 1 (Red))) Equal to 0
Then - Actions
Unit Group - Pick every unit in (Units in Unit Spawn Region <gen>) and do (Unit - Remove (Picked unit) from the game)
Else - Actions
Thanks in advance!