Book 3 - Traveling
Before going a direction (called thataway) (this is the orb refusal rule):
if the player encloses an orb:
let the possible locale be the room thataway from the location;
if the possible locale encloses an orb:
say "Your orb flares with light, and a horrible prickling sensation flashes along your nerves. You are forced back and cannot go [thataway]." instead.
The previously visited locale is a room that varies.
Before going a direction:
now the previously visited locale is the location.
After going a compass direction (called thataway) in the Blight (this is the Blight terrain announcement rule):
let terrain 1 be a random terrain in the previously visited locale;
let terrain 2 be a random terrain in the location;
if the terrain-type of terrain 1 is the terrain-type of terrain 2:
if the terrain-type of terrain 1 is moss:
say "The [terrain adjective of terrain 1] moss muffles your footsteps as you ";
otherwise if the terrain-type of terrain 1 is fallen leaves:
say "Fallen leaves slide underfoot as you ";
otherwise if the terrain-type of terrain 1 is sand:
say "Sand shifts underfoot as you ";
otherwise if the terrain-type of terrain 1 is mud:
say "Mud squelches quietly underfoot as you ";
otherwise if the terrain-type of terrain 1 is pebbles:
say "Pebbles crunch underfoot as you ";
otherwise if the terrain-type of terrain 1 is slush:
say "Sloshing through the slush, you ";
otherwise if the terrain-type of terrain 1 is snow:
if the current humidity is arid:
say "Snow crunches underfoot as you ";
otherwise:
say "Snow drags at your feet as you ";
otherwise if the terrain-type of terrain 1 is ice:
say "Ice crunches underfoot as you ";
otherwise:
say "You ";
say "head [thataway]";
if the current weather is raining:
if the current temperature is hot:
say " through the warm rain";
otherwise:
say " through the rain";
otherwise if the current weather is snowing:
say " through the snow";
otherwise if the current weather is misty:
say " through the drifting mist";
otherwise if the terrain-type of terrain 1 is bare rock:
say " across the bare rock";
otherwise:
say "Underfoot, the terrain changes from [terrain 1] to [terrain 2]";
if the current weather is snowing:
say ". You trudge on through the falling snow";
otherwise if the current weather is raining:
say ". You slog on through the rain";
say ".";
if the shadow self is in the previously visited locale:
now the shadow self is in the location;
say "Your shadow self ";
if the rhealth of the player is the chealth of the player:
say "follows you silently.";
otherwise if the rhealth of the player is 1:
say "staggers raggedly after you.";
otherwise:
say "limps after you.";
continue the action.
After going inside in a shrine room:
let the temporary shrine entrance be a random shrine entrance in the previously visited locale;
if the current weather is sunny:
say "You step into the [if the current temperature is hot]cool [end if]shadows of [the temporary shrine entrance]";
otherwise if the current weather is raining:
say "You step into the shelter of [the temporary shrine entrance], leaving the rain behind, though it echoes across the roof";
otherwise if the current weather is snowing:
say "You step into the shelter of [the temporary shrine entrance], leaving the snow behind";
otherwise:
say "You step into [the temporary shrine entrance]";
if the shadow self is in the previously visited locale:
now the shadow self is in the location;
say ". Your shadow self ";
if the rhealth of the player is the chealth of the player:
say "follows you silently.";
otherwise if the rhealth of the player is 1:
say "staggers raggedly after you.";
otherwise:
say "limps after you.";
otherwise:
say ".";
continue the action.
After going outside:
if the shadow self is in the previously visited locale:
now the shadow self is in the location;
say "Your shadow self ";
if the rhealth of the player is the chealth of the player:
say "follows you silently.";
otherwise if the rhealth of the player is 1:
say "staggers raggedly after you.";
otherwise:
say "limps after you.";
continue the action.