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

46 lines
2 KiB
Plaintext

* All actions and exceptional actions
(Actions prohibited in the presence of a dangerous character; Zodiac)
Several variations on "doing something other than...", demonstrating different degrees of restriction.
Notice that the following two scenarios do not have the same effect:
{*}"Zodiac"
The Secluded Alley is a room. The Capricorn Killer is a man in the Secluded Alley.
The player carries a can of mace and a roll of duct tape.
Instead of doing something other than examining with the Capricorn Killer:
say "You wouldn't dare!"
Test me with "x me / x killer / touch killer / smell mace".
...will prevent the player from doing anything else to the killer, but allow him free range of action with other objects. By contrast, the following will prevent him doing anything other than examining to any item:
{*}"Zodiac"
The Secluded Alley is a room. The Capricorn Killer is a man in the Secluded Alley.
The player carries a can of mace and a roll of duct tape.
Instead of doing something other than examining something in the presence of the Capricorn Killer:
say "You dare not attempt it!"
Test me with "x me / x killer / touch killer / smell mace".
But notice that because we specified "examining something", actions that take no object (like sing) are still not affected.
The most strict statement would be
{*}"Zodiac"
The Secluded Alley is a room. The Capricorn Killer is a man in the Secluded Alley.
The player carries a can of mace and a roll of duct tape.
Instead of doing something other than looking or examining in the presence of the Capricorn Killer:
say "You dare not attempt it!"
Test me with "x me / x killer / touch killer / smell mace".
Because we left "something" out, now the pattern does not have to match an activity with an object; it will match any activity at all. Singing too will be deemed too risky in the presence of our sinister foe. But we do need to make an exception for "look", or else we won't get even the room description.