SetLastGenericSpellCast

From NWN Lexicon



Contents

[edit] SetLastGenericSpellCast(int)

Sets a local variable that stores the spell ID of the last spell cast.

void SetLastGenericSpellCast(
    int nSpell
);

[edit] Parameters

nSpell

SPELL_*


[edit] Description

Sets a local variable for the last spell used so the BioWare core AI system doesn't keep casting the same spell.

Used in conjuction with CompareLastSpellCast ().



[edit] Remarks

Uses the local variable name "NW_GENERIC_LAST_SPELL".

This is part the Core AI programming to make NPC actions appear more dynamic.


[edit] Requirements

#include " x0_inc_generic "

[edit] Version

1.29

[edit] See Also

functions: 

GetLastGenericSpellCast

constants: 

SPELL_* Constants



 author: Tom Cassiotis, editors: Jody Fletcher, Mistress
 

Personal tools
Categories