GetLastRunScriptEffectScriptType()

From NWN Lexicon
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.

Get the script type (RUNSCRIPT_EFFECT_SCRIPT_TYPE_*) of the last triggered EffectRunScript() script.

int GetLastRunScriptEffectScriptType();

Description

Get the script type (RUNSCRIPT_EFFECT_SCRIPT_TYPE_*) of the last triggered EffectRunScript() script.

Returns 0 when called outside of an EffectRunScript() script.


Remarks

This can be used to have the same script be reused for each of the parameters of EffectRunScript.


Version

This function was added in 1.84.8193.29 of NWN:EE.


Example

See EffectRunScript for a full example.


See Also

functions:

EffectRunScript GetLastRunScriptEffect

constants:

RUNSCRIPT_EFFECT_SCRIPT_TYPE