diff --git a/common/decisions/00_holy_order_decisions.txt b/common/decisions/00_holy_order_decisions.txt index 39c7a39e2..281482202 100644 --- a/common/decisions/00_holy_order_decisions.txt +++ b/common/decisions/00_holy_order_decisions.txt @@ -483,3 +483,680 @@ cancel_holy_order_lease_decision = { } } } + +create_holy_order_monastic_decision = { + picture = { + trigger = { + culture = { has_graphical_east_asia_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/holding_types/tgp_chinese_pagoda.dds" + } + picture = { + trigger = { + culture = { has_graphical_india_culture_group_trigger = yes } + } + reference = "gfx/interface/illustrations/holding_types/tgp_castle_se_asia.dds" + } + picture = { + reference = "gfx/interface/illustrations/decisions/pam_pre-romanesque_church_exterior.dds" + } + decision_group_type = major + + ai_goal = yes + + cooldown = { years = 10 } + + is_shown = { + is_landed = yes + highest_held_title_tier >= tier_duchy + faith ?= { + faith_has_monasticism_trigger = yes + NOT = { + any_faith_holy_order = { + #Can be military patron and found monastic order + leader ?= { + government_has_flag = government_is_monastic_holy_order + } + holy_order_patron ?= root + } + } + + } + } + + cost = { + gold = { + value = 0 + if = { + limit = { + has_treasury = no + } + add = monastic_order_gold_cost + } + } + treasury = { + value = 0 + if = { + limit = { + has_treasury = yes + } + add = monastic_order_gold_cost + } + } + piety = { + value = monastic_order_piety_cost + } + } + + widget = { + controller = select_county_title_in_realm + + title_valid = { + trigger_if = { + limit = { exists = this } + county_is_valid_for_monastic_lease_trigger = { CHARACTER = scope:ruler } + } + trigger_else = { + custom_description = { + text = "has_holy_order_county_selected" + always = no + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_at_war = no + } + + is_valid = { + + custom_tooltip = { + text = has_temple_for_monastic_tt + save_temporary_scope_as = root_temp + any_held_county = { + county_is_valid_for_monastic_lease_trigger = { CHARACTER = root } + } + } + trigger_if = { + limit = { + has_pam_dlc_trigger = yes + } + OR = { + custom_tooltip = { + text = government_is_theocracy + government_has_flag = government_is_theocracy + } + custom_tooltip = { + text = has_clerical_puppet_tt + OR = { + exists = root.puppet:theological_agent_puppet + exists = root.puppet:external_theological_agent_puppet + } + } + } + } + + trigger_if = { + limit = { + is_ai = yes + } + piety_level >= 1 + } + trigger_else = { + piety_level >= 3 + } + } + + effect = { + create_monastic_decision_effect = yes + } + + ai_potential = { + highest_held_title_tier >= tier_duchy + is_playable_character = yes + any_held_county = { + county_is_valid_for_monastic_lease_trigger = { CHARACTER = root } + } + } + + ai_will_do = { + base = 200 + modifier = { + add = { + faith = { + # Don't create more than 20 monastic orders for a faith + every_faith_holy_order = { + subtract = 10 + } + } + } + } + modifier = { + government_has_flag = government_is_mandala + add = -150 + } + modifier = { + gold <= monastic_order_gold_cost + piety <= monastic_order_piety_cost + factor = 0 + } + } +} + +pam_monastic_order_new_movement_decision = { + picture = { + trigger = { + culture = { + OR = { + has_graphical_east_asia_culture_group_trigger = yes + has_graphical_india_culture_group_trigger = yes + } + } + } + reference = "gfx/interface/illustrations/holding_types/tgp_decision_mandala.dds" + } + picture = { + reference = "gfx/interface/illustrations/decisions/pam_decision_reform_monastic_endowment.dds" + } + decision_group_type = major + + ai_goal = yes + + cooldown = { years = 10 } + + is_shown = { + is_landed = yes + highest_held_title_tier >= tier_duchy + #Show when you have any order in your sub-realm you might want to replace + any_sub_realm_barony = { + barony_is_valid_to_be_transferred_by_monastic_movement_trigger = { CHARACTER = root } + } + faith = { + faith_has_monasticism_trigger = yes + } + } + + widget = { + controller = select_barony_title_in_realm + + title_valid = { + trigger_if = { + limit = { exists = this } + county.holder ?= scope:ruler + is_under_holy_order_lease = yes + lessee ?= { + government_has_flag = government_is_monastic_holy_order + holy_order ?= { + NOT = { holy_order_patron ?= scope:ruler } + } + } + } + trigger_else = { + custom_description = { + text = "pam_monastic_order_new_movement_decision_select_barony_tt" + always = no + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + trigger_if = { + limit = { + monastic_movement_non_order_size_reqs_trigger = no + } + custom_tooltip = { + text = monastic_movement_order_too_small_tt + any_held_county = { + any_county_province = { + barony = { + barony_is_valid_to_be_transferred_by_monastic_movement_trigger = { CHARACTER = root } + lessee.holy_order = { + num_leased_titles >= 10 + } + } + } + } + } + } + } + is_valid = { + custom_tooltip = { + text = has_monastic_movement_lease_tt + any_held_county = { + any_county_province = { + barony = { + barony_is_valid_to_be_transferred_by_monastic_movement_trigger = { CHARACTER = root } + } + } + } + } + trigger_if = { + limit = { + has_pam_dlc_trigger = yes + NOT = { + government_has_flag = government_is_theocracy + } + } + custom_tooltip = { + text = has_theological_agent_puppet_tt + exists = root.puppet:theological_agent_puppet + } + } + trigger_else = { + OR = { + AND = { + has_trait = lifestyle_scholar + has_trait_xp = { + trait = lifestyle_scholar + value >= 60 + } + } + has_trait = theologian + has_trait = erudite + has_trait = lifestyle_mystic + has_trait = devoted + has_trait = family_first + has_trait = diplomat + has_trait = schemer + } + } + trigger_if = { + limit = { + has_pam_dlc_trigger = yes + } + custom_tooltip = { + text = has_external_theological_agent_puppet_tt + exists = root.puppet:external_theological_agent_puppet + } + } + + OR = { + custom_tooltip = { + text = domain_order_is_large_tt + any_held_county = { + any_county_province = { + barony = { + barony_is_valid_to_be_transferred_by_monastic_movement_trigger = { CHARACTER = root } + lessee.holy_order = { + num_leased_titles >= 10 + } + } + } + } + } + monastic_movement_non_order_size_reqs_trigger = yes + + } + + trigger_if = { + limit = { + is_ai = yes + } + piety_level >= 1 + } + trigger_else = { + piety_level >= 3 + } + } + + effect = { + if = { + limit = { + exists = scope:title + exists = scope:title.lessee.holy_order + } + scope:title = { save_scope_as = barony } + scope:title.lessee = { save_scope_as = target_lessee } + scope:title.lessee.holy_order = { save_scope_as = target_order } + scope:title.lessee.holy_order.order_tenet = { save_scope_as = target_order_tenet } + scope:target_order = { + + every_leased_title = { + limit = { + county.holder ?= { + this = root + } + } + add_to_list = revoked_leases + } + leader ?= { + add_opinion = { + modifier = revoked_order_lease_opinion + target = root + opinion = { + value = 0 + every_in_list = { + list = revoked_leases + add = -50 + } + } + } + } + holy_order_patron ?= { + add_opinion = { + modifier = revoked_order_lease_opinion + target = root + opinion = { + value = 0 + every_in_list = { + list = revoked_leases + add = -25 + } + } + } + } + every_in_list = { + list = revoked_leases + revoke_lease = yes + } + } + custom_tooltip = monastic_order_creation_breakdown_tooltip + custom_tooltip = movement_order_gains_target_monasteries_tt + custom_tooltip = movement_order_has_monaster_gaining_bonus_tt + custom_tooltip = movement_order_tenet_popularity_tt + faith = { + if = { + limit = { has_tenet_popularity_trigger = yes } + if = { + limit = { + list_size = { + name = revoked_leases + value >= 5 + } + } + change_tenet_popularity = { + target = scope:target_order_tenet + change = { + value = medium_tenet_popularity_loss + multiply = 4 + } + } + } + else_if = { + limit = { + list_size = { + name = revoked_leases + value >= 4 + } + } + change_tenet_popularity = { + target = scope:target_order_tenet + change = { + value = medium_tenet_popularity_loss + multiply = 3 + } + } + } + else_if = { + limit = { + list_size = { + name = revoked_leases + value >= 3 + } + } + change_tenet_popularity = { + target = scope:target_order_tenet + change = { + value = medium_tenet_popularity_loss + multiply = 2 + } + } + } + else_if = { + limit = { + list_size = { + name = revoked_leases + value >= 2 + } + } + change_tenet_popularity = { + target = scope:target_order_tenet + change = { + value = medium_tenet_popularity_loss + multiply = 1.5 + } + } + } + else = { + change_tenet_popularity = { + target = scope:target_order_tenet + change = { + value = medium_tenet_popularity_loss + multiply = 1 + } + } + } + } + } + } + if = { + limit = { + NOT = { + has_trait = lifestyle_scholar + } + OR = { + has_trait = education_learning + has_lifestyle = learning_lifestyle + government_has_flag = government_is_theocracy + } + } + add_trait = lifestyle_scholar + } + else_if = { + limit = { + OR = { + has_trait = education_learning + has_lifestyle = learning_lifestyle + government_has_flag = government_is_theocracy + } + } + add_trait_xp = { + trait = lifestyle_scholar + value = 10 + } + } + show_as_tooltip = { + create_monastic_order_founder_effect = yes + } + + trigger_event = holy_order.2050 + } + + cost = { + prestige = { + value = 400 + if = { + limit = { + exists = scope:title + } + scope:title.lessee.holy_order ?= { + every_leased_title = { + limit = { + county.holder ?= { + this = root + } + } + add = 200 + } + } + } + if = { + limit = { + domicile ?= { + has_domicile_parameter = estate_cloister_monastic_movement + } + } + divide = 2 + } + if = { + limit = { + is_ai = yes + } + divide = 2 + } + } + piety = { + value = 400 + if = { + limit = { + exists = scope:title + } + scope:title.lessee.holy_order ?= { + every_leased_title = { + limit = { + county.holder ?= { + this = root + } + } + add = 200 + } + } + } + if = { + limit = { + domicile ?= { + has_domicile_parameter = estate_cloister_monastic_movement + } + } + divide = 2 + } + if = { + limit = { + is_ai = yes + } + divide = 2 + } + } + } + + ai_potential = { + highest_held_title_tier >= tier_duchy + is_playable_character = yes + any_held_county = { + county_is_valid_for_monastic_lease_trigger = { CHARACTER = root } + } + } + + ai_will_do = { + base = 200 + modifier = { + add = { + faith = { + # Don't create more than 20 monastic orders for a faith + every_faith_holy_order = { + subtract = 10 + } + } + } + } + modifier = { + government_has_flag = government_is_mandala + add = -150 + } + modifier = { + add = ai_zeal + ai_zeal < 0 + } + modifier = { + add = ai_boldness + ai_boldness < 0 + } + modifier = { + factor = 2 + OR = { + #Opinion of target abbot + AND = { + exists = scope:title.lessee + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:title.lessee } + } + #Opinion of target abbot liege + AND = { + exists = scope:title.lessee.holy_order + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:title.lessee.holy_order.holy_order_patron } + } + #Has tenet they want promoted + AND = { + OR = { + has_trait = education_learning + has_lifestyle = learning_lifestyle + government_has_flag = government_is_theocracy + } + any_personal_tenet = { + root.rite = { + NOR = { + has_tenet_status = { + tenet = prev + status = prohibited + } + has_tenet_status = { + tenet = prev + status = core + } + } + } + } + exists = scope:title.lessee.holy_order.order_tenet + any_personal_tenet = { + this = scope:title.lessee.holy_order.order_tenet + } + rite = scope:title.lessee.rite + NOT = { + house ?= { + any_house_member = { + monastic_movement_potential_leader_trigger = yes + } + } + } + } + } + } + modifier = { + factor = 0 + OR = { + #Opinion of target abbot + AND = { + exists = scope:title.lessee + OR = { + has_any_good_relationship_with_character_trigger = { CHARACTER = scope:title.lessee } + scope:title.lessee.puppeteer ?= root + AND = { + exists = house + scope:title.lessee.house ?= root.house + } + } + } + #Opinion of target abbot liege + AND = { + exists = scope:title.lessee.holy_order + OR = { + has_any_good_relationship_with_character_trigger = { CHARACTER = scope:title.lessee.holy_order.holy_order_patron } + has_dread_level_towards = { + target = scope:title.lessee.holy_order.holy_order_patron + level >= 1 + } + puppeteer ?= scope:title.lessee.holy_order.holy_order_patron + } + } + #Supports order tenet + AND = { + exists = scope:title.lessee.holy_order.order_tenet + any_personal_tenet = { + this = scope:title.lessee.holy_order.order_tenet + } + rite = scope:title.lessee.rite + NOT = { + house ?= { + any_house_member = { + monastic_movement_potential_leader_trigger = yes + } + } + } + } + } + } + } +} diff --git a/common/decisions/10_religious_decisions.txt b/common/decisions/10_religious_decisions.txt index 91585118d..4abe179d4 100644 --- a/common/decisions/10_religious_decisions.txt +++ b/common/decisions/10_religious_decisions.txt @@ -2231,4 +2231,1135 @@ novelist_restore_high_kingdom_decision = { #Updated for N3OW by edwardtheelbowhi ai_will_do = { base = 100 } -} \ No newline at end of file +} + +renounce_clerical_vows_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/pam_decision_act_of_devotion.dds" + } + sort_order = 280 + decision_group_type = religious + desc = renounce_clerical_vows_decision_desc + selection_tooltip = renounce_clerical_vows_decision_tooltip + + is_shown = { + is_clergy = yes + has_trait = devoted + # Can't reuse marriage_clergy_can_marry_trigger: it hard-blocks devoted, which is the trait this removes. + OR = { + rite = { rite_has_parameter = clergy_can_marry } + top_participant_group:the_christian_church ?= { has_participant_group_parameter = clergy_can_marry } + } + } + + is_valid = { + has_trait = devoted + } + + effect = { + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_gain + humble = medium_stress_impact_gain + cynical = medium_stress_impact_loss + } + remove_trait = devoted + } + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + has_trait = devoted + NOR = { + has_trait = chaste + has_trait = celibate + } + } + + ai_will_do = { + base = 100 + } +} + +preserve_wilderness_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = preserve_wilderness_decision_desc + selection_tooltip = preserve_wilderness_decision_tooltip + confirm_text = preserve_wilderness_decision_confirm + + sort_order = 25 + cooldown = { years = 5 } + + is_shown = { + is_landed = yes + rite = { rite_has_parameter = tenet_sanctity_of_nature_preserve_wilderness } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_imprisoned = no + } + + is_valid = { + custom_description = { + text = preserve_wilderness_decision_valid_province + any_realm_province = { + has_holding = no + is_sea_province = no + NOT = { has_province_modifier = preserved_wilderness_modifier } + } + } + } + + cost = { + piety = medium_piety_value + } + + effect = { + custom_tooltip = preserve_wilderness_decision_effect + hidden_effect = { + every_realm_province = { + limit = { + has_holding = no + is_sea_province = no + NOT = { has_province_modifier = preserved_wilderness_modifier } + } + add_province_modifier = { modifier = preserved_wilderness_modifier } + } + } + send_interface_toast = { + type = event_toast_effect_good + title = preserve_wilderness_decision_toast + desc = preserve_wilderness_decision_toast_desc + left_icon = root + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + is_landed = yes + rite = { rite_has_parameter = tenet_sanctity_of_nature_preserve_wilderness } + } + + ai_will_do = { + base = 50 + modifier = { + add = 25 + has_trait = zealous + } + modifier = { + add = -25 + has_trait = greedy + } + } +} + +promote_naturism_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = promote_naturism_decision_desc + selection_tooltip = promote_naturism_decision_tooltip + + is_shown = { + has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision + NOR = { + has_character_flag = natural_primitivism_promoted_naturism_active + has_character_modifier = natural_primitivism_court_naturism_modifier + } + is_landed_or_landless_administrative_or_theocratic = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + cost = { + prestige = major_prestige_value + } + + effect = { + custom_tooltip = promote_naturism_decision_court_effect_tt + custom_tooltip = promote_naturism_decision_fulfillment_effect_tt + if = { + limit = { exists = capital_county } + custom_tooltip = promote_naturism_decision_county_effect_tt + } + trigger_event = natural_primitivism.0001 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 48 + kingdom = 36 + empire = 36 + hegemony = 36 + } + + ai_potential = { + stress >= 50 + has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision + NOT = { has_character_flag = natural_primitivism_promoted_naturism_active } + natural_primitivism_supports_naturism_trigger = yes + } + + ai_will_do = { + base = 100 + modifier = { + add = 20 + stress >= 100 + } + } +} + +renounce_court_naturism_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = renounce_court_naturism_decision_desc + selection_tooltip = renounce_court_naturism_decision_tooltip + + is_shown = { + OR = { + has_character_flag = natural_primitivism_promoted_naturism_active + has_character_modifier = natural_primitivism_court_naturism_modifier + any_courtier = { + OR = { + has_character_modifier = natural_primitivism_court_naturism_modifier + has_character_flag = natural_primitivism_rejected_court_naturism + } + } + } + is_landed_or_landless_administrative_or_theocratic = yes + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + cost = { + piety = major_piety_value + } + + effect = { + custom_tooltip = renounce_court_naturism_decision_court_effect_tt + if = { + limit = { exists = capital_county } + custom_tooltip = renounce_court_naturism_decision_county_effect_tt + } + custom_tooltip = renounce_court_naturism_decision_self_conscious_effect_tt + trigger_event = natural_primitivism.0002 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 48 + kingdom = 36 + empire = 36 + hegemony = 36 + } + + ai_potential = { + natural_primitivism_supports_naturism_trigger = no + } + + ai_will_do = { + base = 0 + modifier = { + add = 5 + NOT = { has_personal_tenet_flag = tenet_natural_primitivism_promote_naturism_decision } + } + modifier = { + factor = 0 + NOT = { piety >= major_piety_value } + } + } +} + +petition_head_of_faith_decision = { + ai_check_interval = 0 + sort_order = 220 + + picture = { + reference = "gfx/interface/illustrations/decisions/pam_decision_papal_petition.dds" + } + decision_group_type = religious + + desc = petition_head_of_faith_decision_desc + selection_tooltip = petition_head_of_faith_decision_tooltip + + cooldown = { years = 4 } + + is_shown = { + is_ai = no + has_pam_dlc_trigger = yes + # Antipopes, their sponsors, and their realms use petition_antipope_decision instead + is_following_religious_head_challenger = no + petition_head_of_faith_has_religious_authority_trigger = yes + NOT = { + petition_head_of_faith_religious_authority_is_trigger = { CHARACTER = this } + } + faith ?= { + faith_has_sacraments_central_trigger = yes + petition_head_of_faith_faith_qualifies_trigger = yes + } + } + + is_valid_showing_failures_only = { + NOT = { + has_character_modifier = promised_pilgrimage_to_clergy_modifier + } + petition_head_of_faith_any_available_trigger = yes + } + + minimum_cost = { + piety = { + if = { + limit = { petition_head_of_faith_has_usable_hook_on_religious_authority_trigger = yes } + value = 0 + } + else_if = { + limit = { scope:petition_head_of_faith_repentance = yes } + value = major_piety_value + } + else_if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + value = massive_piety_value + } + else = { + value = 0 + } + } + } + + widget = { + gui = "decision_view_widget_petition_head_of_faith" + controller = decision_option_list_controller + decision_to_second_step_button = "petition_head_of_faith_decision_confirm" + show_from_start = yes + + item = { + value = petition_head_of_faith_repentance + localization = petition_head_of_faith_decision_option_repentance + current_description = petition_head_of_faith_decision_option_repentance_desc + icon = "gfx/interface/icons/traits/excommunicated.dds" + is_valid = { + petition_head_of_faith_repentance_available_trigger = yes + custom_description = { + text = petition_head_of_faith_decision_cost_major_piety + petition_head_of_faith_can_afford_major_piety_cost_trigger = yes + } + } + ai_chance = { value = 0 } + } + item = { + value = petition_head_of_faith_excommunication + localization = petition_head_of_faith_decision_option_excommunication + current_description = petition_head_of_faith_decision_option_excommunication_desc + icon = "gfx/interface/icons/character_interactions/excommunication.dds" + is_valid = { + petition_head_of_faith_excommunication_decision_available_trigger = yes + custom_description = { + text = petition_head_of_faith_decision_cost_massive_piety + petition_head_of_faith_can_afford_massive_piety_cost_trigger = yes + } + } + ai_chance = { value = 0 } + } + } + + effect = { + save_scope_as = petitioner + petition_head_of_faith_save_religious_authority_effect = { SCOPE = petition_recipient } + if = { + limit = { scope:petition_head_of_faith_repentance = yes } + custom_tooltip = petition_head_of_faith_decision_effects_major_piety + } + else = { + custom_tooltip = petition_head_of_faith_decision_effects_massive_piety + } + petition_head_of_faith_display_recipient_disposition_effect = yes + if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + custom_tooltip = petition_head_of_faith_decision_excommunication_target_hint + } + if = { + limit = { has_usable_hook = scope:petition_recipient } + custom_tooltip = petition_head_of_faith_decision_hook_available + } + if = { + limit = { scope:petition_head_of_faith_repentance = yes } + open_interaction_window = { + interaction = petition_head_of_faith_repentance_setup_interaction + actor = root + recipient = scope:petition_recipient + } + } + else_if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + open_interaction_window = { + interaction = petition_head_of_faith_excommunication_setup_interaction + actor = root + recipient = scope:petition_recipient + } + } + } + + ai_potential = { always = no } +} + +petition_antipope_decision = { + ai_check_interval = 0 + sort_order = 220 + + picture = { + reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" + } + decision_group_type = religious + + desc = petition_antipope_decision_desc + selection_tooltip = petition_antipope_decision_tooltip + + cooldown = { years = 4 } + + is_shown = { + is_ai = no + has_pam_dlc_trigger = yes + is_following_religious_head_challenger = yes + exists = religious_head_or_challenger + NOT = { religious_head_or_challenger = this } + faith ?= { + faith_has_sacraments_central_trigger = yes + petition_head_of_faith_faith_qualifies_trigger = yes + } + } + + is_valid_showing_failures_only = { + petition_head_of_faith_any_available_trigger = yes + } + + minimum_cost = { + piety = { + if = { + limit = { petition_head_of_faith_has_usable_hook_on_religious_authority_trigger = yes } + value = 0 + } + else_if = { + limit = { scope:petition_head_of_faith_repentance = yes } + value = major_piety_value + } + else_if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + value = massive_piety_value + } + else = { + value = 0 + } + } + } + + widget = { + gui = "decision_view_widget_petition_head_of_faith" + controller = decision_option_list_controller + decision_to_second_step_button = "petition_head_of_faith_decision_confirm" + show_from_start = yes + + item = { + value = petition_head_of_faith_repentance + localization = petition_head_of_faith_decision_option_repentance + current_description = petition_head_of_faith_decision_option_repentance_desc + icon = "gfx/interface/icons/traits/excommunicated.dds" + is_valid = { + petition_head_of_faith_repentance_available_trigger = yes + custom_description = { + text = petition_head_of_faith_decision_cost_major_piety + petition_head_of_faith_can_afford_major_piety_cost_trigger = yes + } + } + ai_chance = { value = 0 } + } + item = { + value = petition_head_of_faith_excommunication + localization = petition_head_of_faith_decision_option_excommunication + current_description = petition_head_of_faith_decision_option_excommunication_desc + icon = "gfx/interface/icons/character_interactions/excommunication.dds" + is_valid = { + petition_head_of_faith_excommunication_decision_available_trigger = yes + custom_description = { + text = petition_head_of_faith_decision_cost_massive_piety + petition_head_of_faith_can_afford_massive_piety_cost_trigger = yes + } + } + ai_chance = { value = 0 } + } + } + + effect = { + save_scope_as = petitioner + religious_head_or_challenger = { + save_scope_as = petition_recipient + } + if = { + limit = { scope:petition_head_of_faith_repentance = yes } + custom_tooltip = petition_head_of_faith_decision_effects_major_piety + } + else = { + custom_tooltip = petition_head_of_faith_decision_effects_massive_piety + } + petition_head_of_faith_display_recipient_disposition_effect = yes + if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + custom_tooltip = petition_head_of_faith_decision_excommunication_target_hint + } + if = { + limit = { has_usable_hook = scope:petition_recipient } + custom_tooltip = petition_head_of_faith_decision_hook_available + } + if = { + limit = { scope:petition_head_of_faith_repentance = yes } + open_interaction_window = { + interaction = petition_head_of_faith_repentance_setup_interaction + actor = root + recipient = root.religious_head_or_challenger + } + } + else_if = { + limit = { scope:petition_head_of_faith_excommunication = yes } + open_interaction_window = { + interaction = petition_head_of_faith_excommunication_setup_interaction + actor = root + recipient = root.religious_head_or_challenger + } + } + } + + ai_potential = { always = no } +} + +seek_spiritual_mysteries_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = seek_spiritual_mysteries_decision_desc + selection_tooltip = seek_spiritual_mysteries_decision_tooltip + + is_shown = { + has_personal_tenet_flag = tenet_esotericism_seek_spiritual_mysteries + } + + is_valid_showing_failures_only = { + is_available_healthy_adult = yes + } + + cooldown = { years = 5 } + + cost = { + piety = medium_piety_value + } + + effect = { + custom_tooltip = seek_spiritual_mysteries_decision_effect_tt + trigger_event = pam_tenet_events.0006 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 80 + } +} + +pure_land_shed_sin_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = pure_land_shed_sin_decision_desc + selection_tooltip = pure_land_shed_sin_decision_tooltip + + is_shown = { + is_ai = no + has_personal_tenet_flag = tenet_pure_land_repentance_decision + any_trait_in_category = { + category = personality + save_temporary_scope_as = pure_land_candidate_virtue + root = { + NOT = { has_trait = prev } + } + root.rite = { + trait_is_virtue_rite = scope:pure_land_candidate_virtue + } + any_opposite_trait = { + root = { + has_trait = prev + } + } + } + } + + is_valid_showing_failures_only = { + is_available_healthy_adult = yes + piety_level >= high_piety_level + } + + cooldown = { years = 10 } + + cost = { + piety = major_piety_value + } + + effect = { + custom_tooltip = pure_land_shed_sin_decision_effect + hidden_effect = { + random_trait_in_category = { + category = personality + limit = { + save_temporary_scope_as = pure_land_candidate_virtue + root = { + NOT = { has_trait = prev } + } + root.rite = { + trait_is_virtue_rite = scope:pure_land_candidate_virtue + } + any_opposite_trait = { + root = { + has_trait = prev + } + } + } + save_scope_as = pure_land_virtue + } + if = { + limit = { + exists = scope:pure_land_virtue + } + scope:pure_land_virtue = { + random_opposite_trait = { + limit = { + root = { + has_trait = prev + } + } + root = { + remove_trait = prev + } + } + } + add_trait_force_tooltip = scope:pure_land_virtue + } + } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + ai_potential = { + is_ai = no + } + + ai_will_do = { + base = 0 + } +} + +seek_ancestral_guidance_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = seek_ancestral_guidance_decision_desc + selection_tooltip = seek_ancestral_guidance_decision_tooltip + + is_shown = { + rite ?= { + rite_has_parameter = tenet_ancestor_worship_seek_ancestral_guidance + } + any_ancestor = { + is_alive = no + even_if_dead = yes + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + } + + cooldown = { years = 5 } + + cost = { + piety = medium_piety_value + } + + effect = { + custom_tooltip = seek_ancestral_guidance_decision_effect_tt + custom_tooltip = seek_ancestral_guidance_decision_choice_tt + trigger_event = pam_tenet_events.0007 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + ai_potential = { + always = no + } + + ai_will_do = { + base = 0 + } +} + +inherit_ancestral_trait_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = inherit_ancestral_trait_decision_desc + selection_tooltip = inherit_ancestral_trait_decision_tooltip + + is_shown = { + has_personal_tenet_flag = tenet_reincarnation_ancestral_trait_decision + is_ai = no + any_ancestor = { + OR = { + is_parent_of = root + is_grandparent_of = root + } + is_alive = no + even_if_dead = yes + } + } + + is_valid_showing_failures_only = { + is_available_healthy_adult = yes + custom_description = { + text = inherit_ancestral_trait_decision_forebear_tt + any_ancestor = { + even_if_dead = yes + pam_recallable_forebear_trigger = yes + } + } + } + + cooldown = { years = 25 } + + cost = { + piety = massive_piety_value + } + + effect = { + custom_tooltip = inherit_ancestral_trait_decision_effect_tt + trigger_event = pam_tenet_events.0008 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 0 + hegemony = 0 + } + + ai_potential = { + always = no + } + + ai_will_do = { + base = 0 + } +} + +pursue_conquerors_mantle_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + desc = pursue_conquerors_mantle_decision_desc + selection_tooltip = pursue_conquerors_mantle_decision_tooltip + + decision_group_type = major + + is_shown = { + has_personal_tenet_flag = tenet_pursuit_of_power_become_conqueror + is_landless_adventurer = no + NOR = { + has_trait = conqueror + any_owned_story = { + story_type = story_conqueror + } + } + } + + is_valid = { + calc_true_if = { + amount >= 8 + martial >= 22 + prestige_level >= 5 + AND = { + has_trait = strategist + has_trait = gallant + } + custom_tooltip = { + text = become_conqueror_decision_war_participation + any_memory = { + count >= 20 + OR = { + has_memory_type = offensive_war + has_memory_type = defensive_war + has_memory_type = joined_allys_war + } + } + } + custom_tooltip = { + text = become_conqueror_decision_war_participation_kingdom + any_memory = { + count >= 5 + OR = { + has_memory_type = offensive_war + has_memory_type = defensive_war + has_memory_type = joined_allys_war + } + any_memory_participant = { + primary_title.tier >= tier_kingdom + } + } + } + calc_true_if = { + amount >= 1 + custom_tooltip = { + text = become_conqueror_decision_two_commander_traits + any_character_trait = { + count >= 2 + has_trait_category = commander + } + } + martial >= 28 + } + custom_tooltip = { + text = become_conqueror_decision_enough_troops + current_military_strength >= 4000 + } + custom_tooltip = { + text = become_conqueror_decision_enough_battle_kills + any_killed_character = { + count >= 12 + } + } + calc_true_if = { + amount >= 1 + piety_level >= 5 + has_trait = ambitious + } + calc_true_if = { + amount >= 1 + custom_tooltip = { + text = become_conqueror_decision_enough_high_level_knights + any_knight = { + count >= 6 + prowess >= 18 + } + } + custom_tooltip = { + text = become_conqueror_decision_enough_mediocre_knights + any_knight = { + count >= 12 + prowess >= 12 + } + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + top_liege = this + spiritual_fulfillment >= spiritual_fulfillment_3 + } + + cost = { + piety = 3000 + } + + effect = { + show_as_tooltip = { + add_trait = conqueror + create_story = story_conqueror + if = { + limit = { + any_vassal = { vassal_stance = belligerent } + } + every_vassal = { + vassal_stance = belligerent + custom = every_belligerent_vassal + add_opinion = { + modifier = approving_opinion + target = root + opinion = 15 + } + } + } + if = { + limit = { + any_vassal = { vassal_stance = glory_hound } + } + every_vassal = { + vassal_stance = glory_hound + custom = every_glory_hound_vassal + add_opinion = { + modifier = approving_opinion + target = root + opinion = 15 + } + } + } + if = { + limit = { + any_vassal = { vassal_stance = parochial } + } + every_vassal = { + custom = every_parochial_vassal + add_opinion = { + modifier = disapproving_opinion + opinion = -20 + target = root + } + } + } + } + show_as_tooltip = { + add_prestige = major_prestige_gain + add_dread = major_dread_value + dynasty = { + add_dynasty_prestige = major_dynasty_prestige_gain + } + } + add_character_flag = { + flag = pursue_conquerors_mantle_rewards + years = 1 + } + trigger_event = conqueror.0001 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 60 + duchy = 60 + kingdom = 60 + empire = 60 + hegemony = 60 + } + + ai_potential = { + piety >= major_piety_value + } + + ai_will_do = { + base = 100 + } +} + +redistribute_realm_wealth_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = religious + desc = redistribute_realm_wealth_decision_desc + selection_tooltip = redistribute_realm_wealth_decision_tooltip + + is_shown = { + has_personal_tenet_flag = tenet_communal_possessions_redistribution_event + } + + is_valid_showing_failures_only = { + is_available_healthy_adult = yes + is_landed = yes + } + + cooldown = { years = 10 } + + cost = { + gold = pam_communal_redistribution_gold_value + } + + effect = { + show_as_tooltip = { + every_held_county = { + custom = redistribute_realm_wealth_every_county_tt + change_county_control = -30 + add_county_modifier = { + modifier = tenet_communal_possessions_redistribution_modifier + years = 10 + } + } + custom_tooltip = redistribute_realm_wealth_decision_choice_tt + } + trigger_event = pam_tenet_events.0009 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + ai_potential = { + gold >= medium_gold_value + } + + ai_will_do = { + base = 40 + } +} + +launch_undirected_great_holy_war_decision = { + picture = { + reference = "gfx/interface/illustrations/event_story/pam_the_christian_church_crusade.dds" + } + decision_group_type = major + sort_order = 490 + + desc = launch_undirected_great_holy_war_decision_desc + selection_tooltip = launch_undirected_great_holy_war_decision_tooltip + confirm_text = launch_undirected_great_holy_war_decision_confirm + + ai_check_interval = 0 + + is_shown = { + is_ai = no + this = faith.religious_head + faith ?= { has_doctrine_parameter = spiritual_head_of_faith } + # Papal heads with PAM already launch through enact_a_bull_decision + NAND = { + has_pam_dlc_trigger = yes + faith ?= { has_papacy_trigger = yes } + } + } + + is_valid = { + custom_tooltip = { + text = launch_undirected_great_holy_war_decision_age_of_crusades_tt + religion = { exists = var:variable_ghw_unlocked } + } + custom_tooltip = { + text = launch_undirected_great_holy_war_decision_ghw_doctrines_tt + faith = { faith_has_undirected_ghw_doctrines_trigger = yes } + } + custom_description = { + text = great_holy_war_cooldown + NOT = { faith = { exists = var:variable_ghw_cooldown } } + } + custom_tooltip = { + text = launch_undirected_great_holy_war_decision_existing_ghw_tt + faith = { NOT = { exists = great_holy_war } } + } + custom_tooltip = { + text = launch_undirected_great_holy_war_decision_valid_target_tt + faith = { + save_temporary_scope_as = faith + save_temporary_scope_value_as = { + name = faith_strength + value = faith_military_strength + } + any_kingdom = { + valid_ghw_target_trigger = { FAITH = scope:faith } + } + } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + is_imprisoned = no + } + + widget = { + controller = select_kingdom_title + title_valid = { + scope:ruler.faith = { + save_temporary_scope_as = faith + save_temporary_scope_value_as = { + name = faith_strength + value = faith_military_strength + } + } + valid_ghw_target_trigger = { FAITH = scope:faith } + } + } + + cost = { + piety = pam_enact_a_crusade_bull_cost_value + } + + effect = { + set_variable = { + name = player_ghw_launch + days = 1 + } + if = { + limit = { exists = scope:title } + set_variable = { + name = player_ghw_target_kingdom + value = scope:title + } + } + show_as_tooltip = { + custom_tooltip = launch_undirected_great_holy_war_decision_effect_tt + } + faith = { trigger_event = great_holy_war.0001 } + } + + ai_potential = { + always = no + } + + ai_will_do = { + base = 0 + } +} diff --git a/common/decisions/NEOW_artifact_decisions.txt b/common/decisions/NEOW_artifact_decisions.txt index 1ca8dac04..f2466935d 100644 --- a/common/decisions/NEOW_artifact_decisions.txt +++ b/common/decisions/NEOW_artifact_decisions.txt @@ -48,6 +48,8 @@ } destroy_artifact = this } + get_artifact_quality_effect = yes + get_artifact_wealth_effect = yes set_artifact_rarity_illustrious = yes create_artifact = { name = crown_wenceslas_name diff --git a/common/decisions/NEOW_historical_formation_decisions.txt b/common/decisions/NEOW_historical_formation_decisions.txt index 6f4a3d4bc..968e82f91 100644 --- a/common/decisions/NEOW_historical_formation_decisions.txt +++ b/common/decisions/NEOW_historical_formation_decisions.txt @@ -93,6 +93,7 @@ restore_poland_lithuania_decision = { is_shown = { is_ruler = yes is_playable_character = yes + title:e_poland_lithuania = { is_title_created = no } OR = { has_title = title:k_poland has_title = title:k_lithuania @@ -270,6 +271,7 @@ realize_domowina_decision = { is_shown = { is_ruler = yes is_playable_character = yes + title:k_lusatia = { is_title_created = no } OR = { culture = culture:sorbian } @@ -343,7 +345,7 @@ reform_czechoslovakia_decision = { selection_tooltip = reform_czechoslovakia_decision_tooltip is_shown = { - NOT = { exists = title:k_czechoslovakia.holder } + title:k_czechoslovakia = { is_title_created = no } is_playable_character = yes NOT = { is_target_in_global_variable_list = { @@ -389,19 +391,6 @@ reform_czechoslovakia_decision = { custom_tooltip = reform_czechoslovakia_decision_effect_tooltip gain_heroic_legend_seed_tooltip_effect = yes - ## Czechoslovakia Restored - title:d_bohemia = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_moravia = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_krusnohori = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_severovychodni_cechy = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_nyitra = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_trencin = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_banska_bystrica = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_ungvar = { set_de_jure_liege_title = title:k_czechoslovakia } - title:d_transcarpathia = { set_de_jure_liege_title = title:k_czechoslovakia } - title:c_orava = { set_de_jure_liege_title = title:d_trencin } - title:c_opava = { set_de_jure_liege_title = title:d_moravia } - hidden_effect = { save_scope_as = founder create_title_and_vassal_change = { @@ -439,10 +428,22 @@ reform_czechoslovakia_decision = { title:c_opava = { set_de_jure_liege_title = title:d_moravia } ## Destroy the Previous Kingdoms - destroy_title = title:k_bohemia - destroy_title = title:k_slovakia - destroy_title = title:k_galicia-volhynia - destroy_title = title:d_tatra + if = { + limit = { has_title = title:k_bohemia } + destroy_title = title:k_bohemia + } + if = { + limit = { has_title = title:k_slovakia } + destroy_title = title:k_slovakia + } + if = { + limit = { has_title = title:k_galicia-volhynia } + destroy_title = title:k_galicia-volhynia + } + if = { + limit = { has_title = title:d_tatra } + destroy_title = title:d_tatra + } ## Make Czechoslovakia the primary title set_primary_title_to = title:k_czechoslovakia diff --git a/common/decisions/major_decisions_NEOW.txt b/common/decisions/major_decisions_NEOW.txt index bc3d438ff..0601409eb 100644 --- a/common/decisions/major_decisions_NEOW.txt +++ b/common/decisions/major_decisions_NEOW.txt @@ -36,7 +36,7 @@ restore_european_union_decision = { culture = { has_cultural_pillar = heritage_rhaeto_helvetic } culture = { has_cultural_pillar = heritage_cisalpine } culture = { has_cultural_pillar = heritage_anglo_frisian } - culture = { has_cultural_pillar = heritage_hungarian } + culture = { has_cultural_pillar = heritage_magyar } culture = { has_cultural_pillar = heritage_balto_finnic } } NOT = { #Can only do it once. @@ -496,7 +496,7 @@ form_quinto_imperio_decision = { } is_shown = { - faith = faith:sebastianist + rite = rite:sebastianist_rite is_ruler = yes is_playable_character = yes #Visible to kings and above @@ -570,7 +570,7 @@ form_hetmanshchina_decision = { is_shown = { OR = { - faith = faith:kozachina + rite = rite:kozachina_rite culture = culture:NEOW_cossack } is_ruler = yes @@ -718,13 +718,13 @@ restore_ottoman_empire_decision = { is_shown = { OR = { - culture = { has_cultural_pillar = heritage_oghuz } + culture = { has_cultural_pillar = heritage_turkish } culture = culture:NEOW_yunani AND = { culture = { has_cultural_pillar = heritage_greek } faith.religion = religion:islam_religion } - faith = faith:turkology + rite = rite:turkology_rite } is_ruler = yes is_playable_character = yes @@ -877,8 +877,8 @@ restore_rhine_border_novelist_france_decision = { target = flag:flag_restored_rhine_border_novelist_france } } - NOT = { or = { has_title = title:e_europa has_title = title:h_europa } } - faith.religion = religion:novelist_religion + NOT = { OR = { has_title = title:e_europa has_title = title:h_europa } } + faith.religion = religion:europeanist_religion culture = { has_cultural_pillar = heritage_french } } @@ -949,8 +949,8 @@ restore_alpine_border_novelist_france_decision = { target = flag:flag_restored_alpine_border_novelist_france } } - NOT = { or = { has_title = title:e_europa has_title = title:h_europa } } - faith.religion = religion:novelist_religion + NOT = { OR = { has_title = title:e_europa has_title = title:h_europa } } + faith.religion = religion:europeanist_religion culture = { has_cultural_pillar = heritage_french } } @@ -1016,7 +1016,7 @@ restore_numenor_decision = { is_shown = { is_ruler = yes is_playable_character = yes - faith = faith:romanticist + rite = rite:romanticist_rite NOT = { is_target_in_global_variable_list = { name = unavailable_unique_decisions @@ -1345,7 +1345,7 @@ form_carpathia_decision = { primary_title = title:k_transylvania } title:e_carpathia = { is_titular = yes } - NOT = { culture = { has_cultural_pillar = heritage_hungarian } } + NOT = { culture = { has_cultural_pillar = heritage_magyar } } } is_valid = { @@ -1408,7 +1408,7 @@ form_carpathia_hun_decision = { primary_title = title:k_transylvania } title:e_carpathia = { is_titular = yes } - culture = { has_cultural_pillar = heritage_hungarian } + culture = { has_cultural_pillar = heritage_magyar } } is_valid = { @@ -1696,7 +1696,7 @@ restore_troy_decision = { is_ruler = yes is_playable_character = yes culture = culture:NEOW_yunani - faith = faith:megalocratic + rite = rite:megalocratic_rite title:k_troy = { is_titular = yes } } diff --git a/common/decisions/religious_decisions_NEOW.txt b/common/decisions/religious_decisions_NEOW.txt index aaafbc498..cbd0f6bb5 100644 --- a/common/decisions/religious_decisions_NEOW.txt +++ b/common/decisions/religious_decisions_NEOW.txt @@ -669,7 +669,7 @@ mend_orthodox_schism_decision = { } is_valid = { - highest_held_title_tier > 4 # Like the base-game Great Schism decision + highest_held_title_tier >= tier_empire piety_level >= max_piety_level completely_controls = title:c_byzantion diff --git a/common/scripted_effects/NEOW_major_decisions_scripted_effects.txt b/common/scripted_effects/NEOW_major_decisions_scripted_effects.txt index a75557c84..ba3aaf511 100644 --- a/common/scripted_effects/NEOW_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/NEOW_major_decisions_scripted_effects.txt @@ -51,7 +51,7 @@ root = { completely_controls = prev } OR = { this = title:d_giemajohka - this = title:d_gulodat + this = title:d_guoldat } } set_de_jure_liege_title = title:k_finland @@ -342,7 +342,7 @@ restore_ottoman_empire_effect = { } resolve_title_and_vassal_change = scope:change hidden_effect = { - set_primary_title_to = title:e_bulgaria + set_primary_title_to = title:e_sublime_state title:k_bulgaria = { set_de_jure_liege_title = title:e_sublime_state } title:k_macedonia = { set_de_jure_liege_title = title:e_sublime_state } title:k_thrace = { set_de_jure_liege_title = title:e_sublime_state }