Paddington
Suppose we intend a game in which the player needs to cut things open on a regular basis. We'll want to check whether he has the proper tools handy, and deal graciously with commands such as CUT [something] when no tool is specified. So:
We'll need a way to account for all these cuts and rips.
Moreover, because open containers normally list their contents when examined but we'd prefer Paddington's to be mentioned in the ripping paragraph:
So far, so good. But suppose that we'd like cutting also to make containers be permanently open and impossible to close again. We could write an "instead" rule, but that would mean that only our instead instructions would take effect, overriding the normal cutting it with rules entirely. Better would be to add a second carry out rule:
Now our rule will occur whenever a container is cut, but play will still go on to the reporting stage. And indeed we can add more of these, of varying degrees of specificity:
For that matter, we might want to add a report rule as well, to occur after the "You slash…" rule, so that every time the player cuts something open which has contents, the contents will be listed.
This time we do not add the condition to the rule (i.e., Report cutting an open noun…) If we did, this report rule would be more specific than the general report rule, and would occur first.
Here is a final nicety to get rid of the "which is closed" statement on our closed unopenable teddy bear, using an "activity" rule:
Test me with "cut quilt with bear / cut quilt with switchblade / examine quilt / cut bear with switchblade / again / examine bear / cut head with switchblade / get diamonds / mourn loss of innocence".
You can see a teddy bear and a quilt here.
>(Testing.)
>[1] cut quilt with bear
The teddy bear has not got enough of a blade.
>[2] cut quilt with switchblade
You slash the quilt with the switchblade.
>[3] examine quilt
Horribly tattered.
You see one rip in the quilt.
>[4] cut bear with switchblade
You slash the teddy bear with the switchblade.
Visible within is a large wad of stuffing.
>[5] again
You slash the teddy bear with the switchblade.
Visible within is a large wad of stuffing.
>[6] examine bear
Fluffy, with an outsized head.
You see two rips in the teddy bear, revealing a large wad of stuffing.
>[7] cut head with switchblade
You slash the head with the switchblade.
Visible within are a small wad of stuffing and a packet of smuggled diamonds.
>[8] get diamonds
Taken.
>[9] mourn loss of innocence
That's not a verb I recognise.