I attempted to solve a problem using ‘Understand … as a mistake’, however I7 seems to regard some of the input as erm, ‘global’ and other input it seems to regard as ‘local’ to the prop (a sink). I guess I expected ‘Understand … as a mistake’ to restrict itself to the room the sink is in. I tried to add conditions to ‘Understand … as a mistake’, but the IDE gave errors. I may have backed myself into a corner here.
If you can understand what I was trying to do, I’d appreciate a few words of explanation of why my idea didn’t work, and being shown a better method. Thanks in advance.
[code]“low budget props that work as expected” by Jeff
[I want props (e.g. a sink) to work as a player expects, but I don’t want to get involved in a ton of code to do so. My problem is, how to make something like a sink work (anticipating many ways a player might try it) with as little code as possible (i.e. as few new rules as possible).
I thought perhaps the ‘Understand … as a mistake’ structure would be ideal for this. Problem is, some phrases seem to work everywhere, even when no sink is present, while others work as expected. Do ‘test me’ from both rooms and note the difference.
]
test me with “x sink/use sink/get water/drink water/wash hands/drink/wash”;
section - low budget props that work as expected
A sink is a kind of container. It is usually fixed in place. A description of sink is “A chipped and stained basin with no pipes to take away the water. [line break]The water simply drains onto the floor and runs into a grille at your feet.”
[some code that anticipates many things a player might try to do…] [… but it doesn’t work as expected…]
Understand “drink” or “wash” or “use [sink]” or “wash hands” or “drink water” or “get water” as a mistake (“The water is clean and cool, [line break]but the pressure is so high it splashes on your pants.”).
section - center stage
Workshop is a room. In it is an engine. It is fixed in place. A description of Workshop is “To the south is a washroom.”
Instead of examining engine: say “A lawn mower engine. The whatsit has come loose from the whoosit. [line break]Oops, now your hands are dirty. Better go wash them.”
South of Workshop is Washroom. In it is a sink. A description of Washroom is “To the north is a workshop.” [/code]In case it wasn’t obvious, ‘low budget’ here means with as little overhead (work, memory) as possible. Thanks in advance.
Oh, and to reiterate: Do ‘test me’ from both rooms and note the difference.