User Tools

Site Tools


set_character_name

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
set_character_name [2018/03/16 09:48] justinset_character_name [2021/04/21 18:49] (current) justin
Line 2: Line 2:
 ---- ----
  
-Changes the name of the specified character (i.e. the name displayed when speaking during dialogue).+Changes the name of the specified [[character]] (i.e. the name displayed when speaking during [[dialogue]]).
  
 ====Signature:==== ====Signature:====
 <code python> <code python>
-set_character_name(character_id, name)+set_character_name(entity_id, name)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|character_id|Entity ID of the character.|[[String]]|Yes| +|entity_id|[[Entity]] ID of the [[character]].|[[String]]|Yes| 
-|name|New name for the character.|[[String]]|Yes|+|name|New name for the [[character]].|[[String]]|Yes|
  
 ====Example:==== ====Example:====
-<code python+<code bauxite
-set_character_name("red_slime", "Bob")+set_character_name("red_slime", "Bob");
 </code> </code>
-//Results:// The red slime's name will be displayed as "Bob" within any dialogue going forward.+//Results:// The red slime's name will be displayed as "Bob" within any [[dialogue]] going forward.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-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.+Use the **Set Character Name** function to change an [[NPC|NPC's]] displayed name to something more specific or less formal after becoming acquainted with the player.
 </WRAP> </WRAP>
  
set_character_name.1521218890.txt.gz · Last modified: 2018/03/16 09:48 by justin