• 🏆 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!

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