X2RunUserDefinedSpellScript

From NWN Lexicon
Jump to navigationJump to search


X2RunUserDefinedSpellScript()

Runs a custom spellhook script if defined.

Description

This is just subroutine function for X2PreSpellCastCode .

It runs a custom spellhook script, if defined, and then returns a value depending on that script.



Remarks

To define custom spellhook script, use either SetModuleOverrideSpellscript in OnModuleLoad event, or go to module properties, and put there string variable X2_S_UD_SPELLSCRIPT manually.


Requirements

#include " x2_inc_spellhook "


Version

???

See Also

functions: 

X2PreSpellCastCode



author: ShaDoOoW, editor: Mistress, Kookoo