Ability CostCheck

From Dragon Age Toolset Wiki
Revision as of 23:09, 24 February 2010 by BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = Ability_CostCheck |brief = Performs an ability cost check to see if an ability can be used. |param1type = object |param1name = oCaster |param1desc = The cast...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
);
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)