Difference between revisions of "GetCreatureAttribute"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
m (Updating link) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=GetCreatureAttribute | |name=GetCreatureAttribute | ||
Line 6: | Line 5: | ||
|param1name=oCreature | |param1name=oCreature | ||
|param1desc=the creature whose stat is being requested | |param1desc=the creature whose stat is being requested | ||
+ | |param1default= | ||
|param2type=int | |param2type=int | ||
|param2name=nAttribute | |param2name=nAttribute | ||
|param2desc=the property (stat) we want to know about | |param2desc=the property (stat) we want to know about | ||
+ | |param2default= | ||
|param3type=int | |param3type=int | ||
|param3name=nValueType | |param3name=nValueType | ||
− | |param3desc=the type of value of the property we want to know about (TOTAL, BASE, CURRENT, MODIFIER) | + | |param3desc=the type of value of the property we want to know about (TOTAL, BASE, CURRENT, MODIFIER - see [[PROPERTY_VALUE_*]]) |
+ | |param3default=PROPERTY_VALUE_TOTAL | ||
|returntype=int | |returntype=int | ||
|returndesc=Returns oCreature's Attribute Value | |returndesc=Returns oCreature's Attribute Value | ||
Line 20: | Line 22: | ||
== Description == | == Description == | ||
<!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | <!-- This section contains the full description from the functions comments. Do not change unless you are confident these are incomplete or incorrect. --> | ||
− | Get oCreature's Attribute/Property value in an int form. | + | Get oCreature's Attribute/Property value in an [[Int keyword|int]] form. |
− | See GetCreatureProperty for more details | + | See [[GetCreatureProperty]] for more details. |
<!-- == Remarks == --> | <!-- == Remarks == --> | ||
Line 32: | Line 34: | ||
<!-- This section contains links to articles, functions or constant groups. --> | <!-- This section contains links to articles, functions or constant groups. --> | ||
− | [[Category: Stats functions]] | + | [[Category:Stats functions]] |
Latest revision as of 19:15, 3 August 2011
Get the specified attribute from oCreature
- Parameters:
- oCreature
- the creature whose stat is being requested
- nAttribute
- the property (stat) we want to know about
- nValueType
- the type of value of the property we want to know about (TOTAL, BASE, CURRENT, MODIFIER - see PROPERTY_VALUE_*)
- Returns:
- Returns oCreature's Attribute Value
- Source:
- script.ldf
Description
Get oCreature's Attribute/Property value in an int form. See GetCreatureProperty for more details.