Bowler Hats and Baby Geese
Scenes can have properties -- a fact that is very useful when it comes to writing a series of scenes that all need to act alike in some respect.
Suppose we have a plot that features a number of scripted scenes, where we need the player to stand still and wait while the events of the scene play out. One way to set this up is to create a property for such scenes -- let's call them "restricted" -- and then write a rule that keeps the player in place while the scene happens:
And now let's set up our restricted scene. In it, a clown is going to turn up wherever the player is (it doesn't matter where on the map he's gotten to at this point) and do a performance; the player will not be able to leave the area until the performance completes. We'll start with the setting:
…And now the scene itself:
event description |
"A clown with a purple polka-dot bowler hat strides into the vicinity and begins to juggle baby geese." |
"While the clown juggles, the baby geese visibly grow older and larger. The clown becomes unnerved." |
"In an attempt to resolve the problem, the clown reverses the direction of his juggling. The geese revert to goslings." |
"The goslings become smaller and smaller until the clown is juggling goose eggs[replace eggs]." |
"The clown throws all the eggs into the air at once and catches them in the bowler hat. He takes a bow; the audience applauds. As a final gesture, he upends his hat to release a perfectly cooked omelet." |
Test me with "scenes / n / z/ z / look / x geese / s / x geese / x eggs / z / s".
A sort of fun fair has been set up on this broad lawn, with the House as a backdrop: it's an attempt to give local children something to do during the bank holiday. In typical fashion, everyone is doing a very good job of ignoring the House itself, despite its swarthy roofline and dozens of blacked-out windows.
>(Testing.)
>[1] scenes
Scene 'Entire Game' playing (for 0 mins now)
(Scene monitoring now switched on. Type "scenes off" to switch it off again.)
>[2] n
Gazebo
The gazebo is sometimes used for bands, but at the moment has been appropriated for the distribution of lemonade.
>[3] z
Time passes.
[Scene 'Clown Performance' begins]
>[4] z
Time passes.
A clown with a purple polka-dot bowler hat strides into the vicinity and begins to juggle baby geese.
>[5] look
Gazebo
The gazebo is sometimes used for bands, but at the moment has been appropriated for the distribution of lemonade.
A clown wearing a purple polka-dot bowler hat stands nearby.
While the clown juggles, the baby geese visibly grow older and larger. The clown becomes unnerved.
>[6] x geese
Three or four. Or five. It's hard to count.
In an attempt to resolve the problem, the clown reverses the direction of his juggling. The geese revert to goslings.
>[7] s
Better to stay here for the moment and find out what is going to happen next.
The goslings become smaller and smaller until the clown is juggling goose eggs.
>[8] x geese
You can't see any such thing.
>[9] x eggs
A blur, really.
The clown throws all the eggs into the air at once and catches them in the bowler hat. He takes a bow; the audience applauds. As a final gesture, he upends his hat to release a perfectly cooked omelet.
[Scene 'Clown Performance' ends]
[Scene 'Free Time' begins]
>[10] z
Time passes.
>[11] s
Broad Lawn
A sort of fun fair has been set up on this broad lawn, with the House as a backdrop: it's an attempt to give local children something to do during the bank holiday. In typical fashion, everyone is doing a very good job of ignoring the House itself, despite its swarthy roofline and dozens of blacked-out windows.