Difference between revisions of "Random vault (UnNetHack)"

From NetHackWiki
Jump to navigation Jump to search
m (cat + var)
 
(33 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Random vaults (not to be confused with [[Vault]]s) are a part of the level generation formula introduced in [[UnNetHack]].  
+
'''Random vaults''' are a part of the level generation formula used in [[UnNetHack]]. Despite the name, these are entirely unrelated to the hidden [[vault]]s filled with gold, and are used to create unique rooms that connect normally to the rest of the dungeon.
  
All rooms that are not gold vaults or special rooms are selected from the list of random vaults.
+
In the UnNetHack source code, the random vaults are defined in <code>dat/vaults.des</code>. The upcoming release of [[NetHack 3.7.0]] will have a similar feature, called [[themed room]]s.
  
However, when selecting from this list, the probability is based on the "vaultgen" flag - for normal random room it is set to 2000 and for all other vaults, it defaults to 1, meaning that normal rooms (potentially replaced by special rooms) are much more likely than the rest of the vaults listed.
+
==Description==
 +
Every room that is not a vault or part of a special level and not a vault is selected from the list of random vaults. The "normal random room" has a {{frac|40|41}} chance of being selected; all the others have a {{frac|2050}} chance of being selected. Some of these rooms can be further transformed into [[special room]]s.
  
{{stub|Please improve this list}}
+
==Possible vaults==
  
== Possible Vaults ==
+
{|class="prettytable"
 +
!Name
 +
!Can be special
 +
!Size
 +
!Map
 +
!Notes
 +
|-
 +
|Normal random room
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* The regular rooms found in vanilla NetHack
 +
* The only one with a unique chance of being generated, (40/41 compared to 1/2050)
 +
|-
 +
|Fake Delphi
 +
|style="background-color:#FFF68F|Subroom only
 +
|11x9
 +
|
 +
|
 +
* A big room with a small room in the center, similar to Delphi
 +
* Both the room and the subroom are guaranteed to be lit
 +
* There is a door to the subroom, with a 25% chance of a second door.
 +
* Both doors have a chance of being locked and/or trapped and/or secret.
 +
|-
 +
|room with a subroom
 +
|style="background-color:#FFF68F|Subroom only
 +
|
 +
|
 +
|
 +
* A random room with a random subroom
 +
|-
 +
|big room, 1
 +
|style="background-color:pink"|No
 +
|30x10
 +
|
 +
|
 +
* Has a 75% chance of having a random normal room as a subroom
 +
** This subroom will have a randomly placed door with a 50% chance of a second door
 +
** Both doors have a chance of being locked and/or trapped and/or secret.
 +
|-
 +
|lava/ice/pool/tree/fountain room
 +
|style="background-color:pink"|No
 +
|3x3
 +
|
 +
|
 +
* The center square of the room has an equal chance of being lava, ice, pool, tree, or fountain.
 +
* Each other square has a 10% chance of being the same as the center square.
 +
|-
 +
|big room, 2 (max. vertical height)
 +
|style="background-color:pink"|No
 +
|10x17
 +
|
 +
|
 +
* 2d3 random hostile monsters
 +
|-
 +
|thin, long, horizontal room
 +
|style="background-color:pink"|No
 +
|17x3
 +
|
 +
|
 +
* 2d3 random hostile monsters
 +
|-
 +
|thin, long, vertical room
 +
|style="background-color:pink"|No
 +
|3x17
 +
|
 +
|
 +
* 2d3 random hostile monsters
 +
|-
 +
|tiny cage, big monster
 +
|style="background-color:pink"|No
 +
|5x5
 +
|
 +
|
 +
* DL1 or DL2: just a random room with a 2x2 subroom
 +
* Otherwise: subroom also has a random [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]] and the monster will now be caged in iron bars
 +
|-
 +
|room with dangerous monster and loot
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* Up to 3 monsters from the classes [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]]
 +
** 100% chance of the first random hostile monster
 +
** 50% chance of a second hostile monster
 +
** 25% chance of a third monster (not guaranteed to be hostile)
 +
** These percentages are calculated independently, so there is still a 25% chance, even if the 50% chance fails.
 +
* Random object
 +
** 100% chance of the first object
 +
** 75% chance of a second object
 +
** 50% chance of a third object
 +
** 25% chance of a fourth object (this one will be cursed)
 +
