Hi.
I've created a lederboard and tested it out. When you kill the first enemy the leaderboard Kills go from 0 to 109. Then if you kill anoter one from 109-110 so that works. How to fix?
The trigger for creating is :
thx in advance.
+Rep if solved.
I've created a lederboard and tested it out. When you kill the first enemy the leaderboard Kills go from 0 to 109. Then if you kill anoter one from 109-110 so that works. How to fix?
The trigger for creating is :
-
Event : Time - Elapsed game time is 5.00 seconds.
-
Conditions : None
-
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)
-
((Picked player) slot status) equal to is playing
-
((Picked player) controler) equal to user
-
Then - Actions
-
Leaderboard - Add (picked player) to (last created leaderboard) with label (name of (Picker player)) and value 0
-
-
Else - Actions
-
Do nothing
-
-
-
-
Event : Unit - A unit Dies
-
Conditions : ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to true
-
Actions : Set Kills (A variable with type Integer array 1) [(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 (last created leaderboard) to Kills [(Player number of (owner of (killing unit)))]
-
Leaderboard : Sort (Last created leaderboard) by Value in Descending order
-
Event : A player leaves the game
-
Conditions : None
-
Actions :
-
Leaderboard : Remove (Triggering player) from (last created leaderboard)
+Rep if solved.