Difference between revisions of "Ability CheckUseConditions"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Created page with '{{dafunction |name = Ability_CheckUseConditions |brief = Determine whether or not all conditions for the current talent are met |param1type = object |param1name = oCaster |param1...')
 
(No difference)

Latest revision as of 01:36, 25 February 2010

Determine whether or not all conditions for the current talent are met

int Ability_CheckUseConditions(
object oCaster,
object oTarget,
int nAbility,
object oItem = OBJECT_INVALID
);
Parameters:
oCaster
[Undocumented]
oTarget
[Undocumented]
nAbility
[Undocumented]
oItem
[Undocumented]
Returns:

[Undocumented]

Source:

Core Resources.ability_h

Description

This is temporary, it will go into the engine at some point

Check the use conditions for the ability, e.g. melee only

Later this should be done mostly in the UI (e.g. don't even allow to use it)

  • 0 None
  • 1 Melee
  • 2 Shield
  • 4 Ranged
  • 8 Behind Target
  • 16 Mode active