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

[Trigger] want trigger code ((hero kill))

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2010
Messages
950
this is a way of doing it but you have to change the point values of the units to the number of gold, there may be another way to do it but dont remember off hand.

  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Player - Add (Point-value of (Triggering unit)) to (Owner of (Triggering unit)) Current gold
 
Level 1
Joined
Jun 12, 2010
Messages
51
thanks for help but ur trigger has bug!!
1-it add gold to dead hero not killing hero.

i cr8 this 1:

  • hero kill
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Player - Add 400 to (Owner of (Killing unit)) Current gold
 
Status
Not open for further replies.
Top