#======================================================
#
at road
  move road, west, upward, hill
  move enter, building, inward, east, building
  move downstream, gully, stream, south, d, valley
  move forest, north, east, forest.1
  move depression, depression
#
#======================================================
#
at hill
  move road, building, forward, east, d, road
  move forest, north, south, forest.1
#
#======================================================
#
at building
  move enter, out, outdors, west, road
  move xyzzy, debris
  move plugh, y2
  respond downstream, stream, pipe.too.narrow
#
#======================================================
#
at valley
  move upstream, building, north, road
  move forest, east, west, upward, forest.1
  move downstream, south, d, slit
  move depression, depression
#
#======================================================
#
at forest.1
  move valley, east, d, valley
  chance 50
    move forest, forward, north, forest.1
  fin
  move forest, forward, north, forest.2
  move west, south, forest.1
#
#======================================================
#
at forest.2
  move road, north, road
  move valley, east, west, d, valley
  move forest, south, forest.1
#
#======================================================
#
at slit
  move building, road
  move upstream, north, valley
  move forest, east, west, forest.1
  move downstream, rock, bed, south, depression
  respond slit, stream, d, slit.too.narrow
#
#======================================================
#
at depression
  move forest, east, west, south, forest.1
  move building, road
  move upstream, gully, north, slit
  ifne grate, locked
    move enter, inward, d, in.cave
  fin
  respond enter, cant.pass.grate
#
#======================================================
#
at in.cave
  ifne grate, 0
    move out, upward, depression
  fin
  respond out, cant.pass.grate
  move crawl, cobbles, inward, west, cobbles
  move pit, pit
  move debris, debris
#
#======================================================
#
at cobbles
  move out, surface, null, east, in.cave
  move inward, dark, west, debris, debris
  move pit, pit
#
#======================================================
#
at debris
  ifne grate, 0
    move depression, depression
  fin
  ifkey xyzzy
    ifeq stage, adventuring
      move, building
    fin
    ifeq panic, 0
      set panic, 1
      set clock, 15
    fin
    quip exit.closed
  fin
  move entrance, in.cave
  move crawl, cobbles, passage, low, east, cobbles
  move canyon, inward, upward, west, canyon
  move pit, pit
#
#======================================================
#
at canyon
  ifne grate, 0
    move depression, depression
  fin
  move entrance, in.cave
  move d, east, debris, debris
  move inward, upward, west, bird.chamber
  move pit, pit
#
#======================================================
#
at bird.chamber
  ifne grate, 0
    move depression, depression
  fin
  move entrance, in.cave
  move debris, debris
  move canyon, east, canyon
  move passage, pit, west, pit
#
#======================================================
#
at pit
  ifne grate, 0
    move depression, depression
  fin
  move entrance, in.cave
  move debris, debris
  move passage, east, bird.chamber
  ifany down, pit
    ifhave nugget
      say broken.neck
      goto mists
      call coroner
    fin
    set steps, 1
    move mists
  fin
  respond crack, west, crack.too.small
#
#======================================================
#
at mists
  move left, south, nugget.room
  move forward, hall, west, east.of.fissure
  move stairs, d, north, mtking
  ifhave nugget
    respond upward, pit, dome, passage, east, dome.unclimbable
  fin
  ifkey up
    set steps, 0
    move pit
  fin
  move y2, jumble
#
#======================================================
#
at east.of.fissure
  move hall, east, mists
  ifkey jump
    ifeq fissure, 1
      quip try.the.bridge
    else
      say didnt.make.it
      goto cavern
      call coroner
    fin
  fin
  ifany over, across, west, cross, 
    ifeq fissure, 0
      quip no.way.across
    fin
    move west.of.fissure
  fin
#
#======================================================
#
at nugget.room
  move hall, out, north, mists
#
#======================================================
#
at mtking
  ifeq daggro, 0
    set daggro, 1 # He now may meet his first dwarf and acquire the axe.
  fin
  move stairs, upward, east, mists
  ifany north, left, south, right, west, forward
    and
  ifhere snake
    quip snake.blocks.ways
  fin
  move north, left, low.n/s.passage
  move south, right, south.side.chamber
  move west, forward, west.side.chamber
  chance 65
    respond sw, still.where.you.were
  fin
  move sw, secret.e/w.canyon
  ifnear snake
    respond sw, snake.blocks.ways
  fin
  move secret, secret.e/w.canyon
#
#======================================================
#
at west.pit.end
  move east, across, east.pit.end
  move west, slab, slab
  move d, pit, west.pit
  respond hole, too.far.up
