Shawn's Bad Day
Example 294
★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".
Test me with "examine all".
Treasury
A massive vault fills up one wall.
You can also see a security guard here.
>(Testing.)
>[1] examine all
vault: The vault's system includes 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.
security guard: His name is Shawn, and he doesn't look happy.
little green light: Off.
little blue light: Tranquilly on.
little red light: Angrily flashing.
thin black pane of glass: You see nothing special about the thin black pane of glass.
laser beam: You see nothing special about the laser beam.
retinal scanner: You see nothing special about the retinal scanner.
thumbprint ID plate: You see nothing special about the thumbprint ID plate.
dial: You see nothing special about the dial.
large lever: You see nothing special about the large lever.
A massive vault fills up one wall.
You can also see a security guard here.
>(Testing.)
>[1] examine all
vault: The vault's system includes 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.
security guard: His name is Shawn, and he doesn't look happy.
little green light: Off.
little blue light: Tranquilly on.
little red light: Angrily flashing.
thin black pane of glass: You see nothing special about the thin black pane of glass.
laser beam: You see nothing special about the laser beam.
retinal scanner: You see nothing special about the retinal scanner.
thumbprint ID plate: You see nothing special about the thumbprint ID plate.
dial: You see nothing special about the dial.
large lever: You see nothing special about the large lever.