Scroll Thief — 50 of 138

Daniel M. Stelzer

Release 2

Book E - Explorability

Definition: a room is suggested for exploration: yes.

Exploring is an action out of world applying to nothing. Understand "new places" or "perfectly obvious exits I haven't used yet" as exploring.

Carry out exploring:

say "You consider which places haven't yet been explored.[br]";

let found be false;

repeat with the place running through visited rooms:

repeat with the way running through directions:

let the impediment be the door way from the place;

if the impediment is nothing or the impediment is open or the impediment is unlocked:

let the target be the room way from the place;

if the target is a room and the target is unvisited and the target is suggested for exploration:

let found be true;

say " - [way] from [the place][if the impediment is not nothing] (through [the impediment])[end if][br]";

if found is false:

say "Nothing comes to mind; you've explored your immediate surroundings rather thoroughly."

After thinking for the first time: say "[note][bracket]You can also say NEW PLACES to get a list of exits you haven't yet used.[close bracket][/note][br]"; continue the action.