• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Spell] Need help making a spell

Status
Not open for further replies.
Level 12
Joined
Jun 27, 2010
Messages
636
Hey guys, I was wondering if anyone can help me make a passive spell for a hero I'm making for a map. In short, the hero has 100 mana, and his abilities use 25, 50 and 75 mana, respectively. He won't have mana regen, so that's where this spell comes in. Basically, I want to make a spell which makes him gain 5 mana for every basic attack he makes, and 10 mana for each attack taken.

Could anyone help me accomplish this? Thanks a bunch :cute:
 
You have 2 options really.

You can use the event "Unit is attacked" But this can abused because it triggers at the beginning of the attack rather than when it finishes/does damage

Your better choice is to use a DDS

I recommend https://www.hiveworkshop.com/forums...1-2-0-1-a-231846/?prev=search=DDS&d=list&r=20
this one.

You would just need to check when the damage source is your unit then add+5 to current mana, or when he is the damage receiver add +10 to current mana.
 
Status
Not open for further replies.
Back
Top