Skip to content

Stringlists

← EXE Functions · code catalog

Friendly names for EXE category 16. Each maps to a top-level EXE code.


SetStringList

SetStringList(stringlistId: int, row: int, col: int, newValue: string)  ·  exe 116

No in-game description provided; behaviour inferred from the function name.

Parameters

  • stringlistId (int) — Stringlist ID #
  • row (int) — Row
  • col (int) — Col
  • newValue (string) — New Value

Example: exe(116,1,1,1,'Text')


AddStringList

AddStringList(rows: int, cols: int)  ·  exe 125

Adds a whole new stringlist object to the game data. Use the CheckStringListLastID to get its ID, which you need to change or read anything from it.

Parameters

  • rows (int) — Rows
  • cols (int) — Cols

Example: exe(125,1,1)


AddStringListCells

AddStringListCells(stringlistId: int, extraRows: int, extraCols: int)  ·  exe 126

If you specify 0 will NOT add anything. specify 1 for adding one row or col. You can add rows and cols at the same time. Rows are added at the bottom, Cols on the right.

Parameters

  • stringlistId (int) — StringList ID
  • extraRows (int) — Extra Rows
  • extraCols (int) — Extra Cols

Example: exe(126,1,1,1)


RemoveStringListRow

RemoveStringListRow(stringlistId: int, rowNumber: int)  ·  exe 127

No in-game description provided; behaviour inferred from the function name.

Parameters

  • stringlistId (int) — StringList ID
  • rowNumber (int) — Row Number

Example: exe(127,1,1)


RemoveStringListCol

RemoveStringListCol(stringlistId: int, colNumber: int)  ·  exe 128

No in-game description provided; behaviour inferred from the function name.

Parameters

  • stringlistId (int) — StringList ID
  • colNumber (int) — Col Number

Example: exe(128,1,1)


SortStringListID

SortStringListID(stringlistid: int, columnToSortOn: int, arg0: int)  ·  exe 179

Remember first column is column 0. ASCENDING: highest at top. DESCENDING: lowest at top.

Parameters

  • stringlistid (int) — StringListID#
  • columnToSortOn (int) — Column# to sort on
  • arg0 (int) — 0=asc, 1=desc

Example: exe(179,1,1,1)


ClearStringList

ClearStringList(stringlistId: int)  ·  exe 212

Delets all rows of this stringlist.

Parameters

  • stringlistId (int) — Stringlist ID #

Example: exe(212,1)


ExportStringlist

ExportStringlist(stringlistid: int, filename: string)  ·  exe 260

Will save the stringlist data inside specified filename. File contents will be completely overwritten. Please supply a file extenstion like .txt in the name. Will be saved in the 'metadata' directory.

Parameters

  • stringlistid (int) — StringListID#
  • filename (string) — Filename

Example: exe(260,1,'Name')


Metrics

Metrics(customString: string, customString2: string, customString3: string, customString4: string)  ·  exe 261

Will use the URL in 2nd string of the metrics.txt to pass on this data.

Parameters

  • customString (string) — Custom string/numeric data 1
  • customString2 (string) — Custom string/numeric data 2
  • customString3 (string) — Custom string/numeric data 3
  • customString4 (string) — Custom string/numeric data 4

Example: exe(261,'Text','Text','Text','Text')


Key

Key(stringlistid: int, keyName: string, newValue: string)  ·  exe 262

Presumes a stringlist with in column 0 the key names and in column 1 the text values.

Parameters

  • stringlistid (int) — StringListID#
  • keyName (string) — Key Name
  • newValue (string) — New Value

Example: exe(262,1,'Name','Text')


KeyAdd

KeyAdd(stringlistid: int, keyName: string, valueToBeAppendedAtEndOfString: string)  ·  exe 263

Presumes a stringlist with in column 0 the key names and in column 1 the text values. Data is treated as STRINGS!!

Parameters

  • stringlistid (int) — StringListID#
  • keyName (string) — Key Name
  • valueToBeAppendedAtEndOfString (string) — Value to be appended at end of string

Example: exe(263,1,'Name','Text')


KeyAddNumeric

KeyAddNumeric(stringlistid: int, keyName: string, valueToBeAppendedAtEndOfString: string)  ·  exe 265

Presumes a stringlist with in column 0 the key names and in column 1 the text values. Data is treated as NUMERIC.

Parameters

  • stringlistid (int) — StringListID#
  • keyName (string) — Key Name
  • valueToBeAppendedAtEndOfString (string) — Value to be appended at end of string

Example: exe(265,1,'Name','Text')


SetStringListQuick

SetStringListQuick(stringlistId: int, rowsWhereCol0Is: string, col: int, newValue: string)  ·  exe 280

This Quick version of ExecSetStringList allows you to operate quickly if the col0 of the stringlist are ID numbers. Avoids you from having to loop through the whole thing.

Parameters

  • stringlistId (int) — Stringlist ID #
  • rowsWhereCol0Is (string) — Rows where Col0 is..
  • col (int) — Col
  • newValue (string) — New Value

Example: exe(280,1,'Text',1,'Text')


SetStringPart

SetStringPart(tempstring: int, part: int, string: string)  ·  exe 286

Sets specified part to the string/value specified.

Parameters

  • tempstring (int) — Tempstring #
  • part (int) — Part #
  • string (string) — String/Value

Example: exe(286,1,1,'Text')


StringPartAdd

StringPartAdd(tempstring: int, string: string)  ·  exe 287

Adds a new subpart with string/value specified at the end of the tempstring#.

Parameters

  • tempstring (int) — Tempstring #
  • string (string) — String/Value

Example: exe(287,1,'Text')


CopyStringlist

CopyStringlist(fromId: int, tooId: int, numberOfColumns: int, mode1: int)  ·  exe 298

No in-game description provided; behaviour inferred from the function name.

Parameters

  • fromId (int) — From ID
  • tooId (int) — Too ID
  • numberOfColumns (int) — Number of columns
  • mode1 (int) — Mode 1=clear&copy, 2=add. columns can be set to 99 or something very high to include all

Example: exe(298,1,1,1,1)


DoubleKey

DoubleKey(stringlistid: int, col0Value: int, keyName: string, newValue: string)  ·  exe 310

Presumes a stringlist with in column 1 the key names and in column 2 the text values.

Parameters

  • stringlistid (int) — StringListID#
  • col0Value (int) — Col0 value
  • keyName (string) — Key Name
  • newValue (string) — New Value

Example: exe(310,1,1,'Name','Text')


DoubleKeyAppend

DoubleKeyAppend(stringlistid: int, col0Value: int, keyName: string, valueToAppend: string)  ·  exe 311

Presumes a stringlist with in column 1 the key names and in column 2 the text values.

Parameters

  • stringlistid (int) — StringListID#
  • col0Value (int) — Col0 value
  • keyName (string) — Key Name
  • valueToAppend (string) — Value to append

Example: exe(311,1,1,'Name','Text')


This doc was generated from extracting data from Shadow Empire version 1.32a on 2026-06-05 06:56 UTC.