diff --git a/common/buildings/NEOW_special_buildings.txt b/common/buildings/NEOW_special_buildings.txt index f370c273..ca9a51ed 100644 --- a/common/buildings/NEOW_special_buildings.txt +++ b/common/buildings/NEOW_special_buildings.txt @@ -9674,7 +9674,7 @@ petropavlovskaya_krepost_01 = { knight_effectiveness_mult = 0.125 monthly_martial_lifestyle_xp_gain_mult = 0.1 monthly_prestige_gain_mult = 0.10 - belligerent_vassal_opinion = 5 + belligerent_opinion = 5 glory_hound_opinion = 5 } @@ -9734,7 +9734,7 @@ petropavlovskaya_krepost_02 = { knight_effectiveness_mult = 0.25 monthly_martial_lifestyle_xp_gain_mult = 0.1 monthly_prestige_gain_mult = 0.10 - belligerent_vassal_opinion = 10 + belligerent_opinion = 10 glory_hound_opinion = 10 } diff --git a/common/character_interactions/00_grant_titles_interaction.txt b/common/character_interactions/00_grant_titles_interaction.txt index 5f345bab..92190d2a 100644 --- a/common/character_interactions/00_grant_titles_interaction.txt +++ b/common/character_interactions/00_grant_titles_interaction.txt @@ -306,39 +306,39 @@ grant_titles_interaction = { } custom_tooltip = grant_title_landing_acclaimed_knight_warning } - scope:recipient = { - if = { - limit = { - top_liege = this - save_temporary_scope_as = recipient_is_independent - } - } - if = { - limit = { - NOT = { - has_relation_friend = scope:actor - } - } - if = { - # then verify the right struggle phase - limit = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:actor - STATUS = involved - } - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_to_leads_to_friendship - } - } - progress_towards_friend_effect = { - REASON = friend_granted_title - CHARACTER = scope:actor - OPINION = 0 - } - } - } - } +# scope:recipient = { +# if = { +# limit = { +# top_liege = this +# save_temporary_scope_as = recipient_is_independent +# } +# } +# if = { +# limit = { +# NOT = { +# has_relation_friend = scope:actor +# } +# } +# if = { +# # then verify the right struggle phase +# limit = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:actor +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_to_leads_to_friendship +# } +# } +# progress_towards_friend_effect = { +# REASON = friend_granted_title +# CHARACTER = scope:actor +# OPINION = 0 +# } +# } +# } +# } if = { limit = { @@ -1129,24 +1129,24 @@ grant_titles_interaction = { right_icon = scope:recipient custom_tooltip = grant_titles_interaction_notification_effect_2 - if = { - limit = { - exists = dynasty - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_gives_prestige - - } - } - dynasty = { - add_dynasty_prestige = minor_dynasty_prestige_gain - } - - } +# if = { +# limit = { +# exists = dynasty +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_gives_prestige +# +# } +# } +# dynasty = { +# add_dynasty_prestige = minor_dynasty_prestige_gain +# } +# +# } } } else_if = { @@ -1254,38 +1254,38 @@ grant_titles_interaction = { hidden_effect = { # Struggle Catalyst - if = { - limit = { - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# if = { +# limit = { +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Achievements. diff --git a/common/character_interactions/00_prison_interactions.txt b/common/character_interactions/00_prison_interactions.txt index e0854b53..0c6bdde9 100644 --- a/common/character_interactions/00_prison_interactions.txt +++ b/common/character_interactions/00_prison_interactions.txt @@ -2630,59 +2630,59 @@ pay_ransom_interaction = { } # Struggle Catalyst - if = { - limit = { - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_ransom_important - CHAR = scope:prisoner - } - } - } - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_ransom_important - CHAR = scope:prisoner - } - } - activate_struggle_catalyst = { - catalyst = catalyst_ransom_important - character = scope:imprisoner - } - } - } - if = { - limit = { - fp3_struggle_involves_one_supporter_and_one_detractor = { - FIRST = scope:imprisoner - SECOND = scope:prisoner - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_ransom_supporter_detractor - CHAR = scope:prisoner - } - } - } - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_ransom_supporter_detractor - CHAR = scope:prisoner - } - } - activate_struggle_catalyst = { - catalyst = catalyst_ransom_supporter_detractor - character = scope:imprisoner - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_ransom_supporter_detractor } - } - } +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_ransom_important +# CHAR = scope:prisoner +# } +# } +# } +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_ransom_important +# CHAR = scope:prisoner +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_ransom_important +# character = scope:imprisoner +# } +# } +# } +# if = { +# limit = { +# fp3_struggle_involves_one_supporter_and_one_detractor = { +# FIRST = scope:imprisoner +# SECOND = scope:prisoner +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_ransom_supporter_detractor +# CHAR = scope:prisoner +# } +# } +# } +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_ransom_supporter_detractor +# CHAR = scope:prisoner +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_ransom_supporter_detractor +# character = scope:imprisoner +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_ransom_supporter_detractor } +# } +# } } if = { limit = { scope:hook = yes } @@ -4736,57 +4736,57 @@ release_from_prison_interaction = { } # Struggle Catalyst - if = { - limit = { - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_release_important - CHAR = scope:recipient - } - } - } - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_release_important - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_release_important - character = scope:actor - } - } - } - if = { - limit = { - fp3_struggle_involves_one_supporter_and_one_detractor = { - FIRST = scope:actor - SECOND = scope:recipient - } - any_character_struggle = { - activate_struggle_catalyst_secondary_character_involvement_either_trigger = { - CATALYST = catalyst_release_supporter_detractor - CHAR = scope:recipient - } - } - } - every_character_struggle = { - limit = { - activate_struggle_catalyst_secondary_character_involvement_either_trigger = { - CATALYST = catalyst_release_supporter_detractor - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_release_supporter_detractor - character = scope:actor - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_release_supporter_detractor } - } - } +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_release_important +# CHAR = scope:recipient +# } +# } +# } +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_release_important +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_release_important +# character = scope:actor +# } +# } +# } +# if = { +# limit = { +# fp3_struggle_involves_one_supporter_and_one_detractor = { +# FIRST = scope:actor +# SECOND = scope:recipient +# } +# any_character_struggle = { +# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { +# CATALYST = catalyst_release_supporter_detractor +# CHAR = scope:recipient +# } +# } +# } +# every_character_struggle = { +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { +# CATALYST = catalyst_release_supporter_detractor +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_release_supporter_detractor +# character = scope:actor +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_release_supporter_detractor } +# } +# } } # If we're a clan (and not making any demands) this interaction affects unity diff --git a/common/character_interactions/00_vassal_interactions.txt b/common/character_interactions/00_vassal_interactions.txt index 22f18606..cb33bb2c 100644 --- a/common/character_interactions/00_vassal_interactions.txt +++ b/common/character_interactions/00_vassal_interactions.txt @@ -258,38 +258,38 @@ grant_vassal_interaction = { hidden_effect = { # Struggle catalyst - if = { - limit = { - fp3_struggle_involves_one_supporter_and_one_detractor = { - FIRST = scope:actor - SECOND = scope:recipient - } - scope:actor = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_grants_vassal_to_de_jure_liege_supporter_detractor - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - scope:recipient.primary_title = { - any_this_title_or_de_jure_above = { - holder = scope:secondary_actor - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_grants_vassal_to_de_jure_liege_supporter_detractor - character = scope:actor - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_vassal_to_de_jure_liege_supporter_detractor } - } - } - } +# if = { +# limit = { +# fp3_struggle_involves_one_supporter_and_one_detractor = { +# FIRST = scope:actor +# SECOND = scope:recipient +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_grants_vassal_to_de_jure_liege_supporter_detractor +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# scope:recipient.primary_title = { +# any_this_title_or_de_jure_above = { +# holder = scope:secondary_actor +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_grants_vassal_to_de_jure_liege_supporter_detractor +# character = scope:actor +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_vassal_to_de_jure_liege_supporter_detractor } +# } +# } +# } if = { limit = { scope:recipient = { @@ -2423,33 +2423,33 @@ ask_for_pardon_interaction = { hidden_effect = { # Struggle catalysts - if = { - limit = { - fp3_struggle_involves_one_supporter_and_one_detractor = { - FIRST = scope:actor - SECOND = scope:recipient - } - scope:recipient = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_grants_pardon_supporter_detractor - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:actor - } - } - } - } - scope:recipient = { - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_grants_pardon_supporter_detractor - character = scope:recipient - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_pardon_supporter_detractor } - } - } - } +# if = { +# limit = { +# fp3_struggle_involves_one_supporter_and_one_detractor = { +# FIRST = scope:actor +# SECOND = scope:recipient +# } +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_grants_pardon_supporter_detractor +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:actor +# } +# } +# } +# } +# scope:recipient = { +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_grants_pardon_supporter_detractor +# character = scope:recipient +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_pardon_supporter_detractor } +# } +# } +# } } } @@ -2765,31 +2765,31 @@ pardon_interaction = { hidden_effect = { # Struggle catalysts - if = { - limit = { - fp3_struggle_involves_one_supporter_and_one_detractor = { - FIRST = scope:actor - SECOND = scope:recipient - } - scope:recipient = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_grants_pardon_supporter_detractor - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:actor - } - } - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_grants_pardon_supporter_detractor - character = scope:recipient - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_pardon_supporter_detractor } - } - } +# if = { +# limit = { +# fp3_struggle_involves_one_supporter_and_one_detractor = { +# FIRST = scope:actor +# SECOND = scope:recipient +# } +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_grants_pardon_supporter_detractor +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:actor +# } +# } +# } +# } +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_grants_pardon_supporter_detractor +# character = scope:recipient +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_grants_pardon_supporter_detractor } +# } +# } } } diff --git a/common/decisions/dlc_decisions/fp3_decisions.txt b/common/decisions/dlc_decisions/fp3_decisions.txt index b962c64a..db5a5fb4 100644 --- a/common/decisions/dlc_decisions/fp3_decisions.txt +++ b/common/decisions/dlc_decisions/fp3_decisions.txt @@ -1135,10 +1135,10 @@ fp3_become_clan_government_decision = { } effect = { - legend_seed_struggle_ending_effect = { - ENDER = root - STRUGGLE = persian_struggle - } +# legend_seed_struggle_ending_effect = { +# ENDER = root +# STRUGGLE = persian_struggle +# } if = { limit = { has_ach_dlc_trigger = yes } add_character_flag = ach_ended_struggle diff --git a/common/landed_titles/debug_titles.txt b/common/landed_titles/debug_titles.txt new file mode 100644 index 00000000..39b14e0c --- /dev/null +++ b/common/landed_titles/debug_titles.txt @@ -0,0 +1,74 @@ +# special titles + +@correct_culture_primary_score = 100 +@better_than_the_alternatives_score = 50 +@always_primary_score = 1000 +@never_primary_score = -1000 + +h_china = { + color = { 230 180 10 } + capital = c_thessalonika + e_minister_chancellor = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_chancellor = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_censor = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_grand_marshal = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_personnel = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_revenue = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_rites = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_war = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_justice = { + capital = c_thessalonika + color = { 230 180 10 } + } + e_minister_of_works = { + capital = c_thessalonika + color = { 230 180 10 } + } +} +h_roman_empire = { + capital = c_thessalonika + color = { 230 180 10 } +} +h_eastern_roman_empire = { + capital = c_thessalonika + color = { 230 180 10 } +} + +h_dar_al_islam = { + capital = c_thessalonika + color = { 230 180 10 } +} + +h_india= { + capital = c_thessalonika + color = { 230 180 10 } +} + +e_japan= { + capital = c_thessalonika + color = { 230 180 10 } +} \ No newline at end of file diff --git a/common/laws/00_succession_laws.txt b/common/laws/00_succession_laws.txt index 0243956a..d25aa276 100644 --- a/common/laws/00_succession_laws.txt +++ b/common/laws/00_succession_laws.txt @@ -62,7 +62,7 @@ } } government_has_flag = government_is_tribal - government_has_flag = government_is_minority + government_has_flag = government_is_landless_minority } } succession = { @@ -598,7 +598,7 @@ } should_start_with = { has_ep3_dlc_trigger = yes -# has_title = title:e_byzantium + has_title = title:e_byzantium government_allows = administrative } succession = { @@ -1405,7 +1405,7 @@ should_start_with = { government_has_flag = government_is_japan_administrative is_independent_ruler = no - NOT = { has_title = title:k_chrysanthemum_throne } +# NOT = { has_title = title:k_chrysanthemum_throne } NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } } succession = { diff --git a/common/laws/01_title_succession_laws.txt b/common/laws/01_title_succession_laws.txt index 01026bb9..5f282702 100644 --- a/common/laws/01_title_succession_laws.txt +++ b/common/laws/01_title_succession_laws.txt @@ -1,420 +1 @@ -title_succession_laws = { - # Default Feudal Elective - feudal_elective_succession_law = { - can_have = { - government_has_flag = government_is_feudal - highest_held_title_tier >= tier_county - NOR = { #Cultures have their special flavor. - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - culture = { has_cultural_parameter = witenagemot_succession_enabled } - culture = { has_cultural_parameter = scandinavian_elective_enabled } - culture = { has_cultural_parameter = tribal_elective_enabled } #FP3 addition - } - } - can_pass = { - can_change_title_law_trigger = yes - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = feudal_elective - } - flag = elective_succession_law - title_allegiance_opinion = 10 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } - -# # HRE Succession -# princely_elective_succession_law = { -# can_have = { -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# } -# NOR = { #Cultures have their special flavor. -# government_has_flag = government_is_prepublic -# government_has_flag = government_is_urepublic -# } -# highest_held_title_tier = tier_empire -# } -# can_pass = { -# can_change_title_law_trigger = yes -# } -# can_title_have = { -# this = title:e_hre -# can_title_have_law_general_trigger = yes -# } -# succession = { -# order_of_succession = election -# election_type = princely_elective -# } -# flag = elective_succession_law -# title_allegiance_opinion = 10 -# modifier = { -# vassal_limit = 20 -# minority_opinion = -15 -# } -# revoke_cost = { -# prestige = change_hre_title_succession_law_prestige_cost -# } -# pass_cost = { -# prestige = change_title_succession_law_prestige_cost -# } -# } - - # Witenagemot - saxon_elective_succession_law = { - can_have = { - government_has_flag = government_is_prepublic - } - can_pass = { - can_change_title_law_trigger = yes - } - can_title_have = { - tier >= tier_county - is_temporal_head_of_faith_trigger = no - NOT = { - is_nomad_title = yes - } - } - succession = { - order_of_succession = election - election_type = saxon_elective - } - should_start_with = { - government_has_flag = government_is_prepublic - } - flag = elective_succession_law - flag = titles_cannot_leave_realm_on_succession - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - potential = { - government_has_flag = government_is_prepublic - } - } - - urban_elective_succession_law = { - can_have = { - government_has_flag = government_is_urepublic - } - can_pass = { - can_change_title_law_trigger = yes - } - can_title_have = { - tier >= tier_county - is_temporal_head_of_faith_trigger = no - NOT = { - is_nomad_title = yes - } - } - succession = { - order_of_succession = election - election_type = urban_elective - } - should_start_with = { - government_has_flag = government_is_urepublic - } - flag = elective_succession_law - flag = titles_cannot_leave_realm_on_succession - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - potential = { - government_has_flag = government_is_urepublic - } - } - # Thing - scandinavian_elective_succession_law = { - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - highest_held_title_tier >= tier_duchy - } - can_pass = { - can_change_title_law_trigger = yes - culture = { has_cultural_parameter = scandinavian_elective_enabled } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = scandinavian_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } - - # Tanistry - gaelic_elective_succession_law = { - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - highest_held_title_tier >= tier_duchy - } - can_pass = { - can_change_title_law_trigger = yes - custom_description = { - OR = { - culture = { has_cultural_pillar = heritage_brythonic } - culture = { has_cultural_pillar = heritage_goidelic } - } - text = succession_laws_must_have_valid_tanistry_culture - } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = gaelic_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } - - # Jirga elective - tribal_elective_succession_law = { #FOR FP3 - can_have = { - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - highest_held_title_tier >= tier_kingdom - } - can_pass = { - can_change_title_law_trigger = yes - culture = { has_cultural_parameter = tribal_elective_enabled } - } - can_title_have = { - can_title_have_law_general_trigger = yes - } - succession = { - order_of_succession = election - election_type = tribal_elective - } - flag = elective_succession_law - title_allegiance_opinion = 5 - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } - - # Player Heir - temporal_head_of_faith_succession_law = { - can_title_have = { - is_temporal_head_of_faith_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - custom_description = { - text = succession_laws_must_not_be_temporal - is_temporal_head_of_faith_trigger = no - } - } - succession = { - order_of_succession = player_heir - } - } - - # Noble Family Succession - noble_family_succession_law = { - can_title_have = { - OR = { - is_noble_family_title = yes - is_nomad_title = yes - } - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = noble_family - title_division = single_heir - } - flag = can_designate_heirs - } - - # Law of the Land Title Succession - # Applied in on_title_gain when a county title's capital province has required heir government types defined and the new holder does not meet the requirement. - law_of_the_land_succession_law = { - can_title_have = { - tier = tier_county - title_province = { - holding_type = { - has_required_heir_governments = yes - NOT = { - any_required_heir_government_type = { - this = root.holder.government_type - } - } - } - } - } - # Never show this in the UI, just apply it through script - should_show_for_title = { always = no } - can_remove_from_title = { always = no } - succession = { - order_of_succession = generate_from_template - } - } - #Confederation elective - confederation_elective_succession_law = { - can_title_have = { - tier >= tier_kingdom - } - should_show_for_title = { - has_variable = confederation_culture - } - succession = { - order_of_succession = election - election_type = confederation_elective - } - flag = elective_succession_law - title_allegiance_opinion = 10 - revoke_cost = { - prestige = { - value = change_title_succession_law_prestige_cost - multiply = 8 - if = { - limit = { - NOR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_nomadic - } - } - multiply = 0.1 - } - } - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } - - # Celestial Ministry Succession - celestial_ministry_appointment_succession_law = { - can_have = { - government_has_flag = government_is_celestial - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - } - can_title_have = { - tgp_is_civilian_minister_title = yes - } - can_realm_have = { - always = no - } - can_remove_from_title = { - custom_tooltip = { - text = celestial_ministry_appointment_cannot_remove_desc - always = no - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_minister - } - modifier = { - celestial_government_opinion = 5 - } - flag = appointment_type_succession - flag = appointment_with_level_requirement - } - -# # Celestial Grand Marshal Succession -# celestial_grand_marshal_appointment_succession_law = { -# can_have = { -# government_has_flag = government_is_celestial -# NOR = { -# government_has_flag = government_is_prepublic -# government_has_flag = government_is_urepublic -# } -# } -# can_pass = { -# } -# can_title_have = { -# this = title:e_minister_grand_marshal -# } -# can_realm_have = { -# always = no -# } -# can_remove_from_title = { -# custom_tooltip = { -# text = celestial_ministry_appointment_cannot_remove_desc -# always = no -# } -# } -# succession = { -# order_of_succession = appointment -# appointment_type = celestial_military_governor -# } -# modifier = { -# celestial_government_opinion = 5 -# } -# flag = appointment_type_succession -# flag = appointment_with_level_requirement -# } -} - - + \ No newline at end of file diff --git a/common/laws/NEOW_succession_laws.txt b/common/laws/NEOW_succession_laws.txt index 65945a08..821e22a8 100644 --- a/common/laws/NEOW_succession_laws.txt +++ b/common/laws/NEOW_succession_laws.txt @@ -1,4 +1,421 @@ title_succession_laws = { + # Default Feudal Elective + feudal_elective_succession_law = { + can_have = { + government_has_flag = government_is_feudal + highest_held_title_tier >= tier_county + NOR = { #Cultures have their special flavor. + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + culture = { has_cultural_parameter = witenagemot_succession_enabled } + culture = { has_cultural_parameter = scandinavian_elective_enabled } + culture = { has_cultural_parameter = tribal_elective_enabled } #FP3 addition + } + } + can_pass = { + can_change_title_law_trigger = yes + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = feudal_elective + } + flag = elective_succession_law + title_allegiance_opinion = 10 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + +# # HRE Succession +# princely_elective_succession_law = { +# can_have = { +# OR = { +# government_has_flag = government_is_feudal +# government_has_flag = government_is_clan +# } +# NOR = { #Cultures have their special flavor. +# government_has_flag = government_is_prepublic +# government_has_flag = government_is_urepublic +# } +# highest_held_title_tier = tier_empire +# } +# can_pass = { +# can_change_title_law_trigger = yes +# } +# can_title_have = { +# this = title:e_hre +# can_title_have_law_general_trigger = yes +# } +# succession = { +# order_of_succession = election +# election_type = princely_elective +# } +# flag = elective_succession_law +# title_allegiance_opinion = 10 +# modifier = { +# vassal_limit = 20 +# minority_opinion = -15 +# } +# revoke_cost = { +# prestige = change_hre_title_succession_law_prestige_cost +# } +# pass_cost = { +# prestige = change_title_succession_law_prestige_cost +# } +# } + + # Witenagemot + saxon_elective_succession_law = { + can_have = { + government_has_flag = government_is_prepublic + } + can_pass = { + can_change_title_law_trigger = yes + } + can_title_have = { + tier >= tier_county + is_temporal_head_of_faith_trigger = no + NOT = { + is_nomad_title = yes + } + } + succession = { + order_of_succession = election + election_type = saxon_elective + } + should_start_with = { + government_has_flag = government_is_prepublic + } + flag = elective_succession_law + flag = titles_cannot_leave_realm_on_succession + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + potential = { + government_has_flag = government_is_prepublic + } + } + + urban_elective_succession_law = { + can_have = { + government_has_flag = government_is_urepublic + } + can_pass = { + can_change_title_law_trigger = yes + } + can_title_have = { + tier >= tier_county + is_temporal_head_of_faith_trigger = no + NOT = { + is_nomad_title = yes + } + } + succession = { + order_of_succession = election + election_type = urban_elective + } + should_start_with = { + government_has_flag = government_is_urepublic + } + flag = elective_succession_law + flag = titles_cannot_leave_realm_on_succession + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + potential = { + government_has_flag = government_is_urepublic + } + } + # Thing + scandinavian_elective_succession_law = { + can_have = { + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_tribal + } + NOR = { + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + } + highest_held_title_tier >= tier_duchy + } + can_pass = { + can_change_title_law_trigger = yes + culture = { has_cultural_parameter = scandinavian_elective_enabled } + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = scandinavian_elective + } + flag = elective_succession_law + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + + # Tanistry + gaelic_elective_succession_law = { + can_have = { + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_tribal + } + NOR = { + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + } + highest_held_title_tier >= tier_duchy + } + can_pass = { + can_change_title_law_trigger = yes + custom_description = { + OR = { + culture = { has_cultural_pillar = heritage_brythonic } + culture = { has_cultural_pillar = heritage_goidelic } + } + text = succession_laws_must_have_valid_tanistry_culture + } + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = gaelic_elective + } + flag = elective_succession_law + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + + # Jirga elective + tribal_elective_succession_law = { #FOR FP3 + can_have = { + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_clan + government_has_flag = government_is_tribal + } + NOR = { + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + } + highest_held_title_tier >= tier_kingdom + } + can_pass = { + can_change_title_law_trigger = yes + culture = { has_cultural_parameter = tribal_elective_enabled } + } + can_title_have = { + can_title_have_law_general_trigger = yes + } + succession = { + order_of_succession = election + election_type = tribal_elective + } + flag = elective_succession_law + title_allegiance_opinion = 5 + revoke_cost = { + prestige = change_title_succession_law_prestige_cost + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + + # Player Heir + temporal_head_of_faith_succession_law = { + can_title_have = { + is_temporal_head_of_faith_trigger = yes + } + should_show_for_title = { # Never show this in the UI, just apply it through script + always = no + } + can_remove_from_title = { + custom_description = { + text = succession_laws_must_not_be_temporal + is_temporal_head_of_faith_trigger = no + } + } + succession = { + order_of_succession = player_heir + } + } + + # Noble Family Succession + noble_family_succession_law = { + can_title_have = { + OR = { + is_noble_family_title = yes + is_nomad_title = yes + } + } + should_show_for_title = { # Never show this in the UI, just apply it through script + always = no + } + can_remove_from_title = { + always = no + } + succession = { + order_of_succession = noble_family + title_division = single_heir + } + flag = can_designate_heirs + } + + # Law of the Land Title Succession + # Applied in on_title_gain when a county title's capital province has required heir government types defined and the new holder does not meet the requirement. + law_of_the_land_succession_law = { + can_title_have = { + tier = tier_county + title_province = { + holding_type = { + has_required_heir_governments = yes + NOT = { + any_required_heir_government_type = { + this = root.holder.government_type + } + } + } + } + } + # Never show this in the UI, just apply it through script + should_show_for_title = { always = no } + can_remove_from_title = { always = no } + succession = { + order_of_succession = generate_from_template + } + } + #Confederation elective + confederation_elective_succession_law = { + can_title_have = { + tier >= tier_kingdom + } + should_show_for_title = { + has_variable = confederation_culture + } + succession = { + order_of_succession = election + election_type = confederation_elective + } + flag = elective_succession_law + title_allegiance_opinion = 10 + revoke_cost = { + prestige = { + value = change_title_succession_law_prestige_cost + multiply = 8 + if = { + limit = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + } + } + multiply = 0.1 + } + } + } + pass_cost = { + prestige = change_title_succession_law_prestige_cost + } + } + + # Celestial Ministry Succession + celestial_ministry_appointment_succession_law = { + can_have = { + government_has_flag = government_is_celestial + NOR = { + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + } + } + can_pass = { + } + can_title_have = { + tgp_is_civilian_minister_title = yes + } + can_realm_have = { + always = no + } + can_remove_from_title = { + custom_tooltip = { + text = celestial_ministry_appointment_cannot_remove_desc + always = no + } + } + succession = { + order_of_succession = appointment + appointment_type = celestial_minister + } + modifier = { + celestial_government_opinion = 5 + } + flag = appointment_type_succession + flag = appointment_with_level_requirement + } + +# # Celestial Grand Marshal Succession +# celestial_grand_marshal_appointment_succession_law = { +# can_have = { +# government_has_flag = government_is_celestial +# NOR = { +# government_has_flag = government_is_prepublic +# government_has_flag = government_is_urepublic +# } +# } +# can_pass = { +# } +# can_title_have = { +# this = title:e_minister_grand_marshal +# } +# can_realm_have = { +# always = no +# } +# can_remove_from_title = { +# custom_tooltip = { +# text = celestial_ministry_appointment_cannot_remove_desc +# always = no +# } +# } +# succession = { +# order_of_succession = appointment +# appointment_type = celestial_military_governor +# } +# modifier = { +# celestial_government_opinion = 5 +# } +# flag = appointment_type_succession +# flag = appointment_with_level_requirement +# } + theomonarchy_succession_law = { # For Helvetics and Monarchomachs can_have = { government_has_flag = government_is_feudal diff --git a/common/on_action/army_on_actions.txt b/common/on_action/army_on_actions.txt index 561fff82..5ee5c0a4 100644 --- a/common/on_action/army_on_actions.txt +++ b/common/on_action/army_on_actions.txt @@ -885,38 +885,38 @@ on_raid_action_completion = { } ## Struggles - if = { - limit = { - scope:raider = { - any_character_struggle = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_raided_involved - CHAR = scope:county.holder - } - } - } - scope:county.holder = { # Theoretical edge case where X is from one struggle, Y from another one and they trigger catalysts. But unlikely to be an issue. - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_raided_involved - } - } - } - scope:raider = { - every_character_struggle = { - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_raided_involved - CHAR = scope:county.holder - } - } - activate_struggle_catalyst = { - catalyst = catalyst_raided_involved - character = scope:raider - } - log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_raided_involved } - } - } +# if = { +# limit = { +# scope:raider = { +# any_character_struggle = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_raided_involved +# CHAR = scope:county.holder +# } +# } +# } +# scope:county.holder = { # Theoretical edge case where X is from one struggle, Y from another one and they trigger catalysts. But unlikely to be an issue. +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_raided_involved +# } +# } +# } +# scope:raider = { +# every_character_struggle = { +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_raided_involved +# CHAR = scope:county.holder +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_raided_involved +# character = scope:raider +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_raided_involved } +# } +# } } # Commander trait leveling diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 905ead88..45601e8f 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -2381,6 +2381,9 @@ on_game_start_after_lobby = { every_held_title = { limit = { tier >= tier_county + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -2415,6 +2418,9 @@ on_game_start_after_lobby = { every_held_title = { limit = { tier >= tier_county + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } diff --git a/common/on_action/religion_on_actions.txt b/common/on_action/religion_on_actions.txt index c73a3123..91f5e86a 100644 --- a/common/on_action/religion_on_actions.txt +++ b/common/on_action/religion_on_actions.txt @@ -450,100 +450,100 @@ on_character_faith_change = { } } # ## Struggle Effects -# ### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor. +## ### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor. +## if = { +## limit = { +## # Gotta be in the appropriate struggle. +## any_character_struggle = { this = struggle:persian_struggle } +## # Filter out pre-existing detractors. +## NOT = { has_trait = fp3_struggle_detractor } +## # Now, check the new faith. +## exists = title:d_sunni.holder +## OR = { +## NOT = { exists = faith.religious_head } +## NOT = { faith.religious_head = title:d_sunni.holder } +## } +## } +## send_interface_toast = { +## type = event_toast_effect_neutral +## title = persian_struggle.tt.converted_away_from_sunni_orthodoxy +## left_icon = root +## hidden_effect = { remove_trait = fp3_struggle_supporter } +## add_trait_force_tooltip = fp3_struggle_detractor +## } +## } +# +# # Local conversion # if = { # limit = { -# # Gotta be in the appropriate struggle. -# any_character_struggle = { this = struggle:persian_struggle } -# # Filter out pre-existing detractors. -# NOT = { has_trait = fp3_struggle_detractor } -# # Now, check the new faith. -# exists = title:d_sunni.holder -# OR = { -# NOT = { exists = faith.religious_head } -# NOT = { faith.religious_head = title:d_sunni.holder } +# exists = root.capital_province +# root.capital_province.faith = root.faith +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_convert_local_culture_faith +# is_faith_involved_in_struggle = root.faith # } # } -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = persian_struggle.tt.converted_away_from_sunni_orthodoxy -# left_icon = root -# hidden_effect = { remove_trait = fp3_struggle_supporter } -# add_trait_force_tooltip = fp3_struggle_detractor +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_convert_local_culture_faith +# character = root +# } +# } +# } +# else_if = { # Forced conversion +# limit = { +# any_character_struggle = { +# involvement = involved +# is_faith_involved_in_struggle = root.faith +# phase_has_catalyst = catalyst_forced_conversion +# } +# } +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_forced_conversion +# character = root +# } +# } +# } +# else_if = { +# limit = { +# has_trait = fp3_struggle_supporter +# any_character_struggle = { +# involvement = involved +# is_faith_involved_in_struggle = root.faith +# phase_has_catalyst = catalyst_supporter_forced_conversion +# } +# } +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_supporter_forced_conversion +# character = root +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_supporter_forced_conversion } +# } +# } +# else_if = { +# limit = { +# has_trait = fp3_struggle_detractor +# any_character_struggle = { +# involvement = involved +# is_faith_involved_in_struggle = root.faith +# phase_has_catalyst = catalyst_detractor_forced_conversion +# } +# } +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_detractor_forced_conversion +# character = root +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_detractor_forced_conversion } # } # } - - # Local conversion - if = { - limit = { - exists = root.capital_province - root.capital_province.faith = root.faith - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_convert_local_culture_faith - is_faith_involved_in_struggle = root.faith - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_convert_local_culture_faith - character = root - } - } - } - else_if = { # Forced conversion - limit = { - any_character_struggle = { - involvement = involved - is_faith_involved_in_struggle = root.faith - phase_has_catalyst = catalyst_forced_conversion - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_forced_conversion - character = root - } - } - } - else_if = { - limit = { - has_trait = fp3_struggle_supporter - any_character_struggle = { - involvement = involved - is_faith_involved_in_struggle = root.faith - phase_has_catalyst = catalyst_supporter_forced_conversion - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_supporter_forced_conversion - character = root - } - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_supporter_forced_conversion } - } - } - else_if = { - limit = { - has_trait = fp3_struggle_detractor - any_character_struggle = { - involvement = involved - is_faith_involved_in_struggle = root.faith - phase_has_catalyst = catalyst_detractor_forced_conversion - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_detractor_forced_conversion - character = root - } - log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_detractor_forced_conversion } - } - } # Achievements diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index 92f484bf..64b4a551 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -258,6 +258,9 @@ on_title_gain = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -296,6 +299,9 @@ on_title_gain = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } @@ -2927,6 +2933,9 @@ on_title_gain_inheritance = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -2964,6 +2973,9 @@ on_title_gain_inheritance = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } @@ -3116,6 +3128,9 @@ on_title_gain_usurpation = { limit = { title_tier > barony is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -3153,6 +3168,9 @@ on_title_gain_usurpation = { limit = { title_tier > barony is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 8f6618c1..ca098f4c 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -788,6 +788,9 @@ yearly_playable_pulse = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -825,6 +828,9 @@ yearly_playable_pulse = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } @@ -2782,6 +2788,9 @@ quarterly_playable_pulse = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } } add_title_law = saxon_elective_succession_law } @@ -2819,6 +2828,9 @@ quarterly_playable_pulse = { limit = { tier >= tier_county is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } } add_title_law = urban_elective_succession_law } diff --git a/common/scripted_effects/00_decisions_effects.txt b/common/scripted_effects/00_decisions_effects.txt index e82ea84a..7953d5e2 100644 --- a/common/scripted_effects/00_decisions_effects.txt +++ b/common/scripted_effects/00_decisions_effects.txt @@ -3173,26 +3173,26 @@ found_cadet_house_decision_effect = { } } - # Struggle Catalysts - if = { - limit = { - $CHARACTER$ = { - exists = house.house_head - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_cadet_branch_created - } - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_cadet_branch_created - character = $CHARACTER$ - } - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_cadet_branch_created } - } - } +# # Struggle Catalysts +# if = { +# limit = { +# $CHARACTER$ = { +# exists = house.house_head +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_cadet_branch_created +# } +# } +# } +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_cadet_branch_created +# character = $CHARACTER$ +# } +# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_cadet_branch_created } +# } +# } every_child = { limit = { diff --git a/common/scripted_triggers/00_law_triggers.txt b/common/scripted_triggers/00_law_triggers.txt index 46369a71..6823d107 100644 --- a/common/scripted_triggers/00_law_triggers.txt +++ b/common/scripted_triggers/00_law_triggers.txt @@ -114,7 +114,7 @@ can_have_confederate_partition_succession_law_trigger = { OR = { government_has_flag = government_is_feudal government_has_flag = government_is_tribal - government_has_flag = government_is_minority + government_has_flag = government_is_landless_minority # TGP AND = { government_has_flag = government_is_japan_feudal diff --git a/common/scripted_triggers/00_scripted_rule_triggers.txt b/common/scripted_triggers/00_scripted_rule_triggers.txt index 517b1026..8a9b55fb 100644 --- a/common/scripted_triggers/00_scripted_rule_triggers.txt +++ b/common/scripted_triggers/00_scripted_rule_triggers.txt @@ -133,7 +133,7 @@ can_raid_across_water_trigger = { house ?= { can_raid_house_modifiers_that_enable_raiding_overseas_list_trigger = yes } # Can raid overseas by government rules government_has_flag = government_enables_naval_raiding - #Is Hereward. - has_trait = the_wake + # #Is Hereward. +# has_trait = the_wake } } diff --git a/common/traits/00_traits.txt b/common/traits/00_traits.txt index f1baaa30..92abb5c7 100644 --- a/common/traits/00_traits.txt +++ b/common/traits/00_traits.txt @@ -15358,71 +15358,71 @@ lifestyle_traveler = { } ############### FP3 TRAITS ############## -# -#fp3_struggle_detractor = { -# icon = "fp3_struggle_detractor.dds" -# opposites = { -# fp3_struggle_supporter -# } -# -# shown_in_ruler_designer = no -# -# same_opinion = 10 -# opposite_opinion = -30 -# -# ai_war_cooldown = -0.5 -# ai_war_chance = 5 -# -# flag = can_foment_revolt_interaction -# flag = can_request_incursion_interaction -# flag = can_change_to_iranian_faith_decision -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# NOT = { exists = this } -# } -# desc = trait_fp3_struggle_detractor_desc -# } -# triggered_desc = { -# trigger = { faith.religious_head_title ?= title:d_sunni } -# desc = trait_fp3_struggle_detractor_character_desc -# } -# desc = trait_fp3_struggle_detractor_non_orthodox_sunni_character_desc -# } -# } -#} -# -#fp3_struggle_supporter = { -# icon = "fp3_struggle_supporter.dds" -# opposites = { -# fp3_struggle_detractor -# } -# -# shown_in_ruler_designer = no -# -# flag = can_use_install_loyalist_cb -# -# same_opinion = 10 -# opposite_opinion = -30 -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# NOT = { exists = this } -# } -# desc = trait_fp3_struggle_supporter_desc -# } -# triggered_desc = { -# trigger = { has_title = title:d_sunni } -# desc = trait_fp3_struggle_supporter_character_is_caliph_desc -# } -# desc = trait_fp3_struggle_supporter_character_desc -# } -# } -#} + +fp3_struggle_detractor = { + icon = "fp3_struggle_detractor.dds" + opposites = { + fp3_struggle_supporter + } + + shown_in_ruler_designer = no + + same_opinion = 10 + opposite_opinion = -30 + + ai_war_cooldown = -0.5 + ai_war_chance = 5 + + flag = can_foment_revolt_interaction + flag = can_request_incursion_interaction + flag = can_change_to_iranian_faith_decision + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_detractor_desc + } + triggered_desc = { + trigger = { faith.religious_head_title ?= title:d_sunni } + desc = trait_fp3_struggle_detractor_character_desc + } + desc = trait_fp3_struggle_detractor_non_orthodox_sunni_character_desc + } + } +} + +fp3_struggle_supporter = { + icon = "fp3_struggle_supporter.dds" + opposites = { + fp3_struggle_detractor + } + + shown_in_ruler_designer = no + + flag = can_use_install_loyalist_cb + + same_opinion = 10 + opposite_opinion = -30 + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_supporter_desc + } + triggered_desc = { + trigger = { has_title = title:d_sunni } + desc = trait_fp3_struggle_supporter_character_is_caliph_desc + } + desc = trait_fp3_struggle_supporter_character_desc + } + } +} ############### EP3 TRAITS ############## diff --git a/gfx/portraits/portrait_modifiers/01_beards_base.txt b/gfx/portraits/portrait_modifiers/01_beards_base.txt index d50870aa..7ce618e2 100644 --- a/gfx/portraits/portrait_modifiers/01_beards_base.txt +++ b/gfx/portraits/portrait_modifiers/01_beards_base.txt @@ -1279,12 +1279,12 @@ beards = { } OR = { faith = faith:orthodox - faith = faith:armenian_apostolic - faith = faith:coptic - faith = faith:messalian - faith = faith:bogomilist - faith = faith:paulician - faith = faith:nestorian +# faith = faith:armenian_apostolic +# faith = faith:coptic +# faith = faith:messalian +# faith = faith:bogomilist +# faith = faith:paulician +# faith = faith:nestorian } } }