What we learnt from the command handling routines above:
TER%()
contains the terrain type at an outside locationDNG%()
contains what is at a particular location in a dungeonTX
and TY
are the player's location outsidePX
and PY
are the player's location insideDX
and DY
are how PX
and PY
will change if the player steps forward (i.e. they give the direction the player is facing in the dungeon)Values of TER%()
are:
1
= MOUNTAINS3
= TOWN (SHOP)4
= DUNGEON5
= LORD BRITISH'S CASTLEValues of DNG%()
are:
1
= WALL?2
= TRAP5
= CHEST7
or 9
= DOWN LADDER8
= UP LADDER