Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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
Bounty

Events


Map initialization

Conditions

Actions


Player - Turn Gives bounty On for Player 1 (Red)


Player - Turn Gives bounty On for Player 2 (Blue)


Player - Turn Gives bounty On for Player 3 (Teal)


Player - Turn Gives bounty On for Player 4 (Purple)


Player - Turn Gives bounty On for Player 5 (Yellow)


Player - Turn Gives bounty On for Player 6 (Orange)


Player - Turn Gives bounty On for Player 7 (Green)


Player - Turn Gives bounty On for Player 8 (Pink)


Player - Turn Gives bounty On for Player 9 (Gray)


Player - Turn Gives bounty On for Player 10 (Light Blue)


Player - Turn Gives bounty On for Player 11 (Dark Green)


Player - Turn Gives bounty On for Player 12 (Brown)
Win

Events


Unit - A unit Dies

Conditions


(Unit-type of (Triggering unit)) Equal to Castle

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




(Owner of (Triggering unit)) Equal to Player 1 (Red)



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!
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.
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!
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!
