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

How to give a Hero Rage

Status
Not open for further replies.
Level 2
Joined
May 16, 2013
Messages
27
How can I trigger / give a unit rage, where in whenever he attacks or gets attacked he gains mana? I saw other threads but it's not exactly clear to me. What would I need to do?
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Event: A unit is Attacked
Actions: Give X mana to attacked unit.

If you want it with Damage Received

Event: Damage is dealt (ussualy by setting a real variable to a certain value)
Actions: Give X mana to DamagedUnit.
 
Level 7
Joined
Jun 14, 2009
Messages
235
A thing to be aware of, is that even if you use Mana are rage, abilities and other effects that interact with mana will still work. Meaning that if you're near a Fountain of Mana, the hero or unit will still gain mana whether or not you want it to.

If you have this problem you could either custom code the rage system, or have mana effects coded manually.
 
Status
Not open for further replies.
Top