Home › Lua API › GameGreatPeople

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

GameGreatPeople

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

Community reference for this object: GameGreatPeople (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
CanPatronizePerson GameGreatPeople:CanPatronizePerson(ePlayer?: integer[PlayerTypes], eIndividual?: integer[GreatPersonIndividualTypes], eYield?: integer[YieldTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).; eYield — Index of a row of the Yields table (the value of GameInfo.Yields[...].Index).
ui-cache, gameplay yes ↗ 0x69d650 —
CanRecruitPerson GameGreatPeople:CanRecruitPerson(ePlayer: integer[PlayerTypes], eIndividual: integer[GreatPersonIndividualTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).
ui-cache, gameplay yes ↗ 0x69d660 0x69dc30
CanRejectPerson GameGreatPeople:CanRejectPerson(ePlayer: integer[PlayerTypes], eIndividual: integer[GreatPersonIndividualTypes]) → boolean
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).
ui-cache, gameplay yes ↗ 0x69d6e0 0x69dcb0
CountPeopleReceivedByPlayer GameGreatPeople:CountPeopleReceivedByPlayer(arg1?: number, arg2?: number) → number
args: arg2 — Id of a player. (inferred)
ui-cache yes ↗ 0x69d760 0x69dd30
CreatePerson GameGreatPeople:CreatePerson(arg1?: number, eIndividual: number/string[GreatPersonIndividualTypes], x: integer/Plot, y?: integer) (or nothing)
args: arg1 — Id of a player. (inferred); eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).; x — Plot x coordinate (plot:GetX()). (inferred); y — Plot y coordinate (plot:GetY()). (inferred)
gameplay yes ↗ 0x6df510 0x6dfc40
GetEarnConditionsText GameGreatPeople:GetEarnConditionsText(ePlayer?: number, eIndividual?: number) → string
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache yes ↗ 0x69d820 0x69ddf0
GetPastTimeline GameGreatPeople:GetPastTimeline() → 1 values ⚠ ui-cache yes ↗ 0x69d900 0x69ded0
GetPatronizeCost GameGreatPeople:GetPatronizeCost(ePlayer?: integer[PlayerTypes], eIndividual?: integer[GreatPersonIndividualTypes], eYield?: integer[YieldTypes]) → integer
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).; eYield — Index of a row of the Yields table (the value of GameInfo.Yields[...].Index).
ui-cache, gameplay yes ↗ 0x69d9d0 —
GetRecruitCost GameGreatPeople:GetRecruitCost(ePlayer: integer[PlayerTypes], eIndividual: integer[GreatPersonIndividualTypes]) → number
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).
ui-cache, gameplay yes ↗ 0x69d9e0 0x69dfb0
GetRejectCost GameGreatPeople:GetRejectCost(ePlayer: integer[PlayerTypes], eIndividual: integer[GreatPersonIndividualTypes]) → number
args: ePlayer — Id of a player (as in Players[id]).; eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).
ui-cache, gameplay yes ↗ 0x69da60 0x69e030
GetTimeline UI state: GameGreatPeople:GetTimeline() → 1 values ⚠
gameplay state: GameGreatPeople:GetTimeline() → table{Individual: number, Class: number, Era: number, Cost: number, Claimant: number}[]
ui-cache, gameplay yes ↗ 0x69dae0 0x69e0b0
GrantPerson GameGreatPeople:GrantPerson(arg1: number/string, arg2: number/string, arg3: number/string, arg4?: number, arg5?: number) (or nothing) gameplay yes ↗ 0x6dfa40 0x6e0170
IsClassAvailable GameGreatPeople:IsClassAvailable(eClass: integer[GreatPersonClassTypes]) → boolean
args: eClass — Index of a row of the GreatPersonClasses table (the value of GameInfo.GreatPersonClasses[...].Index).
gameplay yes ↗ 0x6dfb90 0x6e02c0
RecruitPerson GameGreatPeople:RecruitPerson(ePlayer?: number, eIndividual: number/string[GreatPersonIndividualTypes]) (or nothing)
args: eIndividual — Index of a row of the GreatPersonIndividuals table (the value of GameInfo.GreatPersonIndividuals[...].Index).
gameplay yes ↗ 0x6dfbf0 0x6e0320