Ability CostCheck
From Dragon Age Toolset Wiki
Performs an ability cost check to see if an ability can be used.
int Ability_CostCheck(
object oCaster,
int nAbility,
int nAbilityType,
object oItem = OBJECT_INVALID
);
object oCaster,
int nAbility,
int nAbilityType,
object oItem = OBJECT_INVALID
);
- Parameters:
- oCaster
- The caster using the ability
- nAbility
- the ability being used
- nAbilityType
- the ability type of that ability
- oItem
- The item consumed to use the ability/spell (optional)
- Returns:
- TRUE (enough), FALSE (not enough)
- Source:
- Core Resources.ability_h
Description
Returns TRUE if the caster has enough mana or stamina (depending on ability type) to use (used in ability_core)