mirror of
https://github.com/ganelson/inform.git
synced 2024-07-16 22:14:23 +03:00
15 lines
989 B
Plaintext
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. |