This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
set_dialogue [2017/05/10 14:57] – justin | set_dialogue [2021/04/21 18:49] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | 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. | + | Sets the [[dialogue]] of the specified |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | set_dialogue(npc_id, dialogue_name) | + | set_dialogue(entity_id, dialogue_name) |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |npc_id|Entity ID of the NPC for which to update the dialogue.|[[String]]|Yes| | + | |entity_id|[[Entity]] ID of the [[NPC]] for which to update the [[dialogue]].|[[String]]|Yes| |
- | |dialogue_name|Name of the new dialogue.|[[String]]|Yes| | + | |dialogue_name|Name of the new [[dialogue]].|[[String]]|Yes| |
====Example: | ====Example: | ||
- | < | + | < |
- | set_dialogue(" | + | set_dialogue(" |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Set Dialogue** function to ... | + | 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' |
</ | </ | ||