MinorCivQuestType (Civ5 Type)

From Civilization Modding Wiki
Jump to: navigation, search

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


ID.png The MinorCivQuestType 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 MinorCivQuestType corresponds to the constants defined in the MinorCivQuestTypes Lua enumeration.


Lua: the MinorCivQuestTypes enumeration

Firaxis provides a Lua enumeration named MinorCivQuestTypes. 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_MINOR_CIV_QUEST_TYPE" -1
"MINOR_CIV_QUEST_ROUTE" 0
"MINOR_CIV_QUEST_KILL_CAMP" 1
"MINOR_CIV_QUEST_CONNECT_RESOURCE" 2
"MINOR_CIV_QUEST_CONSTRUCT_WONDER" 3
"MINOR_CIV_QUEST_GREAT_PERSON" 4
"MINOR_CIV_QUEST_KILL_CITY_STATE" 5
"MINOR_CIV_QUEST_FIND_PLAYER" 6
"MINOR_CIV_QUEST_FIND_NATURAL_WONDER" 7
"MINOR_CIV_QUEST_GIVE_GOLD" 8
"MINOR_CIV_QUEST_PLEDGE_TO_PROTECT" 9
"MINOR_CIV_QUEST_CONTEST_CULTURE" 10
"MINOR_CIV_QUEST_CONTEST_FAITH" 11
"MINOR_CIV_QUEST_CONTEST_TECHS" 12
"MINOR_CIV_QUEST_INVEST" 13
"MINOR_CIV_QUEST_BULLY_CITY_STATE" 14
"MINOR_CIV_QUEST_DENOUNCE_MAJOR" 15
"MINOR_CIV_QUEST_SPREAD_RELIGION" 16
"NUM_MINOR_CIV_QUEST_TYPES" 17


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 = MinorCivQuestTypes.MINOR_CIV_QUEST_ROUTE
local id = MinorCivQuestTypes["MINOR_CIV_QUEST_ROUTE"]


Used by

MinorCivQuestType Player:GetActiveQuestForPlayer(PlayerID player)
int Player:GetMinorCivContestValueForLeader(MinorCivQuestType arg0)
int Player:GetMinorCivContestValueForPlayer(PlayerID major, MinorCivQuestType arg1)
int Player:GetQuestData1(PlayerID major, MinorCivQuestType type = nil)
int Player:GetQuestData2(PlayerID major, MinorCivQuestType type = nil)
int Player:GetQuestTurnsRemaining(PlayerID major, MinorCivQuestType type, PlayerID arg2)
bool Player:IsMinorCivActiveQuestForPlayer(PlayerID major, MinorCivQuestType type)
bool Player:IsMinorCivContestLeader(PlayerID major, MinorCivQuestType arg1)



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.