Home › Operations › Parameter reference

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

Parameter reference

Operations and commands take a table of parameters keyed by constants such as PlayerOperations.PARAM_CITY_SRC. This page says what each parameter means, what kind of value it takes and which operations use it.

The status says how the meaning is known: verified = confirmed by how the game's own Lua fills it; inferred = deduced from the name and the code around it. The same name can mean different things in different tables (for example PARAM_DISTRICT_TYPE is an index in player operations and a hash in city operations), so each table is listed separately. Value kinds: hash = the Hash column of a database row; db-index = the row Index; *-id = the id returned by GetID(); plot-coord = a plot x or y coordinate.

Player operations (PlayerOperations)

Parameter Meaning Value Used by Game examples
PARAM_FLAGS Bit flags for the operation; the meaning of the bits depends on the operation. (inferred) flags WORLD_CONGRESS_INDICATE_DESIRE —
PARAM_MODIFIERS Modifier flags. For unit operations combine UnitOperationMoveModifiers. values (for example ATTACK, MOVE_IGNORE_UNEXPLORED_DEST); otherwise operation specific. (inferred)* flags — —
PARAM_INSERT_MODE Where the entry goes in the queue: one of the VALUE_ constants of the same Lua table. (verified)* constant RESEARCH, PROGRESS_CIVIC, FOUND_PANTHEON, FOUND_RELIGION, ADD_BELIEF PlayerOperations.VALUE_EXCLUSIVE, PlayerOperations.VALUE_APPEND
PARAM_YIELD_TYPE Yield type (for example YieldTypes.GOLD or YieldTypes.FAITH, or the index of a row of the Yields table). (verified) db-index PATRONIZE_GREAT_PERSON YieldTypes.GOLD, YieldTypes.FAITH
PARAM_TECH_TYPE Type of the tech, given as the hash of its row in the Technologies table (row.Hash). (verified) hash → Technologies (hash) RESEARCH m_LockedResearchHash, techHash
PARAM_CIVIC_TYPE Type of the civic, given as the hash of its row in the Civics table (row.Hash). (verified) hash → Civics (hash) PROGRESS_CIVIC civicHash, pathToCivic
PARAM_BELIEF_TYPE Type of the belief, given as the hash of its row in the Beliefs table (row.Hash). (verified) hash → Beliefs (hash) FOUND_PANTHEON, ADD_BELIEF GameInfo.Beliefs[m_SelectedBeliefs[1]].Hash, GameInfo.Beliefs[belief].Hash
PARAM_RESOURCE_TYPE Type of the resource: a row of the Resources table (the game passes the row hash for most types; check the examples). (verified) db-type → Resources NAME_CORPORATION eResource, m_eCurResourceType
PARAM_RELIGION_TYPE Type of the religion, given as the hash of its row in the Religions table (row.Hash). (verified) hash → Religions (hash) FOUND_RELIGION, ADD_BELIEF GameInfo.Religions[m_SelectedReligion.ID].Hash
PARAM_RELIGION_CUSTOM_NAME The player-chosen name of the religion. (verified) string FOUND_RELIGION, ADD_BELIEF Controls.ChooseReligionName:GetText()
PARAM_CORPORATION_CUSTOM_NAME The player-chosen name of the corporation. (verified) string NAME_CORPORATION corpName
PARAM_DISTRICT_TYPE Type of the district, given as the index of its row in the Districts table (row.Index). (verified) db-index → Districts (index) SET_ESCAPE_ROUTE GameInfo.Districts[district1].Index, GameInfo.Districts[district2].Index
PARAM_TEAM_ONE Id of the first team involved. (inferred) team-id — —
PARAM_TEAM_TWO Id of the second team involved. (inferred) team-id — —
PARAM_PLAYER_ONE Id of the first player involved (usually the acting player). (verified) player-id DECLARE_WAR, MAKE_PEACE, GIVE_INFLUENCE_TOKEN, LEVY_MILITARY, RETURN_LEVIED_MILITARY, CHOOSE_ARTIFACT_PLAYER … kVoteData.data.Sender, localPlayerID
PARAM_PLAYER_TWO Id of the second player involved (the target or counterpart). (verified) player-id DECLARE_WAR, MAKE_PEACE, LEVY_MILITARY, WORLD_CONGRESS_DISCUSSION_VOTE, WORLD_CONGRESS_DISCUSSION_SELECTION, WORLD_CONGRESS_SUBMIT_TURN kVoteData.data.Target, iPlayer
PARAM_OTHER_PLAYER Id of the other player the operation is directed at. (verified) player-id REJECT_EMERGENCY, ACCEPT_EMERGENCY, WORLD_CONGRESS_DISCUSSION_SELECTION, INCITE_CLAN m_targetPlayerID, m_SelectedInciteTargetID
PARAM_GREAT_PERSON_INDIVIDUAL_TYPE Type of the great person individual: a row of the GreatPersonIndividuals table (the game passes the row hash for most types; check the examples). (verified) db-type → GreatPersonIndividuals RECRUIT_GREAT_PERSON, REJECT_GREAT_PERSON, PATRONIZE_GREAT_PERSON individualID
PARAM_UNIT_ID Id of the unit (unit:GetID()). (inferred) unit-id SET_ESCAPE_ROUTE —
PARAM_CITY_ONE Id of the first city involved (the value returned by city:GetID()). (inferred) city-id — —
PARAM_CITY_TWO Id of the second city involved. (inferred) city-id — —
PARAM_GREAT_WORK_INDEX Great work list index: the index of the work in the game-wide great work list (as returned by Cities:GetGreatWorkInSlot), not the row in the GreatWorks table. (verified) index MOVE_GREAT_WORK kSrcInstance[DATA_FIELD_GREAT_WORK_INDEX]
PARAM_BUILDING_TYPE Type of the building: a row of the Buildings table (the game passes the row hash for most types; check the examples). (inferred) db-type → Buildings — —
PARAM_SLOT Slot index inside the destination building. (verified) index MOVE_GREAT_WORK kDestInstance[DATA_FIELD_SLOT_INDEX]
PARAM_PLOT_ONE Index of the first plot involved. (verified) plot-index HIRE_CLAN, BRIBE_CLAN, RANSOM_CLAN, INCITE_CLAN m_BarbarianTribePlotIndex
PARAM_PLOT_TWO Index of the second plot involved. (inferred) plot-index — —
PARAM_CITY_SRC Id of the city the great work is taken from (city:GetID()). (verified) city-id MOVE_GREAT_WORK kSrcInstance[DATA_FIELD_CITY_ID]
PARAM_CITY_DEST Id of the city the great work goes to (city:GetID()). (verified) city-id MOVE_GREAT_WORK, ASSIGN_GOVERNOR, PROMOTE_GOVERNOR cityID, m_SelectedCityID
PARAM_BUILDING_SRC Building type index (row index in the Buildings table) of the building the great work is taken from. (verified) db-index MOVE_GREAT_WORK kSrcInstance[DATA_FIELD_BUILDING_ID]
PARAM_BUILDING_DEST Building type index of the building the great work goes to. (verified) db-index MOVE_GREAT_WORK kDestInstance[DATA_FIELD_BUILDING_ID]
PARAM_GOVERNOR_TYPE Type of the governor: a row of the Governors table (the game passes the row hash for most types; check the examples). (verified) db-type → Governors APPOINT_GOVERNOR, ASSIGN_GOVERNOR, PROMOTE_GOVERNOR eGovernor, m_SelectedGovernorID
PARAM_GOVERNOR_PROMOTION_TYPE Type of the governor promotion: a row of the GovernorPromotions table (the game passes the row hash for most types; check the examples). (verified) db-type → GovernorPromotions PROMOTE_GOVERNOR m_SelectedPromotion, ePromotion
PARAM_MOMENT_ID Id of the historic moment. (inferred) id COMPLIMENT_PRIDE_MOMENT —
PARAM_EMERGENCY_TYPE The emergency being answered. (verified) id REJECT_EMERGENCY, ACCEPT_EMERGENCY m_emergencyType
PARAM_COMMEMORATION_TYPE The chosen commemoration. (verified) id COMMEMORATE selectedCommemorationType
PARAM_RESOLUTION_TYPE Hash of the World Congress resolution. (verified) hash (hash) WORLD_CONGRESS_RESOLUTION_VOTE, WORLD_CONGRESS_RESOLUTION_SELECTION, WORLD_CONGRESS_DISCUSSION_VOTE, WORLD_CONGRESS_SUBMIT_TURN kVoteData.Hash
PARAM_WORLD_CONGRESS_VOTES Number of favor points spent on the vote (the game passes the sum, or votes times direction). (verified) number WORLD_CONGRESS_RESOLUTION_VOTE, WORLD_CONGRESS_DISCUSSION_VOTE, WORLD_CONGRESS_DISCUSSION_SELECTION, WORLD_CONGRESS_SUBMIT_TURN kVoteData.A.votes + kVoteData.B.votes, kVoteData.votes * kVoteData.voteDirection
PARAM_DISCUSSION_TYPE Type of the discussion item. (verified) id WORLD_CONGRESS_DISCUSSION_SELECTION kVoteData.data.Type
PARAM_RESOLUTION_SELECTION Index of the chosen target or option set (0-based; the game passes target - 1). (verified) index WORLD_CONGRESS_RESOLUTION_VOTE, WORLD_CONGRESS_RESOLUTION_SELECTION, WORLD_CONGRESS_DISCUSSION_VOTE, WORLD_CONGRESS_DISCUSSION_SELECTION, WORLD_CONGRESS_SUBMIT_TURN kChoiceData.target - 1
PARAM_RESOLUTION_OPTION The chosen outcome (A or B) of the resolution. (verified) constant WORLD_CONGRESS_RESOLUTION_VOTE, WORLD_CONGRESS_RESOLUTION_SELECTION, WORLD_CONGRESS_DISCUSSION_VOTE, WORLD_CONGRESS_DISCUSSION_SELECTION, WORLD_CONGRESS_SUBMIT_TURN kChoiceData.choice

