Dialogue Response
A response on a DialogueLine.
Properties
id
var id: Stringpublic string IdThe ID of the response.
next_id
var next_id: Stringpublic string NextIdThe ID of the next line if this response is chosen.
is_allowed
var is_allowed: boolpublic bool IsAllowedThether this line passed its condition check.
condition_as_text
var condition_as_text: Stringpublic string ConditionAsTextThe original condition (as a string) used to check if this response is allowed.
text
var text: Stringpublic string TextThe text for this response.
tags
var tags: PackedStringArraypublic Array<string> TagsA list of tags.
static_id
var static_id: Stringpublic string StaticIdThe 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.