NWNX:EE  8193.36.12
Player

Readme

Functions exposing additional player properties and commands.

Function Documentation and Examples

SetPersistentLocation()

This function is mainly used so after a server restart the PC doesn't need to load the starting area before being jumped to their persistent location.

Another example usage could be different starting locations for new characters depending on alignment.

Below is an example of setting a player's persistent location for each of their characters in the NWNX_ON_CLIENT_CONNECT_AFTER event.

void main()
{
object oPC = OBJECT_SELF;
if (GetIsDM(oPC))
return;
string sSQL = "SELECT bic_file, current_loc FROM player_tracking WHERE public_cdkey = ? AND persistent_locs_loaded = 0";
string sCDKey = NWNX_Events_GetEventData("CDKEY");
int nLoaded = 0;
{
nLoaded = 1;
string sResRef = NWNX_SQL_ReadDataInActiveRow(0);
location lLoc = NWNXStringToLocation(NWNX_SQL_ReadDataInActiveRow(1));
object oWP = CreateObject(OBJECT_TYPE_WAYPOINT, "nw_waypoint001", lLoc);
if (GetArea(oWP) != OBJECT_INVALID)
NWNX_Player_SetPersistentLocation(sCDKey, sResRef, oWP);
}
if (nLoaded)
{
sSQL = "UPDATE player_tracking SET persistent_locs_loaded = 1 WHERE public_cdkey = ?";
}
}

In this example make you would make sure to reset the persistent_locs_loaded back to 0 for all players OnModuleLoad.

string sSQL = "UPDATE player_tracking SET persistent_locs_loaded = 0";

Files

file  nwnx_player.nss
 
file  nwnx_player_qbs.nss
 Helper script for quickbar management.
 

Classes

struct  NWNX_Player_QuickBarSlot
 A quickbar slot. More...
 
struct  NWNX_Player_JournalEntry
 A journal entry. More...
 

Functions

void NWNX_Player_ForcePlaceableExamineWindow (object player, object placeable)
 Force display placeable examine window for player. More...
 
void NWNX_Player_ForcePlaceableInventoryWindow (object player, object placeable)
 Force opens the target object's inventory for the player. More...
 
void NWNX_Player_StartGuiTimingBar (object player, float seconds, string script="", int type=NWNX_PLAYER_TIMING_BAR_CUSTOM)
 Starts displaying a timing bar. More...
 
void NWNX_Player_StopGuiTimingBar (object player, string script="")
 Stop displaying a timing bar. More...
 
void NWNX_Player_SetAlwaysWalk (object player, int bWalk=TRUE)
 Sets whether the player should always walk when given movement commands. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_GetQuickBarSlot (object player, int slot)
 Gets the player's quickbar slot info. More...
 
void NWNX_Player_SetQuickBarSlot (object player, int slot, struct NWNX_Player_QuickBarSlot qbs)
 Sets the player's quickbar slot info. More...
 
string NWNX_Player_GetBicFileName (object player)
 Get the name of the .bic file associated with the player's character. More...
 
void NWNX_Player_ShowVisualEffect (object player, int effectId, vector position, float scale=1.0f, vector translate=[], vector rotate=[])
 Plays the VFX at the target position in current area for the given player only. More...
 
void NWNX_Player_MusicBackgroundChangeDay (object player, int track)
 Changes the daytime music track for the given player only. More...
 
void NWNX_Player_MusicBackgroundChangeNight (object player, int track)
 Changes the nighttime music track for the given player only. More...
 
void NWNX_Player_MusicBackgroundStart (object player)
 Starts the background music for the given player only. More...
 
void NWNX_Player_MusicBackgroundStop (object player)
 Stops the background music for the given player only. More...
 
void NWNX_Player_MusicBattleChange (object player, int track)
 Changes the battle music track for the given player only. More...
 
void NWNX_Player_MusicBattleStart (object player)
 Starts the battle music for the given player only. More...
 
void NWNX_Player_MusicBattleStop (object player)
 Stops the battle music for the given player only. More...
 
void NWNX_Player_PlaySound (object player, string sound, object target=OBJECT_INVALID)
 Play a sound at the location of target for the given player only. More...
 
void NWNX_Player_SetPlaceableUsable (object player, object placeable, int usable)
 Toggle a placeable's usable flag for the given player only. More...
 
void NWNX_Player_SetRestDuration (object player, int duration)
 Override player's rest duration. More...
 
void NWNX_Player_ApplyInstantVisualEffectToObject (object player, object target, int visualeffect, float scale=1.0f, vector translate=[], vector rotate=[])
 Apply visualeffect to target that only player can see. More...
 
void NWNX_Player_UpdateCharacterSheet (object player)
 Refreshes the players character sheet. More...
 
void NWNX_Player_OpenInventory (object player, object target, int open=TRUE)
 Allows player to open target's inventory. More...
 
string NWNX_Player_GetAreaExplorationState (object player, object area)
 Get player's area exploration state. More...
 
void NWNX_Player_SetAreaExplorationState (object player, object area, string str)
 Set player's area exploration state. More...
 
void NWNX_Player_SetRestAnimation (object oPlayer, int nAnimation)
 Override player's rest animation. More...
 
void NWNX_Player_SetObjectVisualTransformOverride (object oPlayer, object oObject, int nTransform, float fValue)
 Override a visual transform on the given object that only player will see. More...
 
void NWNX_Player_ApplyLoopingVisualEffectToObject (object player, object target, int visualeffect)
 Apply a looping visualeffect to a target that only player can see. More...
 
void NWNX_Player_SetPlaceableNameOverride (object player, object placeable, string name)
 Override the name of placeable for player only. More...
 
int NWNX_Player_GetQuestCompleted (object player, string sQuestName)
 Gets whether a quest has been completed by a player. More...
 
void NWNX_Player_SetPersistentLocation (string sCDKeyOrCommunityName, string sBicFileName, object oWP, int bFirstConnectOnly=TRUE)
 Place waypoints on module load representing where a PC should start. More...
 
