Skip to content

Regimes, People, Research

← EXE Functions · code catalog

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


GiveRegimePP

GiveRegimePP(regimenr: int, pp: int)  ·  exe 1

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

Parameters

  • regimenr (int) — RegimeNr
  • pp (int) — PP

Example: exe(1,4,1)


ChangeDip

⚠️ Deprecated / obsolete. Prefer ChangeRelation instead.

ChangeDip(regimenr1: int, regimenr2: int)  ·  exe 3

Reverses the diplomatic relation from war to peace. Or from peace to war. Use a check to see current relation. IS DEPRECIATED. USE EXECCHANGERELATION INSTEAD.

Parameters

  • regimenr1 (int) — RegimeNr1
  • regimenr2 (int) — RegimeNr2

Example: exe(3,4,4)


AddRegimeMorale

AddRegimeMorale(regimenr: int, mutation: int)  ·  exe 5

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

Parameters

  • regimenr (int) — RegimeNr
  • mutation (int) — Mutation +/- pts

Example: exe(5,4,10)


SetSleep

SetSleep(regime: int, sleep: bool)  ·  exe 8

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

Parameters

  • regime (int) — Regime#
  • sleep (bool) — Sleep=1, Awake=0

Example: exe(8,4,1)


JoinRegime

JoinRegime(losingRegime: int, addedToRegime: int, includingUnits1: bool)  ·  exe 9

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

Parameters

  • losingRegime (int) — Losing Regime#
  • addedToRegime (int) — Added to Regime#
  • includingUnits1 (bool) — Including Units 1=yes,0=no

Example: exe(9,4,4,1)


ChangeRegimeName

ChangeRegimeName(regime: int, text: string)  ·  exe 13

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

Parameters

  • regime (int) — Regime#
  • text (string) — Text / DataString payload

The trailing text argument is sent as the SET-logic DataString (the final inline slot).

Example: exe(13,4,'Example Text')


ChangeDipBlock

ChangeDipBlock(regime: int)  ·  exe 16

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

Parameters

  • regime (int) — Regime#

Example: exe(16,4)


ChangePeopleCombatMod

ChangePeopleCombatMod(people: int, peoplegroupowner: int, newCombatModIn: int)  ·  exe 21

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

Parameters

  • people (int) — People#
  • peoplegroupowner (int) — PeopleGroupOwner#
  • newCombatModIn (int) — New Combat Mod in %

Example: exe(21,2,2,50)


SetBaseMorale

SetBaseMorale(regnr: int, basemorale: int)  ·  exe 42

Not only sets base morale of regime, but also of unterregimes to the same as well as reducing all morale of all units with the same percentual ammount as the basemorale lost.

Parameters

  • regnr (int) — Regnr
  • basemorale (int) — Basemorale

Example: exe(42,1,10)


ChangePeopleCombatModVS

ChangePeopleCombatModVS(people: int, versusPeoplegroupowner: int, newCombatModIn: int)  ·  exe 56

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

Parameters

  • people (int) — People#
  • versusPeoplegroupowner (int) — Versus PeopleGroupOwner#
  • newCombatModIn (int) — New Combat Mod in %

Example: exe(56,2,2,50)


GetReconFrom

GetReconFrom(fromRegime: int)  ·  exe 79

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

Parameters

  • fromRegime (int) — From Regime#

Example: exe(79,4)


ChangeRelation

ChangeRelation(regimenr1: int, regimenr2: int, diplomaticRelation: int, hideMessage: bool)  ·  exe 105

Sets the relation between regime 1 and 2 to relation 0-2. 0=war, 1=peace, 2=allied.

Parameters

  • regimenr1 (int) — RegimeNr1
  • regimenr2 (int) — RegimeNr2
  • diplomaticRelation (int) — Diplomatic Relation #
  • hideMessage (bool) — Hide Message (1=yes hide)

Example: exe(105,4,4,1,1)


AddRegime

AddRegime(copyFrom: int, setUberregime: int, text: string)  ·  exe 106

EXPERT USE ONLY!!!. Only use before start of game. Adds a regime and copies all settings from specified reigme. You can also set name of new regime. You can also set an uberregime here. Automaticly will ally with uberregime.

Parameters

  • copyFrom (int) — Copy From
  • setUberregime (int) — Set Uberregime
  • text (string) — Text / DataString payload

The trailing text argument is sent as the SET-logic DataString (the final inline slot).

Example: exe(106,1,4,'Example Text')


RemoveRegime

RemoveRegime(regimenr: int, addStuffTooRegimernr: int, text: string)  ·  exe 107

EXPERT USE ONLY!!!. Only use before start of game. You can set RegimeNr to -1 and then the exec will try to find a regime with the specified name to delete.

