IPGetIPConstCastSpellFromSpellID

From NWN Lexicon



Contents

[edit] IPGetIPConstCastSpellFromSpellID(int)

Returns a spell's corresponding itemproperty constant.

[edit] Parameters

nSpellID

SPELL_*


[edit] Description

Return the IP_CONST_CASTSPELL_* ID matching to the SPELL_* constant given in nSPELL_ID
This uses Get2DAstring, so it is slow. Avoid using in loops!

Returns -1 if there is no matching property for a spell



[edit] Known Bugs

This function returns 0, not -1, if there's no matching IP_CONST_CASTSPELL_* ID for the nSpellID parameter. This is unfortunate since 0 is the same value as IP_CONST_ONHIT_CASTSPELL_ACID_FOG.


[edit] Requirements

#include " x2_inc_itemprop "

[edit] Version

1.61

[edit] See Also

constants: 

SPELL_* Constants



 author: Lilac Soul
 

Personal tools
Categories