version 1 by Andre Kosmos
Example: * test game for exit lister -
"test game for exit lister" by Andre Kosmos.
include exit lister by Andre Kosmos.
Hallway is a room. "This hallway is decorated with the simplest wallpaper you have ever seen. There are no pictures, or plates with wise words, nor tiles with proverbs hanging on any of the walls. The only thing you notice is that all the doors are painted in different colors."
The pink door is east of hallway and west of Bathroom. It is a door and scenery.
The description of the bathroom is "Everything in here is pink. The tiles on the walls, the toilet bowl, the bathtub, the floor, and even the ceiling. The only thing not pink is a large mirror on the wall, but since all it reflects is pink that hardly matters.".
A large mirror is scenery in bathroom. Instead of examining mirror, say "Don't be vain, you look fine.".
The brown door is west of hallway and east of the Living Room. It is a door and scenery.
The description of the living room is "You are in a well decorated room here, there are numerous pictures on the walls, some comfy looking chairs, and a big television set."
The green door is south of hallway and north of Garden. It is a door and scenery.
The description of garden is "A large garden with very short cut grass, and various flowerbeds. The main thing you notice is a large oak tree. From between the leaves of the trees you see a rope ladder hanging down to the ground. The ladder is dug into the ground to keep it from swinging to much when you climb it."
The rope ladder is up from garden and down from the Tree house. It is a open unopenable door and scenery.
The passing text of rope ladder is "climbing". Instead of climbing the rope ladder in tree house, try going down. Instead of climbing the rope ladder in garden, try going up.
The description of the tree house is "A Rather untraditional tree house, the walls are decorated with a rather ugly wallpaper with pink and purple flowers, and a thick red carpet covers the floor."
A wooden bridge is east of garden and west of the Main Street. It is an open unopenable door and scenery. The passing text of the wooden bridge is "over".
The description of the main street is "This is the main street, from here you could go to town to see a movie, visit a pub, or something. If only the author of this game wasn't to lazy to write those pleasant locations in. Ah well... maybe next version."
When play begins:
say "Do you want a list of possible exits at the end of the room description?";
if player consents, try turning exits on;
otherwise try turning exits off;
say "[paragraph break]You can always turn the exit list on or off with the commands EXITS ON and EXITS OFF. You can also always ask for an exit list with the command EXITS.[paragraph break]Do you want the exit lister to mention locations you have already visited?";
if player consents, now room memory is yes;
otherwise now room memory is no;
say "[paragraph break]Sometimes the exit list can tell you that you can go north, but when you try to the game tells you that You can't, since some door is in the way. [paragraph break]Do you want to mention those doors in the exit list?";
if player consents, mention doors;
otherwise don't mention doors;
say "[paragraph break]".
test me with "open green door / s / e / w / u"