At the beginning of the game, add all of the players to a global Player Group variable. When a player's commander dies, remove that player from the Player Group variable. Immediately after removing them, check the number of players in the Player Group variable. If = 1, end game in victory for the remaining player, defeat for the other players.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
At the beginning of the game, add all of the players to a global Player Group variable. When a player's commander dies, remove that player from the Player Group variable. Immediately after removing them, check the number of players in the Player Group variable. If = 1, end game in victory for the remaining player, defeat for the other players.