- Joined
- Dec 27, 2012
- Messages
- 36
Im trying to make an arena for my map, the problem is i dont know how should i make the trigger when only 1 unit(hero) is left in the arena to be automatically moved to its town...i managed to make a trigger when all players are in the arena..but im still not sure how should i make it for 1v1.
-
Arena Done
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Player Group - Add Player 1 (Red) to Human
- Player Group - Add Player 2 (Blue) to Human
- Player Group - Add Player 3 (Teal) to Human
-
Player Group - Pick every player in Human and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Number of units in (Units in Region 025 <gen> owned by Player 1 (Red))) Equal to 0
- (Number of units in (Units in Region 025 <gen> owned by Player 2 (Blue))) Equal to 0
- (Number of units in (Units in Region 025 <gen> owned by Player 3 (Teal))) Equal to 0
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Player Group - Add Player 4 (Purple) to Undead
- Player Group - Add Player 5 (Yellow) to Undead
- Player Group - Add Player 6 (Orange) to Undead
-
Player Group - Pick every player in Undead and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in Region 025 <gen> owned by (Picked player)) and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Undead Spawn <gen>)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in Region 025 <gen> owned by (Picked player)) and do (Actions)
-
Loop - Actions
-
Else - Actions
-
Player Group - Pick every player in Undead and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Number of units in (Units in Region 025 <gen> owned by Player 4 (Purple))) Equal to 0
- (Number of units in (Units in Region 025 <gen> owned by Player 5 (Yellow))) Equal to 0
- (Number of units in (Units in Region 025 <gen> owned by Player 6 (Orange))) Equal to 0
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
-
Player Group - Pick every player in Human and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in Region 025 <gen> owned by (Picked player)) and do (Actions)
-
Loop - Actions
- Unit - Move (Picked unit) instantly to (Center of Alliance Spawn <gen>)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in Region 025 <gen> owned by (Picked player)) and do (Actions)
-
Loop - Actions
-
Player Group - Pick every player in Human and do (Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Player Group - Pick every player in Undead and do (Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events