1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-16 14:04:24 +03:00
inform7/resources/Documentation/Examples/DemocraticProcess.txt

30 lines
1.4 KiB
Plaintext
Raw Normal View History

Example: *** Democratic Process
Location: Before rules
RecipeLocation: Taking, Dropping, Inserting and Putting
Index: PUT and INSERT automatically TAKE first
Description: Make PUT and INSERT commands automatically take objects if the player is not holding them.
For: Z-Machine
2019-02-05 02:44:07 +02:00
"Stop" and "Continue" are most useful when we need to write rules that will have to stop the action some of the time but at other times let it pass; so for instance:
{*}"Democratic Process"
2019-02-05 02:44:07 +02:00
Before inserting something which is not carried by the player into something:
if the noun is in the second noun, say "Already done." instead;
say "(first taking [the noun])[line break]";
silently try taking the noun;
if the player is not holding the noun, stop the action.
2019-02-05 02:44:07 +02:00
Before putting something which is not carried by the player on something:
if the noun is on the second noun, say "Already done." instead;
say "(first taking [the noun])[line break]";
silently try taking the noun;
if the player is not holding the noun, stop the action.
The Assembly Room is a room. "On most days, this room is used for elementary school assemblies; at the moment, it serves as a voting place." The ballot is on the desk. The desk is in the Assembly Room.
2019-02-05 02:44:07 +02:00
The machine is a container in the Assembly Room. "On the ballot machine is a sign which reads 'PUT BALLOTS IN ME :)'." Understand "ballot machine" as the machine.
2019-02-05 02:44:07 +02:00
Test me with "put ballot in machine".