Difference between revisions of "GetCreatureAttribute"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(Generated by Sunjammer's Dragon Age Script Paser)
m (Updating link)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Generated}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetCreatureAttribute
 
|name=GetCreatureAttribute
Line 13: Line 12:
 
|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
 
|param3default=PROPERTY_VALUE_TOTAL
 
|returntype=int
 
|returntype=int
Line 23: 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 35: 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

int GetCreatureAttribute(
object oCreature,
int nAttribute,
int nValueType = PROPERTY_VALUE_TOTAL
);
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.