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

[Spell] Need help making a spell

Status
Not open for further replies.
Level 10
Joined
Jun 27, 2010
Messages
612
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:
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
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 http://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.
Top