if (PlayerKill[0] > PlayerKill[1] ) then //If Player 1's kills is greater than Player 2's.
//Player 1 wins the game.
else
//Player 2 wins the game.
endif
I did everything else thanks, but i am stuck at the "If (All Conditions are True)" part at the WIN section.
Can you explain the detail of your problem at that part?
Which action? You can simply press a key to let you go into the action that starts with that letter you press.
Example you press 'P', then it lead you into the 'Player' section.
It worked! Thanks!
- Try setting (Owner of <unit>) into (Owner of (Dying Unit) ).
- Try removing the conditions at the Main Condition. You don't need it since the event only looks for 2 units when it destroyed.
- Try changing the conditions at the If/Else statement into this.
If - Conditions
(Owner of (Dying Unit)) is Equal to Player 1
Then - Actions
Game - Victory Player 2 (Blue) (Show dialogs, Show scores)
Game - Defeat Player 1 (Red) with the message: Defeat!
Else - Actions
Game - Victory Player 1 (Red) (Show dialogs, Show scores)
Game - Defeat Player 2 (Blue) with the message: Defeat!