← Previous | Next →
Description
Prompts the player to input a text value, which is then stored in a local variable.
Name | Type | Possibilities |
input | interaction | 2 |
Parameters
# | Name | Type | Mandatory | Description | Multiple |
1 | output | string | Yes | The name of the local variable where the player's input will be stored. | No |
2 | text | string | Yes | The text message that prompts the player for input. | No |
3 | placeholder | string | No | The placeholder text that appears in the input field. Optional. | No |
4 | suggestion | string | No | A suggested input value that appears in the input field. Optional. | No |
5 | maxLength | number | No | The maximum number of characters allowed for the input. Optional. | No |
Outputs
# | Description |
1 | The player provided input, and it was stored in the local variable. |
2 | The player canceled the input. |
Example
NPC
name Questioner
model s_m_m_security_01
position -1020.72 4839.78 258.30 0.0
interaction
input playerName "Please enter your name:" "Enter name..." "John Doe" 20
tell "Thank you, $playerName!"
behaviour
nothing