Difference between revisions of "GetM2DAResource"
From Dragon Age Toolset Wiki
(Generated by Sunjammer's Dragon Age Script Paser) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{dafunction | {{dafunction | ||
|name=GetM2DAResource | |name=GetM2DAResource | ||
Line 6: | Line 5: | ||
|param1name=n2DA | |param1name=n2DA | ||
|param1desc=The 2DA to access | |param1desc=The 2DA to access | ||
+ | |param1default= | ||
|param2type=string | |param2type=string | ||
|param2name=sColumn | |param2name=sColumn | ||
|param2desc=The name of the column to access | |param2desc=The name of the column to access | ||
+ | |param2default= | ||
|param3type=int | |param3type=int | ||
|param3name=nRow | |param3name=nRow | ||
|param3desc=The 0 based index of the row to access | |param3desc=The 0 based index of the row to access | ||
+ | |param3default= | ||
|param4type=string | |param4type=string | ||
|param4name=s2da | |param4name=s2da | ||
|param4desc=(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. | |param4desc=(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. | ||
+ | |param4default="" | ||
|returntype=resource | |returntype=resource | ||
|returndesc=Returns a resrouce specified by the parameters. | |returndesc=Returns a resrouce specified by the parameters. | ||
Line 25: | Line 28: | ||
Returns a 2DA resource on the specified Row and Column values. | Returns a 2DA resource on the specified Row and Column values. | ||
− | + | == 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:57, 3 August 2010
Returns a resource from a 2DA.
- Parameters:
- n2DA
- The 2DA to access
- sColumn
- The name of the column to access
- nRow
- The 0 based index of the row 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 a resrouce specified by the parameters.
- Source:
- script.ldf
Description
Returns a 2DA resource on the specified Row and Column values.
Remarks
Note that nRow is the value in the ID field of the row you wish to access.