|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
7 const string NWNX_Object =
"NWNX_Object";
440 string sFunc =
"GetLocalVariableCount";
450 string sFunc =
"GetLocalVariable";
464 string sFunc =
"SetPosition";
477 string sFunc =
"GetCurrentHitPoints";
487 string sFunc =
"SetCurrentHitPoints";
497 string sFunc =
"SetMaxHitPoints";
507 string sFunc =
"Serialize";
517 string sFunc =
"Deserialize";
527 string sFunc =
"GetDialogResref";
537 string sFunc =
"SetDialogResref";
547 string sFunc =
"SetAppearance";
557 string sFunc =
"GetAppearance";
567 string sFunc =
"GetHasVisualEffect";
579 string sFunc =
"GetDamageImmunity";
591 string sFunc =
"AddToArea";
603 string sFunc =
"GetPlaceableIsStatic";
613 string sFunc =
"SetPlaceableIsStatic";
623 string sFunc =
"GetAutoRemoveKey";
633 string sFunc =
"SetAutoRemoveKey";
643 string sFunc =
"GetTriggerGeometry";
653 string sFunc =
"SetTriggerGeometry";
662 string sFunc =
"Export";
672 string sFunc =
"GetInt";
683 string sFunc =
"SetInt";
694 string sFunc =
"DeleteInt";
703 string sFunc =
"GetString";
714 string sFunc =
"SetString";
725 string sFunc =
"DeleteString";
734 string sFunc =
"GetFloat";
745 string sFunc =
"SetFloat";
756 string sFunc =
"DeleteFloat";
765 string sFunc =
"DeleteVarRegex";
774 string sFunc =
"GetPositionIsInTrigger";
787 string sFunc =
"GetInternalObjectType";
797 string sFunc =
"AcquireItem";
808 string sFunc =
"ClearSpellEffectsOnOthers";
816 string sFunc =
"PeekUUID";
826 string sFunc =
"GetDoorHasVisibleModel";
836 string sFunc =
"GetIsDestroyable";
846 string sFunc =
"DoSpellImmunity";
857 string sFunc =
"DoSpellLevelAbsorption";
870 string sFunc =
"SetHasInventory";
880 string sFunc =
"GetCurrentAnimation";
890 string sFunc =
"GetAILevel";
900 string sFunc =
"SetAILevel";
910 string sFunc =
"GetMapNote";
922 string sFunc =
"SetMapNote";
933 string sFunc =
"GetLastSpellCastFeat";
943 string sFunc =
"SetLastTriggered";
953 string sFunc =
"GetAoEObjectDurationRemaining";
963 string sFunc =
"SetConversationPrivate";
973 string sFunc =
"SetAoEObjectRadius";
982 string sFunc =
"GetAoEObjectRadius";
992 string sFunc =
"GetLastSpellCastSpontaneous";
1002 string sFunc =
"GetLastSpellCastDomainLevel";
1012 string sFunc =
"ForceAssignUUID";
1021 string sFunc =
"GetInventoryItemCount";
1030 string sFunc =
"OverrideSpellProjectileVFX";
1042 string sFunc =
"GetLastSpellInstant";
1049 string sFunc =
"SetTrapCreator";
1057 string sFunc =
"GetLocalizedName";
1069 string sFunc =
"SetLocalizedName";
void NWNX_Object_SetTriggerGeometry(object oTrigger, string sGeometry)
Set the geometry of a trigger with a list of vertex positions.
void NWNX_Object_SetInt(object oObject, string sVarName, int nValue, int bPersist)
Set oObject's integer variable sVarName to nValue.
int NWNX_Object_GetAppearance(object oPlaceable)
Get oPlaceable's appearance.
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
string NWNX_Object_PeekUUID(object oObject)
Peek at the UUID of oObject without assigning one if it does not have one.
void NWNX_Object_Export(object oObject, string sFileName, string sAlias="NWNX")
Export an object to the UserDirectory/nwnx folder.
const int NWNX_OBJECT_TYPE_INTERNAL_DOOR
const int NWNX_OBJECT_TYPE_INTERNAL_AREA
const int NWNX_OBJECT_SPELL_PROJECTILE_TYPE_DEFAULT
const int NWNX_OBJECT_TYPE_INTERNAL_GUI
string NWNX_Object_GetLocalizedName(object oObject, int nLanguage, int nGender=0)
Return the name of the object for nLanguage.
void NWNX_Object_SetPlaceableIsStatic(object obj, int isStatic)
Set placeable as static or not.
void NWNX_Object_DeleteString(object oObject, string sVarName)
Delete oObject's string variable sVarName.
void NWNX_Object_DeleteInt(object oObject, string sVarName)
Delete oObject's integer variable sVarName.
const int NWNX_OBJECT_TYPE_INTERNAL_PLACEABLE
string NWNX_Object_GetDialogResref(object obj)
Gets the dialog resref.
struct NWNX_Object_LocalVariable NWNX_Object_GetLocalVariable(object obj, int index)
Gets the local variable at the provided index of the provided object.
const int NWNX_OBJECT_TYPE_INTERNAL_PROJECTILE
int NWNX_Object_GetHasVisualEffect(object obj, int nVFX)
Determine if an object has a visual effect.
int NWNX_Object_GetInventoryItemCount(object oObject)
Returns how many items are in oObject's inventory.
void NWNX_Object_SetAoEObjectRadius(object oAoE, float fRadius)
Sets the radius of a circle AoE object.
void NWNX_Object_SetPosition(object oObject, vector vPosition, int bUpdateSubareas=TRUE)
Set oObject's position.
void NWNX_Object_SetLastTriggered(object oObject, object oLast)
Sets the last object that triggered door or placeable trap.
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 strippe...
string NWNX_Object_GetString(object oObject, string sVarName)
Get oObject's string variable sVarName.
float NWNX_GetReturnValueFloat()
Returns the specified type from the c++ side.
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
const int NWNX_OBJECT_TYPE_INTERNAL_AREAOFEFFECT
const int NWNX_OBJECT_TYPE_INTERNAL_MODULE
int NWNX_Object_GetCurrentAnimation(object oObject)
Get the current animation of oObject.
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
int NWNX_Object_GetInternalObjectType(object oObject)
Gets the given object's internal type (NWNX_OBJECT_TYPE_INTERNAL_*)
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.
void NWNX_Object_ClearSpellEffectsOnOthers(object oObject)
Clear all spell effects oObject has applied to others.
void NWNX_PushArgumentObject(object value)
Pushes the specified type to the c++ side.
float NWNX_Object_GetAoEObjectRadius(object oAoE)
Gets the radius of a circle AoE object.
void NWNX_Object_SetCurrentHitPoints(object obj, int hp)
Set an object's hit points.
int NWNX_Object_GetAILevel(object oObject)
Gets the AI level of an object.
void NWNX_Object_SetHasInventory(object obj, int bHasInventory)
Sets if a placeable has an inventory.
const int NWNX_OBJECT_TYPE_INTERNAL_TILE
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
const int NWNX_OBJECT_LOCALVAR_TYPE_INT
int NWNX_Object_GetLastSpellInstant()
Returns TRUE if the last spell was cast instantly. This function should only be called in a spell scr...
const int NWNX_OBJECT_LOCALVAR_TYPE_UNKNOWN
const int NWNX_OBJECT_LOCALVAR_TYPE_FLOAT
void NWNX_Object_SetConversationPrivate(object oObject, int bPrivate)
Sets conversations started by oObject to be private or not.
int NWNX_Object_GetCurrentHitPoints(object obj)
Get an object's hit points.
string key
Name of the variable.
int NWNX_Object_GetDoorHasVisibleModel(object oDoor)
Get if oDoor has a visible model.
int NWNX_Object_GetPlaceableIsStatic(object obj)
Get placeable's static setting.
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 n...
float NWNX_Object_GetFloat(object oObject, string sVarName)
Get oObject's float variable sVarName.
int NWNX_Object_GetLocalVariableCount(object obj)
Gets the count of all local variables.
int NWNX_Object_DoSpellImmunity(object oDefender, object oCaster, int nSpellId=-1)
Checks for specific spell immunity. Should only be called in spellscripts.
const int NWNX_OBJECT_TYPE_INTERNAL_ENCOUNTER
int NWNX_Object_GetLastSpellCastFeat(object oObject)
Gets the last spell cast feat of oObject.
float NWNX_Object_GetAoEObjectDurationRemaining(object oAoE)
Gets the remaining duration of the AoE object.
void NWNX_Object_DeleteFloat(object oObject, string sVarName)
Delete oObject's persistent float variable sVarName.
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...
void NWNX_Object_SetFloat(object oObject, string sVarName, float fValue, int bPersist)
Set oObject's float variable sVarName to fValue.
int NWNX_Object_GetLastSpellCastDomainLevel(object oObject)
Gets the last spell cast domain level.
const int NWNX_OBJECT_LOCALVAR_TYPE_LOCATION
int NWNX_Object_GetLastSpellCastSpontaneous(object oObject)
Gets whether the last spell cast of oObject was spontaneous.
void NWNX_Object_SetAppearance(object oPlaceable, int nAppearance)
Set oPlaceable's appearance.
const int NWNX_OBJECT_TYPE_INTERNAL_ITEM
int NWNX_Object_GetPositionIsInTrigger(object oTrigger, vector vPosition)
Get if vPosition is inside oTrigger's geometry.
const int NWNX_OBJECT_LOCALVAR_TYPE_JSON
int NWNX_Object_GetIsDestroyable(object oObject)
Get if oObject is destroyable.
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.
int NWNX_Object_GetInt(object oObject, string sVarName)
Get oObject's integer variable sVarName.
int NWNX_Object_AcquireItem(object oObject, object oItem)
Have oObject acquire oItem.
const int NWNX_OBJECT_TYPE_INTERNAL_WAYPOINT
const int NWNX_OBJECT_TYPE_INTERNAL_STORE
void NWNX_Object_SetString(object oObject, string sVarName, string sValue, int bPersist)
Set oObject's string variable sVarName to sValue.
object NWNX_GetReturnValueObject()
Returns the specified type from the c++ side.
const int NWNX_OBJECT_TYPE_INTERNAL_PORTAL
void NWNX_Object_SetMaxHitPoints(object obj, int hp)
Adjust an object's maximum hit points.
void NWNX_Object_SetDialogResref(object obj, string dialog)
Sets the dialog resref.
void NWNX_Object_AddToArea(object obj, object area, vector pos)
Add or move an object.
int NWNX_Object_GetDamageImmunity(object obj, int damageType)
Get an object's damage immunity.
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.
string NWNX_Object_GetTriggerGeometry(object oTrigger)
Get the geometry of a trigger.
int type
Int, String, Float, Object.
void NWNX_Object_DeleteVarRegex(object oObject, string sRegex)
Delete any variables that match sRegex.
int NWNX_Object_GetAutoRemoveKey(object obj)
Gets if a door/placeable auto-removes the key after use.
void NWNX_PushArgumentFloat(float value)
Pushes the specified type to the c++ side.
void NWNX_Object_SetAutoRemoveKey(object obj, int bRemoveKey)
Sets if a door/placeable auto-removes the key after use.
const int NWNX_OBJECT_TYPE_INTERNAL_CREATURE
const int NWNX_OBJECT_LOCALVAR_TYPE_OBJECT
A local variable structure.
void NWNX_Object_SetAILevel(object oObject, int nLevel)
Sets the AI level of an object.
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.
const int NWNX_OBJECT_TYPE_INTERNAL_INVALID
object NWNX_Object_Deserialize(string serialized)
Deserialize the object.
const int NWNX_OBJECT_TYPE_INTERNAL_TRIGGER
string NWNX_Object_Serialize(object obj)
Serialize a full object to a base64 string.
const int NWNX_OBJECT_SPELL_PROJECTILE_TYPE_USE_PATH
const int NWNX_OBJECT_TYPE_INTERNAL_SOUND
const int NWNX_OBJECT_LOCALVAR_TYPE_STRING