I want to make every province about 9 population, 2 of each type but 1 for nobility. How can I do this other than doing it manually?
events = {
syr_flavour.1
flavor_sel.1
startup_events.1
startup_events.2
startup_events.7
tutorial.1
dhe_body.4
dhe_dde_pyrrhus.24
flavor_egy.8
dhe_mithridates.1
dhe_heraclea_pontica.1
makeupanamehere.1
}
namespace = makeupanamehere # you can remove this line if you have an existing event naming scheme
makeupanamehere.1 = {
type = country_event
hidden = yes
trigger = {
has_land = yes
tag = ROM
NOR = {
tag = REB
tag = PIR
tag = MER
tag = BAR
}
}
immediate = {
every_province = {
limit = {
any_pops_in_province = {
count >= 1
}
}
# KILL EXTRA POPS
# count NOBLES and kill
if = {
limit = {
any_pops_in_province = {
count > 1
pop_type = nobles
}
}
while = {
limit = {
any_pops_in_province = {
count > 1
pop_type = nobles
}
}
random_pops_in_province = {
limit = {
pop_type = nobles
}
kill_pop = yes
}
}
}
# count CITIZENS and kill
if = {
limit = {
any_pops_in_province = {
count > 2
pop_type = citizen
}
}
while = {
limit = {
any_pops_in_province = {
count > 2
pop_type = citizen
}
}
random_pops_in_province = {
limit = {
pop_type = citizen
}
kill_pop = yes
}
}
}
# count FREEMEN and kill
if = {
limit = {
any_pops_in_province = {
count > 2
pop_type = freemen
}
}
while = {
limit = {
any_pops_in_province = {
count > 2
pop_type = freemen
}
}
random_pops_in_province = {
limit = {
pop_type = freemen
}
kill_pop = yes
}
}
}
# count TRIBESMEN and kill
if = {
limit = {
any_pops_in_province = {
count > 2
pop_type = tribesmen
}
}
while = {
limit = {
any_pops_in_province = {
count > 2
pop_type = tribesmen
}
}
random_pops_in_province = {
limit = {
pop_type = tribesmen
}
kill_pop = yes
}
}
}
# count SLAVES and kill
if = {
limit = {
any_pops_in_province = {
count > 2
pop_type = slaves
}
}
while = {
limit = {
any_pops_in_province = {
count > 2
pop_type = slaves
}
}
random_pops_in_province = {
limit = {
pop_type = slaves
}
kill_pop = yes
}
}
}
# CREATE POPS
# create nobles
if = {
limit = {
any_pops_in_province = {
count < 1
pop_type = nobles
}
}
create_pop = nobles
}
# create CITIZENS
if = {
limit = {
any_pops_in_province = {
count < 2
pop_type = citizen
}
}
while = {
limit = {
any_pops_in_province = {
count < 2
pop_type = citizen
}
}
create_pop = citizen
}
}
# create FREEMEN
if = {
limit = {
any_pops_in_province = {
count < 2
pop_type = freemen
}
}
while = {
limit = {
any_pops_in_province = {
count < 2
pop_type = freemen
}
}
create_pop = freemen
}
}
# create TRIBESMEN
if = {
limit = {
any_pops_in_province = {
count < 2
pop_type = tribesmen
}
}
while = {
limit = {
any_pops_in_province = {
count < 2
pop_type = tribesmen
}
}
create_pop = tribesmen
}
}
# create SLAVES
if = {
limit = {
any_pops_in_province = {
count < 2
pop_type = slaves
}
}
while = {
limit = {
any_pops_in_province = {
count < 2
pop_type = slaves
}
}
create_pop = slaves
}
}
}
}
}