Skip to main content

SproutyDialogsEventInterpreter

Inherits: Node

Description

Node that process the event nodes of a dialog tree from the Sprouty Dialogs plugin.

This node is used by the DialogPlayer to process the nodes of a dialog tree.

Important

The processors can be access by the node_processors dictionary, that is used by the DialogPlayer to process the nodes by their type. You should not use this node directly.

Properties

TypeNameDefault
Dictionarynode_processorsSee description
boolprint_debugtrue

Signals

signal continue_to_node(to_node: String)

Emitted when a node is processed and is ready to continue to the next node.


signal dialogue_processed(character_name: String, translated_name: String, portrait: String, dialog: String, next_node: String)

Emitted when a dialogue node was processed.


signal options_processed(options: Array, next_nodes: Array)

Emitted when a options node was processed.


signal signal_processed(signal_argument: String, next_node: String)

Emitted when a signal node was processed.


Property Descriptions

var node_processors : Dictionary

Node processors reference dictionary. This dictionary maps the node type to its processing method. You can call the processors from this dictionary.


If true, will print debug messages to the console.