mirror of
https://github.com/ganelson/inform.git
synced 2024-07-05 16:44:21 +03:00
12 lines
562 B
Plaintext
12 lines
562 B
Plaintext
* Listing contents of something
|
|
(Single yellow onion in a sack--Object named differently if alone in its container; Unpeeled)
|
|
Calling an onion "a single yellow onion" when (and only when) it is being listed as the sole content of a room or container.
|
|
|
|
{*}"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". |