Home › Lua API › UnitReligion

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

UnitReligion

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

Community reference for this object: UnitReligion (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
ChangeEvictPercent UnitReligion:ChangeEvictPercent(iDelta: integer) (or nothing) gameplay yes ↗ 0x701a40 0x702190
ChangeForeignSpreadModifier UnitReligion:ChangeForeignSpreadModifier(iDelta: integer) (or nothing) gameplay yes ↗ 0x701a80 0x7021d0
ChangeNWDeferredCharges UnitReligion:ChangeNWDeferredCharges(iChange: integer) (or nothing) gameplay yes ↗ 0x701ac0 0x702210
ChangeReligiousHealCharges UnitReligion:ChangeReligiousHealCharges(iChange: integer) (or nothing) gameplay yes ↗ 0x701b00 0x702250
ChangeReligiousStrength UnitReligion:ChangeReligiousStrength(iChange: integer) (or nothing) gameplay yes ↗ 0x701b50 0x7022a0
ChangeSpreadCharges UnitReligion:ChangeSpreadCharges(iChange: integer) (or nothing) gameplay yes ↗ 0x701b90 0x7022e0
GetEvictPercent UnitReligion:GetEvictPercent() → number gameplay yes ↗ 0x701be0 0x702330
GetForeignSpreadModifier UnitReligion:GetForeignSpreadModifier() → number gameplay yes ↗ 0x701c30 0x702380
GetInitiationAmount UnitReligion:GetInitiationAmount() → number gameplay yes ↗ 0x701c80 0x7023d0
GetInitiationYield UnitReligion:GetInitiationYield() → number gameplay yes ↗ 0x701cd0 0x702420
GetNWDeferredCharges UnitReligion:GetNWDeferredCharges() → number gameplay yes ↗ 0x701d20 0x702470
GetReligionType UnitReligion:GetReligionType() → number gameplay yes ↗ 0x701d70 0x7024c0
GetReligiousHealCharges UnitReligion:GetReligiousHealCharges() → number gameplay yes ↗ 0x701dc0 0x702510
GetReligiousStrength UnitReligion:GetReligiousStrength() → number gameplay yes ↗ 0x701e10 0x702560
GetSpreadCharges UnitReligion:GetSpreadCharges() → number gameplay yes ↗ 0x701e60 0x7025b0
IsConvertsBarbarians UnitReligion:IsConvertsBarbarians() → boolean gameplay yes ↗ 0x701eb0 0x702600
IsNoForeignSpread UnitReligion:IsNoForeignSpread() → boolean gameplay yes ↗ 0x701ef0 0x702640
IsRelicUponDeath UnitReligion:IsRelicUponDeath() → number gameplay yes ↗ 0x701f30 0x702680
SetConvertsBarbarians UnitReligion:SetConvertsBarbarians(bNewValue: boolean) (or nothing) gameplay yes ↗ 0x701f80 0x7026d0
SetEvictPercent UnitReligion:SetEvictPercent(iNewValue: integer) (or nothing) gameplay yes ↗ 0x701fc0 0x702710
SetForeignSpreadModifier UnitReligion:SetForeignSpreadModifier(iNewValue: integer) (or nothing) gameplay yes ↗ 0x702000 0x702750
SetInitiationAmount UnitReligion:SetInitiationAmount(iNewValue: integer) (or nothing) gameplay yes ↗ 0x702040 0x702790
SetInitiationYield UnitReligion:SetInitiationYield(eYield: integer) (or nothing) gameplay yes ↗ 0x702080 0x7027d0
SetNoForeignSpread UnitReligion:SetNoForeignSpread(bNewValue: boolean) (or nothing) gameplay yes ↗ 0x7020c0 0x702810
SetRelicUponDeath UnitReligion:SetRelicUponDeath(arg1: integer) (or nothing) gameplay yes ↗ 0x702100 0x702850
SetReligionType UnitReligion:SetReligionType(eNewValue: number/string[ReligionTypes]) (or nothing)
args: eNewValue — Index of a row of the Religions table (the value of GameInfo.Religions[...].Index).
gameplay yes ↗ 0x702140 0x702890