void NWNX_Player_UpdateItemName (object oPlayer, object oItem)
 Force an item name to be updated. More...
 
int NWNX_Player_PossessCreature (object oPossessor, object oPossessed, int bMindImmune=TRUE, int bCreateDefaultQB=FALSE)
 Possesses a creature by temporarily making them a familiar. More...
 
int NWNX_Player_GetPlatformId (object oPlayer)
 Returns the platform ID of the given player (NWNX_PLAYER_PLATFORM_*) More...
 
int NWNX_Player_GetLanguage (object oPlayer)
 Returns the game language of the given player (uses NWNX_DIALOG_LANGUAGE_*) More...
 
void NWNX_Player_SetResManOverride (object oPlayer, int nResType, string sOldResName, string sNewResName)
 Override sOldResName with sNewResName of nResType for oPlayer. More...
 
void NWNX_Player_SetCustomToken (object oPlayer, int nCustomTokenNumber, string sTokenValue)
 Set nCustomTokenNumber to sTokenValue for oPlayer only. More...
 
void NWNX_Player_SetCreatureNameOverride (object oPlayer, object oCreature, string sName)
 Override the name of creature for player only. More...
 
void NWNX_Player_FloatingTextStringOnCreature (object oPlayer, object oCreature, string sText, int bChatWindow=TRUE)
 Display floaty text above oCreature for oPlayer only. More...
 
void NWNX_Player_ToggleDM (object oPlayer, int bIsDM)
 Toggle oPlayer's PlayerDM status. More...
 
void NWNX_Player_SetObjectMouseCursorOverride (object oPlayer, object oObject, int nCursor)
 Override the mouse cursor of oObject for oPlayer only. More...
 
void NWNX_Player_SetObjectHiliteColorOverride (object oPlayer, object oObject, int nColor)
 Override the hilite color of oObject for oPlayer only. More...
 
void NWNX_Player_RemoveEffectFromTURD (object oPlayer, string sEffectTag)
 Remove effects with sEffectTag from oPlayer's TURD. More...
 
void NWNX_Player_SetSpawnLocation (object oPlayer, location locSpawn)
 Set the location oPlayer will spawn when logging in to the server. More...
 
void NWNX_Player_SendDMAllCreatorLists (object oPlayer)
 Resends palettes to a DM. More...
 
int NWNX_Player_AddCustomJournalEntry (object oPlayer, struct NWNX_Player_JournalEntry journalEntry, int nSilentUpdate=0)
 Give a custom journal entry to oPlayer. More...
 
struct NWNX_Player_JournalEntry NWNX_Player_GetJournalEntry (object oPlayer, string questTag)
 Returns a struct containing a journal entry that can then be modified. More...
 
void NWNX_Player_CloseStore (object oPlayer)
 Closes any store oPlayer may have open. More...
 
void NWNX_Player_SetTlkOverride (object oPlayer, int nStrRef, string sOverride, int bRestoreGlobal=TRUE)
 Override nStrRef from the TlkTable with sOverride for oPlayer only. More...
 
void NWNX_Player_ReloadTlk (object oPlayer)
 Make the player reload it's TlkTable. More...
 
void NWNX_Player_UpdateWind (object oPlayer, vector vDirection, float fMagnitude, float fYaw, float fPitch)
 Update wind for oPlayer only. More...
 
void NWNX_Player_UpdateSkyBox (object oPlayer, int nSkyBox)
 Update the SkyBox for oPlayer only. More...
 
void NWNX_Player_UpdateFogColor (object oPlayer, int nSunFogColor, int nMoonFogColor)
 Update Sun and Moon Fog Color for oPlayer only. More...
 
void NWNX_Player_UpdateFogAmount (object oPlayer, int nSunFogAmount, int nMoonFogAmount)
 Update Sun and Moon Fog Amount for oPlayer only. More...
 
object NWNX_Player_GetGameObject (object oPlayer)
 Return's the currently-possessed game object of a player. More...
 
void NWNX_Player_SetObjectUiDiscoveryMaskOverride (object oPlayer, object oObject, int nMask)
 Override the ui discovery mask of oObject for oPlayer only. More...
 
void NWNX_Player_SendPartyInvite (object oPlayer, object oInviter, int bForceInvite=FALSE, int bHideDialog=FALSE)
 Send a party invite from oInviter to oPlayer. More...
 
object NWNX_Player_GetTURD (object oPlayer)
 Get the TURD for oPlayer. More...
 
void NWNX_Player_ReloadColorPalettes (object oPlayer)
 Reloads the color palettes for oPlayer. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Empty (int type=NWNX_PLAYER_QBS_TYPE_EMPTY)
 Create an empty QBS of given type. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseItem (object oItem, int nPropertyID=0)
 Create a QBS for using an item. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_EquipItem (object oItem, object oSecondaryItem=OBJECT_INVALID)
 Create a QBS for equipping an item. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_CastSpell (int nSpell, int nClassIndex=0, int nMetamagic=METAMAGIC_NONE, int nDomainLevel=-1)
 Create a QBS for casting a spell. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseSkill (int nSkill)
 Create a QBS for using a skill. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseFeat (int nFeat)
 Create a QBS for using a feat. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_StartDialog ()
 Create a QBS for starting a dialog. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Attack ()
 Create a QBS for attacking. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Emote (int nEmote)
 Create a QBS for emoting. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_ToggleMode (int nMode)
 Create a QBS for toggling a mode. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Examine ()
 Create a QBS for examining. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Barter ()
 Create a QBS for bartering. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_QuickChat (int nCommand)
 Create a QBS for quickchat command. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_PossessFamiliar ()
 Create a QBS for examining. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseSpecialAbility (int nSpell, int nCasterLevel)
 Create a QBS for casting a spell. More...
 
struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Command (string sCommandLabel, string sCommandLine)
 Create a QBS for running a command. More...
 

