OK so Riga is a Theocracy?
Then two possibilities from when I tested the HRE formation and confirmed it stopped the itinerant Pope:
1. Riga no longer existed by that point in my game, or had changed government. Unlikely?
2. Riga were an OPM, or had 5 or more provinces. Very likely?
Actually, it was hidden option 3!
Riga are Reformed in my game
Here's the event trigger for the event that fires when PAP no longer exists:
Code:
# The Papal State
country_event = {
id = 1082
title = "EVTNAME1082"
desc = "EVTDESC1082"
picture = POPE_PREACHING_eventPicture
trigger = {
NOT = { exists = PAP }
NOT = { exists = ITA }
religion = catholic
government = theocratic_government
is_at_war = no
NOT = { tag = TEU }
NOT = { tag = LIV }
num_of_cities = 2
NOT = { num_of_cities = 5 }
any_owned_province = {
is_capital = no
religion = catholic
continent = europe
}
118 = {
owner = {
OR = {
NOT = { religion = catholic }
has_country_flag = no_support
}
}
}
}
Specifics:
- The Papal State and Italy do not exist;
- Theocratic government; Catholic religion;
- Except Teutonic Order and Litvonian Order;
- Not at war
- 2, 3 or 4 provinces.
- Must have a province that is in Europe, that's not its capital, and is Catholic
- Roma must be held by a non-Catholic, or by a state that previously refused to release it to PAP ( 'no_support' flag)
Code:
immediate = {
hidden_effect = {
random_owned_province = {
limit = {
is_capital = no
religion = catholic
continent = europe
any_neighbor_province = {
NOT = { owned_by = ROOT }
}
}
set_province_flag = papal_province
...
option = {
name = "EVTOPTA1082"
ai_chance = { factor = 100 }
random_owned_province = {
limit = {
has_province_flag = papal_province
}
remove_core = ROOT
add_core = PAP
cede_province = PAP
clr_province_flag = papal_province
}
add_papal_influence = 50
add_prestige = 25
Specifically, any_neighbor_province = { NOT = { owned_by = ROOT } }
Doesn't this mean that this will only apply for an isolated province? It will cede to PAP only a province that belongs to the nation, which is Catholic and not its capital, AND which does not border any other province owned by that nation?
If correct, that significantly further restricts what provinces can cede. The strange thing is, that requirement is not in the trigger. This implies it can fire for any Theocracy and give them 25 prestige, without actually ceding a province from them? Because they meet the trigger but then the effect doesn't apply, and so the Option won't do anything.
EDIT: I just tested further, and it doesn't mean that. E.g., The Papal State re-appeared in Koblenz, after Trier accepted and ceded that province to it. Trier was a 2PM, Koblenz being its second province, and clearly neighbouring its first province. So I have no idea what this is doing or what it's for: any_neighbor_province = { NOT = { owned_by = ROOT } }
Last edited: