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

How to make a Kill Counter

Status
Not open for further replies.
Level 3
Joined
May 17, 2014
Messages
29
I am trying to make a displayable Kill Counter that also gives a bonus amount of gold for every 100 kills. I want all players to be able to it. This is what I have so far but I have no idea where to start for the display box.
  • Kill Count
  • Events
    • Unit - A unit Dies
  • Conditions
  • Actions
    • If (KillCounter[(Player number of (Owner of (Killing unit)))] Greater than or equal to 100) then do (Player - Add 1000 to (Triggering player) Current gold) else do (Do nothing)
    • Set KillCounter[(Player number of (Owner of (Killing unit)))] = KillCounter[((Player number of (Owner of (Killing unit))) + 1)]
I suspect that there might be an issue with this trigger as well because when I set the amount of kills that are required for the 1000 gold bonus to 1 and I kill a unit, I do not receive the bonus gold. Please help me and thank you for your time.
 
Level 12
Joined
Nov 3, 2013
Messages
989
  • (Player - Add 1000 to (Triggering player)
There is no triggering player, the event is that a unit dies.

it should be
  • (Owner of (Killing unit)
And also people will mention that it's better to make variables if you're using the same thing multiple times
 
Level 12
Joined
Nov 3, 2013
Messages
989
If it still doesn't work then change "greater than or equal to 100" to "greater than 99" instead. (greater than 0 for the testing)
 
Status
Not open for further replies.
Top