Thursday, September 21, 2006

Whats WoW doing when you swing your weapon?

When you attack someone and swing your weapon, a lot of things can happen. In most cases you'll just land a normal hit, but sometimes you'll crit. Or you miss. Or maybe the opponent dodges or parries. If you want to decide what gear is best in a given situation, it helps if you know how WoW decides what's gonna happen to a swing.

While I have no insight to the actual implementation, the result comes down to this: The game is rolling a virtual dice and using the result to identify one of the entries in a big table (which is usually called the hit-table). And there it will be able to read what's gonna happen with this swing.

To say it a bit more technical: There is a random number generated. The range of possible numbers is devided into "areas" that map to one of the possible results of the roll like miss, crit, dodge, hit etc.

To keep it simple let's say we roll with a 100 sided dice. (/random 100)
If you have a 20% crit chance, 20 possible rolls will be a crit. If you have a 5% miss chance, 5 of the possible rolls will be a miss. The same is done for dodge, parry and block. The remaining possible rolls will map to a normal hit.
As hit-chance is not really a fixed chance, the line "Improves your chance to hit by X%" actually means "Reduces your chance to miss by X%".

Example:

These are the parameters:
Your miss chance = 5%
Your crit chance = 20%
The enemy's chance to dodge = 5%
The enemy's chance to parry = 5%
The enemy's chance to block = 10%

For every attack the server generates ONE SINGLE roll to see if the attack lands or not. As I said, to keep it simple let's just say the roll is random from 1 to 100.
If the roll lands between:
1 to 20 you crit
21 to 25 the foe dodges
26 to 30 the foe parrys
31 to 40 the foe blocks
41 to 45 you miss
46 to 100 you score a normal hit

This means that unlike common believe WoW does not determine first if you hit and then if the hit is a crit. If you have a 20% crit chance this means an average of 20 out of 100 swings (attacks) will crit and not only 20 out of 100 hits.
That does mean that crits can't miss, which in turn means that the amount of crits you do out of an amount of swings does NOT depend on your miss rate or any other variable except your crit rate.

This above rule of thumb suffices for everything except the most exotic situations: Situations where so many special things (meaning everything else than a normal hit) can happen that the chances add up to more than 100% which means they can't be placed in the hit table all at once. In that case certain things take priority over others and sadly all disadvantages take priority over the nice stuff like crit and hit.

If you have trouble to understand that, let me depict it like this: Imagine the dice the game is gonna roll for you. On each of its sides is written what's gonna happen to your swing. When the game sets up the hit table, its like preparing the dice by writing possible outcomes of a swing on its sides. At first on every side you can read "HIT". Then the game will start to fill in the other stuff: If you have 10% miss chance, then 10% of the dice's sides will get the "HIT" removed and "MISS" written on them (if it's a dice with 20 sides like pen&paper roleplayers use them, then "MISS" would be writen to two of the 20 sides). After filling in your miss chance the game will continue with other things that can happen: Dodge, Block, Glancing maybe... and in the very end it will come to your crit rate. If there are not enough sides left with the initial word "HIT" written on it, the game can't add "CRIT" tags anymore. In that case (and only in that case) you'll end up with less sides reading "CRIT" than you should get and that means you crit less than you deserve. Luckily for us rogues only in the most exotic situations (like when fighting Loatheb) there won't be enough free sides on the dice (or entries in the hit table if you want to be more technical), so you end up losing crit chance.

I hope this information helps!

9 Comments:

Anonymous Anonymous said...

How do you know this? If what you're saying is true, then % crit is like % hit AND % crit combined, meaning it gives you both. If that were the case then crit >> hit. It sounds borderline overpowered tbh...

Monday, September 25, 2006  
Blogger lithander said...

Maybe I didn't make that clear enough: If you gain 1% crit it replaces an entry in the hittable that would previously result in a hit. So instead of a hit one of 100 rolls results in a crit. Thats all.

How do I know that? Well, there was a blue post once but I did a lot of testing too, to prove that theory. And another hint is that the hittable method is the smallest possible effort for the server, so it makes some sense to do it this way from a developers perspective.

Monday, September 25, 2006  
Blogger lithander said...

and am unsure where the ceiling is. With 310 daggers, 16% hit and 40% crit in a raid.

White hits against bosses:

40% crit rate + 40% glancing blows. That leaves 20% for misses and dodges, block, parry etc.
Your miss rate is 24% - 16% = 8% so against mobs with 12% dodge/parry/block or less you shouldn't lose any crit. Standing behind the mob most of the time you shouldn't be affected by parry and dodge too much, So I'd say you are still on the safe side for most bosses.

And if you reach the cap then you do it with your white hits usually as specials dont suffer from glancing blows and thus have more room on the hit table.

Wednesday, September 27, 2006  
Anonymous Anonymous said...

If hit and crit are seperate, and crits cannot miss, why not just focus on getting as much +crit gear as possible? You're saying +hit is actually -miss, so therefore +crit is also -miss AND you do 2x the damage.

Thursday, September 28, 2006  
Blogger lithander said...

You're saying +hit is actually -miss

correct.

so therefore +crit is also -miss AND you do 2x the damage.

+crit doesnt touch miss but converts hit into a crit.

So +crit means:
miss = miss
crit = crit+1
hit = hit-1

Thursday, September 28, 2006  
Anonymous Anonymous said...

+crit doesnt touch miss but converts hit into a crit

If it turns a hit into a crit, then +hit does affect +crit (ie crit eats hit)

Friday, September 29, 2006  
Anonymous Anonymous said...

How would you say hit/crit/ap compare with each other? I heard 20ap ~ 1hit. What's your take on it? Any estimates? Referring to combat daggers, by the way.

Tuesday, October 03, 2006  
Anonymous Anonymous said...

For my gear, I've found that 1 hit is worth roughly 12 AP and 1 crit is worth roughly 16 AP.

Monday, October 09, 2006  
Anonymous Anonymous said...

How do u know?

Monday, October 09, 2006  

Post a Comment

<< Home