Your script confuses me a little bit. It's the "not equal" and so on, that messes my mind up, in any language... Inspecting your code now, meanwhile, can you take a look at below? I wonder if it would work with your map or not.
Events
Game - Map initialization
Player - Player Any Player leaves the game with Any
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Active Players)) == 1
Then
Game - End game in Victory for player (Player 1 from (Active Players)) (Show dialogs, Show score screen)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Number of players in (Active Players)) == 2
(Player (Player 1 from (Active Players)) treats player (Player 2 from (Active Players)) as Ally) == true
Then
Game - End game in Victory for player (Player 1 from (Active Players)) (Show dialogs, Show score screen)
Game - End game in Victory for player (Player 2 from (Active Players)) (Show dialogs, Show score screen)
Else
It doesn't matter if I dig up an old topic or not, maybe it'll help some other people, no?
Your script confuses me a little bit. It's the "not equal" and so on, that messes my mind up, in any language... Inspecting your code now, meanwhile, can you take a look at below? I wonder if it would work with your map or not.
Events
Game - Map initialization
Player - Player Any Player leaves the game with Any
Local Variables
Conditions
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Number of players in (Active Players)) == 1
Then
Game - End game in Victory for player (Player 1 from (Active Players)) (Show dialogs, Show score screen)
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
And
Conditions
(Number of players in (Active Players)) == 2
(Player (Player 1 from (Active Players)) treats player (Player 2 from (Active Players)) as Ally) == true
Then
Game - End game in Victory for player (Player 1 from (Active Players)) (Show dialogs, Show score screen)
Game - End game in Victory for player (Player 2 from (Active Players)) (Show dialogs, Show score screen)
Else