My test room now has a sink with a broken pipe that prevents a tap from working. Luckily, a wrench in a nearby toolbox with sort that right out. It's not the world's most fiendish puzzle, but it's working - thanks to a little bit I used from one of Emily Short's examples (feeding fish is much the same as fixing pipes, it turns out!). Now, I wonder if I can persuade my wife to be my first beta tester...
The Story (code) So Far:
Section 1 - Just Testing
The Main Room is a room. "This is a small, windowless room with grey metal walls. There is a chipped and dirty enamel sink in one corner of the room."
Rule for deciding whether all includes scenery: it does not.
Some metal walls are scenery in the Main Room.
The description of the metal walls is "Grey and featureless, they serve three purposes: to keep the inside from being outside, the outside from coming in, and to keep the ceiling off the floor."
The sink is a container in the Main Room. It is open and not openable. It is fixed in place. The description of the sink is "[if the tap is switched on]A single tap is spewing rusty water down the plughole. Ew![Otherwise]The sink has a single tap, which is off.[end if] There is a rusty pipe running down to the floor from the back of the sink."
The tap is a device. It is part of the sink. It is switched off.
The rusty pipe is a thing. It is part of the sink. The pipe is either broken or working. It is broken.
Instead of switching on the tap, say "[if the rusty pipe is broken]You turn the handle on the tap, but no water comes out.[otherwise]With a splutter, filthy water starts to pour from the tap."
The toolbox is a closed container in the Main Room. It is fixed in place. It is openable. In the toolbox is a screwdriver and a wrench.
Instead of taking the toolbox, say "It's too heavy to lift."
Before opening the toolbox:
say "The toolbox is full of old fuses, bits of wire and countless screws and nails of varying lengths. The only things that look like they could be of any use to you are a screwdriver and a wrench.";
Now the toolbox is open;
Stop the action.
The description of the wrench is "Just the thing for fixing broken pipes. What? This [italic type]is[roman type] just a test game."
The description of the screwdriver is "There is a picture of a little red fish on the handle. That's subtle."
Instead of doing something other than taking or examining the screwdriver, say "Have you had a look at the screwdriver? I'm guessing it won't be of any use to you."
Understand "fix [something]" as fixing.
Fixing is an action applying to one visible thing.
Check fixing:
if the pipe is working, say "You've fixed it already." instead;
if the noun is not the pipe, say "That doesn't need a wrenching." instead;
if the player is not carrying the wrench, say "You can't fix it with your bare hands!" instead;
Carry out fixing:
change the pipe to working;
Say "Well done, that ought to do it!"
Monday, 20 October 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment