i created a leaderboard with the elapsed 1 game second (as event, so not map init) added players value anything correct. But the score doesnt update. This is my trigger: points
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
((Dying unit) is A Hero) Equal to True
Actions
Set P_Points[(Player number of (Owner of (Killing unit)))] = P_Points[(P_Points[(Player number of (Owner of (Killing unit)))] + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in Board to P_Points[(Player number of (Owner of (Killing unit)))]
Set P_Points[(Player number of (Owner of (Dying unit)))] = P_Points[(P_Points[(Player number of (Owner of (Dying unit)))] - 1)]
Leaderboard - Change the value for (Owner of (Dying unit)) in Board to P_Points[(Player number of (Owner of (Dying unit)))]
Leaderboard - Sort Board by Value in Descending order
the score doesnt update and it is correct no ? i disable the "-1" trigger and not worked. i changed the original value of the integer variable P_Points from 0(default) to 10, and when a hero dies it goes to 0 instantly to all players
EDIT: "board=the leaderboard", "P_Points=integer value of the board"
Events
Unit - A unit Dies
Conditions
((Killing unit) is A Hero) Equal to True
((Dying unit) is A Hero) Equal to True
Actions
Set P_Points[(Player number of (Owner of (Killing unit)))] = P_Points[(P_Points[(Player number of (Owner of (Killing unit)))] + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in Board to P_Points[(Player number of (Owner of (Killing unit)))]
Set P_Points[(Player number of (Owner of (Dying unit)))] = P_Points[(P_Points[(Player number of (Owner of (Dying unit)))] - 1)]
Leaderboard - Change the value for (Owner of (Dying unit)) in Board to P_Points[(Player number of (Owner of (Dying unit)))]
Leaderboard - Sort Board by Value in Descending order
the score doesnt update and it is correct no ? i disable the "-1" trigger and not worked. i changed the original value of the integer variable P_Points from 0(default) to 10, and when a hero dies it goes to 0 instantly to all players
EDIT: "board=the leaderboard", "P_Points=integer value of the board"