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

Periodic Mana Loss

Status
Not open for further replies.
Level 3
Joined
May 10, 2014
Messages
41
Hello!

I trying to make a spell that allows unit to attack invulnerable targets.

First way how to make it, as I think, is a transform spell.
So, I need to make transformed unit to lose mana every second, but without using Periodic Time Event.

Is it possible to realize this?

Second way is to allow casting unit to attack invulnerable targets.
May be it can be realized using triggers.

If it's possible, how can I do this?.

Thanks everybody for any information! :as:
 
Level 3
Joined
Apr 23, 2015
Messages
22
afaik mana regen items work as a fraction of the original mana regen (at least that's how the mask item and brilliance aura works). Or maybe I did something wrong?

Brilliance aura adds static mana regeneration bonus. You can make it negative, that will actually drain mana of those affected by it. Implying the buff will not bother you.
 
Level 3
Joined
May 10, 2014
Messages
41
If my unit (with negative brilliance aura) will be affected by brilliance aura of arch mage, for example, it's mana regeneration will be negative? or not?

As I know, in WC3, active aura is an aura with max bonus, while other similar effects just ignored.


If it's impossible using GUI.
How to allow unit to attack Invulnerable targets and cause damage?
Using CustomScript or JASS.

And one more...
If I use transform, when mana of transformed unit comes equal to zero, order unit to transform back. (bear form)
But player (owner) mustn't have a chance to cancel back transformation order.

Is it real using form spell?
Or replacing unit by trygger is an easier way?
 
Level 11
Joined
Jun 2, 2013
Messages
613
Just a thought...

I believe you could make your transformed unit mechanical, and the Archmage's Brilliance Aura wouldn't affect it's mana regen.

You could then make your custom (negative) brilliance aura ONLY affect mechanical and then set it's effect range to 90.
OR just give it negative mana regen - since it is mechanical, it wouldn't regenerate around brilliance aura.
 
Level 3
Joined
Apr 23, 2015
Messages
22
If my unit (with negative brilliance aura) will be affected by brilliance aura of arch mage, for example, it's mana regeneration will be negative? or not?


As I know, in WC3, active aura is an aura with max bonus, while other similar effects just ignored.

No. If they apply different buffs, effects of both auras will take place. The rule you listed only applies on vanilla items like Bone Chimes and Lion Horn, that override auras with similar effect, but only because they use the same buff: Vampirism Aura and Devotion Aura respectivly.


And one more...
If I use transform, when mana of transformed unit comes equal to zero, order unit to transform back. (bear form)
But player (owner) mustn't have a chance to cancel back transformation order.

Is it real using form spell?
Or replacing unit by trygger is an easier way?
Bear Form can't be cancelled. Once order is issued, unit will start transformation regardless of what player is issuing him at the moment. So it can actually be done quite simply by a trigger:
  • Events
    • Time - Every 0.03 seconds of game time
  • Conditions
    • (Mana of TransformedUnit) equals to 0.00
  • Actions
    • Unit - Issue TransformedUnit to unbearform
 
Level 3
Joined
May 10, 2014
Messages
41
Many thnaks, Soulsmith!

Transformation + Aura will be easy enough solution.

About BearForm, I mean, if I order unit to transform back by trigger, and at the same time player order that unit do another thing, will it cancel back transformation?
If it can be canceled, unit can stay in powerful form forever, only with zero mana. But, anyway, it will be bug.
 
Level 3
Joined
Apr 23, 2015
Messages
22
Bear Form can't be cancelled by any mean. Neither player himself can stop the transformation nor can it be cancelled by stuns/silences.

Even if it wasn't the case, trigger would cause your hero to repeatedly transform if you still have 0 mana.
 
Status
Not open for further replies.
Top