Ability GetAbilityCost

From Dragon Age Toolset Wiki
Jump to: navigation, search

returns the cost (mana or stamina) of using an ability

float Ability_GetAbilityCost(
object oCaster,
int nAbility,
int nAbilityType = ABILITY_TYPE_INVALID,
int bUpkeep = FALSE
);
Parameters:
oCaster
[Undocumented]
nAbility
[Undocumented]
nAbilityType
[Undocumented]
bUpkeep
[Undocumented]
Returns:

The cost of using the ability

Source:

Core Resources.ability_h


Remarks

Note: nAbility = ABILITY_TYPE_INVALID will cause a lookup in the 2da.

This function is duplicated within the game executable. Any change made to this function will result in GUI glitches and other bugs. Sorry.