Home › Lua API › PlayerInfluence

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

PlayerInfluence

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

Community reference for this object: PlayerInfluence (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
CanGiveInfluence UI state: PlayerInfluence:CanGiveInfluence() → boolean
gameplay state: PlayerInfluence:CanGiveInfluence() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1150 0x6b16a0
CanGiveTokensToPlayer PlayerInfluence:CanGiveTokensToPlayer(toPlayer: integer[PlayerTypes]) → boolean
args: toPlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6b11a0 0x6b16f0
CanLevyMilitary PlayerInfluence:CanLevyMilitary(subjectPlayer: integer[PlayerTypes]) → boolean
args: subjectPlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6b1200 0x6b1750
CanReceiveInfluence UI state: PlayerInfluence:CanReceiveInfluence() → boolean
gameplay state: PlayerInfluence:CanReceiveInfluence() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1260 0x6b17b0
ChangeTokensToGive PlayerInfluence:ChangeTokensToGive(value: integer) (or nothing) gameplay yes ↗ 0x6f3200 0x6f3940
GetLevyMilitaryCost PlayerInfluence:GetLevyMilitaryCost(subjectPlayer: integer[PlayerTypes]) → number
args: subjectPlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6b12b0 0x6b1800
GetLevyTurnCounter PlayerInfluence:GetLevyTurnCounter() → number
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6b1320 0x6b1870
GetLevyTurnLimit PlayerInfluence:GetLevyTurnLimit() → number
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6b1370 0x6b18c0
GetMostTokensReceived UI state: PlayerInfluence:GetMostTokensReceived() → number
gameplay state: PlayerInfluence:GetMostTokensReceived() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b13c0 0x6b1910
GetPointsEarned PlayerInfluence:GetPointsEarned() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1410 0x6b1960
GetPointsPerTurn UI state: PlayerInfluence:GetPointsPerTurn() → number
gameplay state: PlayerInfluence:GetPointsPerTurn() → number (FixedPoint)
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1480 0x6b19d0
GetPointsThreshold PlayerInfluence:GetPointsThreshold() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b14f0 0x6b1a40
GetSuzerain UI state: PlayerInfluence:GetSuzerain() → number
gameplay state: PlayerInfluence:GetSuzerain() → number (PlayerTypes)
✓ called in the game: 1 value(s) as documented
returns: Id of a player: the scripts use the result as Players[result].
ui-cache, gameplay yes ↗ 0x6b1540 0x6b1a90
GetTokensPerThreshold PlayerInfluence:GetTokensPerThreshold() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1590 0x6b1ae0
GetTokensReceived PlayerInfluence:GetTokensReceived(fromPlayer: integer[PlayerTypes]) → number
args: fromPlayer — Id of a player (as in Players[id]).
✓ exists at runtime (not called)
ui-cache, gameplay yes ↗ 0x6b15e0 0x6b1b30
GetTokensToGive PlayerInfluence:GetTokensToGive() → number
✓ called in the game: 1 value(s) as documented
ui-cache, gameplay yes ↗ 0x6b1650 0x6b1ba0
GiveFreeTokenToPlayer PlayerInfluence:GiveFreeTokenToPlayer(toPlayer?: number) (or nothing)
args: toPlayer — A number.
gameplay yes ↗ 0x6f3530 0x6f3c70
IsGivingTokensConsidered PlayerInfluence:IsGivingTokensConsidered() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x6b16a0 0x6b1bf0
IsSuzerainUniqueBonusDisabled PlayerInfluence:IsSuzerainUniqueBonusDisabled() → boolean
✓ called in the game: 1 value(s) as documented
ui-cache yes ↗ 0x741a80 0x7423c0
SetGivingTokensConsidered PlayerInfluence:SetGivingTokensConsidered(arg1: boolean) (or nothing)
args: arg1 — A boolean flag (true/false). (inferred)
✓ exists at runtime (not called)
ui-cache yes ↗ 0x6b16f0 0x6b1c40