DiploUIEventType (Civ5 Type)

From Civilization Modding Wiki
Revision as of 14:40, 19 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


ID.png The DiploUIEventType pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!
  • Lua.png Integers labeled as DiploUIEventType corresponds to the constants defined in the FromUIDiploEventTypes Lua enumeration.


Lua: the FromUIDiploEventTypes enumeration

Firaxis provides a Lua enumeration named FromUIDiploEventTypes. This is just a regular global table. Its keys are the constants' names and the pairs the corresponding values.


Below are the values found in this enumeration.

Key Value
"NO_FROM_UI_DIPLO_EVENT" -1
"FROM_UI_DIPLO_EVENT_HUMAN_DECLARES_WAR" 0
"FROM_UI_DIPLO_EVENT_HUMAN_NEGOTIATE_PEACE" 1
"FROM_UI_DIPLO_EVENT_HUMAN_WANTS_DISCUSSION" 2
"FROM_UI_DIPLO_EVENT_HUMAN_DISCUSSION_DONT_SETTLE" 3
"FROM_UI_DIPLO_EVENT_HUMAN_DISCUSSION_WORK_WITH_US" 4
"FROM_UI_DIPLO_EVENT_HUMAN_DISCUSSION_END_WORK_WITH_US" 5
"FROM_UI_DIPLO_EVENT_DEMAND_HUMAN_REFUSAL" 6
"FROM_UI_DIPLO_EVENT_REQUEST_HUMAN_REFUSAL" 7
"FROM_UI_DIPLO_EVENT_AGGRESSIVE_MILITARY_WARNING_RESPONSE" 8
"FROM_UI_DIPLO_EVENT_I_ATTACKED_YOUR_MINOR_CIV_RESPONSE" 9
"FROM_UI_DIPLO_EVENT_I_BULLIED_YOUR_MINOR_CIV_RESPONSE" 10
"FROM_UI_DIPLO_EVENT_ATTACKED_MINOR_RESPONSE" 11
"FROM_UI_DIPLO_EVENT_KILLED_MINOR_RESPONSE" 12
"FROM_UI_DIPLO_EVENT_BULLIED_MINOR_RESPONSE" 13
"FROM_UI_DIPLO_EVENT_EXPANSION_SERIOUS_WARNING_RESPONSE" 14
"FROM_UI_DIPLO_EVENT_EXPANSION_WARNING_RESPONSE" 15
"FROM_UI_DIPLO_EVENT_PLOT_BUYING_SERIOUS_WARNING_RESPONSE" 16
"FROM_UI_DIPLO_EVENT_PLOT_BUYING_WARNING_RESPONSE" 17
"FROM_UI_DIPLO_EVENT_WORK_WITH_US_RESPONSE" 18
"FROM_UI_DIPLO_EVENT_WORK_AGAINST_SOMEONE_RESPONSE" 19
"FROM_UI_DIPLO_EVENT_DENOUNCE" 20
"FROM_UI_DIPLO_EVENT_COOP_WAR_OFFER" 21
"FROM_UI_DIPLO_EVENT_COOP_WAR_RESPONSE" 22
"FROM_UI_DIPLO_EVENT_COOP_WAR_NOW_RESPONSE" 23
"FROM_UI_DIPLO_EVENT_HUMAN_DEMAND" 24
"FROM_UI_DIPLO_EVENT_PLAN_RA_RESPONSE" 25
"FROM_UI_DIPLO_EVENT_AI_REQUEST_DENOUNCE_RESPONSE" 26
"FROM_UI_DIPLO_EVENT_CAUGHT_YOUR_SPY_RESPONSE" 27
"FROM_UI_DIPLO_EVENT_KILLED_MY_SPY_RESPONSE" 28
"FROM_UI_DIPLO_EVENT_HUMAN_DISCUSSION_STOP_SPYING" 29
"FROM_UI_DIPLO_EVENT_HUMAN_DISCUSSION_SHARE_INTRIGUE" 30
"FROM_UI_DIPLO_EVENT_STOP_CONVERSIONS" 31
"NUM_FROM_UI_DIPLO_EVENTS" 32


Examples

Here is how to use the LUA enumeration to retrieve the ID from the type. Those examples will return and assign the integer value 0.

local id = FromUIDiploEventTypes.FROM_UI_DIPLO_EVENT_HUMAN_DECLARES_WAR
local id = FromUIDiploEventTypes["FROM_UI_DIPLO_EVENT_HUMAN_DECLARES_WAR"]


Used by

Game.DoFromUIDiploEvent(DiploUIEventType event, PlayerID aIPlayer, SpecialistType button, int againstPlayer, int arg3)



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.