User Tools

Site Tools


set_dialogue

This is an old revision of the document!


Set Dialogue


Sets the dialogue of the specified NPC. An empty string value can be specified for the dialogue name in order to remove the NPC's dialogue. The dialogue name is case-sensitive.

set_dialogue(npc_id, dialogue_name)
ArgumentDescriptionTypeRequired
npc_idEntity ID of the NPC for which to update the dialogue.StringYes
dialogue_nameName of the new dialogue.StringYes

Example:

set_dialogue("purple_slime", "second_dialogue")

Results: The purple slime's dialogue is changed to “second_dialogue”.

Use the Set Dialogue function to …


Editor Node:

Visual Demo:

set_dialogue.1494453440.txt.gz · Last modified: 2017/05/10 14:57 by justin