Mathematics - Formulas

Andyoyo

TH.net Regular
Reaction score
22
I'd definitely post the attack type/armor type table here found at bnet.
Most maps have units that don't only use hero damage, & its good to know in general for WC3.

__________Light_____Medium____Heavy_____Fort____Hero____Unarmored
Normal____100%_____150%_____100%______70%___100%______100%
Pierce_____200%_____75%______100%_____35%____50%_______150%
Siege_____100% _____50%______100%_____150%___50%_______150%
Magic_____125%_____75%______200%_____35%____50%_______100%
Chaos_____100%_____100%_____100%_____100%___100%______100%
Spells_____100%_____100%_____100%_____100%___70%______100%
Hero______100%_____100%_____100%_____50%____100%_____100%

(Horizontal line is armor type & vertical line is Attacker weapon type)
Also Heroes have a 30% reduction to spell damage & units have 0% reduction. Spell damage is not hindered by armor or evasion.

It's possible that maps don't follow these values but 90% do.

Also, there is a Myth that Evasion isn't stackable. It is since you can try to add as many evasion you want, they will all stack. But 2x 15% evasion isn't 30% evasion, the formula X+Y=Z doens't work.
The only time evasion stacks is when it comes from a units chance to miss & passive evasion. Such as pandas brawler & haze. Otherwise the highest amount will override for passive.

A note about critical strike, it is rounded to the nearest 5% no matter what. It's hardcoded in WE. Also, armor is equal to 5.77% EHP, unless changed in map, which is very rare
 

SerraAvenger

Cuz I can
Reaction score
234
oh god, just stumbled across this thread.
After I read the first post I was like "Omg that's not true..." and wanted to post a reply - until I noticed I had done so already almost two years ago!


Now I saw your reply.



>and yet that unit taking a nuke of 100 dmg dies on 1 hit (the base unit with 100 hp for example).

That's exactly what I meant :D
If what you. said was true, a unit with less effective hp would be stronger against spells than a unit with more; But as you can see both die. The effect is the same, no matter the effective hp. The effective damage increases/decreases proportionaly with the increase/decrease in effective hp, that's true, but the spell doesn't become more powerful. It still deals 100 hard damage.
 

wasniahC

New Member
Reaction score
1
Agree; It isn't a matter of the effective health being "worse"; its a terrible way to phrase this. Spells just don't effect your effective health, simple as that; effective health is only against attacks.
This, maybe a better term for it is "effective health against attacks".

Also, your crit formula is wrong; I think its just a bracket. You have something like (d*e-1)/100+1 which should be d*(e-1)/100+1; e is the critical multiplier, and you should multiply the BONUS damage, which is why you take away the first 100% of the damage from the bonus, first.

Eg: 30% chance of 2x damage.

30*(2-1)/100+1 = 30*1/100+1 = 30/100+1 = 0.3+1 = 1.3 - This is correct, a 30% chance to do 2x damage is a 30% chance to do +100% damage, so 30% bonus damage average.
(30*2-1)/100+1 = (60-1)/100+1 = 59/100+1 = 0.59+1 = 1.59
This is wrong. It is NOT a 59% boost to your damage to have 30% chance of double.

On the note of the evasion formula, yes, the person posting earlier was correct, I don't think you had added it to the thing? When it stacks, it multiplies.. kinda.

What you have to do is not work with the chance to miss, but the chance to be hit. Example:
Two 30% evasions.
0.3*0.3 = 0.09 (Thats wrong.)
0.7*0.7 = 0.49 (This is right.)

So, you can work out a 49% chance to be hit, meaning two 30% evasions that stack equal 51% chance to evade.

However, I was still pretty sure evasion DIDN'T stack based off all the tooltips in the game? D:

Edit: Thought i'd say the rest of the post was pretty damn good :D

Second edit: Read the d3 part.. wrong! Definately!
Imagine it like this. 18d3 means it rolls 18 3-sided dice. These can all come up as 1, in which case its 18. They can all come up as 3, in which case its 54. And they will have an average spread you can use to get an average damage, yes.

However, they can also be 17 1s and a 2, which is 19. Or 16 1s, a 2, and a 3, which is 21.

They can roll ANY number between 18 and 54, with 18 and 54 being least likely; consider, if you roll a 6-sided die twice, you can get one 3, one 4, or one 4, one 3, or one 2, one 5.. all give 7. But there is only one combination for 2; 1 & 1. For 12, there is only 6&6.
With two 6-sided die, there are 36 different combinations of die, sometimes giving the same result;
Sum of two dice added - Number of combinations giving this sum
2 - 1
3 - 2
4 - 3
5 - 4
6 - 5
7 - 6
8 - 5
9 - 4
10 - 3
11 - 2
12 - 1

Meaning its more likely to be 7 than it is to be anything else. Still, far more than just 6 totals, for rolling 2d6.
Now, imagine rolling 18d3.
I refuse to go into the numbers this can generate in any depth. ;p
 

Grundy

Ultra Cool Member
Reaction score
35
EDIT:
thewrongvine said:
Um, so does evasion stack?
No.

Evasion from the "Evasion" ability will not stack with other "Evasion" abilities but the evasion WILL stack with the evasion from the "Drunken Brawler" ability. So 50% Evasion and 50% Drunken Brawler evasion = total 75% evasion. That is the only way evasions stack.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top