Home › Lua API › GameReligion

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

GameReligion

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

Community reference for this object: GameReligion (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
AddBelief GameReligion:AddBelief(ePlayer: integer[PlayerTypes], eBelief: integer[BeliefTypes]) (or nothing)
args: ePlayer — Id of a player (as in Players[id]).; eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index). The scripts pass its index.
gameplay yes ↗ 0x6e0530 0x6e0c60
AddBeliefHash GameReligion:AddBeliefHash(ePlayer?: number, eBelief?: number) (or nothing)
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred); eBelief — Hash of a row of the Beliefs table (the scripts pass GameInfo.Beliefs[...].Hash).
gameplay yes ↗ 0x6e0590 0x6e0cc0
AddBuilding GameReligion:AddBuilding(eReligion: integer[ReligionTypes], eBuilding: integer[BuildingTypes]) (or nothing)
args: eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).; eBuilding — Index of a row of the Buildings table (the value of GameInfo.Buildings[...].Index).
gameplay yes ↗ 0x6e0640 0x6e0d70
FoundPantheon GameReligion:FoundPantheon(ePlayer: integer[PlayerTypes], eBelief: integer[BeliefTypes]) (or nothing)
args: ePlayer — Id of a player (as in Players[id]).; eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index). The scripts pass its index.
gameplay yes ↗ 0x6e06a0 0x6e0dd0
FoundPantheonHash GameReligion:FoundPantheonHash(ePlayer?: number, eBelief?: number) (or nothing)
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred); eBelief — Hash of a row of the Beliefs table (the scripts pass GameInfo.Beliefs[...].Hash).
gameplay yes ↗ 0x6e0700 0x6e0e30
FoundReligion GameReligion:FoundReligion(ePlayer: integer[PlayerTypes], eReligion: integer[ReligionTypes], szCustomName: string[const char]) (or nothing)
args: ePlayer — Id of a player (as in Players[id]).; eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index). The scripts pass its index
gameplay yes ↗ 0x6e07b0 0x6e0ee0
GetMinimumFaithNextPantheon GameReligion:GetMinimumFaithNextPantheon() → number ui-cache yes ↗ 0x69fc60 0x6a0230
GetName GameReligion:GetName(arg1?: number) → string ui-cache yes ↗ 0x69fcb0 0x6a0280
GetReligions GameReligion:GetReligions() → string ui-cache, gameplay yes ↗ 0x69fd80 0x6a0350
HasBeenFounded GameReligion:HasBeenFounded(eReligion: integer[ReligionTypes]) → boolean
args: eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).
ui-cache, gameplay yes ↗ 0x6a01c0 0x6a0790
HasBeliefEachType GameReligion:HasBeliefEachType(eReligion: integer[ReligionTypes], ePlayer: integer[PlayerTypes]) → boolean
args: eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).; ePlayer — Id of a player (as in Players[id]).
ui-cache, gameplay yes ↗ 0x6a0220 0x6a07f0
IsInSomePantheon GameReligion:IsInSomePantheon(eBelief: integer[BeliefTypes]) → boolean
args: eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index).
ui-cache, gameplay yes ↗ 0x6a02a0 0x6a0870
IsInSomeReligion GameReligion:IsInSomeReligion(eBelief: integer[BeliefTypes]) → boolean
args: eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index).
ui-cache, gameplay yes ↗ 0x6a0300 0x6a08d0
IsNewTypeForReligion GameReligion:IsNewTypeForReligion(eBelief: integer[BeliefTypes], eReligion: integer[ReligionTypes]) → boolean
args: eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index).; eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).
ui-cache, gameplay yes ↗ 0x6a0360 0x6a0930
IsTooManyForReligion GameReligion:IsTooManyForReligion(eBelief: integer[BeliefTypes], eReligion: integer[ReligionTypes]) → boolean
args: eBelief — Index of a row of the Beliefs table (the value of GameInfo.Beliefs[...].Index).; eReligion — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).
ui-cache, gameplay yes ↗ 0x6a03e0 0x6a09b0