Code:
Setup
Events
Time - Elapsed game time is 15.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Footmen Frenzy TS v...
Set Leaderboard = (Last created leaderboard)
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Leaderboard - Add Player 1 (Red) to Leaderboard with label (Name of Player 1 (Red)) and value 0) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Leaderboard - Add Player 2 (Blue) to Leaderboard with label (Name of Player 2 (Blue)) and value 0) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Leaderboard - Add Player 3 (Teal) to Leaderboard with label (Name of Player 3 (Teal)) and value 0) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Leaderboard - Add Player 4 (Purple) to Leaderboard with label (Name of Player 4 (Purple)) and value 0) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Leaderboard - Add Player 5 (Yellow) to Leaderboard with label (Name of Player 5 (Yellow)) and value 0) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Leaderboard - Add Player 6 (Orange) to Leaderboard with label (Name of Player 6 (Orange)) and value 0) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Is playing) then do (Leaderboard - Add Player 7 (Green) to Leaderboard with label (Name of Player 7 (Green)) and value 0) else do (Do nothing)
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Leaderboard - Add Player 8 (Pink) to Leaderboard with label (Name of Player 8 (Pink)) and value 0) else do (Do nothing)
If ((Player 9 (Gray) slot status) Equal to Is playing) then do (Leaderboard - Add Player 9 (Gray) to Leaderboard with label (Name of Player 9 (Gray)) and value 0) else do (Do nothing)
If ((Player 10 (Light Blue) slot status) Equal to Is playing) then do (Leaderboard - Add Player 10 (Light Blue) to Leaderboard with label (Name of Player 10 (Light Blue)) and value 0) else do (Do nothing)
If ((Player 11 (Dark Green) slot status) Equal to Is playing) then do (Leaderboard - Add Player 11 (Dark Green) to Leaderboard with label (Name of Player 11 (Dark Green)) and value 0) else do (Do nothing)
If ((Player 12 (Brown) slot status) Equal to Is playing) then do (Leaderboard - Add Player 12 (Brown) to Leaderboard with label (Name of Player 12 (Brown)) and value 0) else do (Do nothing)
Leaderboard - Show Leaderboard
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player 1 (Red) slot status) Equal to Has left the game
(Player 2 (Blue) slot status) Equal to Has left the game
(Player 3 (Teal) slot status) Equal to Has left the game
(Player 4 (Purple) slot status) Equal to Has left the game
(Player 5 (Yellow) slot status) Equal to Has left the game
(Player 6 (Orange) slot status) Equal to Has left the game
(Player 7 (Green) slot status) Equal to Has left the game
(Player 8 (Pink) slot status) Equal to Has left the game
(Player 9 (Gray) slot status) Equal to Has left the game
(Player 10 (Light Blue) slot status) Equal to Has left the game
(Player 11 (Dark Green) slot status) Equal to Has left the game
(Player 12 (Brown) slot status) Equal to Has left the game
Then - Actions
Leaderboard - Remove (Triggering player) from (Last created leaderboard)
Else - Actions
Code:
Tally Kills
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
((Triggering unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
Actions
Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Leaderboard - Change the value for (Owner of (Killing unit)) in Leaderboard to Kills[(Player number of (Owner of (Killing unit)))]
i took this from a template, but i wonder how to change the players name to "has left the game" when a player leaves the game ... my code is correct? and if it is a leader board, why the most killer's name stay at the same spot instead of going to the top of all player's names ... what could be the exact code for this?