function Get2DAString (string s2DA, string sColumn, int nRow) Gets a value from a 2DA file on the server and returns it as a string avoid using this function in loops
* s2DA: the name of the 2da file
* sColumn: the name of the column in the 2da
* nRow: the row in the 2da * returns an empty string if file, row, or column not found
* Return type: string
* Include file: nwscriptdefn
| Attributes | Values |
|---|
| rdfs:label
| |
| rdfs:comment
| - function Get2DAString (string s2DA, string sColumn, int nRow) Gets a value from a 2DA file on the server and returns it as a string avoid using this function in loops
* s2DA: the name of the 2da file
* sColumn: the name of the column in the 2da
* nRow: the row in the 2da * returns an empty string if file, row, or column not found
* Return type: string
* Include file: nwscriptdefn
- The Get2DAString() NWScript command retrieves information from the specified .2da file. The information is retrieved from a single cell (column within a row) as a string, which can then be used directly or converted to a number using either <a href="/mediawiki/StringToInt" title="StringToInt">StringToInt</a>() or <a href="/mediawiki/StringToFloat" title="StringToFloat">StringToFloat</a>(). This is the usual method for incorporating new .2da files into the game.
|
| param3desc
| - The row number from which to retrieve information.
|
| dcterms:subject
| |
| dbkwik:nwn2/proper...iPageUsesTemplate
| |
| returns
| |
| Name
| |
| param
| - int nRow
- string s2DA
- string sColumn
|
| param2desc
| - The name of the column that will be retrieved.
|
| param1desc
| - The name of the .2da file. It can be at most 16 characters long.
|
| dbkwik:nwn/property/wikiPageUsesTemplate
| |
| abstract
| - function Get2DAString (string s2DA, string sColumn, int nRow) Gets a value from a 2DA file on the server and returns it as a string avoid using this function in loops
* s2DA: the name of the 2da file
* sColumn: the name of the column in the 2da
* nRow: the row in the 2da * returns an empty string if file, row, or column not found
* Return type: string
* Include file: nwscriptdefn
- The Get2DAString() NWScript command retrieves information from the specified .2da file. The information is retrieved from a single cell (column within a row) as a string, which can then be used directly or converted to a number using either <a href="/mediawiki/StringToInt" title="StringToInt">StringToInt</a>() or <a href="/mediawiki/StringToFloat" title="StringToFloat">StringToFloat</a>(). This is the usual method for incorporating new .2da files into the game.
|