** 10% chance of a fifth object (this one will be blessed)
 +
|-
 +
!Name
 +
!Can be special
 +
!Size
 +
!Map
 +
!Notes
 +
|-
 +
|boulder room
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 1d6 + 3 boulders
 +
* 1d4 rolling boulder traps
 +
|-
 +
|spider nest
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* unlit
 +
* 3d3 webs
 +
|-
 +
|ice room
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 10% chance of a cold trap
 +
* Floor replaced by ice
 +
|-
 +
|random cloud/lava/ice/pool/tree room
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 30% of the tiles are replaced with cloud, lava, ice, pools, or trees (all will be the same type of replacement)
 +
|-
 +
|buried treasure
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* Guaranteed buried chest with 3d4 objects
 +
|-
 +
|massacre
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 5d5 random corpses of the following
 +
** @', "apprentice", "warrior", "ninja", "thug", "hunter", "acolyte", "abbot", "page", "attendant", "neanderthal", "chieftain", "student", "wizard", "valkyrie", "tourist", "samurai", "rogue", "ranger", "priestess", "priest", "monk", "knight", "healer", "cavewoman", "caveman", "barbarian", "archeologist", "convict"
 +
* Each corpse generated has a 90% chance of being the same as the previous corpse generated
 +
|-
 +
|statuary
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 5d5 statues
 +
* 3 statue traps, each with 50% of existing
 +
|-
 +
|light source
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* unlit
 +
* guaranteed lit oil lamp
 +
|-
 +
|potentially spooky
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* unlit
 +
* if it's night time:
 +
** 100% of first grave
 +
** 20% of second grave
 +
** if DL > 10, there will be a [[&]]
 +
|-
 +
|temple of the gods
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* one altar of each alignment
 +
|-
 +
!Name
 +
!Can be special
 +
!Size
 +
!Map
 +
!Notes
 +
|-
 +
|mausoleum
 +
|style="background-color:pink"|No
 +
|5x5
 +
|
 +
|
 +
* Equal chance of one of the following
 +
** random hostile [[L]], [[M]], [[V]], [[Z]] in the middle
 +
** corpse of a random [[@]]
 +
* 20% of a secret door
 +
** never in a corner
 +
* outer tiles will be solid rock
 +
|-
 +
|big room, 1, random type
 +
|style="background-color:pink"|No
 +
|17x10
 +
|
 +
|
 +
* a larger version of any type of randomly generated room
 +
|-
 +
|big room, 2 (max. vertical height), filled with fog
 +
|style="background-color:pink"|No
 +
|10x17
 +
|
 +
|
 +
* lot of clouds
 +
* 2d3 random hostile monsters
 +
|-
 +
|very thin, long, horizontal room
 +
|style="background-color:pink"|No
 +
|50x5
 +
|
 +
|
 +
* 2d3 random hostile monsters
 +
|-
 +
|very very thin, long, horizontal room
 +
|style="background-color:pink"|No
 +
|70x3
 +
|
 +
|
 +
* 2d3 random hostile monsters
 +
|-
 +
|L-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----xxx
 +
|...|xxx
 +
|...|xxx
 +
|...----
 +
|......|
 +
|......|
 +
|......|
 +
--------
 +
</replacecharsblock></div>
 +
|
 +
* can exist in any of the 4 possible rotations
 +
|-
 +
|L-shaped, big
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-------xxxxxx
 +
|.....|xxxxxx
 +
|.....|xxxxxx
 +
|.....|xxxxxx
 +
|.....|xxxxxx
 +
|.....-------
 +
|...........|
 +
|...........|
 +
|...........|
 +
|...........|
 +
|...........|
 +
-------------
 +
</replacecharsblock></div>
 +
|
 +
* can exist in any of the 4 possible rotations
 +
|-
 +
|Blocked center
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----------
 +
|.........|
 +
|.........|
 +
|.........|
 +
|...LLL...|
 +
|...LLL...|
 +
|...LLL...|
 +
|.........|
 +
|.........|
 +
|.........|
 +
-----------
 +
</replacecharsblock></div>
 +
|
 +
* 75% chance of replacing lava with one of the following:
 +
** solid rock
 +
** pool of water
 +
** crystal ice wall
 +
|-
 +
|Circular, small
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xx---xx
 +
x--.--x
 +
