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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      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