Fixing things

This commit is contained in:
Heidesommer 2026-05-28 09:09:00 -04:00
parent e2a877d018
commit cf10d05052
45 changed files with 8242 additions and 2221 deletions

View file

@ -413,100 +413,100 @@
# }
#}
#
### Mend the Great Schism ###
mend_the_great_schism_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
desc = mend_the_great_schism_decision_desc
selection_tooltip = mend_the_great_schism_decision_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 120
hegemony = 120
}
is_shown = {
is_ruler = yes
is_playable_character = yes
faith.religion = faith:roman_catholic.religion #Christian Only
NOT = { #Can only do it once.
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_mended_great_schism
}
}
highest_held_title_tier > 4 #Only Emperors
}
is_valid = {
piety_level >= max_piety_level
completely_controls = title:c_byzantion
completely_controls = title:c_antiocheia
completely_controls = title:c_jerusalem
completely_controls = title:c_alexandria
completely_controls = title:c_roma
custom_description = {
text = "mend_schism_byzantion_bishop"
title:c_byzantion.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
}
custom_description = {
text = "mend_schism_antiocheia_bishop"
title:c_antiocheia.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
}
custom_description = {
text = "mend_schism_jerusalem_bishop"
title:c_jerusalem.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
}
custom_description = {
text = "mend_schism_alexandria_bishop"
title:c_alexandria.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
}
custom_description = {
text = "mend_schism_roma_bishop"
title:c_roma.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
}
custom_description = {
text = "mend_schism_no_rite"
root.faith = { NOT = { has_doctrine_parameter = maintains_head_of_faith_on_creation } }
}
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
}
effect = {
gain_holy_legend_seed_tooltip_effect = yes
custom_tooltip = mend_the_great_schism_decision_effect_tooltip
show_as_tooltip = {
mend_great_schism_scripted_effect = yes
}
trigger_event = roman_restoration.0100
hidden_effect = {
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_mended_great_schism
}
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 100
}
}
#### Mend the Great Schism ###
#mend_the_great_schism_decision = {
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
# }
# desc = mend_the_great_schism_decision_desc
# selection_tooltip = mend_the_great_schism_decision_tooltip
# decision_group_type = major
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 0
# empire = 120
# hegemony = 120
# }
#
# is_shown = {
# is_ruler = yes
# is_playable_character = yes
# faith.religion = faith:roman_catholic.religion #Christian Only
# NOT = { #Can only do it once.
# is_target_in_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:flag_mended_great_schism
# }
# }
# highest_held_title_tier > 4 #Only Emperors
# }
#
# is_valid = {
# piety_level >= max_piety_level
# completely_controls = title:c_byzantion
# completely_controls = title:c_antiocheia
# completely_controls = title:c_jerusalem
# completely_controls = title:c_alexandria
# completely_controls = title:c_roma
# custom_description = {
# text = "mend_schism_byzantion_bishop"
# title:c_byzantion.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
# }
# custom_description = {
# text = "mend_schism_antiocheia_bishop"
# title:c_antiocheia.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
# }
# custom_description = {
# text = "mend_schism_jerusalem_bishop"
# title:c_jerusalem.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
# }
# custom_description = {
# text = "mend_schism_alexandria_bishop"
# title:c_alexandria.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
# }
# custom_description = {
# text = "mend_schism_roma_bishop"
# title:c_roma.holder.faith = root.faith #Either own County directly, or have a vassal of same religion.
# }
# custom_description = {
# text = "mend_schism_no_rite"
# root.faith = { NOT = { has_doctrine_parameter = maintains_head_of_faith_on_creation } }
# }
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# is_capable_adult = yes
# is_imprisoned = no
# top_liege = this
# }
#
# effect = {
# gain_holy_legend_seed_tooltip_effect = yes
# custom_tooltip = mend_the_great_schism_decision_effect_tooltip
# show_as_tooltip = {
# mend_great_schism_scripted_effect = yes
# }
# trigger_event = roman_restoration.0100
# hidden_effect = {
# add_to_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:flag_mended_great_schism
# }
# }
# }
#
# ai_potential = {
# always = yes
# }
#
# ai_will_do = {
# base = 100
# }
#}
#
#### Reclaim Constantinople ###
#set_capital_constantinople_decision = {
@ -789,277 +789,277 @@ mend_the_great_schism_decision = {
# }
#}
#
### Restore the Papacy ###
restore_papacy_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
desc = restore_papacy_decision_desc
selection_tooltip = restore_papacy_decision_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 12
empire = 12
hegemony = 12
}
is_shown = {
is_ruler = yes
is_playable_character = yes
religion = religion:catholic_religion
NOT = { faith = { exists = religious_head } }
highest_held_title_tier > 3 #Only Kings and Emperors
}
is_valid = {
completely_controls = title:c_roma
completely_controls = title:d_latium
completely_controls = title:d_spoleto
completely_controls = title:d_ancona
completely_controls = title:d_romagna
piety_level >= high_piety_level
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
}
effect = {
custom_tooltip = restore_papacy_decision_effect_tooltip
show_as_tooltip = {
restore_papacy_scripted_effect = yes
}
trigger_event = {
id = roman_restoration.0124
}
}
ai_potential = {
religion = religion:catholic_religion
highest_held_title_tier > 3 #Only Kings and Emperors
NOT = { faith = { exists = religious_head } }
}
ai_will_do = { #Always do it when possible.
base = 100
ai_value_modifier = {
ai_zeal = 1.0
}
modifier = {
factor = 0
has_trait = cynical
}
}
}
### Restore Pope in Rome ###
restore_pope_in_rome_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
desc = restore_pope_in_rome_decision_desc
selection_tooltip = restore_pope_in_rome_decision_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 12
empire = 12
hegemony = 12
}
is_shown = {
is_ruler = yes
is_playable_character = yes
religion = religion:catholic_religion
NOR = {
has_title = title:k_papal_state
is_roman_emperor_excluding_byzantium_trigger = yes
}
NOT = { title:c_roma.holder = { has_title = title:k_papal_state } }
NOT = { capital_county = { this = title:c_roma } }
title:k_papal_state.holder ?= {
NOT = {
has_opinion_modifier = { #Not accepting it if you conquered it yourself.
target = root
modifier = declared_war
}
}
NOT = {
has_opinion_modifier = { #Not accepting it if you conquered it yourself.
target = root
modifier = revoked_title
}
}
}
NOT = { has_character_flag = flag_already_given_rome_once }
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
highest_held_title_tier > 3 #Only Kings and Emperors
custom_tooltip = {
text = hof_exists_tt
faith = { exists = religious_head }
}
custom_tooltip = {
text = rome_held_by_you_or_vassal_tt
OR = {
title:c_roma.holder = {
any_liege_or_above = { this = root }
}
title:c_roma.holder = { this = root }
}
}
}
effect = {
add_piety = 1000
add_character_flag = flag_already_given_rome_once
create_title_and_vassal_change = {
type = returned
save_scope_as = change
add_claim_on_loss = no
}
title:c_roma = {
change_title_holder = {
holder = title:k_papal_state.holder
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
title:k_papal_state.holder = {
set_realm_capital = title:c_roma
add_opinion = {
target = prev
modifier = restored_papacy_opinion
}
}
}
ai_potential = {
religion = religion:catholic_religion
highest_held_title_tier > 3 #Only Kings and Emperors
}
ai_will_do = { #Do it always, for coherence.
base = 100
modifier = {
factor = 0
title:c_roma.holder = {
OR = {
is_ai = no
any_liege_or_above = { is_ai = no } # AI will never take Rome province away from a player.
}
}
}
modifier = {
factor = 0
has_trait = cynical
}
modifier = {
factor = 0
has_title = title:e_italy
}
}
}
### Dismantle the Papacy ###
dismantle_papacy_decision = { #For Muslims and Pagans.
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
desc = dismantle_papacy_decision_desc
selection_tooltip = dismantle_papacy_decision_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 60
empire = 60
hegemony = 60
}
is_shown = {
is_ruler = yes
is_playable_character = yes
faith:roman_catholic = {
has_doctrine = doctrine_spiritual_head
}
faith:roman_catholic = {
faith_hostility_level = {
target = root.faith
value >= faith_hostile_level
}
}
highest_held_title_tier > 3 #Only Kings and Emperors
capital_province = { #Indians could not possibly care...
OR = {
geographical_region = world_europe
geographical_region = world_middle_east
geographical_region = world_africa_north
}
}
}
is_valid = {
trigger_if = {
limit = {
exists = title:k_papal_state.holder
}
title:k_papal_state.holder = { is_landed = no } #If he fled elsewhere, it cannot be done, the Pope must be landless.
title:k_papal_state.holder = { is_at_war = no } #Shouldn't be possible during a Crusade
}
completely_controls_region = world_europe_south_italy
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
}
effect = {
custom_tooltip = dismantle_papacy_decision_effect_tooltip
gain_holy_legend_seed_tooltip_effect = yes
hidden_effect = {
legend_seed_great_deed_faith_effect = {
ANTAGONIST = title:k_papal_state.holder
OLD_FAITH = title:k_papal_state.holder.faith
}
}
show_as_tooltip = {
destroy_papacy_scripted_effect = yes
}
trigger_event = {
id = roman_restoration.0130
}
}
ai_potential = {
always = yes
}
ai_will_do = { #Do it always.
base = 100
}
}
#### Restore the Papacy ###
#restore_papacy_decision = {
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
# }
# desc = restore_papacy_decision_desc
# selection_tooltip = restore_papacy_decision_tooltip
# decision_group_type = major
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 12
# empire = 12
# hegemony = 12
# }
#
# is_shown = {
# is_ruler = yes
# is_playable_character = yes
# religion = religion:catholic_religion
# NOT = { faith = { exists = religious_head } }
# highest_held_title_tier > 3 #Only Kings and Emperors
# }
#
# is_valid = {
# completely_controls = title:c_roma
# completely_controls = title:d_latium
# completely_controls = title:d_spoleto
# completely_controls = title:d_ancona
# completely_controls = title:d_romagna
# piety_level >= high_piety_level
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# is_capable_adult = yes
# is_imprisoned = no
# top_liege = this
# }
#
# effect = {
# custom_tooltip = restore_papacy_decision_effect_tooltip
# show_as_tooltip = {
# restore_papacy_scripted_effect = yes
# }
# trigger_event = {
# id = roman_restoration.0124
# }
# }
#
# ai_potential = {
# religion = religion:catholic_religion
# highest_held_title_tier > 3 #Only Kings and Emperors
# NOT = { faith = { exists = religious_head } }
# }
#
# ai_will_do = { #Always do it when possible.
# base = 100
# ai_value_modifier = {
# ai_zeal = 1.0
# }
# modifier = {
# factor = 0
# has_trait = cynical
# }
# }
#}
#
#### Restore Pope in Rome ###
#restore_pope_in_rome_decision = {
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
# }
# desc = restore_pope_in_rome_decision_desc
# selection_tooltip = restore_pope_in_rome_decision_tooltip
# decision_group_type = major
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 12
# empire = 12
# hegemony = 12
# }
#
# is_shown = {
# is_ruler = yes
# is_playable_character = yes
# religion = religion:catholic_religion
# NOR = {
# has_title = title:k_papal_state
# is_roman_emperor_excluding_byzantium_trigger = yes
# }
# NOT = { title:c_roma.holder = { has_title = title:k_papal_state } }
# NOT = { capital_county = { this = title:c_roma } }
# title:k_papal_state.holder ?= {
# NOT = {
# has_opinion_modifier = { #Not accepting it if you conquered it yourself.
# target = root
# modifier = declared_war
# }
# }
# NOT = {
# has_opinion_modifier = { #Not accepting it if you conquered it yourself.
# target = root
# modifier = revoked_title
# }
# }
# }
# NOT = { has_character_flag = flag_already_given_rome_once }
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# is_capable_adult = yes
# is_imprisoned = no
# top_liege = this
# highest_held_title_tier > 3 #Only Kings and Emperors
# custom_tooltip = {
# text = hof_exists_tt
# faith = { exists = religious_head }
# }
# custom_tooltip = {
# text = rome_held_by_you_or_vassal_tt
# OR = {
# title:c_roma.holder = {
# any_liege_or_above = { this = root }
# }
# title:c_roma.holder = { this = root }
# }
# }
# }
#
# effect = {
# add_piety = 1000
# add_character_flag = flag_already_given_rome_once
# create_title_and_vassal_change = {
# type = returned
# save_scope_as = change
# add_claim_on_loss = no
# }
# title:c_roma = {
# change_title_holder = {
# holder = title:k_papal_state.holder
# change = scope:change
# }
# }
# resolve_title_and_vassal_change = scope:change
#
# title:k_papal_state.holder = {
# set_realm_capital = title:c_roma
# add_opinion = {
# target = prev
# modifier = restored_papacy_opinion
# }
# }
# }
#
# ai_potential = {
# religion = religion:catholic_religion
# highest_held_title_tier > 3 #Only Kings and Emperors
# }
#
# ai_will_do = { #Do it always, for coherence.
# base = 100
# modifier = {
# factor = 0
# title:c_roma.holder = {
# OR = {
# is_ai = no
# any_liege_or_above = { is_ai = no } # AI will never take Rome province away from a player.
# }
# }
# }
# modifier = {
# factor = 0
# has_trait = cynical
# }
# modifier = {
# factor = 0
# has_title = title:e_italy
# }
# }
#}
#
#### Dismantle the Papacy ###
#dismantle_papacy_decision = { #For Muslims and Pagans.
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
# }
# desc = dismantle_papacy_decision_desc
# selection_tooltip = dismantle_papacy_decision_tooltip
# decision_group_type = major
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 60
# empire = 60
# hegemony = 60
# }
#
# is_shown = {
# is_ruler = yes
# is_playable_character = yes
# faith:roman_catholic = {
# has_doctrine = doctrine_spiritual_head
# }
# faith:roman_catholic = {
# faith_hostility_level = {
# target = root.faith
# value >= faith_hostile_level
# }
# }
# highest_held_title_tier > 3 #Only Kings and Emperors
# capital_province = { #Indians could not possibly care...
# OR = {
# geographical_region = world_europe
# geographical_region = world_middle_east
# geographical_region = world_africa_north
# }
# }
# }
#
# is_valid = {
# trigger_if = {
# limit = {
# exists = title:k_papal_state.holder
# }
# title:k_papal_state.holder = { is_landed = no } #If he fled elsewhere, it cannot be done, the Pope must be landless.
# title:k_papal_state.holder = { is_at_war = no } #Shouldn't be possible during a Crusade
# }
# completely_controls_region = world_europe_south_italy
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# is_capable_adult = yes
# is_imprisoned = no
# top_liege = this
# }
#
# effect = {
# custom_tooltip = dismantle_papacy_decision_effect_tooltip
# gain_holy_legend_seed_tooltip_effect = yes
# hidden_effect = {
# legend_seed_great_deed_faith_effect = {
# ANTAGONIST = title:k_papal_state.holder
# OLD_FAITH = title:k_papal_state.holder.faith
# }
# }
# show_as_tooltip = {
# destroy_papacy_scripted_effect = yes
# }
# trigger_event = {
# id = roman_restoration.0130
# }
# }
#
# ai_potential = {
# always = yes
# }
#
# ai_will_do = { #Do it always.
# base = 100
# }
#}
#
##Uniting Italy
#### Unify Italy ###
@ -1276,7 +1276,7 @@ dismantle_papacy_decision = { #For Muslims and Pagans.
# completely_controls = title:d_cephalonia
# completely_controls = title:d_epirus
# completely_controls = title:d_athens
# completely_controls = title:d_achaia
# completely_controls = title:d_peloponnese
# }
#
# is_valid_showing_failures_only = {