|-...-|
 +
|.....|
 +
|-...-|
 +
x--.--x
 +
xx---xx
 +
</replacecharsblock></div>
 +
|
 +
|-
 +
|Circular, medium
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xx-----xx
 +
x--...--x
 +
|-.....-|
 +
|.......|
 +
|.......|
 +
|.......|
 +
|-.....-|
 +
x--...--x
 +
xx-----xx
 +
</replacecharsblock></div>
 +
|
 +
|-
 +
!Name
 +
!Can be special
 +
!Size
 +
!Map
 +
!Notes
 +
|-
 +
|Circular, big
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xxx-----xxx
 +
x---...---x
 +
x-.......-x
 +
|-.......-|
 +
|.........|
 +
|.........|
 +
|.........|
 +
|-.......-|
 +
x-.......-x
 +
x---...---x
 +
xxx-----xxx
 +
</replacecharsblock></div>
 +
|
 +
|-
 +
|T-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xxx-----xxx
 +
xxx|...|xxx
 +
xxx|...|xxx
 +
----...----
 +
|.........|
 +
|.........|
 +
|.........|
 +
-----------
 +
</replacecharsblock></div>
 +
|
 +
* Can exist in any of 4 rotations
 +
|-
 +
|S-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----xxx
 +
|...|xxx
 +
|...|xxx
 +
|...----
 +
|......|
 +
|......|
 +
|......|
 +
----...|
 +
xxx|...|
 +
xxx|...|
 +
xxx-----
 +
</replacecharsblock></div>
 +
|
 +
* Can exist in any of 2 rotations
 +
|-
 +
|Z-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xxx-----
 +
xxx|...|
 +
xxx|...|
 +
----...|
 +
|......|
 +
|......|
 +
|......|
 +
|...----
 +
|...|xxx
 +
|...|xxx
 +
-----xxx
 +
</replacecharsblock></div>
 +
|
 +
* Can exist in any of 2 rotations
 +
|-
 +
|U-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----xxx-----
 +
|...|xxx|...|
 +
|...|xxx|...|
 +
|...-----...|
 +
|...........|
 +
|...........|
 +
|...........|
 +
-------------
 +
</replacecharsblock></div>
 +
|
 +
* Can be flipped vertically
 +
|-
 +
|C-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
--------
 +
|......|
 +
|......|
 +
|...----
 +
|...|xxx
 +
|...|xxx
 +
|...----
 +
|......|
 +
|......|
 +
--------
 +
</replacecharsblock></div>
 +
|
 +
* Can be flipped horizontally
 +
|-
 +
|Tetris L-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----xxx
 +
|...|xxx
 +
|...|xxx
 +
|...|xxx
 +
|...|xxx
 +
|...|xxx
 +
|...----
 +
|......|
 +
|......|
 +
|......|
 +
--------
 +
</replacecharsblock></div>
 +
|
 +
* Can exist in any of 4 rotations
 +
|-
 +
|Tetris J-shaped
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xxx-----
 +
xxx|...|
 +
xxx|...|
 +
xxx|...|
 +
xxx|...|
 +
xxx|...|
 +
----...|
 +
|......|
 +
|......|
 +
|......|
 +
--------
 +
</replacecharsblock></div>
 +
|
 +
* Can be in any of 4 rotations
 +
|-
 +
|Four-leaf clover
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
-----x-----
 +
|...|x|...|
 +
|...---...|
 +
|.........|
 +
---.....---
 +
xx|.....|xx
 +
---.....---
 +
|.........|
 +
|...---...|
 +
|...|x|...|
 +
-----x-----
 +
</replacecharsblock></div>
 +
|
 +
|-
 +
|Cross
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
xxx-----xxx
 +
xxx|...|xxx
 +
xxx|...|xxx
 +
----...----
 +
|.........|
 +
|.........|
 +
|.........|
 +
----...----
 +
xxx|...|xxx
 +
xxx|...|xxx
 +
xxx-----xxx
 +
</replacecharsblock></div>
 +
|
 +
|-
 +
!Name
 +
!Can be special
 +
!Size
 +
!Map
 +
!Notes
 +
|-
 +
|watcher in the water
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* Not to be confused with the [[Watcher in the Water|monster of the same name]]
 +
* This room contains 1d3 random pools
 +
