Abilities¶
-
DebugAbilities(cre)¶ Returns a string with some abiltiy related information.
Parameters: - cre (
Creature) – Creature instance
Return type: string
- cre (
-
GetAbilityName(ability)¶ Gets the name of an ability.
Parameters: - ability (int) – ABILITY_*
Return type: string
-
GetAbilityEffectLimits([cre[, ability]])¶ Get the limits of ability effects. Both parameters are optional, the are there merely to facilitate customizing effect limits by ability or creature, supposing someone wanted to do that.
Parameters: - cre (
Creature) – Creature instance - ability (int) – ABILITY_*
Returns: -12, 12
Return type: int
- cre (
-
GetAbilityEffectModifier(cre[, ability])¶ Get ability modification from effects. The return value is not clamped or modified by
GetAbilityEffectLimits().Warning
This currently does not provide default behavior. Everything stacks: items, spells, etc.
Parameters: - cre (
Creature) – Creature instance - ability (int) – ABILITY_*
Return type: If the
abilityparameter is not passed an array of all ability effect modifiers of lengthABILITY_NUMis returned. Note this array is static and should not be modified or stored by callers. If theabilityparameter is passed only that ability effect modifier is returned.- cre (