DialogueLine
A line of dialogue.
Properties
character
var character: Stringpublic string CharacterThe name of the character speaking (or "").
concurrent_lines
var concurrent_lines: Array[DialogueLine]public Array<DialogueLine> ConcurrentLinesA list of lines that are to be spoken at the same time as this one.
id
var id: Stringpublic string IdThe ID of the line.
next_id
var next_id: Stringpublic string NextIdThe ID of the next line of dialogue after this one.
responses
var responses: Array[DialogueResponse]public Array<DialogueResponse> ResponsesThe list of responses to this line (if any).
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 line).
tags
var tags: PackedStringArraypublic Array<string> TagsA list of tags.
text
var text: Stringpublic string TextThe text that the character is saying.
time
var time: stringpublic string TimeMethods
to_serialized
func to_serialized() -> StringConvert a line of dialogue to a string that can be used to restore it later.
new_from_serialized
static func new_from_serialized(serialized_string: String, extra_game_states: Array = []) -> DialogueLineRestore a serialized line of dialogue. Pass in an array of game states if needed.
[!WARNING] Serializing only works with persisted resources, not resources that have been created with
DialogueManager.create_resource_from_text().