Function Documentation

◆ NWNX_Player_ForcePlaceableExamineWindow()

void NWNX_Player_ForcePlaceableExamineWindow ( object  player,
object  placeable 
)

Force display placeable examine window for player.

Note
If used on a placeable in a different area than the player, the portait will not be shown.
Parameters
playerThe player object.
placeableThe placeable object.

Definition at line 459 of file nwnx_player.nss.

◆ NWNX_Player_ForcePlaceableInventoryWindow()

void NWNX_Player_ForcePlaceableInventoryWindow ( object  player,
object  placeable 
)

Force opens the target object's inventory for the player.

Note
  • If the placeable is in a different area than the player, the portrait will not be shown
  • The placeable's open/close animations will be played
  • Clicking the 'close' button will cause the player to walk to the placeable If the placeable is in a different area, the player will just walk to the edge of the current area and stop. This action can be cancelled manually.
  • Walking will close the placeable automatically.
Parameters
playerThe player object.
placeableThe placeable object.

Definition at line 469 of file nwnx_player.nss.

◆ NWNX_Player_StartGuiTimingBar()

void NWNX_Player_StartGuiTimingBar ( object  player,
float  seconds,
string  script = "",
int  type = NWNX_PLAYER_TIMING_BAR_CUSTOM 
)

Starts displaying a timing bar.

Parameters
playerThe player object.
secondsThe length of time the timing bar will complete.
scriptThe script to run at the bar's completion.
typeThe Timing Bar Type
Remarks
Only one timing bar can be ran at the same time.

Definition at line 502 of file nwnx_player.nss.

◆ NWNX_Player_StopGuiTimingBar()

void NWNX_Player_StopGuiTimingBar ( object  player,
string  script = "" 
)

Stop displaying a timing bar.

Parameters
playerThe player object.
scriptThe script to run when stopped.

Definition at line 521 of file nwnx_player.nss.

◆ NWNX_Player_SetAlwaysWalk()

void NWNX_Player_SetAlwaysWalk ( object  player,
int  bWalk = TRUE 
)

Sets whether the player should always walk when given movement commands.

Parameters
playerThe player object.
bWalkTRUE to set the player to always walk.
Remarks
Clicking on the ground or using WASD will trigger walking instead of running.

Definition at line 526 of file nwnx_player.nss.

◆ NWNX_Player_GetQuickBarSlot()

struct NWNX_Player_QuickBarSlot NWNX_Player_GetQuickBarSlot ( object  player,
int  slot 
)

Gets the player's quickbar slot info.

Parameters
playerThe player object.
slotSlot ID 0-35
Returns
An NWNX_Player_QuickBarSlot struct.

Definition at line 536 of file nwnx_player.nss.

◆ NWNX_Player_SetQuickBarSlot()

void NWNX_Player_SetQuickBarSlot ( object  player,
int  slot,
struct NWNX_Player_QuickBarSlot  qbs 
)

Sets the player's quickbar slot info.

Parameters
playerThe player object.
slotSlot ID 0-35
qbsAn NWNX_Player_QuickBarSlot struct.

Definition at line 562 of file nwnx_player.nss.

◆ NWNX_Player_GetBicFileName()

string NWNX_Player_GetBicFileName ( object  player)

Get the name of the .bic file associated with the player's character.

Parameters
playerThe player object.
Returns
The filename for this player's bic. (Not including the ".bic")

Definition at line 585 of file nwnx_player.nss.

◆ NWNX_Player_ShowVisualEffect()

void NWNX_Player_ShowVisualEffect ( object  player,
int  effectId,
vector  position,
float  scale = 1.0f,
vector  translate = [],
vector  rotate = [] 
)

Plays the VFX at the target position in current area for the given player only.

Parameters
playerThe player object.
effectIdThe effect id.
positionThe position to play the visual effect.
scaleThe scale of the effect
translateA translation vector to offset the position of the effect
rotateA rotation vector to rotate the effect

Definition at line 594 of file nwnx_player.nss.

◆ NWNX_Player_MusicBackgroundChangeDay()

void NWNX_Player_MusicBackgroundChangeDay ( object  player,
int  track 
)

Changes the daytime music track for the given player only.

Parameters
playerThe player object.
trackThe track id to play.

Definition at line 614 of file nwnx_player.nss.

◆ NWNX_Player_MusicBackgroundChangeNight()

void NWNX_Player_MusicBackgroundChangeNight ( object  player,
int  track 
)

Changes the nighttime music track for the given player only.

Parameters
playerThe player object.
trackThe track id to play.

Definition at line 625 of file nwnx_player.nss.

◆ NWNX_Player_MusicBackgroundStart()

void NWNX_Player_MusicBackgroundStart ( object  player)

Starts the background music for the given player only.

Parameters
playerThe player object.

Definition at line 636 of file nwnx_player.nss.

◆ NWNX_Player_MusicBackgroundStop()

void NWNX_Player_MusicBackgroundStop ( object  player)

Stops the background music for the given player only.

Parameters
playerThe player object.

Definition at line 646 of file nwnx_player.nss.

◆ NWNX_Player_MusicBattleChange()

void NWNX_Player_MusicBattleChange ( object  player,
int  track 
)

Changes the battle music track for the given player only.

Parameters
playerThe player object.
trackThe track id to play.

Definition at line 656 of file nwnx_player.nss.

◆ NWNX_Player_MusicBattleStart()

void NWNX_Player_MusicBattleStart ( object  player)

Starts the battle music for the given player only.

Parameters
playerThe player object.

Definition at line 666 of file nwnx_player.nss.

◆ NWNX_Player_MusicBattleStop()

void NWNX_Player_MusicBattleStop ( object  player)

Stops the battle music for the given player only.

Parameters
playerThe player object.

Definition at line 676 of file nwnx_player.nss.

◆ NWNX_Player_PlaySound()

