Skip to content

Library Execs

← EXE Functions · code catalog

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


CallFunctionByLibrary

CallFunctionByLibrary(nameOfLibrary: string, nameOfFunctionToCall: string)  ·  exe 233

Same as CallFunction, but only looks in specific library. This is to avoid double name issues.

Parameters

  • nameOfLibrary (string) — Name of library
  • nameOfFunctionToCall (string) — Name of function to call

Example: exe(233,'Name','Name')


SetGlobalLibVar

SetGlobalLibVar(nameOfLibrary: string, nameOfLibvar: string, newValue: string)  ·  exe 237

Allows you to set a global text value-type libvar. This basically gives you unlimited alternative to gameslots that are excellent for modular design.

Parameters

  • nameOfLibrary (string) — Name of library
  • nameOfLibvar (string) — Name of libvar
  • newValue (string) — New value

Example: exe(237,'Name','Name','Text')


SetHexLibVar

SetHexLibVar(nameOfLibrary: string, nameOfLibvar: string, newValue: int)  ·  exe 238

Uses ExecSetCardXY in the line before this call for specifiying the hex this operation is done on. You can only set numeric values to the map. This gives you basically unlimited data slots on map hexes.

Parameters

  • nameOfLibrary (string) — Name of library
  • nameOfLibvar (string) — Name of libvar
  • newValue (int) — New value

Example: exe(238,'Name','Name',1)


SetHistoricalLibVar

SetHistoricalLibVar(nameOfLibrary: string, slotOfHistoricalUnit: int, nameOfLibvar: string, newValue: string)  ·  exe 242

Set a historical unit LibVar. Keep in mind its NOT! the ID asked but the slot number in the array of historical units. You can use this to change the LibVar of a historical unit or historical model. Since both use historical units data structure behind the scenes.

Parameters

  • nameOfLibrary (string) — Name of library
  • slotOfHistoricalUnit (int) — Slot# of historical unit
  • nameOfLibvar (string) — Name of libvar
  • newValue (string) — New value

Example: exe(242,'Name',1,'Name','Text')


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