Article Categories
- Baldur's Gate 3
- Diablo
- Elder Scrolls
- General
- Hogwarts Legacy
- League of Legends
- Minecraft
- Pokemon Go
- Sims 4
- StarCraft
- Steam Platform
- Xbox Game Console
More Articles
How do monsters in NetHack attack?
There is much information about how the player attacks (or attempts to attack) in the weapon spoiler. But there is no information on how monsters attack.
How is the monsters value of to-Hit* calculated?
*) alias 'chance to hit' or 'toHit'.
The damage and effects of successful hits is described in the monster spoiler from the spoiler page.
Question from user Martin Frank at gaming.stackexchange.com.
Answer:
The to-hit formula is covered in detail on the wiki's Armor Class page. The source ref for much of this is in mhitu.c.
I'll summarize the to-hit; there are a lot of special cases based on visibility, attack type, situation, and consecutive monster attacks.
The basic formula is: 10 + AC + Level, where "AC" is the player's current AC (i.e. Armor Class - it is lowered primarily by equipping armor; lower is better), and Level is the monster level of the attacker. This value is compared against a random number between 1 and 20; if the roll is lower than this formula, the attack hits.
If the player's AC is below 0, it is instead treated as a random number between -1 and their displayed AC. Lower AC is always better, but even at -100 AC it is possible to get a very unlucky roll and still get hit.
The wiki includes tables showing statistically expected damage for differing armor class values from various attackers; this can give a general idea of how much AC protects you, but this also includes the damage resistance from having negative AC.
Answer from user qazmlpok at gaming.stackexchange.com.
There is much information about how the player attacks (or attempts to attack) in the weapon spoiler. But there is no information on how monsters attack.
How is the monsters value of to-Hit* calculated?
*) alias 'chance to hit' or 'toHit'.
The damage and effects of successful hits is described in the monster spoiler from the spoiler page.
Question from user Martin Frank at gaming.stackexchange.com.
Answer:
The to-hit formula is covered in detail on the wiki's Armor Class page. The source ref for much of this is in mhitu.c.
I'll summarize the to-hit; there are a lot of special cases based on visibility, attack type, situation, and consecutive monster attacks.
The basic formula is: 10 + AC + Level, where "AC" is the player's current AC (i.e. Armor Class - it is lowered primarily by equipping armor; lower is better), and Level is the monster level of the attacker. This value is compared against a random number between 1 and 20; if the roll is lower than this formula, the attack hits.
If the player's AC is below 0, it is instead treated as a random number between -1 and their displayed AC. Lower AC is always better, but even at -100 AC it is possible to get a very unlucky roll and still get hit.
The wiki includes tables showing statistically expected damage for differing armor class values from various attackers; this can give a general idea of how much AC protects you, but this also includes the damage resistance from having negative AC.
Answer from user qazmlpok at gaming.stackexchange.com.
What is the maximum speed an AMX 40 can achieve over flat terrain in World Of Tanks?
Should I turn in sebastion in Hogwarts Legacy?
What advantage do I get by evolving my Pokemon?
Are there any jump scares - giant sea monsters that would affect someone with thalassophobia?
What are the in-app purchases for Layton and the Diabolical Box on Android?
Xbox One controller will not turn Xbox on
Is there a limit for the waiting queue outside the vault?
How to Trade Between Pokemon Ruby and Sapphire emulator on my Macbook pro?
Does Circuit Superstars support splitscreen with two (identical) controllers?
How do I get the ghillie suit?


