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

[Solved] How to prevent a unit/building from DE-activating Mana Shield?

Status
Not open for further replies.
Level 3
Joined
Jul 15, 2013
Messages
54
I thought the mana shield only automatically turns off when a unit/building is out of mana
How about creating a trigger which catches a string order when mana shield turned off and force that unit/building to turn on? (Which makes your mana shield cannot be turned off manually too)
 
Level 9
Joined
Feb 17, 2009
Messages
291
I thought the mana shield only automatically turns off when a unit/building is out of mana
How about creating a trigger which catches a string order when mana shield turned off and force that unit/building to turn on? (Which makes your mana shield cannot be turned off manually too)

You'd think, right? I'm aware this seems like an incredibly simple fix, but in my experience units will actually shift between having it on/off by themselves. Just one example of such behavior - when they are hit by certain spells such as Rain of Fire, they instantly turn it off. As soon as the spell is over, they reactivate it.

I figured it was some kind of annoying AI script made by Blizz in order to conserve mana and balance its usage, and thus that I was screwed since it's probably hardcoded. I'll try the simple fix but I'd appreciate any other ideas because I've got a feeling it won't work :(

------

Edit: That fix had no effect. Any other suggestions?
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Player controlled units will only turn mana shield off under two conditions...
  1. The player orders the unit to turn mana shield off.
  2. Damage is received that cannot be fully absorbed by the units current mana. (out of mana)
Mana shield has a tactical AI function for AI players to use. They will toggle it off if the unit has a lot of life to save mana. They will toggle it on when the unit is low on life but has a lot of mana.

SWAT Aftermath map's AI controlled Umbrella Soldiers are a good example of the AI at work where the entire game is based around using a form of mana shield for survival. When damaged at full life they will turn off their mana shield making them very vulnerable targets. Once their life falls to somewhere between 20-50% then they will turn mana shield back on. Seeing how not even SWAT Aftermath found a good solution to this, you might want to adjust buildings to compensate (more life, assume they will always be around 20-40% HP).
 
Level 9
Joined
Feb 17, 2009
Messages
291
Ok, makes sense. For anyone who stumbles upon this thread with the same question as me someday, I actually managed to fix this issue by simply using a periodic event, and telling them to reactivate it a LOT. Ever since then, they've done their job. Thanks!
 
Status
Not open for further replies.
Top