Search

From NetHackWiki
Revision as of 16:03, 8 July 2009 by 62.80.22.186 (talk) (Give bloated ActiveX edit another chance: make it more clear you have to search many times)
Jump to navigation Jump to search

The search command, which is used by pressing the [s] key, causes you to search the 8 squares surrounding you for secret doors, secret corridors, hidden monsters, and hidden traps. It may require several attempts to locate many of these. New characters still have a 22% chance of missing a door after 10 times searching the same spot.

Searching will always reveal hidden or invisible monsters which are in any square adjacent to you.

Your chance of success for other forms of searching is primarily dependent on Luck.

Wielding Excalibur improves your chance of finding secret doors and secret corridors based on its enchantment. Wearing any sort of lenses also improves your chance of finding these.

No other factors affect the success rate of searching.

The automatic searching property will cause you to automatically search (just like using the command, except that it does not find monsters) every turn. Some roles can gain this as an intrinsic, and it is granted by wielding Excalibur or wearing a ring of searching.

Details

For source reference, see dosearch0 in detect.c.

Secret Doors and Corridors

  • Lenses give a searching bonus of +2 if you are not blind.
  • Excalibur gives a searching bonus equal to its enchantment. (Nothing prevents this from being a penalty if Excalibur is negatively enchanted.)
  • Your bonus cannot exceed 5.
  • You will find a secret door or corridor if rnl(7-bonus) is zero.

Traps

  • You will find a trap if rnl(8) is zero.
  • This will activate statue traps (exercising wisdom), and reveal other traps.

Searching Chances

Your chances of searching success based on your current Luck and whether you are using any equipment which aids searching.

Luck Traps Secret Doors/Corridors
Normal Lenses +5 Excalibur
<-2 <0.24% <0.27% <0.38% <0.94%
-2 to 2 12% 14% 20% 50%
3 to 5 25% 28% 40% 99%
6 to 8 37% 42% 59% 99%
9 to 11 49% 56% 78% 99%
12 to 13 61% 70% 98% 99%