Hi Everyone,
I am trying to make a map that uses an item that removes a user's Mana Regeneration. I want the equipped unit to have 0 Mana Regeneration regardless of other bonuses like Brilliance Aura and other Mana-Regeneration-based Items. From my previous question, I have learned how to put negative real values to Stat Modifiers and most Item stats are additive, but Mana Regeneration is strange in that it takes a multiplied/divided version of original value and then adds to it.
DEFAULT
Original Mana Regen (2/second)
+ Custom Item w/ Item Mana Regeneration [-1.00] (Original Mana Regen x -1.00)
= 0 mana/second
GOAL
Original Mana Regen (2/second)
+ Item w/ Item Mana Regeneration (Original Mana Regen x "M") <--- M is the Editor Field
= (2+2M) mana/second
I am trying to make a map that uses an item that removes a user's Mana Regeneration. I want the equipped unit to have 0 Mana Regeneration regardless of other bonuses like Brilliance Aura and other Mana-Regeneration-based Items. From my previous question, I have learned how to put negative real values to Stat Modifiers and most Item stats are additive, but Mana Regeneration is strange in that it takes a multiplied/divided version of original value and then adds to it.
DEFAULT
Original Mana Regen (2/second)
+ Custom Item w/ Item Mana Regeneration [-1.00] (Original Mana Regen x -1.00)
= 0 mana/second
+ Sobi Mask (Original Mana Regen x 0.50)
= 1 mana/second
= 1 mana/second
+ Brilliance Aura (2 mana/second)
= 3 mana/second
= 3 mana/second
GOAL
Original Mana Regen (2/second)
+ Item w/ Item Mana Regeneration (Original Mana Regen x "M") <--- M is the Editor Field
= (2+2M) mana/second
+ Brilliance Aura (2/second)
= (4+2M) mana/second
If this is possible using triggers, I am using GUI to set up all of my triggers as I have no experience using vJass. If does require code outside of GUI, I might just discard the idea and figure out something else. Without further adieu, I will appreciate any help in creating this map/mod.= (4+2M) mana/second
+ Custom Item [???] <--- What do I do here?
= 0/second <--- End Goal
= 0/second <--- End Goal