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

[General] Question: math & mechanism

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
-what happen if i add negative attribute to hero, i mean i add with trigger -5 str?

-somebody can tell me a function what raising exponentional, idk the formule but i want make similiar system than how the armor work, i mean if x = 5 then result ~4 if x=50 then result ~20 if x=600 than result ~80, if x=2000 then result ~98

(the avarage max defense stat around 600 and result must be 80-90% but if lets say def is more then never reach the 100%)
 
Level 6
Joined
Jun 16, 2007
Messages
235
You can enter negative values in world editor if you hold SHIFT and press enter.

You can easily find armor calculation function on any wc3 modding site, you just have to learn to use forum search function first....
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
- Why don't you try it and tell us what happens?

- Taken from Playdota.com the Wc3 armor formula
Damage reduction given by armor value is calculated by the following formulas:

Positive armor values:

Damage Reduction = ( 0.06 * armor ) / (1 + 0.06 * armor)

Examples:
10 armor:
( 0.06 * 10 ) / ( 1 + 0.06 * 10 ) = 0.6 / 1.6 = 0.375 = 37.5%
20 armor:
( 0.06 * 20 ) / ( 1 + 0.06 * 20 ) = 1.2 / 2.2 = 0.545 = 54.5%

Negative armor values:


Damage Increase = 1 - 0.94 ^ (-armor)

Examples:
-5 armor:
1 - 0.94 ^ (--5) = 1 - 0.94 ^ 5 = 0.266 = 26.6%
-10 armor:
1 - 0.94 ^ (--10) = 1 - 0.94 ^ 10 = 0.461 = 46.1%

Negative armor has a cap of -20 (71% damage increase). Reducing the armor even more will not change the damage increase.
 
Status
Not open for further replies.
Top