How to create a Wc3 style armor system? It should be quite easy through triggers using the Unit Takes Damage event but that feels like it would be ineffective, is there any other way to do it?
I have the formula, now I just need somewhere to put it.
private constant real ARMOR_REDUCTION_MULTIPLIER = 0.06
We have something kinda similar and achieve it through adding a certain amount of buffs per armor point, and differentiate the buffs on the amount of armor like 1+, 10+, 100+ for example. (From memory, don't quote me on it though).
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How to create a Wc3 style armor system? It should be quite easy through triggers using the Unit Takes Damage event but that feels like it would be ineffective, is there any other way to do it?
I have the formula, now I just need somewhere to put it.
private constant real ARMOR_REDUCTION_MULTIPLIER = 0.06
This equals amount of damage reduced
Above 0 armor baseDamage*(1.-((armor*ARMOR_REDUCTION_MULTIPLIER)/(1.+ARMOR_REDUCTION_MULTIPLIER*armor)))
Less than 0 armor baseDamage*(2.-Pow(0.94,-armor))
@Gwypaas: Go
have you read this thread?
Warcraft 3 Armor System
don't know if the suggestions mentioned in the replies still work.
We have something kinda similar and achieve it through adding a certain amount of buffs per armor point, and differentiate the buffs on the amount of armor like 1+, 10+, 100+ for example. (From memory, don't quote me on it though).