Inform 7 Home Page / Documentation
Chapter 13: Relations
§13.1. Sentence verbs; §13.2. What sentences are made up from; §13.3. What are relations?; §13.4. To carry, to wear, to have; §13.5. Making new relations; §13.6. Making reciprocal relations; §13.7. Relations in groups; §13.8. The built-in verbs and their meanings; §13.9. Defining new assertion verbs; §13.10. Defining new prepositions; §13.11. Indirect relations; §13.12. Relations which express conditions; §13.13. Relations involving values; §13.14. Relations as values in their own right; §13.15. Temporary relations; §13.16. What are relations for?
|Contents of Writing with Inform|
|Chapter 12: Advanced Actions|
|Chapter 14: Adaptive Text and Responses|
|Indexes of the examples|
§13.1. Sentence verbs
Descriptions of things - "open door", "people in the Drawing Room" - have already had a whole chapter to themselves. But descriptions are only half of the story of Inform's highly flexible language for talking about places, things and circumstances: this chapter is the other half, and is about the "sentence". Of course all text is made up of sentences, but Inform has a more specific meaning than that. Consider the following pieces of source text:
The mouse is in the teapot.
Every turn when the mouse is in the teapot, say "A tail hangs out of the spout."
Instead of taking the mouse:
say "The mouse slips from your hand and disappears into the teapot!";
now the mouse is in the teapot.
What these three extracts have in common is the sentence "the mouse is in the teapot". Such a sentence can be used in three different ways: to declare the original state of the world, to ask during play if the world currently has that state, or to change things during play so that it does.
Actually, though, only definite sentences about the present can be used in all three ways. A vague instruction like
now Mr Darcy can see the mouse;
will fail, because there are so many ways in which Darcy might be able to see the mouse that Inform has no way to know how to arrange matters. And this by contrast is not merely difficult but impossible:
now Mr Darcy has never seen the mouse;
Which cannot be arranged because the past cannot be changed.
Verbs also turn up inside the more complicated descriptions. For instance,
things which are in the teapot
people who can see the mouse
are both descriptions, not sentences, but they contain "to be" and "to be able to see" respectively.
This chapter is about the verbs which can be used in sentences and descriptions. Inform involves many other features which use verbs - the action "taking the mouse" and the phrase "end the story" both use forms of verbs (to take and to end) - but this chapter has nothing to do with them: so for the sake of clarity, we will call verbs that occur in sentences "sentence verbs".