Difference between revisions of "Miscellaneous item"

From NetHackWiki
Jump to navigation Jump to search
m
Line 1: Line 1:
A '''miscellaneous item''' may be created as part of a [[monster starting inventory|monster's inventory]] when the monster is generated. This will happen if the monster's level equals or exceeds the roll of a d100.{{refsrc|src/makemon.c|796|version=NetHack 3.6.6}}
+
In ''[[NetHack]]'', a '''miscellaneous item''' may be created as part of a [[monster starting inventory|monster's inventory]] when the monster is generated. This will happen if the monster's level equals or exceeds the roll of a d100.{{refsrc|src/makemon.c|796|version=NetHack 3.6.6}}
  
 +
==Description==
 +
The following objects qualify as miscellaneous items:
 +
 +
* [[amulet of life saving]]
 +
* [[potion of gain level]]
 +
* [[potion of invisibility]]
 +
* [[poiton of polymorph]]
 +
* [[potion of speed]]
 +
* [[wand of make invisible]]
 +
* [[wand of speed monster]]
 +
 +
Monsters that are eligible for miscellaneous items will receive q at most. If the monster's [[difficulty]] is 5 or less, there is a {{frac|36}} chance that it will be a potion of polymorph, and a {{frac|180}} chance that its miscellaneous item will be a wand of polymorph. If the monster has not received either and is living (e.g excluding [[undead]], [[golem]]s, and [[vortices]] among others), there is a {{frac|40}} chance that it will be given an amulet of life saving.
 +
 +
Finally,  none of the above possibilities are applied, the monster has an equal chance of receiving one of the following three sets of items:
 +
* a potion of speed ({{frac|5|6}}) or else a wand of speed monster ({{frac|6}})
 +
* a potion of invisibility ({{frac|5|6}}) or else a [[wand of make invisible]] ({{frac|6}}); nothing is given if the monster that would receive either item is peaceful, and the player cannot currently [[see invisible]]
 +
* [[potion of gain level]]{{refsrc|src/muse.c|2010|version=NetHack 3.6.6}}
 +
 +
==Generation==
 
The following monster types are ineligible for miscellaneous items:
 
The following monster types are ineligible for miscellaneous items:
 
* [[Animal]]s
 
* [[Animal]]s
Line 7: Line 26:
 
* [[Ghost]]s and [[shade]]s
 
* [[Ghost]]s and [[shade]]s
 
* [[Keystone Kop]]s
 
* [[Keystone Kop]]s
* {{frac|12|13}} of all [[soldier]]s{{refsrc|src/makemon.c|791|version=NetHack 3.6.6}}
 
 
==Description==
 
Each monster will receive at most one miscellaneous item. If the monster's [[difficulty]] is 5 or less, there is a {{frac|36}} chance that it will be a [[potion of polymorph]] and a {{frac|180}} chance that its miscellaneous item will be a [[wand of polymorph]].
 
  
Next, if the monster is living ([[undead]] monsters, [[golem]]s, and [[vortices]] among others are nonliving), there is a {{frac|40}} chance that it will be given an [[amulet of life saving]].
+
In addition, only {{frac|13}} of all [[soldier]]s will be generated with a miscellaneous item.{{refsrc|src/makemon.c|791|version=NetHack 3.6.6}}
  
If neither of these possibilities is selected, the monster has an equal chance of taking one of the following three options:
+
Of note is that [[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}}
* [[potion of speed]] ({{frac|5|6}}) or else a [[wand of speed monster]] ({{frac|6}}){{footnote|Despite code to make [[guard]]s not receive speed items, <code>mtmp->isgd</code> is only set after <code>makemon()</code> is called,{{refsrc|src/vault.c|387|version=NetHack 3.6.6}} thus guards can receive these items. This has no practical gameplay effect (other than possibly receiving a speed item if you kill a guard) because guards do not use speed items.{{refsrc|src/muse.c|1731|version=NetHack 3.6.6}}}}
 
* [[potion of invisibility]] ({{frac|5|6}}) or else a [[wand of make invisible]] ({{frac|6}}); nothing if the monster is peaceful and the player cannot currently [[see invisible]]
 
* [[potion of gain level]]{{refsrc|src/muse.c|2010|version=NetHack 3.6.6}}
 
  
 
==Use==
 
==Use==

Revision as of 04:47, 13 March 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]

Description

The following objects qualify as miscellaneous items:

Monsters that are eligible for miscellaneous items will receive q at most. If the monster's difficulty is 5 or less, there is a 136 chance that it will be a potion of polymorph, and a 1180 chance that its miscellaneous item will be a wand of polymorph. If the monster has not received either and is living (e.g excluding undead, golems, and vortices among others), there is a 140 chance that it will be given an amulet of life saving.

Finally, none of the above possibilities are applied, the monster has an equal chance of receiving one of the following three sets of items:

Generation

The following monster types are ineligible for miscellaneous items:

In addition, only 113 of all soldiers will be generated with a miscellaneous item.[3]

Of note is that 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.[4] [5]

Use

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

"Outline the circumstances under which a monster will make use of a miscellaneous item."

Monsters with hands will attempt to zap the wands at themselves and quaff the potion of gain level immediately.

See also

References