I finished making this trigger and it removes all the units of the player if no one is in that slot. But there is a barracks of the players color controlled by Red that also has to be removed. (To avoid abuse of the game) Is there an easy way I can do this without making 50,000,000 triggers?
-
Untitled Trigger 001
-

Events
-

Conditions
-

Actions
-


Set PlayersPlaying[1] = Player 3 (Teal)
-


Set PlayersPlaying[2] = Player 4 (Purple)
-


Set PlayersPlaying[3] = Player 5 (Yellow)
-


Set PlayersPlaying[4] = Player 6 (Orange)
-


Set PlayersPlaying[5] = Player 7 (Green)
-


Set PlayersPlaying[6] = Player 8 (Pink)
-


Set PlayersPlaying[7] = Player 9 (Gray)
-


Set PlayersPlaying[8] = Player 10 (Light Blue)
-


Set PlayersPlaying[9] = Player 11 (Dark Green)
-


Set PlayersPlaying[10] = Player 12 (Brown)
-


For each (Integer A) from 1 to 10, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(PlayersPlaying[(Integer A)] slot status) Equal to Is playing
-
-





Then - Actions
-






Do nothing
-
-





Else - Actions
-






Game - Defeat PlayersPlaying[(Integer A)] with the message: Defeat!
-
-
-
-
-
-









