• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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?
 
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.
 
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.
Back
Top