• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[Spell] Need help making a spell

Status
Not open for further replies.
Level 11
Joined
Jun 27, 2010
Messages
626
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