GetCreatureTalentBest

From NWN Lexicon
Revision as of 11:12, 21 August 2012 by Dood (talk | contribs) (Created page with " =GetCreatureTalentBest(int, int, object)= Determines the best talent of a creature from a group of talents. talent  GetCreatureTalentBest(   ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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: 

GetIsTalentValid

constants: 

TALENT_CATEGORY_* Constants



 author: Tom Cassiotis