Difference between revisions of "Ability GetAbilityCost"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(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...')
 
(these parameter descriptions appear to have been inappropriately duplicated from other function documentation)
 
Line 4: Line 4:
 
|param1type = object  
 
|param1type = object  
 
|param1name = oCaster
 
|param1name = oCaster
|param1desc = The creature to deactivate the ability on
+
|param1desc = {{undocumented}}
 
|param1default =
 
|param1default =
 
|param2type =  int
 
|param2type =  int
 
|param2name =  nAbility
 
|param2name =  nAbility
|param2desc = The modal ability to deactivate
+
|param2desc = {{undocumented}}
 
|param2default =
 
|param2default =
 
|param3type = int
 
|param3type = int
 
|param3name =  nAbilityType  
 
|param3name =  nAbilityType  
|param3desc = The ability type of the modal ability
+
|param3desc = {{undocumented}}
 
|param3default =[[ABILITY_TYPE_INVALID]]
 
|param3default =[[ABILITY_TYPE_INVALID]]
 
|param4type =  int  
 
|param4type =  int  

Latest revision as of 23:12, 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
);
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.