Ok so i made a leader board to keep track of players kills but its not working and i dont know why. Heres what i got
LeaderBoard
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Hero 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
Else - Actions
Leaderboard - Show (Last created leaderboard)
Tally Score
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
((Owner of (Dying unit)) is an ally of Player 7 (Green)) Equal to True
Actions
Set Player_Kills[(Player number of (Owner of (Killing unit)))] = Player_Kills[((Player number of (Owner of (Killing unit))) + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Player Kills is an Integer array. Any help would be highly appreciated.:thup:
LeaderBoard
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Hero 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
Else - Actions
Leaderboard - Show (Last created leaderboard)
Tally Score
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
((Owner of (Dying unit)) is an ally of Player 7 (Green)) Equal to True
Actions
Set Player_Kills[(Player number of (Owner of (Killing unit)))] = Player_Kills[((Player number of (Owner of (Killing unit))) + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Player_Kills[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Player Kills is an Integer array. Any help would be highly appreciated.:thup: