New block needed in rules editor
We need a new block to be added to the rules editor to allow the game to determine a “win” based on player numbers in a team.
Currently, the game will only calculate a win based on score.
We need a block that enables the game to determine a “win” if a team no longer has any players in it (i.e if all players in a team have been killed then that team loses).
Create Rule: Ongoing/Global
If(Equals) (CountOf)(FilteredArray(GetPlayers)AND(GetPlayerState) (CurrentArrayElement) (Is Alive) AND(GeatTeamId(CurrentArrayElement)(GeatTeamId( 1 )( 0 )
Then EndGame(GeatTeamId2)Else if (Equals) (CountOf)(FilteredArray(GetPlayers)AND(GetPlayerState) (CurrentArrayElement) (IsAlive) AND(GeatTeamId(CurrentArrayElement)(GeatTeamId( 2 )( 0 )
Then endgame(GeatTeamId)( 1 )