| Variable Name | Value | Default | Notes | 
|---|---|---|---|
| NWNX_RENAME_ON_MODULE_CHAR_LIST | true or false | false | This is the listing of players from the character selection screen before entering the server. Setting the value to true overrides their names if a global rename has been set. | 
| NWNX_RENAME_ON_PLAYER_LIST | true or false | true | Renames the player name on the player list as well. | 
| NWNX_RENAME_ALLOW_DM | true or false | false | DM observers will see global or personal overrides as well as being able to have their own name overridden for other observers. | 
| NWNX_RENAME_ANONYMOUS_NAME | string | Someone | When using NWNX_Rename_SetPCNameOverridewithNWNX_RENAME_PLAYERNAME_ANONYMOUSthis is the string used for the <PlayerName> | 
| NWNX_RENAME_OVERWRITE_DISPLAY_NAME | true or false | false | When set to true, global overrides change the display name globally - scripts and DMs included. When set tofalse, then name is only changed for players. Scripts and DMs see the original names (unlessNWNX_RENAME_ALLOW_DMis set). | 
And a corresponding MySQL example DB structure:
| Files | |
| file | nwnx_rename.nss | 
| Functions | |
| void | NWNX_Rename_SetPCNameOverride (object oTarget, string sNewName, string sPrefix="", string sSuffix="", int iPlayerNameState=NWNX_RENAME_PLAYERNAME_DEFAULT, object oObserver=OBJECT_INVALID) | 
| Set a PC's character name and community name on the player list.  More... | |
| string | NWNX_Rename_GetPCNameOverride (object oTarget, object oObserver=OBJECT_INVALID) | 
| Gets a PC's name as overridden.  More... | |
| void | NWNX_Rename_ClearPCNameOverride (object oTarget, object oObserver=OBJECT_INVALID, int clearAll=FALSE) | 
| Clears an overridden PC Name.  More... | |
| void NWNX_Rename_SetPCNameOverride | ( | object | oTarget, | 
| string | sNewName, | ||
| string | sPrefix = "", | ||
| string | sSuffix = "", | ||
| int | iPlayerNameState = NWNX_RENAME_PLAYERNAME_DEFAULT, | ||
| object | oObserver = OBJECT_INVALID | ||
| ) | 
Set a PC's character name and community name on the player list.
| oTarget | The PC whose name is being overridden. | 
| sNewName | The new name. | 
| sPrefix | The prefix for their character name, sometimes used for a color code. | 
| sSuffix | The suffix for their character name. | 
| iPlayerNameState | How to change the Community Name, use Community Name Override Type. | 
| oObserver | If specified, the character name will appear to that specific observer as set, this overrides a global setting. | 
Definition at line 45 of file nwnx_rename.nss.
| string NWNX_Rename_GetPCNameOverride | ( | object | oTarget, | 
| object | oObserver = OBJECT_INVALID | ||
| ) | 
Gets a PC's name as overridden.
| oTarget | The PC whose name to query. | 
| oObserver | The specific observer. | 
GetName(oPC, TRUE). Definition at line 56 of file nwnx_rename.nss.
| void NWNX_Rename_ClearPCNameOverride | ( | object | oTarget, | 
| object | oObserver = OBJECT_INVALID, | ||
| int | clearAll = FALSE | ||
| ) | 
Clears an overridden PC Name.
| oTarget | The PC whose overridden name to clear, use OBJECT_INVALID if you're clearing all overrides for an observer. | 
| oObserver | The observer whose overridden name of oTarget is being cleared. If oTarget is OBJECT_INVALID then all overrides are cleared. | 
| clearAll | If true, both the global and personal overrides will be cleared for that target PC. Requires oObserver be OBJECT_INVALID. | 
Definition at line 64 of file nwnx_rename.nss.
| const int NWNX_RENAME_PLAYERNAME_DEFAULT = 0 | 
Don't rename.
Definition at line 11 of file nwnx_rename.nss.
| const int NWNX_RENAME_PLAYERNAME_OBFUSCATE = 1 | 
Generate random string for Community Name.
Definition at line 12 of file nwnx_rename.nss.
| const int NWNX_RENAME_PLAYERNAME_OVERRIDE = 2 | 
Use character name specified.
Definition at line 13 of file nwnx_rename.nss.
| const int NWNX_RENAME_PLAYERNAME_ANONYMOUS = 3 | 
Use the value of the NWNX_RENAME_ANONYMOUS_NAME environment variable.
Definition at line 14 of file nwnx_rename.nss.