Random Related¶
← EXE Functions · code catalog
Friendly names for EXE category 22. Each maps to a top-level EXE code.
SetInterfaceCue¶
SetInterfaceCue(cueTypeNumber: int) · exe 267
Cue Type 1 = Exit Random Screen, go the scn. setup screen. 2 = Refresh everything
Parameters
cueTypeNumber(int) — Cue Type Number
Example: exe(267,1)
NewMapSize¶
NewMapSize(widthInHexes: int, heightInHexes: int, maploop: bool) · exe 268
Keep in mind first hex is 0,0. specifying width=1 and height=1 will result in a grand total of (1x1) 1 hex on map. width=4 an height=4 will give you 16 hexes. etc... Make sure to use even width for mapLoop enabled maps.
Parameters
widthInHexes(int) — Width in hexesheightInHexes(int) — Height in hexesmaploop(bool) — Maploop (0=no,1=yes)
Example: exe(268,1,1,1)
CopyHexToArea¶
CopyHexToArea(fromLibraryName: string, fromHexLibvarName: string, tooAreaslot: int) · exe 269
Copies numeric values from libvar to areaslot
Parameters
fromLibraryName(string) — From Library NamefromHexLibvarName(string) — From Hex LibVar NametooAreaslot(int) — Too AreaSlot #
Example: exe(269,'Name','Name',1)
CopyAreaToHex¶
CopyAreaToHex(fromAreaslot: int, tooLibraryName: string, tooHexLibvarName: string) · exe 270
Copies numeric values from libvar to areaslot
Parameters
fromAreaslot(int) — From AreaSlot #tooLibraryName(string) — Too Library NametooHexLibvarName(string) — Too Hex LibVar Name
Example: exe(270,1,'Name','Name')
CopyAreaToArea¶
CopyAreaToArea(fromAreaslot: int, tooAreaslot: int) · exe 271
Copies numeric values from one areaslot to another areaslot
Parameters
fromAreaslot(int) — From AreaSlot #tooAreaslot(int) — Too AreaSlot #
Example: exe(271,1,1)
AreaSet¶
AreaSet(areaslot: int, newValue: int, optionalSecondAreaslot: int, secondSlotValue: int) · exe 272
Set the values of all the hexes. If -1 is specified second areaslot is not used. If second areaslot is used only hexes with specified second slot value are changed. You can of course specify the same areaslot for the second to use this exec as a replace function.
Parameters
areaslot(int) — AreaSlot#newValue(int) — New ValueoptionalSecondAreaslot(int) — Optional Second AreaSlot#secondSlotValue(int) — Second Slot Value
Example: exe(272,1,1,1,1)
AreaAdd¶
AreaAdd(areaslot: int, valueChange: int, optionalSecondAreaslot: int, secondSlotValue: int) · exe 273
Modifies the values of all the hexes. If -1 is specified second areaslot is not used. If second areaslot is used only hexes with specified second slot value are changed.
Parameters
areaslot(int) — AreaSlot#valueChange(int) — Value Change +/-optionalSecondAreaslot(int) — Optional Second AreaSlot#secondSlotValue(int) — Second Slot Value
Example: exe(273,1,1,1,1)
AreaExpand¶
AreaExpand(areaslot: int, valueIncrease: int, optionalSecondAreaslot: int, secondSlotValue: int) · exe 274
Value increase must be >0, 0 or <0. Any value in the areaslot >0 will be expand to neighbouring hexes with lower values and the new value of that hex will be old value +/- value change. Allows you to create distance maps. If -1 is specified second areaslot is not used. If second areaslot is used only hexes with specified second slot value are changed. If value change 0 is used the values are just copied into any neighbours with 0 value.
Parameters
areaslot(int) — AreaSlot#valueIncrease(int) — Value increaseoptionalSecondAreaslot(int) — Optional Second AreaSlot# (or -2 for random mode)secondSlotValue(int) — Second Slot Value (or randomness 0-100)
Example: exe(274,1,1,1,1)
AreaRangeChange¶
AreaRangeChange(areaslot: int, minimum: int, maximum: int, newValue: int) · exe 275
If value is beween min or max or equal than its changed for a new value. Ideal for creating a mask to be used as a second areaslot for another areaslot modifying exec.
Parameters
areaslot(int) — AreaSlot#minimum(int) — Minimum or equal valuemaximum(int) — Maximum or equal valuenewValue(int) — New value
Example: exe(275,1,1,1,1)
AreaToStringlist¶
AreaToStringlist(areaslot: int, stringlistId: int) · exe 276
Each UNIQUE value in the areaslots will be put in column 0 and the count of the number of hexes with that value in column 1.
Parameters
areaslot(int) — AreaSlot #stringlistId(int) — Stringlist ID#
Example: exe(276,1,1)
FindBorders¶
FindBorders(areaslot: int, valueA: int, valueB: int, borderMode: int) · exe 277
Will set all values to 0 except for some that are set to 1 and that are those that are value A with a neighbour hex with value B. Value A can be a specific value or -1 for all values. Value B the same. Even if both values are set to -1 a border will not be detected if hex value and its neighbour value are the same. Only hexes with a value higher >0 are taken into consideration. BorderMode 1 is flag both value A and value B, BorderMode 2 is just flag value A hexes.
Parameters
areaslot(int) — AreaSlot#valueA(int) — Value AvalueB(int) — Value BborderMode(int) — Border Mode
Example: exe(277,1,1,1,1)
AreaJoin¶
AreaJoin(targetAreaslot: int, sourceAreaslot: int, mode: int, percentage: int) · exe 281
Mode = 1 is copy to target if higher. Mode = 2 is make average. The source value will be modified by percentage before applying mode and the operation.
Parameters
targetAreaslot(int) — Target AreaSlot#sourceAreaslot(int) — Source AreaSlot#mode(int) — Modepercentage(int) — Percentage (100=advise)
Example: exe(281,1,1,1,50)
AreaBlur¶
AreaBlur(areaslot: int, distance: int, percentageToBlur: int, mode: int) · exe 282
Mode=1 is all blur results are accepteble. Mode=2 only higher resulting values are exceptable
Parameters
areaslot(int) — AreaSlot#distance(int) — DistancepercentageToBlur(int) — Percentage to blurmode(int) — Mode
Example: exe(282,1,1,50,1)
AreaBlur2¶
AreaBlur2(areaslot: int, percentageToBlur: int, optionalSecondAreaslot: int, valueRequiredAtMinimum: int) · exe 284
Adaption of ExecAreaBlur. Uses Distance = 1 and mode that allows only lower results. It is meant to simulate erosion on land masses.
Parameters
areaslot(int) — AreaSlot#percentageToBlur(int) — Percentage to BluroptionalSecondAreaslot(int) — Optional Second Areaslot#valueRequiredAtMinimum(int) — Value required at minimum
Example: exe(284,1,50,1,200)
AreaDivide¶
AreaDivide(areaslot: int, divideByValue: int, optionalSecondAreaslot: int, secondSlotValue: int) · exe 285
Modifies the values of all the hexes. If -1 is specified second areaslot is not used. If second areaslot is used only hexes with specified second slot value are changed.
Parameters
areaslot(int) — AreaSlot#divideByValue(int) — Divide by valueoptionalSecondAreaslot(int) — Optional Second AreaSlot#secondSlotValue(int) — Second Slot Value
Example: exe(285,1,1,1,1)
SetShrowd¶
SetShrowd(on: int) · exe 288
Switch shrowd on/off.
Parameters
on(int) — On(1)/Off(0)
Example: exe(288,1)
AreaMinMax¶
AreaMinMax(areaslot: int, minimumValue: int, maximumValue: int) · exe 289
Assures no value in area is below minimum or above maximum.
Parameters
areaslot(int) — AreaSlot#minimumValue(int) — Minimum valuemaximumValue(int) — Maximum value
Example: exe(289,1,1,1)
AreaRandomize¶
AreaRandomize(areaslot: int, maximumNegativeRandomize: int, maximumPositiveRandomize: int, onlyRandomizeValuesAbove: int) · exe 290
Changes the areaslot values based on random rolls.
Parameters
areaslot(int) — AreaSlot#maximumNegativeRandomize(int) — Maximum negative randomizemaximumPositiveRandomize(int) — Maximum positive randomizeonlyRandomizeValuesAbove(int) — Only randomize values above or equal value
Example: exe(290,1,1,1,1)
MakeErosionAndRainMap¶
MakeErosionAndRainMap(stringlistIdForPlanetaryData: int) · exe 292
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
stringlistIdForPlanetaryData(int) — Stringlist ID for Planetary Data
Example: exe(292,1)
MakeHeightMapBasedOnTectonicPlates¶
MakeHeightMapBasedOnTectonicPlates(stringlistIdForPlanetaryData: int) · exe 293
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
stringlistIdForPlanetaryData(int) — Stringlist ID for Planetary Data
Example: exe(293,1)
MakeMountainsCorrectHeight¶
MakeMountainsCorrectHeight(stringlistIdForPlanetaryData: int) · exe 294
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
stringlistIdForPlanetaryData(int) — Stringlist ID for Planetary Data
Example: exe(294,1)
MakeVegetation¶
MakeVegetation(stringlistIdForPlanetaryData: int, stringlistIdForHelperTable: int, stringlistIdForTranslationTable: int, lastCall0: bool) · exe 295
The last call sets the origLandscapes. and is the point were we should save the vegetation into them.
Parameters
stringlistIdForPlanetaryData(int) — Stringlist ID for Planetary DatastringlistIdForHelperTable(int) — Stringlist ID for Helper TablestringlistIdForTranslationTable(int) — Stringlist ID for Translation TablelastCall0(bool) — Last call 0=no, 1=yes
Example: exe(295,1,1,1,1)
MakeZones¶
MakeZones(stringlistIdForPlanetaryData: int, stringlistIdForVegetationSimilarityTable: int, libraryNameRandom: string, libraryNameData: string) · exe 296
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
stringlistIdForPlanetaryData(int) — Stringlist ID for Planetary DatastringlistIdForVegetationSimilarityTable(int) — Stringlist ID for Vegetation Similarity TablelibraryNameRandom(string) — Library name RandomlibraryNameData(string) — Library name Data
Example: exe(296,1,1,'Name','Name')
MakeBiosphereAndAtmosphere¶
MakeBiosphereAndAtmosphere(randomLibraryName: string, dataLibraryName: string) · exe 297
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library Name
Example: exe(297,'Name','Name')
MakeBiosphereDetail¶
MakeBiosphereDetail(randomLibraryName: string, dataLibraryName: string, linguisticLibraryName: string) · exe 299
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamelinguisticLibraryName(string) — Linguistic Library Name
Example: exe(299,'Name','Name','Name')
MakeBiosphereSimulation¶
MakeBiosphereSimulation(randomLibraryName: string, dataLibraryName: string, initialCall: bool, numberOfRoundsToSimulate: int) · exe 300
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NameinitialCall(bool) — Initial Call (0/1)numberOfRoundsToSimulate(int) — Number of rounds to simulate
Example: exe(300,'Name','Name',1,1)
MakeColonyLanding¶
MakeColonyLanding(randomLibraryName: string, dataLibraryName: string, linguisticsLibraryName: string) · exe 301
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamelinguisticsLibraryName(string) — Linguistics Library Name
Example: exe(301,'Name','Name','Name')
MakeColonyHistory¶
MakeColonyHistory(randomLibraryName: string, dataLibraryName: string, linguisticsLibraryName: string) · exe 302
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamelinguisticsLibraryName(string) — Linguistics Library Name
Example: exe(302,'Name','Name','Name')
MakeDissolutionHistory¶
MakeDissolutionHistory(randomLibraryName: string, dataLibraryName: string, linguisticsLibraryName: string) · exe 303
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamelinguisticsLibraryName(string) — Linguistics Library Name
Example: exe(303,'Name','Name','Name')
MakeSurvivors¶
MakeSurvivors(randomLibraryName: string, dataLibraryName: string, linguisticsLibraryName: string) · exe 304
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamelinguisticsLibraryName(string) — Linguistics Library Name
Example: exe(304,'Name','Name','Name')
MakeListForLocationRequests¶
MakeListForLocationRequests(dataLibraryName: string, zoneId: int) · exe 315
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dataLibraryName(string) — Data Library NamezoneId(int) — Zone ID or -1 for all
Example: exe(315,'Name',1)
MakeListForLocationReturns¶
MakeListForLocationReturns(dataLibraryName: string, zoneId: int) · exe 316
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dataLibraryName(string) — Data Library NamezoneId(int) — Zone ID or -1 for all
Example: exe(316,'Name',1)
MakeFreeLocationReturns¶
MakeFreeLocationReturns() · exe 317
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(317)
MakeProduction¶
MakeProduction(dataLibraryName: string, zoneId: int, freeOfCost0: bool) · exe 318
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dataLibraryName(string) — Data Library NamezoneId(int) — Zone ID or -1 for allfreeOfCost0(bool) — Free of cost 0/1
Example: exe(318,'Name',1,1)
MakeZoneEconomy¶
MakeZoneEconomy(dataLibraryName: string, zoneId: int, freeOfCost0: bool, gameSetup0: bool) · exe 319
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dataLibraryName(string) — Data Library NamezoneId(int) — Zone ID or -1 for allfreeOfCost0(bool) — Free of cost 0/1gameSetup0(bool) — Game Setup 0/1
Example: exe(319,'Name',1,1,1)
MakeAssetPresentation¶
MakeAssetPresentation(dataLibraryName: string, assetRowNumber: int, mode: int) · exe 320
This is a hardcoded random generation function. Please ask for documentation how to use if necc. Mode 0/1=normal, >1=all the ones above this count, -1=all
Parameters
dataLibraryName(string) — Data Library NameassetRowNumber(int) — Asset Row Numbermode(int) — Mode
Example: exe(320,'Name',1,1)
HardcodedScript¶
HardcodedScript(hardcodedNumber0: int, createFeedbackMessage0: bool) · exe 321
This is a hardcoded random generation function. Please ask for documentation how to use if necc. Mode 0/1=normal, >1=all the ones above this count, -1=all
Parameters
hardcodedNumber0(int) — Hardcoded Number >0createFeedbackMessage0(bool) — Create Feedback Message 0/1
Example: exe(321,1,1)
MakeUnitUpkeepCheck¶
MakeUnitUpkeepCheck(dataLibraryName: string) · exe 322
This is a hardcoded random generation function. Please ask for documentation how to use if necc. Mode 0/1=normal, >1=all the ones above this count, -1=all
Parameters
dataLibraryName(string) — Data Library Name
Example: exe(322,'Name')
MakeListForUnitRequests¶
MakeListForUnitRequests(dataLibraryName: string, historicalUnitId: int) · exe 323
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dataLibraryName(string) — Data Library NamehistoricalUnitId(int) — historical unit ID or -1 for all
Example: exe(323,'Name',1)
MakeFreeUnitSupply¶
MakeFreeUnitSupply() · exe 324
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(324)
RemoveLIS¶
RemoveLIS(locNr: int, toX: int, lisPoints: int) · exe 325
This is a hardcoded random generation function. Please ask for documentation how to use if necc. Mode 0/1=normal, >1=all the ones above this count, -1=all
Parameters
locNr(int) — Loc nrtoX(int) — To XlisPoints(int) — LIS points
Example: exe(325,1,1,10)
ResetForRandom¶
ResetForRandom(randomLibraryName: string, dataLibraryName: string, resetCode: int) · exe 326
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NameresetCode(int) — Reset Code
Example: exe(326,'Name','Name',1)
MakeCustomRandomPage¶
MakeCustomRandomPage(randomLibraryName: string, dataLibraryName: string, customPageId: int) · exe 327
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
randomLibraryName(string) — Random Library NamedataLibraryName(string) — Data Library NamecustomPageId(int) — Custom Page ID
Example: exe(327,'Name','Name',1)
MakeStoryGeneration¶
MakeStoryGeneration(mode1: int, arg: int, arg2: int) · exe 328
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
mode1(int) — Mode.. 1<=early, 2=latearg(int) —arg2(int) —
Example: exe(328,1,1,1)
HardcodedStory¶
HardcodedStory(tv0: int, tv1: int, tv2: int, tv3: int) · exe 329
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
tv0(int) — tv0tv1(int) — tv1tv2(int) — tv2 (tempvar4)tv3(int) — tv3 (tempvar5)
Example: exe(329,1,1,1,1)
SetDssDominant¶
SetDssDominant(dominantId: int) · exe 330
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
dominantId(int) — Dominant ID (or -1)
Example: exe(330,1)
HardcodedDecision¶
HardcodedDecision() · exe 331
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(331)
MakeStartOfRound¶
MakeStartOfRound() · exe 332
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(332)
MakeCloseTurn¶
MakeCloseTurn() · exe 333
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(333)
MakeStartTurn¶
MakeStartTurn() · exe 334
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(334)
CustomDataImport¶
CustomDataImport(stringlistId: int, dataImportMode: int) · exe 342
1 = Basic Story (Model Alpha).
Parameters
stringlistId(int) — Stringlist IDdataImportMode(int) — Data Import Mode
Example: exe(342,1,1)
SetLogic¶
SetLogic(flagStringlistId: int, flagInstructionsStringlistId: int, logicString: string) · exe 343
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
flagStringlistId(int) — Flag Stringlist IDflagInstructionsStringlistId(int) — Flag Instructions Stringlist IDlogicString(string) — Logic String
Example: exe(343,1,1,'Text')
SetWholeLIS¶
SetWholeLIS() · exe 344
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(344)
MakeLateStartTurn¶
MakeLateStartTurn() · exe 345
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(345)
HardcodedSet¶
HardcodedSet(type: int, custom1: int, custom2: int, custom3: int) · exe 346
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
type(int) — typecustom1(int) — custom 1custom2(int) — custom 2custom3(int) — custom 3
Example: exe(346,1,1,1,1)
MakeEarlyCinematics¶
MakeEarlyCinematics() · exe 347
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(347)
MakeLoadGameEarly¶
MakeLoadGameEarly() · exe 348
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Example: exe(348)
SuperImposeMessage¶
SuperImposeMessage(textHeading: string, textSmall: string) · exe 349
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
textHeading(string) — text HeadingtextSmall(string) — text Small
Example: exe(349,'Text','Text')
MakeHardcodedSFTypeMods¶
MakeHardcodedSFTypeMods(sftypeSlot: int) · exe 352
This is a hardcoded random generation function. Please ask for documentation how to use if necc.
Parameters
sftypeSlot(int) — SFType Slot#
Example: exe(352,1)
UdsFileOps¶
UdsFileOps(arg1: int, filename: string) · exe 357
Saves the UDS keys. Loads the keys in TempUDS
Parameters
arg1(int) — 1=Save, 2=Loadfilename(string) — Filename
Example: exe(357,1,'Name')
InitialDataCloneMoment¶
InitialDataCloneMoment(mode: int) · exe 361
No in-game description provided; behaviour inferred from the function name.
Parameters
mode(int) — Mode
Example: exe(361,1)
This doc was generated from extracting data from Shadow Empire version 1.32a on 2026-06-05 06:56 UTC.