How can I make a building that can only go in certain provinces?
For example, a Port building that can only go in port cities, or a Farm building that can only go in cities with "Farmland" terrain, or a Mine building that can only go in Hill provinces that have Iron, Gemstones, Base Metals, etc.?
This is not working (building shows up, but can be built in any city, not just ports, even in provinces with zero coastal cities):
I have also tried can_build_building = { limit = { ... }} instead of trigger_if... but no success.
For example, a Port building that can only go in port cities, or a Farm building that can only go in cities with "Farmland" terrain, or a Mine building that can only go in Hill provinces that have Iron, Gemstones, Base Metals, etc.?
This is not working (building shows up, but can be built in any city, not just ports, even in provinces with zero coastal cities):
Code:
port_building = {
trigger_if = {
AND = {
province.is_port = yes
NOT = { province.owner.is_tribal = yes }
}
}
local_commerce_modifier = 0.15
supply_limit_modifier = 0.1
local_ship_recruit_speed = -0.025
local_state_trade_routes = 1
global_capital_trade_routes = 0.1
cost = 200
time = 210
order = 5
}
I have also tried can_build_building = { limit = { ... }} instead of trigger_if... but no success.