void NWNX_Player_PlaySound ( object  player,
string  sound,
object  target = OBJECT_INVALID 
)

Play a sound at the location of target for the given player only.

Parameters
playerThe player object.
soundThe sound resref.
targetThe target object for the sound to originate. If target OBJECT_INVALID the sound will play at the location of the player.

Definition at line 686 of file nwnx_player.nss.

◆ NWNX_Player_SetPlaceableUsable()

void NWNX_Player_SetPlaceableUsable ( object  player,
object  placeable,
int  usable 
)

Toggle a placeable's usable flag for the given player only.

Parameters
playerThe player object.
placeableThe placeable object.
usableTRUE for usable.

Definition at line 697 of file nwnx_player.nss.

◆ NWNX_Player_SetRestDuration()

void NWNX_Player_SetRestDuration ( object  player,
int  duration 
)

Override player's rest duration.

Parameters
playerThe player object.
durationThe duration of rest in milliseconds, 1000 = 1 second. Minimum duration of 10ms. -1 clears the override.

Definition at line 708 of file nwnx_player.nss.

◆ NWNX_Player_ApplyInstantVisualEffectToObject()

void NWNX_Player_ApplyInstantVisualEffectToObject ( object  player,
object  target,
int  visualeffect,
float  scale = 1.0f,
vector  translate = [],
vector  rotate = [] 
)

Apply visualeffect to target that only player can see.

Parameters
playerThe player object.
targetThe target object to play the effect upon.
visualeffectThe visual effect id.
scaleThe scale of the effect
translateA translation vector to offset the position of the effect
rotateA rotation vector to rotate the effect
Note
Only works with instant effects: VFX_COM_*, VFX_FNF_*, VFX_IMP_*

Definition at line 718 of file nwnx_player.nss.

◆ NWNX_Player_UpdateCharacterSheet()

void NWNX_Player_UpdateCharacterSheet ( object  player)

Refreshes the players character sheet.

Parameters
playerThe player object.
Note
You may need to use DelayCommand if you're manipulating values through nwnx and forcing a UI refresh, 0.5s seemed to be fine

Definition at line 736 of file nwnx_player.nss.

◆ NWNX_Player_OpenInventory()

void NWNX_Player_OpenInventory ( object  player,
object  target,
int  open = TRUE 
)

Allows player to open target's inventory.

Parameters
playerThe player object.
targetThe target object, must be a creature or another player.
openTRUE to open.
Remarks
Only works if player and target are in the same area.

Definition at line 745 of file nwnx_player.nss.

◆ NWNX_Player_GetAreaExplorationState()

string NWNX_Player_GetAreaExplorationState ( object  player,
object  area 
)

Get player's area exploration state.

Parameters
playerThe player object.
areaThe area object.
Returns
A string representation of the tiles explored for that area.

Definition at line 756 of file nwnx_player.nss.

◆ NWNX_Player_SetAreaExplorationState()

void NWNX_Player_SetAreaExplorationState ( object  player,
object  area,
string  str 
)

Set player's area exploration state.

Parameters
playerThe player object.
areaThe area object.
strAn encoded string obtained with NWNX_Player_GetAreaExplorationState()

Definition at line 767 of file nwnx_player.nss.

◆ NWNX_Player_SetRestAnimation()

void NWNX_Player_SetRestAnimation ( object  oPlayer,
int  nAnimation 
)

Override player's rest animation.

Parameters
oPlayerThe player object.
nAnimationThe NWNX animation id. This does not take ANIMATION_LOOPING_* or ANIMATION_FIREFORGET_* constants. Instead use NWNX_Consts_TranslateNWScriptAnimation() to get the NWNX equivalent. -1 to clear the override.

Definition at line 778 of file nwnx_player.nss.

◆ NWNX_Player_SetObjectVisualTransformOverride()

void NWNX_Player_SetObjectVisualTransformOverride ( object  oPlayer,
object  oObject,
int  nTransform,
float  fValue 
)

Override a visual transform on the given object that only player will see.

Parameters
oPlayerThe player object.
oObjectThe target object. Can be any valid Creature, Placeable, Item or Door.
nTransformOne of OBJECT_VISUAL_TRANSFORM_* or -1 to remove the override.
fValueDepends on the transformation to apply.

Definition at line 788 of file nwnx_player.nss.

◆ NWNX_Player_ApplyLoopingVisualEffectToObject()

void NWNX_Player_ApplyLoopingVisualEffectToObject ( object  player,
object  target,
int  visualeffect 
)

Apply a looping visualeffect to a target that only player can see.

Parameters
playerThe player object.
targetThe target object.
visualeffectA VFX_DUR_*. Calling again will remove an applied effect. -1 to remove all effects
Note
Only really works with looping effects: VFX_DUR_*. Other types kind of work, they'll play when reentering the area and the object is in view or when they come back in view range.

Definition at line 800 of file nwnx_player.nss.

◆ NWNX_Player_SetPlaceableNameOverride()

void NWNX_Player_SetPlaceableNameOverride ( object  player,
object  placeable,
string  name 
)

Override the name of placeable for player only.

Parameters
playerThe player object.
placeableThe placeable object.
nameThe name for the placeable for this player, "" to clear the override.

Definition at line 811 of file nwnx_player.nss.

◆ NWNX_Player_GetQuestCompleted()

int NWNX_Player_GetQuestCompleted ( object  player,
string  sQuestName 
)

Gets whether a quest has been completed by a player.

Parameters
playerThe player object.
sQuestNameThe name identifier of the quest from the Journal Editor.
Returns
TRUE if the quest has been completed. -1 if the player does not have the journal entry.

Definition at line 822 of file nwnx_player.nss.

◆ NWNX_Player_SetPersistentLocation()

void NWNX_Player_SetPersistentLocation ( string  sCDKeyOrCommunityName,
string  sBicFileName,
object  oWP,
int  bFirstConnectOnly = TRUE 
)

Place waypoints on module load representing where a PC should start.

