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

Kill counter with award

Status
Not open for further replies.
Level 7
Joined
Mar 8, 2009
Messages
360
1) Double posting is not allowed
2) Triple posting is not allowed
3) Use your brains, counting kills is VERY easy.

Because i know you don't have brains:
  • KillCounter
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)
PlayerKills is a integer array
 
Level 9
Joined
Aug 27, 2009
Messages
473
  • KillCounter
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Set PlayerKills[(Player number of (Owner of (Killing unit)))] = (PlayerKills[(Player number of (Owner of (Killing unit)))] + 1)

And add this after the code you see posted by Vulcano

  • GoldAwards
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (PlayerKills[(Player number of (Owner of (Killing unit)))]) Equal to 10
        • Then - Actions
          • -------- What the Gold Award is gonna be, set here! --------
          • -------- If you want the correct actions, just ask. --------
          • -------- But you have to say what you need. --------
        • Else - Actions
 
Status
Not open for further replies.
Top