Chapter 8: Vehicles, Animals and Furniture
§8.1. Bicycles, Cars and Boats; §8.2. Ships, Trains and Elevators; §8.3. Animals; §8.4. Furniture; §8.5. Kitchen and Bathroom
![]() | Contents of The Inform Recipe Book |
![]() | Chapter 7: Other Characters |
![]() | Chapter 9: Props: Food, Clothing, Money, Toys, Books, Electronics |
![]() | Indexes of the examples |
§8.1. Bicycles, Cars and Boats
The vehicle kind in Inform refers to an object which can carry at least one person, but is small enough to fit into a single location:
In the Garden is a vehicle called the motor mower.
We can then apply different rules to a player going somewhere on foot or in the vehicle. Peugeot (a bicycle) is an easy example; No Relation (a car) adds an ignition switch to the vehicle; Straw Boater (a motorboat) gets around areas of lake where travel on foot is not just slower but impossible.
Hover (a sci-fi "hover-bubble") changes the appearance of the landscape when it is seen from inside the vehicle.
See Ships, Trains and Elevators for larger conveyances
![]() | Start of Chapter 8: Vehicles, Animals and Furniture |
![]() | Back to Chapter 7: Other Characters: §7.16. Social Groups |
![]() | Onward to §8.2. Ships, Trains and Elevators |
|
|
Sometimes we like to give properties to kinds of thing, but not fill them in in all cases. For instance, we might have vehicles that optionally make noise, and those might have a "movement sound". All properties have a default value, which we can find by looking in the Kinds tab of the index. This is what the property will be set to automatically, if we do not change it ourselves. In the case of a text property, that is ""; so for instance we might use our movement sound thus:
Note that we haven't given the sailboat any movement sound at all.
|
|
Sometimes we like to give properties to kinds of thing, but not fill them in in all cases. For instance, we might have vehicles that optionally make noise, and those might have a "movement sound". All properties have a default value, which we can find by looking in the Kinds tab of the index. This is what the property will be set to automatically, if we do not change it ourselves. In the case of a text property, that is ""; so for instance we might use our movement sound thus:
Note that we haven't given the sailboat any movement sound at all.
|
|