ESCDialogOption

Extends: ESCStatement < Reference

Description

An option of an ESC dialog

Constants Descriptions

REGEX

const REGEX: String = "^[^-]*- (?<trans_key>[^:]+)?:?\"(?<option>[^\"]+)\"( \\[(?<conditions>[^\\]]+)\\])?$"

Regex that matches dialog option lines

Property Descriptions

option

var option: String
  • Getter: get_translated_option

Option displayed in the HUD

conditions

var conditions: Array

Conditions to show this dialog

Method Descriptions

load_string

func load_string(option_string: String)

Create a dialog option from an ESC string

Parameter

  • option_string: ESC string for the dialog option

get_translated_option

func get_translated_option()

is_valid

func is_valid() -> bool

Check, if conditions match