• 🏆 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!

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