Difference between revisions of "GetM2DARows"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (1 revision: Importing auto-generated function articles)
(add parameter 2 default)
Line 1: Line 1:
{{Generated with joins}}
 
 
{{dafunction
 
{{dafunction
 
|name=GetM2DARows
 
|name=GetM2DARows
Line 9: Line 8:
 
|param2name=s2DA
 
|param2name=s2DA
 
|param2desc=(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.   
 
|param2desc=(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.   
 +
|param2default = ""
 
|returntype=int
 
|returntype=int
 
|returndesc=Returns the number of rows in the 2DA, returns 0 on error.
 
|returndesc=Returns the number of rows in the 2DA, returns 0 on error.

Revision as of 22:42, 30 July 2009

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.