I just want to prompt the user for a line of text in the middle of an action. The effect should be like this:
> north
The robot steps in front of you as you approach the gate.
"PAASSWAAAAWRD!!" it bellows.
Enter the password: _
At this point the game should pause and let the player try to guess the password. For example, suppose I guess “fribble”, which is not the password:
Enter the password: fribble
"WRONG PASSWAAARD!" roars the robot. "CHECK CAPS LAAAWWWWK!"
>
The behavior I want is similar to if the player consents
, but I want the whole line of input, not just a yes or no.
Dropping to I6 like this works in Inform 7.9.3. This is probably a bad idea.
You can then use the phrase "get a line of input" to read a line, and the phrase "the user's input" gives the line they entered. (A snippet is a kind of text.)
The example then looks like this: