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

Award Lumber on Hero Kill

Status
Not open for further replies.
Level 2
Joined
Apr 9, 2009
Messages
6
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
 
Level 3
Joined
Apr 13, 2009
Messages
49
  • 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 :)
 
Level 22
Joined
Nov 14, 2008
Messages
3,256
  • 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
 
Level 3
Joined
Apr 13, 2009
Messages
49
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
 
Level 3
Joined
Apr 13, 2009
Messages
49
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.
Top