This will require storing the PC's cd key or community name (depending on how you store in your vault) and bic_filename along with routinely updating their location in some persistent method like OnRest, OnAreaEnter and OnClentExit.

Parameters
sCDKeyOrCommunityNameThe Public CD Key or Community Name of the player, this will depend on your vault type.
sBicFileNameThe filename for the character. Retrieved with NWNX_Player_GetBicFileName().
oWPThe waypoint object to place where the PC should start.
bFirstConnectOnlySet to FALSE if you would like the PC to go to this location every time they login instead of just every server restart.

Definition at line 833 of file nwnx_player.nss.

◆ NWNX_Player_UpdateItemName()

void NWNX_Player_UpdateItemName ( object  oPlayer,
object  oItem 
)

Force an item name to be updated.

Note
This is a workaround for bug that occurs when updating item names in open containers.
Parameters
oPlayerThe player object.
oItemThe item object.

Definition at line 845 of file nwnx_player.nss.

◆ NWNX_Player_PossessCreature()

int NWNX_Player_PossessCreature ( object  oPossessor,
object  oPossessed,
int  bMindImmune = TRUE,
int  bCreateDefaultQB = FALSE 
)

Possesses a creature by temporarily making them a familiar.

This command allows a PC to possess an NPC by temporarily adding them as a familiar. It will work if the player already has an existing familiar. The creatures must be in the same area. Unpossession can be done with the regular UnpossessFamiliar commands.

Note
The possessed creature will send automap data back to the possessor. If you wish to prevent this you may wish to use NWNX_Player_GetAreaExplorationState() and NWNX_Player_SetAreaExplorationState() before and after the possession.
The possessing creature will be left wherever they were when beginning the possession. You may wish to use EffectCutsceneImmobilize and EffectCutsceneGhost to hide them.
Parameters
oPossessorThe possessor player object.
oPossessedThe possessed creature object. Only works on NPCs.
bMindImmuneIf FALSE will remove the mind immunity effect on the possessor.
bCreateDefaultQBIf TRUE will populate the quick bar with default buttons.
Returns
TRUE if possession succeeded.

Definition at line 855 of file nwnx_player.nss.

◆ NWNX_Player_GetPlatformId()

int NWNX_Player_GetPlatformId ( object  oPlayer)

Returns the platform ID of the given player (NWNX_PLAYER_PLATFORM_*)

Parameters
oPlayerThe player object.

Definition at line 868 of file nwnx_player.nss.

◆ NWNX_Player_GetLanguage()

int NWNX_Player_GetLanguage ( object  oPlayer)

Returns the game language of the given player (uses NWNX_DIALOG_LANGUAGE_*)

This function returns the ID of the game language displayed to the player. Uses the same constants as nwnx_dialog.

Parameters
oPlayerThe player object.

Definition at line 878 of file nwnx_player.nss.

◆ NWNX_Player_SetResManOverride()

void NWNX_Player_SetResManOverride ( object  oPlayer,
int  nResType,
string  sOldResName,
string  sNewResName 
)

Override sOldResName with sNewResName of nResType for oPlayer.

Warning
If sNewResName does not exist on oPlayer's client it will crash their game.
Parameters
oPlayerThe player object.
nResTypeThe res type, see nwnx_util.nss for constants.
sOldResNameThe old res name, 16 characters or less.
sNewResNameThe new res name or "" to clear a previous override, 16 characters or less.

Definition at line 888 of file nwnx_player.nss.

◆ NWNX_Player_SetCustomToken()

void NWNX_Player_SetCustomToken ( object  oPlayer,
int  nCustomTokenNumber,
string  sTokenValue 
)

Set nCustomTokenNumber to sTokenValue for oPlayer only.

Note
The basegame SetCustomToken() will override any personal tokens.
Parameters
oPlayerThe player object.
nCustomTokenNumberThe token number.
sTokenValueThe token text.

Definition at line 900 of file nwnx_player.nss.

◆ NWNX_Player_SetCreatureNameOverride()

void NWNX_Player_SetCreatureNameOverride ( object  oPlayer,
object  oCreature,
string  sName 
)

Override the name of creature for player only.

Parameters
oPlayerThe player object.
oCreatureThe creature object.
sNameThe name for the creature for this player, "" to clear the override.

Definition at line 911 of file nwnx_player.nss.

◆ NWNX_Player_FloatingTextStringOnCreature()

void NWNX_Player_FloatingTextStringOnCreature ( object  oPlayer,
object  oCreature,
string  sText,
int  bChatWindow = TRUE 
)

Display floaty text above oCreature for oPlayer only.

Note
This will also display the floaty text above creatures that are not part of oPlayer's faction.
Parameters
oPlayerThe player to display the text to.
oCreatureThe creature to display the text above.
sTextThe text to display.
bChatWindowIf TRUE, sText will be displayed in oPlayer's chat window.

Definition at line 922 of file nwnx_player.nss.

◆ NWNX_Player_ToggleDM()

void NWNX_Player_ToggleDM ( object  oPlayer,
int  bIsDM 
)

Toggle oPlayer's PlayerDM status.

Note
This function does nothing for actual DMClient DMs or players with a client version < 8193.14
Parameters
oPlayerThe player.
bIsDMTRUE to toggle dm mode on, FALSE for off.

Definition at line 934 of file nwnx_player.nss.

◆ NWNX_Player_SetObjectMouseCursorOverride()

void NWNX_Player_SetObjectMouseCursorOverride ( object  oPlayer,
object  oObject,
int  nCursor 
)

Override the mouse cursor of oObject for oPlayer only.

Parameters
oPlayerThe player object.
oObjectThe object.
nCursorThe cursor, one of MOUSECURSOR_*. -1 to clear the override.

Definition at line 944 of file nwnx_player.nss.

◆ NWNX_Player_SetObjectHiliteColorOverride()

