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 StringToInt()
or StringToFloat()
. This is the usual method for incorporating new .2da files into the game.
Definition[]
string Get2DAString (string s2DA, string sColumn
,
int nRow
)
string s2DA
- The name of the .2da file. It can be at most 16 characters long.
string sColumn
- The name of the column that will be retrieved.
int nRow
- The row number from which to retrieve information.
The empty string ("") will be returned if the file, column, or row is not found.