• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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