CompareLastSpellCast(int)
From NWN Lexicon
Determines if a spell is the same as the one previously cast by the creature.
int CompareLastSpellCast( int nSpell );
Contents |
[edit] Parameters
- nSpell
- A SPELL_* constant representing the spell to compare.
[edit] Description
Returns TRUE if nSpell is the last spell used, otherwise FALSE.
Used in conjuction with SetLastGenericSpellCast().
[edit] Remarks
Compares a spell with the last spell cast. Used internally by the AI so it doesn't keep casting the same spell.
[edit] Requirements
#include "x0_inc_generic"
[edit] Version
1.28
[edit] See Also
functions: | SetLastGenericSpellCast |
constants: | SPELL_* Constants |
author: Tom Cassiotis, editors: Lilac Soul, Mistress, additional contributor: Lilac Soul