== Dungeon script hierarchy ==
{| class="wikitable"! ! |-| The dungeon script file follows a definite structure. However, this may be hard to see since certain keywords can be used over and over again. For example to re-define default values in a certain portion of the script, the keyword <code>RoomDefault</code> might be encountered at the <code>LevelDefault</code> stage or simply the <code>Level</code> stage.
Each dungeon has default parameters specified within <code>LevelDefault</code> and <code>RoomDefault</code>. This is where the general look and feel of the dungeon can be uniformly specified with only a few commands. These defaults can be overridden at any point in the script, within that dungeon.
Each room and square can be made to appear randomly within a level, in a random position, and/or within a random sub-area of a level (handled by <code>BoundedRandom</code>), and/or on a random member of a subset of levels (handled by <code>RandomLevel</code>).
| [[File:DungeonHierarchies.png|400px]]|}
== Dungeon default control variables ==