Regimes¶
← CHK Functions · code catalog
Friendly names for CHK category 2. Each maps to a top-level CHK code.
CheckRegimeMorale¶
CheckRegimeMorale(regimeNr: int) · chk 4
No in-game description provided; behaviour inferred from the function name.
Parameters
regimeNr(int) — RegimeNr
Example: chk(4,4)
CheckWar¶
CheckWar(regimeNr_in_Question: int, relation_with_RegimeNr: int) · chk 6
No in-game description provided; behaviour inferred from the function name.
Parameters
regimeNr_in_Question(int) — RegimeNr in Questionrelation_with_RegimeNr(int) — Relation with RegimeNr
Example: chk(6,4,4)
CheckPeace¶
CheckPeace(regimeNr_in_Question: int, relation_with_RegimeNr: int) · chk 7
No in-game description provided; behaviour inferred from the function name.
Parameters
regimeNr_in_Question(int) — RegimeNr in Questionrelation_with_RegimeNr(int) — Relation with RegimeNr
Example: chk(7,4,4)
CheckIfAI¶
CheckIfAI(regime: int) · chk 19
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime#
Example: chk(19,4)
CheckPolPts¶
CheckPolPts(regime: int) · chk 20
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime#
Example: chk(20,4)
CheckVP¶
CheckVP(regime: int) · chk 21
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime#
Example: chk(21,4)
CheckSupplyNeeded¶
CheckSupplyNeeded(regime: int) · chk 23
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime
Example: chk(23,4)
CheckActionCard¶
CheckActionCard(regime_Owner: int, card_Nr: int) · chk 27
No in-game description provided; behaviour inferred from the function name.
Parameters
regime_Owner(int) — Regime Ownercard_Nr(int) — Card Nr
Example: chk(27,4,1)
CheckDipBlock¶
CheckDipBlock(regime: int) · chk 28
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime#
Example: chk(28,4)
CheckSleep¶
CheckSleep(regime: int) · chk 29
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime#
Example: chk(29,4)
CheckHistoricActionCard¶
CheckHistoricActionCard(regime_Owner: int, card_Nr: int) · chk 30
No in-game description provided; behaviour inferred from the function name.
Parameters
regime_Owner(int) — Regime Ownercard_Nr(int) — Card Nr
Example: chk(30,4,1)
CheckRegimeKills¶
CheckRegimeKills(regime: int, sFType_1_all_1000_10XX_SFTypeGroups_0_XX: int, round_1_all_rounds: int, report_0_qty_1_power_pts: int) · chk 34
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — RegimesFType_1_all_1000_10XX_SFTypeGroups_0_XX(int) — SFType (-1=all, 1000-10XX = SFTypeGroups 0-XX)round_1_all_rounds(int) — Round (-1=all rounds)report_0_qty_1_power_pts(int) — Report 0=qty, 1=power pts
Example: chk(34,4,1,1,10)
CheckRegimeLosses¶
CheckRegimeLosses(regime: int, sFType_1_all_1000_100X_SFTypeGroups_0_XX: int, round_1_all_rounds: int, report_0_qty_1_power_pts: int) · chk 35
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — RegimesFType_1_all_1000_100X_SFTypeGroups_0_XX(int) — SFType (-1=all, 1000-100X = SFTypeGroups 0-XX)round_1_all_rounds(int) — Round (-1=all rounds)report_0_qty_1_power_pts(int) — Report 0=qty, 1=power pts
Example: chk(35,4,1,1,10)
CheckRegimeProduction¶
CheckRegimeProduction(regime: int, sFType_1_all: int, round_1_all_rounds: int, report_0_qty_1_power_pts: int) · chk 36
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — RegimesFType_1_all(int) — SFType (-1=all)round_1_all_rounds(int) — Round (-1=all rounds)report_0_qty_1_power_pts(int) — Report 0=qty, 1=power pts
Example: chk(36,4,1,1,10)
CheckAIThinkSpeed¶
CheckAIThinkSpeed(regime: int) · chk 42
Gives back the AI think speed level. 0=Normal, 100=Slow, 250=Very Slow. (in old AT this was the production bonus- if ever merge keep this in mind)
Parameters
regime(int) — Regime
Example: chk(42,4)
CheckRegimeRelation¶
CheckRegimeRelation(reg1: int, reg2: int) · chk 50
Returns 0 for war, 1 for peace, 2 for alliance
Parameters
reg1(int) — Reg1reg2(int) — Reg2
Example: chk(50,1,1)
CheckRegimeVar¶
CheckRegimeVar(regime_Nr: int, var_Nr: int) · chk 60
No in-game description provided; behaviour inferred from the function name.
Parameters
regime_Nr(int) — Regime Nrvar_Nr(int) — Var Nr
Example: chk(60,4,1)
CheckRegimeUnitsMorale¶
CheckRegimeUnitsMorale(reg: int) · chk 71
Returns the average morale of all units on map for this regime
Parameters
reg(int) — Reg
Example: chk(71,1)
CheckRegimeUnitsExperience¶
CheckRegimeUnitsExperience(reg: int) · chk 72
Returns the average experience of all units on map for this regime
Parameters
reg(int) — Reg
Example: chk(72,1)
CheckRegimePeople¶
CheckRegimePeople(regime: int) · chk 95
No in-game description provided; behaviour inferred from the function name.
Parameters
regime(int) — Regime
Example: chk(95,4)
CheckDipOffer¶
CheckDipOffer(from_Regime: int, too_Regime: int) · chk 99
No in-game description provided; behaviour inferred from the function name.
Parameters
from_Regime(int) — From Regimetoo_Regime(int) — Too Regime
Example: chk(99,4,4)
CheckNonSleepingRegimesToCome¶
CheckNonSleepingRegimesToCome() · chk 104
Returns the number of regimes that are still to be played in this round that are not put to sleep.
Example: chk(104)
CheckTotalSupplyUse¶
CheckTotalSupplyUse(regime: int) · chk 145
Returns the BasicSupplyUse of all troops on the map added up.
Parameters
regime(int) — Regime #
Example: chk(145,4)
CheckPbemPlayer¶
CheckPbemPlayer(regime: int) · chk 147
Expert use only! Returns either 1 for pbem player 1 (challenger), 2 for pbem player 2(opponent) or 0 if not set (not a started pbem++ game for example)
Parameters
regime(int) — Regime#
Example: chk(147,4)
CheckTotalActioncards¶
CheckTotalActioncards(regime: int, category_1_all: int, color_1_all: int) · chk 149
Returns the total number of action cards the regime has in hand. However if you set regime=-1 it returns the top action card slot in the actioncard list. This is usefull if your manually adding actioncards through events.
Parameters
regime(int) — Regime #category_1_all(int) — Category # (-1=all)color_1_all(int) — Color # (-1=all)
Example: chk(149,4,1,200)
CheckAICombatMod¶
CheckAICombatMod(regime: int) · chk 150
Gives back the AI combat modifier. 0=none, >0 is the percentual bonus. (This is the AI difficulty in the scenario setup screen)
Parameters
regime(int) — Regime
Example: chk(150,4)
CheckRegimeName¶
CheckRegimeName(regimeNr: int) · chk 186
No in-game description provided; behaviour inferred from the function name.
Parameters
regimeNr(int) — RegimeNr
Example: chk(186,4)
CheckActionCardPPCost¶
CheckActionCardPPCost(card_slot: int) · chk 195
Returns the PP cost of the action card specified.
Parameters
card_slot(int) — Card slot #
Example: chk(195,1)
CheckActionCardTempVar¶
CheckActionCardTempVar(card_slot: int, tempvar_0_or_1: int) · chk 197
Returns the tempvar number selected.
Parameters
card_slot(int) — Card slot #tempvar_0_or_1(int) — Tempvar 0 or 1
Example: chk(197,1,1)
CheckFirstActionCardWith¶
CheckFirstActionCardWith(regime_or_1_for_all_actioncards: int, tempvar0_or_1_if_ignore: int, tempvar1_or_1_if_ignore: int, library_name_or_empty_for_ignore: string) · chk 233
Returns the actioncard slot# of the first card in the hand of specified regime with those exact tempvar values. If not found returns -1.
Parameters
regime_or_1_for_all_actioncards(int) — Regime # (or -1 for all actioncards)tempvar0_or_1_if_ignore(int) — Tempvar0 (or -1 if ignore)tempvar1_or_1_if_ignore(int) — Tempvar1 (or -1 if ignore)library_name_or_empty_for_ignore(string) — Library name (or empty for ignore)
Example: chk(233,4,1,1,'Name')
CheckRegimeID¶
CheckRegimeID(regimeSlot: int) · chk 238
No in-game description provided; behaviour inferred from the function name.
Parameters
regimeSlot(int) — RegimeSlot#
Example: chk(238,4)
CheckRegimeSlot¶
CheckRegimeSlot(regime_ID: int) · chk 241
No in-game description provided; behaviour inferred from the function name.
Parameters
regime_ID(int) — Regime ID
Example: chk(241,4)
This doc was generated from extracting data from Shadow Empire version 1.32a on 2026-06-05 06:56 UTC.