diff --git a/common/casus_belli_types/00_dejure_war.txt b/common/casus_belli_types/00_dejure_war.txt new file mode 100644 index 000000000..363af5dec --- /dev/null +++ b/common/casus_belli_types/00_dejure_war.txt @@ -0,0 +1,1597 @@ +de_jure_cb = { + icon = de_jure_cb + group = de_jure + should_check_for_interface_availability = no # Covered by the county dejure cb + + allowed_for_character = { + scope:attacker = { + culture = { + has_innovation = innovation_divine_right + } + NOR = { + government_has_flag = government_is_landless_adventurer + government_has_flag = government_is_nomadic + } + } + } + + allowed_for_character_display_regardless = { + tgp_japan_offensive_wars_ban_trigger = yes + } + + allowed_against_character = { + scope:attacker = { + has_de_jure_claim_on = scope:defender + } + NOR = { + scope:defender = { target_is_liege_or_above = scope:attacker } + scope:attacker = { target_is_liege_or_above = scope:defender } + } + } + target_titles = de_jure + ai_only_against_neighbors = yes + #target_title_tier = all + ignore_effect = change_title_holder + #target_de_jure_regions_above = yes + combine_into_one = yes + + valid_to_start = { + scope:target = { + any_this_title_or_de_jure_above = { + holder ?= { + OR = { + this = scope:attacker + target_is_liege_or_above = scope:attacker + } + } + } + } + } + + cost = { + piety = { + value = 0 + add = common_cb_impious_piety_cost + } + prestige = { + value = 0 + # scale base value based on number of counties x 100 + add = { + every_in_list = { + list = target_titles + limit = { + tier = tier_county + OR = { + holder.top_liege = scope:defender + holder.liege = scope:defender + holder.liege = scope:defender.liege + } + } + add = 100 + } + desc = CB_CLAIM_COST_TARGET_TITLES + } + + multiply = common_cb_prestige_cost_multiplier + } + } + + on_declaration = { + on_declared_war = yes + } + + should_invalidate = { + NOT = { + scope:attacker = { + has_de_jure_claim_on = scope:defender + } + } + } + + on_invalidated_desc = msg_de_jure_all_war_invalidated_message + + on_invalidated = { + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = de_jure_cb_victory_desc_attacker + } + desc = de_jure_cb_victory_desc + } + + } + + on_victory = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_victory_effect = yes + + #EP2 accolade glory gain for winning against higher ranked enemy + scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } + + every_in_list = { + list = target_titles + de_jure_liege.holder = { save_scope_as = temp_de_jure_liege } + add_hook_from_temp_de_jure_liege_to_attacker = yes + } + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + + # Setup and execute the changes to titles and vassals. + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + change = scope:change + } + resolve_title_and_vassal_change = scope:change + + # Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution. + modify_all_participants_fame_values = { + WINNER = scope:attacker + LOSER = scope:defender + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = 10 + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # truce + add_truce_attacker_victory_effect = yes + + # FP1: note the victory for future memorialisation via stele (if applicable). + scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_victory_effects = yes + } + + on_white_peace_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = de_jure_cb_white_peace_desc_defender + } + desc = de_jure_cb_white_peace_desc + } + + } + + on_white_peace = { + scope:attacker = { show_pow_release_message_effect = yes } + + #EP2 accolade glory gain for doing ok against higher ranked enemy + scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } + + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + } + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + multiply = -5.0 + } + stress_impact = { + ambitious = medium_stress_impact_gain + arrogant = medium_stress_impact_gain + } + } + + # Allies on both sides get full prestige value for helping in the war, based on their war participation. + modify_allies_of_participants_fame_values = { + WINNER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + # Defender neither gains nor loses any prestige. + scope:defender = { + stress_impact = { + arrogant = medium_stress_impact_gain + } + } + + # Truce + add_truce_white_peace_effect = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + } + + on_defeat_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = de_jure_cb_defeat_desc_defender + } + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = de_jure_cb_defeat_desc_attacker + } + desc = de_jure_cb_defeat_desc + } + + + } + + on_defeat = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_defeat_effect = yes + + scope:defender = { + mandala_peacemaker_perk_serenity_effect = yes + #EP2 accolade glory gain for winning against higher ranked enemy + accolade_defender_war_end_glory_gain_med_effect = yes + } + + # Attacker must pay the defender war reparations. + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 3 + } + } + + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + } + # Attacker loses Prestige, all other participants gain Prestige based on their war contribution (Defender gets full Prestige). + modify_all_participants_fame_values = { + WINNER = scope:defender + LOSER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = scale_10_war_defender_win + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # Truce + add_truce_attacker_defeat_effect = yes + + scope:attacker = { + save_temporary_scope_as = loser + } + on_lost_aggression_war_discontent_loss = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_defeat_effects = yes + } + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + transfer_behavior = transfer + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "DEJURE_CB_WAR_NAME" + war_name_base = "DEJURE_CB_WAR_NAME_BASE" + cb_name = DEJURE_CB_NAME + interface_priority = 100 + + attacker_wargoal_percentage = 0.8 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 + + max_ai_diplo_distance_to_title = 500 + + ai_score_mult = { + value = 1 + add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing + } +} + +individual_county_de_jure_cb = { + icon = individual_county_de_jure_cb + group = de_jure + + combine_into_one = yes + should_show_war_goal_subview = yes + mutually_exclusive_titles = { always = yes } + + allowed_for_character = { + scope:attacker = { + culture = { + has_innovation = innovation_casus_belli + } + NOT = { government_has_flag = government_is_nomadic } + } + } + + allowed_for_character_display_regardless = { + tgp_japan_offensive_wars_ban_trigger = yes + } + + allowed_against_character = { + scope:attacker = { + has_de_jure_claim_on = scope:defender + } + NOR = { + scope:defender = { target_is_liege_or_above = scope:attacker } + scope:attacker = { target_is_liege_or_above = scope:defender } + } + } + target_titles = all + target_title_tier = all + target_de_jure_regions_above = yes + ignore_effect = change_title_holder + ai_only_against_neighbors = yes + + valid_to_start = { + scope:target = { + tier = tier_county + any_this_title_or_de_jure_above = { + holder ?= { + OR = { + this = scope:attacker + target_is_liege_or_above = scope:attacker + } + } + } + } + } + + should_invalidate = { + NOT = { + any_in_list = { + list = target_titles + any_in_de_jure_hierarchy = { + tier = tier_county + holder = { + OR = { + this = scope:defender + target_is_liege_or_above = scope:defender + } + } + } + } + } + } + + on_invalidated_desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:attacker.liege = { + any_character_war = { + primary_defender = { + save_temporary_scope_as = defender_check + } + } + } + scope:defender = scope:defender_check + } + desc = msg_de_jure_duchy_war_invalidated_liege_war_message + } + desc = msg_de_jure_county_war_invalidated_message + } + + + } + + on_invalidated = { + } + + cost = { + piety = { + value = 0 + add = common_cb_impious_piety_cost + } + prestige = { + # scale base value based on number of counties x 100, in this case 1 + add = { + value = 100 + desc = CB_CLAIM_COST_TARGET_TITLES + } + + multiply = common_cb_prestige_cost_multiplier + } + } + + on_declaration = { + on_declared_war = yes + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = individual_county_de_jure_cb_victory_desc_attacker + } + desc = individual_county_de_jure_cb_victory_desc + } + + + } + + on_victory = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_victory_effect = yes + + #EP2 accolade glory gain for winnning against higher ranked enemy + scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } + + every_in_list = { + list = target_titles + if = { + limit = { + exists = de_jure_liege.holder + } + de_jure_liege.holder = { save_scope_as = temp_de_jure_liege } + } + add_hook_from_temp_de_jure_liege_to_attacker = yes + } + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + change = scope:change + title = scope:target + } + resolve_title_and_vassal_change = scope:change + + # Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution. + modify_all_participants_fame_values = { + WINNER = scope:attacker + LOSER = scope:defender + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = 10 + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # truce + add_truce_attacker_victory_effect = yes + + # FP1: note the victory for future memorialisation via stele (if applicable). + scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_victory_effects = yes + } + + on_white_peace_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = individual_county_de_jure_cb_white_peace_desc_defender + } + desc = individual_county_de_jure_cb_white_peace_desc + } + + + } + + on_white_peace = { + scope:attacker = { show_pow_release_message_effect = yes } + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + title = scope:target + } + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + multiply = -5.0 + } + } + # Allies on both sides get full prestige value for helping in the war, based on their war participation. + modify_allies_of_participants_fame_values = { + WINNER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + # Defender neither gains nor loses any prestige. + + # Truce + add_truce_white_peace_effect = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + } + + on_defeat_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = individual_county_de_jure_cb_defeat_desc_defender + } + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = individual_county_de_jure_cb_defeat_desc_attacker + } + desc = individual_county_de_jure_cb_defeat_desc + } + + + } + + on_defeat = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_defeat_effect = yes + + scope:defender = { + mandala_peacemaker_perk_serenity_effect = yes + #EP2 accolade glory gain for winning against higher ranked enemy + accolade_defender_war_end_glory_gain_low_effect = yes + } + + # Attacker must pay the defender war reparations. + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 3 + } + } + + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + title = scope:target + } + # Attacker loses Prestige, all other participants gain Prestige based on their war contribution (Defender gets full Prestige). + modify_all_participants_fame_values = { + WINNER = scope:defender + LOSER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = scale_10_war_defender_win + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # Truce + add_truce_attacker_defeat_effect = yes + + scope:attacker = { + save_temporary_scope_as = loser + } + on_lost_aggression_war_discontent_loss = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_defeat_effects = yes + } + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + transfer_behavior = transfer + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "DEJURE_CB_WAR_SPECIFIC_NAME" + war_name_base = "DEJURE_CB_WAR_SPECIFIC_NAME_BASE" + cb_name = DEJURE_CB_COUNTY_NAME + cb_name_no_target = DEJURE_CB_COUNTY_NAME_GENERIC + interface_priority = 99 # Below the "take all" one + + attacker_wargoal_percentage = 0.8 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 + + max_ai_diplo_distance_to_title = 500 + + ai_score_mult = { + value = 1 + add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing + } +} + +individual_duchy_de_jure_cb = { + icon = individual_duchy_de_jure_cb + group = de_jure + should_check_for_interface_availability = no # Covered by the county dejure cb + + combine_into_one = yes + should_show_war_goal_subview = yes + mutually_exclusive_titles = { always = yes } + + allowed_for_character = { + scope:attacker = { + culture = { + has_innovation = innovation_casus_belli + } + NOT = { government_has_flag = government_is_nomadic } + } + } + + allowed_for_character_display_regardless = { + tgp_japan_offensive_wars_ban_trigger = yes + } + + allowed_against_character = { + scope:attacker = { + has_de_jure_claim_on = scope:defender + } + NOR = { + scope:defender = { target_is_liege_or_above = scope:attacker } + scope:attacker = { target_is_liege_or_above = scope:defender } + } + } + target_titles = all + target_title_tier = all + target_de_jure_regions_above = yes + ignore_effect = change_title_holder + ai_only_against_neighbors = yes + + valid_to_start = { + scope:target = { + tier = tier_duchy + any_this_title_or_de_jure_above = { + holder ?= { + OR = { + this = scope:attacker + target_is_liege_or_above = scope:attacker + } + } + } + } + scope:target = { + trigger_if = { + limit = { + scope:attacker = { + is_ai = yes + } + } + any_in_de_jure_hierarchy = { + continue = { tier > tier_county } + count >= 2 + tier = tier_county + holder ?= { + OR = { + this = scope:defender + is_vassal_or_below_of = scope:defender + } + } + } + } + } + } + + cost = { + piety = { + value = 0 + add = common_cb_impious_piety_cost + } + prestige = { + value = 0 + # scale base value based on number of counties x 100 + add = { + every_in_list = { + list = target_titles + every_in_de_jure_hierarchy = { # goes down, not up + limit = { + tier = tier_county + OR = { + holder.top_liege = scope:defender + holder.liege = scope:defender + holder.liege = scope:defender.liege + } + } + add = 100 + } + } + desc = CB_CLAIM_COST_TARGET_TITLES + } + + multiply = common_cb_prestige_cost_multiplier + } + } + + should_invalidate = { + NOT = { + any_in_list = { + list = target_titles + any_in_de_jure_hierarchy = { + tier = tier_county + holder = { + OR = { + this = scope:defender + target_is_liege_or_above = scope:defender + } + } + } + } + } + } + + on_invalidated_desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:attacker.liege = { + any_character_war = { + primary_defender = { + save_temporary_scope_as = defender_check + } + } + } + scope:defender = scope:defender_check + } + desc = msg_de_jure_duchy_war_invalidated_liege_war_message + } + desc = msg_de_jure_duchy_war_invalidated_message + } + } + + on_invalidated = { + } + + on_declaration = { + on_declared_war = yes + + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = de_jure_cb_victory_desc_attacker + } + desc = de_jure_cb_victory_desc + } + + + } + + on_victory = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_victory_effect = yes + + #EP2 accolade glory gain for winning against higher ranked enemy + scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } + + every_in_list = { + list = target_titles + limit = { exists = holder } + + holder = { save_scope_as = temp_de_jure_liege } + add_hook_from_temp_de_jure_liege_to_attacker = yes + } + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + change = scope:change + title = scope:target + } + resolve_title_and_vassal_change = scope:change + + # Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution. + modify_all_participants_fame_values = { + WINNER = scope:attacker + LOSER = scope:defender + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = 10 + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # truce + add_truce_attacker_victory_effect = yes + + # FP1: note the victory for future memorialisation via stele (if applicable). + scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_victory_effects = yes + } + + on_white_peace_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = de_jure_cb_white_peace_desc_defender + } + desc = de_jure_cb_white_peace_desc + } + + + } + + on_white_peace = { + scope:attacker = { show_pow_release_message_effect = yes } + + #EP2 accolade glory gain for doing ok against higher ranked enemy + scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } + + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + title = scope:target + } + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + multiply = -5.0 + } + } + # Allies on both sides get full prestige value for helping in the war, based on their war participation. + modify_allies_of_participants_fame_values = { + WINNER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + # Defender neither gains nor loses any prestige. + + # Truce + add_truce_white_peace_effect = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + } + + on_defeat_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = de_jure_cb_defeat_desc_defender + } + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = de_jure_cb_defeat_desc_attacker + } + desc = de_jure_cb_defeat_desc + } + + + } + + on_defeat = { + scope:attacker = { show_pow_release_message_effect = yes } + + # Legitimacy + add_legitimacy_attacker_defeat_effect = yes + + scope:defender = { + mandala_peacemaker_perk_serenity_effect = yes + #EP2 accolade glory gain for winning against higher ranked enemy + accolade_defender_war_end_glory_gain_med_effect = yes + } + + # Attacker must pay the defender war reparations. + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 3 + } + } + + # Create an 'helper' de jure CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + every_in_list = { + list = target_titles + save_temporary_scope_as = target + } + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + victory = no + title = scope:target + } + # Attacker loses Prestige, all other participants gain Prestige based on their war contribution (Defender gets full Prestige). + modify_all_participants_fame_values = { + WINNER = scope:defender + LOSER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_de_jure_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = scale_10_war_defender_win + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 100 + LOSER_ALLY_FAME_SCALE = 100 + } + + # Truce + add_truce_attacker_defeat_effect = yes + + scope:attacker = { + save_temporary_scope_as = loser + } + on_lost_aggression_war_discontent_loss = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + + #Mandalas gain or lose piety/devotion depending on Decree + mandala_war_defeat_effects = yes + } + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + transfer_behavior = transfer + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "DEJURE_CB_WAR_SPECIFIC_NAME" + war_name_base = "DEJURE_CB_WAR_SPECIFIC_NAME_BASE" + cb_name = DEJURE_CB_DUCHY_NAME + cb_name_no_target = DEJURE_CB_DUCHY_NAME_GENERIC + interface_priority = 99 # Below the "take all" one + + attacker_wargoal_percentage = 0.8 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 + + max_ai_diplo_distance_to_title = 500 + + ai_score_mult = { + value = 1 + add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing + } +} +# +#imperial_reconquest_cb = { +# icon = de_jure_cb +# group = de_jure +# +# combine_into_one = yes +# should_show_war_goal_subview = yes +# mutually_exclusive_titles = { always = yes } +# +# allowed_for_character = { +# scope:attacker = { +# is_roman_emperor_excluding_byzantium_trigger = yes +# } +# } +# +# allowed_against_character = { +# #scope:attacker = { #Not a regular de jure cb. +# #has_de_jure_claim_on = scope:defender +# #} +# NOR = { +# scope:defender = { target_is_liege_or_above = scope:attacker } +# scope:attacker = { target_is_liege_or_above = scope:defender } +# } +# } +# target_titles = all +# target_title_tier = all +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# ai_only_against_neighbors = yes +# +# valid_to_start = { +# scope:target = { +# tier = tier_duchy +# any_in_de_jure_hierarchy = { +# tier = tier_county +# title_province = { geographical_region = custom_roman_full_borders } +# } +# } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# should_invalidate = { +# NOT = { +# any_in_list = { +# list = target_titles +# any_in_de_jure_hierarchy = { +# tier = tier_county +# holder = { +# OR = { +# this = scope:defender +# target_is_liege_or_above = scope:defender +# } +# } +# } +# } +# } +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = de_jure_cb_victory_desc_attacker +# } +# desc = de_jure_cb_victory_desc +# } +# +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 accolade glory gain for winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# change = scope:change +# title = scope:target +# } +# resolve_title_and_vassal_change = scope:change +# +# +# # truce +# add_truce_attacker_victory_effect = yes +# +# # FP1: note the victory for future memorialisation via stele (if applicable). +# scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_victory_effects = yes +# } +# +# on_white_peace_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = de_jure_cb_white_peace_desc_defender +# } +# desc = de_jure_cb_white_peace_desc +# } +# +# } +# +# on_white_peace = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# #EP2 accolade glory gain for doing ok against higher ranked enemy +# scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# victory = no +# title = scope:target +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = de_jure_cb_defeat_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = de_jure_cb_defeat_desc_attacker +# } +# desc = de_jure_cb_defeat_desc +# } +# +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_med_effect = yes +# } +# +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 10 +# } +# } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# victory = no +# title = scope:target +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_defeat_effects = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# transfer_behavior = transfer +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "IMPERIAL_RECONQUEST_WAR_SPECIFIC_NAME" +# war_name_base = "IMPERIAL_RECONQUEST_WAR_SPECIFIC_NAME_BASE" +# cb_name = IMPERIAL_RECONQUEST_SPECIFIC_NAME +# interface_priority = 98 #Below take all and regular dejure. +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 500 +# +# on_invalidated_desc = msg_invalidate_war_title +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +#dismantle_holy_pretender_cb = { +# icon = dissolution_war +# group = de_jure +# +# allowed_for_character = { +# scope:attacker = { +# has_character_flag = flag_emperor_challenging_hre +# } +# } +# +# allowed_against_character = { +# NOR = { +# scope:defender = { target_is_liege_or_above = scope:attacker } +# scope:attacker = { target_is_liege_or_above = scope:defender } +# scope:attacker = { has_character_flag = flag_emperor_challenged_hre } #Only once per Emperor. +# } +# } +# target_titles = all +# target_title_tier = all +# ignore_effect = change_title_holder +# +# white_peace_possible = no +# on_white_peace_desc = { +# desc = WHITE_PEACE_DISABLED +# } +# +# valid_to_start = { +# scope:target = { this = title:e_hre } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = dismantle_holy_pretender_cb_victory_desc +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# scope:defender = { save_scope_as = hre_emperor } +# scope:attacker = { +# save_scope_as = byz_emperor +# destroy_title = title:e_hre +# add_character_flag = { #No repeats. +# flag = flag_emperor_challenged_hre +# } +# } +# hidden_effect = { +# title:e_hre = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_kingdom +# } +# set_de_jure_liege_title = scope:attacker.primary_title #Drift all the HRE vassal titles to de jure Roman Empire. +# } +# } +# } +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# # truce +# add_truce_attacker_victory_effect = yes +# +# hidden_effect = { +# scope:attacker = { +# trigger_event = roman_restoration.0162 +# } +# scope:defender = { +# trigger_event = roman_restoration.0163 +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_victory_effects = yes +# } +# +# on_defeat_desc = { +# desc = dismantle_holy_pretender_cb_defeat_desc +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# save_scope_as = hre_emperor +# } +# scope:attacker = { +# save_scope_as = byz_emperor +# add_character_flag = { #No repeats. +# flag = flag_emperor_challenged_hre +# } +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 10 +# } +# } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# #attacker_prestige = -10 +# victory = no +# title = scope:target +# } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# hidden_effect = { +# scope:attacker = { +# trigger_event = roman_restoration.0164 +# } +# scope:defender = { +# trigger_event = roman_restoration.0165 +# } +# } +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_defeat_effects = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# transfer_behavior = transfer +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "DISMANTLE_EMPIRE_WAR_SPECIFIC_NAME" +# war_name_base = "DISMANTLE_EMPIRE_WAR_SPECIFIC_NAME_BASE" +# cb_name = DISMANTLE_EMPIRE_SPECIFIC_NAME +# interface_priority = 98 #Below take all and regular dejure. +# +# attacker_ticking_warscore = 0.01 +# defender_ticking_warscore = 0.05 +# attacker_wargoal_percentage = 0.9 +# defender_ticking_warscore_delay = { months = 24 } +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 2000 +# +# on_invalidated_desc = msg_invalidate_war_title +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +#dismantle_byz_pretender_cb = { +# icon = dissolution_war +# group = de_jure +# +# allowed_for_character = { +# scope:attacker = { +# has_character_flag = flag_emperor_challenging_byz +# } +# } +# +# allowed_against_character = { +# NOR = { +# scope:defender = { target_is_liege_or_above = scope:attacker } +# scope:attacker = { target_is_liege_or_above = scope:defender } +# scope:attacker = { has_character_flag = flag_emperor_challenged_byz } #Only once per Emperor. +# } +# } +# target_titles = all +# target_title_tier = all +# ignore_effect = change_title_holder +# +# white_peace_possible = no +# on_white_peace_desc = { +# desc = WHITE_PEACE_DISABLED +# } +# +# valid_to_start = { +# scope:target = { this = title:e_byzantium } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = dismantle_byz_pretender_cb_victory_desc +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# scope:defender = { save_scope_as = byz_emperor } +# scope:attacker = { +# save_scope_as = hre_emperor +# destroy_title = title:e_byzantium +# add_character_flag = { #No repeats. +# flag = flag_emperor_challenged_hre +# } +# } +# hidden_effect = { +# title:e_byzantium = { +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_kingdom +# } +# set_de_jure_liege_title = scope:attacker.primary_title #Drift all the HRE vassal titles to de jure Roman Empire. +# } +# } +# } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# # truce +# add_truce_attacker_victory_effect = yes +# +# hidden_effect = { +# scope:attacker = { +# trigger_event = roman_restoration.0172 +# } +# scope:defender = { +# trigger_event = roman_restoration.0173 +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_victory_effects = yes +# } +# +# on_defeat_desc = { +# desc = dismantle_byz_pretender_cb_defeat_desc +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# save_scope_as = byz_emperor +# } +# scope:attacker = { +# save_scope_as = hre_emperor +# add_character_flag = { #No repeats. +# flag = flag_emperor_challenged_byz +# } +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 10 +# } +# } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# #attacker_prestige = -10 +# victory = no +# title = scope:target +# } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# hidden_effect = { +# scope:attacker = { +# trigger_event = roman_restoration.0174 +# } +# scope:defender = { +# trigger_event = roman_restoration.0175 +# } +# } +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_defeat_effects = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# transfer_behavior = transfer +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "DISMANTLE_EMPIRE_WAR_SPECIFIC_NAME" +# war_name_base = "DISMANTLE_EMPIRE_WAR_SPECIFIC_NAME_BASE" +# cb_name = DISMANTLE_EMPIRE_SPECIFIC_NAME +# interface_priority = 98 #Below take all and regular dejure. +# +# attacker_ticking_warscore = 0.01 +# defender_ticking_warscore = 0.05 +# attacker_wargoal_percentage = 0.9 +# defender_ticking_warscore_delay = { months = 24 } +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 2000 +# +# on_invalidated_desc = msg_invalidate_war_title +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# \ No newline at end of file diff --git a/common/casus_belli_types/10_tgp_japan_wars.txt b/common/casus_belli_types/10_tgp_japan_wars.txt new file mode 100644 index 000000000..38080ed9e --- /dev/null +++ b/common/casus_belli_types/10_tgp_japan_wars.txt @@ -0,0 +1,3090 @@ +# +## War to install Bloc member -- Bloc Expansion +#japan_install_bloc_member_cb = { +# icon = bloc +# group = subjugation +# combine_into_one = yes +# should_show_war_goal_subview = yes +# allow_hostages = no +# ai_only_against_neighbors = yes +# +# target_titles = all +# target_title_tier = county +# ignore_effect = change_title_holder +# +# # scope:attacker +# allowed_for_character = { +# has_tgp_dlc_trigger = yes +# is_landed = yes +# highest_held_title_tier >= tier_county +# tgp_soryo_or_bushido_trigger = yes # Soryo +# exists = house.house_confederation # In a Bloc +# } +# +# # scope:defender +# allowed_against_character = { +# is_landed = yes +# highest_held_title_tier >= tier_county +# top_liege = scope:attacker.top_liege # Same realm +# NOT = { this = scope:attacker.top_liege } # Not top liege +# government_is_japanese_trigger = yes # Soryo or Ritsuryo +# trigger_if = { # Not in same Bloc +# limit = { exists = house.house_confederation } +# house.house_confederation != scope:attacker.house.house_confederation +# } +# } +# +# valid_to_start = { +# scope:target ?= { is_landless_type_title = no } +# } +# +# mutually_exclusive_titles = { always = yes } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# should_invalidate = { +# OR = { +# scope:attacker = { tgp_soryo_or_bushido_trigger = no } +# scope:defender.house.house_confederation ?= scope:attacker.house.house_confederation # Same bloc already +# NOT = { exists = scope:attacker.house.house_confederation } # Bloc destroyed +# } +# } +# +# on_invalidated_desc = { +# desc = japan_install_bloc_member_cb_ended_invalid.desc +# } +# +# on_declaration = { +# on_declared_war = yes +# if = { +# limit = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# scope:attacker = { +# # Message for attacker +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_title +# left_icon = scope:defender +# right_icon = top_liege +# top_liege = { +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_kampaku_title +# left_icon = scope:attacker +# right_icon = scope:defender +# add_opinion = { +# target = scope:attacker +# modifier = admin_soryo_conquest_crime +# } +# } +# } +# } +# } +# } +# } +# +# on_victory_desc = { +# desc = { +# desc = japan_install_bloc_member_cb_victory_desc +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_victory = { +# +# scope:attacker = { show_pow_release_message_effect = yes } +# +# scope:attacker.house.house_confederation = { +# leading_house.house_head = { +# if = { +# limit = { +# is_ai = yes +# NOT = { this = scope:attacker} +# } +# add_opinion = { +# target = scope:attacker +# modifier = respect_opinion +# opinion = 25 +# } +# } +# } +# } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:attacker = { +# trigger_event = { +# id = tgp_japan_general.8800 +# days = 1 +# } +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = { +# desc = japan_install_bloc_member_cb_white_peace_desc +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = { +# desc = japan_install_bloc_member_cb_defeat_desc +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_INSTALL_BLOC_MEMBER_WAR_NAME" +# war_name_base = "JAPAN_INSTALL_BLOC_MEMBER_WAR_NAME_BASE" +# cb_name = "JAPAN_INSTALL_BLOC_MEMBER_CB_NAME" +# interface_priority = 100 +# +# ticking_war_score_targets_entire_realm = no +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 100 +# defender_score_from_occupation_scale = 100 +# attacker_score_from_battles_scale = 100 +# defender_score_from_battles_scale = 100 +# +# max_attacker_score_from_battles = 100 +# max_defender_score_from_battles = 100 +# +# max_defender_score_from_occupation = 100 +# max_attacker_score_from_occupation = 100 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score = { +# value = japan_install_bloc_member_ai_score_value +# } +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War for landless feudal to take land +#japan_soryo_conquest_county_landless_cb = { +# icon = soryo +# group = conquest +# combine_into_one = yes +# should_show_war_goal_subview = yes +# ai_only_against_neighbors = no +# allow_hostages = no +# target_titles = all +# target_title_tier = county +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# +# mutually_exclusive_titles = { always = yes } +# +# # scope:attacker +# allowed_for_character = { +# has_tgp_dlc_trigger = yes +# is_landed = no +# government_is_japanese_trigger = yes +# tgp_soryo_or_bushido_trigger = yes +# } +# +# # scope:defender +# allowed_against_character = { +# is_landed = yes +# highest_held_title_tier >= tier_county +# government_is_japanese_trigger = yes +# top_liege = { +# # Must be part of same realm +# this = scope:attacker.top_liege +# # But defender must not be liege +# NOT = { this = scope:attacker } +# } +# } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# valid_to_start = { +# scope:target = { +# is_landless_type_title = no +# # Also make sure you can't war for, like, the Papal States +# trigger_if = { +# limit = { holder.faith ?= root.faith } +# NOT = { +# holder ?= { is_theocratic_lessee = yes } +# } +# } +# } +# } +# +# should_invalidate = { +# ep3_adventurer_landless_should_invalidate_trigger = yes +# } +# +# on_invalidated_desc = { +# desc = japan_soryo_conquest_cb_ended_invalid.desc +# } +# +# on_declaration = { +# on_declared_war = yes +# if = { +# limit = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# scope:attacker = { +# # Message for attacker +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_title +# left_icon = scope:defender +# right_icon = top_liege +# top_liege = { +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_kampaku_title +# left_icon = scope:attacker +# right_icon = scope:defender +# add_opinion = { +# target = scope:attacker +# modifier = admin_soryo_conquest_crime +# } +# } +# } +# } +# } +# } +# } +# +# on_victory_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_victory_desc_attacker +# } +# desc = county_conquest_cb_victory_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# #As this is just a county conquest, simply grab the designated county. +# every_in_list = { +# list = target_titles +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# } +# } +# +# resolve_title_and_vassal_change = scope:change +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = county_conquest_cb_white_peace_desc_defender +# } +# desc = county_conquest_cb_white_peace_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_defeat_desc_attacker +# } +# desc = county_conquest_cb_defeat_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# transfer_behavior = transfer +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# interface_priority = 79 +# +# use_de_jure_wargoal_only = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_attacker_score_from_battles = 75 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# war_name = "JAPAN_SORYO_CONQUEST_LANDLESS_WAR_NAME" +# war_name_base = "JAPAN_SORYO_CONQUEST_LANDLESS_WAR_NAME_BASE" +# cb_name = "JAPAN_SORYO_CONQUEST_LANDLESS_COUNTY_CB_NAME" +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# if = { +# limit = { +# current_military_strength < 400 +# } +# multiply = 0 +# } +# } +#} +# +## War for feudal to take land +#japan_soryo_conquest_county_cb = { +# icon = soryo +# group = conquest +# combine_into_one = yes +# ai_only_against_neighbors = yes +# allow_hostages = yes +# should_show_war_goal_subview = yes +# +# target_titles = neighbor_land_or_water +# target_title_tier = county +# ignore_effect = change_title_holder +# +# mutually_exclusive_titles = { always = yes } +# +# # scope:attacker +# allowed_for_character = { +# has_tgp_dlc_trigger = yes +# is_landed = yes +# # Attacker must be Japanese Feudal, or have the Bushido tradition +# tgp_soryo_or_bushido_trigger = yes +# } +# +# # scope:defender +# allowed_against_character = { +# top_liege ?= { +# # Must be part of same realm +# this = scope:attacker.top_liege +# # But defender must not be liege +# NOT = { this = scope:attacker } +# } +# } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# should_invalidate = { +# OR = { +# NOT = { +# scope:attacker = { tgp_soryo_or_bushido_trigger = yes } +# } +# scope:defender = { +# top_liege != scope:attacker.top_liege +# } +# } +# } +# +# on_invalidated_desc = { +# desc = japan_soryo_conquest_cb_ended_invalid.desc +# } +# +# on_declaration = { +# on_declared_war = yes +# if = { +# limit = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# scope:attacker = { +# # Message for attacker +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_title +# left_icon = scope:defender +# right_icon = top_liege +# top_liege = { +# send_interface_toast = { +# type = event_war_bad +# title = tgp_japan_soryo_war_is_crime_kampaku_title +# left_icon = scope:attacker +# right_icon = scope:defender +# add_opinion = { +# target = scope:attacker +# modifier = admin_soryo_conquest_crime +# } +# } +# } +# } +# } +# } +# } +# +# on_victory_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_victory_desc_attacker +# } +# desc = county_conquest_cb_victory_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# #As this is just a county conquest, simply grab the designated county. +# every_in_list = { +# list = target_titles +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# } +# } +# +# resolve_title_and_vassal_change = scope:change +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = county_conquest_cb_white_peace_desc_defender +# } +# desc = county_conquest_cb_white_peace_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_defeat_desc_attacker +# } +# desc = county_conquest_cb_defeat_desc +# } +# triggered_desc = { +# trigger = { tgp_japan_internal_soryo_war_is_crime_trigger = yes } +# desc = japan_soryo_conquest_cb_admin_warning +# } +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_SORYO_CONQUEST_WAR_NAME" +# war_name_base = "JAPAN_SORYO_CONQUEST_WAR_NAME_BASE" +# cb_name = "JAPAN_SORYO_CONQUEST_COUNTY_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 50 +# defender_score_from_occupation_scale = 50 +# attacker_score_from_battles_scale = 250 +# defender_score_from_battles_scale = 250 +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 50 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War to enforce return to Administrative +#japan_demand_administrative_cb = { +# icon = ritsuryo +# group = subjugation +# allow_hostages = no +# ai_only_against_neighbors = yes +# should_show_war_goal_subview = yes +# +# # scope:attacker +# allowed_for_character = { +# government_has_flag = government_is_japan_administrative +# top_liege = { government_has_flag = government_is_japan_administrative } # Cannot enforce admin in a Soryo realm +# tgp_is_ceremonial_liege_trigger = no +# } +# +# # scope:defender +# allowed_against_character = { +# is_landed = yes +# government_has_flag = government_is_japan_feudal +# top_liege = scope:attacker.top_liege +# NOT = { is_liege_or_above_of = scope:attacker } +# } +# +# # root = scope:attacker, scope:defender, scope:target +# valid_to_start = { +# } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# should_invalidate = { +# OR = { +# NOT = { +# scope:attacker = { +# government_has_flag = government_is_japan_administrative +# tgp_is_ceremonial_liege_trigger = no +# } +# } +# NOT = { +# scope:defender = { +# government_has_flag = government_is_japan_feudal +# top_liege = scope:attacker.top_liege +# NOT = { is_liege_or_above_of = scope:attacker } +# } +# } +# scope:defender = { is_landed = no } +# } +# } +# +# on_invalidated_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# NOT = { +# scope:attacker = { +# government_has_flag = government_is_japan_administrative +# tgp_is_ceremonial_liege_trigger = no +# } +# } +# } +# desc = japan_demand_administrative_cb_ended_invalid.desc.attacker +# } +# desc = japan_demand_administrative_cb_ended_invalid.desc +# } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = { +# desc = japan_demand_administrative_cb_victory_desc +# triggered_desc = { +# trigger = { +# scope:attacker = { is_independent_ruler = no } +# } +# desc = japan_demand_administrative_cb_victory_vassal_desc +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# # Appreciation for re-integration +# scope:attacker = { +# if = { +# limit = { is_independent_ruler = no } +# reverse_add_opinion = { +# target = scope:attacker.top_liege +# modifier = enforced_administrative_opinion +# } +# } +# } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# scope:defender = { +# every_held_title = { +# limit = { +# is_landless_type_title = no +# is_noble_family_title = no +# tier >= tier_county +# } +# # Return land to top liege +# change_title_holder = { +# holder = scope:attacker.top_liege +# change = scope:change +# } +# } +# } +# +# # Influence/Fame reward +# scope:attacker = { +# if = { +# limit = { is_independent_ruler = no } +# if = { +# limit = { government_allows = administrative } +# change_influence = japan_demand_administrative_war_influence_value +# } +# else = { add_prestige_experience = japan_demand_administrative_war_prestige_value } +# } +# } +# +# resolve_title_and_vassal_change = scope:change +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = japan_demand_administrative_cb_white_peace_desc +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = scope:defender.top_liege } +# desc = japan_demand_administrative_cb_defeat_desc_independence +# } +# desc = japan_demand_administrative_cb_defeat_desc +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# # If Regent themselves failed to assert authority +# if = { +# limit = { scope:attacker = scope:defender.top_liege } +# scope:attacker = { +# add_prestige = major_prestige_loss +# switch = { +# trigger = has_realm_law +# japanese_bureaucracy_3 = { add_realm_law = japanese_bureaucracy_2 } +# japanese_bureaucracy_2 = { add_realm_law = japanese_bureaucracy_1 } +# japanese_bureaucracy_1 = { add_realm_law = japanese_bureaucracy_0 } +# fallback = { force_step_down_landed_titles = yes } +# } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_DEMAND_ADMINISTRATIVE_WAR_NAME" +# war_name_base = "JAPAN_DEMAND_ADMINISTRATIVE_WAR_NAME_BASE" +# cb_name = "JAPAN_DEMAND_ADMINISTRATIVE_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 50 +# defender_score_from_occupation_scale = 50 +# attacker_score_from_battles_scale = 250 +# defender_score_from_battles_scale = 250 +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 50 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score = { +# value = japan_demand_administrative_ai_score_value +# } +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War to conquer Japan +#japan_imperial_expansion_cb = { +# icon = ritsuryo_government +# group = conquest +# combine_into_one = yes +# ai_only_against_neighbors = yes +# allow_hostages = no +# should_show_war_goal_subview = yes +# +# target_titles = all +# target_title_tier = county +# ignore_effect = change_title_holder +# +# mutually_exclusive_titles = { always = yes } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# # root = scope:attacker +# allowed_for_character = { +# japan_imperial_expansion_cb_allowed_for_character_trigger = yes +# } +# +# # root = scope:attacker +# allowed_for_character_display_regardless = { +# # Required Policy +# top_liege = { has_realm_law = imperial_expansion_law } +# } +# +# # root = scope:defender, scope:attacker +# allowed_against_character = { +# japan_imperial_expansion_cb_allowed_against_character_trigger = yes +# } +# +# # root = scope:defender, scope:attacker +# allowed_against_character_display_regardless = { +# # Must be neighbours, but we want to show casus belli in list regardless +# custom_tooltip = { +# text = japan_imperial_expansion_cb_neighbour_tt +# any_sub_realm_county = { +# any_title_to_title_neighboring_and_across_water_county = { holder.top_liege = scope:attacker.top_liege } +# } +# } +# } +# +# # root = scope:attacker, scope:defender, scope:target +# valid_to_start_display_regardless = { +# custom_tooltip = { +# text = tgp_japan_pacification_war_valid_empire_tt +# NOT = { scope:target.empire ?= title:e_japan } +# } +# custom_tooltip = { +# text = tgp_japan_pacification_war_valid_region_tt +# scope:target.title_province ?= { +# OR = { +# geographical_region = world_asia_japan +# geographical_region = world_asia_sakhalin_hokkaido +# } +# } +# } +# } +# +# valid_to_start = { +# scope:target = { +# is_landless_type_title = no +# } +# } +# +# should_invalidate = { +# OR = { +# scope:attacker = { japan_imperial_expansion_cb_allowed_for_character_trigger = no } +# scope:defender = { japan_imperial_expansion_cb_allowed_against_character_trigger = no } +# } +# } +# +# on_invalidated_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:attacker = { japan_imperial_expansion_cb_allowed_for_character_trigger = no } +# } +# desc = japan_imperial_expansion_cb_ended_invalid.desc.attacker +# } +# desc = japan_imperial_expansion_cb_ended_invalid.desc +# } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:attacker = { +# is_local_player = yes +# is_independent_ruler = yes +# } +# } +# desc = japan_imperial_expansion_cb_victory_desc_attacker +# } +# desc = japan_imperial_expansion_cb_victory_desc +# } +# triggered_desc = { +# trigger = { +# scope:attacker = { is_independent_ruler = no } +# } +# desc = japan_demand_administrative_cb_victory_vassal_desc +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# #As this is just a county conquest, simply grab the designated county. +# every_in_list = { +# list = target_titles +# change_title_holder = { +# holder = scope:attacker.top_liege # For the top liege +# change = scope:change +# } +# } +# +# resolve_title_and_vassal_change = scope:change +# +# # Appreciation for the Attacker, if relevant +# scope:attacker = { +# if = { +# limit = { is_independent_ruler = no } +# reverse_add_opinion = { +# target = scope:attacker.top_liege +# modifier = enforced_pacification_opinion +# } +# } +# } +# +# # Influence/Prestige Progress for the Attacker +# scope:attacker = { +# if = { +# limit = { is_independent_ruler = no } +# if = { +# limit = { government_allows = administrative } +# change_influence = japan_imperial_expansion_war_influence_value +# } +# else = { add_prestige_experience = japan_imperial_expansion_war_prestige_value } +# } +# else = { +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = medium_prestige_value } +# } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = medium_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # FP1: note the victory for future memorialisation via stele (if applicable). +# scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } +# +# if = { # Warning that only counties are changing hands +# limit = { +# any_in_list = { +# list = target_titles +# tier = tier_duchy +# } +# } +# random_in_list = { +# list = target_titles +# limit = { tier = tier_duchy } +# save_scope_as = de_jure_target +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = county_conquest_cb_white_peace_desc_defender +# } +# desc = county_conquest_cb_white_peace_desc +# } +# } +# } +# +# on_white_peace = { +# scope:attacker = { show_pow_release_message_effect = yes } +# # Prestige loss for the attacker +# +# #EP2 accolade glory gain for doing pretty good against higher ranked enemy +# scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# add_prestige = { +# value = minor_prestige_value +# multiply = -1.0 +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not impactful as the scale are identical +# FAME_BASE = medium_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# add_truce_white_peace_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_defeat_desc_attacker +# } +# desc = county_conquest_cb_defeat_desc +# } +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# # Prestige for Defender +# add_prestige_war_defender_effect = { +# PRESTIGE_VALUE = medium_prestige_value +# } +# } +# +# # Prestige loss for the attacker +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 3 +# } +# add_prestige = { +# value = major_prestige_value +# multiply = -1.0 +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_IMPERIAL_EXPANSION_WAR_NAME" +# war_name_base = "JAPAN_IMPERIAL_EXPANSION_WAR_NAME_BASE" +# cb_name = "JAPAN_IMPERIAL_EXPANSION_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 50 +# defender_score_from_occupation_scale = 50 +# attacker_score_from_battles_scale = 250 +# defender_score_from_battles_scale = 250 +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 50 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score = { +# value = japan_imperial_expansion_ai_score_value +# } +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War to reconquer Japan +#japan_imperial_reconquest_cb = { +# icon = ritsuryo_government +# group = de_jure +# +# war_name = "JAPAN_IMPERIAL_RECONQUEST_WAR_NAME" +# war_name_base = "JAPAN_IMPERIAL_RECONQUEST_WAR_NAME_BASE" +# cb_name = "JAPAN_IMPERIAL_RECONQUEST_CB_NAME" +# interface_priority = 80 +# +# combine_into_one = yes +# should_show_war_goal_subview = yes +# mutually_exclusive_titles = { always = yes } +# +# cost = { +# prestige = { +# scope:defender = { +# every_sub_realm_county = { +# limit = { empire = title:e_japan } +# add = { +# value = 50 +# desc = japan_imperial_reconquest_cb_cost_tt +# } +# } +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# allow_hostages = no +# +# target_titles = all +# target_title_tier = all +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# ai_only_against_neighbors = yes +# +# # root = scope:attacker +# allowed_for_character = { +# japan_imperial_reconquest_cb_allowed_for_character_trigger = yes +# } +# +# # root = scope:attacker +# allowed_for_character_display_regardless = { +# top_liege = { has_realm_law = defense_mobilization_law } +# } +# +# # root = scope:defender, scope:attacker +# allowed_against_character = { +# japan_imperial_reconquest_cb_allowed_against_character_trigger = yes +# } +# +# valid_to_start = { +# scope:target = { +# tier = tier_duchy +# empire = title:e_japan +# } +# } +# +# # root = scope:attacker, scope:defender, scope:target +# valid_to_start_display_regardless = { +# custom_tooltip = { +# text = tgp_japan_reconquest_war_valid_de_jure_tt +# scope:target.empire ?= title:e_japan +# } +# } +# +# should_invalidate = { +# OR = { +# scope:attacker = { japan_imperial_reconquest_cb_allowed_for_character_trigger = no } +# scope:defender = { japan_imperial_reconquest_cb_allowed_against_character_trigger = no } +# } +# } +# +# on_invalidated_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:attacker = { japan_imperial_reconquest_cb_allowed_for_character_trigger = no } +# } +# desc = japan_imperial_reconquest_cb_ended_invalid.desc.attacker +# } +# desc = japan_imperial_reconquest_cb_ended_invalid.desc +# } +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = de_jure_cb_victory_desc_attacker +# } +# desc = japan_imperial_reconquest_cb_victory_desc +# } +# triggered_desc = { +# trigger = { +# scope:attacker = { is_independent_ruler = no } +# } +# desc = japan_demand_administrative_cb_victory_vassal_desc +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# # Influence/Prestige Progress reward for Attacker +# scope:attacker = { +# if = { +# limit = { is_independent_ruler = no } +# if = { +# limit = { government_allows = administrative } +# change_influence = japan_imperial_reconquest_war_influence_value +# } +# else = { add_prestige_experience = japan_imperial_reconquest_war_prestige_value } +# } +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# every_in_list = { +# list = target_titles +# save_temporary_scope_as = target +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# change = scope:change +# title = scope:target +# } +# resolve_title_and_vassal_change = scope:change +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = county_conquest_cb_white_peace_desc_defender +# } +# desc = county_conquest_cb_white_peace_desc +# } +# } +# } +# +# on_white_peace = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# #EP2 accolade glory gain for doing ok against higher ranked enemy +# scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# victory = no +# title = scope:target +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = county_conquest_cb_defeat_desc_attacker +# } +# desc = county_conquest_cb_defeat_desc +# } +# } +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 10 +# } +# } +# +# setup_de_jure_cb = { +# attacker = scope:attacker +# defender = scope:defender +# victory = no +# title = scope:target +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score = { +# value = japan_imperial_reconquest_ai_score_value +# } +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War to reimpose Ritsuryo +#japan_refused_ritsuryo_cb = { +# icon = dissolution_war +# group = civil_war +# ai_only_against_liege = yes +# allow_hostages = no +# allowed_for_character = { +# scope:attacker = { +# liege = scope:defender +# NOT = { government_has_flag = government_is_japan_administrative } +# } +# } +# +# allowed_against_character = { +# scope:attacker = { +# liege = scope:defender +# } +# } +# +# target_de_jure_regions_above = yes +# +# valid_to_start = { +# } +# +# should_invalidate = { +# OR = { +# scope:attacker = { +# NOT = { +# any_liege_or_above = { this = scope:defender } +# } +# } +# scope:defender = { is_landed = no } +# } +# } +# +# on_declaration = { +# # save the initial target and their tier for conditioning the depose effect +# if = { +# limit = { NOT = { exists = scope:attacker.var:initial_target } } +# scope:attacker = { +# set_variable = { +# name = initial_target +# value = scope:defender +# } +# set_variable = { +# name = target_tier +# value = scope:defender.primary_title.tier +# } +# } +# } +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:defender = { is_local_player = yes } +# OR = { +# NOT = { exists = scope:attacker.var:initial_target } +# scope:defender = scope:attacker.var:initial_target +# scope:defender.primary_title.tier <= scope:attacker.var:target_tier +# } +# } +# desc = japan_refused_ritsuryo_cb_victory_desc_defender +# } +# triggered_desc = { +# trigger = { +# OR = { +# NOT = { exists = scope:attacker.var:initial_target } +# scope:defender = scope:attacker.var:initial_target +# scope:defender.primary_title.tier <= scope:attacker.var:target_tier +# } +# } +# desc = japan_refused_ritsuryo_cb_victory_desc +# } +# } +# } +# +# on_victory = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } +# +# scope:defender = { +# +# # If we win the rebellion, our liege loses any legal right to imprison us/banish us/revoke our titles. +# consume_all_criminal_reasons_effect = { +# LIEGE = scope:defender +# CRIMINAL = scope:attacker +# } +# +# add_prestige = -500 +# +# # JAPAN - liege is replaced by the attacker +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = title_change +# } +# title:c_yamashiro ?= { +# if = { +# limit = { holder = scope:defender } +# change_title_holder_include_vassals = { +# holder = scope:attacker +# change = scope:title_change +# } +# } +# } +# scope:defender = { +# every_held_title = { +# limit = { tier >= tier_empire } +# change_title_holder_include_vassals = { +# holder = scope:attacker +# change = scope:title_change +# } +# } +# } +# resolve_title_and_vassal_change = scope:title_change +# } +# +# # LEGITIMACY FROM LOSING FACTION WAR +# faction_war_end_defeat_legitimacy_effect = yes +# +# hidden_effect = { +# scope:attacker = { +# add_truce_both_ways = { +# character = scope:defender +# days = 1825 +# war = root.war +# result = victory +# } +# } +# } +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_victory_effects = yes +# } +# +# on_white_peace_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = japan_refused_ritsuryo_cb_white_peace_desc_defender +# } +# desc = japan_refused_ritsuryo_cb_white_peace_desc +# } +# +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# hidden_effect = { +# scope:attacker = { +# add_truce_both_ways = { +# character = scope:defender +# days = 1825 +# war = root.war +# result = white_peace +# } +# } +# } +# on_white_peace_request_revolt_war = yes +# } +# +# on_defeat_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = japan_refused_ritsuryo_cb_defeat_desc_defender +# } +# desc = japan_refused_ritsuryo_cb_defeat_desc +# } +# +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# scope:defender = { +# add_character_flag = { +# flag = recent_liberty_faction_war +# years = 10 +# } +# add_dread = medium_dread_gain +# +# # LEGITIMACY FROM WINNING FACTION WAR +# faction_war_end_victory_legitimacy_effect = yes +# } +# +# # For revoking titles of character's imprisoned abroad who have lost a revocation war +# hidden_effect = { +# if = { +# limit = { +# scope:attacker = { +# is_imprisoned = yes +# NOT = { is_imprisoned_by = scope:defender } +# } +# } +# scope:defender = { +# add_opinion = { +# target = scope:attacker +# modifier = foreign_prison_revocation_opinion +# } +# } +# } +# } +# +# on_lost_request_revolt_war = yes +# +# #Mandalas gain or lose piety/devotion depending on Decree +# mandala_war_defeat_effects = yes +# } +# +# on_invalidated_desc = msg_invalidate_war_title +# +# check_attacker_inheritance_validity = no +# +# on_primary_attacker_death = invalidate +# on_primary_defender_death = inherit +# +# transfer_behavior = transfer +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_REFUSED_RITSURYO_WAR_NAME" +# +# interface_priority = 80 +# +# use_de_jure_wargoal_only = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_attacker_score_from_battles = 100 +# max_defender_score_from_battles = 50 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 500 +#} +# +## Eradicate Rival House +#eradicate_house_cb = { +# icon = execute +# group = subjugation +# combine_into_one = yes +# ai_only_against_neighbors = yes +# allow_hostages = no +# should_show_war_goal_subview = no +# +# # scope:attacker +# allowed_for_character = { +# #Display so once a player has bad house relations they can be tempted to make them worse to validate cb +# trigger_if = { +# limit = { +# is_ai = yes +# } +# house ?= { +# any_house_relation = { +# has_house_relation_level = feud +# } +# } +# } +# trigger_else = { +# house ?= { +# any_house_relation = { +# OR = { +# has_house_relation_level = quarrel +# has_house_relation_level = rivalry +# has_house_relation_level = feud +# } +# } +# } +# } +# } +# +# # scope:defender +# allowed_against_character = { +# is_landed = yes +# #Can't be the attacker's top liege +# NOR = { +# is_vassal_or_below_of = scope:attacker +# is_liege_or_above_of = scope:attacker +# } +# } +# +# valid_to_start = { +# #We need the worst house relations +# tgp_has_house_relation_level_trigger = { +# HOUSE_1_MEMBER = scope:attacker +# HOUSE_2_MEMBER = scope:defender +# LEVEL = feud +# } +# } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# should_invalidate = { +# #cancel if they become friendly +# OR = { +# NOT = { +# tgp_has_house_relation_level_trigger = { +# HOUSE_1_MEMBER = scope:attacker +# HOUSE_2_MEMBER = scope:defender +# LEVEL = feud +# } +# } +# scope:defender = { is_landed = no } +# } +# } +# +# on_invalidated_desc = { +# desc = eradicate_house_cb_ended_invalid.desc +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# desc = eradicate_house_cb_victory_desc +# } +# +# on_victory = { +# scope:attacker = { +# if = { +# limit = { +# is_ai = no +# } +# add_achievement_global_variable_effect = { +# VARIABLE = finished_ep4_07_cut_off_the_head_and_the_body_will_follow_achievement +# VALUE = yes +# } +# } +# } +# +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# #Show land transfer +# show_as_tooltip = { +# #loser/winner scopes are only being set here to correctly display the effects of tgp_japan_soryo_eradicate_cb_transfer_effect in the tooltip! +# scope:defender = { +# save_scope_as = loser +# } +# scope:attacker = { +# save_scope_as = winner +# } +# tgp_japan_soryo_eradicate_cb_transfer_effect = yes +# } +# #show death +# show_as_tooltip = { +# scope:defender = { +# death = { +# death_reason = death_eradicated +# killer = scope:attacker +# } +# } +# scope:defender = { +# every_courtier = { +# custom = every_close_family_house_member_in_court_cb_win_desc +# limit = { +# house = scope:defender.house +# NOT = { +# scope:defender.primary_heir ?= this +# } +# } +# death = { +# death_reason = death_eradicated +# killer = scope:attacker +# } +# } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# +# #Eradicate House follow up event +# scope:defender = { +# trigger_event = tgp_japan_general.9550 +# } +# } +# +# on_white_peace_desc = { +# desc = eradicate_house_cb_white_peace_desc +# } +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = eradicate_house_cb_defeat_desc +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# #Show land transfer +# show_as_tooltip = { +# #loser/winner scopes are only being set here to correctly display the effects of tgp_japan_soryo_eradicate_cb_transfer_effect in the tooltip! +# scope:defender = { +# save_scope_as = winner +# } +# scope:attacker = { +# save_scope_as = loser +# } +# tgp_japan_soryo_eradicate_cb_transfer_effect = yes +# } +# #Show killing +# show_as_tooltip = { +# +# scope:attacker = { +# death = { +# death_reason = death_eradicated +# killer = scope:defender +# } +# } +# scope:attacker = { +# every_courtier = { +# custom = every_close_family_house_member_in_court_cb_lose_desc +# limit = { +# house = scope:attacker.house +# NOT = { +# this = scope:attacker.primary_heir +# } +# } +# death = { +# death_reason = death_eradicated +# killer = scope:defender +# } +# } +# } +# } +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# #Eradicate House follow up event +# scope:attacker = { +# trigger_event = tgp_japan_general.9550 +# } +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "ERADICATE_HOUSE_WAR_NAME" +# war_name_base = "ERADICATE_HOUSE_WAR_NAME_BASE" +# cb_name = "ERADICATE_HOUSE_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 100 +# defender_score_from_occupation_scale = 100 +# attacker_score_from_battles_scale = 150 +# defender_score_from_battles_scale = 150 +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 50 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# +## War to become Soryo as Kampaku +#japan_establish_soryo_administration_cb = { +# icon = soryo +# group = subjugation +# combine_into_one = yes +# allow_hostages = no +# should_show_war_goal_subview = no +# +# # scope:attacker +# allowed_for_character = { +# has_tgp_dlc_trigger = yes +# always = no # Started by script +# } +# +# should_invalidate = { +# scope:defender = { government_has_flag = government_is_japan_feudal } +# } +# +# on_invalidated_desc = { +# desc = japan_establish_soryo_administration_cb_ended_invalid.desc +# } +# +# on_victory_desc = { +# desc = japan_establish_soryo_administration_cb_victory_desc +# } +# +# on_victory = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# save_scope_as = leader +# } +# scope:defender = { +# save_scope_as = daijo_daijin +# } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# faction_demand_regent_transfer_effect = { +# NEW_REGENT = scope:attacker +# REASON = conquest +# } +# } +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# scope:defender = { +# every_character_war = { +# limit = { is_attacker = scope:attacker } +# every_war_defender = { +# limit = { is_imprisoned = no } +# hidden_effect = { +# hard_imprison_character_effect = { +# TARGET = this +# IMPRISONER = scope:attacker +# } +# reverse_add_opinion = { +# target = scope:attacker +# modifier = vassal_lost_faction_revolt_war +# } +# } +# } +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = japan_establish_soryo_administration_cb_white_peace_desc +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = japan_establish_soryo_administration_cb_defeat_desc +# } +# +# on_defeat = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# save_scope_as = leader +# } +# scope:defender = { +# save_scope_as = daijo_daijin +# show_as_tooltip = { japanese_establish_soryo_administration_reward_effect = yes } +# trigger_event = tgp_japan_decision.9606 +# } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# every_character_war = { +# limit = { is_defender = scope:defender } +# every_war_attacker = { +# limit = { is_imprisoned = no } +# hidden_effect = { +# hard_imprison_character_effect = { +# TARGET = this +# IMPRISONER = scope:defender +# } +# reverse_add_opinion = { +# target = scope:defender +# modifier = vassal_lost_faction_revolt_war +# } +# } +# } +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_ESTABLISH_SORYO_ADMINISTRATION_WAR_NAME" +# war_name_base = "JAPAN_ESTABLISH_SORYO_ADMINISTRATION_WAR_NAME_BASE" +# cb_name = "JAPAN_ESTABLISH_SORYO_ADMINISTRATION_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 50 +# defender_score_from_occupation_scale = 50 +# attacker_score_from_battles_scale = 250 +# defender_score_from_battles_scale = 250 +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 50 +#} +# +## War to disrupt Bloc +#japan_bloc_war_cb = { +# icon = bloc +# group = subjugation +# combine_into_one = yes +# ai_only_against_neighbors = yes +# allow_hostages = yes +# should_show_war_goal_subview = no +# +# # scope:attacker +# allowed_for_character = { +# has_tgp_dlc_trigger = yes +# # Soryo Bloc leader checks +# tgp_soryo_or_bushido_trigger = yes +# is_house_head = yes +# house.house_confederation.leading_house ?= house +# any_held_title = { is_noble_family_title = yes } +# } +# +# allowed_for_character_display_regardless = { +# custom_tooltip = { +# text = japan_bloc_war_cb_cohesion_requirement_tt +# house.house_confederation.cohesion >= 25 +# } +# } +# +# # scope:defender +# allowed_against_character = { +# tgp_soryo_or_bushido_trigger = yes +# is_house_head = yes +# house.house_confederation.leading_house ?= house +# NOR = { +# # Must be different Bloc +# AND = { +# exists = scope:attacker.house.house_confederation +# house.house_confederation ?= scope:attacker.house.house_confederation +# } +# # Not any ongoing bloc war +# any_character_war = { +# using_cb = japan_bloc_war_cb +# save_temporary_scope_as = war_temp +# scope:attacker = { is_participant_in_war = scope:war_temp } +# } +# } +# # Must be house head +# any_held_title = { is_noble_family_title = yes } +# } +# +# should_invalidate = { +# OR = { +# scope:attacker = { tgp_soryo_or_bushido_trigger = no } +# scope:defender = { +# OR = { +# tgp_soryo_or_bushido_trigger = no +# NOT = { exists = house.house_confederation } # Left bloc +# house.house_confederation ?= scope:attacker.house.house_confederation # Same bloc +# is_landed = no +# } +# } +# } +# } +# +# cost = { +# prestige = { +# add = { +# value = 100 +# desc = CB_BASE_COST +# } +# multiply = common_cb_prestige_cost_multiplier +# } +# } +# +# on_invalidated_desc = { +# desc = japan_bloc_war_cb_ended_invalid.desc +# } +# +# on_declaration = { +# on_declared_war = yes +# add_attacker_bloc_members_on_declared_effect = yes +# } +# +# on_victory_desc = { +# desc = japan_bloc_war_cb_victory_desc +# } +# +# on_victory = { +# scope:attacker = { +# save_scope_as = winner +# house.house_confederation = { +# tgp_bloc_change_cohesion_effect = { +# VALUE = tgp_bloc_war_defeat_cohesion_victory_value +# ICON = scope:defender +# REASON = bloc_war_victory +# } +# } +# } +# +# scope:defender = { +# save_scope_as = loser +# house.house_confederation = { +# tgp_bloc_change_cohesion_effect = { +# VALUE = tgp_bloc_war_defeat_cohesion_defeat_value +# ICON = scope:defender +# REASON = bloc_war_defeat +# } +# } +# } +# +# tgp_bloc_war_defeat_member_effect = { +# WINNER = scope:winner +# LOSER = scope:loser +# } +# +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_victory_effect = yes +# +# #EP2 Accolade glory gain from winning against higher ranked enemy +# scope:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# +# scope:attacker = { +# switch = { +# trigger = scope:defender.primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# # Prestige Progress for the Attacker +# every_in_list = { +# list = target_titles +# scope:attacker = { add_prestige_experience = minor_prestige_value } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_white_peace_desc = { +# desc = japan_bloc_war_cb_white_peace_desc +# } +# +# on_white_peace = { +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# add_prestige = medium_prestige_loss +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:attacker # not important as the scales are identical +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_attacker_victory_effect = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_defeat_desc = { +# desc = japan_bloc_war_cb_defeat_desc +# } +# +# on_defeat = { +# scope:defender = { +# save_scope_as = winner +# house.house_confederation = { +# tgp_bloc_change_cohesion_effect = { +# VALUE = tgp_bloc_war_defeat_cohesion_victory_value +# ICON = scope:attacker +# REASON = bloc_war_victory +# } +# } +# } +# +# scope:attacker = { +# save_scope_as = loser +# house.house_confederation = { +# tgp_bloc_change_cohesion_effect = { +# VALUE = tgp_bloc_war_defeat_cohesion_defeat_value +# ICON = scope:defender +# REASON = bloc_war_defeat +# } +# } +# } +# +# tgp_bloc_war_defeat_member_effect = { +# WINNER = scope:winner +# LOSER = scope:loser +# } +# +# scope:attacker = { show_pow_release_message_effect = yes } +# +# # Legitimacy +# add_legitimacy_attacker_defeat_effect = yes +# +# scope:defender = { +# mandala_peacemaker_perk_serenity_effect = yes +# #EP2 accolade glory gain for winning against higher ranked enemy +# accolade_defender_war_end_glory_gain_high_effect = yes +# } +# +# scope:attacker = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_loss } +# tier_duchy = { add_prestige = medium_prestige_loss } +# tier_kingdom = { add_prestige = major_prestige_loss } +# tier_empire = { add_prestige = massive_prestige_loss } +# tier_hegemony = { add_prestige = monumental_prestige_loss } +# } +# } +# +# scope:defender = { +# switch = { +# trigger = primary_title.tier +# tier_county = { add_prestige = minor_prestige_gain } +# tier_duchy = { add_prestige = medium_prestige_gain } +# tier_kingdom = { add_prestige = major_prestige_gain } +# tier_empire = { add_prestige = massive_prestige_gain } +# tier_hegemony = { add_prestige = monumental_prestige_gain } +# } +# } +# +# # Allies on both sides get full prestige value for helping in the war, based on their war participation. +# modify_allies_of_participants_fame_values = { +# WINNER = scope:defender +# FAME_BASE = major_prestige_value +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 1 +# LOSER_ALLY_FAME_SCALE = 1 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { save_temporary_scope_as = loser } +# on_lost_aggression_war_discontent_loss = yes +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "JAPAN_BLOC_WAR_NAME" +# war_name_base = "JAPAN_BLOC_WAR_NAME_BASE" +# cb_name = "JAPAN_BLOC_WAR_CB_NAME" +# interface_priority = 80 +# +# ticking_war_score_targets_entire_realm = yes +# attacker_ticking_warscore = 0.01 +# attacker_wargoal_percentage = 0.01 +# attacker_score_from_occupation_scale = 100 +# defender_score_from_occupation_scale = 100 +# attacker_score_from_battles_scale = 150 +# defender_score_from_battles_scale = 150 +# +# max_attacker_score_from_battles = 100 +# max_defender_score_from_battles = 100 +# +# max_defender_score_from_occupation = 100 +# max_attacker_score_from_occupation = 100 +# +# max_ai_diplo_distance_to_title = 500 +# +# ai_score = { +# value = japan_bloc_war_ai_score_value +# } +# +# ai_score_mult = { +# value = 1 +# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing +# } +#} +# \ No newline at end of file diff --git a/common/script_values/99_casus_belli_values.txt b/common/script_values/99_casus_belli_values.txt new file mode 100644 index 000000000..e6f3991de --- /dev/null +++ b/common/script_values/99_casus_belli_values.txt @@ -0,0 +1,1349 @@ + +# We separate out most of the guts of this cost multiplier to stop struggle CBs from double-dipping on costs and discounts. +common_cb_cost_multiplier_core = { + value = 1 + + # Bellum Justum Perk + if = { + limit = { + scope:attacker = { + has_perk = bellum_justum_perk + } + } + multiply = { + add = bellum_justum_discount_percentage + divide = 100 + desc = CB_ATTACKER_BELLUM_JUSTUM + } + } + # Dynasty Warfare Perk + if = { + limit = { + scope:attacker = { + has_dynasty = yes + dynasty = { + has_dynasty_perk = warfare_legacy_2 + } + } + } + multiply = { + value = warfare_legacy_2_discount + desc = CB_ATTACKER_DYNASTY_WARFARE + } + } + #Confederation vassals against fellow vassals + if = { + limit = { + scope:attacker = { + OR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + government_has_flag = government_is_herder + } + } + scope:attacker.top_liege = { + is_confederation_member = yes + } + scope:defender.top_liege = { + this = scope:attacker.top_liege + } + } + multiply = { + add = confederation_cb_cost_value + desc = CB_CONFEDERATION_VASSALS + } + } + # Culture + if = { + limit = { + scope:attacker = { + culture = { + has_cultural_parameter = cheaper_cbs + } + } + } + multiply = { + value = 0.8 + desc = "CB_ATTACKER_CULTURE" + } + } + + if = { + limit = { + scope:attacker = { government_has_flag = government_is_tribal } + } + multiply = { + value = 0.5 + desc = CB_TRIBAL_COST + } + } + + # Clan Unity modifiers + if = { + limit = { + scope:attacker = { + government_has_flag = government_is_clan + exists = scope:attacker.house + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_antagonistic_cb_cost + } + } + multiply = { + value = unity_antagonistic_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_competitive_cb_cost + } + } + multiply = { + value = unity_competitive_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_friendly_cb_cost + } + } + multiply = { + value = unity_friendly_cb_cost_value + desc = CB_UNITY_COST + } + } + if = { + limit = { + scope:attacker.house = { + has_house_unity_parameter = unity_harmonious_cb_cost + } + } + multiply = { + value = unity_harmonious_cb_cost_value + desc = CB_UNITY_COST + } + } + } + + # Special increase for Persia if Concession is reached + if = { + limit = { + exists = global_var:fp3_struggle_ending + global_var:fp3_struggle_ending = flag:fp3_struggle_concession_ending + OR = { + scope:attacker = { + capital_province ?= { + geographical_region = world_persian_empire + } + } + scope:defender = { + capital_province ?= { + geographical_region = world_persian_empire + } + } + } + } + multiply = { + value = 1 + add = { + if = { + limit = { + scope:attacker = { + house ?= { + OR = { + has_house_modifier = fp3_house_modifier_frontier_ambitions + has_house_modifier = fp3_house_modifier_rebuilding_efforts + } + } + } + } + add = 0.5 + } + if = { + limit = { + scope:defender = { + house ?= { + OR = { + has_house_modifier = fp3_house_modifier_frontier_ambitions + has_house_modifier = fp3_house_modifier_rebuilding_efforts + } + } + } + } + add = 0.5 + } + } + desc = CB_STRUGGLE_CONCESSION_ENDING + } + } + + if = { + limit = { + scope:attacker = { + house ?= { has_house_modifier = fp3_house_modifier_frontier_ambitions } + } + NOT = { + scope:defender = { + capital_province ?= { + geographical_region = world_persian_empire + } + } + } + } + multiply = 0.5 + } + + if = { + limit = { + OR = { + has_game_rule = hard_difficulty + has_game_rule = very_hard_difficulty + } + scope:attacker = { + is_ai = yes + prestige > 0 + prestige_level > 0 + } + scope:defender = { + is_ai = no + } + } + multiply = { + value = 0 + desc = hard_difficulty + } + } + else_if = { + limit = { + OR = { + has_game_rule = hard_difficulty + has_game_rule = very_hard_difficulty + } + scope:attacker = { + is_ai = yes + prestige > 0 + prestige_level > 0 + } + } + multiply = { + value = 0.5 + desc = hard_difficulty + } + } + + if = { + limit = { + has_game_rule = no_cost_casus_belli_costs + } + multiply = { + value = 0 + desc = CB_GAME_RULE_NO_COST + } + } + + if = { + limit = { + scope:attacker = { + ai_should_get_conqueror_bonuses = yes + } + } + multiply = { + value = 0 + desc = ai_conqueror_modifier + } + } + #Pissed off by a severed head + if = { + limit = { + scope:defender = { + save_temporary_scope_as = head_giver + } + scope:attacker = { + has_variable = severed_head_cb_revenge + var:severed_head_cb_revenge = { + this = scope:head_giver + } + } + } + multiply = { + value = 0.25 + desc = severed_head_revenge_modifier + } + } + # Imperial Policy Japan + if = { + limit = { + scope:attacker.top_liege = { + has_realm_law_flag = vassal_internal_wars_cost_doubled + this = scope:defender.top_liege + } + } + multiply = { + value = 1 + add = tgp_disarmament_law_increased_cb_cost_value + desc = disarmament_law_increased_cb_cost_desc + } + } +} + +common_cb_cost_multiplier = { + value = common_cb_cost_multiplier_core + # Struggle Multipliers + if = { + limit = { + scope:attacker = { + OR = { + any_character_struggle = { + involvement = involved + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_costs } + } + any_character_struggle = { + involvement = interloper + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_costs } + } + } + } + } + multiply = { + value = 0.5 + desc = CB_STRUGGLE_PHASE_DISCOUNT + } + } + if = { + limit = { + scope:attacker.confederation ?= { has_cohesion_level_parameter = any_member_casus_belli_cost_reduction } + } + multiply = { + value = 0.85 + desc = CB_COHESION_PARAMETER_DISCOUNT + } + } +} + + +##### Piety Costs + +# Multipliers + +# We separate out most of the guts of this cost multiplier to stop struggle CBs from double-dipping on costs and discounts. +common_cb_piety_cost_multiplier_core = { + value = 1 + # Faith Doctrine Piety Discounts + if = { + limit = { + scope:attacker.faith = { + has_doctrine_parameter = divine_destiny_holy_war_cost_reduction + } + } + multiply = { + value = 0.5 + desc = CB_DIVINE_DESTINY_COST + } + } + # Innovation Piety Discounts + if = { + limit = { + scope:attacker = { + culture = { + has_innovation = innovation_reconquista + } + } + } + multiply = { + value = 0.9 + desc = CB_RECONQUISTA_COST + } + } + # Vassal contract in-realm cost reduction + if = { + limit = { + scope:attacker = { + top_liege != this + vassal_contract_has_flag = vassal_contract_war_override + liege = scope:defender.liege + } + } + multiply = { + value = war_declaration_rights_allowed_cost_reduction + desc = "CB_ATTACKER_VASSAL_CONTRACT" + } + } + # Someone in the target region sacrificed your HoF. + if = { + limit = { + scope:defender = { + has_variable_list = humsacd_hofs + is_target_in_variable_list = { + name = humsacd_hofs + target = scope:attacker.faith + } + } + } + multiply = { + value = religious_cb_piety_discount_against_hof_humsac + desc = "CB_ATTACKER_HOF_HUMSACD" + } + } + #You and your blood brother swore to destroy your target + if = { + limit = { + scope:attacker = { + has_variable = blood_brother_foe + var:blood_brother_foe = { + this = scope:defender + } + } + } + multiply = { + value = 0.25 + desc = "CB_BLOOD_BROTHER_FOE" + } + } +} + +common_cb_piety_cost_multiplier_sans_struggles = { + value = common_cb_piety_cost_multiplier_core + # Common multiplier + multiply = common_cb_cost_multiplier_core +} + +common_cb_piety_cost_multiplier = { + value = common_cb_piety_cost_multiplier_core + # Struggle Multipliers + ## Generic modifiers. + if = { + limit = { + scope:attacker = { + OR = { + any_character_struggle = { + involvement = involved + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs } + } + any_character_struggle = { + involvement = interloper + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_piety_costs } + } + } + } + } + multiply = { + value = 0.5 + desc = CB_STRUGGLE_PHASE_DISCOUNT + } + } + + # Common multiplier + multiply = common_cb_cost_multiplier_core +} + +holy_war_cb_piety_cost_multiplier = { + value = 1 + + if = { + limit = { + scope:attacker = { + faith = { has_doctrine_parameter = cheaper_holy_wars_active } + } + } + multiply = { + value = 0.8 + desc = CB_REDUCED_HOLY_WAR_COST + } + } + + # Ghazi reduction + if = { + limit = { + scope:attacker = { + top_liege != this + vassal_contract_has_flag = vassal_contract_cheaper_religious_war + } + } + multiply = { + value = ghazi_religious_war_cost_reduction + desc = "CB_ATTACKER_VASSAL_CONTRACT" + } + } +} + +# Base Costs +common_cb_impious_piety_cost = { + if = { # Attacking your HoF is impious + limit = { + exists = scope:attacker.faith.religious_head + scope:attacker.faith.religious_head = scope:defender + } + if = { + limit = { + scope:attacker.faith = { + has_doctrine = doctrine_spiritual_head + } + } + add = { + value = massive_piety_value + desc = CB_ATTACKER_HOF + } + } + else = { + add = { + value = medium_piety_value + desc = CB_ATTACKER_HOF + } + } + } + if = { + limit = { + scope:attacker.faith = scope:defender.faith + scope:defender = { + government_has_flag = government_is_theocracy + } + } + add = { + value = medium_piety_value + desc = CB_ATTACKER_THEOCRACY + } + } +} + +fp1_varangian_adventure_base_piety_cost = { + add = common_cb_impious_piety_cost + if = { + limit = { + scope:defender.faith = scope:attacker.faith + } + add = { + value = massive_piety_value + desc = CB_SAME_FAITH_COST + } + } +} + +##### Prestige Costs + +# Multipliers +# We separate out most of the guts of this cost multiplier to stop struggle CBs from double-dipping on costs and discounts. +common_cb_prestige_cost_multiplier_core = { + value = 1 + # Innovation Prestige Discounts + multiply = { + value = { + value = 1 + if = { + limit = { + scope:attacker = { + culture = { + has_innovation = innovation_chronicle_writing + } + } + } + add = -0.1 + } + if = { + limit = { + scope:attacker = { + culture = { + has_innovation = innovation_land_grants + } + } + } + add = -0.1 + } + if = { + limit = { + scope:attacker = { + culture = { + has_innovation = innovation_rightful_ownership + } + } + } + add = -0.1 + } + } + desc = CB_ATTACKER_INNOVATIONS + } + + # Vassal contract in-realm cost reduction + if = { + limit = { + scope:attacker = { + top_liege != this + vassal_contract_has_flag = vassal_contract_war_override + liege = scope:defender.liege + } + } + multiply = { + value = war_declaration_rights_allowed_cost_reduction + desc = "CB_ATTACKER_VASSAL_CONTRACT" + } + } + + # Ghazi extra cost + if = { + limit = { + scope:attacker = { + top_liege != this + vassal_contract_has_flag = vassal_contract_increase_prestige_cb_cost + } + } + multiply = { + value = 1 + add = ghazi_prestige_cost_increments + desc = "CB_ATTACKER_VASSAL_CONTRACT" + } + } + #You and your blood brother swore to destroy your target + if = { + limit = { + scope:attacker = { + has_variable = blood_brother_foe + var:blood_brother_foe = { + this = scope:defender + } + } + } + multiply = { + value = 0.25 + desc = "CB_BLOOD_BROTHER_FOE" + } + } + + # Japan is more expensive to fight in + if = { + limit = { + scope:attacker = { government_is_japanese_trigger = yes } + } + multiply = { + value = 2 + desc = "CB_JAPANESE_GOVERNMENT" + } + } +} + +common_cb_prestige_cost_multiplier_sans_struggles = { + value = common_cb_prestige_cost_multiplier_core + # Common modifier + multiply = common_cb_cost_multiplier_core +} + +common_cb_prestige_cost_multiplier = { + value = common_cb_prestige_cost_multiplier_core + # Struggle Multipliers + ## Discounts + if = { + limit = { + # Pre-filter struggle CB types, as we don't want to double-modify their costs. Makes for weird balancing. + # And then the main event. + scope:attacker = { + OR = { + any_character_struggle = { + involvement = involved + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_prestige_costs } + } + any_character_struggle = { + involvement = interloper + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_wars_in_struggle_region_cheaper_prestige_costs } + } + } + } + } + multiply = { + value = 0.5 + desc = CB_STRUGGLE_PHASE_DISCOUNT + } + } + if = { + limit = { + scope:attacker.house ?= { + NOT = { scope:defender.house ?= this } + any_house_relation = { + has_house_relation_parameter = reduced_casus_belli_prestige_cost + any_relation_house = { scope:defender.house ?= this } + } + } + } + multiply = { + value = house_relation_casus_belli_discount_value + desc = CB_HOUSE_RELATION_DISCOUNT + } + } + ## Surcharges + if = { + limit = { + # Pre-filter struggle CB types, as we don't want to double-modify their costs. Makes for weird balancing. + # And then the main event. + scope:attacker = { + OR = { + any_character_struggle = { + involvement = involved + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_diff_faith_wars_in_struggle_region_more_expensive_prestige_costs } + } + any_character_struggle = { + involvement = interloper + is_struggle_parameter_active_variable_cb_target_secondary_county_trigger = { PARAMETER = involved_or_interloper_diff_faith_wars_in_struggle_region_more_expensive_prestige_costs } + } + } + } + } + multiply = { + value = 1.5 + desc = CB_STRUGGLE_PHASE_SURCHARGE + } + } + + # Common modifier + multiply = common_cb_cost_multiplier +} + +# Base Costs +claim_cb_prestige_cost = { + if = { + # Prestige cost can vary significantly for personal claims, based on the situation(s) the claimant/defender are in. + limit = { scope:claimant = scope:attacker } + + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 100 + if = { + # 25% cheaper to take Pressed claims. + limit = { scope:attacker = { has_strong_claim_on = prev } } + add = -25 + } + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_duchy } + add = { + value = 200 + if = { + # 25% cheaper to take Pressed claims. + limit = { scope:attacker = { has_strong_claim_on = prev } } + add = -50 + } + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_kingdom } + add = { + value = 400 + if = { + # 25% cheaper to take Pressed claims. + limit = { scope:attacker = { has_strong_claim_on = prev } } + add = -100 + } + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_empire } + add = { + value = 800 + if = { + # 25% cheaper to take Pressed claims. + limit = { scope:attacker = { has_strong_claim_on = prev } } + add = -200 + } + } + } + + # Player adventurers pay much more. + if = { + limit = { + scope:attacker = { + has_government = landless_adventurer_government + is_ai = no + } + } + multiply = 10 + } + + desc = "CB_CLAIM_COST_TARGET_TITLES" + } + if = { # 50% cheaper for adults to take titles from child rulers. + limit = { + scope:attacker = { is_adult = yes } + scope:defender = { is_adult = no } + } + multiply = { + value = 0.5 + desc = "CB_COST_DEFENDER_IS_CHILD" + } + } + else_if = { # 50% more expensive for children to take titles from adult rulers. + limit = { + scope:attacker = { is_adult = no } + scope:defender = { is_adult = yes } + } + multiply = { + value = 1.5 + desc = "CB_COST_ATTACKER_IS_CHILD" + } + } + if = { # 50% cheaper to take titles from a dynasty member. + limit = { + scope:attacker.dynasty = scope:defender.dynasty + } + multiply = { + value = 0.5 + desc = "CB_COST_SAME_DYNASTY" + } + } + + if = { + limit = { # If claimant & target share a faith, cost is modified by gender preferences. + scope:attacker.faith = scope:defender.faith + scope:attacker = { + sex_opposite_of = scope:defender + } + OR = { + scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + } + } + multiply = { + if = { + limit = { + scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + } + if = { + limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies. + scope:attacker = { is_male = yes } + scope:defender = { is_male = no } + } + value = 0.75 + } + else_if = { + limit = { # 25% more expensive for women to press claims on male rulers in male-dominated societies. + scope:attacker = { is_male = no } + scope:defender = { is_male = yes } + } + value = 1.25 + } + else = { + value = 1 + } + } + else_if = { + limit = { + scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + } + if = { + limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies. + scope:attacker = { is_male = no } + scope:defender = { is_male = yes } + } + value = 0.75 + } + else_if = { + limit = { # 25% more expensive for men to press claims on female rulers in female-dominated societies. + scope:attacker = { is_male = yes } + scope:defender = { is_male = no } + } + value = 1.25 + } + else = { + value = 1 + } + } + else = { + value = 1 + } + desc = "CB_CLAIM_COST_GENDER_PREFERENCES" + } + } + else_if = { + # Taking titles from someone of another faith costs 25% more, regardless of gender preferences. + limit = { + scope:attacker.faith != scope:defender.faith + } + multiply = { + value = 1.25 + desc = "CB_COST_DIFFERENT_FAITH" + } + } + + if = { # 25% more expensive to take titles from lower-tier rulers (pick on someone your own size!) + limit = { + scope:attacker.primary_title.tier > scope:defender.primary_title.tier + } + multiply = { + value = 1.25 + desc = "CB_DEFNDER_LOWER_TIER" + } + } + } + else = { + # When pressing a 3rd party's claims, the cost is mostly static. + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = 250 + } + every_in_list = { + list = target_titles + limit = { tier = tier_duchy } + add = 500 + } + every_in_list = { + list = target_titles + limit = { tier = tier_kingdom } + add = 1000 + } + every_in_list = { + list = target_titles + limit = { tier = tier_empire } + add = 3000 + } + desc = "CB_CLAIM_COST_TARGET_TITLES" + } + if = { + limit = { # 100% more expensive to press claims for someone not of your Religion + scope:attacker.faith.religion != scope:claimant.faith.religion + } + multiply = { + value = 2 + desc = "CB_CLAIM_COST_CLAIMANT_DIFFERENT_RELIGION" + } + } + if = { + limit = { # 50% more expensive to press claims for someone not in your Dynasty + scope:attacker.dynasty != scope:claimant.dynasty + } + multiply = { + value = 1.5 + desc = "CB_CLAIM_COST_CLAIMANT_DIFFERENT_DYNASTY" + } + } + else_if = { + limit = { # 25% more expensive to press claims for someone not in your House + scope:attacker.house != scope:claimant.house + } + multiply = { + value = 1.25 + desc = "CB_CLAIM_COST_CLAIMANT_DIFFERENT_HOUSE" + } + } + } +} + +tribal_subjugation_cb_prestige_cost = { + value = 0 + if = { + limit = { + NAND = { + scope:attacker.faith.religious_head = scope:attacker + scope:defender.faith = scope:attacker.faith + } + } + add = { + value = 1000 + desc = CB_BASE_COST + } + } + if = { + limit = { + exists = scope:attacker.primary_title + scope:attacker.primary_title = { + tier = tier_kingdom + } + } + multiply = { + value = 1.5 + desc = CB_COST_RULES_KINGDOM + } + } + else_if = { + limit = { + exists = scope:attacker.primary_title + scope:attacker.primary_title = { + tier = tier_empire + } + } + multiply = { + value = 2.5 + desc = CB_COST_RULES_EMPIRE + } + } + + multiply = common_cb_prestige_cost_multiplier +} + +# Ancestor war base cost +ancestor_cb_prestige_cost = { + add = { + every_in_list = { + list = target_titles + limit = { tier = tier_county } + add = { + value = 100 + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_duchy } + add = { + value = 200 + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_kingdom } + add = { + value = 400 + } + } + every_in_list = { + list = target_titles + limit = { tier = tier_empire } + add = { + value = 800 + } + } + desc = "CB_CLAIM_COST_TARGET_TITLES" + } + if = { # 50% cheaper for adults to take titles from child rulers. + limit = { + scope:attacker = { is_adult = yes } + scope:defender = { is_adult = no } + } + multiply = { + value = 0.5 + desc = "CB_COST_DEFENDER_IS_CHILD" + } + } + else_if = { # 50% more expensive for children to take titles from adult rulers. + limit = { + scope:attacker = { is_adult = no } + scope:defender = { is_adult = yes } + } + multiply = { + value = 1.5 + desc = "CB_COST_ATTACKER_IS_CHILD" + } + } + if = { # 50% cheaper to take titles from a dynasty member. + limit = { + scope:attacker.dynasty = scope:defender.dynasty + } + multiply = { + value = 0.5 + desc = "CB_COST_SAME_DYNASTY" + } + } + + if = { + limit = { # If claimant & target share a faith, cost is modified by gender preferences. + scope:attacker.faith = scope:defender.faith + scope:attacker = { + sex_opposite_of = scope:defender + } + OR = { + scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + } + } + multiply = { + if = { + limit = { + scope:attacker.faith = { has_doctrine = doctrine_gender_male_dominated } + } + if = { + limit = { # 25% cheaper for men to press claims on female rulers in male-dominated societies. + scope:attacker = { is_male = yes } + scope:defender = { is_male = no } + } + value = 0.75 + } + else_if = { + limit = { # 25% more expensive for women to press claims on male rulers in male-dominated societies. + scope:attacker = { is_male = no } + scope:defender = { is_male = yes } + } + value = 1.25 + } + else = { + value = 1 + } + } + else_if = { + limit = { + scope:attacker.faith = { has_doctrine = doctrine_gender_female_dominated } + } + if = { + limit = { # 25% cheaper for women to press claims on male rulers in female-dominated societies. + scope:attacker = { is_male = no } + scope:defender = { is_male = yes } + } + value = 0.75 + } + else_if = { + limit = { # 25% more expensive for men to press claims on female rulers in female-dominated societies. + scope:attacker = { is_male = yes } + scope:defender = { is_male = no } + } + value = 1.25 + } + else = { + value = 1 + } + } + else = { + value = 1 + } + desc = "CB_CLAIM_COST_GENDER_PREFERENCES" + } + } + else_if = { + # Taking titles from someone of another faith costs 25% more, regardless of gender preferences. + limit = { + scope:attacker.faith != scope:defender.faith + } + multiply = { + value = 1.25 + desc = "CB_COST_DIFFERENT_FAITH" + } + } + + if = { # 25% more expensive to take titles from lower-tier rulers (pick on someone your own size!) + limit = { + scope:attacker.primary_title.tier > scope:defender.primary_title.tier + } + multiply = { + value = 1.25 + desc = "CB_DEFNDER_LOWER_TIER" + } + } +} + +##### Multi-Currency Costs +# +#struggle_cb_phase_modifier_cost = { +# # Phase modifiers. +# ## Note that these aren't hooked up to the actual _parameters_ for tooltip reasons: we'd have to check what the phase is anyway, so we just check off of the phase to begin with and save ourselves a worthless parameter check. +# add = { +# value = 0 +# # Cheap. +# if = { +# limit = { +# scope:attacker = { +# any_character_struggle = { +# involvement = involved +# is_struggle_type = iberian_struggle +# is_struggle_phase = struggle_iberia_phase_hostility +# is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } +# } +# } +# } +# add = { +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = minor_prestige_value +# } +# } +# multiply = { +# value = 0.9 +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = 0.1 +# } +# } +# max = 2 +# } +# desc = CB_COST_STRUGGLE_PHASE_HOSTILITY +# } +# } +# # Standard. +# if = { +# limit = { +# scope:attacker = { +# any_character_struggle = { +# involvement = involved +# is_struggle_type = iberian_struggle +# is_struggle_phase = struggle_iberia_phase_opportunity +# is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } +# } +# } +# } +# add = { +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = medium_prestige_value +# } +# } +# multiply = { +# value = 0.9 +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = 0.1 +# } +# } +# max = 2 +# } +# desc = CB_COST_STRUGGLE_PHASE_OPPORTUNITY +# } +# } +# # Expensive. +# if = { +# limit = { +# scope:attacker = { +# any_character_struggle = { +# involvement = involved +# is_struggle_type = iberian_struggle +# is_struggle_phase = struggle_iberia_phase_compromise +# is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } +# } +# } +# } +# add = { +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = major_prestige_value +# } +# } +# multiply = { +# value = 0.9 +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = 0.1 +# } +# } +# max = 2 +# } +# desc = CB_COST_STRUGGLE_PHASE_COMPROMISE +# } +# } +# if = { +# limit = { +# scope:attacker = { +# any_character_struggle = { +# involvement = involved +# is_struggle_type = iberian_struggle +# is_struggle_phase = struggle_iberia_phase_conciliation +# is_secondary_character_involvement_either_trigger = { CHAR = scope:defender } +# } +# } +# } +# add = { +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = major_prestige_value +# } +# } +# multiply = { +# value = 0.9 +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = 0.1 +# } +# } +# max = 2 +# } +# desc = CB_COST_STRUGGLE_PHASE_CONCILIATION +# } +# } +# if = { # Post Struggle cost +# limit = { +# scope:attacker = { +# exists = scope:attacker.house +# scope:attacker.house = { +# OR ={ +# has_house_modifier = fp2_struggle_hostility_house_combined_modifier +# has_house_modifier = fp2_struggle_hostility_house_faith_modifier +# has_house_modifier = fp2_struggle_hostility_house_culture_modifier +# } +# } +# } +# } +# add = { +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = major_prestige_value +# } +# } +# multiply = { +# value = 0.9 +# every_in_list = { +# list = target_titles +# limit = { tier = tier_county } +# add = { +# value = 0.1 +# } +# } +# max = 2 +# } +# desc = CB_BASE_COST +# } +# } +# } +#} + +common_claim_reduction_cost_multiplier_core = { + value = 1 + # Claim discounts + scope:attacker = { + if = { + limit = { + any_claim = { + is_in_list = target_titles + } + } + multiply = { + value = 1 + every_claim = { + limit = { is_in_list = target_titles } + multiply = 0.75 + } + min = 0.2 + desc = CLAIMED_TITLES_DESC + } + } + if = { + limit = { + any_claim = { + de_jure_liege = { is_in_list = target_titles } + } + } + multiply = { + value = 1 + every_claim = { + limit = { + de_jure_liege = { is_in_list = target_titles } + } + multiply = 0.9 + } + min = 0.2 + desc = CLAIMED_DE_JURE_TITLES_DESC + } + } + } +}