Dialogue Response

A response on a DialogueLine.

Properties

id

var id: String
public string Id

The ID of the response.

next_id

var next_id: String
public string NextId

The ID of the next line if this response is chosen.

is_allowed

var is_allowed: bool
public bool IsAllowed

Thether this line passed its condition check.

condition_as_text

var condition_as_text: String
public string ConditionAsText

The original condition (as a string) used to check if this response is allowed.

text

var text: String
public string Text

The text for this response.

tags

var tags: PackedStringArray
public Array<string> Tags

A list of tags.

static_id

var static_id: String
public string StaticId

The key used to translate the text (or the whole text again if no ID was specified on the response).

Methods

has_tag

func has_tag(tag_name: String) -> bool:
public bool HasTag(string tagName)

Check if a dialogue line has a given tag.

get_tag_value

func get_tag_value(tag_name: String) -> String:
public string GetTagValue(string tagName)

Get the value of a tag if the tag is in the form of tag=value.