User Tools

Site Tools


twine1:prompt

prompt(string, string)

Displays a text input dialog box. The text entered here will be the value of the function. The first string you give it is the message to display to the player. The second is the default value for the text input. This is a browser built-in.

<<set $name to prompt("What's your name?","Alyssa P. Hacker")>>

As an alternative to a browser dialog box, you can instead use the <<textinput>> macro.

twine1/prompt.txt · Last modified: 2017/08/19 17:08 by videlais