twisterghost
New Member
- Reaction score
- 3
Background info: There is an array variable called forces with 2 slots (0,1)
Players 2-6 are in 0, and 8-12 are in 1. This trigger is supposed to detect when the variable LLives is 0 and remove the heroes for the 0 group, then make the remaining players enemies so they can attack each other. The Heroes variable stores all the heroes as units with the owning player number as the index. Will this work?
Players 2-6 are in 0, and 8-12 are in 1. This trigger is supposed to detect when the variable LLives is 0 and remove the heroes for the 0 group, then make the remaining players enemies so they can attack each other. The Heroes variable stores all the heroes as units with the owning player number as the index. Will this work?
Code:
Convert to single1
Events
Time - Every 1.00 seconds of game time
Conditions
LLives Equal to 0
Actions
Player Group - Pick every player in Forces[0] and do (Actions)
Loop - Actions
Unit - Remove Heroes[(Player number of (Picked player))] from the game
Player Group - Remove all players from Forces[1]
Player Group - Make (All players) treat (All players) as an Enemy
Trigger - Turn off (This trigger)