Files | |
| file | nwnx_object.nss |
Classes | |
| struct | NWNX_Object_LocalVariable |
| A local variable structure. More... | |
Functions | |
| int | NWNX_Object_GetLocalVariableCount (object obj) |
| Gets the count of all local variables. More... | |
| struct NWNX_Object_LocalVariable | NWNX_Object_GetLocalVariable (object obj, int index) |
| Gets the local variable at the provided index of the provided object. More... | |
| void | NWNX_Object_SetPosition (object oObject, vector vPosition, int bUpdateSubareas=TRUE) |
| Set oObject's position. More... | |
| int | NWNX_Object_GetCurrentHitPoints (object obj) |
| Get an object's hit points. More... | |
| void | NWNX_Object_SetCurrentHitPoints (object obj, int hp) |
| Set an object's hit points. More... | |
| void | NWNX_Object_SetMaxHitPoints (object obj, int hp) |
| Adjust an object's maximum hit points. More... | |
| string | NWNX_Object_Serialize (object obj) |
| Serialize a full object to a base64 string. More... | |
| object | NWNX_Object_Deserialize (string serialized) |
| Deserialize the object. More... | |
| string | NWNX_Object_GetDialogResref (object obj) |
| Gets the dialog resref. More... | |
| void | NWNX_Object_SetDialogResref (object obj, string dialog) |
| Sets the dialog resref. More... | |
| void | NWNX_Object_SetAppearance (object oPlaceable, int nAppearance) |
| Set oPlaceable's appearance. More... | |
| int | NWNX_Object_GetAppearance (object oPlaceable) |
| Get oPlaceable's appearance. More... | |
| int | NWNX_Object_GetHasVisualEffect (object obj, int nVFX) |
| Determine if an object has a visual effect. More... | |
| int | NWNX_Object_GetDamageImmunity (object obj, int damageType) |
| Get an object's damage immunity. More... | |
| void | NWNX_Object_AddToArea (object obj, object area, vector pos) |
| Add or move an object. More... | |
| int | NWNX_Object_GetPlaceableIsStatic (object obj) |
| Get placeable's static setting. More... | |
| void | NWNX_Object_SetPlaceableIsStatic (object obj, int isStatic) |
| Set placeable as static or not. More... | |
| int | NWNX_Object_GetAutoRemoveKey (object obj) |
| Gets if a door/placeable auto-removes the key after use. More... | |
| void | NWNX_Object_SetAutoRemoveKey (object obj, int bRemoveKey) |
| Sets if a door/placeable auto-removes the key after use. More... | |
| string | NWNX_Object_GetTriggerGeometry (object oTrigger) |
| Get the geometry of a trigger. More... | |
| void | NWNX_Object_SetTriggerGeometry (object oTrigger, string sGeometry) |
| Set the geometry of a trigger with a list of vertex positions. More... | |
| void | NWNX_Object_Export (object oObject, string sFileName, string sAlias="NWNX") |
| Export an object to the UserDirectory/nwnx folder. More... | |
| int | NWNX_Object_GetInt (object oObject, string sVarName) |
| Get oObject's integer variable sVarName. More... | |
| void | NWNX_Object_SetInt (object oObject, string sVarName, int nValue, int bPersist) |
| Set oObject's integer variable sVarName to nValue. More... | |
| void | NWNX_Object_DeleteInt (object oObject, string sVarName) |
| Delete oObject's integer variable sVarName. More... | |
| string | NWNX_Object_GetString (object oObject, string sVarName) |
| Get oObject's string variable sVarName. More... | |
| void | NWNX_Object_SetString (object oObject, string sVarName, string sValue, int bPersist) |
| Set oObject's string variable sVarName to sValue. More... | |
| void | NWNX_Object_DeleteString (object oObject, string sVarName) |
| Delete oObject's string variable sVarName. More... | |
| float | NWNX_Object_GetFloat (object oObject, string sVarName) |
| Get oObject's float variable sVarName. More... | |
| void | NWNX_Object_SetFloat (object oObject, string sVarName, float fValue, int bPersist) |
| Set oObject's float variable sVarName to fValue. More... | |
| void | NWNX_Object_DeleteFloat (object oObject, string sVarName) |
| Delete oObject's persistent float variable sVarName. More... | |
| void | NWNX_Object_DeleteVarRegex (object oObject, string sRegex) |
| Delete any variables that match sRegex. More... | |
| int | NWNX_Object_GetPositionIsInTrigger (object oTrigger, vector vPosition) |
| Get if vPosition is inside oTrigger's geometry. More... | |
| int | NWNX_Object_GetInternalObjectType (object oObject) |
| Gets the given object's internal type (NWNX_OBJECT_TYPE_INTERNAL_*) More... | |
| int | NWNX_Object_AcquireItem (object oObject, object oItem) |
| Have oObject acquire oItem. More... | |
| void | NWNX_Object_ClearSpellEffectsOnOthers (object oObject) |
| Clear all spell effects oObject has applied to others. More... | |
| string | NWNX_Object_PeekUUID (object oObject) |
| Peek at the UUID of oObject without assigning one if it does not have one. More... | |
| int | NWNX_Object_GetDoorHasVisibleModel (object oDoor) |
| Get if oDoor has a visible model. More... | |
| int | NWNX_Object_GetIsDestroyable (object oObject) |
| Get if oObject is destroyable. More... | |
| int | NWNX_Object_DoSpellImmunity (object oDefender, object oCaster, int nSpellId=-1) |
| Checks for specific spell immunity. Should only be called in spellscripts. More... | |
| int | NWNX_Object_DoSpellLevelAbsorption (object oDefender, object oCaster, int nSpellId=-1, int nSpellLevel=-1, int nSpellSchool=-1) |
| Checks for spell school/level immunities and mantles. Should only be called in spellscripts. More... | |
| void | NWNX_Object_SetHasInventory (object obj, int bHasInventory) |
| Sets if a placeable has an inventory. More... | |
| int | NWNX_Object_GetCurrentAnimation (object oObject) |
| Get the current animation of oObject. More... | |
| int | NWNX_Object_GetAILevel (object oObject) |
| Gets the AI level of an object. More... | |
| void | NWNX_Object_SetAILevel (object oObject, int nLevel) |
| Sets the AI level of an object. More... | |
| string | NWNX_Object_GetMapNote (object oObject, int nID=0, int nGender=0) |
| Retrieves the Map Note (AKA Map Pin) from a waypoint - Returns even if currently disabled. More... | |
| void | NWNX_Object_SetMapNote (object oObject, string sMapNote, int nID=0, int nGender=0) |
| Sets a Map Note (AKA Map Pin) to any waypoint, even if no previous map note. Only updates for clients on area-load. Use SetMapPinEnabled() as required. More... | |
| int | NWNX_Object_GetLastSpellCastFeat (object oObject) |
| Gets the last spell cast feat of oObject. More... | |
| void | NWNX_Object_SetLastTriggered (object oObject, object oLast) |
| Sets the last object that triggered door or placeable trap. More... | |
| float | NWNX_Object_GetAoEObjectDurationRemaining (object oAoE) |
| Gets the remaining duration of the AoE object. More... | |
| void | NWNX_Object_SetConversationPrivate (object oObject, int bPrivate) |
| Sets conversations started by oObject to be private or not. More... | |
| void | NWNX_Object_SetAoEObjectRadius (object oAoE, float fRadius) |
| Sets the radius of a circle AoE object. More... | |
| float | NWNX_Object_GetAoEObjectRadius (object oAoE) |
| Gets the radius of a circle AoE object. More... | |
| int | NWNX_Object_GetLastSpellCastSpontaneous (object oObject) |
| Gets whether the last spell cast of oObject was spontaneous. More... | |
| int | NWNX_Object_GetLastSpellCastDomainLevel (object oObject) |
| Gets the last spell cast domain level. More... | |
| void | NWNX_Object_ForceAssignUUID (object oObject, string sUUID) |
| Force the given object to carry the given UUID. Any other object currently owning the UUID is stripped of it. More... | |
| int | NWNX_Object_GetInventoryItemCount (object oObject) |
| Returns how many items are in oObject's inventory. More... | |
| void | NWNX_Object_OverrideSpellProjectileVFX (object oCreature, int nProjectileType=-1, int nProjectilePathType=-1, int nSpellID=-1, int bPersist=FALSE) |
| Override the projectile visual effect of ranged/throwing weapons and spells. More... | |
| int | NWNX_Object_GetLastSpellInstant () |
| Returns TRUE if the last spell was cast instantly. This function should only be called in a spell script. More... | |
| void | NWNX_Object_SetTrapCreator (object oObject, object oCreator) |
| Sets the creator of a trap on door, placeable, or trigger. Also changes trap Faction to that of the new Creator. More... | |
| string | NWNX_Object_GetLocalizedName (object oObject, int nLanguage, int nGender=0) |
| Return the name of the object for nLanguage. More... | |
| void | NWNX_Object_SetLocalizedName (object oObject, string sName, int nLanguage, int nGender=0) |
| Set the name of the object as set in the toolset for nLanguage. More... | |
| int NWNX_Object_GetLocalVariableCount | ( | object | obj | ) |
Gets the count of all local variables.
| obj | The object. |
Definition at line 437 of file nwnx_object.nss.
| struct NWNX_Object_LocalVariable NWNX_Object_GetLocalVariable | ( | object | obj, |
| int | index | ||
| ) |
Gets the local variable at the provided index of the provided object.
| obj | The object. |
| index | The index. |
Definition at line 437 of file nwnx_object.nss.
| void NWNX_Object_SetPosition | ( | object | oObject, |
| vector | vPosition, | ||
| int | bUpdateSubareas = TRUE |
||
| ) |
Set oObject's position.
| oObject | The object. |
| vPosition | A vector position. |
| bUpdateSubareas | If TRUE and oObject is a creature, any triggers/traps at vPosition will fire their events. |
Definition at line 455 of file nwnx_object.nss.
| int NWNX_Object_GetCurrentHitPoints | ( | object | obj | ) |
Get an object's hit points.
| obj | The object. |
Definition at line 463 of file nwnx_object.nss.
| void NWNX_Object_SetCurrentHitPoints | ( | object | obj, |
| int | hp | ||
| ) |
Set an object's hit points.
| obj | The object. |
| hp | The hit points. |
Definition at line 470 of file nwnx_object.nss.
| void NWNX_Object_SetMaxHitPoints | ( | object | obj, |
| int | hp | ||
| ) |
Adjust an object's maximum hit points.
| obj | The object. |
| hp | The maximum hit points. |
Definition at line 477 of file nwnx_object.nss.
| string NWNX_Object_Serialize | ( | object | obj | ) |
Serialize a full object to a base64 string.
| obj | The object. |
Definition at line 484 of file nwnx_object.nss.
| object NWNX_Object_Deserialize | ( | string | serialized | ) |
Deserialize the object.
| serialized | The base64 string. |
Definition at line 491 of file nwnx_object.nss.
| string NWNX_Object_GetDialogResref | ( | object | obj | ) |
Gets the dialog resref.
| obj | The object. |
Definition at line 498 of file nwnx_object.nss.
| void NWNX_Object_SetDialogResref | ( | object | obj, |
| string | dialog | ||
| ) |
Sets the dialog resref.
| obj | The object. |
| dialog | The name of the dialog resref. |
Definition at line 505 of file nwnx_object.nss.
| void NWNX_Object_SetAppearance | ( | object | oPlaceable, |
| int | nAppearance | ||
| ) |
Set oPlaceable's appearance.
| oPlaceable | The placeable. |
| nAppearance | The appearance id. |
Definition at line 512 of file nwnx_object.nss.
| int NWNX_Object_GetAppearance | ( | object | oPlaceable | ) |
Get oPlaceable's appearance.
| oPlaceable | The placeable. |
Definition at line 519 of file nwnx_object.nss.
| int NWNX_Object_GetHasVisualEffect | ( | object | obj, |
| int | nVFX | ||
| ) |
Determine if an object has a visual effect.
| obj | The object. |
| nVFX | The visual effect id. |
Definition at line 526 of file nwnx_object.nss.
| int NWNX_Object_GetDamageImmunity | ( | object | obj, |
| int | damageType | ||
| ) |
Get an object's damage immunity.
| obj | The object. |
| damageType | The damage type to check for immunity. Use DAMAGE_TYPE_* constants. |
Definition at line 534 of file nwnx_object.nss.
| void NWNX_Object_AddToArea | ( | object | obj, |
| object | area, | ||
| vector | pos | ||
| ) |
Add or move an object.
| obj | The object. |
| area | The area. |
| pos | The position. |
Definition at line 542 of file nwnx_object.nss.
| int NWNX_Object_GetPlaceableIsStatic | ( | object | obj | ) |
Get placeable's static setting.
| obj | The object. |
Definition at line 550 of file nwnx_object.nss.
| void NWNX_Object_SetPlaceableIsStatic | ( | object | obj, |
| int | isStatic | ||
| ) |
Set placeable as static or not.
| obj | The object. |
| isStatic | TRUE/FALSE |
Definition at line 557 of file nwnx_object.nss.
| int NWNX_Object_GetAutoRemoveKey | ( | object | obj | ) |
Gets if a door/placeable auto-removes the key after use.
| obj | The object. |
Definition at line 564 of file nwnx_object.nss.
| void NWNX_Object_SetAutoRemoveKey | ( | object | obj, |
| int | bRemoveKey | ||
| ) |
Sets if a door/placeable auto-removes the key after use.
| obj | The object. |
| bRemoveKey | TRUE/FALSE |
Definition at line 571 of file nwnx_object.nss.
| string NWNX_Object_GetTriggerGeometry | ( | object | oTrigger | ) |
Get the geometry of a trigger.
| oTrigger | The trigger object. |
Definition at line 578 of file nwnx_object.nss.
| void NWNX_Object_SetTriggerGeometry | ( | object | oTrigger, |
| string | sGeometry | ||
| ) |
Set the geometry of a trigger with a list of vertex positions.
| oTrigger | The trigger object. |
| sGeometry | Needs to be in the following format -> {x.x, y.y, z.z} or {x.x, y.y} Example Geometry: "{1.0, 1.0, 0.0}{4.0, 1.0, 0.0}{4.0, 4.0, 0.0}{1.0, 4.0, 0.0}" |
Definition at line 585 of file nwnx_object.nss.
| void NWNX_Object_Export | ( | object | oObject, |
| string | sFileName, | ||
| string | sAlias = "NWNX" |
||
| ) |
Export an object to the UserDirectory/nwnx folder.
| sFileName | The filename without extension, 16 or less characters. |
| oObject | The object to export. Valid object types: Creature, Item, Placeable, Waypoint, Door, Store, Trigger |
| sAlias | The alias of the resource directory to add the .git file to. Default: UserDirectory/nwnx |
Definition at line 592 of file nwnx_object.nss.
| int NWNX_Object_GetInt | ( | object | oObject, |
| string | sVarName | ||
| ) |
Get oObject's integer variable sVarName.
| oObject | The object to get the variable from. |
| sVarName | The variable name. |
Definition at line 600 of file nwnx_object.nss.
| void NWNX_Object_SetInt | ( | object | oObject, |
| string | sVarName, | ||
| int | nValue, | ||
| int | bPersist | ||
| ) |
Set oObject's integer variable sVarName to nValue.
| oObject | The object to set the variable on. |
| sVarName | The variable name. |
| nValue | The integer value to to set |
| bPersist | When TRUE, the value is persisted to GFF, this means that it'll be saved in the .bic file of a player's character or when an object is serialized. |
Definition at line 608 of file nwnx_object.nss.
| void NWNX_Object_DeleteInt | ( | object | oObject, |
| string | sVarName | ||
| ) |
Delete oObject's integer variable sVarName.
| oObject | The object to delete the variable from. |
| sVarName | The variable name. |
Definition at line 617 of file nwnx_object.nss.
| string NWNX_Object_GetString | ( | object | oObject, |
| string | sVarName | ||
| ) |
Get oObject's string variable sVarName.
| oObject | The object to get the variable from. |
| sVarName | The variable name. |
Definition at line 624 of file nwnx_object.nss.
| void NWNX_Object_SetString | ( | object | oObject, |
| string | sVarName, | ||
| string | sValue, | ||
| int | bPersist | ||
| ) |
Set oObject's string variable sVarName to sValue.
| oObject | The object to set the variable on. |
| sVarName | The variable name. |
| sValue | The string value to to set |
| bPersist | When TRUE, the value is persisted to GFF, this means that it'll be saved in the .bic file of a player's character or when an object is serialized. |
Definition at line 632 of file nwnx_object.nss.
| void NWNX_Object_DeleteString | ( | object | oObject, |
| string | sVarName | ||
| ) |
Delete oObject's string variable sVarName.
| oObject | The object to delete the variable from. |
| sVarName | The variable name. |
Definition at line 641 of file nwnx_object.nss.
| float NWNX_Object_GetFloat | ( | object | oObject, |
| string | sVarName | ||
| ) |
Get oObject's float variable sVarName.
| oObject | The object to get the variable from. |
| sVarName | The variable name. |
Definition at line 648 of file nwnx_object.nss.
| void NWNX_Object_SetFloat | ( | object | oObject, |
| string | sVarName, | ||
| float | fValue, | ||
| int | bPersist | ||
| ) |
Set oObject's float variable sVarName to fValue.
| oObject | The object to set the variable on. |
| sVarName | The variable name. |
| fValue | The float value to to set |
| bPersist | When TRUE, the value is persisted to GFF, this means that it'll be saved in the .bic file of a player's character or when an object is serialized. |
Definition at line 656 of file nwnx_object.nss.
| void NWNX_Object_DeleteFloat | ( | object | oObject, |
| string | sVarName | ||
| ) |
Delete oObject's persistent float variable sVarName.
| oObject | The object to delete the variable from. |
| sVarName | The variable name. |
Definition at line 665 of file nwnx_object.nss.
| void NWNX_Object_DeleteVarRegex | ( | object | oObject, |
| string | sRegex | ||
| ) |
Delete any variables that match sRegex.
| oObject | The object to delete the variables from. |
| sRegex | The regular expression, for example .*Test.* removes every variable that has Test in it. |
Definition at line 672 of file nwnx_object.nss.
| int NWNX_Object_GetPositionIsInTrigger | ( | object | oTrigger, |
| vector | vPosition | ||
| ) |
Get if vPosition is inside oTrigger's geometry.
| oTrigger | The trigger. |
| vPosition | The position. |
Definition at line 679 of file nwnx_object.nss.
| int NWNX_Object_GetInternalObjectType | ( | object | oObject | ) |
Gets the given object's internal type (NWNX_OBJECT_TYPE_INTERNAL_*)
| oObject | The object. |
Definition at line 687 of file nwnx_object.nss.
| int NWNX_Object_AcquireItem | ( | object | oObject, |
| object | oItem | ||
| ) |
Have oObject acquire oItem.
| oObject | The object receiving oItem, must be a Creature, Placeable, Store or Item |
| oItem | The item. |
Definition at line 694 of file nwnx_object.nss.
| void NWNX_Object_ClearSpellEffectsOnOthers | ( | object | oObject | ) |
Clear all spell effects oObject has applied to others.
| oObject | The object that applied the spell effects. |
Definition at line 702 of file nwnx_object.nss.
| string NWNX_Object_PeekUUID | ( | object | oObject | ) |
Peek at the UUID of oObject without assigning one if it does not have one.
| oObject | The object |
Definition at line 708 of file nwnx_object.nss.
| int NWNX_Object_GetDoorHasVisibleModel | ( | object | oDoor | ) |
Get if oDoor has a visible model.
| oDoor | The door |
Definition at line 715 of file nwnx_object.nss.
| int NWNX_Object_GetIsDestroyable | ( | object | oObject | ) |
Get if oObject is destroyable.
| oObject | The object |
Definition at line 722 of file nwnx_object.nss.
| int NWNX_Object_DoSpellImmunity | ( | object | oDefender, |
| object | oCaster, | ||
| int | nSpellId = -1 |
||
| ) |
Checks for specific spell immunity. Should only be called in spellscripts.
| oDefender | The object defending against the spell. |
| oCaster | The object casting the spell. |
| nSpellId | The casted spell id. Default value is -1, which corresponds to the normal game behaviour. |
Definition at line 729 of file nwnx_object.nss.
| int NWNX_Object_DoSpellLevelAbsorption | ( | object | oDefender, |
| object | oCaster, | ||
| int | nSpellId = -1, |
||
| int | nSpellLevel = -1, |
||
| int | nSpellSchool = -1 |
||
| ) |
Checks for spell school/level immunities and mantles. Should only be called in spellscripts.
| oDefender | The object defending against the spell. |
| oCaster | The object casting the spell. |
| nSpellId | The casted spell id. Default value is -1, which corresponds to the normal game behaviour. |
| nSpellLevel | The level of the casted spell. Default value is -1, which corresponds to the normal game behaviour. |
| nSpellSchool | The school of the casted spell (SPELL_SCHOOL_* constant). Default value is -1, which corresponds to the normal game behaviour. |
Definition at line 738 of file nwnx_object.nss.
| void NWNX_Object_SetHasInventory | ( | object | obj, |
| int | bHasInventory | ||
| ) |
Sets if a placeable has an inventory.
| obj | The placeable. |
| bHasInventory | TRUE/FALSE |
Definition at line 749 of file nwnx_object.nss.
| int NWNX_Object_GetCurrentAnimation | ( | object | oObject | ) |
Get the current animation of oObject.
| oObject | The object |
Definition at line 756 of file nwnx_object.nss.
| int NWNX_Object_GetAILevel | ( | object | oObject | ) |
Gets the AI level of an object.
| oObject | The object. |
Definition at line 763 of file nwnx_object.nss.
| void NWNX_Object_SetAILevel | ( | object | oObject, |
| int | nLevel | ||
| ) |
Sets the AI level of an object.
| oObject | The object. |
| nLevel | The level to set (AI_LEVEL_* -1 to 4). |
Definition at line 770 of file nwnx_object.nss.
| string NWNX_Object_GetMapNote | ( | object | oObject, |
| int | nID = 0, |
||
| int | nGender = 0 |
||
| ) |
Retrieves the Map Note (AKA Map Pin) from a waypoint - Returns even if currently disabled.
| oObject | The Waypoint object |
| nID | The Language ID (default English) |
| nGender | 0 = Male, 1 = Female |
Definition at line 777 of file nwnx_object.nss.
| void NWNX_Object_SetMapNote | ( | object | oObject, |
| string | sMapNote, | ||
| int | nID = 0, |
||
| int | nGender = 0 |
||
| ) |
Sets a Map Note (AKA Map Pin) to any waypoint, even if no previous map note. Only updates for clients on area-load. Use SetMapPinEnabled() as required.
| oObject | The Waypoint object |
| sMapNote | The contents to set as the Map Note. |
| nID | The Language ID (default English) |
| nGender | 0 = Male, 1 = Female |
Definition at line 786 of file nwnx_object.nss.
| int NWNX_Object_GetLastSpellCastFeat | ( | object | oObject | ) |
Gets the last spell cast feat of oObject.
| oObject | The object. |
Definition at line 795 of file nwnx_object.nss.
| void NWNX_Object_SetLastTriggered | ( | object | oObject, |
| object | oLast | ||
| ) |
Sets the last object that triggered door or placeable trap.
| oObject | Door or placeable object |
| oLast | Object that last triggered trap. |
Definition at line 802 of file nwnx_object.nss.
| float NWNX_Object_GetAoEObjectDurationRemaining | ( | object | oAoE | ) |
Gets the remaining duration of the AoE object.
| oAoE | The AreaOfEffect object. |
Definition at line 809 of file nwnx_object.nss.
| void NWNX_Object_SetConversationPrivate | ( | object | oObject, |
| int | bPrivate | ||
| ) |
Sets conversations started by oObject to be private or not.
| oObject | The object. |
| bPrivate | TRUE/FALSE. |
Definition at line 816 of file nwnx_object.nss.
| void NWNX_Object_SetAoEObjectRadius | ( | object | oAoE, |
| float | fRadius | ||
| ) |
Sets the radius of a circle AoE object.
| oAoE | The AreaOfEffect object. |
| fRadius | The radius, must be bigger than 0.0f. |
Definition at line 823 of file nwnx_object.nss.
| float NWNX_Object_GetAoEObjectRadius | ( | object | oAoE | ) |
Gets the radius of a circle AoE object.
| oAoE | The AreaOfEffect object. |
Definition at line 830 of file nwnx_object.nss.
| int NWNX_Object_GetLastSpellCastSpontaneous | ( | object | oObject | ) |
Gets whether the last spell cast of oObject was spontaneous.
| oObject | The object. |
Definition at line 837 of file nwnx_object.nss.
| int NWNX_Object_GetLastSpellCastDomainLevel | ( | object | oObject | ) |
Gets the last spell cast domain level.
| oObject | The object. |
Definition at line 844 of file nwnx_object.nss.
| void NWNX_Object_ForceAssignUUID | ( | object | oObject, |
| string | sUUID | ||
| ) |
Force the given object to carry the given UUID. Any other object currently owning the UUID is stripped of it.
| oObject | The object |
| sUUID | The UUID to force |
Definition at line 851 of file nwnx_object.nss.
| int NWNX_Object_GetInventoryItemCount | ( | object | oObject | ) |
Returns how many items are in oObject's inventory.
| oObject | A creature, placeable, item or store. |
Definition at line 858 of file nwnx_object.nss.
| void NWNX_Object_OverrideSpellProjectileVFX | ( | object | oCreature, |
| int | nProjectileType = -1, |
||
| int | nProjectilePathType = -1, |
||
| int | nSpellID = -1, |
||
| int | bPersist = FALSE |
||
| ) |
Override the projectile visual effect of ranged/throwing weapons and spells.
| oCreature | The creature. |
| nProjectileType | A NWNX_OBJECT_SPELL_PROJECTILE_TYPE_* constant or -1 to remove the override. |
| nProjectilePathType | A "PROJECTILE_PATH_TYPE_*" constant or -1 to ignore. |
| nSpellID | A "SPELL_*" constant. -1 to ignore. |
| bPersist | Whether the override should persist to the .bic file (for PCs). |
Definition at line 865 of file nwnx_object.nss.
| int NWNX_Object_GetLastSpellInstant | ( | ) |
Returns TRUE if the last spell was cast instantly. This function should only be called in a spell script.
Definition at line 875 of file nwnx_object.nss.
| void NWNX_Object_SetTrapCreator | ( | object | oObject, |
| object | oCreator | ||
| ) |
Sets the creator of a trap on door, placeable, or trigger. Also changes trap Faction to that of the new Creator.
| oObject | Door, placeable or trigger (trap) object |
| oCreator | The new creator of the trap. Any non-creature creator will assign OBJECT_INVALID (similar to toolset-laid traps) |
Definition at line 881 of file nwnx_object.nss.
| string NWNX_Object_GetLocalizedName | ( | object | oObject, |
| int | nLanguage, | ||
| int | nGender = 0 |
||
| ) |
Return the name of the object for nLanguage.
| oObject | an object |
| nLanguage | A PLAYER_LANGUAGE constant. |
| nGender | Gender to use, 0 or 1. |
Definition at line 888 of file nwnx_object.nss.
| void NWNX_Object_SetLocalizedName | ( | object | oObject, |
| string | sName, | ||
| int | nLanguage, | ||
| int | nGender = 0 |
||
| ) |
Set the name of the object as set in the toolset for nLanguage.
| oObject | an object |
| sName | New value to set |
| nLanguage | A PLAYER_LANGUAGE constant. |
| nGender | Gender to use, 0 or 1. |
Definition at line 900 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_UNKNOWN = 0 |
Definition at line 11 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_INT = 1 |
Definition at line 12 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_FLOAT = 2 |
Definition at line 13 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_STRING = 3 |
Definition at line 14 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_OBJECT = 4 |
Definition at line 15 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_LOCATION = 5 |
Definition at line 16 of file nwnx_object.nss.
| const int NWNX_OBJECT_LOCALVAR_TYPE_JSON = 6 |
Definition at line 17 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_INVALID = -1 |
Definition at line 23 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_GUI = 1 |
Definition at line 24 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_TILE = 2 |
Definition at line 25 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_MODULE = 3 |
Definition at line 26 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_AREA = 4 |
Definition at line 27 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_CREATURE = 5 |
Definition at line 28 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_ITEM = 6 |
Definition at line 29 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_TRIGGER = 7 |
Definition at line 30 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_PROJECTILE = 8 |
Definition at line 31 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_PLACEABLE = 9 |
Definition at line 32 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_DOOR = 10 |
Definition at line 33 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_AREAOFEFFECT = 11 |
Definition at line 34 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_WAYPOINT = 12 |
Definition at line 35 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_ENCOUNTER = 13 |
Definition at line 36 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_STORE = 14 |
Definition at line 37 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_PORTAL = 15 |
Definition at line 38 of file nwnx_object.nss.
| const int NWNX_OBJECT_TYPE_INTERNAL_SOUND = 16 |
Definition at line 39 of file nwnx_object.nss.
| const int NWNX_OBJECT_SPELL_PROJECTILE_TYPE_DEFAULT = 6 |
Definition at line 45 of file nwnx_object.nss.
| const int NWNX_OBJECT_SPELL_PROJECTILE_TYPE_USE_PATH = 7 |
Definition at line 46 of file nwnx_object.nss.