void NWNX_Player_SetObjectHiliteColorOverride ( object  oPlayer,
object  oObject,
int  nColor 
)

Override the hilite color of oObject for oPlayer only.

Parameters
oPlayerThe player object.
oObjectThe object.
nColorThe color in 0xRRGGBB format, -1 to clear the override.

Definition at line 955 of file nwnx_player.nss.

◆ NWNX_Player_RemoveEffectFromTURD()

void NWNX_Player_RemoveEffectFromTURD ( object  oPlayer,
string  sEffectTag 
)

Remove effects with sEffectTag from oPlayer's TURD.

Note
This function should be called in the NWNX_ON_CLIENT_DISCONNECT_AFTER event, OnClientLeave is too early for the TURD to exist.
Parameters
oPlayerThe player object.
sEffectTagThe effect tag.

Definition at line 966 of file nwnx_player.nss.

◆ NWNX_Player_SetSpawnLocation()

void NWNX_Player_SetSpawnLocation ( object  oPlayer,
location  locSpawn 
)

Set the location oPlayer will spawn when logging in to the server.

Note
This function is best called in the NWNX_ON_ELC_VALIDATE_CHARACTER_BEFORE event, OnClientEnter will be too late.
Parameters
oPlayerThe player object.
locSpawnThe location.

Definition at line 976 of file nwnx_player.nss.

◆ NWNX_Player_SendDMAllCreatorLists()

void NWNX_Player_SendDMAllCreatorLists ( object  oPlayer)

Resends palettes to a DM.

Parameters
oPlayer- the DM to send them to.

Definition at line 992 of file nwnx_player.nss.

◆ NWNX_Player_AddCustomJournalEntry()

int NWNX_Player_AddCustomJournalEntry ( object  oPlayer,
struct NWNX_Player_JournalEntry  journalEntry,
int  nSilentUpdate = 0 
)

Give a custom journal entry to oPlayer.

Warning
Custom entries are wiped on client enter - they must be reapplied.
Parameters
oPlayerThe player object.
journalEntryThe journal entry in the form of a struct.
nSilentUpdate0 = Notify player via sound effects and feedback message, 1 = Suppress sound effects and feedback message
Returns
a positive number to indicate the new amount of journal entries on the player.
Note
In contrast to conventional nwn journal entries - this method will overwrite entries with the same tag, so the index / count of entries will only increase if you add new entries with unique tags

Definition at line 999 of file nwnx_player.nss.

◆ NWNX_Player_GetJournalEntry()

struct NWNX_Player_JournalEntry NWNX_Player_GetJournalEntry ( object  oPlayer,
string  questTag 
)

Returns a struct containing a journal entry that can then be modified.

Parameters
oPlayerThe player object.
questTagThe quest tag you wish to get the journal entry for.
Returns
a struct containing the journal entry data.
Note
This method will return -1 for the Updated field in the event that no matching journal entry was found, only the last matching quest tag will be returned. Eg: If you add 3 journal updates to a player, only the 3rd one will be returned as that is the active one that the player currently sees.

Definition at line 1018 of file nwnx_player.nss.

◆ NWNX_Player_CloseStore()

void NWNX_Player_CloseStore ( object  oPlayer)

Closes any store oPlayer may have open.

Parameters
oPlayerThe player object.

Definition at line 1044 of file nwnx_player.nss.

◆ NWNX_Player_SetTlkOverride()

void NWNX_Player_SetTlkOverride ( object  oPlayer,
int  nStrRef,
string  sOverride,
int  bRestoreGlobal = TRUE 
)

Override nStrRef from the TlkTable with sOverride for oPlayer only.

Parameters
oPlayerThe player.
nStrRefThe StrRef.
sOverrideThe new value for nStrRef or "" to remove the override.
bRestoreGlobalIf TRUE, when removing a personal override it will attempt to restore the global override if it exists.
Note
Overrides will not persist through relogging.

Definition at line 1052 of file nwnx_player.nss.

◆ NWNX_Player_ReloadTlk()

void NWNX_Player_ReloadTlk ( object  oPlayer)

Make the player reload it's TlkTable.

Parameters
oPlayerThe player.

Definition at line 1063 of file nwnx_player.nss.

◆ NWNX_Player_UpdateWind()

void NWNX_Player_UpdateWind ( object  oPlayer,
vector  vDirection,
float  fMagnitude,
float  fYaw,
float  fPitch 
)

Update wind for oPlayer only.

Parameters
oPlayerThe player.
vDirectionThe Wind's direction.
fMagnitudeThe Wind's magnitude.
fYawThe Wind's yaw.
fPitchThe Wind's pitch.

Definition at line 1071 of file nwnx_player.nss.

◆ NWNX_Player_UpdateSkyBox()

void NWNX_Player_UpdateSkyBox ( object  oPlayer,
int  nSkyBox 
)

Update the SkyBox for oPlayer only.

Parameters
oPlayerThe player.
nSkyBoxThe Skybox ID.

Definition at line 1085 of file nwnx_player.nss.

◆ NWNX_Player_UpdateFogColor()

void NWNX_Player_UpdateFogColor ( object  oPlayer,
int  nSunFogColor,
int  nMoonFogColor 
)

Update Sun and Moon Fog Color for oPlayer only.

Parameters
oPlayerThe player.
nSunFogColorThe int value of Sun Fog color.
nMoonFogColorThe int value of Moon Fog color.

Definition at line 1094 of file nwnx_player.nss.

◆ NWNX_Player_UpdateFogAmount()

void NWNX_Player_UpdateFogAmount ( object  oPlayer,
int  nSunFogAmount,
int  nMoonFogAmount 
)

Update Sun and Moon Fog Amount for oPlayer only.

Parameters
oPlayerThe player.
nSunFogAmountThe int value of Sun Fog amount (range 0-255).
nMoonFogAmountThe int value of Moon Fog amount (range 0-255).

Definition at line 1104 of file nwnx_player.nss.

◆ NWNX_Player_GetGameObject()

