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/TerracottissimaMaxima.txt
2019-03-16 13:12:11 +00:00

15 lines
989 B
Plaintext

*** Understanding things by their properties
(Understanding text; Terracottissima Maxima)
Flowerpots with textual names that might change during play.
Inform can also understand text properties:
{*} "Terracottissima Maxima"
A flowerpot is a kind of thing. A flowerpot has a text called pattern. Understand the pattern property as describing a flowerpot. The printed name of a flowerpot is usually "[pattern] flowerpot". The printed plural name of a flowerpot is usually "[pattern] flowerpots".
The Herb Garden is a room. In the Herb Garden is a flowerpot with pattern "blue willow". In the Herb Garden is a flowerpot with pattern "striped". In the Herb Garden is a flowerpot with pattern "striped".
Test me with "x blue willow / get striped / look".
This may not seem very much different from having the pattern be a kind of value -- except that texts can, of course, hold almost anything. Further exploration of these possibilities may be found in the chapter on Advanced Text.