• 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.

Leader board question

Status
Not open for further replies.
Level 4
Joined
Feb 11, 2006
Messages
44
hey guys, i know how to make a leaderboard and shit but i gotta figure out the variables and stuff like that to make it work so each time my hero kills a unit it counts on the leaderboard, I looked on the tutorial in german and the translation but it did no good. Plz help!

-Pr0-MazeR
 
Level 4
Joined
Aug 30, 2004
Messages
58
You first need to create a varible. Intanger would be best sence it stores whole numbers (1,15,66,205,ect.)
You could use Real but it uses fractions. (1.02,21.99,ect)

Once you have the varible (named probobly Kills or somthing) Make a new trigger.
Event: Unit dies
Condtion: Owner of killing unit = Player 1
Event: Set 'Kills' to ('Kills'+1)

Then add the leaderboard display at the end of that trigger so it updates asap.
 
Status
Not open for further replies.
Top