GetAbilityScore(object, int, int)

Get the ability score of a specific type for a creature.

int GetAbilityScore(
    object oCreature,
    int nAbilityType,
    int nBaseAbilityScore = FALSE
);

Parameters

oCreature

The creature whose ability score is sought.

nAbilityType

ABILITY_*

nBaseAbilityScore

If set to TRUE will return the base ability score without bonuses (e.g. ability bonuses granted from equipped items). If nothing entered, defaults to FALSE.


Description

Returns the ability score of type nAbilityType for oCreature (otherwise 0).



Version

1.67

See Also

functions: GetCharisma | GetIntelligence | GetWisdom
categories: Get Data from Creature Functions
constants: ABILITY_* Constants


 author: Kristian Markon, editor: Mistress