GetCreatureTalentBest(int, int, object)

Determines the best talent of a creature from a group of talents.

talent GetCreatureTalentBest(
    int nCategory,
    int nCRMax,
    object oCreature = OBJECT_SELF
);

Parameters

nCategory

TALENT_CATEGORY_*

nCRMax

The maximum Challenge Rating of the talent.

oCreature

The creature that has the talent. (Default: OBJECT_SELF)


Description

Returns the best talent (i.e. closest to nCRMax without going over) of oCreature, within nCategory.



Version

1.22

See Also

functions: GetCreatureHasTalent | GetCreatureTalentRandom | GetIsTalentValid
categories: Core AI Functions | Core AI Talent Functions | Get Data from Creature Functions
constants: TALENT_CATEGORY_* Constants


 author: Tom Cassiotis