Difference between revisions of "GetM2DARows"

From Dragon Age Toolset Wiki
Jump to: navigation, search
 
Line 20: Line 20:
 
Returns the number of rows in the specified 2da.
 
Returns the number of rows in the specified 2da.
  
== Remarks ==
+
<!-- == Remarks == -->
 
<!-- This section contains additional comments, observations and known issues. -->
 
<!-- This section contains additional comments, observations and known issues. -->
Note that nRow is the value in the ID field of the row you wish to access.
 
  
 
<!-- == Examples == -->
 
<!-- == Examples == -->

Latest revision as of 13:59, 3 August 2010

Returns the number of rows in the specified 2da.

int GetM2DARows(
int n2DA,
string s2DA = ""
);
Parameters:
n2DA
The 2DA to access
s2DA
(optional) if n2da is -1 and this is a valid resource, it will retrieve the 2da based on the name instead of the index. Note that this should be avoided when possible.
Returns:

Returns the number of rows in the 2DA, returns 0 on error.

Source:

script.ldf

Description

Returns the number of rows in the specified 2da.