Difference between revisions of "Monster creation"
(Added information as to how the game decides whether or not to create a monster) |
|||
Line 2: | Line 2: | ||
The '''normal mechanism of monster creation''', responsible for the vast majority of [[monster]]s in [[NetHack]], is used when the game wants to create an unspecified opponent of adequate difficulty for the player. | The '''normal mechanism of monster creation''', responsible for the vast majority of [[monster]]s in [[NetHack]], is used when the game wants to create an unspecified opponent of adequate difficulty for the player. | ||
+ | |||
+ | Monster Generation occurs when (1) the level is created and (2) at the end of each turn. | ||
+ | * For level creation: | ||
+ | ** In normal room-and-corridor levels, there is a 33% chance of generating a monster (or group) per room | ||
+ | ** In mazes, there is a 33% chance of generating 7-11 monsters + 0-2 minotaurs | ||
+ | * At the end of each turn, the possibility of creating a monster depends on the following: {{refsrc|allmain.c|121}} | ||
+ | ** If the player is a demigod, monster generation happens with probability 1/25 (4%). | ||
+ | ** If the player is in Gehenmon, monster generation happens with probability 1/50 (2%). | ||
+ | ** If the player is above Gehenmon and not a demigod, monster generation happens with probability 1/70. | ||
When this occurs, each eligible monster has a probability equal to its effective [[monster frequency]] divided by the sum of the monster frequencies of every eligible monster. This may be thought of as generating a list of all such monsters with each appearing as many times as its frequency, and then choosing at random hence. A monster is eligible if it: | When this occurs, each eligible monster has a probability equal to its effective [[monster frequency]] divided by the sum of the monster frequencies of every eligible monster. This may be thought of as generating a list of all such monsters with each appearing as many times as its frequency, and then choosing at random hence. A monster is eligible if it: |
Revision as of 14:27, 2 October 2017
A user has suggested improving this page or section as follows:
"How does the game decide whether or not to create a monster in the first place? And where to place it?"
The normal mechanism of monster creation, responsible for the vast majority of monsters in NetHack, is used when the game wants to create an unspecified opponent of adequate difficulty for the player.
Monster Generation occurs when (1) the level is created and (2) at the end of each turn.
- For level creation:
- In normal room-and-corridor levels, there is a 33% chance of generating a monster (or group) per room
- In mazes, there is a 33% chance of generating 7-11 monsters + 0-2 minotaurs
- At the end of each turn, the possibility of creating a monster depends on the following: [1]
- If the player is a demigod, monster generation happens with probability 1/25 (4%).
- If the player is in Gehenmon, monster generation happens with probability 1/50 (2%).
- If the player is above Gehenmon and not a demigod, monster generation happens with probability 1/70.
When this occurs, each eligible monster has a probability equal to its effective monster frequency divided by the sum of the monster frequencies of every eligible monster. This may be thought of as generating a list of all such monsters with each appearing as many times as its frequency, and then choosing at random hence. A monster is eligible if it:
- Is no greater in difficulty than the average of the level's difficulty and the player level [2]
- Is no lower in difficulty than one-sixth that of the current level's difficulty[3]
- Is neither unique nor marked as not randomly generated (G_NOGEN) [4]
- Is not genocided or extinct
- If you are on the rogue level:
- Is represented by an upper case letter
- If you are in Gehennom:
- Is not Lawful
- Is not marked as not generated in Gehennom (G_NOHELL) (e.g. winter wolf)
- If you are not in Gehennom:
- Is not marked as only generated in Gehennom (G_HELL) (e.g. hell hound)
- If you are on the Plane of Water:
- If you are on the Plane of Fire:
- If you are on the Plane of Air:
- Is flying, whirly, floating, amorphous or non-corporeal[7]
- Is not a trapper or lurker above
See Also
- demons#demons summoning demons
- summon nasties
- summon insects
- polymorph
- spellbook of create monster
- wand of create monster
- scroll of create monster
- special rooms
- special level
References
This page may need to be updated for the current version of NetHack.
It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.
Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.