• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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