Game & Map globals¶
← CHK Functions · code catalog
Friendly names for CHK category 1. Each maps to a top-level CHK code.
CheckTurn¶
CheckTurn() · chk 1
No in-game description provided; behaviour inferred from the function name.
Example: chk(1)
CheckRound¶
CheckRound() · chk 3
No in-game description provided; behaviour inferred from the function name.
Example: chk(3)
CheckWinner¶
CheckWinner() · chk 5
No in-game description provided; behaviour inferred from the function name.
Example: chk(5)
CheckMapWidth¶
CheckMapWidth() · chk 14
No in-game description provided; behaviour inferred from the function name.
Example: chk(14)
CheckMapHeight¶
CheckMapHeight() · chk 15
No in-game description provided; behaviour inferred from the function name.
Example: chk(15)
CheckYear¶
CheckYear() · chk 16
No in-game description provided; behaviour inferred from the function name.
Example: chk(16)
CheckMonth¶
CheckMonth() · chk 17
No in-game description provided; behaviour inferred from the function name.
Example: chk(17)
CheckDay¶
CheckDay() · chk 18
No in-game description provided; behaviour inferred from the function name.
Example: chk(18)
CheckRegimeCount¶
CheckRegimeCount() · chk 37
No in-game description provided; behaviour inferred from the function name.
Example: chk(37)
CheckDrawGame¶
CheckDrawGame() · chk 148
Returns 0 if not. Returns 1 if this is a draw game.
Example: chk(148)
CheckRuleVar¶
CheckRuleVar(ruleVar: int, mulitply_by_100_0_no_1_yes: bool) · chk 152
Multiply option is there because some rulevar have single values like 0.4 or 0.03. And the scripting sytem can only handle integers.
Parameters
ruleVar(int) — RuleVar#mulitply_by_100_0_no_1_yes(bool) — Mulitply by 100? 0=no 1=yes
Example: chk(152,1,1)
CheckFOW¶
CheckFOW() · chk 192
Returns 1 if fow is on. 0 if off.
Example: chk(192)
This doc was generated from extracting data from Shadow Empire version 1.32a on 2026-06-05 06:56 UTC.