Difference between revisions of "Ability CostCheck"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
 
(No difference)

Latest revision as of 23:09, 24 February 2010

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)