Difference between revisions of "GetM2DARows"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) m (1 revision: Importing auto-generated function articles) |
BryanDerksen (Talk | contribs) (add parameter 2 default) |
||
Line 1: | Line 1: | ||
− | |||
{{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.
- 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.