• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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