GetCreatureHasTalent

From NWN Lexicon



Contents

[edit] GetCreatureHasTalent(talent, object)

Determines whether a creature has a specific talent.

int GetCreatureHasTalent(
    talent tTalent,
    object oCreature = OBJECT_SELF
);

[edit] Parameters

tTalent

The talent which will be checked for on the given creature.

oCreature

The creature to see if it has the specified talent. (Default: OBJECT_SELF)


[edit] Description

Returns TRUE if oCreature has tTalent, otherwise FALSE.



[edit] Remarks

This should help to make TalentSpell() etc. work correctly, by checking if they do have TalentSpell(SPELL_MAGIC_MISSILE). It is not used in any Bioware scripts, and the TalentSpell/Feat/Skill() has never been patched either.


[edit] Known Bugs

A bug regarding this causing a STACK_UNDERFLOW_ERROR in all other versions below 1.64 has been fixed in 1.64. It still may not allow TalentSpell() etc. to work correctly, however.


[edit] Version

1.64

[edit] See Also

functions: 

GetIsTalentValid



 author: Tom Cassiotis, editor: Jasperre, additional contributor(s): Jasperre
 

Personal tools
Categories