GetCreatureHasTalent(talent, object)

Determines whether a creature has a specific talent.

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

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)


Description

Returns TRUE if oCreature has tTalent, otherwise FALSE.



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.


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.


Version

1.64

See Also

functions: GetCreatureTalentBest | GetCreatureTalentRandom | GetIsTalentValid
categories: Core AI Talent Functions | Get Data from Creature Functions


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