In Dungeons and Dragons, your armor class, or AC, represents your defense against attacks from monsters. NetHack borrows this concept; as in older editions of D&D, a lower AC is better than a higher one. A character with no armor or protection has AC 10. It is best to reduce your AC below 0. An ascension kit usually includes an AC below -20, -30, and sometimes -40. A good AC is not enough to protect from some attacks; you also need to obtain resistances. In particular, reflection is a good idea.
Because you always know your AC, you can identify the enchantment of armor by wearing it. For example, +1 armor lowers your AC by one more than normal.
How it works
When a monster attacks you, 1d20 is rolled. Rolling lower than a target number results in a hit. In simple situations at low levels, this target number is equal to:
10 + AC + the monster's level (i.e., the number of hit dice they have).
So, say your AC is 6, and you are fighting a level 1 goblin. The target number for the goblin to successfully attack you is 10 + 6 + 1 = 17. This is bad news; the goblin is going to hit you 80% of the time.
At higher levels and in funny circumstances, things become more complex. The precise details are:
- If your AC is negative, the formula for the target number is 10 + (a random number from -1 to your AC) + the monster's level.
- Circumstantial modifiers may be applied. For instance, if the monster can't see you or is trapped, subtract 2 for each.
- If the final target number is so good that it would be less than or equal to zero, set it to 1. Note that a value of 1 is still unhittable, since it must roll under the target number.
- If the monster is using a weapon, it may get a to-hit bonus or penalty from that weapon. This is the only hit modification that is applied after the above setting of a too-low target number to 1.
- If the monster gets multiple attacks, each attack beyond the first is made as if the die rolled had an extra side. So a monster with three attacks would roll 1d20, then 1d21, then 1d22. In this way each extra attack is less and less likely to hit you.
Examples of these more complex cases:
- Your AC is -5. Since it is a negative number, a number between -5 and -1 is chosen at random. In this case, it is -3. 10 is added to that, giving 7. The monster has a level of 4, and it has two attacks. Added together, that gives us 11. On the first attack, the random number chosen is 10. The monster hits. On the second attack, the random number chosen is 12 (out of a possible 21). The monster misses.
- Your AC is -20. A number between -20 and -1 is chosen at random. In this case, -17 is chosen. 10 is added to that, giving -7. The monster has a level of 1. Added together, that gives -6. Since -6 is less than 0, it is set to 1. On the first attack, the random number chosen is 1. The monster misses, with a special attack message (it "just misses", rather than "misses").
- Your AC is -20. A number between -20 and -1 is chosen at random. In this case, -4 is chosen. 10 is added to that, giving 6. The monster has a level of 1. Added together, that gives 7. On the first attack, the random number chosen is 5. 7 is greater than 5, so the monster hits.
Any AC of negative value (-1 or lower) also decreases the damage you take.
Let's take a look at example 3 and see how a lower AC would reduce damage. The monster does 5 points of damage when it hits.
First, it determines if your AC is less than 0; in this case it is. The damage is then reduced by a random number between 1 and the absolute value of your AC, which in this case would be 1 to 20. For any value lower than 1, it is set to 1 (the monster will always do at least 1 point of damage when it hits). (This is applied before half physical damage, if you have that as well.)
This is another good reason to reduce your AC as low as you can get it.
The lowest possible AC is -128, it would be fixed at that value even when your combined monster AC, intrinsic protection and armor could have made it lower. However, positive AC behaves differently from negative AC: it will wrap around from 127 to -128. (This is possible by eating lots of negatively enchanted rings of protection.)
Order of Armor class
The various types of body armor provide the following modifications to AC:
Your naked, unprotected AC is 10, so for example wearing only an elven mithril-coat will give you an AC of (10-5)=5. Bear in mind that not all armors at a given AC are equal; they differ in MC, effect on spellcasting, etc.
How much is enough?
The data for the following table comes from 500,000 simulated minotaur attacks (claw 3d10, claw 3d10, butt 2d8). Minotaurs appear often in the later game, hit hard, and ignore Elbereth, making them the biggest physical damage threat in the late game and a natural choice of benchmark.
The percentage entries indicate how likely you are to take less than a certain amount of damage. For example, if your armor class is -15, 50% of the time a minotaur's three attacks will do less than 16 damage total. And if your armor class is -25, you will take no damage 25% of the time.
|Armor class||Mean damage per round||25% less than||50% less than||95% less than||99% less than|
Two things should be noted. First, the effect of an additional point of AC gets lower the lower it already is. Second, due to the nature of the attack and damage calculations, no amount of armor class can protect you with 100% certainty. Even if your armor class is -30, one time in a hundred a minotaur will hit you for at least 31 damage in one round.
Best realistically possible armor class
There is no limit to how much intrinsic protection you can have, but donating to priests will rarely grant more than nine points. Further protection can be granted by rings of protection or prayer, or temporarily by the protection spell. Many polymorphed forms have base armor class better than 10. Assuming nine points protection, seven piece armor with each piece the best possible for its type, and each piece enchanted to +5 (elven pieces to +7), one's armor class would be:
|Armor piece||Protection||With enchantment|
|Any dragon scale mail||9||14|
|Cloak of protection||3||8|
|Elven leather helm||1||8|
|Gloves, any type||1||6|
|Hawaiian shirt or T-shirt||0||5|
totaling 9 + (14 + 8 + 8 + 9 + 8 + 6 + 5) = 67 points, for an armor class of -57. However, it would be rare for a player to use this equipment: many characters would rather twoweapon than wear a shield, jumping boots or speed boots are usually preferable to elven if available, and a cloak of magic resistance or robe is often more useful than a cloak of protection. An armor class of -57 is also overkill for any ordinary game, so most players would rather use their magic marker charges on something more useful than excessive scrolls of enchant armor.
Dexterity has an impact on AC.
Doppelgangers and Monks have complicated special bonuses. If Doppelgangers don't wear any body armor. While Monks, if they wear no body armor excluding robes, no shields and no weapons.