object NWNX_Player_GetGameObject ( object  oPlayer)

Return's the currently-possessed game object of a player.

Parameters
oPlayerThe player object (e.g. from GetFirst/NextPC()).
Returns
the actual game object of oPlayer, or OBJECT_INVALID on error.

Definition at line 1114 of file nwnx_player.nss.

◆ NWNX_Player_SetObjectUiDiscoveryMaskOverride()

void NWNX_Player_SetObjectUiDiscoveryMaskOverride ( object  oPlayer,
object  oObject,
int  nMask 
)

Override the ui discovery mask of oObject for oPlayer only.

Parameters
oPlayerThe player object.
oObjectThe target object.
nMaskA mask of OBJECT_UI_DISCOVERY_*, or -1 to clear the override

Definition at line 1123 of file nwnx_player.nss.

◆ NWNX_Player_SendPartyInvite()

void NWNX_Player_SendPartyInvite ( object  oPlayer,
object  oInviter,
int  bForceInvite = FALSE,
int  bHideDialog = FALSE 
)

Send a party invite from oInviter to oPlayer.

Parameters
oPlayerThe player to invite
oInviterThe one inviting the player
bForceInviteTRUE: Sends the invite even if the target ignores invites
bHideDialogTRUE: Does not show the party invitation dialog

Definition at line 1134 of file nwnx_player.nss.

◆ NWNX_Player_GetTURD()

object NWNX_Player_GetTURD ( object  oPlayer)

Get the TURD for oPlayer.

Parameters
oPlayerThe offline player to get the TURD from
Returns
the TURD object of oPlayer, or OBJECT_INVALID if no TURD exists

Definition at line 1146 of file nwnx_player.nss.

◆ NWNX_Player_ReloadColorPalettes()

void NWNX_Player_ReloadColorPalettes ( object  oPlayer)

Reloads the color palettes for oPlayer.

Parameters
oPlayerThe player to reload the color palette for

Definition at line 1156 of file nwnx_player.nss.

◆ NWNX_Player_QBS_Empty()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Empty ( int  type = NWNX_PLAYER_QBS_TYPE_EMPTY)

Create an empty QBS of given type.

Definition at line 66 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_UseItem()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseItem ( object  oItem,
int  nPropertyID = 0 
)

Create a QBS for using an item.

Definition at line 88 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_EquipItem()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_EquipItem ( object  oItem,
object  oSecondaryItem = OBJECT_INVALID 
)

Create a QBS for equipping an item.

Definition at line 98 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_CastSpell()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_CastSpell ( int  nSpell,
int  nClassIndex = 0,
int  nMetamagic = METAMAGIC_NONE,
int  nDomainLevel = -1 
)

Create a QBS for casting a spell.

Definition at line 108 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_UseSkill()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseSkill ( int  nSkill)

Create a QBS for using a skill.

Definition at line 120 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_UseFeat()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseFeat ( int  nFeat)

Create a QBS for using a feat.

Definition at line 129 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_StartDialog()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_StartDialog ( )

Create a QBS for starting a dialog.

Definition at line 138 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_Attack()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Attack ( )

Create a QBS for attacking.

Definition at line 143 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_Emote()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Emote ( int  nEmote)

Create a QBS for emoting.

Definition at line 148 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_ToggleMode()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_ToggleMode ( int  nMode)

Create a QBS for toggling a mode.

Definition at line 157 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_Examine()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Examine ( )

Create a QBS for examining.

Definition at line 166 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_Barter()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Barter ( )

Create a QBS for bartering.

Definition at line 171 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_QuickChat()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_QuickChat ( int  nCommand)

Create a QBS for quickchat command.

Definition at line 176 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_PossessFamiliar()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_PossessFamiliar ( )

Create a QBS for examining.

Definition at line 185 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_UseSpecialAbility()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_UseSpecialAbility ( int  nSpell,
int  nCasterLevel 
)

Create a QBS for casting a spell.

Definition at line 190 of file nwnx_player_qbs.nss.

◆ NWNX_Player_QBS_Command()

struct NWNX_Player_QuickBarSlot NWNX_Player_QBS_Command ( string  sCommandLabel,
string  sCommandLine 
)

Create a QBS for running a command.

Definition at line 199 of file nwnx_player_qbs.nss.

Variable Documentation

◆ NWNX_PLAYER_TIMING_BAR_TRAP_FLAG

const int NWNX_PLAYER_TIMING_BAR_TRAP_FLAG = 1

Definition at line 48 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_TRAP_RECOVER

const int NWNX_PLAYER_TIMING_BAR_TRAP_RECOVER = 2

Definition at line 49 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_TRAP_DISARM

const int NWNX_PLAYER_TIMING_BAR_TRAP_DISARM = 3

Definition at line 50 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_TRAP_EXAMINE

const int NWNX_PLAYER_TIMING_BAR_TRAP_EXAMINE = 4

Definition at line 51 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_TRAP_SET

const int NWNX_PLAYER_TIMING_BAR_TRAP_SET = 5

Definition at line 52 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_REST

const int NWNX_PLAYER_TIMING_BAR_REST = 6

Definition at line 53 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_UNLOCK

const int NWNX_PLAYER_TIMING_BAR_UNLOCK = 7

Definition at line 54 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_LOCK

const int NWNX_PLAYER_TIMING_BAR_LOCK = 8

Definition at line 55 of file nwnx_player.nss.

◆ NWNX_PLAYER_TIMING_BAR_CUSTOM

const int NWNX_PLAYER_TIMING_BAR_CUSTOM = 10

Definition at line 56 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_INVALID

const int NWNX_PLAYER_PLATFORM_INVALID = 0

Definition at line 62 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_WINDOWS_X86

const int NWNX_PLAYER_PLATFORM_WINDOWS_X86 = 1

Definition at line 63 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_WINDOWS_X64

const int NWNX_PLAYER_PLATFORM_WINDOWS_X64 = 2

