Home › Lua API › GameDiplomacy

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

GameDiplomacy

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

Community reference for this object: GameDiplomacy (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
GetAllianceBenefitsString GameDiplomacy:GetAllianceBenefitsString(arg1?: number, arg2?: number) → string ui-cache yes ↗ 0x711790 0x712000
GetDenounceTimeLimit GameDiplomacy:GetDenounceTimeLimit() → number ui-cache yes ↗ 0x69cc20 0x69d1f0
GetGrievanceChangePerTurn UI state: GameDiplomacy:GetGrievanceChangePerTurn(eTarget?: number, eInitiator?: number) → number
gameplay state: GameDiplomacy:GetGrievanceChangePerTurn(eTarget?: number, eInitiator?: number) → number
args: eTarget — Id of a player (the scripts name the argument playerID / owner). (inferred); eInitiator — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache, gameplay yes ↗ 0x7405b0 0x740ef0
GetGrievanceChangeTooltip UI state: GameDiplomacy:GetGrievanceChangeTooltip(eTarget?: number, eInitiator?: number) → string
gameplay state: GameDiplomacy:GetGrievanceChangeTooltip(eTarget?: number, eInitiator?: number) → string
args: eTarget — Id of a player (the scripts name the argument playerID / owner). (inferred); eInitiator — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache, gameplay yes ↗ 0x740670 0x740fb0
GetGrievanceLogEntries UI state: GameDiplomacy:GetGrievanceLogEntries(arg1?: number, arg2?: number) → number
gameplay state: GameDiplomacy:GetGrievanceLogEntries(arg1?: number, arg2?: number) → number
args: arg1 — Id of a player (the scripts name the argument playerID / owner). (inferred); arg2 — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache, gameplay yes ↗ 0x740750 0x741090
GetMinPeaceDuration GameDiplomacy:GetMinPeaceDuration() → number ui-cache yes ↗ 0x69cc70 0x69d240
SetAlliesShareVisFlag GameDiplomacy:SetAlliesShareVisFlag(bFlag: boolean) (or nothing)
args: bFlag — A boolean flag (true/false). (inferred)
gameplay yes ↗ 0x6d8260 0x6d8900