Category:Core AI Talent Functions

From NWN Lexicon
Jump to navigationJump to search

Core AI Talent Function Category

Functions that deal with the core AI talents



Functions

Name Brief Description

GetCreatureHasTalent

Determines whether a creature has a specific talent.

GetCreatureTalentBest

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

GetCreatureTalentRandom

Retrieves a random talent from a group of talents that a creature possesses.

GetMatchCompatibility

Check if creature is able use a talent from a selected class in the requested method.

MatchCombatProtections

Returns if the talent is a protective combat spell.

MatchElementalProtections

Returns if the talent is a protective spell.

MatchSpellProtections

Returns if the talent is a protective spell.

StartProtectionLoop

Finds a protection talent to use.

TalentAdvancedBuff

Causes the NPC/Creature to buff themselves using a priority aligned list of spells if they have them.

TalentAdvancedProtectSelf

AI quickly scans nearby enemies and determines the most beneficial protective talents to use on itself against the type of enemies it faces.

TalentBardSong

If the AI has the Bard Song Feat, use it.

TalentBuffSelf

Used for Potions of Enhancement and Protection

TalentCureCondition

Cure Disease, Poison, Curse and Blindness and Deafness of nearest friendly target.

TalentDragonCombat

Determines the talent a dragon chooses during combat.

TalentEnhanceOthers

Used by NPC or creatures to determine the best feat, spell or skill to use to assist others in same faction.

TalentFlee

Make the calling object flee from another object.

TalentHeal

Determines if a creature's master (as a henchman) or fellow party members are damaged. If so, attempts to heal if has that ability.

TalentHealingSelf

Checks to see if NPC or creature is damaged. If so, tries to heal either with a spell or a potion.

TalentPersistentAbilities

Determines if current creature has capability to project an aura, and activates it if so.

TalentRangedAttackers

Determines course of action for spell-casting NPC while being attacked by ranged foes.

TalentUseEnhancementOnSelf

Returns TRUE on successful use of such a talent, FALSE otherwise.

TalentUseProtectionOnSelf

Returns TRUE on successful use of such a talent, FALSE otherwise.

TalentUseProtectionOthers

Returns TRUE on successful use of such a talent, FALSE otherwise.