[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
 
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:
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.
Back
Top