#
#======================================================
#
at east.pit
  move upward, out, east.pit.end
#
#======================================================
#
at west.pit
  move upward, out, west.pit.end
  ifkey climb
    ifeq plant, stunted
      quip plant.not.climbable
    fin
    ifeq plant, grown
      smove west.pit.end, plant.too.short
    fin
    smove narrow.corridor, up.the.plant.you.go
  fin
#
#======================================================
#
at west.of.fissure
  ifkey jump
    ifeq fissure, 1
      quip try.the.bridge
    else
      say didnt.make.it
      goto cavern
      call coroner
    fin
  fin
  ifany over, across, east, cross, 
    ifeq fissure, 0
      quip no.way.across
    fin
      move east.of.fissure
  fin
  respond north, still.where.you.were
  move west, west.end.of.mists
#
#======================================================
#
at low.n/s.passage
  move hall, out, south, mtking
  move north, y2, y2
  move d, hole, dirty
#
#======================================================
#
at south.side.chamber
  move hall, out, north, mtking
#
#======================================================
#
at west.side.chamber
  move hall, out, east, mtking
  move west, upward, crossover
#
#======================================================
#
at y2
  ifeq stage, adventuring
    chance 25
      say hollow.voice
    fin
    move plugh, building
  fin
  ifkey plugh
    ifeq panic, 0
      set clock, 15
      set panic, 1
    fin
    quip exit.closed
  fin
  move south, low.n/s.passage
  move east, wall, broken, jumble
  move west, east.window
  ifhave emerald
    and
  ifkey plover
    drop emerald
  fin
  move plover, plover
#
#======================================================
#
at jumble
  move d, y2, y2
  move upward, mists
#
#======================================================
#
at east.window
  move east, y2, y2
  respond jump, broken.neck
#
#======================================================
#
at dirty
  move east, crawl, brink
  move upward, hole, low.n/s.passage
  move west, dusty
  move bedquilt, bedquilt
#
#======================================================
#
at brink
  move west, crawl, dirty
  move d, pit, climb, streampit
#
#======================================================
#
at streampit
  move climb, upward, out, brink
  respond slit, stream, d, upstream, downstream, slit.too.narrow
#
#======================================================
#
at dusty
  move east, passage, dirty
  move d, hole, floor, complex
  move bedquilt, bedquilt
#
#======================================================
#
at west.end.of.mists
  move south, upward, passage, climb, mazea.42
  move east, west.of.fissure
  respond north, still.where.you.were.2
  move west, crawl, long.hall.east
#
#======================================================
#
at mazea.42
  move upward, west.end.of.mists
  move north, mazea.42
  move east, mazea.43
  move south, mazea.45
  move west, mazea.80
#
#======================================================
#
at mazea.43
  move west, mazea.42
  move south, mazea.44
  move east, mazea.45
#
#======================================================
#
at mazea.44
  move east, mazea.43
  move d, mazea.48
  move south, mazea.50
  move north, mazea.82
#
#======================================================
#
at mazea.45
  move west, mazea.42
  move north, mazea.43
  move east, mazea.46
  move south, mazea.47
  move upward, d, mazea.87
#
#======================================================
#
at mazea.46
  move west, out, mazea.45
#
#======================================================
#
at mazea.47
  move east, out, mazea.45
#
#======================================================
#
at mazea.48
  move upward, out, mazea.44
#
#======================================================
#
at mazea.49
  move east, mazea.50
  move west, mazea.51
#
#======================================================
#
at mazea.50
  move east, mazea.44
  move west, mazea.49
  move d, mazea.51
  move south, mazea.52
#
#======================================================
#
at mazea.51
  move west, mazea.49
  move upward, mazea.50
  move east, mazea.52
  move south, mazea.53
#
#======================================================
#
at mazea.52
  move west, mazea.50
  move east, mazea.51
  move south, mazea.52
  move upward, mazea.53
  move north, mazea.55
  move d, mazea.86
#
#======================================================
#
at mazea.53
  move west, mazea.51
  move north, mazea.52
  move south, mazea.54
#
#======================================================
#
at mazea.54
  move west, out, mazea.53
#
#======================================================
#
at mazea.55
  move west, mazea.52
  move north, mazea.55
  move d, mazea.56
  move east, mazea.by.pit
#
#======================================================
#
at mazea.56
  move upward, out, mazea.55
#
#======================================================
#
at mazea.by.pit
  move d, climb, bird.chamber
  move west, mazea.55
  move south, mazea.58
  move north, mazea.83
  move east, mazea.84