Unit operations (UnitOperationTypes)

Parameter Meaning Value Used by Game examples
PARAM_OPERATION_TYPE Hash of the unit operation to perform (for example the hash of a build action). (verified) hash (hash) BUILD_IMPROVEMENT actionHash
PARAM_FLAGS Bit flags for the operation; the meaning of the bits depends on the operation. (inferred) flags — —
PARAM_MODIFIERS Modifier flags. For unit operations combine UnitOperationMoveModifiers. values (for example ATTACK, MOVE_IGNORE_UNEXPLORED_DEST); otherwise operation specific. (verified)* flags AIR_ATTACK, COASTAL_RAID, DEPLOY, MOVE_TO, RANGE_ATTACK, SWAP_UNITS UnitOperationMoveModifiers.ATTACK, UnitOperationMoveModifiers.NONE
PARAM_DIRECTIVE Selects a sub-variant of the operation or command (a directive constant specific to it). (inferred) constant — —
PARAM_X0 Plot x (column) coordinate of the first plot. (verified) plot-coord MAKE_TRADE_ROUTE city:GetX(), destinationCity:GetX()
PARAM_Y0 Plot y (row) coordinate of the first plot. (verified) plot-coord MAKE_TRADE_ROUTE city:GetY(), destinationCity:GetY()
PARAM_X1 Plot x (column) coordinate of the second plot. (verified) plot-coord MAKE_TRADE_ROUTE unit:GetX(), m_selectedUnit:GetX()
PARAM_Y1 Plot y (row) coordinate of the second plot. (verified) plot-coord MAKE_TRADE_ROUTE unit:GetY(), m_selectedUnit:GetY()
PARAM_UNIT0_PLAYER Id of the player who owns the unit (first one). (inferred) player-id — —
PARAM_UNIT0_ID Id of the unit (first one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_UNIT1_PLAYER Id of the player who owns the unit (second one). (inferred) player-id — —
PARAM_UNIT1_ID Id of the unit (second one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_CITY0_PLAYER Id of the player who owns the city (first one). (inferred) player-id — —
PARAM_CITY0_ID Id of the city (first one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_CITY1_PLAYER Id of the player who owns the city (second one). (inferred) player-id — —
PARAM_CITY1_ID Id of the city (second one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_RESOURCE0_TYPE Type of the resource (the first one of the pair): a row of the Resources table (the game passes the row hash for most types; check the examples). (inferred) db-type → Resources — —
PARAM_IMPROVEMENT0_TYPE Type of the improvement (the first one of the pair): a row of the Improvements table (the game passes the row hash for most types; check the examples). (inferred) db-type → Improvements — —
PARAM_PROMOTION0_TYPE Type of the promotion (the first one of the pair): a row of the UnitPromotions table (the game passes the row hash for most types; check the examples). (inferred) db-type → UnitPromotions — —
PARAM_DISTRICT0_TYPE Type of the district (the first one of the pair): a row of the Districts table (the game passes the row hash for most types; check the examples). (inferred) db-type → Districts — —
PARAM_ROUTE0_TYPE Type of the route (the first one of the pair): a row of the Routes table (the game passes the row hash for most types; check the examples). (inferred) db-type → Routes — —
PARAM_WMD0_TYPE Type of the wmd (the first one of the pair): a row of the WMDs table (the game passes the row hash for most types; check the examples). (inferred) db-type → WMDs — —
PARAM_X Plot x (column) coordinate. (verified) plot-coord AIR_ATTACK, BUILD_IMPROVEMENT, BUILD_IMPROVEMENT_ADJACENT, COASTAL_RAID, DEPLOY, MOVE_TO … plot:GetX(), pUnit:GetX()
PARAM_Y Plot y (row) coordinate. (verified) plot-coord AIR_ATTACK, BUILD_IMPROVEMENT, BUILD_IMPROVEMENT_ADJACENT, COASTAL_RAID, DEPLOY, MOVE_TO … plot:GetY(), pUnit:GetY()
PARAM_UNIT_PLAYER Id of the player who owns the unit. (inferred) player-id — —
PARAM_UNIT_ID Id of the unit (unit:GetID()). (inferred) unit-id — —
PARAM_CITY_PLAYER Id of the player who owns the city. (inferred) player-id — —
PARAM_CITY_ID Id of the city (the value returned by city:GetID()). (inferred) city-id — —
PARAM_RESOURCE_TYPE Type of the resource: a row of the Resources table (the game passes the row hash for most types; check the examples). (inferred) db-type → Resources — —
PARAM_IMPROVEMENT_TYPE Type of the improvement, given as the hash of its row in the Improvements table (row.Hash). (verified) hash → Improvements (hash) BUILD_IMPROVEMENT, BUILD_IMPROVEMENT_ADJACENT, PILLAGE improvementHash, UI.GetInterfaceModeParameter(UnitOperationTypes.PARAM_IMPROVEMENT_TYPE)
PARAM_PROMOTION_TYPE Type of the promotion: a row of the UnitPromotions table (the game passes the row hash for most types; check the examples). (inferred) db-type → UnitPromotions — —
PARAM_DISTRICT_TYPE Type of the district: a row of the Districts table (the game passes the row hash for most types; check the examples). (inferred) db-type → Districts — —
PARAM_ROUTE_TYPE Type of the route: a row of the Routes table (the game passes the row hash for most types; check the examples). (inferred) db-type → Routes — —
PARAM_WMD_TYPE Type of the wmd: a row of the WMDs table (the game passes the row hash for most types; check the examples). (verified) db-type → WMDs WMD_STRIKE eWMD

Unit commands (UnitCommandTypes)

Parameter Meaning Value Used by Game examples
PARAM_FLAGS Bit flags for the operation; the meaning of the bits depends on the operation. (inferred) flags — —
PARAM_MODIFIERS Modifier flags. For unit operations combine UnitOperationMoveModifiers. values (for example ATTACK, MOVE_IGNORE_UNEXPLORED_DEST); otherwise operation specific. (inferred)* flags — —
PARAM_X0 Plot x (column) coordinate of the first plot. (inferred) plot-coord — —
PARAM_Y0 Plot y (row) coordinate of the first plot. (inferred) plot-coord — —
PARAM_X1 Plot x (column) coordinate of the second plot. (inferred) plot-coord — —
PARAM_Y1 Plot y (row) coordinate of the second plot. (inferred) plot-coord — —
PARAM_PLAYER0 Id of the first player involved. (inferred) player-id — —
PARAM_UNIT0_PLAYER Id of the player who owns the unit (first one). (inferred) player-id — —
PARAM_UNIT0_ID Id of the unit (first one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_UNIT1_PLAYER Id of the player who owns the unit (second one). (inferred) player-id — —
PARAM_UNIT1_ID Id of the unit (second one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_CITY0_PLAYER Id of the player who owns the city (first one). (inferred) player-id — —
PARAM_CITY0_ID Id of the city (first one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_CITY1_PLAYER Id of the player who owns the city (second one). (inferred) player-id — —
PARAM_CITY1_ID Id of the city (second one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_NAME A name string. (verified) string EXECUTE_SCRIPT, NAME_UNIT pCommandTable.EventName or "", m_FullVeteranName
PARAM_PROMOTION_TYPE Type of the promotion: a row of the UnitPromotions table (the game passes the row hash for most types; check the examples). (verified) db-type → UnitPromotions DELETE, PROMOTE ePromotion
PARAM_X Plot x (column) coordinate. (verified) plot-coord AIRLIFT, EXECUTE_SCRIPT, KILL_WEAKER_UNIT, MOVE_JUMP, NAVAL_GOLD_RAID, PARADROP … plot:GetX()
PARAM_Y Plot y (row) coordinate. (verified) plot-coord AIRLIFT, EXECUTE_SCRIPT, KILL_WEAKER_UNIT, MOVE_JUMP, NAVAL_GOLD_RAID, PARADROP … plot:GetY()
PARAM_PLAYER Player id. (inferred) player-id — —
PARAM_UNIT_PLAYER Id of the player who owns the unit. (verified) player-id ENTER_FORMATION, FORM_ARMY, FORM_CORPS pUnit:GetOwner(), unitInstance:GetOwner()
PARAM_UNIT_ID Id of the unit (unit:GetID()). (verified) unit-id ENTER_FORMATION, FORM_ARMY, FORM_CORPS pUnit:GetID(), unitInstance:GetID()
PARAM_CITY_PLAYER Id of the player who owns the city. (inferred) player-id — —
PARAM_CITY_ID Id of the city (the value returned by city:GetID()). (inferred) city-id — —

City operations (CityOperationTypes)

Parameter Meaning Value Used by Game examples
PARAM_FLAGS Bit flags for the operation; the meaning of the bits depends on the operation. (inferred) flags — —
PARAM_MODIFIERS Modifier flags. For unit operations combine UnitOperationMoveModifiers. values (for example ATTACK, MOVE_IGNORE_UNEXPLORED_DEST); otherwise operation specific. (inferred)* flags BUILD —
PARAM_BUILDING_TYPE Type of the building, given as the hash of its row in the Buildings table (row.Hash). (verified) hash → Buildings (hash) BUILD buildingEntry.Hash, eBuilding
PARAM_DISTRICT_TYPE Type of the district, given as the hash of its row in the Districts table (row.Hash). (verified) hash → Districts (hash) BUILD districtEntry.Hash, districtHash
PARAM_UNIT_TYPE Type of the unit, given as the hash of its row in the Units table (row.Hash). (verified) hash → Units (hash) BUILD unitEntry.Hash, m_LockedProductionHash
PARAM_PROJECT_TYPE Type of the project, given as the hash of its row in the Projects table (row.Hash). (verified) hash → Projects (hash) BUILD projectEntry.Hash
PARAM_MILITARY_FORMATION_TYPE Military formation: one of the MilitaryFormationTypes constants (for example STANDARD_MILITARY_FORMATION, CORPS_MILITARY_FORMATION). (inferred) constant BUILD —
PARAM_PRODUCTION_TYPE Kind of production item. (inferred) constant — —
PARAM_IS_EXCLUSION_TEST Flag used when testing whether an item would be excluded from the queue (meaning not determined). (inferred) boolean — —
PARAM_INSERT_MODE Where the entry goes in the queue: one of the VALUE_ constants of the same Lua table. (verified)* constant BUILD CityOperationTypes.VALUE_REMOVE_AT, CityOperationTypes.VALUE_SWAP
PARAM_QUEUE_LOCATION Position in the city production queue. (verified) queue-index BUILD queueIndex, UI.GetInterfaceModeParameter(CityOperationTypes.PARAM_QUEUE_LOCATION)
PARAM_QUEUE_SOURCE_LOCATION Position the queue entry is moved from. (verified) queue-index BUILD sourceIndex, UI.GetInterfaceModeParameter(CityOperationTypes.PARAM_QUEUE_SOURCE_LOCATION)
PARAM_QUEUE_DESTINATION_LOCATION Position the queue entry is moved to. (verified) queue-index BUILD destIndex, UI.GetInterfaceModeParameter(CityOperationTypes.PARAM_QUEUE_DESTINATION_LOCATION)
PARAM_DIRECTIVE Selects a sub-variant of the operation or command (a directive constant specific to it). (inferred) constant — —
PARAM_X0 Plot x (column) coordinate of the first plot. (inferred) plot-coord — —
PARAM_Y0 Plot y (row) coordinate of the first plot. (inferred) plot-coord — —
PARAM_X1 Plot x (column) coordinate of the second plot. (inferred) plot-coord — —
PARAM_Y1 Plot y (row) coordinate of the second plot. (inferred) plot-coord — —
PARAM_UNIT0_PLAYER Id of the player who owns the unit (first one). (inferred) player-id — —
PARAM_UNIT0_ID Id of the unit (first one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_UNIT1_PLAYER Id of the player who owns the unit (second one). (inferred) player-id — —
PARAM_UNIT1_ID Id of the unit (second one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_CITY0_PLAYER Id of the player who owns the city (first one). (inferred) player-id — —
PARAM_CITY0_ID Id of the city (first one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_CITY1_PLAYER Id of the player who owns the city (second one). (inferred) player-id — —
PARAM_CITY1_ID Id of the city (second one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_X Plot x (column) coordinate. (verified) plot-coord BUILD kPlot:GetX()
PARAM_Y Plot y (row) coordinate. (verified) plot-coord BUILD kPlot:GetY()
PARAM_UNIT_PLAYER Id of the player who owns the unit. (inferred) player-id — —
PARAM_UNIT_ID Id of the unit (unit:GetID()). (inferred) unit-id — —
PARAM_CITY_PLAYER Id of the player who owns the city. (inferred) player-id — —
PARAM_CITY_ID Id of the city (the value returned by city:GetID()). (inferred) city-id — —

City commands (CityCommandTypes)

Parameter Meaning Value Used by Game examples
PARAM_FLAGS Bit flags for the operation; the meaning of the bits depends on the operation. (verified) flags SET_FOCUS 0; -- Set Favored, 1; -- Set Ignored
PARAM_MODIFIERS Modifier flags. For unit operations combine UnitOperationMoveModifiers. values (for example ATTACK, MOVE_IGNORE_UNEXPLORED_DEST); otherwise operation specific. (inferred)* flags — —
PARAM_DIRECTIVE Selects a sub-variant of the operation or command (a directive constant specific to it). (inferred) constant MANAGE, SET_FOCUS, SWAP_TILE_OWNER —
PARAM_BUILDING_TYPE Type of the building, given as the hash of its row in the Buildings table (row.Hash). (verified) hash → Buildings (hash) PURCHASE buildingEntry.Hash
PARAM_DISTRICT_TYPE Type of the district: a row of the Districts table (the game passes the row hash for most types; check the examples). (inferred) db-type → Districts — —
PARAM_UNIT_TYPE Type of the unit, given as the hash of its row in the Units table (row.Hash). (verified) hash → Units (hash) PURCHASE unitEntry.Hash, kHeroUnitDef.Hash
PARAM_PROJECT_TYPE Type of the project: a row of the Projects table (the game passes the row hash for most types; check the examples). (inferred) db-type → Projects — —
PARAM_PLOT_PURCHASE The plot to buy (supplied by the interface mode; plot index). (verified) plot-index PURCHASE UI.GetInterfaceModeParameter(CityCommandTypes.PARAM_PLOT_PURCHASE)
PARAM_MANAGE_CITIZEN The plot whose citizen assignment is changed (supplied by the interface mode). (verified) plot-index MANAGE, PURCHASE, SWAP_TILE_OWNER UI.GetInterfaceModeParameter(CityCommandTypes.PARAM_MANAGE_CITIZEN)
PARAM_SWAP_TILE_OWNER The plot whose owner city is swapped (supplied by the interface mode). (verified) plot-index PURCHASE, SWAP_TILE_OWNER UI.GetInterfaceModeParameter(CityCommandTypes.PARAM_SWAP_TILE_OWNER)
PARAM_RANGED_ATTACK The target of the ranged attack (supplied by the interface mode). (inferred) plot-index — —
PARAM_YIELD_TYPE Yield type (for example YieldTypes.GOLD or YieldTypes.FAITH, or the index of a row of the Yields table). (verified) db-index (index) PURCHASE, SET_FOCUS GameInfo.Yields["YIELD_FAITH"].Index, GameInfo.Yields["YIELD_GOLD"].Index
PARAM_WMD_TYPE Type of the wmd: a row of the WMDs table (the game passes the row hash for most types; check the examples). (verified) db-type → WMDs WMD_STRIKE eWMD
PARAM_MILITARY_FORMATION_TYPE Military formation: one of the MilitaryFormationTypes constants (for example STANDARD_MILITARY_FORMATION, CORPS_MILITARY_FORMATION). (verified) constant PURCHASE MilitaryFormationTypes.STANDARD_MILITARY_FORMATION, MilitaryFormationTypes.CORPS_MILITARY_FORMATION
PARAM_NAME A name string. (verified) string NAME_CITY new_name
PARAM_X0 Plot x (column) coordinate of the first plot. (verified) plot-coord WMD_STRIKE sourcePlotX
PARAM_Y0 Plot y (row) coordinate of the first plot. (verified) plot-coord WMD_STRIKE sourcePlotY
PARAM_X1 Plot x (column) coordinate of the second plot. (verified) plot-coord WMD_STRIKE targetPlot:GetX()
PARAM_Y1 Plot y (row) coordinate of the second plot. (verified) plot-coord WMD_STRIKE targetPlot:GetY()
PARAM_UNIT0_PLAYER Id of the player who owns the unit (first one). (inferred) player-id — —
PARAM_UNIT0_ID Id of the unit (first one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_UNIT1_PLAYER Id of the player who owns the unit (second one). (inferred) player-id — —
PARAM_UNIT1_ID Id of the unit (second one) (the value returned by unit:GetID()). (inferred) unit-id — —
PARAM_CITY0_PLAYER Id of the player who owns the city (first one). (inferred) player-id — —
PARAM_CITY0_ID Id of the city (first one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_CITY1_PLAYER Id of the player who owns the city (second one). (inferred) player-id — —
PARAM_CITY1_ID Id of the city (second one) (the value returned by city:GetID()). (inferred) city-id — —
PARAM_DATA0 Generic data slot 0; the meaning depends on the command (the game uses it for booleans passed as 1 or 0). (verified) generic SET_FOCUS 0; -- boolean (1=true, 0=false), 1; -- boolean (1=true, 0=false)
PARAM_DATA1 Generic data slot 1; the meaning depends on the command (the game uses it for booleans passed as 1 or 0). (inferred) generic — —
PARAM_DATA2 Generic data slot 2; the meaning depends on the command (the game uses it for booleans passed as 1 or 0). (inferred) generic — —
PARAM_DATA3 Generic data slot 3; the meaning depends on the command (the game uses it for booleans passed as 1 or 0). (inferred) generic — —
PARAM_X Plot x (column) coordinate. (verified) plot-coord MANAGE, PURCHASE, SWAP_TILE_OWNER kPlot:GetX()
PARAM_Y Plot y (row) coordinate. (verified) plot-coord MANAGE, PURCHASE, SWAP_TILE_OWNER kPlot:GetY()
PARAM_UNIT_PLAYER Id of the player who owns the unit. (inferred) player-id — —
PARAM_UNIT_ID Id of the unit (unit:GetID()). (inferred) unit-id — —
PARAM_CITY_PLAYER Id of the player who owns the city. (inferred) player-id — —
PARAM_CITY_ID Id of the city (the value returned by city:GetID()). (inferred) city-id — —