Home › Enums › DiplomaticThreatTypes

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

DiplomaticThreatTypes

Lua constant table DiplomaticThreatTypes. Engine enum: GameCore::AI::DiplomaticThreat.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

6 of 6 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
UNKNOWN_THREAT UNKNOWN_THREAT -1
INVALID_THREAT INVALID_THREAT 0
MAJOR_THREAT MAJOR_THREAT 1
MODERATE_THREAT MODERATE_THREAT 2
MINOR_THREAT MINOR_THREAT 3
NO_THREAT NO_THREAT 4