* If this occurs on level 3 or deeper, it will contain, a [[Giant eel]], [[Electric eel]], or [[Kraken]]
 +
|-
 +
|room with sessile growths
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* 4d3 sleeping [[gas spore]]s, [[F]], [[b]], [[j]], and [[P]]
 +
|-
 +
|Pillars
 +
|style="background-color:lightgreen"|Yes
 +
|10x10
 +
|
 +
|
 +
*There is a 2x2 pillar with one of the following terrain:
 +
** 50% chance of solid rock
 +
** 10% chance of lava
 +
** 10% chance of ice
 +
** 10% chance of a pool of water
 +
** 10% chance of trees
 +
** 10% chance of crystal ice wall
 +
|-
 +
|Small tightly-placed pillars
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* If the width or height is even, no special terrain
 +
* Otherwise, 1x1 pillars with one of the following terrain:
 +
** 5/12 chance of solid rock
 +
** 1/12 chance of lava
 +
** 1/12 chance of ice
 +
** 1/12 chance of a pool or water
 +
** 1/12 chance of tree
 +
** 1/12 chance of crystal ice wall
 +
** 1/12 chance of cloud
 +
** 1/12 chance or iron bars
 +
|-
 +
|Mirrored obstacles
 +
|style="background-color:lightgreen"|Yes
 +
|
 +
|
 +
|
 +
* If the width or height is below 4, no obstacles
 +
* Otherwise, 1d3 pairs of mirrored obstacles, using one of the following terrain:
 +
** 5/12 chance of solid rock
 +
** 1/12 chance of lava
 +
** 1/12 chance of ice
 +
** 1/12 chance of a pool or water
 +
** 1/12 chance of tree
 +
** 1/12 chance of crystal ice wall
 +
** 1/12 chance of cloud
 +
** 1/12 chance or iron bars
 +
|-
 +
|Trap Room
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* Filled with [[trap]]s.
 +
* The number of traps will be equal to 1/4 the area of the room, plus up to an additional 1/3 of the room
 +
* The traps will be selected from the following list:
 +
** (pit/spiked pit)
 +
** land mine
 +
** falling rock
 +
** (fire/cold trap)
 +
** (trap door/hole)
 +
** (arrow/dart)
 +
|-
 +
|Underground rivers
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* might not count as an actual "room"
 +
* random "globs" of lava or water pools
 +
|-
 +
|Trapped rust monster, disenchanter, or disintegrator
 +
|style="background-color:pink"|No
 +
|5x5
 +
|
 +
|
 +
* Has a 2x2 island of hostile [[R]], surrounded by pools of water
 +
* Other than [[polymorph]], this is the only time that [[disintegrator]]s can appear in UnNetHack (thankfully)
 +
|-
 +
|Fern nursery
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
|
 +
* If DL >= 3:
 +
** 25% chance of a [[fern|dungeon fern]]
 +
** 50% chance of a [[fern|arctic fern]]
 +
** 50% chance of a [[fern|blazing fern]]
 +
** 50% chance of an [[fern|swamp fern]]
 +
|-
 +
|Ozymandias' Tomb
 +
|style="background-color:pink"|No
 +
|
 +
|
 +
<div class="ttyscreen"><replacecharsblock rules="ttymap">
 +
1=[[engraving|{{brightred|1}}]]
 +
2=[[engraving|{{brightred|2}}]]
 +
3=[[hole|{{brown|^}}]]
 +
4=[[falling rock trap|{{lightgray|^}}]]
 +
)=[[chest|{{brown|)}}]]
 +
`=[[statue trap|{{white|`}}]]
  
* Normal Random Room
 
- Exactly what it says on the tin, this vault is just like any randomly generated room
 
  
* Fake Delphi
+
---------
- This 11x9 vault looks a bit like the room the oracle is in - a big room with a small room in the center
+
|4.....)|
- Both the room and the subroom are guaranteed to be lit
+
|..3..3.|
 +
|....3.`|
 +
|....21\|
 +
|.......|
 +
|4.....4|
 +
|......`|
 +
---------
 +
</replacecharsblock></div>
 +
|
 +
* The room is lit
 +
* [[engraving|{{brightred|1}}]], burned, reads "Look on my works, ye mighty, and despair"
 +
* [[engraving|{{brightred|2}}]], burned, 10% chance of existing, reads "My name is Ozymandias, king of kings"
 +
