Difference between revisions of "To-hit"

From NetHackWiki
Jump to navigation Jump to search
m (Melee: self-reminder)
(Your characteristics and status: skill details)
Line 21: Line 21:
 
* A bonus equal to your [[experience level]], if you are in your natural form.
 
* A bonus equal to your [[experience level]], if you are in your natural form.
 
* A bonus equal to your monster type's "level" if you are [[polymorph]]ed.<ref>[[uhitm.c#line237]] (natural and polymorphed level bonuses)</ref>
 
* A bonus equal to your monster type's "level" if you are [[polymorph]]ed.<ref>[[uhitm.c#line237]] (natural and polymorphed level bonuses)</ref>
 +
* +1 if you are at experience level 1 or 2.<ref>[[weapon.c#line703]] (beginner to-hit bonus)</ref>
 +
* A bonus or penalty from -4 to +3, depending on your [[skill]] with the wielded weapon, if you are not two-weaponing.<ref>[[weapon.c#line1109]] (skill bonus)</ref>
 +
* A penalty from -9 to -3, depending on your [[two weapon combat]] skill (or your weapon skill, if it is lower), if you are two-weaponing.<ref>[[weapon.c#line1118]] (two weapon penalty)</ref>
 +
* A penalty if riding a steed: -2 if restricted or unskilled in [[riding]], -1 if basic, and no penalty if skilled or better.<ref>[[weapon.c#line1146]] (base riding penalty)</ref>
 +
* An additional -2 if you engage in two weapon combat while riding a steed.<ref>[[weapon.c#line1154]] (two weapon riding penalty)</ref>
 
* -1 if you are [[encumbrance|burdened]], -3 if you are stressed, or -5 if you are strained; if you are overtaxed or overloaded you will be unable to attack at all.<ref>[[uhitm.c#line277]] (weight penalty)</ref>
 
* -1 if you are [[encumbrance|burdened]], -3 if you are stressed, or -5 if you are strained; if you are overtaxed or overloaded you will be unable to attack at all.<ref>[[uhitm.c#line277]] (weight penalty)</ref>
 
* -3 if you are currently [[trap]]ped.<ref>[[uhitm.c#line278]] (trap penalty)</ref>
 
* -3 if you are currently [[trap]]ped.<ref>[[uhitm.c#line278]] (trap penalty)</ref>
 
* If you are [[engulfing|engulfed]], you always hit.<ref>[[uhitm.c#line478]] (always hit if engulfed)</ref>
 
* If you are [[engulfing|engulfed]], you always hit.<ref>[[uhitm.c#line478]] (always hit if engulfed)</ref>
 
{{todo|Add info on skill level.}}
 
  
 
=== Monster characteristics and status ===
 
=== Monster characteristics and status ===

Revision as of 01:29, 4 November 2006

When attacking a monster, you must make a successful to-hit roll in order to actually strike it. To do this, your to-hit bonus must exceed the roll of 1d20.[1]

Melee

These are some of the factors that might affect your chance to hit in melee:

Weapon and equipment

Your characteristics and status

  • +1 for all melee attacks.[7]
  • Bonuses based on your strength and dexterity.[8]
  • A bonus equal to your Luck.[9]
  • A bonus equal to your experience level, if you are in your natural form.
  • A bonus equal to your monster type's "level" if you are polymorphed.[10]
  • +1 if you are at experience level 1 or 2.[11]
  • A bonus or penalty from -4 to +3, depending on your skill with the wielded weapon, if you are not two-weaponing.[12]
  • A penalty from -9 to -3, depending on your two weapon combat skill (or your weapon skill, if it is lower), if you are two-weaponing.[13]
  • A penalty if riding a steed: -2 if restricted or unskilled in riding, -1 if basic, and no penalty if skilled or better.[14]
  • An additional -2 if you engage in two weapon combat while riding a steed.[15]
  • -1 if you are burdened, -3 if you are stressed, or -5 if you are strained; if you are overtaxed or overloaded you will be unable to attack at all.[16]
  • -3 if you are currently trapped.[17]
  • If you are engulfed, you always hit.[18]

Monster characteristics and status

  • The target monster's AC.[19]
  • +2 (cumulative) against a stunned, fleeing, or sleeping monster.[20]
  • +4 against a paralysed monster.[21]

Monster-specific

Ranged

These are some of the factors that might affect your chance to hit when throwing or kicking items, or when applying a polearm:

  • -1 for all ranged attacks.[27]
  • A bonus based on your dexterity.
  • A bonus equal to your Luck.[28]
  • A bonus equal to your experience level, if you are in your natural form.
  • A bonus equal to your monster type's "level" if you are polymorphed.[29]
  • A bonus based on how far away the target is. A target adjacent to you gives a +2 bonus; this decreases by 1 for each move's worth of distance, to a maximum penalty of -4.
  • -2 if you are wielding any bow while wearing gauntlets of power.
  • -3 if you are wielding any bow while wearing gauntlets of fumbling.

A user has suggested improving this page or section as follows:

"Finish this section, based on dothrow.c#thitmonst."

Strength and dexterity bonuses

The strength bonus applies to melee attacks only.

Strength Bonus
3 to 5 -2
6 to 7 -1
8 to 16 0
17 to 18/50 +1
18/51 to 18/99 +2
18/** to 25 +3

The dexterity bonus applies to both melee and ranged attacks.

Dexterity Bonus
3 -3
4 to 5 -2
6 to 7 -1
8 to 14 0
15 +1
16 +2
17 +3
18 +4
19 +5
20 +6
21 +7
22 +8
23 +9
24 +10
25 +11

References

  1. uhitm.c#line478 (to-hit roll)
  2. weapon.c#line133 (enchantment bonus for weapons)
  3. weapon.c#line137 (item to-hit bonus)
  4. weapon.c#line164 (artifact bonus)
  5. uhitm.c#line236 (your to-hit bonus from rings, u.uhitinc)
  6. uhitm.c#line267 (monk penalty and bonus)
  7. uhitm.c#line236 (base +1 for melee)
  8. weapon.c#line688 (strength and dexterity bonuses)
  9. uhitm.c#line236 (Luck bonus)
  10. uhitm.c#line237 (natural and polymorphed level bonuses)
  11. weapon.c#line703 (beginner to-hit bonus)
  12. weapon.c#line1109 (skill bonus)
  13. weapon.c#line1118 (two weapon penalty)
  14. weapon.c#line1146 (base riding penalty)
  15. weapon.c#line1154 (two weapon riding penalty)
  16. uhitm.c#line277 (weight penalty)
  17. uhitm.c#line278 (trap penalty)
  18. uhitm.c#line478 (always hit if engulfed)
  19. uhitm.c#line236 (monster AC)
  20. uhitm.c#line250 (monster status bonuses)
  21. uhitm.c#line257 (paralysed monster bonus)
  22. weapon.c#line142 (blessed bonus against demons/undead)
  23. weapon.c#line145 (spear versus "kebabable" monster)
  24. weapon.c#line149 (trident versus swimmers)
  25. weapon.c#line155 (pick versus phasing and thick-skinned)
  26. uhitm.c#line264 (elves versus orcs)
  27. dothrow.c#line1198 (base -1 for ranged)
  28. uhitm.c#line236 (Luck bonus)
  29. uhitm.c#line237 (natural and polymorphed level bonuses)


This page is a stub. Should you wish to do so, you can contribute by expanding this page.