• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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