• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Leaderboard Value, how its work...

Status
Not open for further replies.
Level 2
Joined
Mar 4, 2005
Messages
7
I have some problem, with the value..
2 trigger:
Events:
Time - Elapsed game time is 0.10 seconds
Action:
Leaderboard - Create a leaderboard for (All players) titled Name - Life
Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label (Name of Player 1 (Red)) and value 3

Second Trigger:
Events:
Map initialization
Conditions:
Paladin 0000 <gen> Equal to (Attacked unit)
Actions:
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to -1

Why not works?
If apaldin gets attacked, he gets -1 Value..
Pls help :D
 
Level 7
Joined
Aug 5, 2005
Messages
218
Also create an integer variable for the "value" that you set in your leaderboard. Change the variable by saying "Set variable = (variable - 1)." Then, say "Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to (your variable)."
 
Status
Not open for further replies.
Top