Parameters

  • regimenr (int) — RegimeNr
  • addStuffTooRegimernr (int) — Add stuff too RegimerNr
  • text (string) — Text / DataString payload

The trailing text argument is sent as the SET-logic DataString (the final inline slot).

Example: exe(107,4,4,'Example Text')


AddOOB

AddOOB(regime: int, historicalUnit: int)  ·  exe 108

Sets the historical unit to the regime and also everything in the OOB of the selected historical unit.

Parameters

  • regime (int) — Regime
  • historicalUnit (int) — Historical Unit

Example: exe(108,4,1)


SetRegimeColor

SetRegimeColor(regime: int, red: int, green: int, blue: int, text: string)  ·  exe 109

Sets the color of the regime. And you can overwrite the Name if you want too. Leave string blank to keep name.

Parameters

  • regime (int) — Regime
  • red (int) — Red (0-255)
  • green (int) — Green (0-255)
  • blue (int) — Blue (0-255)
  • text (string) — Text / DataString payload

The trailing text argument is sent as the SET-logic DataString (the final inline slot).

Example: exe(109,4,200,100,50,'Example Text')


MoveRegimeUp

MoveRegimeUp(regnr: int, text: string)  ·  exe 117

EXPERT USE ONLY!!!. You can overrule with using name and setting Regnr=-1. Moves this regime to the end of the list of regimes. Do only use in editor or startup screen for it might screw up things if used in game.

Parameters

  • regnr (int) — RegNr
  • text (string) — Text / DataString payload

The trailing text argument is sent as the SET-logic DataString (the final inline slot).

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


SetRecon

SetRecon(x: int, y: int, regnr: int, pts: int)  ·  exe 118

Sets recon for this regime only on this hex only.

Parameters

  • x (int) — X
  • y (int) — Y
  • regnr (int) — RegNr
  • pts (int) — Pts

Example: exe(118,12,8,1,10)


SetUberRegime

SetUberRegime(forregime: int, uberregime: int)  ·  exe 147

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

Parameters

  • forregime (int) — ForRegime
  • uberregime (int) — UberRegime (-1=none)

Example: exe(147,4,4)


SetRegimePeople

SetRegimePeople(regime: int, people: int, officerpool: int)  ·  exe 171

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

Parameters

  • regime (int) — Regime#
  • people (int) — People # (or -1=to leave as is)
  • officerpool (int) — officerpool # (or-1=to leave as is)

Example: exe(171,4,2,1)


ChangeDipOffer

ChangeDipOffer(regimenr1: int, regimenr2: int, diplomaticOffer: int)  ·  exe 194

Does not give message. You have to that manually. Sets the offer mode to either 0= cancel offer or 1=give offer

Parameters

  • regimenr1 (int) — RegimeNr1
  • regimenr2 (int) — RegimeNr2
  • diplomaticOffer (int) — Diplomatic Offer # (0=none or 1=offer)

Example: exe(194,4,4,1)


SetReconUnit

SetReconUnit(x: int, y: int, regnr: int, reconPoints: int)  ·  exe 207

Sets recon for this regime only on this hex and all its neighbours up to range. Uses the ammount of recon points the specified unit# has.

Parameters

  • x (int) — X
  • y (int) — Y
  • regnr (int) — RegNr
  • reconPoints (int) — Recon points

Example: exe(207,12,8,1,10)


SetPeopleMorale

SetPeopleMorale(people: int, underPeopleGroup: int, newMorale: int, resetAllTroops0: bool)  ·  exe 213

Reset=1 sets all morale to regime base morale * people morale as if in start of scenario.

Parameters

  • people (int) — People #
  • underPeopleGroup (int) — Under People Group#
  • newMorale (int) — New Morale
  • resetAllTroops0 (bool) — Reset all troops 0=no,1=yes

Example: exe(213,2,2,10,1)


SetPbemPlayer

SetPbemPlayer(regime: int, pbemPlayerNumber: int)  ·  exe 219

Expert use only!. You can switch PBEM++ player here. only set to 1=player 1(challenger) or 2=player 2(opponent).

Parameters

  • regime (int) — Regime #
  • pbemPlayerNumber (int) — PBEM++ Player number #

Example: exe(219,4,1)


SetDrawGame

SetDrawGame()  ·  exe 220

When this is set the game will be considered game over by the PBEM++ server and a draw game at it. Same for non PBEM++ games by the way.

Example: exe(220)


SetRegimeFerryEff

SetRegimeFerryEff(regimeNr: int, ferryEff: int)  ·  exe 232

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

Parameters

  • regimeNr (int) — Regime nr
  • ferryEff (int) — Ferry eff (0=none, 100=full)

Example: exe(232,4,1)


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