every_state = {
save_scope_as = checked_state
create_building = {
building="test_building"
add_ownership = {
building = {
type = "building_manor_house"
country = scope:checked_state.owner
levels = 2
region = scope:checked_state.state_region
}
country = {
country = scope:checked_state.owner
levels = 1
}
}
reserves=1
}
I want to create a new building in every state, and let them owrned by aristocrats.
However, errors occur:
[17:42:41][jomini_script_system.cpp:265]: Script system error!
Error: create_building effect [ Invalid state in for France for building ownership ]
Script location: file: common/history/global/00_breakout_breed_global.txt line: 10