#
#======================================================
#
at mazea.58
  move east, out, mazea.by.pit
#
#======================================================
#
at long.hall.east
  move east, upward, crawl, west.end.of.mists
  move west, long.hall.west
  move north, d, hole, crossover
#
#======================================================
#
at long.hall.west
  move east, long.hall.east
  move north, crossover
  move south, mazed.107
#
#======================================================
#
at crossover
  move west, long.hall.east
  move north, dead.end.1
  move east, west.side.chamber
  move south, long.hall.west
#
#======================================================
#
at dead.end.1
  move south, out, crossover
#
#======================================================
#
at complex
  move upward, climb, room, dusty
  move west, bedquilt, bedquilt
  move north, shell, shell
  move east, anteroom
#
#======================================================
#
at bedquilt
  move east, complex
  move west, swiss
  chance 80
    respond south, still.where.you.were.3
  fin
  move slab, south, slab
  chance 80
    respond upward, still.where.you.were.3
  fin
  chance 50
    move upward, secret.n/s.canyon.2
  fin
  move upward, dusty
  chance 60
    respond north, still.where.you.were.3
  fin
  chance 75
    move north, low
  fin
  move north, secret.junction
  chance 80
    respond d, still.where.you.were.3
  fin
  move d, anteroom
#
#======================================================
#
at swiss
  move ne, bedquilt
  move west, east.pit.end
  chance 80
    respond south, still.where.you.were.3
  fin
  move south, canyon, tall.e/w.canyon
  move east, soft
  chance 50
    respond nw, still.where.you.were.3
  fin
  move nw, oriental, oriental
#
#======================================================
#
at east.pit.end
  move east, swiss
  move west, across, west.pit.end
  move d, pit, east.pit
#
#======================================================
#
at slab
  move south, west.pit.end
  move upward, climb, secret.n/s.canyon.1
  move north, bedquilt
#
#======================================================
#
at secret.n/s.canyon.1
  move d, slab, slab
  move south, secret.n/e.canyon
  move north, mirror.canyon
  move reservoir, reservoir
#
#======================================================
#
at secret.n/s.canyon.2
  move north, secret.junction
  move d, passage, bedquilt
  move south, top.of.stalactite
#
#======================================================
#
at secret.junction
  move se, bedquilt
  move south, secret.n/s.canyon.2
  move north, west.window
#
#======================================================
#
at low
  move bedquilt, bedquilt
  move sw, sloping
  move north, dead.end.2
  move se, oriental, oriental
#
#======================================================
#
at dead.end.2
  move south, crawl, out, low
#
#======================================================
#
at secret.e/w.canyon
  move east, mtking
  move west, secret.n/e.canyon
  move d, wide.n/s.canyon
#
#======================================================
#
at wide.n/s.canyon
  move south, tight.dead.end
  move north, tall.e/w.canyon
#
#======================================================
#
at tight.dead.end
  move north, wide.n/s.canyon
#
#======================================================
#
at tall.e/w.canyon
  move east, wide.n/s.canyon
  move west, dead.end.3
  move north, crawl, swiss
#
#======================================================
#
at dead.end.3
  move south, tall.e/w.canyon
#
#======================================================
#
at mazea.80
  move north, mazea.42
  move west, mazea.80
  move south, mazea.80
  move east, mazea.81
#
#======================================================
#
at mazea.81
  move west, out, mazea.80
#
#======================================================
#
at mazea.82
  move south, out, mazea.44
#
#======================================================
#
at mazea.83
  move south, mazea.by.pit
  move east, mazea.84
  move west, mazea.85
#
#======================================================
#
at mazea.84
  move north, mazea.by.pit
  move west, mazea.83
  move nw, mazea.114
#
#======================================================
#
at mazea.85
  move east, out, mazea.83
#
#======================================================
#
at mazea.86
  move upward, out, mazea.52
#
#======================================================
#
at mazea.87
  move upward, d, mazea.45
#
#======================================================
#
at narrow.corridor
  move d, climb, east, west.pit
  respond jump, broken.neck
  move west, giant, giant.room
#
#======================================================
#
at incline
  move north, cavern, passage, cavern
  move d, climb, low
#
#======================================================
#
at giant.room
  move south, narrow.corridor
  respond east, crawl.caved.in
  move north, immense.n/s.passages
#
#======================================================
#
at immense.n/s.passages
  move south, giant, passage, giant.room
  ifne door, 0
    move north, enter, cavern, cavern
  fin
  respond north, door.needs.oil
