In Fire or in Flood
But that's only a small part of the battle. The thing about fire is that it keeps on doing fiery things even when the player is otherwise occupied: destroying items that are on fire, and spreading to other things nearby. So we need a set of rules for the fire's behavior.
Because we've labelled all the fire rules, we could swap their order, or turn some of them off, while allowing the others run as usual. For instance, if there were a pair of fireproof gloves in the game, we might want to turn off the "can't hold flaming objects rule" whenever the player is wearing them.
This sort of flexibility is especially useful in the context of extensions. Someone writing an extension about burning would have no way of anticipating the need for a Fireproof Gauntlet of Thog, but the author would nonetheless be able to implement one easily.
The contact between things is a critical factor when it comes to fire, so we might add a couple of conditional relations do determine what is touching what.
Having these at our disposal makes it much tidier to write what happens next:
And that completes the rules which cover burning: things can catch fire, fire will spread, and gradually consume the world in flames. All of that was general and could be used in any setting, but we now provide a small game to show it off.
We can then add a special fire rule to handle the trapdoor, which will be called as part of the same sequence. Again, this would be most important if the fire rules were part of a standard extension, and the trapdoor fire rule the author's own addition.
Test me with "get manuscript / get shroud / light desk / look / g / open drawer / look / g / g / g / get sack / put shroud in sack / put manuscript in sack / close sack / light trapdoor / look / g / g / g / g / g / g / g / g / g / g / g / g / g / g / up".
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
On the desk is a world's last manuscript of the Psychagogoi by Aeschylus.
You can also see a box (in which is a shroud of Laertes) here.
>(Testing.)
>[1] get manuscript
Taken.
>[2] get shroud
Taken.
>[3] light desk
You light the desk with the flaming torch.
>[4] look
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see a box (empty) here.
Flames engulf the drawer.
>[5] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see a box (empty) here.
>[6] open drawer
Fire has too thoroughly engulfed the flaming drawer for that to be a good idea.
>[7] look
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see a box (empty) here.
>[8] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see a box (empty) here.
The flaming desk burns away, leaving a flaming drawer behind.
>[9] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see a flaming drawer (closed) and a box (empty) here.
The flaming drawer burns away, leaving an asbestos sack behind.
>[10] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape.
You can also see an asbestos sack (empty) and a box (empty) here.
>[11] get sack
Taken.
>[12] put shroud in sack
You put the shroud of Laertes into the asbestos sack.
>[13] put manuscript in sack
You put the world's last manuscript of the Psychagogoi by Aeschylus into the asbestos sack.
>[14] close sack
You close the asbestos sack.
>[15] light trapdoor
You light the trapdoor with the flaming torch.
A spark from the flaming trapdoor catches the box!
>[16] look
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
>[17] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
>[18] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
>[19] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
>[20] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
>[21] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a flaming box (empty) here.
The flaming box burns away, leaving a metal hinge behind.
>[22] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[23] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[24] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[25] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[26] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[27] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[28] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[29] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
>[30] g
Library of the Dead
This room -- little, dank, stone -- is filling with some miasma you do not quite dare breathe. It is imperative that you get out.
A trapdoor in the ceiling is your only hope of escape. Fortunately, it is rapidly burning through.
You can also see a metal hinge here.
The flaming trapdoor burns away.
>[31] up
Out at last!
*** The End ***