From 8243b1fe6db2ff963836a91ee537b17d0dd992dc Mon Sep 17 00:00:00 2001 From: trashmasteruni Date: Thu, 15 Oct 2026 22:42:30 +0200 Subject: [PATCH] succession laws vanillafied sorry fishe --- common/laws/00_succession_laws.txt | 2198 ---------------------- common/laws/01_title_succession_laws.txt | 1 - common/laws/NEOW_succession_laws.txt | 404 ---- common/laws/_laws.info | 362 ---- 4 files changed, 2965 deletions(-) delete mode 100644 common/laws/00_succession_laws.txt delete mode 100644 common/laws/01_title_succession_laws.txt delete mode 100644 common/laws/NEOW_succession_laws.txt delete mode 100644 common/laws/_laws.info diff --git a/common/laws/00_succession_laws.txt b/common/laws/00_succession_laws.txt deleted file mode 100644 index c7415fde5..000000000 --- a/common/laws/00_succession_laws.txt +++ /dev/null @@ -1,2198 +0,0 @@ -succession_order_laws = { - - flag = succession_order_laws - - can_change_law_group = { - custom_tooltip = { - text = CANT_CHANGE_LAW_TOOLTIP - NOR = { - has_realm_law = mandala_succession_law - government_has_flag = government_is_japan_administrative - } - } - } - - confederate_partition_succession_law = { - can_keep = { - trigger_if = { - limit = { - government_has_flag = government_is_japan_feudal - tgp_realm_has_ceremonial_liege_trigger = yes - } - is_independent_ruler = no - } - trigger_else = { always = yes } # for readability - } - can_pass = { - can_change_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = no - } - } - can_have = { - can_have_confederate_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = no - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - OR = { - AND = { - government_has_flag = government_is_feudal - culture = { - NOR = { - has_innovation = innovation_hereditary_rule - has_innovation = innovation_heraldry - } - } - } - government_has_flag = government_is_tribal - government_has_flag = government_is_landless_minority - } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - create_primary_tier_titles = yes - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 10 - parochial_opinion = 5 - belligerent_opinion = -10 - dynasty_house_opinion = 5 - eligible_child_opinion = 10 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - potential = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } - } - - partition_succession_law = { - can_keep = { - OR = { - can_keep_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = yes - } - } - } - can_pass = { - OR = { - can_change_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = yes - } - } - } - can_have = { - OR = { - can_have_partition_succession_law_trigger = yes - trigger_if = { - limit = { - exists = primary_title - } - is_confederation_member = yes - } - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - government_has_flag = government_is_feudal - culture = { - has_innovation = innovation_hereditary_rule - NOT = { - has_innovation = innovation_heraldry - } - } - NOT = { government_allows = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 10 - parochial_opinion = 5 - belligerent_opinion = -10 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - - potential = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } - } - - high_partition_succession_law = { - can_keep = { - can_keep_high_partition_succession_law_trigger = yes - } - can_pass = { - can_change_partition_succession_law_trigger = yes - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_high_partition_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - NOR = { - historical_succession_access_single_heir_succession_law_trigger = yes - historical_succession_access_single_heir_succession_law_youngest_trigger = yes - historical_succession_access_single_heir_dynasty_house_trigger = yes - } - government_has_flag = government_is_feudal - culture = { - has_innovation = innovation_heraldry - } - NOT = { government_allows = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.5 - } - flag = partition_succession_law - modifier = { - glory_hound_opinion = 5 - belligerent_opinion = -10 - player_heir_opinion = 15 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - } - } - value = 2 - } - } - - potential = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_nomadic - government_has_flag = government_is_clan - government_has_flag = government_is_administrative - government_has_flag = government_is_mandala - government_has_flag = government_is_celestial - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } - } - - single_heir_succession_law = { - can_keep = { - can_keep_single_heir_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_title_have = { - # Ceremonial Regent - NOT = { exists = var:administrative_ui_special_title.holder } - } - can_have = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - can_have_single_heir_succession_law_trigger = yes - } - can_pass = { - can_change_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - trigger_if = { - limit = { - government_allows = administrative - } - influence_level >= 4 - has_active_diarchy = no - primary_title = { title_held_years >= 10 } - } - } - should_start_with = { - historical_succession_access_single_heir_succession_law_trigger = yes - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - value = 3 - } - - potential = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - trigger_if = { - limit = { - government_allows = administrative - } - OR = { - is_independent_ruler = yes - tgp_is_ceremonial_liege_trigger = yes - } - } - } - } - - single_heir_succession_kurultai_law = { - can_keep = { - government_has_flag = government_is_nomadic - } - can_have = { - government_has_flag = government_is_nomadic - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - government_has_flag = government_is_nomadic - } - should_start_with = { - government_has_flag = government_is_nomadic - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = advanced_succession_law - flag = can_designate_heirs - modifier = { - belligerent_opinion = 10 - glory_hound_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -20 - } - pass_cost = { - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - value = 3 - } - - potential = { - government_has_flag = government_is_nomadic - } - } - - single_heir_succession_law_youngest = { - can_keep = { - can_keep_single_heir_youngest_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_single_heir_youngest_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - can_change_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - trigger_if = { - limit = { - government_allows = administrative - } - influence_level >= 4 - has_active_diarchy = no - primary_title = { title_held_years >= 10 } - } - } - succession = { - order_of_succession = inheritance - traversal_order = children - rank = youngest - title_division = single_heir - } - - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - potential = { - trigger_if = { - limit = { - government_has_flag = government_is_administrative - } - is_independent_ruler = yes - } - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - } - } - - single_heir_dynasty_house = { # LAST CALL - can_keep = { - can_keep_single_heir_dynasty_house_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_single_heir_dynasty_house_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - can_change_single_heir_dynasty_house_succession_law_trigger = yes - trigger_if = { - limit = { - government_has_flag = government_is_clan - } - piety_level >= 3 - } - } - should_start_with = { - historical_succession_access_single_heir_dynasty_house_trigger = yes - NOT = { government_allows = administrative } - } - succession = { - order_of_succession = inheritance - traversal_order = dynasty_house - rank = oldest - title_division = single_heir - } - - flag = advanced_succession_law - modifier = { - glory_hound_opinion = -5 - eligible_child_except_player_heir_opinion = -15 - dynasty_house_opinion = 5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - piety = { - value = 0 - if = { - limit = { - government_has_flag = government_is_clan - } - add = { - desc = "clan_government_cost_tooltip" - value = 1500 - } - } - } - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - exists = primary_title - primary_title.tier > tier_county - OR = { - #West Slavic - culture = { has_cultural_pillar = heritage_west_slavic } - } - } - value = 2 - } - } - - potential = { - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_administrative - government_has_flag = government_is_nomadic - government_has_flag = government_is_mandala - } - } - } - - acclamation_succession_law = { - can_keep = { - can_keep_acclamation_succession_law_trigger = yes - } - can_pass = { - can_change_acclamation_succession_law_trigger = yes - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_acclamation_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - has_ep3_dlc_trigger = yes - government_allows = administrative - } - succession = { - order_of_succession = appointment - appointment_type = admin_emperor - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = { - value = change_succession_law_prestige_cost - multiply = { - value = 0.5 # We reduce the cost to ensure that going back to acclamation is easy - desc = "[administrative_government|E]" - } - } - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_allows = administrative - is_independent_ruler = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - government_has_flag = government_is_celestial - government_has_flag = government_is_japan_administrative - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - } - } - - appointment_succession_law = { - can_keep = { - can_keep_appointment_succession_law_trigger = yes - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - top_liege != this - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - NOT = { government_has_flag = government_is_nomadic } - can_have_appointment_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - can_change_appointment_succession_law_trigger = yes - } - should_start_with = { - government_allows = administrative - NOR = { - government_has_flag = government_is_celestial - government_has_flag = government_is_japan_administrative - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - } - succession = { - order_of_succession = appointment - appointment_type = admin_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_allows = administrative # Default succession law for all admin types... - NOR = { # ... Unless you have a unique succession available - government_has_flag = government_is_celestial - government_has_flag = government_is_japan_administrative - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - } - } - - #The prowess succession of LAAMPs is determined in code - landless_adventurer_succession_law = { - can_keep = { - government_has_flag = government_is_landless_adventurer - } - can_have = { - government_has_flag = government_is_landless_adventurer - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - government_has_flag = government_is_landless_adventurer - } - should_start_with = { - government_has_flag = government_is_landless_adventurer - } - 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 = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - exclude_rulers = yes - limit_to_courtiers = yes - } - flag = can_designate_heirs - - potential = { - government_has_flag = government_is_landless_adventurer - } - } - - bishop_theocratic_succession_law = { - can_keep = { - can_have_bishop_theocratic_succession_law_trigger = yes # same as can_have - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_have = { - can_have_bishop_theocratic_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - always = yes - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_theocratic_succession - } - - potential = { - can_have_bishop_theocratic_succession_law_trigger = yes - } - } - - holy_order_succession_law = { - can_keep = { - can_have_holy_order_succession_law_trigger = yes # same as can_have - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_have = { - can_have_holy_order_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_holy_order - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_holy_order_succession - } - - potential = { - can_have_holy_order_succession_law_trigger = yes - } - } - - mercenary_company_succession_law = { - can_keep = { - can_have_mercenary_succession_law_trigger = yes - } - can_have = { - can_have_mercenary_succession_law_trigger = yes - } - should_start_with = { - government_has_flag = government_is_mercenary - } - succession = { - order_of_succession = company - pool_character_config = pool_mercenary_succession - } - - potential = { - can_have_mercenary_succession_law_trigger = yes - } - } - - city_succession_law = { - can_keep = { - can_have_city_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_have = { - can_have_city_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_republic - } - succession = { - order_of_succession = generate - pool_character_config = pool_city_succession - } - - potential = { - can_have_city_succession_law_trigger = yes - } - } - - clan_antagonistic_partition_succession_law = { - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = antagonistic - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = antagonistic } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - - flag = same_house_vassals_gain_claim_on_primary_title - flag = house_unity_stage_antagonistic - - modifier = { - dynasty_house_opinion = -10 - glory_hound_opinion = 15 - zealot_opinion = 10 - belligerent_opinion = -10 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - - widget_name = "widget_clan_law" - } - - clan_competitive_partition_succession_law = { - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = competitive - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = competitive } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - } - - flag = same_house_vassals_gain_claim_on_primary_title - flag = house_unity_stage_competitive - - modifier = { - glory_hound_opinion = 10 - zealot_opinion = 5 - belligerent_opinion = -5 - player_heir_opinion = 10 - eligible_child_except_player_heir_opinion = 5 - } - - widget_name = "widget_clan_law" - } - - clan_impassive_partition_succession_law = { - can_keep = { - government_has_flag = government_is_clan - house ?= { - OR = { - has_house_unity_stage = impassive - # In case the house is fully unlanded - has_house_unity = no - } - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = impassive - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = impassive - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { - OR = { - has_house_unity_stage = impassive - # In case the house is fully unlanded - has_house_unity = no - } - } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_impassive - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.25 - } - modifier = { - glory_hound_opinion = 5 - parochial_opinion = 5 - player_heir_opinion = 15 - } - - widget_name = "widget_clan_law" - } - - clan_friendly_partition_succession_law = { - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = friendly - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { has_house_unity_stage = friendly } - } - - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_friendly - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.5 - } - modifier = { - parochial_opinion = 10 - courtly_opinion = 5 - player_heir_opinion = 25 - } - - widget_name = "widget_clan_law" - } - - clan_harmonious_partition_succession_law = { - can_keep = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - can_pass = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - can_have = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_clan - house ?= { - has_house_unity_stage = harmonious - } - } - potential = { - government_has_flag = government_is_clan - } - - requires_approve = { - NOT = { - government_has_flag = government_is_clan - } - } - - flag = house_unity_stage_harmonious - - succession = { - order_of_succession = inheritance - traversal_order = children - rank = oldest - title_division = partition - primary_heir_minimum_share = 0.75 - } - modifier = { - parochial_opinion = 15 - courtly_opinion = 10 - player_heir_opinion = 40 - } - - widget_name = "widget_clan_law" - } - - herder_succession_law = { - can_keep = { - can_have_herder_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_have = { - can_have_herder_succession_law_trigger = yes - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - should_start_with = { - government_has_flag = government_is_herder - } - can_remove_from_title = { - always = no - } - succession = { - order_of_succession = generate - pool_character_config = pool_herder_succession - } - - potential = { - can_have_herder_succession_law_trigger = yes - } - } - - celestial_appointment_succession_law = { - can_keep = { - government_allows = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = celestial_military_appointment } - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_allows = administrative - is_independent_ruler = no - NOR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - } - can_pass = { - government_allows = administrative - is_independent_ruler = no - } - should_start_with = { - government_has_flag = government_is_celestial - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = celestial_military_appointment } - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_civic_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_celestial - is_independent_ruler = no - } - } - - celestial_military_appointment_succession_law = { - can_keep = { - government_allows = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = celestial_military_appointment - } - # Vassal Contract allows it - custom_description = { - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_allows = administrative - is_independent_ruler = no - } - can_pass = { - can_change_succession_law_trigger = yes - government_allows = administrative - is_independent_ruler = no - } - should_start_with = { - government_has_flag = government_is_celestial - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = celestial_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = celestial_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = 5 - courtly_opinion = -10 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_celestial - is_independent_ruler = no - } - } - - japanese_regency_succession_law = { - can_keep = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_pass = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_have = { - can_have_japanese_regency_succession_law_trigger = yes - } - can_title_have = { - exists = var:administrative_ui_special_title - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - should_start_with = { - always = no - } - succession = { - order_of_succession = appointment - appointment_type = japanese_regent - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = change_succession_law_prestige_cost - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_has_flag = government_is_japan_administrative - } - } - - japanese_appointment_succession_law = { - can_keep = { - can_keep_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - can_pass = { - can_change_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - can_have = { - can_have_japanese_appointment_succession_law_trigger = yes - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - } - should_start_with = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no -# NOT = { has_title = title:k_chrysanthemum_throne } - NOT = { vassal_contract_has_flag = japan_administrative_military_appointment } - } - succession = { - order_of_succession = appointment - appointment_type = japanese_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = -10 - parochial_opinion = -5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - } - } - - japanese_military_appointment_succession_law = { - can_keep = { - government_allows = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = japan_administrative_military_appointment - } - # Vassal Contract allows it - custom_description = { - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_allows = administrative - is_independent_ruler = no - vassal_contract_has_flag = japan_administrative_military_appointment - } - can_pass = { - can_change_succession_law_trigger = yes - government_allows = administrative - is_independent_ruler = no - vassal_contract_has_flag = japan_administrative_military_appointment - } - should_start_with = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = japan_administrative_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = japanese_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - modifier = { - glory_hound_opinion = 5 - courtly_opinion = -10 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - } - } - - mandala_succession_law = { - can_keep = { - realm_law_is_mandala = yes - } - can_have = { - realm_law_is_mandala = yes - } - can_pass = { - realm_law_is_mandala = yes - } - should_start_with = { - realm_law_is_mandala = 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 = inheritance - traversal_order = children - rank = oldest - title_division = single_heir - } - flag = can_designate_heirs - - potential = { - realm_law_is_mandala = yes - } - } - - meritocratic_appointment_succession_law = { - can_keep = { - government_allows = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = meritocratic_military_appointment } - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_allows = administrative - is_independent_ruler = no - } - can_pass = { - government_allows = administrative - is_independent_ruler = no - } - should_start_with = { - OR = { - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - custom_tooltip = { - text = celestial_appointment_allowed_desc - NOT = { vassal_contract_has_flag = meritocratic_military_appointment } - } - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_civic_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - OR = { - government_has_flag = government_is_steppe_admin - government_has_flag = government_is_meritocratic - } - is_independent_ruler = no - } - } - - meritocratic_military_appointment_succession_law = { - can_keep = { - government_allows = administrative - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = meritocratic_military_appointment - } - # Vassal Contract allows it - custom_description = { - text = succession_laws_must_not_be_forced_partition - NAND = { - is_independent_ruler = no - vassal_contract_has_flag = locked_to_partition - } - } - } - can_have = { - government_allows = administrative - is_independent_ruler = no - } - can_pass = { - government_allows = administrative - is_independent_ruler = no - } - should_start_with = { - OR = { - government_has_flag = government_is_meritocratic - government_has_flag = government_is_steppe_admin - } - is_independent_ruler = no - custom_tooltip = { - text = celestial_military_appointment_allowed_desc - vassal_contract_has_flag = meritocratic_military_appointment - } - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_military_governor - } - flag = advanced_succession_law - flag = appointment_type_succession - flag = appointment_with_level_requirement - modifier = { - glory_hound_opinion = -10 - courtly_opinion = 5 - player_heir_opinion = 20 - eligible_child_except_player_heir_opinion = -5 - } - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - OR = { - has_realm_law = confederate_partition_succession_law - has_realm_law = partition_succession_law - has_realm_law = high_partition_succession_law - } - } - value = 3 - } - } - - potential = { - OR = { - government_has_flag = government_is_steppe_admin - government_has_flag = government_is_meritocratic - } - is_independent_ruler = no - } - } - - meritocratic_regency_succession_law = { - can_keep = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_pass = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_have = { - can_have_meritocratic_regency_succession_law_trigger = yes - } - can_title_have = { - exists = var:administrative_ui_special_title - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_remove_from_title = { - always = no - } - should_start_with = { - always = no - } - succession = { - order_of_succession = appointment - appointment_type = meritocratic_regent - } - flag = advanced_succession_law - flag = can_designate_heirs - flag = appointment_type_succession - pass_cost = { - prestige = change_succession_law_prestige_cost - } - ai_will_do = { - if = { - limit = { has_realm_law = confederate_partition_succession_law } - value = 1 - } - } - potential = { - government_allows = administrative - government_allows = merit - tgp_realm_has_ceremonial_liege_trigger = yes - } - } -} - -succession_gender_laws = { - default = male_preference_law - flag = succession_gender_laws - - male_only_law = { - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = male_only_law } - } - trigger_else = { - custom_tooltip = { - text = culture_not_male_only_tt - OR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { - government_has_flag = government_has_merit - } - faith = { - has_doctrine = doctrine_gender_male_dominated - } - } - trigger_else_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = male_only_law } - } - trigger_else = { - faith = { - has_doctrine = doctrine_gender_male_dominated - religion_tag = islam_religion - } - } - } - succession = { - gender_law = male_only - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = no_female_commanders - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - } - - male_preference_law = { - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = male_preference_law } - } - trigger_else = { - custom_description = { - text = change_law_male_preference_faith_requirement - faith = { - NOT = { has_doctrine = doctrine_gender_female_dominated } - } - } - custom_tooltip = { - text = culture_not_female_only_tt - OR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = male_preference_law } - } - trigger_else = { - NOT = { - culture = { has_cultural_parameter = female_preference_inheritance } - } - OR = { - faith = { - NOR = { - religion_tag = islam_religion - AND = { - root = { - government_has_flag = government_has_merit - } - has_doctrine = doctrine_gender_male_dominated - } - } - has_doctrine = doctrine_gender_male_dominated - } - AND = { - has_realm_law = male_only_law # For when male_only_law ceases to be a legal option - trigger_if = { - limit = { - is_independent_ruler = no - government_allows = administrative - } - NOT = { - top_liege = { has_realm_law = male_only_law } - } - } - trigger_else = { - custom_tooltip = { - text = culture_not_female_only_tt - NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - NOT = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } - } - } - } - } - } - succession = { - gender_law = male_preference - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = no_female_commanders - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - } - - equal_law = { - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = equal_law } - } - trigger_else = { - custom_tooltip = { - text = equal_law_culture_faith_or_innovation_trigger - OR = { - culture = { has_cultural_parameter = gender_equal_inheritance } - #culture = { has_innovation = innovation_visigothic_codes } - faith = { has_doctrine = doctrine_gender_equal } - AND = { #Culture is female dominated but religion is male dominated - faith = { has_doctrine = doctrine_gender_male_dominated } - culture = { has_cultural_parameter = female_only_inheritance } - } - AND = { #Culture is male dominated but faith is female dominated - faith = { has_doctrine = doctrine_gender_female_dominated } - NOT = { culture = { has_cultural_parameter = female_only_inheritance } } - } - primary_title.var:can_keep_realm_law ?= flag:equal_law - } - } - } - } - can_pass = { - #can_change_to_equal_succession_law_trigger = yes - can_change_succession_law_trigger = yes - } - should_start_with = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = equal_law } - } - trigger_else = { - NOR = { - culture = { has_cultural_parameter = female_preference_inheritance } - culture = { has_cultural_tradition = tradition_nubian_warrior_queens } - } - faith = { - has_doctrine = doctrine_gender_equal - } - NOT = { has_realm_law = female_only_law } # For when female_only_law ceases to be valid - } - } - succession = { - gender_law = equal - } - flag = men_can_have_multiple_spouses - flag = men_can_have_consorts - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - ai_will_do = { - if = { - limit = { - exists = primary_title - primary_title.tier > tier_county - faith = { - NOT = { - has_dominant_ruling_gender = prev - } - } - } - value = 2 - } - } - } - - female_preference_law = { - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = female_preference_law } - } - trigger_else_if = { - limit = { - culture = { has_cultural_parameter = female_preference_inheritance } - } - culture = { has_cultural_parameter = female_preference_inheritance } - } - trigger_else = { - custom_description = { - text = change_law_female_preference_faith_requirement - faith = { - NOT = { has_doctrine = doctrine_gender_male_dominated } - } - } - custom_tooltip = { - text = female_preference_law_faith_or_culture_trigger - OR = { - faith = { has_doctrine = doctrine_gender_female_dominated } - NOT = { - culture = { has_cultural_parameter = male_only_inheritance } - } - } - } - } - } - should_start_with = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = female_preference_law } - } - trigger_else = { - OR = { - culture = { has_cultural_parameter = female_preference_inheritance } - faith = { - has_doctrine = doctrine_gender_female_dominated - } - has_realm_law = female_only_law # For when male_only_law ceases to be a legal option - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - succession = { - gender_law = female_preference - } - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - } - - female_only_law = { - can_title_have = { - can_title_have_law_general_trigger = yes - } - should_show_for_title = { # Never show this in the UI, just apply it through script - always = no - } - can_keep = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = female_only_law } - } - trigger_else_if = { - limit = { - culture = { has_cultural_parameter = female_only_inheritance } - } - culture = { has_cultural_parameter = female_only_inheritance } - } - trigger_else = { - custom_tooltip = { - text = culture_not_female_only_tt - faith = { has_doctrine = doctrine_gender_female_dominated } - NOT = { - culture = { has_cultural_parameter = male_only_inheritance } - } - } - } - } - can_pass = { - can_change_succession_law_trigger = yes - } - succession = { - gender_law = female_only - } - flag = women_can_have_multiple_spouses - flag = women_can_have_consorts - - pass_cost = { - prestige = change_succession_law_prestige_cost - } - revoke_cost = { - prestige = change_succession_law_prestige_cost - } - - should_start_with = { - trigger_if = { - limit = { - top_liege != this - government_allows = administrative - } - top_liege = { has_realm_law = female_only_law } - } - trigger_else = { - culture = { has_cultural_parameter = female_only_inheritance } - } - } - } -} - -succession_faith = { - same_faith_only_law = { - can_keep = { - should_have_same_faith_succession_trigger = yes - } - can_pass = { - should_have_same_faith_succession_trigger = yes - } - should_start_with = { - should_have_same_faith_succession_trigger = yes - } - succession = { - faith = same_faith - } - } -} - -succession_rel_head = { - same_faith_theocratic_succession_law = { - shown_in_encyclopedia = no - can_keep = { - faith = { - religious_head = root - has_doctrine = doctrine_spiritual_head - } - } - succession = { - order_of_succession = theocratic - faith = same_faith - pool_character_config = pool_theocratic_succession - } - } - same_faith_succession_law = { - shown_in_encyclopedia = no - can_keep = { - faith = { - religious_head = root - has_doctrine = doctrine_temporal_head - } - } - succession = { - faith = same_faith - } - } -} diff --git a/common/laws/01_title_succession_laws.txt b/common/laws/01_title_succession_laws.txt deleted file mode 100644 index 5f282702b..000000000 --- a/common/laws/01_title_succession_laws.txt +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/common/laws/NEOW_succession_laws.txt b/common/laws/NEOW_succession_laws.txt deleted file mode 100644 index 1f5453fa3..000000000 --- a/common/laws/NEOW_succession_laws.txt +++ /dev/null @@ -1,404 +0,0 @@ - # Default Feudal Elective - feudal_elective_succession_law = { - law_group_type = title_succession_laws - index = 0 - - can_have = { - OR ={ - government_has_flag = government_is_feudal - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - highest_held_title_tier >= tier_county - NOR = { #Cultures have their special flavor. - 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_county_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 -# } -# } - - - # Thing - scandinavian_elective_succession_law = { - law_group_type = title_succession_laws - index = 3 - - 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 = { - law_group_type = title_succession_laws - index = 4 - - 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 - law_group_type = title_succession_laws - index = 5 - - 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 = { - law_group_type = title_succession_laws - index = 6 - - 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 = { - law_group_type = title_succession_laws - index = 7 - - 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 = { - law_group_type = title_succession_laws - index = 8 - - 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 = { - law_group_type = title_succession_laws - index = 9 - - 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 = { - law_group_type = title_succession_laws - index = 10 - - 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 - law_group_type = title_succession_laws - index = 12 - - can_have = { - government_has_flag = government_is_feudal - faith = { has_doctrine_parameter = has_access_to_theomonarchy_succession } - highest_held_title_tier >= tier_kingdom - 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 = theomonarchy_elective - } - flag = elective_succession_law - revoke_cost = { - prestige = change_title_succession_law_prestige_cost - } - pass_cost = { - prestige = change_title_succession_law_prestige_cost - } - } -} \ No newline at end of file diff --git a/common/laws/_laws.info b/common/laws/_laws.info deleted file mode 100644 index 8815dc0fd..000000000 --- a/common/laws/_laws.info +++ /dev/null @@ -1,362 +0,0 @@ -law_group_name = { - - ### brief = default ( database key, optional ) - # New rulers will use this law by default, provided its "should_start_with" trigger - # returns true or is undefined - # - default = law_name - - ### brief: cumulative ( bool, optional ) - # If set, each subsequent law in the group will provide all effects of the previous law - # default = no - # - cumulative = no - - ### brief: flag ( flag ) - # See below for flags with special treatment in code. These flags may also be checked - # in the data/GUI system with LawGroup.HasFlag('some_arbitrary_flag') - # - flag = some_arbitrary_flag - - ### brief: cumulative ( bool, optional ) - # If set, this law group is considered part of the Treasury Budget set, and will be displayed within a specific - # budget interface. - # default = no - # - is_treasury_budget_group = no - - ### brief: can_change_law_group ( trigger ) - # Optional trigger for law groups that maybe some rulers should see but cant change - # Default is leaving this empty - and then it will always be true - # If this trigger fails - the lawgroup will still be visible but can't be changed by the ruler - # - can_change_law_group = { } - - law_name = { - - ### brief: can_keep ( trigger ) - # Requirements for keeping the law. If this invalidates, the law will - # be replaced with the default law (see own section) within a month. - # Also checked after changing faith since doctrinal changes are likely - # to invalidate laws. Always true if not specified. - # Root scope = ruler with the law - # - can_keep = { } - - ### brief: can_have ( trigger ) - # Requirements for adopting the law in the ruler's scope. If this is true, - # the character is allowed to adopt the law and the law will show as - # available (but it can be currently disabled if can_pass is false). - # Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - can_have = { } - - ### brief: can_pass ( trigger ) - # Requirements for adopting the law in the ruler's scope. For more - # temporary conditions, e.g. being at war ("I can have the law, but - # can't pass it right now"). Always true if not specified. - # Root scope = ruler for whom we are checking the law - # - can_pass = { } - - ### brief: should_start_with ( trigger ) - # If these conditions are true, this is a valid law for a ruler to start - # with. Note that it always includes the can_keep check. - # Root scope = ruler for whom we are checking the law - # - should_start_with = { } - - ### brief: can_title_have ( trigger ) - # Requirements for titles being able to have this law. Always false if - # not specified. - # Root scope = title for which we are checking the law - # - can_title_have = { } - - ### brief: can_realm_have ( trigger ) - # Requirements for characters being able to apply this law at realm level. - # Always false if not specified. - # By default, the following succession orders imply they can be applied to the whole realm: - # * inheritance - # * theocracy - # * company - # * generate - # * appointment - # Root scope = character for which we are checking the law - # - can_realm_have = { } - - ### brief: should_show_for_title ( trigger ) - # Should this law be shown in the UI for titles? - # - should_show_for_title = { } - - ### brief: pass_cost ( scripted cost ) - # The cost of enacting this law - # Root scope = ruler wanting to pass the law - # - pass_cost = { gold/piety/prestige = ... } - - ### brief: revoke_cost ( scripted cost ) - # The cost of revoking or clearing this law - # Root scope = ruler wanting to revoke the law - # - revoke_cost = { gold/piety/prestige = ... } - - ### brief: modifier ( character modifier ) - # Modifier applied to the ruler when this law is active - # - modifier = { } - - ### brief: flag ( flag ) - # See below for flags treated specially. Can be checked in script - # with has_realm_law_flag = some_arbitrary_flag. - # See below for flags treated specially in code. - # - flag = some_arbitrary_flag - - ### brief: triggered_flag ( flag ) - # Checks and adds flag only if the trigger's condition is met. - # Both trigger and flag *must* be specified within this block. - # - triggered_flag = { - - # Some trigger, root is the ruler character scope - # - trigger = { ... } - - # See below for flags treated specially in code. Can be checked in - # script with has_realm_law_flag = some_arbitrary_flag - # - flag = some_arbitrary_flag - } - - ### brief: shown_in_encyclopedia ( bool, optional ) - # If this law should show up in the Encyclopedia - # default = yes - # - shown_in_encyclopedia = yes - - ### brief: on_pass ( effect ) - # Effect run just before law change. - # Effect run on the ruler when the law is added. Does *NOT* get run - # when default laws are initialized, nor when inheriting a law from - # someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_pass = { } - - ### brief: on_after_pass ( effect ) - # Effect run just after law change. - # Effect run on the ruler when the law is added. Does *NOT* get run - # when default laws are initialized, nor when inheriting a law from - # someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_after_pass = { } - - ### brief: on_revoke ( effect ) - # Effect run on ruler when the law is removed. Does *NOT* get run when - # law is removed due to inheriting a law from someone else. - # Root = ruler in question - # If this is done on a title, the title is accessible as scope:title - # - on_revoke = { } - - ### brief: succession ( struct, optional ) - # Succession rules. Any new law with a rule set will override the - # previous law's rule set. - # Overriding is in law definition order - # - succession = { - - ### brief: order_of_succession ( enum ) - # Which order of succession ( provided by code ) does this law use? - # - # Options: - # inheritance - # election - # appointment ( requires traversal, division and rank be undefined ) - # theocratic - # company - # generate - # generate_from_template - # player_heir - # noble_family - # - order_of_succession = inheritance - - ### brief: title_division ( enum ) - # Used to determine how titles are split during succession - # Requires order_of_succession = inheritance or noble_family - # - # Options: - # partition ( only available when traversal_order = children ) - # single_heir ( only valid for inheritance and noble_family order_of_succession ) - # - title_division = partition - - ### brief: traversal_order ( enum ) - # Determines which set of characters is considered when building - # the line of succession. - # - # Options: - # children( may only be defined if title_division = partition ) - # dynasty - # dynasty_house - # - traversal_order = children/dynasty_house/dynasty - - ### brief: rank ( enum ) - # Determines how characters in the line of succession are sorted - # - # Options: - # oldest - # youngest - # - rank = oldest - - ### brief: pool_character_config ( database key, situational ) - # Entry in common/pool_character_selectors, used when choosing a - # character from the pool or generating a new character. - # Only available for theocratic, company, and generate. - # - pool_character_config = key - - ### brief: election_type ( database key, situational ) - # Entry in common/succession_election, used to determine which type - # of election should be used for succession. - # Only available for election. - # - election_type = key - - ### brief: appointment_type ( database key, situational ) - # Entry in common/succession_appointment, used to determine which type - # of appointment should be used for succession. - # Only available for appointment. - # - appointment_type = key - - - ### Generic Rules - - ### brief: gender_law ( enum, optional ) - # Used to determine which gender(s) are valid for succession. - # - # Options: - # male_only - # male_preference - # equal - # female_preference - # female_only - # - gender_law = equal - - ### brief: gender_law ( enum, optional ) - # Used to determine which faith(s) are valid for succession. - # If no character fulfilling this requirement is found, the restriction - # is ignored (but titles with the flag destroy_if_invalid_heir = yes - # will be destroyed). - # - # Options: - # same_faith - # same_religion - # same_family - # - faith = same_faith - - ### brief: create_primary_tier_titles ( bool, optional ) - # If set and under partition, titles you can create of your primary tier - # ( up to your number of secondary heirs ) will be created for free, - # resulting in a more split-up realm - # default = no - # - create_primary_tier_titles = no - - ### brief: primary_heir_minimum_share ( fixed point, optional ) - # If defined, the primary heir will get at least this portion of - # titles, which means if there's a lot of heirs the primary still - # gets a guaranteed amount of land - # - primary_heir_minimum_share = 0.5 - - ### brief: exclude_rulers ( bool, optional ) - # If set, the title can not be inherited by rulers (anyone with titles) - # default = no - # - exclude_rulers = no - - ### brief: limit_to_courtiers ( bool, optional ) - # If set, only immediate courtiers and away courtiers of a ruler - # will be allowed to inherit - # default = no - # - limit_to_courtiers = no - } - - ### brief: ai_will_do ( value ) - # Script value in the ruler scope. If above 0, the AI will enact this - # law if able. Law enactment is checked in the RARE_TASK_TICK. If multiple - # laws are possible, the AI will enact the one with the highest score. - # Root scope = ruler in question - # - ai_will_do = { ... } - } - - # Multiple laws can be defined in a single law group. - another_law_name = {} -} - -### NOTES ### - -### Inheritance ### -Any heir that goes up one or more tier due to inheritance gets the laws of the dead ruler. -Note that currently the law conditions are not checked in any way for law inheritance. - -### Default law ### -All rulers have a single law from each group. -If a group has a default set, that law will be checked first. -Otherwise, or if it is invalid, the laws are checked in definition order. -The first checked law where "should_start_with" returns true (or does not exist) gets used. Note that "can_pass" is ignored entirely when determining a default law. -When a default law is set, "on_pass" is *not* executed - -### Title Succession Laws ### -Laws are usually defined for realm. However some succession laws are valid for titles. -This is primary based on order_of_succession: - - Title only: - player_heir - election - noble_family - generate_from_template - Realm only: - inheritance ( title_division = partition ) - theocratic - company - generate - Realm & Title: - inheritance ( title_division = single_heir ) - appointment - -### Associated Localization ### -The key of the law will be used as its name. E.G., law_name: "Law Name" -The key plus "_effects" can optionally be defined to provide custom effects. E.G., law_name_effects: "Does some law thingy" -The key plus "_effects_not_in_prev" can optionally be defined to provide custom effects that should *not* be included when listing effects inherited from earlier laws. E.G., law_name_effects_not_in_prev: "Does some law thingy" - -CHARACTER.GetActiveLawInGroupWithFlag('realm_law') - Will get the character's active law in a group. The group must have the given flag. Note that it does not work for dead characters - -### Hardcoded Flags ### -Some flags have special meaning, and are used by the game code. - -Law Groups: -flag = realm_law - Will show up in My Realm window - -Laws: -flag = titles_cannot_leave_realm_on_succession - Disables titles leaving realm when received on succession by someone outside the realm - the respective heirs will be disqualified from succession -flag = men_can_have_multiple_spouses - Allows multiple spouses (if also allowed by faith) -flag = men_can_have_consorts - Allows consorts (if also allowed by faith) -flag = women_can_have_multiple_spouses - Allows multiple spouses (if also allowed by faith) -flag = women_can_have_consorts - Allows consorts (if also allowed by faith)