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

Simple Frost Armor Spell

Status
Not open for further replies.
Level 2
Joined
Jul 20, 2016
Messages
9
I need a triggered version of Frost armor. Basically it would do all the same things but you can set it to increase armor based on the caster's attributes (strength, agility, intelligence).

Any suggestions would be great. Thanks for any replies :)
 
Level 2
Joined
Jul 20, 2016
Messages
9
There are two very different ways this can be done depending on if you want the bonus armor to update constantly as the hero's attributes change over the duration of the spell or for it just to give armor based on stats at time of cast.
I actually figured out the second way myself...how would i do the first way? Because i want it to be just a set duration. So it cant update every time the caster's attributes change or it would affect duration.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
A periodic timer that checks for all units with the buff and changes the armor given (with some sort of item armor ability) based on if their stats are different from the last time it checked. You'd also have to track which units HAD the buff the previous iteration but don't now to appropriately remove the bonus armor. Changing the amount this way wouldn't affect the duration.
 
Status
Not open for further replies.
Top