The Reliques of Tolti-Aph — 43 of 57

Graham Nelson

Release 3

Section E(n) - Setting up the labyrinth

To restore the labyrinth to its virgin state:

make all labyrinth exits lead to Solid Rock;

position the Hedge Archway at <1,1,12>;

position LR0 at <1,1,11>;

now the printed name of LR0 is "North-East-South Junction";

position LR1 at <1,1,13>;

now the printed name of LR1 is "North-East-South Junction";

position the Island in the Deep Pool at <3,6,12>;

position Western Shore at <3,5,12>;

position Eastern Shore at <3,7,12>;

position Northern Shore at <3,6,13>;

position Southern Shore at <3,6,11>;

repeat with the locale running through labyrinth rooms:

let the locale shape be the shape of the locale;

if the U part of the locale shape is 1, now the minimum level of the locale is 2;

now the locale is grovelike;

if the open space part of the locale shape is 0, now the locale is ungrovelike;

if the N part of the locale shape is 1 and the E part of the locale shape is 1 and the S part of the locale shape is 1 and the W part of the locale shape is 1, now the locale is ungrovelike;

if the N part of the locale shape is 0 and the E part of the locale shape is 0 and the S part of the locale shape is 0 and the W part of the locale shape is 0, now the locale is ungrovelike.

When play begins:

calculate how many labyrinth rooms should have each shape;

give shape to the shapeless labyrinth rooms;

restore the labyrinth to its virgin state.

To tidy the labyrinth for a fresh quest:

now the branch is almost too high;

now Terra Incognita is open;

repeat with maze area running through labyrinth rooms:

unless the maze area is the Hedge Archway:

now the grid position of the maze area is <0,0,0>;

now the maze area is unvisited;

repeat with trinket running through things in the maze area:

if the trinket is not a backdrop and the trinket is not the player, move the trinket to Terra Incognita;

if the trinket is a person, restore the health of the trinket;

remove Eurydice from play;

restore the labyrinth to its virgin state;

unless the location is the Hedge Archway, move the player to the Hedge Archway;

decrease the permanent strength of the player by 1;

restore the health of the player.