Event
Target Country Adjective Burghers Settle Target Location Destination

Burghers from Target Country have begun establishing themselves around Target Location Destination, building networks that link our trade more closely to the Middle Kingdom. Their presence promises new goods and prosperity, but some warn that it will give foreign traders undue influence over our economy.
Middle KingdomInternational Organizationtrigger
Sinicized vs UnsinicizedSocietal ValuetriggerDefinitionin_game/events/government/societal_values.txt:11031
11032type = country_event
11033title = societal_values.2318.title Target Country Adjective Burghers Settle Target Location Destination
11034desc = societal_values.2318.desc Burghers from Target Country have begun establishing themselves around Target Location Destination, building networks that link our trade more closely to the Middle Kingdom. Their presence promises new goods and prosperity, but some warn that it will give foreign traders undue influence over our economy.
11035outcome = neutral
11037illustration_tags = {
1103810 = regular
1103910 = interior
}
11042trigger = {
11043num_of_non_rural > 0
11044has_societal_value = societal_value_type:sinicized_vs_unsinicized
11047NOT = {
}
11048any_market_with_merchants = {
}
11050any_owned_non_rural_location = {
}
}
11055immediate = {
}
11057save_scope_as = target_country
}
11058ordered_owned_non_rural_location = {
11059limit = {
11060market = {
11060has_merchant = scope:target_country
}
}
11062order_by = {
11063value = location_population_percentage
11064multiply = -1
11065if = {
11066limit = {
11067market = {
11067has_merchant = scope:target_country
}
}
11069divide = 0.5
}
}
11072max = 8
11073check_range_bounds = no
11074add_to_list = 2318_destination_list
}
11078random_in_list = {
11079list = 2318_destination_list
11080save_scope_as = target_location_destination
11081province_definition = {
11081save_scope_as = target_province_definition_destination
}
11084province = {
11084save_scope_as = target_province_origin
}
}
11086scope:target_country = {
11087ordered_owned_non_rural_location = {
11088order_by = {
11089value = "distance_to_squared(scope:target_location_destination)"
11090multiply = -1
11091if = {
11092limit = {
11093market = {
11093has_merchant = ROOT
}
}
11095divide = 0.5
}
}
11098max = 8
11099check_range_bounds = no
11100province_definition = {
11101add_to_list = 2318_origin_list
}
}
}
11105random_in_list = {
11106list = 2318_origin_list
11107save_scope_as = target_province_definition_origin
}
}