* Each hole has chance of existing, between 30% to 80%
 +
* Falling rock traps will be replaced by webs if DL >= 7
 +
* The falling rock tap/web nearest the throne is guaranteed, others have a 75% chance of existing
 +
* The chest is trapped
 +
* The statue trap near the throne has a statue of a werejackal
 +
* The statue trap near the corner has a statue of an Elvenking
 +
|-
  
* Room with a subroom
+
!Name
- This is just a random room with a random subroom
+
!Can be special
 
+
!Size
* Big room 1
+
!Map
- This is a random 30x10 room
+
!Notes
- It has a 75% of having a random normal room as a subroom. This subroom will have a randomly placed door with a 50% chance of a second door
+
|-
 
+
|Pacman
* lava/ice/pool/tree/fountain room
+
|style="background-color:pink"|No
<pre>
+
|
LEVEL:"vlt-%04i"
+
|
FLAGS:rndvault
+
<div class="ttyscreen"><replacecharsblock rules="ttymap">
ROOM:"rndvault", random, random, random, (3,3) {
+
--------------------
  $terr = TERRAIN: { 'L', 'I', 'P', 'T', '{' }
+
|....|........|....|
  SHUFFLE: $terr
+
|.--.|.------.|.--.|
  IF [10%] { TERRAIN:(0,0), $terr[0] }
+
|.|..............|.|
  IF [10%] { TERRAIN:(1,0), $terr[0] }
+
|.|.--.|-FF-|.--.|.|
  IF [10%] { TERRAIN:(2,0), $terr[0] }
+
|......|   |......|
  IF [10%] { TERRAIN:(0,1), $terr[0] }
+
|.|.--.|----|.--.|.|
   TERRAIN:(1,1),$terr[0]
+
|.|..............|.|
  IF [10%] { TERRAIN:(2,1), $terr[0] }
+
|.--.|.------.|.--.|
  IF [10%] { TERRAIN:(0,2), $terr[0] }
+
|....|........|....|
  IF [10%] { TERRAIN:(1,2), $terr[0] }
+
--------------------
  IF [10%] { TERRAIN:(2,2), $terr[0] }
+
</replacecharsblock></div>
}
+
|
</pre>
+
* All of these are guaranteed at random positions:
 
+
** an [[apple]]
* Big room 2
+
** a [[pear]]
- This 10x17 random vault has 2d3 random hostile monsters inside it
+
** a [[banana]]
 
+
** an [[orange]]
* thin, long, horizontal room
+
** a [[melon]]
- This 17x3 random vault has 2d3 random hostile monsters inside it
+
** a [[ghost]] named Inky
 
+
** a ghost named Blinky
* thin, long, vertical room
+
** a ghost named Pinky
- This 3x17 random vault has 2d3 random hostile monsters inside it
+
** a ghost named Clyde
 
+
|}
* tiny cage, big monster
+
{{variant-343}}
- This 5x5 random vault is just a random room with a 2x2 subroom filled with items if it is generated on Dungeon Level 1 or 2
+
[[Category:UnNetHack special rooms]]
- If it is generated on level 3 or lower, that subroom also has a random [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]] and the monster will now be caged in iron bars
 
 
 
* room with dangerous monster and loot
 
- This randomly sized vault contains a random hostile [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]]
 
- This is a 50% chance of another random hostile [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]]
 
- There is an additional 25% of another random [[M]], [[D]], [[O]], [[Z]], [[T]], or [[H]]. This one isn't guaranteed to be hostile
 
- There is a random object, 75% chance of an object, 50% chance of an object, 25% chance of an object, and 10% chance of an object
 
- All of these probabilities are calculated independently of each other
 
 
 
* boulder room
 
- This otherwise normal room contains 1d6+3 boulders, and 1d4 rolling boulder traps
 
 
 
* spider nest
 
- This otherwise normal room contains 3d3 webs
 
 
 
* ice room
 
- This is a normal room, except the floor is replaced by ice
 
 
 
* random cloud/lava/ice/pool/tree room
 
- This is a normal room, except 30% of the tiles are replaced with cloud, lava, ice, pools, or trees
 
 
 
* buried treasure
 
- This is an *ordinary* room (instead of a normal random room)
 
- Buried somewhere in the room is a chest filled with 3d4 random objects
 
 
 
