Abilities

DebugAbilities(cre)

Returns a string with some abiltiy related information.

Parameters:
Return type:

string

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

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 ability parameter is not passed an array of all ability effect modifiers of length ABILITY_NUM is returned. Note this array is static and should not be modified or stored by callers. If the ability parameter is passed only that ability effect modifier is returned.