Okay... does each player only have and control 1 unit?
Make an Integer variable "Player's Team," with an array size of the # of players possible in the game.
Make another Integer variable "Team # Of Units," with an array size of the number of teams in the game.
When the game starts set Player's Team[a] = The team number that player "a" belongs to, for each player in the game.
Set Team # Of Units[b] = The number of players in each team.
Add all players in team 1 to Player Group Team 1
Add all players in team 2 to Player Group Team 2
Event: Unit dies
Conditions: Whatever
Actions:
Modify Variable: Team # Of Units[Player's Team[Owner of Triggering Unit]] -1
If Then Else-If
If Team # Of Units[1] = 0
Action: Set Victory for players in Player Group Team 2
and Defeat for players in Player Group Team 1
Else If Team # Of Units[2] = 0
Action: Set Victory for players in Player Group Team 1
and Defeat for players in Player Group Team 2
This should give you a good idea.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@TGCID281: Go
Okay... does each player only have and control 1 unit?
Make an Integer variable "Player's Team," with an array size of the # of players possible in the game. Make another Integer variable "Team # Of Units," with an array size of the number of teams in the game.
When the game starts set Player's Team[a] = The team number that player "a" belongs to, for each player in the game. Set Team # Of Units[b] = The number of players in each team. Add all players in team 1 to Player Group Team 1 Add all players in team 2 to Player Group Team 2
Event: Unit dies Conditions: Whatever Actions: Modify Variable: Team # Of Units[Player's Team[Owner of Triggering Unit]] -1
If Then Else-If If Team # Of Units[1] = 0 Action: Set Victory for players in Player Group Team 2 and Defeat for players in Player Group Team 1
Else If Team # Of Units[2] = 0 Action: Set Victory for players in Player Group Team 1 and Defeat for players in Player Group Team 2
This should give you a good idea.