* massacre
 
- This is a normal room filled with bodies from some horrific massacre.
 
- There are 5d5 10% chances to create a random corpse from the following list:
 
'@', "apprentice", "warrior", "ninja", "thug", "hunter", "acolyte", "abbot",
 
            "page", "attendant", "neanderthal", "chieftain", "student", "wizard", "valkyrie",
 
    "tourist", "samurai", "rogue", "ranger", "priestess", "priest", "monk",
 
            "knight", "healer", "cavewoman", "caveman", "barbarian", "archeologist"
 
 
 
* statuary
 
- This is a normal room with 5d5 random statues
 
- There is a 50% chance each for the existence of 3 statue traps
 
 
 
* light source
 
- This is a normal unlit room
 
- There will be a lit oil lamp sitting in the room (if you get there before it burns out)
 
 
 
* temple of the gods
 
- There are 3 randomly placed altars in this room, one of each alignment
 
 
 
* Mausoleum
 
<pre>
 
LEVEL:"vlt-%04i"
 
FLAGS:rndvault
 
ROOM:"rndvault", random, random, random, (5,5) {
 
  TERRAIN:(1,1) & (2,1) & (3,1) &
 
          (1,2) &        (3,2) &
 
          (1,3) & (2,3) & (3,3), '-'
 
  IF [50%] {
 
    $mons = MONSTER: { 'M', 'V', 'L', 'Z' }
 
    SHUFFLE: $mons
 
    MONSTER:$mons[0],(2,2), hostile
 
  } ELSE {
 
    OBJECT:('%', "corpse"), random, montype:'@'
 
  }
 
 
 
  IF [20%] {
 
    $place = { (2,1), (1,2), (3,2), (2,3) }
 
    SHUFFLE: $place
 
    TERRAIN: $place[0], 'S'
 
  }
 
}
 
</pre>
 
 
 
* big room, 1, random type
 
- This 17x10 room will be a larger version of any type of randomly generated room
 
 
 
* big room, 2 (max. vertical height), filled with fog
 
- This 10x17 normal room has a lot of clouds in it, plus 2d3 random hostile monsters
 
 
 
* very thin, long, horizontal room
 
- this 70x3 room has 2d3 random hostile monsters
 

Latest revision as of 02:07, 17 February 2024

Random vaults are a part of the level generation formula used in UnNetHack. Despite the name, these are entirely unrelated to the hidden vaults filled with gold, and are used to create unique rooms that connect normally to the rest of the dungeon.

In the UnNetHack source code, the random vaults are defined in dat/vaults.des. The upcoming release of NetHack 3.7.0 will have a similar feature, called themed rooms.

Description

Every room that is not a vault or part of a special level and not a vault is selected from the list of random vaults. The "normal random room" has a 4041 chance of being selected; all the others have a 12050 chance of being selected. Some of these rooms can be further transformed into special rooms.

Possible vaults

Name Can be special Size Map Notes
Normal random room Yes
  • The regular rooms found in vanilla NetHack
  • The only one with a unique chance of being generated, (40/41 compared to 1/2050)
Fake Delphi Subroom only 11x9
  • A big room with a small room in the center, similar to Delphi
  • Both the room and the subroom are guaranteed to be lit
  • There is a door to the subroom, with a 25% chance of a second door.
  • Both doors have a chance of being locked and/or trapped and/or secret.
room with a subroom Subroom only
  • A random room with a random subroom
big room, 1 No 30x10
  • Has a 75% chance of having a random normal room as a subroom
    • This subroom will have a randomly placed door with a 50% chance of a second door
    • Both doors have a chance of being locked and/or trapped and/or secret.
lava/ice/pool/tree/fountain room No 3x3
  • The center square of the room has an equal chance of being lava, ice, pool, tree, or fountain.
  • Each other square has a 10% chance of being the same as the center square.
big room, 2 (max. vertical height) No 10x17
  • 2d3 random hostile monsters
thin, long, horizontal room No 17x3
  • 2d3 random hostile monsters
thin, long, vertical room No 3x17
  • 2d3 random hostile monsters
tiny cage, big monster No 5x5
  • DL1 or DL2: just a random room with a 2x2 subroom
  • Otherwise: subroom also has a random M, D, O, Z, T, or H and the monster will now be caged in iron bars
