Skip to content

Stringlist

← CHK Functions · code catalog

Friendly names for CHK category 6. Each maps to a top-level CHK code.


CheckStringList

CheckStringList(stringlist_ID: int, row: int, col: int)  ·  chk 58

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

Parameters

  • stringlist_ID (int) — Stringlist ID
  • row (int) — Row
  • col (int) — Col

Example: chk(58,1,1,1)


CheckStringReplace

CheckStringReplace(from_String: string, which_substring: string, replace_with_what: string)  ·  chk 59

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

Parameters

  • from_String (string) — From String
  • which_substring (string) — Which substring
  • replace_with_what (string) — Replace with what

Example: chk(59,'Text','Text','Text')


CheckStringListRows

CheckStringListRows(stringList_ID: int)  ·  chk 64

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

Parameters

  • stringList_ID (int) — StringList ID

Example: chk(64,1)


CheckStringListCols

CheckStringListCols(stringList_ID: int)  ·  chk 65

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

Parameters

  • stringList_ID (int) — StringList ID

Example: chk(65,1)


CheckStringListLastID

CheckStringListLastID()  ·  chk 66

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

Example: chk(66)


CheckRandomRowStringList

CheckRandomRowStringList(stringlist_ID: int, col_used_as_weight_1_none: int)  ·  chk 131

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

Parameters

  • stringlist_ID (int) — Stringlist ID
  • col_used_as_weight_1_none (int) — Col used as weight (-1=none)

Example: chk(131,1,1)


CheckFindInStringList

CheckFindInStringList(stringlist_ID: int, in_Col: int, find_Value: string)  ·  chk 132

Returns row# where value is found or -1 if not.

Parameters

  • stringlist_ID (int) — Stringlist ID
  • in_Col (int) — In Col
  • find_Value (string) — Find Value

Example: chk(132,1,1,'Text')


CheckRandomRowStringList2

CheckRandomRowStringList2(stringlist_ID: int, col_used_as_weight_1_none: int, col_used_as_block_1_none: int)  ·  chk 206

Concerning the block column. <= 0 will be considered NOT blocked. >= 1 will be considered blocked. Returns -1 if no suitable row found.

Parameters

  • stringlist_ID (int) — Stringlist ID
  • col_used_as_weight_1_none (int) — Col used as weight (-1=none)
  • col_used_as_block_1_none (int) — Col used as block (-1=none)

Example: chk(206,1,1,1)


CheckImportStringList

CheckImportStringList(stringlist_ID: int, filename: string)  ·  chk 210

Will replace said stringlist with the contents of the filename. This will be a full replacement and nothing of old contents will remain. Directory used is the 'metadata' directory. Please include a file extension in the filename like .txt. Returns 1 on succes. Returns -1 on file not found. Returns -2 on data corruption of file.

Parameters

  • stringlist_ID (int) — Stringlist ID
  • filename (string) — Filename

Example: chk(210,1,'Name')


CheckKey

CheckKey(stringlist_ID: int, key_name: string)  ·  chk 213

Presumes key names in column 0 and values in column 1

Parameters

  • stringlist_ID (int) — Stringlist ID
  • key_name (string) — Key name

Example: chk(213,1,'Name')


CheckStringListQuick

CheckStringListQuick(stringlist_ID: int, row_where_col0_has_value: string, col: int)  ·  chk 220

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

Parameters

  • stringlist_ID (int) — Stringlist ID
  • row_where_col0_has_value (string) — Row where col0 has value..
  • col (int) — Col

Example: chk(220,1,'Text',1)


CheckKeyExists

CheckKeyExists(stringlist_ID: int, key_name: string)  ·  chk 229

If key exists returns 1 otherwise 0

Parameters

  • stringlist_ID (int) — Stringlist ID
  • key_name (string) — Key name

Example: chk(229,1,'Name')


CheckStringListTotal

CheckStringListTotal(stringlist_ID: int, col: int, must_have_value: int, add_up_values_in_col2: int)  ·  chk 237

If you put -1 for Col# than all values will be added up.

Parameters

  • stringlist_ID (int) — Stringlist ID
  • col (int) — Col#
  • must_have_value (int) — Must have value
  • add_up_values_in_col2 (int) — Add up values in col2#

Example: chk(237,1,1,1,1)


CheckFindInStringList2

CheckFindInStringList2(stringlist_ID: int, in_Col: int, find_Value: string, col_must_have_value_0: int)  ·  chk 242

Returns row# where value is found or -1 if not.

Parameters

  • stringlist_ID (int) — Stringlist ID
  • in_Col (int) — In Col
  • find_Value (string) — Find Value
  • col_must_have_value_0 (int) — Col # must have value >0

Example: chk(242,1,1,'Text',1)


CheckDoubleKey

CheckDoubleKey(stringlist_ID: int, col_0_value: int, col_1_Key_name: string)  ·  chk 245

Presumes an ID value in col 0 and key names in column 1 and values to look up in column 2

Parameters

  • stringlist_ID (int) — Stringlist ID
  • col_0_value (int) — Col 0 value
  • col_1_Key_name (string) — Col 1 Key name

Example: chk(245,1,1,'Name')


CheckDoubleKeyExists

CheckDoubleKeyExists(stringlist_ID: int, col_0_value: int, col_1_Key_name: string)  ·  chk 246

If key exists returns 1 otherwise 0

Parameters

  • stringlist_ID (int) — Stringlist ID
  • col_0_value (int) — Col 0 value
  • col_1_Key_name (string) — Col 1 Key name

Example: chk(246,1,1,'Name')


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