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

lvls and gold

Status
Not open for further replies.
Level 3
Joined
Aug 18, 2005
Messages
49
How can i make it so everytime someones hero gets a lvl they get a certain amount of gold.
 
Level 3
Joined
Jun 18, 2007
Messages
72
Im not totally sure about that particular trigger but ill insert my version as well. Decide which one works best for you:
  • Hero Level Up Gold
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Player - Add 1000 to (Owner of (Triggering unit)) Current gold
And just where it says "Add 1000" just change the 1000 to w/e gold integer you want to give to the hero upon level up. And if you want to say something about it, you can do something like a floating text saying w/e message you want it to say. Examples:
  • Hero Level Up Gold with how much gold gained message
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Player - Add 1000 to (Owner of (Triggering unit)) Current gold
      • Advanced - Show Your Message with color (Gold,Gold,Gold) at point ((X of (Triggering unit)),(Y of (Triggering unit)))
And then you can just modify the "Your message" with obviously your message as well as the Colors, or even the placement although it might best just at the unit itself.
If you want it to state how much gold was gained you can put an advanced gold trigger:
  • Hero Level Up Gold with how much gold gained message
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Player - Add 1000 to (Owner of (Triggering unit)) Current gold
      • Advanced - Simulate receipt of 1000 gold at point ((X of (Triggering unit)),(Y of (Triggering unit)))
Once again just modify the 1000 gold to w/e. And with this trigger it will make it look like when you pick up gold or get gold on a kill, but in this case its when the hero levels up. If their are any problems make sure you reply saying so and either me or someone else can help, or if anyone knows of an easier way to do this please say so lol.
 
Status
Not open for further replies.
Top