Some standard properties for things are:
- edible(the player can eat it),
- wearable(the player can wear it),
- fixed in place (the player will not be able to take or move it)
- lit (the object provides light).
>put cup on table
- portable (the supporter can be carried by the player)
- enterable (the supporter can be sat on or stood on).
The bed is an enterable supporter in the guest room. The description of the bed is “The big recliner looks like it would be extremely comfortable to lie in.”.
Any object that can be switched on or off.
Devices are, by default, portable, switched off, and will be mentioned when the player enters its location.
- switched on
- switched off (the default)
The water cooler is a device in the kitchen. It is switched on.
** The “carry out” rule in the next lesson will show you how to code so that things happen when a device is switched on or off. **
This is a thing that is similar to the scenery object but can be in more than one location at a time. Things such as mountains in the distance, the sky, wind, smells, sounds, etc., would be good candidates for backdrops. Backdrops need to be mentioned in the room description (or elsewhere) as they will not be mentioned otherwise.
Objects that are part of other objects
Example, suppose we want to create a night stand that has a drawer (that can be opened and closed) that will contain an important key for the player to find. But, we do not want the player to be able to take the drawer itself.
The drawer is a closed openable container and part of the night stand. A green key is in the drawer.
After working through the above examples…
Using Inform 7 or www.playfic.com create a room that has:
something which is scenery
a device (feel free to look at the next lesson and use the carry out rule)
**Include a description with each of the above.**
Copy and past your working code into notepad and hand in your code.