Home › Requirements › Requirements: CITIES

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

Requirements: CITIES

32 entries. Subject class "CITIES" is the community list's grouping (what the modifier applies to).

Requirement Arguments Engine functions called Availability Addresses (symbol→current)
REQUIREMENT_ALLIANCE_CITY_HAS_TRADE_ROUTE_WITH_ALLY — City::Trade::IterateOutgoingRoutes R&F, GS, NFP, BlackDeath, WarMachine Test 0x8941e0→0x8ad060
OnInitialize 0x893bf0→0x8ac8f0
REQUIREMENT_CITY_FOLLOWS_PANTHEON — City::Religion::GetActivePantheon Base game+ Test 0x8c6570→0x8e0120
OnInitialize 0x8c62d0→0x8dfd90
REQUIREMENT_CITY_FOLLOWS_RELIGION — Player::Religion::GainsAllFollowerBeliefs
City::Religion::GetNumFollowers
Player::Religion::GetReligionCreated
Base game+ Test 0x85b560→0x8739d0
OnInitialize 0x85b310→?
REQUIREMENT_CITY_HAS_ANY_WONDER — Definitions::GetBuildingDefinitions
City::Buildings::HasBuilding
Base game+ Test 0x804dc0→0x81d9f0
OnInitialize 0x8047c0→0x81d0d0
REQUIREMENT_CITY_HAS_BUILDING BuildingType (String), ExactMatch (Boolean), MustBeFunctioning (Boolean) City::Buildings::HasBuilding
City::Buildings::IsPillaged
Definitions::GetBuildingDefinitions
Base game+ Test 0x819bc0→0x832c30
OnInitialize 0x819420→0x8324a0
REQUIREMENT_CITY_HAS_DISTRICT DistrictType (String), ExactMatch (Boolean), MustBeFunctioning (Boolean) City::Districts::GetDistrictByIndex
Rules::Districts::Get
Rules::Districts::Instance::IsActive
Rules::Districts::Shared::Instance::DistrictsMatch
Rules::Districts::Instance::IsFunctioning
Player::Districts::CanEverZone
Definitions::GetDistrictDefinitions
Base game+ Test 0x8139f0→0x82cc50
OnInitialize 0x812e80→0x82bca0
REQUIREMENT_CITY_HAS_FEATURE FeatureType (String) Map::EditInstance
Map::Instance::GetCityPlots
Map::CityPlots::GetPurchasedPlots
Definitions::GetFeatureDefinitions
GS, BlackDeath, WarMachine Test 0x89bad0→0x8b4070
OnInitialize 0x89b360→0x8b38a0
REQUIREMENT_CITY_HAS_FULL_LOYALTY — — R&F, GS, NFP, BlackDeath, WarMachine Test 0x80cdd0→0x826680
OnInitialize 0x80caa0→0x825fb0
REQUIREMENT_CITY_HAS_GARRISON_UNIT MilitaryFormation (String) City::Districts::EditDistrictByID
District::Instance::IsDefensible
District::Instance::HasGarrisonedUnit
District::Instance::GetGarrisonedUnit
District::Instance::GetDefinition
Definition::Utility::NameToMilitaryFormationType
Base game+ Test 0x8e11e0→0x7e67e0
OnInitialize 0x8e0ca0→0x7e6370
REQUIREMENT_CITY_HAS_GOVERNMENT_BUILDING_TIER GovernmentBuildingTier (Integer) City::Buildings::HasGovernmentTierBuilding GS, BlackDeath, WarMachine Test 0x7e6770→0x7fe5f0
OnInitialize 0x7e62c0→0x7fe330
REQUIREMENT_CITY_HAS_GOVERNOR Established (Boolean) Player::Governors::Get
Player::Governors::GetAssignedGovernor
R&F, GS, NFP, BlackDeath, WarMachine Test 0x867830→0x87ef80
OnInitialize 0x867280→0x87eb20
REQUIREMENT_CITY_HAS_GOVERNOR_WITH_X_TITLES Amount (Integer), Established (Boolean) Player::Governors::Get
Player::Governors::GetAssignedGovernor
Governor::Instance::GetNumTitles
GameEffects::ArgumentFunction::GetFunctions
R&F, GS, BlackDeath, WarMachine Test 0x8d10e0→0x8ea820
OnInitialize 0x8cfcc0→0x8e9ed0
REQUIREMENT_CITY_HAS_HIGH_ADJACENCY_DISTRICT Amount (Integer), DistrictType (String), YieldType (String) City::Districts::GetDistrict
District::Instance::GetAdjacencyYield
Definitions::GetYieldDefinitions
Definitions::GetDistrictDefinitions
GameEffects::ArgumentFunction::GetFunctions
R&F, GS, BlackDeath, WarMachine Test 0x83ae10→0x853ed0
OnInitialize 0x83a500→0x8537e0
REQUIREMENT_CITY_HAS_NATIONAL_PARK — Game::NationalParks::Edit
Game::NationalParks::GetParkTourismForCity
Base game+ Test 0x7e8750→0x7ffd30
OnInitialize 0x7e82c0→0x7ffa30
REQUIREMENT_CITY_HAS_RESOURCE_TYPE_IMPROVED ResourceType (String) City::Resources::CountLocalResourceTypes
Definitions::GetResourceDefinitions
NFP Test 0x824830→0x83ddc0
OnInitialize 0x824210→0x83d620
REQUIREMENT_CITY_HAS_SPECIFIC_GOVERNOR_PROMOTION_TYPE GovernorPromotionType (String), Established (Boolean) Player::Governors::Get
Player::Governors::GetAssignedGovernor
Governor::Instance::HasPromotion
Definitions::GetGovernorPromotionDefinitions
GS, BlackDeath, WarMachine Test 0x829f80→0x8435e0
OnInitialize 0x829c30→0x843140
REQUIREMENT_CITY_HAS_X_FEATURE_TYPE Amount (Integer), FeatureType (String) Map::IInstance::IterateNeighbors
Definitions::GetFeatureDefinitions
GameEffects::ArgumentFunction::GetFunctions
GS, BlackDeath, WarMachine Test 0x820290→0x839450
OnInitialize 0x81feb0→0x838c40
REQUIREMENT_CITY_HAS_X_POPULATION Amount (Integer) GameEffects::ArgumentFunction::GetFunctions R&F, GS, BlackDeath, WarMachine Test 0x884630→0x89e800
OnInitialize 0x8841e0→0x89e4d0
REQUIREMENT_CITY_HAS_X_SPECIALTY_DISTRICTS Amount (Integer), MustBeFunctioning (Boolean) City::Districts::GetNumDistricts
GameEffects::ArgumentFunction::GetFunctions
Base game+ Test 0x7fef50→0x8168f0
OnInitialize 0x7fe4d0→0x816020
REQUIREMENT_CITY_HAS_X_TERRAIN_TYPE Amount (Integer), Hills (Boolean), TerrainType (String) Map::IInstance::IterateNeighbors
Definitions::GetTerrainDefinitions
GameEffects::ArgumentFunction::GetFunctions
R&F, GS, BlackDeath, WarMachine Test 0x7efe50→0x8080d0
OnInitialize 0x7ef9c0→0x807ac0
REQUIREMENT_CITY_IS_CAPITAL (removed) — — — —
REQUIREMENT_CITY_IS_ORIGINAL_CAPITAL (untested in the community list) — GameEffects::Requirements::ConstRequirement::SetState Base game+ OnInitialize 0x87c7d0→0x895bd0
REQUIREMENT_CITY_IS_ORIGINAL_OWNER — GameEffects::Requirements::ConstRequirement::SetState GS, NFP, BlackDeath, WarMachine OnInitialize 0x89e390→0x8b73e0
REQUIREMENT_CITY_IS_OWNER_CAPITAL_CONTINENT — Player::Cities::GetCapitalCity
City::IInstance::GetPlot
Player::Instance::GetCapitalContinent
Base game+ Test 0x88c4e0→0x8a5d40
OnInitialize 0x88be40→0x8a5750
REQUIREMENT_CITY_IS_POWERED — City::Power::IsFullyPowered GS, NFP, BlackDeath, WarMachine Test 0x8f3f30→0x7f9860
OnInitialize 0x8f3a20→0x7f9370
REQUIREMENT_CITY_LIBERATED OnlyOwnersCity (Boolean) Player::Manager::Edit
Player::Diplomacy::HasMet
Base game+ Test 0x85e910→0x876a20
OnInitialize 0x85e080→0x876230
REQUIREMENT_CITY_LOCATION_MATCHES X (Integer), Y (Integer) GameEffects::ArgumentFunction::GetFunctions
GameEffects::Requirements::ConstRequirement::SetState
GS, BlackDeath, WarMachine OnInitialize 0x889b20→0x8a3030
REQUIREMENT_CITY_OCCUPIED OnlyOwnersCity (Boolean) Player::Manager::Edit
Player::Diplomacy::IsOccupyingOriginalCity
Base game+ Test 0x8ef950→0x7f5750
OnInitialize 0x8ef210→0x7f51b0
REQUIREMENT_CITY_OCCUPIED_FRIEND — Player::Diplomacy::IsOccupyingOriginalFriendCity Base game+ Test 0x8cb510→0x8e4780
OnInitialize 0x8cb3b0→0x8e43e0
REQUIREMENT_CITY_OWNER_ALLY_AT_WAR — Player::Diplomacy::IsAtWarWithAnyMajorCiv R&F, GS, NFP, BlackDeath, WarMachine Test 0x8c4ae0→0x8dedd0
OnInitialize 0x8c4790→0x8de7c0
REQUIREMENT_CITY_RAZED OnlyOwnersCity (Boolean) — Base game+ Test 0x8ce470→0x8e79b0
OnInitialize 0x8ce0d0→0x8e7650
REQUIREMENT_CITY_TRANSFER_TYPE_MATCHES TransferType (String) — Base game+ OnInitialize 0x8ae4a0→0x8c8150