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

Award Lumber on Hero Kill

Status
Not open for further replies.

FireSpore

F

FireSpore

I have been trying to make a simple trigger which awards lumber to a player when he/she kills an enemy hero.
I barely know where to start with this trigger. I get as far as (below) but I'm sure that I'm already doing something wrong...
  • Events
    • Unit - No unit Dies
  • Conditions
  • Actions
    • Player - Add 1 to (Picked player) Current lumber
 
  • Untitled Trigger 006
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
    • Actions
      • Player - Add 1 to (Owner of (Killing unit)) Current lumber
You started of good :) You just forgot to add the conditions

Well enjoy, tested it on a map and it works, killing an enemy hero = +1 lumber normal unit awards nothing :)
 
  • Untitled Trigger 006
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
    • Actions
      • Player - Add 1 to (Owner of (Killing unit)) Current lumber
You started of good :) You just forgot to add the conditions

Well enjoy, tested it on a map and it works, killing an enemy hero = +1 lumber normal unit awards nothing :)

you dont really need to set the conditions to dying unit, thought triggering respond faster :)

well I knew that but I didnt want to if he isnt supposed to kill his own hero? lols XD
 
you dont really need to set the conditions to dying unit, thought triggering respond faster :)

well I knew that but I didnt want to if he isnt supposed to kill his own hero? lols XD


You started off good wasn't meant for you but for FireSpore, he said he didn't know where to start but he did make a good start ;)

Yeah yours works perfectly ofcourse but he would also get lumber if he kills an allied hero :p.

Anyway mine is better if your making players allied, if not then baassee's trigger is the prefered one :p
 
Thanks both of you, I have got the trigger working on my map now ^_^
Conditions always confuse me...
 
This trigger is way easier as it's less work because else you have to go over every hero in object editor.

So sorry but this trigger is way easier and faster + it's fail safe
 
Status
Not open for further replies.
Back
Top