As a start, let's have a look at what is going on with the Gloomy Caves Shop.
<tt>Room { Size = 5,9; AltarPossible = false; DivineMaster = MELLIS; Type = ROOM_SHOP; GenerateFountains = false; AllowLockedDoors = false; AllowBoobyTrappedDoors = false;</tt>
<tt>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 }</tt>
<tt>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. }</tt>
== Dungeon default control variables ==