Home › Lua API › DiplomacyManager

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

DiplomacyManager

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

Community reference for this object: DiplomacyManager (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
AddCommand DiplomacyManager.AddCommand(arg1?: number, arg2?: number, arg3?: number) → boolean ui-cache yes ↗ 0x693fa0 0x694580
AddResponse DiplomacyManager.AddResponse(arg1?: number, arg2?: number, arg3?: number) → boolean
args: arg2 — Id of a player.; arg3 — A string.
ui-cache yes ↗ 0x694080 0x694660
AddStatement DiplomacyManager.AddStatement(arg1?: number, arg2?: number, arg3?: number) → boolean
args: arg2 — Id of a player.; arg3 — A string.
ui-cache yes ↗ 0x6941d0 0x6947b0
CloseSession DiplomacyManager.CloseSession(arg1?: number) → boolean ui-cache yes ↗ 0x694320 0x694900
FindOpenSessionID DiplomacyManager.FindOpenSessionID(eFromPlayer?: number, eToPlayer?: number) → number (or nothing)
args: eFromPlayer — Id of a player.; eToPlayer — Id of a player.
returns: The scripts pass the result to DiplomacyManager.CloseSession. (inferred)
ui-cache yes ↗ 0x694390 0x694970
FindReasonAgendaTextKey DiplomacyManager.FindReasonAgendaTextKey(arg1?: number, arg2?: number, arg3?: number, arg4?: number) → nil
args: arg2 — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache yes ↗ 0x694450 0x694a30
FindReasonTextKey DiplomacyManager.FindReasonTextKey(pszKey?: string[const char], arg2?: number, arg3?: number, arg4?: number) → nil ui-cache yes ↗ 0x694650 0x694c30
FindTextKey DiplomacyManager.FindTextKey(pszKey?: string[const char], arg2?: number, arg3?: number, arg4?: number) → string
args: arg4 — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache yes ↗ 0x6947c0 0x694da0
GetKeyName DiplomacyManager.GetKeyName(arg1?: number) → string/nil ui-cache yes ↗ 0x694930 0x694f10
GetSessionInfo DiplomacyManager.GetSessionInfo(arg1?: number) → table{FromPlayer: number, ToPlayer: number} (or nothing) ui-cache yes ↗ 0x6949b0 0x694f90
HasQueuedSession DiplomacyManager.HasQueuedSession(ePlayer?: number) → boolean
args: ePlayer — Id of a player (the scripts name the argument playerID / owner). (inferred)
ui-cache yes ↗ 0x694b10 0x6950f0
IsSessionIDOpen DiplomacyManager.IsSessionIDOpen(arg1?: number) → boolean ui-cache yes ↗ 0x694b80 0x695160
RequestSession DiplomacyManager.RequestSession(arg1?: number, arg2?: number, arg3?: number) → boolean
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); arg3 — A string.
ui-cache yes ↗ 0x694bf0 0x6951d0
SendAction DiplomacyManager.SendAction(arg1?: number, arg2?: number, arg3?: number, arg4: table) → boolean ui-cache yes ↗ 0x694d40 0x695320
TestAction DiplomacyManager.TestAction(arg1?: number, arg2?: number, arg3?: number, arg4: table) → boolean ⚠
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); arg3 — A constant from the Lua table DiplomacyActionTypes.
ui-cache yes ↗ 0x694ed0 0x6954b0