00 Normandengland War
00 Normandengland War
00 Normandengland War
icon = duchy_conquest_cb
group = conquest
combine_into_one = yes
should_show_war_goal_subview = yes
mutually_exclusive_titles = { always = yes }
allowed_for_character = {
can_use_conquest_cbs_trigger = yes
this = title:d_normandy.holder
}
allowed_for_character_display_regardless = {
trigger_if = {
prestige_level >= 1
}
trigger_else = {
prestige_level >= 2
}
# Struggle constraint
custom_tooltip = {
text = struggle_involvement_cb_check_failure
struggle_blocks_invasion_conquest_cb_trigger = yes
}
}
allowed_against_character = {
scope:attacker = {
ALL_FALSE = {
top_liege = scope:defender.top_liege
liege = scope:defender
}
}
}
target_titles = all
target_title_tier = kingdom
target_de_jure_regions_above = yes
ignore_effect = change_title_holder
ai_only_against_neighbors = yes
ai_score_mult = {
value = viking_conquest_ai_score_value
valid_to_start = {
scope:target = {
tier = tier_county
any_in_de_jure_hierarchy = {
tier = tier_county
title_capital_county.title_province = { geographical_region
= ghw_region_england }
}
}
}
should_invalidate = {
NOT = {
any_in_list = {
list = target_titles
any_in_de_jure_hierarchy = {
tier = tier_county
holder = {
target_is_same_character_or_above =
scope:defender
}
}
}
}
}
on_invalidated_desc = msg_religious_war_invalidation_region_message
on_invalidated = {
}
cost = {
piety = {
add = common_cb_impious_piety_cost
if = {
limit = {
scope:defender.faith = scope:attacker.faith
}
add = {
value = massive_piety_value
desc = CB_SAME_FAITH_COST
}
}
multiply = common_cb_piety_cost_multiplier
}
prestige = {
value = 0
if = {
limit = {
NOT = { scope:defender.faith = scope:attacker.faith }
}
add = {
value = massive_prestige_value
desc = CB_COST_DIFFERENT_FAITH
}
}
multiply = common_cb_prestige_cost_multiplier
if = {
limit = {
scope:attacker.house = {
OR = {
has_house_modifier =
fp2_struggle_hostility_house_culture_modifier
has_house_modifier =
fp2_struggle_hostility_house_combined_modifier
}
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:attacker.culture
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:defender.culture
}
}
divide = {
value = 2
desc =
CB_COST_FP2_STRUGGLE_HOSTILITY_CULTURE_DISCOUNT
}
}
if = {
limit = {
has_global_variable = fp2_struggle_compromise_ending
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:attacker.culture
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:defender.culture
}
}
multiply = {
value = 2
desc = CB_COST_FP2_STRUGGLE_COMPROMISE_MULTIPLIER
}
}
}
}
on_declaration = {
on_declared_war = yes
}
on_victory_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
}
}
on_victory = {
scope:attacker = { show_pow_release_message_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
}
conquest_cb_title_transfer = {
RELIGIOUS_WAR = no
}
}
every_in_list = {
list = vassals_taken
change_liege = {
liege = scope:attacker
change = scope:change
}
}
every_in_list = {
list = titles_taken
change_title_holder = {
holder = scope:attacker
change = scope:change
take_baronies = yes
}
}
resolve_title_and_vassal_change = scope:change
# 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 }
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
}
on_defeat_desc = {
first_valid = {
triggered_desc = {
trigger = { scope:defender = { is_local_player = yes } }
desc = county_conquest_cb_defeat_desc_defender
}
triggered_desc = {
trigger = {
scope:attacker = {
is_local_player = yes
has_targeting_faction = yes
}
}
desc = county_conquest_cb_defeat_desc_attacker
}
desc = county_conquest_cb_defeat_desc
}
}
on_defeat = {
scope:attacker = { show_pow_release_message_effect = yes }
#EP2 accolade glory gain for winning against higher ranked enemy
scope:defender = { accolade_defender_war_end_glory_gain_med_effect =
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 = medium_prestige_value
IS_RELIGIOUS_WAR = no
WINNER_ALLY_FAME_SCALE = 1
LOSER_ALLY_FAME_SCALE = 1
}
add_truce_attacker_defeat_effect = yes
scope:attacker = {
save_temporary_scope_as = loser
}
on_lost_aggression_war_discontent_loss = yes
}
transfer_behavior = transfer
on_primary_attacker_death = inherit
on_primary_defender_death = inherit
attacker_allies_inherit = yes
defender_allies_inherit = yes
war_name = "perra_WAR_NAME"
war_name_base = "perra_WAR_NAME_BASE"
cb_name = "CONQUEST_DUCHY_CB_NAME_perra"
interface_priority = 79
use_de_jure_wargoal_only = yes
attacker_wargoal_percentage = 0.8
max_defender_score_from_occupation = 150
max_attacker_score_from_occupation = 150
}
normando_realm_invasion_war = {
icon = duchy_conquest_cb
group = conquest
combine_into_one = yes
should_show_war_goal_subview = yes
mutually_exclusive_titles = { always = yes }
allowed_for_character = {
can_use_conquest_cbs_trigger = yes
this = title:d_normandy.holder
}
allowed_for_character_display_regardless = {
trigger_if = {
prestige_level >= 1
}
trigger_else = {
prestige_level >= 2
}
# Struggle constraint
custom_tooltip = {
text = struggle_involvement_cb_check_failure
struggle_blocks_invasion_conquest_cb_trigger = yes
}
}
allowed_against_character = {
scope:attacker = {
ALL_FALSE = {
top_liege = scope:defender.top_liege
liege = scope:defender
}
}
}
target_titles = all
target_title_tier = kingdom
target_de_jure_regions_above = yes
ignore_effect = change_title_holder
ai_only_against_neighbors = yes
ai_score_mult = {
value = viking_conquest_ai_score_value
valid_to_start = {
scope:target = {
tier = tier_county
any_in_de_jure_hierarchy = {
tier = tier_county
title_capital_county.title_province = { geographical_region
= ghw_region_england }
}
}
}
should_invalidate = {
NOT = {
any_in_list = {
list = target_titles
any_in_de_jure_hierarchy = {
tier = tier_county
holder = {
target_is_same_character_or_above =
scope:defender
}
}
}
}
}
on_invalidated_desc = msg_religious_war_invalidation_region_message
on_invalidated = {
}
cost = {
piety = {
add = common_cb_impious_piety_cost
if = {
limit = {
scope:defender.faith = scope:attacker.faith
}
add = {
value = massive_piety_value
desc = CB_SAME_FAITH_COST
}
}
multiply = common_cb_piety_cost_multiplier
}
prestige = {
value = 0
if = {
limit = {
NOT = { scope:defender.faith = scope:attacker.faith }
}
add = {
value = massive_prestige_value
desc = CB_COST_DIFFERENT_FAITH
}
}
multiply = common_cb_prestige_cost_multiplier
if = {
limit = {
scope:attacker.house = {
OR = {
has_house_modifier =
fp2_struggle_hostility_house_culture_modifier
has_house_modifier =
fp2_struggle_hostility_house_combined_modifier
}
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:attacker.culture
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:defender.culture
}
}
divide = {
value = 2
desc =
CB_COST_FP2_STRUGGLE_HOSTILITY_CULTURE_DISCOUNT
}
}
if = {
limit = {
has_global_variable = fp2_struggle_compromise_ending
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:attacker.culture
}
any_in_global_list = {
variable = fp2_struggle_ending_culture_list
this = scope:defender.culture
}
}
multiply = {
value = 2
desc = CB_COST_FP2_STRUGGLE_COMPROMISE_MULTIPLIER
}
}
}
}
on_declaration = {
on_declared_war = yes
}
on_victory_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
}
}
on_victory = {
scope:attacker = { show_pow_release_message_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
}
conquest_cb_title_transfer = {
RELIGIOUS_WAR = no
}
}
every_in_list = {
list = vassals_taken
change_liege = {
liege = scope:attacker
change = scope:change
}
}
every_in_list = {
list = titles_taken
change_title_holder = {
holder = scope:attacker
change = scope:change
take_baronies = yes
}
}
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 }
on_white_peace_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
}
on_defeat_desc = {
first_valid = {
triggered_desc = {
trigger = { scope:defender = { is_local_player = yes } }
desc = county_conquest_cb_defeat_desc_defender
}
triggered_desc = {
trigger = {
scope:attacker = {
is_local_player = yes
has_targeting_faction = yes
}
}
desc = county_conquest_cb_defeat_desc_attacker
}
desc = county_conquest_cb_defeat_desc
}
}
on_defeat = {
scope:attacker = { show_pow_release_message_effect = yes }
#EP2 accolade glory gain for winning against higher ranked enemy
scope:defender = { accolade_defender_war_end_glory_gain_med_effect =
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 = medium_prestige_value
IS_RELIGIOUS_WAR = no
WINNER_ALLY_FAME_SCALE = 1
LOSER_ALLY_FAME_SCALE = 1
}
add_truce_attacker_defeat_effect = yes
scope:attacker = {
save_temporary_scope_as = loser
}
on_lost_aggression_war_discontent_loss = yes
}
transfer_behavior = transfer
on_primary_attacker_death = inherit
on_primary_defender_death = inherit
attacker_allies_inherit = yes
defender_allies_inherit = yes
war_name = "mierda_WAR_NAME"
war_name_base = "normando_WAR_NAME_BASE"
cb_name = "CONQUEST_DUCHY_CB_NAME_normando"
interface_priority = 79
use_de_jure_wargoal_only = yes
attacker_wargoal_percentage = 0.8
max_defender_score_from_occupation = 150
max_attacker_score_from_occupation = 150
}