• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Trigger] Please Inspect My Leaderboard

Status
Not open for further replies.
Level 3
Joined
Feb 16, 2008
Messages
20
hi all

I made a leader board that will show the number of kills in my map. I just want to know if I am doing this in the right way. So far, the leader board shows and updates the value but I suspect that the value shown are not actually exact.

lboard1nt6.jpg


lboard2at9.jpg
 
Level 16
Joined
Mar 26, 2004
Messages
569
If you have it like that, everyone will get kill values from each unit that dies. You need to make a condition for the increase.

Just move the "Set Kills +1" for each player into the If/Then/Else.

EDIT:
I haven't tested this one, but i think it'll work. It's the same trigger but optimized.

  • Kills
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
      • Leaderboard - Change the value for (Owner of (Killing unit)) in Iboard to kills[(Player number of (Owner of (Killing unit)))]
      • Leaderboard - Sort Iboard by Value in Descending order
 
Last edited:
Level 3
Joined
Feb 16, 2008
Messages
20
If you have it like that, everyone will get kill values from each unit that dies. You need to make a condition for the increase.

Just move the "Set Kills +1" for each player into the If/Then/Else.

oh my! I didn't notice that. Thanks Skrik. The Leaderboard works perfectly now. :grin:

+1
 
Status
Not open for further replies.
Top