Definition at line 64 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_LINUX_X86

const int NWNX_PLAYER_PLATFORM_LINUX_X86 = 10

Definition at line 65 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_LINUX_X64

const int NWNX_PLAYER_PLATFORM_LINUX_X64 = 11

Definition at line 66 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_LINUX_ARM32

const int NWNX_PLAYER_PLATFORM_LINUX_ARM32 = 12

Definition at line 67 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_LINUX_ARM64

const int NWNX_PLAYER_PLATFORM_LINUX_ARM64 = 13

Definition at line 68 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_MAC_X86

const int NWNX_PLAYER_PLATFORM_MAC_X86 = 20

Definition at line 69 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_MAC_X64

const int NWNX_PLAYER_PLATFORM_MAC_X64 = 21

Definition at line 70 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_IOS

const int NWNX_PLAYER_PLATFORM_IOS = 30

Definition at line 71 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_ANDROID_ARM32

const int NWNX_PLAYER_PLATFORM_ANDROID_ARM32 = 40

Definition at line 72 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_ANDROID_ARM64

const int NWNX_PLAYER_PLATFORM_ANDROID_ARM64 = 41

Definition at line 73 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_ANDROID_X64

const int NWNX_PLAYER_PLATFORM_ANDROID_X64 = 42

Definition at line 74 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_NINTENDO_SWITCH

const int NWNX_PLAYER_PLATFORM_NINTENDO_SWITCH = 50

Definition at line 75 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_MICROSOFT_XBOXONE

const int NWNX_PLAYER_PLATFORM_MICROSOFT_XBOXONE = 60

Definition at line 76 of file nwnx_player.nss.

◆ NWNX_PLAYER_PLATFORM_SONY_PS4

const int NWNX_PLAYER_PLATFORM_SONY_PS4 = 70

Definition at line 77 of file nwnx_player.nss.

◆ NWNX_PLAYER_QBS_TYPE_EMPTY

const int NWNX_PLAYER_QBS_TYPE_EMPTY = 0

Definition at line 10 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_ITEM

const int NWNX_PLAYER_QBS_TYPE_ITEM = 1

Definition at line 11 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_SPELL

const int NWNX_PLAYER_QBS_TYPE_SPELL = 2

Definition at line 12 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_SKILL

const int NWNX_PLAYER_QBS_TYPE_SKILL = 3

Definition at line 13 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_FEAT

const int NWNX_PLAYER_QBS_TYPE_FEAT = 4

Definition at line 14 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_DIALOG

const int NWNX_PLAYER_QBS_TYPE_DIALOG = 6

Definition at line 15 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_ATTACK

const int NWNX_PLAYER_QBS_TYPE_ATTACK = 7

Definition at line 16 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_EMOTE

const int NWNX_PLAYER_QBS_TYPE_EMOTE = 8

Definition at line 17 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_ITEM_PROPERTY_CASTSPELL

const int NWNX_PLAYER_QBS_TYPE_ITEM_PROPERTY_CASTSPELL = 9

Definition at line 18 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_MODE_TOGGLE

const int NWNX_PLAYER_QBS_TYPE_MODE_TOGGLE = 10

Definition at line 19 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_COMMAND

const int NWNX_PLAYER_QBS_TYPE_COMMAND = 18

Definition at line 20 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_POSSESS_FAMILIAR

const int NWNX_PLAYER_QBS_TYPE_POSSESS_FAMILIAR = 38

Definition at line 21 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_ASSOCIATE_COMMAND

const int NWNX_PLAYER_QBS_TYPE_ASSOCIATE_COMMAND = 39

Definition at line 22 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_EXAMINE

const int NWNX_PLAYER_QBS_TYPE_EXAMINE = 40

Definition at line 23 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_BARTER

const int NWNX_PLAYER_QBS_TYPE_BARTER = 41

Definition at line 24 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_QUICK_CHAT

const int NWNX_PLAYER_QBS_TYPE_QUICK_CHAT = 42

Definition at line 25 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_CANCELPOLYMORPH

const int NWNX_PLAYER_QBS_TYPE_CANCELPOLYMORPH = 43

Definition at line 26 of file nwnx_player_qbs.nss.

◆ NWNX_PLAYER_QBS_TYPE_SPELLLIKEABILITY

const int NWNX_PLAYER_QBS_TYPE_SPELLLIKEABILITY = 44

Definition at line 27 of file nwnx_player_qbs.nss.

NWNX_SQL_ExecutePreparedQuery
int NWNX_SQL_ExecutePreparedQuery()
Executes a query which has been prepared.
Definition: nwnx_sql.nss:126
main
void main()
Definition: array_example.nss:133
NWNX_Events_GetEventData
string NWNX_Events_GetEventData(string tag)
Definition: nwnx_events.nss:2439
NWNX_SQL_ReadNextRow
void NWNX_SQL_ReadNextRow()
Reads the next row of returned data.
Definition: nwnx_sql.nss:155
NWNX_SQL_PrepareQuery
int NWNX_SQL_PrepareQuery(string query)
Prepares the provided query for execution.
Definition: nwnx_sql.nss:117
NWNX_SQL_ReadDataInActiveRow
string NWNX_SQL_ReadDataInActiveRow(int column=0)
Definition: nwnx_sql.nss:162
NWNX_SQL_ReadyToReadNextRow
int NWNX_SQL_ReadyToReadNextRow()
Definition: nwnx_sql.nss:147
NWNX_SQL_PreparedString
void NWNX_SQL_PreparedString(int position, string value)
Set the string value of a prepared statement at given position.
Definition: nwnx_sql.nss:180
NWNX_Player_SetPersistentLocation
void NWNX_Player_SetPersistentLocation(string sCDKeyOrCommunityName, string sBicFileName, object oWP, int bFirstConnectOnly=TRUE)
Place waypoints on module load representing where a PC should start.
Definition: nwnx_player.nss:833