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

I need help with leaderboard

Status
Not open for further replies.
Level 9
Joined
Nov 27, 2004
Messages
465
you'll need to make 1 variable (Example Kill[1-13] )
and 2 triggers

1st trigger:
Event
Elapse 1 second
*****
Action:
Create multiboard
for 1 to 12
if
and all true:
player(integer A) = playing
player(integer A)= human (or not equal computer)
add player(integer A) with label "Kills:" and Value" Kills[integer A]

________________________
Trigger 2
Event
unit die
Condition:
and all true
killing unit is hero = true
killing unit player = human
Action:
set kills[player number of owner of killling units]= kills[owner of killing unit] + 1
CHANGE VALUE of (owner of killing unit) to "kills[player number of owner of killing unit]"
________________________________

Best regards
Vampire[K.B.]
EOF

EOF
 
Level 7
Joined
Jul 30, 2004
Messages
451
VampireKB said:
Trigger 2
Event
unit die
Condition:
and all true
killing unit is hero = true
killing unit player = human
Action:
CHANGE VALUE of (owner of killing unit) to "kills[player number of owner of killing unit]"

i suppose that would work... if you know, you actually decided to increment kills[]
 
Status
Not open for further replies.
Top