Monster creation

From NetHackWiki
(Redirected from Normal mechanism)
Jump to: navigation, search

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.

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:

See Also

References

This page may need to be updated for NetHack 3.6.0.

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 {{nethack-360}} or {{noversion}} as appropriate.

  1. makemon.c in NetHack 3.4.3, line 1226
  2. makemon.c in NetHack 3.4.3, line 1246
  3. makemon.c in NetHack 3.4.3, line 1152
  4. makemon.c in NetHack 3.4.3, line 69
  5. makemon.c in NetHack 3.4.3, line 71
  6. makemon.c in NetHack 3.4.3, line 73