1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-05 16:44:21 +03:00
inform7/resources/Documentation/Examples/Zed.txt
2019-03-16 13:12:11 +00:00

26 lines
969 B
Plaintext

* Vehicles and pushable things
(Travel requiring a vehicle; Peugeot)
A journey from one room to another that requires the player to be on a vehicle.
Let's say that our protagonist is about to flee . Obviously, he can't make the journey on foot; he needs transportation.
{*}"Peugeot"
Include Rideable Vehicles by Graham Nelson.
The Lot is a room. The ten-speed bike is a rideable vehicle in the Lot.
We make the ten-speed bike a rideable vehicle because we want to say that the player is on it rather than in it. Then our other room:
{**}Cambridge is east of the Lot.
And now we borrow from the Actions chapter to prevent travel without the proper equipment:
{**}Instead of going to Cambridge when the player is not on the ten-speed bike:
say "It's a long journey to Cambridge: you'll never make it on foot."
After going to Cambridge:
say "You begin pedalling determinedly.";
continue the action.
Test me with "e / get on ten-speed bike / e".