Difference between revisions of "Miscellaneous item"

From NetHackWiki
Jump to navigation Jump to search
m (Text replace - "<ref> *{{ *[sS]ourcecode *\| *([a-zA-Z_][a-zA-Z0-9_]*\.[ch]) *\| *([0-9][0-9]*) *}} *<\/ref> " to "{{refsrc|$1|$2}}")
m (pothole)
 
(22 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{todo|This page describes the generation of miscellaneous items, but not how monsters use them.}}
+
In ''[[NetHack]]'', a '''miscellaneous item''' may be created as part of a [[monster starting inventory|monster's inventory]] when the monster is generated.  
When a monster is generated, there is a chance that it will be given a '''miscellaneous item''' to vex and confound adventurers. This will happen if the monster's level equals or exceeds the roll of a ''d100''.{{refsrc|makemon.c|657}}
+
 
 +
==Description==
 +
Monsters may be generated with a miscellaneous item if that monster's level equals or exceeds the roll of a d100.{{refsrc|src/makemon.c|796|version=NetHack 3.6.6}}
 +
 
 
The following monster types are ineligible for miscellaneous items:
 
The following monster types are ineligible for miscellaneous items:
 +
 
* [[Animal]]s
 
* [[Animal]]s
 
* Monsters with [[explosion attack]]s
 
* Monsters with [[explosion attack]]s
 
* [[Mindless]] monsters
 
* [[Mindless]] monsters
 
* [[Ghost]]s and [[shade]]s
 
* [[Ghost]]s and [[shade]]s
* [[Kop]]s
+
* [[Keystone Kop (monster class)|Keystone Kops]] of any rank
* [[Soldier]]s have a 12/13 chance of missing out on the miscellaneous item roll.
+
 
 +
In addition, regular [[soldier]]s have a 12/13 chance of missing out on the miscellaneous item roll.{{refsrc|src/makemon.c|791|version=NetHack 3.6.6}}
 +
 
 +
If the [[monster difficulty]] is 5 or less, it has a {{frac|30}} chance of receiving a polymorph item, which will be a [[wand of polymorph]] {{frac|6}}th of the time, or else a [[potion of polymorph]]. Otherwise, if the monster is living (e.g excluding [[undead]], [[golem]]s, and [[vortices]] among others), it has a {{frac|40}} chance of receiving an [[amulet of life saving]].
 +
 
 +
Otherwise, the monster gets an item from one of these sets, with each set equally likely:
 +
* a [[wand of speed monster]] ({{frac|6}}th of the time) or a [[potion of speed]]
 +
* a [[wand of make invisible]] ({{frac|6}}th of the time) or a [[potion of invisibility]] - or neither if the monster is [[peaceful]] and the player cannot currently [[see invisible]]
 +
* a [[potion of gain level]]
 +
 
 +
[[Guard]]s will not use [[speed]]-boosting items, and according to the code are not meant to receive them - however, <code>mtmp->isgd</code> is only set after <code>makemon()</code> 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.{{refsrc|src/vault.c|387|version=NetHack 3.6.6}} {{refsrc|src/muse.c|1731|version=NetHack 3.6.6}}
  
Each monster will receive at most one miscellaneous item. If the monster's [[difficulty]] is 5 or less, there is a 1/30 chance that its miscellaneous item will be a [[wand of polymorph]] (1/6) or else a [[potion of polymorph]] (5/6).
+
==Usage==
 +
[[Intelligent monster]]s with hands will use miscellaneous items when they are within 6 tiles Euclidean distance of you, with some exceptions:{{refsrc|src/muse.c|1644|nethack=3.6.6}}{{refsrc|src/muse.c|1679|nethack=3.6.6}}
  
Next, if the monster is living ([[undead]] monsters, [[golem]]s, and [[vortex|vortices]] among others are nonliving), there is a 1/40 chance that it will be given an [[amulet of life saving]].
+
* Guards, shopkeepers, and priests will not quaff a cursed potion of gain level.
 +
* Peaceful, non-invisible monsters will not use a wand of make invisible or potion of invisibility, unless you can see invisible.
 +
* Guards will not use a potion of speed or wand of speed monster.
  
If neither of these possibilities is selected, the monster has an equal chance of taking one of the following three options:
+
==See also==
* [[wand of speed monster]] (5/6) or else a [[potion of speed]] (1/6); nothing if the monster is a [[guard]]
+
* [[Death drop]]
* [[wand of make invisible]] (5/6) or else a [[potion of invisibility]] (1/6); nothing if the monster is peaceful and the player cannot currently [[see invisible]]
+
* [[Defensive item]]
* [[potion of gain level]]
+
* [[Offensive item]]
 +
* [[Monster starting inventory]]
  
 
== References ==
 
== References ==
 
<references/>
 
<references/>
{{nethack-343}}
+
{{nethack-366}}
[[Category:Items]]
+
[[Category:Monster Inventory]]
[[Category:Strategy]]
 

Latest revision as of 14:46, 10 March 2024

In NetHack, a miscellaneous item may be created as part of a monster's inventory when the monster is generated.

Description

Monsters may be generated with a miscellaneous item if that 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 difficulty is 5 or less, it has a 130 chance of receiving 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 of receiving 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]

Usage

Intelligent monsters with hands will use miscellaneous items when they are within 6 tiles Euclidean distance of you, with some exceptions:[5][6]

  • Guards, shopkeepers, and priests will not quaff a cursed potion of gain level.
  • Peaceful, non-invisible monsters will not use a wand of make invisible or potion of invisibility, unless you can see invisible.
  • Guards will not use a potion of speed or wand of speed monster.

See also

References