Difference between revisions of "Armor class"

From NetHackWiki
Jump to navigation Jump to search
(More accurate information)
Line 9: Line 9:
 
The reason a lower armor class is better is thus:
 
The reason a lower armor class is better is thus:
  
Any number lower than 10 means the monster has to subtract that many points from its [[to-hit]] rollA monster's to-hit roll is a number chosen at random, which is then added to any to-hit bonuses it might haveAny number greater than 0 means the monster hit.
+
# The value of your AC is determined.  For any positive value (0 to 10), that number is used.  For any negative value, a number between your AC and 0 is chosen at random.  10 is then added to that number.
 +
# The monster's level is added to that numberIf the monster can't see you, subtract 2.  If the monster is trapped, subtract 2.
 +
# If that number is less than 0, it is set to 0.
 +
# A random number between 0 and 20 is chosen.  If the monster has more than 1 attack, 1 is added for each additional attack.  (i.e. If the monster has 2 attacks, the second attack is 0 - 21, 3 attacks, 0 - 22, etc.)If the first number is higher than the random number, it is a hit.  This means that the monster is less likely to hit you on each additional attack.
  
 
Examples:
 
Examples:
  
# A monster gets a 15 as a random number, and has a to-hit bonus of 0, giving it a 15Your AC is -10, meaning 20 is subtracted from the monster's roll (you have 20 more AC than the starting number, 10), giving -5.  The monster misses.
+
# Your AC is 7 and 10 is added to that, giving 17.  The monster has a level of 1Added together, that gives 18.  On the first attack, the random number chosen is a 12.  The monster hits.
# A monster gets 5 as a random number, and has a to-hit bonus of 3, giving it 8Your AC is 3, meaning 7 is subtracted from the monster's roll, giving 1.  The monster has hit.
+
# Your AC is -5.  Since it is a negative number, a number between -5 and 0 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 attacksAdded 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.
  
 
Any AC of negative value (-1 or lower) also decreases the damage you take. <ref>[[mhitu.c#line1560]] (damage taken)</ref>
 
Any AC of negative value (-1 or lower) also decreases the damage you take. <ref>[[mhitu.c#line1560]] (damage taken)</ref>

Revision as of 04:14, 25 January 2007

In Dungeons and Dragons, your armor class is a number representing your defense against attacks from monsters. NetHack borrows this concept. 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.

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.

Having a good AC is not enough to protect from some attacks; you also need to obtain resistance. In particular, reflection is a good idea.

How it works

The reason a lower armor class is better is thus:

  1. The value of your AC is determined. For any positive value (0 to 10), that number is used. For any negative value, a number between your AC and 0 is chosen at random. 10 is then added to that number.
  2. The monster's level is added to that number. If the monster can't see you, subtract 2. If the monster is trapped, subtract 2.
  3. If that number is less than 0, it is set to 0.
  4. A random number between 0 and 20 is chosen. If the monster has more than 1 attack, 1 is added for each additional attack. (i.e. If the monster has 2 attacks, the second attack is 0 - 21, 3 attacks, 0 - 22, etc.). If the first number is higher than the random number, it is a hit. This means that the monster is less likely to hit you on each additional attack.

Examples:

  1. Your AC is 7 and 10 is added to that, giving 17. The monster has a level of 1. Added together, that gives 18. On the first attack, the random number chosen is a 12. The monster hits.
  2. Your AC is -5. Since it is a negative number, a number between -5 and 0 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.

Any AC of negative value (-1 or lower) also decreases the damage you take. [1]

References

  1. mhitu.c#line1560 (damage taken)