Difference between revisions of "Miscellaneous item"

From NetHackWiki
Jump to navigation Jump to search
(rewrite to simplify and make the style consistent with the other pages)
(Use: document monster usage)
Line 19: Line 19:
  
 
==Use==
 
==Use==
{{todo|Outline the circumstances under which a monster will make use of a miscellaneous item.}}
+
[[Intelligent monster]]s will use miscellaneous items when they are within 6 tiles Euclidean distance of you.{{refsrc|src/muse.c|1644|nethack=3.6.6}}
  
Monsters with hands will attempt to zap the wands at themselves and quaff the potion of gain level immediately.
+
Monsters with [[monster difficulty]] less than 6 will attempt to use an adjacent [[polymorph trap]].{{refsrc|src/muse.c|1656|nethack=3.6.6}}
 +
 
 +
Monsters with hands will use one of these items:{{refsrc|src/muse.c|1679|nethack=3.6.6}}
 +
*[[Potion of gain level]] – but guards, shopkeepers, and priests will not use cursed ones.
 +
*[[Bullwhip]] by adjacent non-peaceful monsters.
 +
*[[Wand of make invisible]] and [[potion of invisibility]] by non-invisible monsters; peaceful monsters will not use these unless you [[see invisible]].
 +
*[[Wand of speed monster]] and [[potion of speed]] by monsters that are not already fast, except for guards.
 +
*[[Wand of polymorph]] and [[potion of polymorph]] by monsters with difficulty less than 6.
  
 
==See also==
 
==See also==

Revision as of 04:08, 15 July 2022

In NetHack, a miscellaneous item may be created as part of a monster's inventory when the monster is generated. This will happen if the monster's level equals or exceeds the roll of a d100.[1] The following monster types are ineligible for miscellaneous items:

In addition, regular soldiers have a 12/13 chance of missing out on the miscellaneous item roll.[2]

If the monster's difficulty is 5 or less, it has a 130 chance to receive a polymorph item, which will be a wand of polymorph 16th of the time, or else a potion of polymorph. Otherwise, if the monster is living (e.g excluding undead, golems, and vortices among others), it has a 140 chance to receive an amulet of life saving.

Otherwise, the monster gets an item from one of these sets, with each set equally likely:

Guards will not use speed-boosting items, and according to the code are not meant to receive them - however, mtmp->isgd is only set after makemon() is called, thus making it possible for them to generate with one. In practice, this only means that you will occasionally find a potion of speed or wand of speed monster in a deceased guard's inventory.[3] [4]

Use

Intelligent monsters will use miscellaneous items when they are within 6 tiles Euclidean distance of you.[5]

Monsters with monster difficulty less than 6 will attempt to use an adjacent polymorph trap.[6]

Monsters with hands will use one of these items:[7]

See also

References