• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Kill counter with award

Status
Not open for further replies.
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
 
  • 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.
Back
Top