Difference between revisions of "GetItemStat"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
 
Line 1: Line 1:
{{Generated with errors}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetItemStat
 
|name=GetItemStat
Line 10: Line 9:
 
|param2desc=The stat that is being queried
 
|param2desc=The stat that is being queried
 
|returntype=float
 
|returntype=float
|returndesc=
+
|returndesc=Modifier for the stat given by this item
 
|sourcefile=script.ldf
 
|sourcefile=script.ldf
 
|sourcemodule=
 
|sourcemodule=
Line 17: Line 16:
 
== 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. -->
Queries the items and material 2DAs to get the stat modifier
+
Queries the [[BITM base.xls|items]] and [[Materialtypes.xls|material 2DA]]s to get the stat modifier that a certain item has when equipped.
that a certain item has when equipped.
+
  
 
<!-- == Remarks == -->
 
<!-- == Remarks == -->

Latest revision as of 22:00, 2 March 2010

Get a stat modifier of the item (including material modifier)

float GetItemStat(
object oItem,
int nStatType
);
Parameters:
oItem
the Item
nStatType
The stat that is being queried
Returns:

Modifier for the stat given by this item

Source:

script.ldf

Description

Queries the items and material 2DAs to get the stat modifier that a certain item has when equipped.