| [[File:DungeonHierarchies.png|400px]]
|}
== Examples from the original game ==
=== Gloomy Caves Shop ===
<code>
RandomLevel 1:3;
{
CanGenerateBone = false;
Room
{
Size = 5,9;
AltarPossible = false;
DivineMaster = MELLIS;
Type = ROOM_SHOP;
GenerateFountains = false;
AllowLockedDoors = false;
AllowBoobyTrappedDoors = false;
CharacterMap
{
Pos = 1, 1;
Size = 3, 7;
Types
{
g = guard(SHOP) { Team = 5; }
s = shopkeeper(ELPURI_CAVE) { Team = 5; Flags = IS_MASTER; }
}
}
{
g.g
...
...
.s.
...
...
g.g
}
ItemMap
{
Pos = 1,1;
Size = 3,7;
Types
{
g == Random { MinPrice = 100; MaxPrice = 10000; Category = GAUNTLET|BOOT; }
b == Random { MinPrice = 100; MaxPrice = 10000; Category = GAUNTLET|BOOT; }
a == Random { MinPrice = 500; MaxPrice = 10000; Category = HELMET|CLOAK|BODY_ARMOR|BELT; }
d == Random { MinPrice = 200; MaxPrice = 10000; Category = RING|AMULET; }
w == Random { MinPrice = 500; MaxPrice = 10000; Category = WEAPON|SHIELD; }
e == Random { MinPrice = 50; MaxPrice = 10000; Category = FOOD|POTION; }
u == Random { MinPrice = 200; MaxPrice = 10000; Category = WAND|TOOL; }
r == Random { MinPrice = 200; MaxPrice = 10000; Category = SCROLL|BOOK; }
s == wand(WAND_OF_STRIKING);
}
}
{
.g.
ddb
err
e.w
auw
auw
.s.
}
}
}
</code>
== Dungeon default control variables ==