Extends: ESCStatement < Reference
An ESC dialog
const END_REGEX: String = "^(?<indent>\\s*)!.*$"
A Regex that matches the end of a dialog
const REGEX: String = "^(\\s*)\\?( (?<avatar>[^ ]+))?( (?<timeout>[^ ]+))?( (?<timeout_option>.+))?$"
Regex that matches dialog lines
var avatar: String = "-"
Avatar used in the dialog
var timeout: int = 0
Timeout until the timeout_option option is selected. Use 0 for no timeout
var timeout_option: int = 0
The dialog option to select when timeout is reached
var options: Array
A list of ESCDialogOptions
func load_string(dialog_string: String)
Construct a dialog from an ESC dialog string
- dialog_string: ESC dialog string
func is_valid() -> bool
Check if dialog is valid
func run()
Run this dialog