1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-07 17:44:22 +03:00
inform7/resources/Documentation/Examples/OneShortPlank.txt
2023-07-24 11:56:58 +01:00

30 lines
1.4 KiB
Plaintext

Example: ** One Short Plank
Location: Going by, going through, going with
RecipeLocation: Doors, Staircases, and Bridges
Index: Plank bridge breaks on being crossed when the player is carrying something
Description: A plank bridge which breaks if the player is carrying something when they cross it. Pushing anything over the bridge is forbidden outright.
For: Z-Machine
{*}"One Short Plank"
The East Jungle is a room. The plank bridge is west of the East Jungle and east of the West Jungle. The plank is an open unopenable door. "A precarious plank bridge extends [if the location is West Jungle]east[otherwise]west[end if] across the chasm." The description of the plank is "Extremely fragile and precarious."
Instead of going through the plank when the player is carrying something:
say "You step gingerly across the plank, which bows under your weight. But your meagre possessions are the straw which breaks the camel's back!";
end the story.
After going through the plank:
say "You step gingerly across the plank, grateful that you're not burdened.";
continue the action.
There is a feather in the East Jungle.
But indeed, why stop there?
{**}The gigantic stone ball is a thing in the West Jungle. It is pushable between rooms.
Before going through the plank with something:
say "Surely you jest." instead.
Test me with "w / e / w / push ball e / e / get feather / w".