Why doesn't following work? Oo
Trigger:
- Leaderboard Create
- Events
- Time - Elapsed game time is 1.00 seconds
- Conditions
- Actions
- Leaderboard - Create a leaderboard for (All players) titled Kills
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) controller) Equal to User
- Then - Actions
- Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
- Leaderboard - Show (Last created leaderboard)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Events
Trigger:
- Leaderboard Score
- Events
- Unit - A unit Dies
- Conditions
- (Dying unit) Not equal to (Killing unit)
- ((Dying unit) is A Hero) Equal to True
- ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
- Actions
- Set Kill[(Player number of (Owner of (Killing unit)))] = Kill[((Player number of (Owner of (Killing unit))) + 1)]
- Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Kill[(Player number of (Owner of (Killing unit)))]
- Leaderboard - Sort (Last created leaderboard) by Value in Descending order
- Events