1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-05 16:44:21 +03:00
inform7/resources/Documentation/Examples/DoubleInvent.txt
2019-03-16 13:12:11 +00:00

16 lines
837 B
Plaintext

*** Text with variations
(INVENTORY listing with separate carried and worn items; Persephone)
Separate the player's inventory listing into two parts, so that it says "you are carrying..." and then (if the player is wearing anything) "You are also wearing...".
If we wanted, we might replace the rule for taking inventory as follows:
{*}"Persephone"
Instead of taking inventory:
say "[if the player carries something][We]['re] carrying [a list of things carried by the player][otherwise][We]['re] empty-handed";
say "[if the player wears something]. [We]['re] wearing [a list of things worn by the player][end if]."
The Fancy Party is a room. The player carries a sword, a strawberry stem, and 20 credits worth of platinum. The player wears a sash indicating lordhood.
Test me with "i / take off sash / i / drop all / i".