|
bool | OverwriteDisplayName = false [get, set] |
| Gets or sets if global overrides change the underlying display name value. This applies the name change globally to scripts, and DMs.
When set to false, the override name is only visible to players - scripts and DMs see the original names unless ShowOverridesToDM is set to true. More...
|
|
OverrideNameType | PlayerListNameType = OverrideNameType.Player [get, set] |
| Gets or sets the type of name override to use from the in-game player list. More...
|
|
bool | ShowOverridesToDM = false [get, set] |
| DM observers will see global or personal overrides as well as being able to have their own name overridden for other observers. More...
|
|
◆ ClearPlayerNameOverride() [1/2]
void Anvil.Services.PlayerNameOverrideService.ClearPlayerNameOverride |
( |
NwPlayer |
target, |
|
|
bool |
clearAll = false |
|
) |
| |
|
inline |
Clears an overridden player character name.
- Parameters
-
target | The player whose name should be reset to default. |
clearAll | If true, both global and any personal overrides will be cleared for that target player. |
◆ ClearPlayerNameOverride() [2/2]
void Anvil.Services.PlayerNameOverrideService.ClearPlayerNameOverride |
( |
NwPlayer |
target, |
|
|
NwPlayer |
observer |
|
) |
| |
|
inline |
Clears an overridden player character name for a specific observer.
- Parameters
-
target | The player whose overridden name to clear, use null if you're clearing all overrides for an observer. |
observer | The observer whose overriden name of target is being cleared. |
◆ GetOverridesForObserver()
Gets a list of all name overrides for the specified observer.
- Parameters
-
observer | The observer to query. |
includeGlobal | True if global overrides should be included in the returned map. |
- Returns
- A dictionary containing the name overrides for the specified observer.
◆ GetPlayerNameOverride()
Gets the current name override for the specified player.
- Parameters
-
target | The player whose name to query. |
observer | The specific observer. |
◆ SetPlayerNameOverride() [1/2]
Sets an override player character name and community name on the player list for all players. Is not persistent.
- Parameters
-
target | The player whose name is being overridden. |
nameOverride | The new names for the player. |
◆ SetPlayerNameOverride() [2/2]
Sets an override player character name and community name on the player list as observed by a specific player. Is not persistent.
- Parameters
-
target | The player whose name is being overridden. |
nameOverride | The new names for the player. |
observer | The observer to see the new names. |
◆ OverwriteDisplayName
bool Anvil.Services.PlayerNameOverrideService.OverwriteDisplayName = false |
|
getset |
Gets or sets if global overrides change the underlying display name value. This applies the name change globally to scripts, and DMs.
When set to false, the override name is only visible to players - scripts and DMs see the original names unless ShowOverridesToDM is set to true.
◆ PlayerListNameType
OverrideNameType Anvil.Services.PlayerNameOverrideService.PlayerListNameType = OverrideNameType.Player |
|
getset |
Gets or sets the type of name override to use from the in-game player list.
◆ ShowOverridesToDM
bool Anvil.Services.PlayerNameOverrideService.ShowOverridesToDM = false |
|
getset |
DM observers will see global or personal overrides as well as being able to have their own name overridden for other observers.
The documentation for this class was generated from the following file:
- NWN.Anvil/src/main/Services/API/Player/PlayerNameOverrideService.cs