User Tools

Site Tools


set_character_name

Set Character Name


Changes the name of the specified character (i.e. the name displayed when speaking during dialogue).

Signature:

set_character_name(entity_id, name)
ArgumentDescriptionTypeRequired
entity_idEntity ID of the character.StringYes
nameNew name for the character.StringYes

Example:

set_character_name("red_slime", "Bob");

Results: The red slime's name will be displayed as “Bob” within any dialogue going forward.

Use the Set Character Name function to change an NPC's displayed name to something more specific or less formal after becoming acquainted with the player.


Editor Node:

Visual Demo:

set_character_name.txt · Last modified: 2021/04/21 18:49 by justin