mirror of
https://github.com/ganelson/inform.git
synced 2024-07-08 01:54:21 +03:00
19 lines
1.2 KiB
Plaintext
19 lines
1.2 KiB
Plaintext
* Standard tokens of grammar
|
|
(EXAMINE multiple things at once; Shawn's Bad Day)
|
|
Allowing the player to EXAMINE ALL.
|
|
|
|
We can add the handling of multiple objects to an existing action simply by adding in a line of grammar using "[things]". In response, Inform will consider every object accepted by the token, and perform the action once for each of those objects. Thus:
|
|
|
|
{*}"Shawn's Bad Day"
|
|
|
|
The Treasury is a room. The vault is a lockable locked closed openable container in the Treasury. It is fixed in place. "A massive vault fills up one wall." The description is "The vault's system includes [a list of things which are part of the vault]."
|
|
|
|
A little green light, a little blue light, a little red light, a thin black pane of glass, a laser beam, a retinal scanner, a thumbprint ID plate, a dial, and a large lever are part of the vault.
|
|
|
|
The security guard is a man in the Treasury. The description is "His name is Shawn, and he doesn't look happy."
|
|
|
|
The description of the green light is "Off." The description of the blue light is "Tranquilly on." The description of the red light is "Angrily flashing."
|
|
|
|
Understand "examine [things]" as examining.
|
|
|
|
Test me with "examine all". |