GetIdFromTalent(talent)

Determines the identifier of a talent.

int GetIdFromTalent(
    talent tTalent
);

Parameters

tTalent

The talent to get the ID of.


Description

Returns the identifier of tTalent from SPELL_*, FEAT_* or SKILL_*.



Remarks

When writing generic AI for creatures there are functions, like GetCreatureTalentBest, that return talents that can be used in a situation but a lot of functions require the identifiers to be used. This converts from 'talent' to those identifiers.


Version

1.22

See Also

functions: GetCreatureTalentBest | GetCreatureTalentRandom | GetTypeFromTalent | TalentAdvancedProtectSelf | TalentBuffSelf
categories: Talents/Skills/Feats Functions
constants: SPELL_* Constants


 author: Tom Cassiotis
 Send comments on this topic.