WorpeX
New Member
- Reaction score
- 8
Allright, I'm making a leaderboard for my map. However, it doesn't seem to update correctly. I followed the instructions on the tutorial but it still doesn't seem to want to work. Here are the triggers:
A unit dies
Unit type of dying unit is a hero equal to true
Set unit_kills[player number of (owner of killing unit)] = unit_kills(player number of killing unit +2)
Set unit_kills[player number of (owner of dying unit)] = unit_kills(player number of dying unit -1)
Player group-pick every player in (all players) and do (change value for (picked player) in winsleaderboard to unitkills[player number of (picked player)]
Leaderboard-Sort winsleaderboard by value in decending order.
Currently it doesn't do anything, the score doesn't change. Does anyone know what i did wrong?
A unit dies
Unit type of dying unit is a hero equal to true
Set unit_kills[player number of (owner of killing unit)] = unit_kills(player number of killing unit +2)
Set unit_kills[player number of (owner of dying unit)] = unit_kills(player number of dying unit -1)
Player group-pick every player in (all players) and do (change value for (picked player) in winsleaderboard to unitkills[player number of (picked player)]
Leaderboard-Sort winsleaderboard by value in decending order.
Currently it doesn't do anything, the score doesn't change. Does anyone know what i did wrong?