User Tools

Site Tools


change_player

Change Player


Swaps out the current player character for another character. The other character can be provided as a party member or an NPC that exists within the current map.

Signature:

change_player(character)
ArgumentDescriptionTypeRequired
characterThe character to swap the current player character with.EntityYes

Example:

change_player(party.member["Sarah"]);

Results: The party member with the ID of “Sarah” will now be the main player character.

Use the Change Player function from a dialogue or custom widget to allow the player to switch between members of their party.


Editor Node:

Visual Demo:

change_player.txt · Last modified: 2021/12/16 19:12 by justin