NWNX:EE  8193.36.12
nwnx_effect.nss File Reference
#include "nwnx"

Go to the source code of this file.

Classes

struct  NWNX_EffectUnpacked
 An unpacked effect. More...
 

Functions

struct NWNX_EffectUnpacked NWNX_Effect_UnpackEffect (effect e)
 Convert native effect type to unpacked structure. More...
 
effect NWNX_Effect_PackEffect (struct NWNX_EffectUnpacked e)
 Convert unpacked effect structure to native type. More...
 
int NWNX_Effect_ReplaceEffect (object obj, effect eOld, effect eNew)
 replace an already applied effect on an object Only duration, subtype, tag and spell related fields can be overwritten. More...
 
int NWNX_Effect_GetTrueEffectCount (object oObject)
 Gets the true effect count. More...
 
struct NWNX_EffectUnpacked NWNX_Effect_GetTrueEffect (object oObject, int nIndex)
 Gets a specific effect on an object. This can grab effects normally hidden from developers, such as item properties. More...
 
void NWNX_Effect_ReplaceEffectByIndex (object oObject, int nIndex, struct NWNX_EffectUnpacked e)
 Replaces an already applied effect with another. More...
 
int NWNX_Effect_RemoveEffectById (object oObject, string sID)
 Removes effect by ID. More...
 
void NWNX_Effect_Apply (effect eEffect, object oObject)
 Applys an effect, bypassing any processing done by ApplyEffectToObject. More...
 
effect NWNX_Effect_SetEffectCreator (effect eEffect, object oObject)
 Sets an effect creator. More...
 
int NWNX_Effect_GetIsEffectValid (effect eEffect)
 Checks if the given effect is valid. Unlike the game builtin, this call considers internal types too. More...
 
int NWNX_Effect_GetAppliedEffectCount (object oObject)
 Returns the number of applied effects on the given object. More...
 
effect NWNX_Effect_GetAppliedEffect (object oObject, int nNth)
 Returns the nNth applied effect on a object. More...
 
struct NWNX_EffectUnpacked __NWNX_Effect_ResolveUnpack (string sFunc, int bLink=TRUE)
 
void __NWNX_Effect_ResolvePack (string sFunc, struct NWNX_EffectUnpacked e, int bReplace=FALSE)
 

Variables

const int DURATION_TYPE_EQUIPPED = 3
 
const int DURATION_TYPE_INNATE = 4
 

Function Documentation

◆ __NWNX_Effect_ResolveUnpack()

struct NWNX_EffectUnpacked __NWNX_Effect_ResolveUnpack ( string  sFunc,
int  bLink = TRUE 
)

Definition at line 146 of file nwnx_effect.nss.

◆ __NWNX_Effect_ResolvePack()

void __NWNX_Effect_ResolvePack ( string  sFunc,
struct NWNX_EffectUnpacked  e,
int  bReplace = FALSE 
)

Definition at line 216 of file nwnx_effect.nss.