room with dangerous monster and loot No
  • Up to 3 monsters from the classes M, D, O, Z, T, or H
    • 100% chance of the first random hostile monster
    • 50% chance of a second hostile monster
    • 25% chance of a third monster (not guaranteed to be hostile)
    • These percentages are calculated independently, so there is still a 25% chance, even if the 50% chance fails.
  • Random object
    • 100% chance of the first object
    • 75% chance of a second object
    • 50% chance of a third object
    • 25% chance of a fourth object (this one will be cursed)
    • 10% chance of a fifth object (this one will be blessed)
Name Can be special Size Map Notes
boulder room No
  • 1d6 + 3 boulders
  • 1d4 rolling boulder traps
spider nest No
  • unlit
  • 3d3 webs
ice room No
  • 10% chance of a cold trap
  • Floor replaced by ice
random cloud/lava/ice/pool/tree room No
  • 30% of the tiles are replaced with cloud, lava, ice, pools, or trees (all will be the same type of replacement)
buried treasure Yes
  • Guaranteed buried chest with 3d4 objects
massacre No
  • 5d5 random corpses of the following
    • @', "apprentice", "warrior", "ninja", "thug", "hunter", "acolyte", "abbot", "page", "attendant", "neanderthal", "chieftain", "student", "wizard", "valkyrie", "tourist", "samurai", "rogue", "ranger", "priestess", "priest", "monk", "knight", "healer", "cavewoman", "caveman", "barbarian", "archeologist", "convict"
  • Each corpse generated has a 90% chance of being the same as the previous corpse generated
statuary No
  • 5d5 statues
  • 3 statue traps, each with 50% of existing
light source Yes
  • unlit
  • guaranteed lit oil lamp
potentially spooky Yes
  • unlit
  • if it's night time:
    • 100% of first grave
    • 20% of second grave
    • if DL > 10, there will be a &
temple of the gods No
  • one altar of each alignment
Name Can be special Size Map Notes
mausoleum No 5x5
  • Equal chance of one of the following
    • random hostile L, M, V, Z in the middle
    • corpse of a random @
  • 20% of a secret door
    • never in a corner
  • outer tiles will be solid rock
big room, 1, random type No 17x10
  • a larger version of any type of randomly generated room
big room, 2 (max. vertical height), filled with fog No 10x17
  • lot of clouds
  • 2d3 random hostile monsters
very thin, long, horizontal room No 50x5
  • 2d3 random hostile monsters
very very thin, long, horizontal room No 70x3
  • 2d3 random hostile monsters
L-shaped Yes

-----xxx
|...|xxx
|...|xxx
|...----
|......|
|......|
|......|
--------
  • can exist in any of the 4 possible rotations
L-shaped, big No

-------xxxxxx
|.....|xxxxxx
|.....|xxxxxx
|.....|xxxxxx
|.....|xxxxxx
|.....-------
|...........|
|...........|
|...........|
|...........|
|...........|
-------------
  • can exist in any of the 4 possible rotations
Blocked center Yes

-----------
|.........|
|.........|
|.........|
|...}}}...|
|...}}}...|
|...}}}...|
|.........|
|.........|
|.........|
-----------
  • 75% chance of replacing lava with one of the following:
    • solid rock
    • pool of water
    • crystal ice wall
Circular, small Yes

xx---xx
x--.--x
|-...-|
|.....|
|-...-|
x--.--x
xx---xx
Circular, medium Yes

xx-----xx
x--...--x
|-.....-|
|.......|
|.......|
|.......|
|-.....-|
x--...--x
xx-----xx
Name Can be special Size Map Notes
Circular, big Yes

xxx-----xxx
x---...---x
x-.......-x
|-.......-|
|.........|
|.........|
|.........|
|-.......-|
x-.......-x
x---...---x
xxx-----xxx
T-shaped Yes

xxx-----xxx
xxx|...|xxx
xxx|...|xxx
----...----
|.........|
|.........|
|.........|
-----------
  • Can exist in any of 4 rotations
S-shaped Yes

-----xxx
|...|xxx
|...|xxx
|...----
|......|
|......|
|......|
----...|
xxx|...|
xxx|...|
xxx-----
  • Can exist in any of 2 rotations
Z-shaped Yes

xxx-----
xxx|...|
xxx|...|
----...|
|......|
|......|
|......|
|...----
|...|xxx
|...|xxx
-----xxx
  • Can exist in any of 2 rotations
