1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-07 17:44:22 +03:00
inform7/resources/Documentation/Examples/Unpeeled.txt
2023-07-24 11:56:58 +01:00

16 lines
606 B
Plaintext

Example: * Unpeeled
Location: Listing contents of something
RecipeLocation: Bags, Bottles, Boxes and Safes
Index: Single yellow onion in a sack
Description: Calling an onion "a single yellow onion" when (and only when) it is being listed as the sole content of a room or container.
For: Z-Machine
{*}"Unpeeled"
Scullery is a room. A sack is carried by the player. The sack contains a yellow onion. The player carries a cork.
Before printing the name of the onion while listing contents:
if the holder of the onion contains exactly 1 thing, say "single ".
Test me with "i / put cork in sack / i".