#
#======================================================
#
at cavern
  move south, out, immense.n/s.passages
  move giant, giant.room
  move west, incline
#
#======================================================
#
at soft
  move west, out, swiss
#
#======================================================
#
at oriental
  move se, swiss
  move west, crawl, low
  move upward, north, cavern, misty
#
#======================================================
#
at misty
  move south, oriental, oriental
  move west, alcove
#
#======================================================
#
at alcove
  move nw, cavern, misty
  ifkey back
    and
  ifis there, plover
    or
  ifany east, passage
    call plover.check, plover
  fin
#
#======================================================
#
at plover
  ifkey back
    and
  ifis there, alcove
    or
  ifany west, passage, out
    call plover.check, alcove
  fin
  ifany get, drop
    proceed
  fin
  ifkey plover
    ifhave emerald
      drop emerald
    fin
    move y2
  fin
  move ne, dark, dark
#
#======================================================
#
at dark
  move south, plover, out, plover
#
#======================================================
#
at arched
  move d, shell, out, shell
#
#======================================================
#
at shell
  move upward, hall, arched
  move d, ragged.corridor
  ifhave clam
    respond south, clam.too.big
  fin
  ifhave oyster
    respond south, oyster.too.big
  fin
  move south, complex
#
#======================================================
#
at ragged.corridor
  move upward, shell, shell
  move d, culdesac
#
#======================================================
#
at culdesac
  move upward, out, ragged.corridor
  move shell, shell
#
#======================================================
#
at anteroom
  move upward, complex
  move west, bedquilt
  move east, witts.end
#
#======================================================
#
at mazed.107
  move south, mazed.131
  move sw, mazed.132
  move ne, mazed.133
  move se, mazed.134
  move upward, mazed.135
  move nw, mazed.136
  move east, mazed.137
  move west, mazed.138
  move north, mazed.139
  move d, long.hall.west
#
#======================================================
#
at witts.end
  chance 5
    move east, anteroom
  fin
  respond east, north, south, ne, se, sw, nw, upward, d, still.where.you.were.3
  respond west, crawl.caved.in.2
#
#======================================================
#
at mirror.canyon
  move south, secret.n/s.canyon.1
  move north, reservoir, reservoir
#
#======================================================
#
at west.window
  move west, secret.junction
  respond jump, broken.neck
#
#======================================================
#
at top.of.stalactite
  move north, secret.n/s.canyon.2
  chance 40
    move d, jump, climb, mazea.50
  fin
  chance 50
    move d, mazea.53
  fin
  move d, mazea.45
#
#======================================================
#
at mazed.112
  move sw, mazed.131
  move north, mazed.132
  move east, mazed.133
  move nw, mazed.134
  move se, mazed.135
  move ne, mazed.136
  move west, mazed.137
  move d, mazed.138
  move upward, mazed.139
  move south, mazed.140
#
#======================================================
#
at reservoir
  move south, out, 109, mirror.canyon
#
#======================================================
#
at mazea.114
  move se, mazea.84
#
#======================================================
#
at ne.repository
  move sw, sw.repository
  ifkey rod
    call fiddle.rod
  fin
  ifany bottle, plant, oyster, lamp, rod
    and
  ifflag arg2, faked
    apport arg2, here
  fin
  ifkey dwarf
    ifany wake, kill
      ifkey wake
        say dwarf.wakes
      fin
      say dwarves.wake
      call coroner
    fin
  fin
#
#======================================================
#
at sw.repository
  move ne, ne.repository
  respond d, cant.pass.grate
  ifkey rod
    call fiddle.rod
  fin
  ifany cage, bird, snake, dynamite, pillow
    and
  ifflag arg2, faked
    apport arg2, here
    ifkey cage
      apport bird, here
    fin
    ifkey bird
      apport cage, here
    fin
  fin
#
#======================================================
#
at sw.of.chasm
  move sw, sloping
  ifany cross, jump, ne
    call cross.chasm.to, ne.of.chasm
  fin
#
#======================================================
#
at sloping
  move d, low
  move upward, sw.of.chasm
#
#======================================================
#
at secret.n/e.canyon
  ifkey east
    ifeq dragon, dead.body
      or
    ifis there, secret.e/w.canyon
      move secret.e/w.canyon
    fin
  fin
  ifkey north
    ifeq dragon, dead.body
      or
    ifis there, secret.n/s.canyon.1
      move secret.n/s.canyon.1
    fin
  fin
  ifeq dragon, on.rug
    respond east, north, forward, dragon.blocks.way
  fin
  ifkey forward
    ifis there, secret.e/w.canyon
      move secret.n/s.canyon.1
    else
      move secret.e/w.canyon
    fin
  fin
