Sea provinces can also be used as a global counters. Here's example (draft) that counts and checks number of catholic provinces in a country:
Code:
country_event = {
id = 28305121
trigger = {
NOT = { ai = yes }
}
mean_time_to_happen = {
days = 1
}
title = "Count"
desc = "Province counted"
option = {
name = "Great!"
random_owned = {
limit = {
religion = catholic
NOT = { has_province_flag = counted1 }
}
set_province_flag = counted1
1700 = { native_hostileness = +100 }
1700 = { native_size = +100 }
capital_scope = { native_hostileness = +100 }
}
}
}
country_event = {
id = 28305122
trigger = {
NOT = { ai = yes }
1700 = { native_hostileness = 300 }
}
mean_time_to_happen = {
days = 1
}
title = "Catholics >= 3"
desc = "by ocean"
option = {
name = "Great!"
}
}
country_event = {
id = 28305123
trigger = {
NOT = { ai = yes }
capital_scope = { native_hostileness = 300 }
}
mean_time_to_happen = {
days = 1
}
title = "Catholics >= 3"
desc = "by capital"
option = {
name = "Great!"
}
}