Home › Lua API › Territories

Available out of the box. Usable from Lua in the unmodified game.

Territories

5 methods. Symbol/current columns are function addresses (RVA) of the native wrapper.

Community reference for this object: Territories (Sukrit Tan, external).

Signatures are recovered from the game code. ⚠ = partly understood (arguments may be missing or approximate). ? after a name = optional argument. Types: integer/number are Lua numbers, enum-typed arguments show the C++ type in brackets. Two signatures mean the method is registered separately for the UI and the gameplay state and each wrapper was decoded on its own. "same code as" in the Symbol column means the compiler merged identical functions: those methods share one wrapper and cannot be told apart by address.

Method Signature Where Reference Symbol Current
GetCount Territories.GetCount() → number gameplay yes ↗ 0x232d0 0x237c0
GetTerritory Territories.GetTerritory(arg1?: number) → MapTerritory (or nothing) gameplay yes ↗ 0x23310 0x23800
GetTerritoryAt Territories.GetTerritoryAt(x: integer/Plot, y?: integer) → MapTerritory (or nothing) gameplay yes ↗ 0x23380 0x23870
Members Territories.Members() → function gameplay yes ↗ 0x233e0 0x238d0
MembersAux Territories.MembersAux() → number, MapTerritory (or nothing) gameplay yes ↗ 0x23410 0x23900