scripted triggers
This commit is contained in:
parent
134dc3348b
commit
648b12fbf0
29 changed files with 1559 additions and 1060 deletions
|
|
@ -4,11 +4,7 @@
|
|||
|
||||
building_requirement_tribal = {
|
||||
scope:holder ?= {
|
||||
OR = {
|
||||
government_has_flag = government_is_tribal
|
||||
government_has_flag = government_is_nomadic
|
||||
government_has_flag = government_is_wanua
|
||||
}
|
||||
government_has_flag = government_is_tribal
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -18,6 +14,14 @@ building_requirement_wanua = {
|
|||
}
|
||||
}
|
||||
|
||||
building_requirement_non_tribal = {
|
||||
NOT = {
|
||||
scope:holder ?= {
|
||||
government_has_flag = government_is_tribal
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_requirement_tribal_holding_in_county = {
|
||||
NOT = {
|
||||
county = {
|
||||
|
|
@ -129,41 +133,6 @@ building_requirement_castle_city_church = {
|
|||
}
|
||||
}
|
||||
|
||||
building_requirement_castle_city_church_temple_citadel_tribe = {
|
||||
trigger_if = {
|
||||
limit = { has_holding_type = castle_holding }
|
||||
has_building_or_higher = castle_$LEVEL$
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { has_holding_type = city_holding }
|
||||
has_building_or_higher = city_$LEVEL$
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { has_holding_type = church_holding }
|
||||
has_building_or_higher = temple_$LEVEL$
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { has_holding_type = temple_citadel_holding }
|
||||
has_building_or_higher = temple_citadel_$LEVEL$
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { has_holding_type = tribal_holding }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
$LEVEL$ > 1
|
||||
}
|
||||
has_building_or_higher = tribe_02
|
||||
}
|
||||
trigger_else = { has_building_or_higher = tribe_01 }
|
||||
}
|
||||
trigger_else = {
|
||||
custom_description = {
|
||||
text = "building_requirement_castle_city_church_tribe_failed"
|
||||
always = no
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
######################################################################
|
||||
# Special
|
||||
######################################################################
|
||||
|
|
@ -191,167 +160,6 @@ building_university_requirement = {
|
|||
# Terrain
|
||||
######################################################################
|
||||
|
||||
building_common_tradeport_requirement_terrain = {
|
||||
OR = {
|
||||
is_coastal = yes
|
||||
is_riverside_province = yes
|
||||
}
|
||||
}
|
||||
|
||||
building_pastures_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = plains
|
||||
terrain = steppe
|
||||
terrain = desert
|
||||
terrain = drylands
|
||||
terrain = oasis
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = floodplains
|
||||
AND = {
|
||||
terrain = jungle
|
||||
NOT = { geographical_region = world_innovation_elephants }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_hunting_grounds_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = plains
|
||||
terrain = drylands
|
||||
terrain = steppe
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = taiga
|
||||
terrain = forest
|
||||
terrain = jungle
|
||||
terrain = wetlands
|
||||
}
|
||||
}
|
||||
|
||||
building_orchards_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = floodplains
|
||||
terrain = oasis
|
||||
has_building_or_higher = qanats_05
|
||||
culture = {
|
||||
has_cultural_parameter = vegetarian_fruit_orchard_allowed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_farm_estates_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
AND = {
|
||||
OR = {
|
||||
terrain = hills
|
||||
terrain = jungle
|
||||
}
|
||||
county.culture = { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_tell_mines_requirement_terrain = {
|
||||
terrain = tells
|
||||
}
|
||||
building_military_camps_requirement_terrain = {
|
||||
#OR = { # All Terrains
|
||||
# terrain = farmlands
|
||||
# terrain = plains
|
||||
# terrain = drylands
|
||||
# terrain = desert
|
||||
# terrain = oasis
|
||||
# terrain = floodplains
|
||||
# terrain = steppe
|
||||
# terrain = mountains
|
||||
# terrain = desert_mountains
|
||||
# terrain = wetlands
|
||||
# terrain = forest
|
||||
# terrain = taiga
|
||||
# terrain = jungle
|
||||
# terrain = hills
|
||||
#}
|
||||
}
|
||||
|
||||
building_regimental_grounds_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = floodplains
|
||||
terrain = farmlands
|
||||
}
|
||||
}
|
||||
|
||||
building_ramparts_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = taiga
|
||||
terrain = forest
|
||||
terrain = jungle
|
||||
}
|
||||
}
|
||||
|
||||
building_curtain_walls_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = plains
|
||||
terrain = wetlands
|
||||
terrain = floodplains
|
||||
}
|
||||
}
|
||||
|
||||
building_watchtowers_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = desert
|
||||
terrain = drylands
|
||||
terrain = oasis
|
||||
terrain = steppe
|
||||
}
|
||||
}
|
||||
|
||||
building_paddy_fields_requirement_terrain = {
|
||||
custom_tooltip = {
|
||||
text = building_paddy_fields_requirement_terrain_tt
|
||||
OR = {
|
||||
terrain = terraced_hills
|
||||
AND = {
|
||||
terrain = floodplains
|
||||
OR = {
|
||||
geographical_region = graphical_east_asia
|
||||
geographical_region = custom_viet_lands
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
terrain = wetlands
|
||||
county.culture = { has_cultural_parameter = champa_rice_wet_land_paddies }
|
||||
}
|
||||
AND = {
|
||||
OR = {
|
||||
terrain = hills
|
||||
terrain = jungle
|
||||
}
|
||||
county.culture = { has_cultural_parameter = rice_cultivators_can_construct_paddy_fields_in_hills_and_jungle }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_potato_fields_requirement_terrain = {
|
||||
custom_tooltip = {
|
||||
text = building_potato_fields_requirement_terrain_tt
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = plains
|
||||
terrain = steppe
|
||||
terrain = mountains
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_cereal_fields_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
|
|
@ -370,239 +178,9 @@ building_cereal_fields_requirement_terrain = {
|
|||
has_county_modifier = dodekapolis_modifier
|
||||
}
|
||||
}
|
||||
|
||||
has_building_or_higher = qanats_05
|
||||
}
|
||||
}
|
||||
|
||||
building_outposts_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = wetlands
|
||||
terrain = taiga
|
||||
terrain = forest
|
||||
terrain = jungle
|
||||
}
|
||||
}
|
||||
|
||||
building_barracks_requirement_terrain = {
|
||||
#OR = {
|
||||
# terrain = farmlands
|
||||
# terrain = plains
|
||||
# terrain = drylands
|
||||
# terrain = floodplains # new
|
||||
# terrain = hills
|
||||
# terrain = mountains
|
||||
# terrain = forest
|
||||
# terrain = taiga
|
||||
# terrain = jungle
|
||||
# terrain = wetlands
|
||||
# terrain = steppe
|
||||
#}
|
||||
}
|
||||
|
||||
building_camel_farms_requirement_terrain = {
|
||||
geographical_region = world_innovation_camels # new
|
||||
OR = {
|
||||
terrain = desert
|
||||
terrain = desert_mountains
|
||||
terrain = oasis
|
||||
terrain = floodplains
|
||||
terrain = drylands # new
|
||||
}
|
||||
}
|
||||
|
||||
building_stables_requirement_terrain = {
|
||||
# All terrains
|
||||
}
|
||||
|
||||
building_smiths_requirement_terrain = {
|
||||
# All terrains
|
||||
}
|
||||
|
||||
building_workshops_requirement_terrain = {
|
||||
# All terrains
|
||||
}
|
||||
|
||||
building_logging_camps_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = taiga
|
||||
terrain = forest
|
||||
terrain = jungle
|
||||
}
|
||||
}
|
||||
|
||||
building_peat_quarries_requirement_terrain = {
|
||||
terrain = wetlands
|
||||
}
|
||||
|
||||
building_hill_farms_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = terraced_hills
|
||||
}
|
||||
}
|
||||
|
||||
building_elephant_pens_requirement_terrain = {
|
||||
terrain = jungle
|
||||
OR = {
|
||||
geographical_region = world_innovation_elephants
|
||||
culture = { has_cultural_parameter = elephant_pens_building_bonuses }
|
||||
}
|
||||
}
|
||||
|
||||
building_horse_pastures_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = steppe
|
||||
geographical_region = world_steppe_east
|
||||
culture = { has_cultural_parameter = unlock_horse_pastures_building }
|
||||
}
|
||||
}
|
||||
|
||||
building_plantations_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = drylands
|
||||
terrain = desert
|
||||
terrain = oasis
|
||||
}
|
||||
}
|
||||
|
||||
building_quarries_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
culture = { has_cultural_parameter = can_build_quarries_everywhere }
|
||||
}
|
||||
}
|
||||
|
||||
building_warrior_lodges_requirement_terrain = {
|
||||
OR = {
|
||||
AND = {
|
||||
OR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
}
|
||||
NOT = { geographical_region = world_horse_buildings_in_hills_and_mountains }
|
||||
}
|
||||
culture = { has_cultural_parameter = warrior_lodges_lift_restrictions }
|
||||
}
|
||||
}
|
||||
|
||||
building_hillside_grazing_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
}
|
||||
geographical_region = world_horse_buildings_in_hills_and_mountains
|
||||
}
|
||||
|
||||
building_wind_furnace_requirement_terrain = {
|
||||
geographical_region = world_india
|
||||
OR = {
|
||||
is_coastal = yes
|
||||
AND = {
|
||||
scope:holder.top_liege = {
|
||||
any_realm_county = {
|
||||
any_county_province = {
|
||||
has_building_or_higher = konasamudram_mines_01
|
||||
}
|
||||
}
|
||||
}
|
||||
duchy = {
|
||||
any_de_jure_county = {
|
||||
any_county_province = {
|
||||
has_building_or_higher = konasamudram_mines_01
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
scope:holder.culture = { has_innovation = innovation_wootz_steel }
|
||||
}
|
||||
|
||||
building_hill_forts_requirement_terrain = {
|
||||
OR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = terraced_hills
|
||||
}
|
||||
}
|
||||
|
||||
building_windmills_requirement_terrain = {
|
||||
county ?= {
|
||||
any_county_province = {
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = plains
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
is_coastal = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_watermills_requirement_terrain = {
|
||||
county ?= {
|
||||
any_county_province = {
|
||||
OR = {
|
||||
terrain = mountains
|
||||
terrain = wetlands
|
||||
terrain = forest
|
||||
terrain = taiga
|
||||
terrain = jungle
|
||||
terrain = terraced_hills
|
||||
is_riverside_province = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_caravanserai_requirement_terrain = {
|
||||
county ?= {
|
||||
any_county_province = {
|
||||
OR = {
|
||||
terrain = drylands
|
||||
terrain = desert
|
||||
terrain = oasis
|
||||
terrain = floodplains
|
||||
terrain = steppe
|
||||
terrain = desert_mountains
|
||||
AND = {
|
||||
geographical_region = world_europe_west_iberia
|
||||
has_global_variable = fp2_struggle_conciliation_ending
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_qanats_requirement_terrain = {
|
||||
county ?= {
|
||||
culture = { has_cultural_parameter = unlocks_qanat_building }
|
||||
county_has_province_with_terrain = {
|
||||
terrain = hills
|
||||
terrain = tells
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
terrain = desert
|
||||
terrain = drylands
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_hospices_requirement_terrain = {
|
||||
|
||||
}
|
||||
|
||||
has_any_special_mine_trigger = {
|
||||
has_building_with_flag = special_mine
|
||||
#OR = {
|
||||
|
|
@ -638,6 +216,21 @@ has_any_special_mine_trigger = {
|
|||
#}
|
||||
}
|
||||
|
||||
# County scope. Pearl banks where fisheries can build Pearl Fisheries.
|
||||
pearl_fishing_banks_county_trigger = {
|
||||
has_county_modifier = pearl_fishing_banks_modifier
|
||||
}
|
||||
|
||||
# County scope. Walrus grounds where fish and furs districts can build Walrus Hunting Camps.
|
||||
walrus_ivory_county_trigger = {
|
||||
has_county_modifier = walrus_ivory_modifier
|
||||
}
|
||||
|
||||
# County scope. Naphta springs where resource districts can build Naphta Pits.
|
||||
naphta_county_trigger = {
|
||||
has_county_modifier = naphta_modifier
|
||||
}
|
||||
|
||||
######################################################################
|
||||
# Baronies that cannot have a holding (intended for Sahara)
|
||||
######################################################################
|
||||
|
|
@ -707,7 +300,6 @@ has_any_building_of_level_trigger = {
|
|||
has_building = orchards_$BUILDING_LEVEL$
|
||||
has_building = farm_estates_$BUILDING_LEVEL$
|
||||
has_building = regimental_grounds_$BUILDING_LEVEL$
|
||||
has_building = monastic_schools_$BUILDING_LEVEL$
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -765,87 +357,13 @@ has_lesser_building_trigger = {
|
|||
trigger_else = { always = no } # Must already be highest tier possible
|
||||
}
|
||||
|
||||
# can this building be added?
|
||||
add_random_building_trigger = {
|
||||
building_$BUILDING$_requirement_terrain = yes # terrain fits building type
|
||||
trigger_if = { # if all slots are full, this building type exists already
|
||||
limit = { free_building_slots = 0 }
|
||||
has_building_or_higher = $BUILDING$_01
|
||||
NOT = {
|
||||
has_lesser_building_trigger = { COMPARE = $BUILDING$ }
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
NOT = { has_building_or_higher = $BUILDING$_01 }
|
||||
}
|
||||
}
|
||||
|
||||
# Innovation and holding level triggers for most economic buildings
|
||||
generic_economic_building_innovation_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_crop_rotation }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_manorialism }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_guilds }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_cranes }
|
||||
}
|
||||
}
|
||||
|
||||
# Innovation and holding level triggers for most fortification buildings
|
||||
generic_fortification_building_innovations_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_motte }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_battlements }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_hoardings }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_machicolations }
|
||||
}
|
||||
}
|
||||
|
||||
# Innovation and holding level triggers for most recruitment buildings
|
||||
generic_recruitment_building_innovations_trigger = {
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_01 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_barracks }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_02 }
|
||||
building_requirement_castle_city_church = { LEVEL = 02 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_burhs }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_04 }
|
||||
building_requirement_castle_city_church = { LEVEL = 03 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_castle_baileys }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { has_building_or_higher = $BUILDING$_06 }
|
||||
building_requirement_castle_city_church = { LEVEL = 04 }
|
||||
scope:build_owner.culture = { has_innovation = innovation_royal_armory }
|
||||
######################################################################
|
||||
# Mint unlock trigger. Province scope.
|
||||
######################################################################
|
||||
mint_building_unlock_early_medieval_trigger = {
|
||||
custom_description = {
|
||||
text = mint_building_unlock_early_medieval_trigger_desc
|
||||
culture = { has_innovation = innovation_currency_02 }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -971,62 +489,12 @@ religious_special_building_exclusion_trigger = { # checks if any special buildin
|
|||
}
|
||||
}
|
||||
|
||||
building_monastic_schools_holding_level_requirement_trigger = {
|
||||
trigger_if = {
|
||||
limit = { scope:holder.rite = { rite_has_parameter = monastic_schools_allowed_in_every_holding_type } }
|
||||
OR = {
|
||||
has_building_or_higher = castle_$LEVEL$
|
||||
has_building_or_higher = city_$LEVEL$
|
||||
has_building_or_higher = temple_$LEVEL$
|
||||
has_building_or_higher = temple_citadel_$LEVEL$
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
has_building_or_higher = temple_$LEVEL$
|
||||
}
|
||||
}
|
||||
|
||||
building_murex_farm_requirement_terrain = {
|
||||
is_county_capital = yes
|
||||
building_murex_fisheries_requirement_trigger = {
|
||||
is_coastal = yes
|
||||
geographical_region = mediteranean_coast
|
||||
NOR = {
|
||||
this.barony = title:b_salmydessus
|
||||
this.barony = title:b_chelai
|
||||
}
|
||||
}
|
||||
|
||||
building_waterworks_requirement_terrain = {
|
||||
is_county_capital = yes
|
||||
NOR = {
|
||||
terrain = mountains
|
||||
terrain = desert_mountains
|
||||
}
|
||||
scope:holder.culture = { has_cultural_parameter = unlocks_waterworks_buildings }
|
||||
}
|
||||
|
||||
building_spice_plantation_requirement_terrain = {
|
||||
is_county_capital = yes
|
||||
|
||||
# cloves, nutmeg: present on Muluku Islands
|
||||
# cinnamomum verum: India, Sri Lanka, Bangladesh and Myanmar
|
||||
# cinnamomum malabathrum: Eastern Himalayas & Western Ghats
|
||||
OR = {
|
||||
geographical_region = world_asia_southeast_mainland
|
||||
geographical_region = world_asia_borneo
|
||||
geographical_region = world_asia_sulawesi_maluku
|
||||
geographical_region = world_asia_indonesia
|
||||
geographical_region = world_india
|
||||
}
|
||||
OR = {
|
||||
terrain = jungle
|
||||
terrain = farmlands
|
||||
terrain = terraced_hills
|
||||
terrain = plains
|
||||
}
|
||||
}
|
||||
|
||||
building_examination_hall_requirement_terrain = {
|
||||
building_examination_hall_requirement = {
|
||||
is_county_capital = yes
|
||||
|
||||
scope:holder = {
|
||||
|
|
@ -1034,97 +502,249 @@ building_examination_hall_requirement_terrain = {
|
|||
}
|
||||
}
|
||||
|
||||
building_breweries_requirement = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
has_building_or_higher = temple_$NUMBER$
|
||||
building_manor_tower_requirement = {
|
||||
OR = {
|
||||
has_holding_type = castle_holding
|
||||
is_county_capital = yes
|
||||
}
|
||||
}
|
||||
|
||||
# Keeps the Governance Quarter slot free for the Construct Great Barracks great project
|
||||
building_requirement_no_great_barracks_project = {
|
||||
custom_tooltip = {
|
||||
text = great_project_type_construct_great_barracks_reserves_slot
|
||||
NOT = {
|
||||
any_great_project_in_province = {
|
||||
great_project_type = construct_great_barracks
|
||||
OR = {
|
||||
great_project_construction_phase_is = planned
|
||||
great_project_construction_phase_is = in_progress
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Gunpowder buildings; either innovation unlocks them
|
||||
building_gunpowder_trigger = {
|
||||
culture = {
|
||||
OR = {
|
||||
religion = religion:catholic_religion
|
||||
rite = { rite_has_parameter = allows_brewery }
|
||||
has_innovation = innovation_gunpowder
|
||||
has_innovation = innovation_fire_medicine
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
building_requirement_castle_city_church = { LEVEL = $NUMBER$ }
|
||||
culture = { has_cultural_parameter = allows_brewery }
|
||||
}
|
||||
}
|
||||
|
||||
#building_powder_magazine_requirement = {
|
||||
# scope:build_owner.culture = {
|
||||
# OR = {
|
||||
# has_innovation = innovation_gunpowder
|
||||
# has_innovation = innovation_fire_medicine
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
|
||||
building_leclerc_dyeworks_requirement_terrain = {
|
||||
is_county_capital = yes
|
||||
OR = {
|
||||
this.barony = title:b_paris
|
||||
this.barony = title:b_toulouse
|
||||
this.barony = title:b_bordeaux
|
||||
this.barony = title:b_saumur
|
||||
this.barony = title:b_marseille
|
||||
this.barony = title:b_lyon
|
||||
this.barony = title:b_roanne
|
||||
}
|
||||
}
|
||||
|
||||
building_doggerland_ivory_deposits_requirement_terrain = {
|
||||
OR = {
|
||||
this.barony = title:b_favrsted
|
||||
this.barony = title:b_fljot
|
||||
this.barony = title:b_akranes
|
||||
this.barony = title:b_melar
|
||||
this.barony = title:b_hestr
|
||||
this.barony = title:b_storo
|
||||
this.barony = title:b_flekkevinger
|
||||
this.barony = title:b_ydreoer
|
||||
this.barony = title:b_lileo
|
||||
}
|
||||
}
|
||||
|
||||
building_vineyards_requirement = {
|
||||
AND = {
|
||||
exists = root.culture
|
||||
######################################################################
|
||||
# Duchy capital building trigger
|
||||
######################################################################
|
||||
can_have_duchy_capital_building_trigger = {
|
||||
county.holder = {
|
||||
trigger_if = {
|
||||
limit = { exists = root.culture }
|
||||
root.culture ?= { has_cultural_parameter = allows_vineyards }
|
||||
limit = {
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
capital_county = prev.county
|
||||
highest_held_title_tier >= tier_duchy
|
||||
}
|
||||
OR = {
|
||||
terrain = farmlands
|
||||
terrain = plains
|
||||
terrain = hills
|
||||
trigger_else = {
|
||||
has_title = prev.duchy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
building_communal_settlement_requirement = {
|
||||
OR = {
|
||||
AND = {
|
||||
exists = scope:holder.faith
|
||||
trigger_if = {
|
||||
limit = { exists = scope:holder.faith }
|
||||
scope:holder.faith ?= { has_doctrine_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
building_requirement_meat_allowed = {
|
||||
NOT = { culture = { has_cultural_parameter = vegetarianism_no_meat_buildings } }
|
||||
NOT = { rite = { rite_has_parameter = meat_forbidden } }
|
||||
}
|
||||
|
||||
AND = {
|
||||
exists = root.faith
|
||||
trigger_if = {
|
||||
limit = { exists = root.faith }
|
||||
root.faith ?= { has_doctrine_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
|
||||
AND = {
|
||||
exists = root.culture
|
||||
trigger_if = {
|
||||
limit = { exists = root.culture }
|
||||
root.culture ?= { has_cultural_parameter = allows_communal_settlement }
|
||||
}
|
||||
}
|
||||
building_requirement_winter_region = {
|
||||
NOR = {
|
||||
terrain = desert
|
||||
terrain = oasis
|
||||
terrain = drylands
|
||||
terrain = desert_mountains
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
geographical_region = world_europe_north
|
||||
geographical_region = world_europe_west
|
||||
geographical_region = world_europe_east
|
||||
geographical_region = world_steppe
|
||||
geographical_region = world_tibet
|
||||
geographical_region = world_asia_china
|
||||
geographical_region = world_asia_japan
|
||||
geographical_region = world_asia_sakhalin_hokkaido
|
||||
geographical_region = world_asia_korea
|
||||
geographical_region = world_asia_north_east
|
||||
}
|
||||
}
|
||||
|
||||
building_requirement_pasta_region = {
|
||||
OR = {
|
||||
geographical_region = world_africa_north
|
||||
geographical_region = world_europe_south_italy
|
||||
}
|
||||
}
|
||||
|
||||
######################################################################
|
||||
# Per-domain building unlock triggers. Province scope, no era fallback.
|
||||
######################################################################
|
||||
|
||||
building_farmed_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_crop_rotation }
|
||||
}
|
||||
building_farmed_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_heavy_plow }
|
||||
}
|
||||
building_farmed_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_windmills }
|
||||
}
|
||||
building_farmed_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_putting_out_system }
|
||||
}
|
||||
|
||||
building_artisanal_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_craft_ordinances }
|
||||
}
|
||||
building_artisanal_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_windmills }
|
||||
}
|
||||
building_artisanal_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_putting_out_system }
|
||||
}
|
||||
|
||||
# Forest goods resource districts
|
||||
building_forest_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_coppicing }
|
||||
}
|
||||
building_forest_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_windmills }
|
||||
}
|
||||
building_forest_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_putting_out_system }
|
||||
}
|
||||
|
||||
# Mineral resource districts
|
||||
building_mineral_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_prospecting }
|
||||
}
|
||||
building_mineral_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_windmills }
|
||||
}
|
||||
building_mineral_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_deep_mining }
|
||||
}
|
||||
|
||||
# Maritime: the Fishery resource district and the Port district
|
||||
building_maritime_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_armilary_sphere }
|
||||
}
|
||||
building_maritime_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_merchant_law }
|
||||
}
|
||||
building_maritime_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_pilot_books }
|
||||
}
|
||||
|
||||
building_rural_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_manorialism }
|
||||
}
|
||||
building_rural_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_land_grants }
|
||||
}
|
||||
building_rural_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_agronomy }
|
||||
}
|
||||
|
||||
building_communal_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_prosperity_02 }
|
||||
}
|
||||
building_urban_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_prosperity_03 }
|
||||
}
|
||||
building_masonry_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_bricks }
|
||||
}
|
||||
|
||||
building_commerce_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_currency_02 }
|
||||
}
|
||||
building_commerce_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_merchant_law }
|
||||
}
|
||||
building_commerce_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_currency_04 }
|
||||
}
|
||||
|
||||
building_administrative_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_baliffs }
|
||||
}
|
||||
building_administrative_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_divine_right }
|
||||
}
|
||||
building_administrative_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_court_officials }
|
||||
}
|
||||
|
||||
building_religious_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_monasticism }
|
||||
}
|
||||
building_stonework_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_vaulting }
|
||||
}
|
||||
|
||||
# Fortification districts and castle holdings
|
||||
building_fortification_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_motte }
|
||||
}
|
||||
building_fortification_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_battlements }
|
||||
}
|
||||
building_fortification_high_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_hoardings }
|
||||
}
|
||||
building_fortification_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_machicolations }
|
||||
}
|
||||
|
||||
# Recruitment: military districts and knights
|
||||
building_recruitment_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_barracks }
|
||||
}
|
||||
building_recruitment_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_house_soldiers }
|
||||
}
|
||||
building_recruitment_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_standing_armies }
|
||||
}
|
||||
|
||||
building_courtly_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_plenary_assemblies }
|
||||
}
|
||||
building_courtly_early_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_royal_prerogative }
|
||||
}
|
||||
building_courtly_late_medieval_trigger = {
|
||||
culture = { has_innovation = innovation_ermine_cloaks }
|
||||
}
|
||||
|
||||
# Settlement primaries
|
||||
building_settlement_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_city_planning }
|
||||
}
|
||||
|
||||
# Holding district primaries, unlocked by culture era instead of innovation
|
||||
building_holding_early_medieval_trigger = {
|
||||
culture = { has_cultural_era_or_later = culture_era_early_medieval }
|
||||
}
|
||||
building_holding_high_medieval_trigger = {
|
||||
culture = { has_cultural_era_or_later = culture_era_high_medieval }
|
||||
}
|
||||
building_holding_late_medieval_trigger = {
|
||||
culture = { has_cultural_era_or_later = culture_era_late_medieval }
|
||||
}
|
||||
|
||||
# Historical special buildings, for the first tier of anything not already standing in 867
|
||||
building_monument_tribal_trigger = {
|
||||
culture = { has_innovation = innovation_prosperity_01 }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue