GetSpellFeatId()
From NWN Lexicon
Jump to navigationJump to searchIn the spell script returns the feat used, or -1 if no feat was used.
Description
In the spell script returns the feat used, or -1 if no feat was used.
Remarks
If it is not -1 you can safely determine the feat.2da line that was used to cast the spell. Feats with successors should return the parent feat ID (eg Bard Song).
This can be useful for scripts used by both spells and feats which one was used to capture special behaviour.
Note that Area of Effect objects currently do not store this value for further use, although it does store the spell Id (see GetSpellId).
Version
This function was added in 1.87.8193.35 of NWN:EE.
Example
See Also
functions: | |
events: |
author: Shadguy