User Tools

Site Tools


twine1:prompt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

twine1:prompt [2017/10/09 20:39]
twine1:prompt [2017/10/09 20:39] (current)
Line 1: Line 1:
 +====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.
 +
 +<​code><<​set $name to prompt("​What'​s your name?","​Alyssa P. Hacker"​)>></​code>​
 +
 +As an alternative to a browser dialog box, you can instead use the [[<<​textinput>>​]] macro.
twine1/prompt.txt ยท Last modified: 2017/10/09 20:39 (external edit)