§10.4. During scenes
Scenes are not only useful for changing the setting, by moving items or people around and providing a little narration. We can also make the rules different in one scene from another. For instance, at a sleepy country halt there is no reason why one should not walk across the tracks: but if there is a train in the way, that would be impossible.
Before going north during the Train Stop, say "The train blocks your way." instead.
Any rule can have the clause "during ..." attached, provided that clause goes at the end and explicitly names a scene. This is especially useful with "every turn":
Every turn during the Train Stop, say "Water is sluiced out of the tank and into the engine."
We can test whether a scene is happening with the adjective "happening":
if Train Stop is happening, ...
if (scene) has not happened:
This condition is true if the given scene has not ended (or never started).
We need to be a bit careful: it's possible to set things up so that the Train Stop scene will play out more than once, so "Train Stop is happening" and "Train Stop has happened" might both be true at once.
The kind of value "scene" is one which is allowed to have properties - it has a tick in the "properties" column in the chart on the Kinds index page - and this can be very useful in describing scenes. For instance, we could write:
A scene can be thrilling or dull. Train Stop is dull.
A scene has a text called cue speech. The cue speech of Train Stop is "All aboard!".
Inform has the adjectives "recurring", "non-recurring" and "happening" all built in to describe scenes, and the above would add "thrilling" and "dull". Moreover, the "during" clause of a rule can give a description of a scene as easily as a specific scene name. For instance:
Before going north during a dull non-recurring scene, ...
![]() | Start of Chapter 10: Scenes |
![]() | Back to §10.3. Using the Scene index |
![]() | Onward to §10.5. Linking scenes together |
|
|
|
|
|
|