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

[Solved] Passive mana shield?

Status
Not open for further replies.
Level 12
Joined
Jan 30, 2020
Messages
875
I think there isn't such a thing.

I suppose the easiest way would be to use a Damage Detection System to alter the damage received and deplete the mana if mana is not 0

Can't give you any further help, I never used any third-party libraries.

The issue I can see with just using the event "A unit takes damage" is that, IIRC, the event fires before the damage is actually applied.
Probably tricky to implement that in plain GUI, but this is not my specialty.

This said, although waits are not recommended, I don't think it would be too problematic if you added a short wait in the actions before altering the damage with "Event Response - Set Damage of Unit Damaged Event" and depleting mana. Maybe it would.

The filter to make sure the depleting only happens to units with that passive shield should just be based on a dummy passive ability, and then add the check in the conditions to see if trigger unit has the ability.

Not sure this will work 100% but thats probably worth a try (if you don't want to use DDS).
 
Level 12
Joined
Jan 30, 2020
Messages
875
I thought only passive abilities could be added to disabled spellbooks ??

Seems I learnt something new today :O
 
Status
Not open for further replies.
Top