From c324ab481c67c091692b14964b7a61978a4b92ca Mon Sep 17 00:00:00 2001 From: Thakia Date: Sat, 3 Oct 2026 12:29:37 -0300 Subject: [PATCH] council_tasks updated files --- common/council_tasks/00_chancellor_tasks.txt | 41 - .../council_tasks/00_court_chaplain_tasks.txt | 1158 ++++------------- common/council_tasks/00_kurultai_tasks.txt | 208 +-- common/council_tasks/00_marshal_tasks.txt | 15 +- common/council_tasks/00_spymaster_tasks.txt | 54 +- common/council_tasks/00_steward_tasks.txt | 271 ++-- 6 files changed, 516 insertions(+), 1231 deletions(-) diff --git a/common/council_tasks/00_chancellor_tasks.txt b/common/council_tasks/00_chancellor_tasks.txt index 46d4889e8..bf8266111 100644 --- a/common/council_tasks/00_chancellor_tasks.txt +++ b/common/council_tasks/00_chancellor_tasks.txt @@ -259,47 +259,6 @@ task_domestic_affairs = { } # Parochial Vassal Opinion desc = task_domestic_affairs_parochial_effect_desc - triggered_desc = { - trigger = { - liege = { has_perk = chains_of_loyalty_perk } - } - desc = task_domestic_affairs_chains_of_loyalty_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_domestic_affairs_bureaucrats_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_domestic_affairs_family_business_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_consulted_house_bonus = yes - } - desc = task_domestic_affairs_consulted_house_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_title = title:c_byzantion - title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } - } - } - desc = chancellor_domestic_affairs_opinion_pandidakterion_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_character_flag = food_improves_opinion - } - } - desc = chancellor_domestic_affairs_opinion_food_bonus_desc - } # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { diff --git a/common/council_tasks/00_court_chaplain_tasks.txt b/common/council_tasks/00_court_chaplain_tasks.txt index 66d096916..89c08129e 100644 --- a/common/council_tasks/00_court_chaplain_tasks.txt +++ b/common/council_tasks/00_court_chaplain_tasks.txt @@ -39,6 +39,12 @@ } desc = task_religious_relations_effect_desc_consulted_house_bonus_piety } + triggered_desc = { + trigger = { + scope:councillor_liege.rite ?= { rite_has_parameter = tenet_celestial_hierarchy_religious_relations_bonus } + } + desc = task_religious_relations_effect_desc_celestial_hierarchy_bonus_piety + } first_valid = { triggered_desc = { @@ -48,7 +54,9 @@ has_doctrine_parameter = no_head_of_faith NOT = { exists = religious_head } } - has_doctrine = doctrine_theocracy_lay_clergy + } + scope:councillor.rite = { + rite_has_doctrine = doctrine_theocracy_lay_clergy } } desc = task_religious_relations_effect_no_hof_layman_clergy_desc_opinion @@ -81,6 +89,12 @@ } desc = task_religious_relations_effect_desc_consulted_house_bonus_opinion } + triggered_desc = { + trigger = { + scope:councillor_liege.rite ?= { rite_has_parameter = tenet_celestial_hierarchy_religious_relations_bonus } + } + desc = task_religious_relations_effect_desc_celestial_hierarchy_bonus_opinion + } desc = line_break desc = { @@ -103,6 +117,30 @@ } desc = task_religious_relations_opinion_loss } + triggered_desc = { + trigger = { + learning > mediocre_skill_rating + } + desc = task_religious_relations_effect_moment_of_clarity + } + triggered_desc = { + trigger = { + learning < high_skill_rating + } + desc = task_religious_relations_effect_doubts_surface + } + triggered_desc = { + trigger = { + learning > average_skill_rating + } + desc = task_religious_relations_effect_spiritual_bond + } + triggered_desc = { + trigger = { + learning > high_skill_rating + } + desc = task_religious_relations_effect_zeal_resonates + } } } @@ -148,7 +186,7 @@ on_monthly = { if = { limit = { - liege = { is_ai = no } + liege ?= { is_ai = no } } if = { limit = { @@ -210,30 +248,117 @@ task_conversion = { glow = "gfx/particles/halo.dds" } + is_valid_showing_failures_only = { + # Theocratic chaplains of another rite need a liege theological puppet, and lay clergy lieges skip this + trigger_if = { + limit = { + is_ruler = yes + government_has_flag = government_is_theocracy + rite != scope:councillor_liege.rite + scope:councillor_liege.rite = { rite_has_doctrine = doctrine_theocracy_temporal } + } + custom_tooltip = { + text = task_conversion.tt.forbidden.theocratic_off_rite_chaplain + scope:councillor_liege = { + has_theological_agent_puppet_trigger = yes + } + } + } + } + effect_desc = { - #China changes the faith to the Huangdi's faith + # China path, full Faith change to the Huangdi's faith triggered_desc = { trigger = { - scope:councillor_liege = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - } + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } + scope:county.faith != scope:councillor_liege.faith } desc = task_conversion_china_effect_desc } - #Otherwise it's councillor's faith + # China path, Rite-only change (parent Faith already matches the Huangdi) triggered_desc = { trigger = { - NOT = { - scope:councillor_liege = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - } - } + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } + scope:county.faith = scope:councillor_liege.faith + } + desc = task_conversion_china_rite_only_effect_desc + } + # Standard path, Rite-only change via Liege (parent Faith already matches the Liege) + triggered_desc = { + trigger = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = no } + scope:county.faith ?= scope:councillor_liege.faith + } + desc = task_conversion_liege_rite_only_effect_desc + } + # Standard path, full Faith change via an aligned Chaplain (Chaplain shares Liege's Faith, so the new Faith is the Liege's and the rite axis follows the Liege) + triggered_desc = { + trigger = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = no } + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + scope:county.faith != scope:councillor.faith + scope:councillor.faith = scope:councillor_liege.faith + } + desc = task_conversion_aligned_chaplain_effect_desc + } + # Standard path, full Faith change via an off-faith Chaplain (Chaplain's Faith differs from the Liege's; Chaplain spreads their own Faith and Rite) + triggered_desc = { + trigger = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = no } + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + scope:county.faith != scope:councillor.faith + scope:councillor.faith != scope:councillor_liege.faith } desc = task_conversion_effect_desc } - desc = task_conversion_development_loss_desc + # Standard path, Rite-only change via Chaplain (Chaplain's Faith differs from the Liege's, and the county already shares the Chaplain's Faith) + triggered_desc = { + trigger = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = no } + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + scope:county.faith = scope:councillor.faith + } + desc = task_conversion_rite_only_effect_desc + } + # Development loss only applies on a real Faith change (people refuse to convert and migrate) + triggered_desc = { + trigger = { + trigger_if = { + limit = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } + } + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + } + trigger_else = { + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + scope:county.faith != scope:councillor.faith + } + } + desc = task_conversion_development_loss_desc + } + # Fervor effects only on a real Faith change (rite shifts within the same Faith do not move fervor) + triggered_desc = { + trigger = { + exists = scope:county.faith + trigger_if = { + limit = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } + } + scope:county.faith != scope:councillor_liege.faith + } + trigger_else = { + exists = scope:county.faith + scope:county.faith != scope:councillor_liege.faith + scope:county.faith != scope:councillor.faith + } + } + desc = task_conversion_fervor_effect_desc + } triggered_desc = { trigger = { scope:councillor_liege = { @@ -276,6 +401,14 @@ task_conversion = { } desc = task_conversion_opinion_loss } + triggered_desc = { + trigger = { + scope:councillor_liege = { + rite = { rite_has_parameter = tenet_acts_of_apostles_legitimacy_from_converts } + } + } + desc = task_conversion_act_of_apostles_bonus + } } } @@ -318,204 +451,7 @@ task_conversion = { } } add = court_chaplain_conversion_contextual_bonuses - - # Faster conversion for certain special doctrines -# if = { -# limit = { -# scope:councillor_liege.faith = { has_doctrine_parameter = adoptionists_attractively_intuitive_theology } -# exists = scope:county -# OR = { -# scope:county.faith.religion = religion:eastern_orthodox_religion -# scope:county.faith.religion = religion:catholic_religion -# scope:county.faith.religion = religion:protestant_religion -# } -# } -# add = { -# value = fp2_lyonese_monk_conversion_bonus_actual_value -# desc = fp2_lyonese_monk_faith_conversion_task_desc -# } -# } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.faith - scope:county.faith = { - fervor > 60 - } - } - multiply = { - value = 0.7 - desc = STEWARD_CONVERT_FAITH_ZEALOT_FERVOUR_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.faith - scope:county.faith = { - fervor <= 60 - fervor > 40 - } - } - multiply = { - value = 0.8 - desc = STEWARD_CONVERT_FAITH_HIGH_FERVOUR_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.faith - scope:county.faith = { - fervor <= 40 - fervor > 20 - } - } - multiply = { - value = 0.9 - desc = STEWARD_PROMOTE_FAITH_MEDIUM_FERVOUR_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.faith - scope:county.faith = { - fervor <= 20 - fervor > 0 - } - } - multiply = { - value = 1.2 - desc = STEWARD_PROMOTE_CULTURE_LOW_FERVOUR_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.faith - scope:county.faith = { - fervor <= 20 - fervor >= 0 - } - } - multiply = { - value = 1.4 - desc = STEWARD_PROMOTE_CULTURE_LOW_FERVOUR_BONUS - } - } - #### - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 25 - county_control >= 0 - } - } - multiply = { - value = 0.8 - desc = STEWARD_PROMOTE_CULTURE_LOW_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 50 - county_control > 25 - } - } - multiply = { - value = 0.9 - desc = STEWARD_PROMOTE_CULTURE_MEDIUM_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 75 - county_control > 50 - } - } - multiply = { - value = 1.1 - desc = STEWARD_PROMOTE_CULTURE_HIGH_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control > 75 - } - } - multiply = { - value = 1.2 - desc = STEWARD_PROMOTE_CULTURE_HIGH_CONTROL_BONUS - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 100 - county_control > 75 - } - } - multiply = { - value = 1.4 - desc = STEWARD_PROMOTE_CULTURE_HIGH_CONTROL_BONUS - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control > 100 - } - } - multiply = { - value = 1.6 - desc = STEWARD_PROMOTE_CULTURE_ABSOLUTE_CONTROL_BONUS - } - } - ##### - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.title_province - scope:county.title_province = { - OR = { - terrain = jungle - terrain = mountains - terrain = desert - terrain = desert_mountains - terrain = taiga - terrain = wetlands - } - } - } - multiply = { - value = 0.8 - desc = STEWARD_PROMOTE_CULTURE_HIGH_TERRAIN_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.title_province - scope:county.title_province = { - OR = { - terrain = floodplains - terrain = drylands - terrain = steppe - terrain = forest - terrain = hills - terrain = tells - } - } - } - multiply = { - value = 0.9 - desc = STEWARD_PROMOTE_CULTURE_LOW_TERRAIN_PENALTY - } - } # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values if = { limit = { @@ -529,227 +465,9 @@ task_conversion = { desc = STEWARD_PROMOTE_CULTURE_DEVELOPMENT_PENALTY } } - - if = { - limit = { - scope:councillor.faith = { - has_doctrine_parameter = unreformed - } - } - multiply = { - value = conversion_unreformed_faith_penalty - desc = COURT_CHAPLAIN_CONVERSION_UNREFORMED_FAITH_PENALTY - } - } - -# # Faster conversion for FP2 Hostility ending, if county is in Iberia and faith was involved -# if = { -# limit = { -# exists = scope:councillor.liege.house -# scope:councillor.liege.house = { -# OR = { -# has_house_modifier = fp2_struggle_hostility_house_faith_modifier -# has_house_modifier = fp2_struggle_hostility_house_combined_modifier -# } -# } -# any_in_global_list = { -# variable = fp2_struggle_ending_faith_list -# this = scope:county.faith -# } -# scope:county.title_province = { geographical_region = world_europe_west_iberia } -# } -# multiply = { -# value = fp2_struggle_hostility_conversion_value -# desc = fp2_struggle_hostility_faith_conversion_task_desc -# } -# } -# # Faster conversion of infidels for FP2 Council Toledo Conversion -# if = { -# limit = { -# scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } -# scope:county.religion != scope:councillor.liege.religion -# } -# multiply = { -# value = council_toledo_conversion_modifier_value -# desc = council_toledo_conversion_task_desc -# } -# } -# # Faster conversion of heretics for FP2 Council Toledo Heresies -# if = { -# limit = { -# scope:councillor.liege = { has_character_modifier = fp2_council_conversion_modifier } -# scope:county.faith = { -# religion = scope:councillor.liege.religion -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# NOT = { exists = religious_head } -# } -# } -# multiply = { -# value = council_toledo_conversion_modifier_value -# desc = council_toledo_heresies_task_desc -# } -# } -# -# # Faster conversion of Persian counties with the FP3 Promote Persian Scripture decision -# if = { -# limit = { -# scope:councillor.liege = { -# has_character_modifier = fp3_promoted_persian_scripture_modifier -# is_ai = no #this is so that we don't get AI converting and homogenizing Persia too quickly -# } -# scope:county.culture = { has_cultural_pillar = heritage_iranian } -# } -# multiply = { -# value = promote_persian_scripture_conversion_modifier_value -# desc = fp3_promote_persian_scripture_task_desc -# } -# } -# -# # FP3 faster conversion struggle ending rewards -# if = { -# limit = { -# exists = global_var:fp3_struggle_ending_assertion_school -# switch = { -# trigger = global_var:fp3_struggle_ending_assertion_school -# flag:sunni = { -# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_sunni_doctrine } -# } -# flag:shia = { -# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_shia_doctrine } -# } -# flag:muhakkima = { -# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } -# } -# flag:zandaqa = { -# scope:councillor.liege.faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } -# } -# } -# } -# multiply = { -# value = fp3_struggle_ending_conversion_modifier_value -# desc = fp3_struggle_ending_conversion_modifier_desc -# } -# } - # Court events - if = { #court.6010 - limit = { - scope:councillor.liege = { - var:6010_harsh_conversion ?= scope:county.faith - } - } - multiply = { - value = 1.2 - desc = court_6010_harsh_conversions - } - } - if = { #court.6010 - limit = { - scope:councillor.liege = { - var:6010_tolerant_conversion ?= scope:county.faith - } - } - multiply = { - value = 0.8 - desc = court_6010_tolerant_conversions - } - } - #If someone has done some buddhist teaching in this province - if = { - limit = { - scope:county ?= { - has_county_modifier = buddhist_teachings_conversion_modifier - } - scope:councillor.liege.religion = religion:buddhism_religion - } - multiply = { - value = 2 - desc = buddhist_teachings_conversion_modifier - } - } - # State Faith Boost - if = { - limit = { - scope:councillor.top_liege.primary_title.state_faith ?= { - this != scope:county.faith - this = scope:councillor.top_liege.faith - } - } - multiply = { - value = ep3_state_faith_conversion_mult_value - desc = ep3_convert_county_to_state_faith - } - } - - # Conversion speed game rules - if = { - limit = { - has_game_rule = slower_faith_conversion_speed - } - multiply = { - value = slower_game_rule_value - desc = GAME_RULE_SLOWER_REASON - } - } - if = { - limit = { - has_game_rule = significantly_slower_faith_conversion_speed - } - multiply = { - value = significantly_slower_game_rule_value - desc = GAME_RULE_SIGNIFICANTLY_SLOWER_REASON - } - } - if = { - limit = { - has_game_rule = faster_faith_conversion_speed - } - multiply = { - value = faster_game_rule_value - desc = GAME_RULE_FASTER_REASON - } - } - if = { - limit = { - has_game_rule = significantly_faster_faith_conversion_speed - } - multiply = { - value = significantly_faster_game_rule_value - desc = GAME_RULE_SIGNIFICANTLY_FASTER_REASON - } - } - if = { - limit = { - exists = scope:county - OR = { - AND = { - scope:councillor.faith = { has_doctrine_parameter = unreformed_syncretic_actor_opinion_active } - scope:county.faith = { has_doctrine_parameter = unreformed } - } - AND = { - scope:councillor.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = eastern_orthodox_religion } - } - AND = { - scope:councillor.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = protestant_religion } - } - AND = { - scope:councillor.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = catholic_religion } - } - AND = { - scope:councillor.faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = islam_religion } - } - AND = { - scope:councillor.faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } - scope:county.faith = { religion_tag = judaism_religion } - } - } - } - } + + multiply = court_chaplain_conversion_factors + min = { value = 0.1 desc = minimum_conversion @@ -758,286 +476,7 @@ task_conversion = { potential_county = { scope:county = { - is_landless_type_title = no - #China changes the faith to the Huangdi's faith - trigger_if = { - limit = { - scope:councillor_liege = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - } - } - faith != scope:councillor_liege.faith - } - #Otherwise it's councillor's faith - trigger_else = { faith != scope:councillor.faith } - trigger_if = { - limit = { - scope:councillor_liege = { - is_alive = yes - has_variable = hold_court_8120_religion_block - } - } - custom_tooltip = { - text = hold_court_8120_conversion_tt - faith != scope:councillor_liege.var:hold_court_8120_religion_block - } - } - custom_description = { - text = "is_protected_via_contract_self_or_liege" - subject = holder - NAND = { # Vassal Contract forbids meddling by liege - exists = holder.liege - holder = { - OR = { - AND = { - liege = scope:councillor_liege - is_ruler = yes - top_liege != this - vassal_contract_has_flag = religiously_protected - } - any_liege_or_above = { - liege ?= scope:councillor_liege - is_ruler = yes - top_liege != this - vassal_contract_has_flag = religiously_protected - } - } - } - } - } - trigger_if = { - limit = { - AND = { - has_variable = cannot_be_converted_by_value - var:cannot_be_converted_by_value = scope:councillor_liege - } - } - custom_tooltip = { - text = promised_to_not_convert_county - NOR = { - has_variable = cannot_be_converted_by_value - var:cannot_be_converted_by_value = scope:councillor_liege - } - } - } - # Unreformed Pagans do not tend to even try conversion of non-unreformed faiths unless zealous - trigger_if = { - limit = { - scope:councillor_liege = { - is_ai = yes - faith = { - has_doctrine_parameter = unreformed - } - } - } - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { ai_zeal >= 50 } - scope:county.faith = { has_doctrine_parameter = unreformed } - scope:county = { # Always convert holy sites - any_county_province = { - barony = { - is_holy_site_of = scope:councillor_liege.faith - } - } - } - } - } - # Do not convert Righteous faiths, unless disturbingly zealous - trigger_if = { - limit = { - scope:councillor_liege = { - is_ai = yes - faith = { - faith_hostility_level = { - target = scope:county.faith - value <= faith_fully_accepted_level - } - } - } - } - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { - ai_zeal >= 100 - ai_rationality <= -50 - } - scope:county = { # Always convert holy sites - any_county_province = { - barony = { - is_holy_site_of = scope:councillor_liege.faith - } - } - } - } - } - # Converting Astray faiths only happens during certain circumstances - trigger_if = { - limit = { - scope:councillor_liege = { - is_ai = yes - faith = { - faith_hostility_level = { - target = scope:county.faith - value <= faith_astray_level - } - } - } - } - trigger_if = { - limit = { - scope:councillor_liege = { - has_tolerant_faith_or_culture_trigger = yes - } - } - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { ai_zeal >= 100 } - scope:county = { county_opinion <= -25 } - scope:county = { # Always convert holy sites - any_county_province = { - barony = { - is_holy_site_of = scope:councillor_liege.faith - } - } - } - } - } - trigger_else_if = { - limit = { - scope:councillor_liege = { - faith = { has_doctrine = doctrine_pluralism_fundamentalist } - } - } - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { ai_zeal >= 0 } - scope:county = { county_opinion <= -10 } - scope:county = { # Always convert holy sites - any_county_province = { - barony = { - is_holy_site_of = scope:councillor_liege.faith - } - } - } - } - } - trigger_else = { - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { ai_zeal >= 25 } - scope:county = { county_opinion <= -15 } - scope:county = { # Always convert holy sites - any_county_province = { - barony = { - is_holy_site_of = scope:councillor_liege.faith - } - } - } - } - } - } - # If a ruler has Jizya tax, they'll only convert the same *religious family* when ai_zeal is really high, they're converting unreformed pagans, counties in a kingdom with a Holy Site, or others of the same religion - trigger_if = { - limit = { - scope:councillor_liege = { - is_ai = yes - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } - } - } - OR = { - AND = { - scope:councillor_liege.religion = { is_in_family = rf_pagan } - scope:county.religion = { is_in_family = rf_pagan } - } - AND = { - scope:councillor_liege.religion = { is_in_family = rf_eastern } - scope:county.religion = { is_in_family = rf_eastern } - } - AND = { - scope:councillor_liege.religion = { is_in_family = rf_abrahamic } - scope:county.religion = { is_in_family = rf_abrahamic } - } - AND = { - scope:councillor_liege.religion = { is_in_family = rf_esoteric } - scope:county.religion = { is_in_family = rf_esoteric } - } - AND = { - scope:councillor_liege.religion = { is_in_family = rf_antediluvianist } - scope:county.religion = { is_in_family = rf_antediluvianist } - } - AND = { - scope:councillor_liege.religion = { is_in_family = rf_sinitic } - scope:county.religion = { is_in_family = rf_sinitic } - } - } - } - OR = { - scope:councillor_liege = { - has_character_flag = vassal_directive_convert_faith - vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege } - } - scope:councillor_liege = { ai_zeal >= 50 } - scope:county.faith = { has_doctrine_parameter = unreformed } - scope:councillor_liege.faith = { - any_holy_site = { - county = { - kingdom = scope:county.kingdom - } - } - } - #scope:county.religion = scope:councillor_liege.religion # Excluded, as tax nonbelievers actually works for different faiths within the same religion - AND = { # Islamic heartlands, to help fend off encroaching faiths - scope:councillor_liege.religion = religion:islam_religion - scope:county.title_province = { - geographical_region = islamic_heartlands - } - } - } - } - # Struggle phases may sometimes restrict targets for involved characters. - trigger_if = { - # Give an exception for pre-existing conversions: these can take a while and it's not fair to lose years or decades of progress to a phase change. - limit = { - NOT = { - scope:county = { is_target_of_council_task = task_conversion } - } - } - NOT = { - scope:councillor_liege = { - custom_tooltip = { - text = task_conversion.tt.forbidden.due_to_struggle_phase - any_character_struggle = { - involvement = involved - is_struggle_parameter_active_secondary_county_trigger = { - PARAMETER = county_conversion_disabled_for_involved_faiths_within_region - COUNTY = scope:county - } - } - } - } - } - } + task_conversion_valid_county_trigger = yes } } @@ -1096,6 +535,7 @@ task_conversion = { on_finish_task_county = { scope:county.faith = { save_scope_as = old_faith } + scope:county.rite = { save_scope_as = old_rite } scope:councillor_liege = { if = { limit = { @@ -1114,77 +554,102 @@ task_conversion = { } } } - add_to_variable_list = { - name = faiths_converted_in_counties - target = scope:old_faith + # Migration tracking only on a real Faith change (a rite shift does not displace populations) + if = { + limit = { scope:councillor_liege.faith != scope:old_faith } + add_to_variable_list = { + name = rites_converted_in_counties + target = scope:old_rite + } } } scope:county = { - add_to_variable_list = { - name = faiths_converted_in_the_county - target = scope:old_faith - years = 40 - } - scope:old_faith = { - if = { - limit = { - OR = { - NOT = { has_variable = associated_county } - AND = { - has_variable = converted_development - var:converted_development <= 0 + if = { + limit = { scope:councillor_liege.faith != scope:old_faith } + add_to_variable_list = { + name = rites_converted_in_the_county + target = scope:old_rite + years = 40 + } + scope:old_rite = { + if = { + limit = { + OR = { + NOT = { has_variable = associated_county } + AND = { + has_variable = converted_development + var:converted_development <= 0 + } } } - } - set_variable = { - name = associated_county - value = scope:county - } - } - if = { - limit = { - OR = { - NOT = { has_variable = associated_culture } - AND = { - has_variable = converted_development - var:converted_development <= 0 - } + set_variable = { + name = associated_county + value = scope:county } } - set_variable = { - name = associated_culture - value = scope:county.culture + if = { + limit = { + OR = { + NOT = { has_variable = associated_culture } + AND = { + has_variable = converted_development + var:converted_development <= 0 + } + } + } + set_variable = { + name = associated_culture + value = scope:county.culture + } } - } - if = { - limit = { - NOT = { has_variable = converted_development } + if = { + limit = { + NOT = { has_variable = converted_development } + } + set_variable = { + name = converted_development + value = scope:county.convert_faith_development_value + } } - set_variable = { - name = converted_development - value = scope:county.convert_faith_development_value - } - } - else = { - change_variable = { - name = converted_development - add = scope:county.convert_faith_development_value + else = { + change_variable = { + name = converted_development + add = scope:county.convert_faith_development_value + } } } } - change_development_level = convert_faith_development_loss + # Same decision matrix as potential_county: Liege drives the rite axis whenever the post-conversion Faith ends up as the Liege's. if = { limit = { - scope:councillor_liege = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit + OR = { + scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } + faith = scope:councillor_liege.faith + scope:councillor.faith = scope:councillor_liege.faith + } + } + set_county_rite = scope:councillor_liege.rite + } + else = { set_county_rite = scope:councillor.rite } + + if = { + limit = { scope:councillor_liege.faith != scope:old_faith } + change_development_level = convert_faith_development_loss + scope:councillor_liege.faith = { + change_fervor = { + value = trivial_fervor_gain + desc = fervor_gain_county_converted + } + } + scope:old_faith = { + change_fervor = { + value = small_fervor_gain + desc = fervor_gain_county_lost } } - set_county_faith = scope:councillor_liege.faith } - else = { set_county_faith = scope:councillor.faith } - } + if = { limit = { scope:councillor_liege = { @@ -1228,6 +693,19 @@ task_conversion = { # } # add_piety = medium_piety_gain # } +# if = { +# limit = { +# rite = { rite_has_parameter = tenet_acts_of_apostles_legitimacy_from_converts } +# } +# add_legitimacy_effect = { LEGITIMACY = medium_legitimacy_gain } +# change_spiritual_fulfillment = medium_spiritual_fulfillment_value +# } +# if = { +# limit = { +# has_personal_tenet_flag = tenet_mendicant_preachers_conversion_fulfillment +# } +# change_spiritual_fulfillment = medium_spiritual_fulfillment_value +# } # } # Message for vassals trigger_event = court_chaplain_task.8002 @@ -1440,6 +918,21 @@ task_fabricate_claim = { } } + # tenet_transubstantiation + #De Corpore et Sanguine Domini: (...)Eucharist's transformation into the flesh and blood of Christ is possible because of the principle that God is truth; God is able to manipulate nature, as he created it + + if = { + limit = { + scope:councillor.liege = { + rite = { rite_has_parameter = tenet_transubstantiation_faster_bishop_claims } + } + } + add = { + value = scope:councillor.court_chaplain_fabricate_claim_transubstantiation_bonus + desc = FABRICATE_CLAIM_TRANSUBSTANTIATION_BONUS + } + } + # Innovation Bonuses if = { limit = { @@ -1480,9 +973,9 @@ task_fabricate_claim = { } if = { #Progress penalty when fabricating on vassals limit = { - exists = scope:county - scope:county.holder = { - target_is_liege_or_above = scope:councillor.liege + exists = scope:county + scope:county.holder = { + target_is_liege_or_above = scope:councillor.liege } } multiply = { @@ -1505,6 +998,10 @@ task_fabricate_claim = { # divide = 4 # desc = FABRICATE_CLAIM_ANY_STRUGGLE_BONUS # } +# } +# add = { +# value = scope:councillor.estate_increase_fabricate_speed +# desc = estate_increase_fabricate_speed_desc # } if = { limit = { @@ -1599,111 +1096,28 @@ task_fabricate_claim = { scope:county.holder.top_liege = scope:councillor_liege.top_liege } - if = { - limit = { - exists = scope:county.holder.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege - } - } - scope:county.holder.max_military_strength > scope:councillor_liege.council_task_fabricate_claim_relative_strength - } - subtract = 10000 - } - else_if = { - limit = { - exists = scope:county.holder.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege - } - } - } - multiply = { - value = scope:councillor_liege.max_military_strength - divide = { value = scope:county.holder.max_military_strength min = 1 } - } - } - else_if = { - limit = { - exists = scope:county.holder.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege + # power check + scope:county.holder ?= { + # find war target - who is direct vassal of lowest shared liege + ordered_liege_or_above = { + limit = { + scope:councillor_liege = { target_is_same_character_or_above = prev.liege } + } + order_by = { + value = 0 + subtract = highest_held_title_tier + } + if = { + limit = { max_military_strength > scope:councillor_liege.council_task_fabricate_claim_relative_strength } + subtract = 10000 + } + else = { + multiply = { + value = scope:councillor_liege.max_military_strength + divide = { value = max_military_strength min = 1 } } } - scope:county.holder.liege.max_military_strength > scope:councillor_liege.council_task_fabricate_claim_relative_strength - } - subtract = 10000 - } - else_if = { - limit = { - exists = scope:county.holder.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege - } - } - } - multiply = { - value = scope:councillor_liege.max_military_strength - divide = { value = scope:county.holder.liege.max_military_strength min = 1 } - } - } - - else_if = { - limit = { - exists = scope:county.holder.liege.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege.liege - } - } - scope:county.holder.liege.liege.max_military_strength > scope:councillor_liege.council_task_fabricate_claim_relative_strength - } - subtract = 10000 - } - else_if = { - limit = { - exists = scope:county.holder.liege.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege.liege - } - } - } - multiply = { - value = scope:councillor_liege.max_military_strength - divide = { value = scope:county.holder.liege.liege.max_military_strength min = 1 } - } - } - - else_if = { - limit = { - exists = scope:county.holder.liege.liege.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege.liege.liege - } - } - scope:county.holder.liege.liege.liege.max_military_strength > scope:councillor_liege.council_task_fabricate_claim_relative_strength - } - subtract = 10000 - } - else_if = { - limit = { - exists = scope:county.holder.liege.liege.liege.liege - scope:councillor_liege = { - any_liege_or_above = { - this = scope:county.holder.liege.liege.liege.liege - } - } - } - multiply = { - value = scope:councillor_liege.max_military_strength - divide = { value = scope:county.holder.liege.liege.liege.max_military_strength min = 1 } } } } @@ -1767,7 +1181,7 @@ task_fabricate_claim = { add = 100 } -# # Agenda impact + # Agenda impact # if = { # limit = { # any_character_struggle = { diff --git a/common/council_tasks/00_kurultai_tasks.txt b/common/council_tasks/00_kurultai_tasks.txt index a3cb7bc9d..97fe217f2 100644 --- a/common/council_tasks/00_kurultai_tasks.txt +++ b/common/council_tasks/00_kurultai_tasks.txt @@ -119,10 +119,7 @@ task_kurultai_fertility_1 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -523,7 +520,6 @@ task_kurultai_control_1 = { location = scope:county.title_province task_contract_employer = scope:councillor target = scope:councillor.liege - destination = scope:county.title_province save_scope_as = task_contract } } @@ -776,47 +772,6 @@ task_kurultai_domestic_affairs_1 = { } # Parochial Vassal Opinion desc = task_domestic_affairs_parochial_effect_desc - triggered_desc = { - trigger = { - liege = { has_perk = chains_of_loyalty_perk } - } - desc = task_domestic_affairs_chains_of_loyalty_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_domestic_affairs_bureaucrats_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_domestic_affairs_family_business_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_consulted_house_bonus = yes - } - desc = task_domestic_affairs_consulted_house_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_title = title:c_byzantion - title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } - } - } - desc = chancellor_domestic_affairs_opinion_pandidakterion_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_character_flag = food_improves_opinion - } - } - desc = chancellor_domestic_affairs_opinion_food_bonus_desc - } # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { @@ -1061,10 +1016,7 @@ task_kurultai_exploit_area_1 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -1626,10 +1578,7 @@ task_kurultai_fertility_2 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -2033,7 +1982,6 @@ task_kurultai_control_2 = { location = scope:county.title_province task_contract_employer = scope:councillor target = scope:councillor.liege - destination = scope:county.title_province save_scope_as = task_contract } } @@ -2286,47 +2234,6 @@ task_kurultai_domestic_affairs_2 = { } # Parochial Vassal Opinion desc = task_domestic_affairs_parochial_effect_desc - triggered_desc = { - trigger = { - liege = { has_perk = chains_of_loyalty_perk } - } - desc = task_domestic_affairs_chains_of_loyalty_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_domestic_affairs_bureaucrats_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_domestic_affairs_family_business_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_consulted_house_bonus = yes - } - desc = task_domestic_affairs_consulted_house_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_title = title:c_byzantion - title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } - } - } - desc = chancellor_domestic_affairs_opinion_pandidakterion_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_character_flag = food_improves_opinion - } - } - desc = chancellor_domestic_affairs_opinion_food_bonus_desc - } # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { @@ -2571,10 +2478,7 @@ task_kurultai_exploit_area_2 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -3115,10 +3019,7 @@ task_kurultai_fertility_3 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -3523,7 +3424,6 @@ task_kurultai_control_3 = { location = scope:county.title_province task_contract_employer = scope:councillor target = scope:councillor.liege - destination = scope:county.title_province save_scope_as = task_contract } } @@ -3776,47 +3676,6 @@ task_kurultai_domestic_affairs_3 = { } # Parochial Vassal Opinion desc = task_domestic_affairs_parochial_effect_desc - triggered_desc = { - trigger = { - liege = { has_perk = chains_of_loyalty_perk } - } - desc = task_domestic_affairs_chains_of_loyalty_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_domestic_affairs_bureaucrats_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_domestic_affairs_family_business_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_consulted_house_bonus = yes - } - desc = task_domestic_affairs_consulted_house_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_title = title:c_byzantion - title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } - } - } - desc = chancellor_domestic_affairs_opinion_pandidakterion_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_character_flag = food_improves_opinion - } - } - desc = chancellor_domestic_affairs_opinion_food_bonus_desc - } # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { @@ -4061,10 +3920,7 @@ task_kurultai_exploit_area_3 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -4605,10 +4461,7 @@ task_kurultai_fertility_4 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { @@ -5012,7 +4865,6 @@ task_kurultai_control_4 = { location = scope:county.title_province task_contract_employer = scope:councillor target = scope:councillor.liege - destination = scope:county.title_province save_scope_as = task_contract } } @@ -5265,47 +5117,6 @@ task_kurultai_domestic_affairs_4 = { } # Parochial Vassal Opinion desc = task_domestic_affairs_parochial_effect_desc - triggered_desc = { - trigger = { - liege = { has_perk = chains_of_loyalty_perk } - } - desc = task_domestic_affairs_chains_of_loyalty_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_erudition_legacy_5_perk = yes - } - desc = task_domestic_affairs_bureaucrats_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_family_business_bonus = yes - } - desc = task_domestic_affairs_family_business_bonus_desc - } - triggered_desc = { - trigger = { - councillor_liege_has_consulted_house_bonus = yes - } - desc = task_domestic_affairs_consulted_house_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_title = title:c_byzantion - title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } - } - } - desc = chancellor_domestic_affairs_opinion_pandidakterion_bonus_desc - } - triggered_desc = { - trigger = { - scope:councillor_liege = { - has_character_flag = food_improves_opinion - } - } - desc = chancellor_domestic_affairs_opinion_food_bonus_desc - } # Tyranny Loss desc = task_domestic_affairs_tyranny_effect_desc triggered_desc = { @@ -5550,10 +5361,7 @@ task_kurultai_exploit_area_4 = { custom_tooltip = { text = task_kurultai_use_fertility scope:county.holder = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_herder - } + government_has_flag = government_is_in_steppe } } custom_tooltip = { diff --git a/common/council_tasks/00_marshal_tasks.txt b/common/council_tasks/00_marshal_tasks.txt index e2a2e5f4f..44aedff81 100644 --- a/common/council_tasks/00_marshal_tasks.txt +++ b/common/council_tasks/00_marshal_tasks.txt @@ -703,6 +703,20 @@ task_increase_control = { desc = MARSHAL_INCREASE_CONTROL_MIME_MODIFIER } } + # The Christian Church situation bonus +# if = { +# limit = { +# scope:councillor_liege = { +# top_participant_group:the_christian_church ?= { +# has_participant_group_parameter = the_christian_church_faster_county_control_task +# } +# } +# } +# multiply = { +# value = pam_the_christian_church_faster_county_control_task_value +# desc = pam_the_christian_church_faster_county_control_task_desc +# } +# } } full_progress = marshal_increase_control_full_progress @@ -758,7 +772,6 @@ task_increase_control = { location = scope:county.title_province task_contract_employer = scope:councillor target = scope:councillor.liege - destination = scope:county.title_province save_scope_as = task_contract } } diff --git a/common/council_tasks/00_spymaster_tasks.txt b/common/council_tasks/00_spymaster_tasks.txt index 9ecfcdc05..1d6154c7b 100644 --- a/common/council_tasks/00_spymaster_tasks.txt +++ b/common/council_tasks/00_spymaster_tasks.txt @@ -39,7 +39,7 @@ } triggered_desc = { trigger = { - scope:councillor_liege.house = { has_house_aspiration_parameter= determination_spymaster_task_disrupt_schemes_efficiency } + scope:councillor_liege.house = { has_house_aspiration_parameter = determination_spymaster_task_disrupt_schemes_efficiency } } desc = determination_spymaster_hostile_scheme_resistance_task_disrupt_schemes } @@ -69,7 +69,7 @@ } triggered_desc = { trigger = { - scope:councillor_liege.house = { has_house_aspiration_parameter= determination_spymaster_task_disrupt_schemes_efficiency } + scope:councillor_liege.house = { has_house_aspiration_parameter = determination_spymaster_task_disrupt_schemes_efficiency } } desc = determination_spymaster_discovery_task_disrupt_schemes } @@ -126,31 +126,31 @@ council_owner_modifier = { name = task_disrupt_schemes_modifier - scheme_discovery_chance_mult = 1.0 + enemy_scheme_secrecy_add = -100 scale = { value = scope:councillor.spymaster_disrupt_schemes_scheme_discovery_modifier divide = 200 } } council_owner_modifier = { name = task_disrupt_schemes_court_of_shadows_modifier - scheme_discovery_chance_mult = 1.0 + enemy_scheme_secrecy_add = -100 scale = { value = scope:councillor.spymaster_disrupt_schemes_court_of_shadows_scheme_discovery_modifier_scale divide = 200 } } council_owner_modifier = { name = task_disrupt_schemes_erudition_legacy_5_modifier #NOT USED? - scheme_discovery_chance_mult = 1.0 + enemy_scheme_secrecy_add = -100 scale = { value = scope:councillor.spymaster_disrupt_schemes_erudition_legacy_5_discovery_modifier_scale divide = 200 } } council_owner_modifier = { name = task_disrupt_schemes_erudition_legacy_5_modifier #TO EDIT - scheme_discovery_chance_mult = 1.0 + enemy_scheme_secrecy_add = -100 scale = { value = scope:councillor.spymaster_disrupt_schemes_family_business_discovery_modifier_scale divide = 200 } } council_owner_modifier = { name = determination_spymaster_task_disrupt_schemes_modifier - scheme_discovery_chance_mult = 1.0 + enemy_scheme_secrecy_add = -100 scale = { value = scope:councillor.spymaster_disrupt_schemes_determination_discovery_modifier_scale divide = 200 } } @@ -250,7 +250,7 @@ task_support_schemes = { # Determination House Aspiration - Hostile Scheme Phase Length triggered_desc = { trigger = { - scope:councillor_liege.house = { has_house_aspiration_parameter= determination_spymaster_task_support_schemes_efficiency } + scope:councillor_liege.house = { has_house_aspiration_parameter = determination_spymaster_task_support_schemes_efficiency } } desc = determination_spymaster_task_support_schemes_bonus } @@ -282,7 +282,7 @@ task_support_schemes = { # Determination House Aspiration - Hostile Scheme Success Chance triggered_desc = { trigger = { - scope:councillor_liege.house = { has_house_aspiration_parameter= determination_spymaster_task_support_schemes_efficiency } + scope:councillor_liege.house = { has_house_aspiration_parameter = determination_spymaster_task_support_schemes_efficiency } } desc = determination_spymaster_task_support_schemes_success_chance_bonus } @@ -448,6 +448,28 @@ task_find_secrets = { desc = ESPIONAGE_PERK_BONUS_VALUE } } + if = { # PAM Confession tenet + limit = { + scope:councillor_liege.cp:councillor_court_chaplain ?= { + faith = scope:councillor_liege.faith + rite = { rite_has_parameter = tenet_confession_priests_secrets } + # PAM Confession: a confessor betrays what he hears only for a ruler he approves of + OR = { + opinion = { + target = scope:councillor_liege + value > 0 + } + scope:councillor_liege = { + has_strong_hook = scope:councillor_liege.cp:councillor_court_chaplain + } + } + } + } + add = { + value = scope:councillor_liege.cp:councillor_court_chaplain.chaplain_find_secrets_confession_bonus + desc = CONFESSION_TENET_BONUS_VALUE + } + } } if = { limit = { @@ -529,6 +551,18 @@ task_find_secrets = { desc = SPYMASTER_FIND_SECRETS_CHARACTER_MODIFIERS } } +# if = { +# limit = { +# scope:councillor_liege = { +# has_title = title:c_byzantion +# title:c_byzantion = { has_county_modifier = pandidakterion_university_modifier } +# } +# } +# multiply = { +# value = 1.3 +# desc = pandidakterion_university_modifier +# } +# } # Lady in Waiting if = { limit = { @@ -559,7 +593,7 @@ task_find_secrets = { # Determination House Aspiration if = { limit = { - scope:councillor_liege.house ?= { has_house_aspiration_parameter= determination_spymaster_task_find_secrets_efficiency } + scope:councillor_liege.house ?= { has_house_aspiration_parameter = determination_spymaster_task_find_secrets_efficiency } } add = { value = spymaster_determination_house_aspiration_find_secrets_total diff --git a/common/council_tasks/00_steward_tasks.txt b/common/council_tasks/00_steward_tasks.txt index 2e4531039..3ca0f59ec 100644 --- a/common/council_tasks/00_steward_tasks.txt +++ b/common/council_tasks/00_steward_tasks.txt @@ -606,7 +606,6 @@ task_develop_county = { # } # } # } -# # } } else_if = { # fallback for previous save: the effect would trigger a month later @@ -812,109 +811,6 @@ task_promote_culture = { } } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 25 - county_control >= 0 - } - } - multiply = { - value = 0.3 - desc = STEWARD_PROMOTE_CULTURE_LOW_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 50 - county_control > 25 - } - } - multiply = { - value = 0.5 - desc = STEWARD_PROMOTE_CULTURE_MEDIUM_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 75 - county_control > 50 - } - } - multiply = { - value = 0.7 - desc = STEWARD_PROMOTE_CULTURE_HIGH_CONTROL_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control <= 100 - county_control > 75 - } - } - multiply = { - value = 1.2 - desc = STEWARD_PROMOTE_CULTURE_HIGH_CONTROL_BONUS - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county - scope:county = { - county_control > 100 - } - } - multiply = { - value = 1.5 - desc = STEWARD_PROMOTE_CULTURE_ABSOLUTE_CONTROL_BONUS - } - } - ##### - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.title_province - scope:county.title_province = { - OR = { - terrain = jungle - terrain = mountains - terrain = desert - terrain = desert_mountains - terrain = taiga - terrain = wetlands - } - } - } - multiply = { - value = 0.4 - desc = STEWARD_PROMOTE_CULTURE_HIGH_TERRAIN_PENALTY - } - } - if = { # Development reduces the speed. Should be the last non-multiply modifier applied to avoid negative values - limit = { - exists = scope:county.title_province - scope:county.title_province = { - OR = { - terrain = floodplains - terrain = drylands - terrain = steppe - terrain = forest - terrain = hills - terrain = tells - } - } - } - multiply = { - value = 0.5 - desc = STEWARD_PROMOTE_CULTURE_LOW_TERRAIN_PENALTY - } - } # Conversion speed game rules if = { limit = { @@ -952,7 +848,7 @@ task_promote_culture = { desc = GAME_RULE_FASTER_REASON } } -# # Faster conversion for FP2 Hostility ending, if county is in Iberia and culture was involved + # Faster conversion for FP2 Hostility ending, if county is in Iberia and culture was involved # if = { # limit = { # any_in_global_list = { @@ -1031,6 +927,18 @@ task_promote_culture = { } } } +# NAND = { # Princes in the HRE tend to not convert each other's cultures +# exists = title:e_hre.holder +# scope:councillor_liege.top_liege = title:e_hre.holder +# OR = { +# scope:councillor_liege.culture = culture:czech +# scope:councillor_liege.culture = { has_cultural_pillar = heritage_central_germanic } +# } +# OR = { +# scope:county.culture = culture:czech +# scope:county.culture = { has_cultural_pillar = heritage_central_germanic } +# } +# } NOT = { # Do not eliminate the Basques scope:county.culture = { this = culture:basque @@ -1046,11 +954,18 @@ task_promote_culture = { cultural_acceptance = { target = scope:councillor_liege.culture value >= 50 } } } +# scope:county = { +# this = title:c_maragha +# culture = culture:turkish +# } culture = { # All AI's are motivated to spread new Hybrid/Divergent cultures OR = { is_hybrid_culture = yes is_divergent_culture = yes } +# NOT = { # Leave the Welsh alone! +# this = culture:anglo_saxon +# } any_parent_culture = { this = scope:county.culture } @@ -1060,6 +975,51 @@ task_promote_culture = { count < 10 } } + scope:county.culture = { # 'dead' small cultures can go away + OR = { + is_hybrid_culture = yes + is_divergent_culture = yes + } + any_culture_county = { + count < 10 + } + OR = { + NOT = { exists = culture_head } + any_culture_county = { + count < 5 + } + } + } +# AND = { +# # Scottish rulers should convert counties of 'old' cultures to the new one. +# culture = culture:scottish +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:gaelic +# scope:county.culture = culture:cumbrian +# scope:county.culture = culture:pictish +# } +# } +# AND = { +# # English rulers should convert counties of 'old' cultures to the new one. +# culture = culture:english +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:norman +# } +# } +# AND = { +# # German rulers want to convert the polabians +# culture = { has_cultural_pillar = heritage_central_germanic } +# scope:county.culture = culture:polabian +# NOT = { scope:councillor_liege.primary_title = title:e_hre } +# } +# +# AND = { +# # Japanese rulers should convert Emishi counties +# culture = culture:japanese +# scope:county.culture = culture:emishi +# } } OR = { is_independent_ruler = yes @@ -1078,6 +1038,21 @@ task_promote_culture = { count < 10 } } + scope:county.culture = { # 'dead' small cultures can go away + OR = { + is_hybrid_culture = yes + is_divergent_culture = yes + } + any_culture_county = { + count < 10 + } + OR = { + NOT = { exists = culture_head } + any_culture_county = { + count < 5 + } + } + } culture = { # Imperious cultures want to grow to a certain size culture_head ?= { is_independent_ruler = yes @@ -1088,6 +1063,35 @@ task_promote_culture = { count < 35 } } +# AND = { +# # Scottish rulers should convert counties of 'old' cultures to the new one. +# culture = culture:scottish +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:gaelic +# scope:county.culture = culture:cumbrian +# scope:county.culture = culture:pictish +# } +# } +# AND = { +# # English rulers should convert counties of 'old' cultures to the new one. +# culture = culture:english +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:norman +# } +# } +# AND = { +# # German rulers want to convert the polabians +# culture = { has_cultural_pillar = heritage_central_germanic } +# scope:county.culture = culture:polabian +# NOT = { scope:councillor_liege.primary_title = title:e_hre } +# } +# AND = { +# # Japanese rulers should convert Emishi counties +# culture = culture:japanese +# scope:county.culture = culture:emishi +# } } } OR = { @@ -1096,6 +1100,57 @@ task_promote_culture = { culture = scope:councillor_liege.culture # The AI only wants to convert counties bordering their own culture } } +# AND = { # The English want to convert the Anglo Saxons and Cumbrians +# scope:councillor_liege.culture = culture:english +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:cumbrian +# } +# } +# AND = { # The Scots want to convert the Anglo Saxons, Cumbrians and Gaelic +# scope:councillor_liege.culture = culture:scottish +# OR = { +# scope:county.culture = culture:anglo_saxon +# scope:county.culture = culture:gaelic +# scope:county.culture = culture:cumbrian +# scope:county.culture = culture:pictish +# } +# } +# AND = { # The Gaels want to convert the Picts and Cumbrians +# scope:councillor_liege.culture = culture:gaelic +# OR = { +# scope:county.culture = culture:cumbrian +# scope:county.culture = culture:pictish +# } +# } +# AND = { # The modern scandinavians want to convert the Norse +# OR = { +# scope:councillor_liege.culture = culture:swedish +# scope:councillor_liege.culture = culture:danish +# scope:councillor_liege.culture = culture:norwegian +# } +# scope:county.culture = culture:norse +# } +# AND = { # The Portuguese should want to convert Suebi +# scope:councillor_liege.culture = culture:portuguese +# scope:county.culture = culture:suebi +# } +# AND = { # The Iberians want to convert Visigothic +# scope:councillor_liege.culture = { has_cultural_pillar = heritage_iberian } +# NOT = { scope:councillor_liege.culture = culture:portuguese } +# scope:county.culture = culture:visigothic +# } +# AND = { +# # German rulers want to convert the polabians +# scope:councillor_liege.culture = { has_cultural_pillar = heritage_central_germanic } +# scope:county.culture = culture:polabian +# NOT = { scope:councillor_liege.primary_title = title:e_hre } +# } +# AND = { +# # Japanese rulers should convert Emishi counties +# scope:councillor_liege.culture = culture:japanese +# scope:county.culture = culture:emishi +# } } } trigger_else_if = { # But AI Directives should still try to look pretty @@ -1124,6 +1179,8 @@ task_promote_culture = { always = yes } } + trigger_else = { + } } on_finish_task_county = { @@ -1673,9 +1730,9 @@ task_accept_culture = { # } # } # NAND = { -# # German rulers want to convert the sorbians +# # German rulers want to convert the polabians # scope:councillor_liege.culture = { has_cultural_pillar = heritage_central_germanic } -# scope:county.culture = culture:sorbian +# scope:county.culture = culture:polabian # NOT = { scope:councillor_liege.primary_title = title:e_hre } # } # NAND = {