1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-17 14:34:25 +03:00
inform7/resources/Documentation/Examples/Lucy.txt

24 lines
840 B
Plaintext
Raw Normal View History

Example: * Lucy
Location: Reading and talking
RecipeLocation: Remembering, Converting and Combining Actions
Index: ASKing about a conversation topic other than the one the player typed
Description: Redirecting a question about one topic to ask about another.
For: Z-Machine
2019-02-05 02:44:07 +02:00
Occasionally we will want to replace the player's question topic with another of our own devising. We can do this in the simplest possible case like so:
{*}"Lucy"
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
The International Boardgame Championship is a room. Lucy is a woman in the Championship.
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
Instead of asking Lucy about "checkers":
try asking Lucy about "games".
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
Instead of asking Lucy about "games",
say "'I don't like games,' she sniffs."
2024-03-19 23:14:26 +02:00
2019-02-05 02:44:07 +02:00
Test me with "ask lucy about checkers / ask lucy about games".
Note that this syntax did not work in older versions of Inform; it is now safe.
2024-03-19 23:14:26 +02:00