Difference between revisions of "Miscellaneous item"
m (→Description: fix typo, mention wand of polymorph) |
Darth l33t (talk | contribs) (rewrite to simplify and make the style consistent with the other pages) |
||
Line 1: | Line 1: | ||
− | 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}} | + | 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}} The following monster types are ineligible for miscellaneous items: |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* [[Animal]]s | * [[Animal]]s | ||
* Monsters with [[explosion attack]]s | * Monsters with [[explosion attack]]s | ||
Line 28: | Line 7: | ||
* [[Keystone Kop]]s | * [[Keystone Kop]]s | ||
− | In addition, | + | 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's [[difficulty]] is 5 or less, it has a {{frac|30}} chance to receive 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 to receive 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]]; 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}} | |
==Use== | ==Use== |
Revision as of 18:55, 15 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] The following monster types are ineligible for miscellaneous items:
- Animals
- Monsters with explosion attacks
- Mindless monsters
- Ghosts and shades
- Keystone Kops
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 1⁄30 chance to receive a polymorph item, which will be a wand of polymorph 1⁄6th 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 1⁄40 chance to receive 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 (1⁄6th of the time) or a potion of speed
- a wand of make invisible (1⁄6th of the time) or a potion of invisibility; neither if the monster is peaceful and the player cannot currently see invisible
- a potion of gain level
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
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.