Prototype: GemRB.SetPlayerName(Slot, Name[, LongOrShort])
Description: Sets the player name. Each actor has 2 names, this command can set either or both.
- Slot - numeric, the character’s slot
- Name - string, the name
- LongOrShort - 0 (both), 1 (short), 2 (long)
Return value: N/A
GemRB.SetPlayerName (MyChar, GemRB.GetToken('CHARNAME'), 0) In the above example we set the player's name to a previously set Token (global string).
Back to function index, GUIScript introduction.