Skip to content

Random Related

← CHK Functions · code catalog

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


CheckAreaslotWaterLevel

CheckAreaslotWaterLevel(height_Map_Areaslot: int, avg_water_points_per_hex: int)  ·  chk 216

Expects an areaslot with height values that use the same scale as the avg water points. If you would use earth heigh map in meters and specify 2000 meters of water per hex you'll get the real earth seas as a result.

Parameters

  • height_Map_Areaslot (int) — Height Map Areaslot#
  • avg_water_points_per_hex (int) — Avg water points per hex

Example: chk(216,1,10)


CheckAreaslotSpecial

CheckAreaslotSpecial(areaslot: int, specialType: int, second_Areaslot: int, second_Areaslot_Value: int)  ·  chk 217

SpecialType 1 is highest, 2 is lowest, 3 is average. You can specify -1 to not use optional second areaslot. If you do however you can limit the hexes being read to those with the specified value

Parameters

  • areaslot (int) — Areaslot#
  • specialType (int) — SpecialType
  • second_Areaslot (int) — Second Areaslot#
  • second_Areaslot_Value (int) — Second Areaslot Value

Example: chk(217,1,1,1,1)


CheckAreaCount

CheckAreaCount(areaslot: int, from: int, too: int)  ·  chk 221

Returns the number of hex equal or between FROM and TOO.

Parameters

  • areaslot (int) — Areaslot#
  • from (int) — From
  • too (int) — Too

Example: chk(221,1,1,1)


CheckLocationLISitem

CheckLocationLISitem(location_Slot: int, lIS_Item_ID: int)  ·  chk 243

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

Parameters

  • location_Slot (int) — Location Slot#
  • lIS_Item_ID (int) — LIS Item ID#

Example: chk(243,1,7)


CheckUnitLISitem

CheckUnitLISitem(unit_Slot: int, lIS_Item_ID: int)  ·  chk 244

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

Parameters

  • unit_Slot (int) — Unit Slot#
  • lIS_Item_ID (int) — LIS Item ID#

Example: chk(244,1,7)


CheckLogicString

CheckLogicString(stringlist_ID_for_Flags: int, stringlist_ID_for_Flag_Instructions: int, logic_String: string)  ·  chk 247

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

Parameters

  • stringlist_ID_for_Flags (int) — Stringlist ID for Flags
  • stringlist_ID_for_Flag_Instructions (int) — Stringlist ID for Flag Instructions
  • logic_String (string) — Logic String

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


CheckLIS

CheckLIS(loc_nr: int, to_X: int, to_Y: int)  ·  chk 248

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

Parameters

  • loc_nr (int) — Loc nr
  • to_X (int) — To X
  • to_Y (int) — To Y

Example: chk(248,1,1,1)


CheckHardcodedIF

CheckHardcodedIF(hardcoded_Number: int, story_Id: int, instance_1_Id: int, instance_2_Id: int)  ·  chk 249

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

Parameters

  • hardcoded_Number (int) — Hardcoded Number
  • story_Id (int) — Story Id
  • instance_1_Id (int) — Instance 1 Id
  • instance_2_Id (int) — Instance 2 Id

Example: chk(249,1,1,1,1)


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