Difference between revisions of "Monster starting inventory"

From NetHackWiki
Jump to navigation Jump to search
m (refsrc)
(Weapons: a far simpler way to say the same thing)
Line 9: Line 9:
  
 
===Weapons===
 
===Weapons===
If a generated monster has a weapon attack, isn't being generated on the [[Rogue level]], and doesn't have special rules according to its species, a die - usually a [[d notation|d14]] - is rolled. This default die changes depending on the monster's flags: two sides are subtracted if the monster is defined in [[monst.c]] as either [[M2_LORD|a lord]] or [[M2_NASTY|nasty]], and four are subtracted if the monster is defined as [[M2_PRINCE|a prince]]. These subtractions also overlap, e.g. a hypothetical monster that is defined as a "prince" and "nasty" would use a d8.
+
If a generated monster has a weapon attack, isn't being generated on the [[Rogue level]], and doesn't have special rules according to its species, it has a {{sfrac|5|14 - ''N''}} chance to receive a weapon. ''N'' is the sum of: 2 if the monster is [[M2_NASTY|nasty]], 2 if it's [[M2_LORD|a lord]], and 4 if it's [[M2_PRINCE|a prince]].
  
The monster may receive a weapon based on the result of this roll and whether or not it is [[strong]]:
+
If the monster receives a weapon, it gets one from the following sets with equal probability, depending on whether it is [[strong]]:
  
 
{|class="wikitable"
 
{|class="wikitable"
!roll!!strong!!not strong
+
!strong!!not strong
 
|-
 
|-
|1||[[battle-axe]]||3-14 [[dart]]s
+
|[[battle-axe]]||3-14 [[dart]]s
 
|-
 
|-
|2||[[two-handed sword]]||[[crossbow]], 3-14 [[bolt]]s
+
|[[two-handed sword]]||[[crossbow]], 3-14 [[bolt]]s
 
|-
 
|-
|3||colspan=2|[[bow]], 3-14 [[arrow]]s
+
|colspan=2|[[bow]], 3-14 [[arrow]]s
 
|-
 
|-
|4||[[long sword]]||3-5 [[dagger]]s
+
|[[long sword]]||3-5 [[dagger]]s
 
|-
 
|-
|5||[[lucern hammer]]||[[aklys]]
+
|[[lucern hammer]]||[[aklys]]
|-
 
|6+||colspan=2|nothing
 
 
|}
 
|}
  

Revision as of 17:29, 6 October 2022

In NetHack, certain types of monsters may be created with objects in their starting inventory appropriate to their species - a monster's starting inventory may also contain a random offensive item, miscellaneous item, and/or defensive item.

The items that spiders and snakes are generated with during initial level creation are not part of their starting inventory, as they are created for the monsters to hide under.

Description

Monster starting inventory is distributed to each applicable monster at level creation, as well as each time a new monster is created.[1] Monsters generated in bones files will have whatever inventory they were carrying at the time of its creation; monsters created by reverse genocide always have empty starting inventories.

A pretty comprehensive spoiler can be found here.

Weapons

If a generated monster has a weapon attack, isn't being generated on the Rogue level, and doesn't have special rules according to its species, it has a 514 - N chance to receive a weapon. N is the sum of: 2 if the monster is nasty, 2 if it's a lord, and 4 if it's a prince.

If the monster receives a weapon, it gets one from the following sets with equal probability, depending on whether it is strong:

strong not strong
battle-axe 3-14 darts
two-handed sword crossbow, 3-14 bolts
bow, 3-14 arrows
long sword 3-5 daggers
lucern hammer aklys

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

"List the species-specific rules for monster weapons. If this would be too long, maybe pare it down to the "important" ones."

Armor

In addition to any other items, monsters can also get armor. This includes all mercenaries - members of the Yendorian army, guards, watchmen, watch captains - and mummies.

For mercenaries, armor items spawned are based on a complex mechanism to approximate the target AC of the given creature:

For mummies, there is a unique 67 chance for a generated mummy to have a mummy wrapping.

Death drops

Main article: Death drop

Monsters killed by the player will drop their inventory, along with random objects that are generated upon their death. Some monsters also leave behind certain non-random body parts, such as unicorn horns or dragon scales.

Strategy

Monster starting inventory can provide valuable hints at the true identities of objects with randomized appearances.

References