1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-08 18:14:21 +03:00
inform7/resources/Documentation/Examples/Staircase.txt
2019-03-16 13:12:11 +00:00

21 lines
1,001 B
Plaintext

* Degrees of certainty
(Staircase kind of door, always open and unopenable; Something Narsty)
A staircase always open and never openable.
In a game with many staircases, we might want:
{*}A staircase is a kind of door. A staircase is always open. A staircase is never openable.
Defining the staircase this way means that we will never be able to get away with (for instance) a folding ladder into the attic which is sometimes closed up. So alternatively we might do
{*}"Something Narsty"
A staircase is a kind of door. A staircase is usually open. A staircase is seldom openable.
We could then write a rule so that whenever the player types CLIMB [any staircase], the command is diverted to an enter command, while all other doors refuse to respond to such treatment. Still, this kind is now usable, as we see in this trivial example:
{**}The ladder is a staircase. It is above the Woodshed and below the Scary Loft.
Test me with "up".
But these are refinements for a later chapter.