Difference between revisions of "Ability GetAbilityCost"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (Created page with '{{dafunction |name = Ability_GetAbilityCost |brief = returns the cost (mana or stamina) of using an ability |param1type = object |param1name = oCaster |param1desc = The creature...') |
(No difference)
|
Revision as of 23:05, 24 February 2010
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
);
object oCaster,
int nAbility,
int nAbilityType = ABILITY_TYPE_INVALID,
int bUpkeep = FALSE
);
- Parameters:
- oCaster
- The creature to deactivate the ability on
- nAbility
- The modal ability to deactivate
- nAbilityType
- The ability type of the modal ability
- 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.