• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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 39
Joined
Feb 27, 2007
Messages
5,031
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.
 
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 39
Joined
Feb 27, 2007
Messages
5,031
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