#
#======================================================
#
at ne.of.chasm
  move ne, corridor
  move fork, fork
  move view, breathtaker
  move barren, barren
  ifany jump, cross, sw
    call cross.chasm.to, sw.of.chasm
  fin
#
#======================================================
#
at corridor
  move west, ne.of.chasm
  move east, fork, fork
  move view, breathtaker
  move barren, barren
#
#======================================================
#
at fork
  move west, corridor
  move ne, left, warmjunctn
  move se, right, d, limestone
  move view, breathtaker
  move barren, barren
#
#======================================================
#
at warmjunctn
  move south, fork, fork
  move north, view, breathtaker
  move east, crawl, boulders
#
#======================================================
#
at breathtaker
  move south, passage, out, warmjunctn
  move fork, fork
  respond d, jump, hah!
#
#======================================================
#
at boulders
  move west, out, crawl, warmjunctn
  move fork, fork
  move view, breathtaker
#
#======================================================
#
at limestone
  move north, upward, fork, fork
  move south, d, barren, barren
  move view, breathtaker
#
#======================================================
#
at barren
  move west, upward, limestone
  move fork, fork
  move east, inward, barren, enter, bear.room
  move view, breathtaker
  ifkey calm
    and
  ifnear bear, ferocious
    quip i.am.game
  fin
#
#======================================================
#
at bear.room
  move west, out, barren
  move fork, fork
  move view, breathtaker
#
#======================================================
#
at mazed.131
  move west, mazed.107
  move se, mazed.132
  move nw, mazed.133
  move sw, mazed.134
  move ne, mazed.135
  move upward, mazed.136
  move d, mazed.137
  move north, mazed.138
  move south, mazed.139
  move east, mazed.112
#
#======================================================
#
at mazed.132
  move nw, mazed.107
  move upward, mazed.131
  move north, mazed.133
  move south, mazed.134
  move west, mazed.135
  move sw, mazed.136
  move ne, mazed.137
  move east, mazed.138
  move d, mazed.139
  move se, mazed.112
#
#======================================================
#
at mazed.133
  move upward, mazed.107
  move d, mazed.131
  move west, mazed.132
  move ne, mazed.134
  move sw, mazed.135
  move east, mazed.136
  move north, mazed.137
  move nw, mazed.138
  move se, mazed.139
  move south, mazed.112
#
#======================================================
#
at mazed.134
  move ne, mazed.107
  move north, mazed.131
  move nw, mazed.132
  move se, mazed.133
  move east, mazed.135
  move d, mazed.136
  move south, mazed.137
  move upward, mazed.138
  move west, mazed.139
  move sw, mazed.112
#
#======================================================
#
at mazed.135
  move north, mazed.107
  move se, mazed.131
  move d, mazed.132
  move south, mazed.133
  move east, mazed.134
  move west, mazed.136
  move sw, mazed.137
  move ne, mazed.138
  move nw, mazed.139
  move upward, mazed.112
#
#======================================================
#
at mazed.136
  move east, mazed.107
  move west, mazed.131
  move upward, mazed.132
  move sw, mazed.133
  move d, mazed.134
  move south, mazed.135
  move nw, mazed.137
  move se, mazed.138
  move ne, mazed.139
  move north, mazed.112
#
#======================================================
#
at mazed.137
  move se, mazed.107
  move ne, mazed.131
  move south, mazed.132
  move d, mazed.133
  move upward, mazed.134
  move nw, mazed.135
  move north, mazed.136
  move sw, mazed.138
  move east, mazed.139
  move west, mazed.112
#
#======================================================
#
at mazed.138
  move d, mazed.107
  move east, mazed.131
  move ne, mazed.132
  move upward, mazed.133
  move west, mazed.134
  move north, mazed.135
  move south, mazed.136
  move se, mazed.137
  move sw, mazed.139
  move nw, mazed.112
#
#======================================================
#
at mazed.139
  move sw, mazed.107
  move nw, mazed.131
  move east, mazed.132
  move west, mazed.133
  move north, mazed.134
  move d, mazed.135
  move se, mazed.136
  move upward, mazed.137
  move south, mazed.138
  move ne, mazed.112
#
#======================================================
#
at mazed.140
  move north, out, mazed.112
  ifkey drop, coins
    and
  ifnear coins
    apport coins, ylem
    apport batteries, here
    quip batteries
  fin
#
#######################################################