U-shaped Yes

-----xxx-----
|...|xxx|...|
|...|xxx|...|
|...-----...|
|...........|
|...........|
|...........|
-------------
  • Can be flipped vertically
C-shaped Yes

--------
|......|
|......|
|...----
|...|xxx
|...|xxx
|...----
|......|
|......|
--------
  • Can be flipped horizontally
Tetris L-shaped Yes

-----xxx
|...|xxx
|...|xxx
|...|xxx
|...|xxx
|...|xxx
|...----
|......|
|......|
|......|
--------
  • Can exist in any of 4 rotations
Tetris J-shaped Yes

xxx-----
xxx|...|
xxx|...|
xxx|...|
xxx|...|
xxx|...|
----...|
|......|
|......|
|......|
--------
  • Can be in any of 4 rotations
Four-leaf clover Yes

-----x-----
|...|x|...|
|...---...|
|.........|
---.....---
xx|.....|xx
---.....---
|.........|
|...---...|
|...|x|...|
-----x-----
Cross Yes

xxx-----xxx
xxx|...|xxx
xxx|...|xxx
----...----
|.........|
|.........|
|.........|
----...----
xxx|...|xxx
xxx|...|xxx
xxx-----xxx
Name Can be special Size Map Notes
watcher in the water No
room with sessile growths No
Pillars Yes 10x10
  • There is a 2x2 pillar with one of the following terrain:
    • 50% chance of solid rock
    • 10% chance of lava
    • 10% chance of ice
    • 10% chance of a pool of water
    • 10% chance of trees
    • 10% chance of crystal ice wall
Small tightly-placed pillars Yes
  • If the width or height is even, no special terrain
  • Otherwise, 1x1 pillars with one of the following terrain:
    • 5/12 chance of solid rock
    • 1/12 chance of lava
    • 1/12 chance of ice
    • 1/12 chance of a pool or water
    • 1/12 chance of tree
    • 1/12 chance of crystal ice wall
    • 1/12 chance of cloud
    • 1/12 chance or iron bars
Mirrored obstacles Yes
  • If the width or height is below 4, no obstacles
  • Otherwise, 1d3 pairs of mirrored obstacles, using one of the following terrain:
    • 5/12 chance of solid rock
    • 1/12 chance of lava
    • 1/12 chance of ice
    • 1/12 chance of a pool or water
    • 1/12 chance of tree
    • 1/12 chance of crystal ice wall
    • 1/12 chance of cloud
    • 1/12 chance or iron bars
Trap Room No
  • Filled with traps.
  • The number of traps will be equal to 1/4 the area of the room, plus up to an additional 1/3 of the room
  • The traps will be selected from the following list:
    • (pit/spiked pit)
    • land mine
    • falling rock
    • (fire/cold trap)
    • (trap door/hole)
    • (arrow/dart)
Underground rivers No
  • might not count as an actual "room"
  • random "globs" of lava or water pools
Trapped rust monster, disenchanter, or disintegrator No 5x5
  • Has a 2x2 island of hostile R, surrounded by pools of water
  • Other than polymorph, this is the only time that disintegrators can appear in UnNetHack (thankfully)
Fern nursery No
Ozymandias' Tomb No
---------
|^.....)|
|..^..^.|
|....^.`|
|....21\|
|.......|
|^.....^|
|......`|
---------
  • The room is lit
  • 1, burned, reads "Look on my works, ye mighty, and despair"
  • 2, burned, 10% chance of existing, reads "My name is Ozymandias, king of kings"
  • Each hole has chance of existing, between 30% to 80%
  • Falling rock traps will be replaced by webs if DL >= 7
  • The falling rock tap/web nearest the throne is guaranteed, others have a 75% chance of existing
  • The chest is trapped
  • The statue trap near the throne has a statue of a werejackal
  • The statue trap near the corner has a statue of an Elvenking
Name Can be special Size Map Notes
Pacman No

--------------------
|....|........|....|
|.--.|.------.|.--.|
|.|..............|.|
|.|.--.|-##-|.--.|.|
|......|    |......|
|.|.--.|----|.--.|.|
|.|..............|.|
|.--.|.------.|.--.|
|....|........|....|
--------------------
  • All of these are guaranteed at random positions: