Classe, new thehelper / Leaderboard question
Hellu everyone!
This is Classe for the first time on thehelper.net........
I'm looking for help about Warcraft III World Editor and i think this is a great place to ask.
I hope to be coming with countless questions regarding triggers, variables, and other programming in general.
So c ya around.!
Question!
I also would like to ask a question about a leaderboard i'm trying to establish right now... it doesn't work at all
It's supposed to count kills. (i'm starting out easy)
But it doesn't count at all but i can see the leaderboard with my namn and a 0 value.
Trigger for setting up leaderboard
Leaderboard
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Killzzz
Player Group - Pick every player in (All players) and do (If (((Picked player) controller) Equal to User) then do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0) else do (Do nothing))
Leaderboard - Show (Last created leaderboard)
Trigger for tallying
Kilzzz
Events
Unit - A unit Dies
Conditions
((Dying unit) belongs to an enemy of Player 1 (Red)) Equal to True
Actions
Set Killzzz[(Player number of (Owner of (Killing unit)))] = Killzzz[(Killzzz[(Player number of (Owner of (Killing unit)))] + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Killzzz[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order
Hellu everyone!
This is Classe for the first time on thehelper.net........
I'm looking for help about Warcraft III World Editor and i think this is a great place to ask.
I hope to be coming with countless questions regarding triggers, variables, and other programming in general.
So c ya around.!
Question!
I also would like to ask a question about a leaderboard i'm trying to establish right now... it doesn't work at all
It's supposed to count kills. (i'm starting out easy)
But it doesn't count at all but i can see the leaderboard with my namn and a 0 value.
Trigger for setting up leaderboard
Leaderboard
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Killzzz
Player Group - Pick every player in (All players) and do (If (((Picked player) controller) Equal to User) then do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0) else do (Do nothing))
Leaderboard - Show (Last created leaderboard)
Trigger for tallying
Kilzzz
Events
Unit - A unit Dies
Conditions
((Dying unit) belongs to an enemy of Player 1 (Red)) Equal to True
Actions
Set Killzzz[(Player number of (Owner of (Killing unit)))] = Killzzz[(Killzzz[(Player number of (Owner of (Killing unit)))] + 1)]
Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to Killzzz[(Player number of (Owner of (Killing unit)))]
Leaderboard - Sort (Last created leaderboard) by Value in Descending order