======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|NPC's]] [[dialogue]]. The [[dialogue]] name is case-sensitive.
====Signature:====
set_dialogue(entity_id, dialogue_name)
^Argument^Description^Type^Required^
|entity_id|[[Entity]] ID of the [[NPC]] for which to update the [[dialogue]].|[[String]]|Yes|
|dialogue_name|Name of the new [[dialogue]].|[[String]]|Yes|
====Example:====
set_dialogue("purple_slime", "second_dialogue");
//Results:// The purple slime's [[dialogue]] is changed to "second_dialogue".
Use the **Set Dialogue** function to switch an [[NPC]] to an entirely different [[dialogue]] after your game has progressed to a new part of the story or to remove an [[NPC|NPC's]] [[dialogue]] after they no longer have anything to say.
----
====Editor Node:====
{{:wiki:set_dialogue_node.png?nolink|}}
====Visual Demo:====
{{:wiki:set_dialogue_demo.gif?nolink|}}
~~NOTOC~~