To get 20% of something, you multiply it by 0.2 (that is 20/100).

So assuming I understand, if damage is 60, but you want to reduce it by 20%, 60 * 0.2 = 12, so 60 - 12 = 48 (adjusted damage). What was being pointed out above, is that you can do it simpler by multiplying by 100%-20% = 80%. So 60 * 0.8 = 48.

To get 20% of something, you multiply it by 0.2 (that is 20/100).

So assuming I understand, if damage is 60, but you want to reduce it by 20%, 60 * 0.2 = 12, so 60 - 12 = 48 (adjusted damage). What was being pointed out above, is that you can do it simpler by multiplying by 100%-20% = 80%. So 60 * 0.8 = 48.

Hey i dont understand what he is trying to say honestly, maybe u can help? ^_^

I know the counting but i cant use the above to get the code.

Health = 150

Damage = 60

Armor = 20

So the code is, when hit, *Substract from Health* = ?? what? How to do it using variables of the above?

Becuase if armor was 0.2 instead of 20, then using = Damage * Armor - Damage will become a negative number.

Yeah that does not work because we cant willy nilly pick any number, the armors are fixed Variables. Try to do it with these variables instead -

Health = 150

Damage = 60

Armor = 20

Now go. When hit, *Substract from Health* = ???

Your part above, go show me - The armor on each target vill vary and not be the same, so we cant use random numbers in the code, must be Damage and Armor and Health.