Home › Lua API › AiGrandStrategic

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

AiGrandStrategic

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

Community reference for this object: AiGrandStrategic (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
GetCivicsRecommendations AiGrandStrategic:GetCivicsRecommendations() → table{CivicHash: number, CivicScore: number}[]
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x685320 0x685900
GetSettlementRecommendations AiGrandStrategic:GetSettlementRecommendations(arg1?: integer) → string
args: arg1 — A count or amount (named count / num / amount in the scripts). (inferred)
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6854e0 0x685ac0
GetTechRecommendations AiGrandStrategic:GetTechRecommendations() → table{TechHash: number, TechScore: number}[]
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6858a0 0x685e80