§2.3. Using the Player's Input
We may sometimes want to capture specific words the player has used and then feature that text elsewhere in the story.
Terracottissima Maxima demonstrates using text to describe objects; Mr. Burns' Repast lets the player refer to a fish by any of a number of names, and changes the way the fish is described as a result.
More specialized effects are also possible: Xot shows how to collect the player's erroneous input and store the command line to be printed back later. Igpay Atinlay shows how to parrot the player's command back in pig Latin form.
See Animals for a dog which the player can re-name
See Traits Determined By the Player for a way to let the player name the player character
![]() | Start of Chapter 2: Adaptive Prose |
![]() | Back to §2.2. Varying What Is Read |
![]() | Onward to Chapter 3: Place: §3.1. Room Descriptions |
|
|
|
|