Skip to content

2DA

Working with 2DAs.

GET_2DA_INDEX patch

Returns associative arrays containing current 2DA row and column names, for usage in SET_2DA_ENTRY_LATER:

COPY_EXISTING ~clsrcreq.2da~ override
  LPF GET_2DA_INDEX RET_ARRAY row_index col_index END
  SET_2DA_ENTRY_LATER new_rows $row_index(CLERIC_MAGE) $col_index(ELF) 1
ReturnDescriptionType
col_indexcolumn name => indexmap
row_indexrow name => indexmap