diff --git a/common/casus_belli_types/00_event_war.txt b/common/casus_belli_types/00_event_war.txt new file mode 100644 index 00000000..fd0f41c1 --- /dev/null +++ b/common/casus_belli_types/00_event_war.txt @@ -0,0 +1,3856 @@ +########## +# Special 'claim' CB used by William the Bastard to invade England in 1066. +# If victorious, Harold personally seizes all land in Northern England (ostensibly to distribute to good Norwegian vassals). Otherwise should be mostly-identical to a Claim CB. +########## + +#norman_conquest_cb = { +# icon = invasion +# group = event +# mutually_exclusive_titles = { +# always = yes +# } +# +# allow_hostages = no +# allowed_for_character = {} +# allowed_against_character = { +# faith.religion = scope:attacker.faith.religion +# } +# +# is_allowed_claim_title = { +# scope:claimant = { +# NOT = { has_trait = incapable } +# is_imprisoned = no +# OR = { +# this = scope:attacker +# AND = { +# religion = scope:attacker.religion +# dynasty = scope:attacker.dynasty +# } +# } +# } +# } +# +# cost = {} +# target_titles = claim +# +# 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_invalidated = { set_global_variable = norman_conquest_cb_concluded } +# on_invalidated_desc = msg_claim_war_invalidated_message +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = norman_conquest_cb_victory_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norman_conquest_cb_victory_desc_attacker +# } +# desc = norman_conquest_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_high_effect = yes } +# +# # Set land acquisition type to conquest. +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # Transfer landed titles to the attacker. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# change = scope:change +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# #Hereward the Wake departs for the Fenlands +# character:90028 = { save_scope_as = hereward } +# +# if = { +# limit = { +# exists = scope:hereward +# } +# +# scope:hereward = { +# trigger_event = { +# id = ep3_laamps.6000 +# days = { 1 2 } +# } +# } +# } +# +# #Eadgar becomes a LAAMP +# character:112 = { save_scope_as = eadgar } +# +# if = { +# limit = { +# exists = scope:eadgar +# } +# +# scope:eadgar = { +# trigger_event = { +# id = ep3_laamps.7000 +# days = { 1 2 } +# } +# } +# } +# +# every_in_list = { +# list = target_titles +# +# #Remove elective succession law from k_england. +# clear_title_laws = yes +# +# # Personally seize all duchy titles in Southern England AND duchy titles personally held by the King of England. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_duchy +# special_invasion_cb_seize_land_in_region_trigger = { +# TARGET_REGION = custom_southern_england +# TARGET_KINGDOM = title:k_england +# } +# } +# if = { +# limit = { +# holder ?= { +# top_liege ?= scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# custom_description = { +# text = custom_seize_title_and_below_de_jure +# subject = scope:attacker +# object = this +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# +# # Grab the counties that go with the duchies, too. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# holder ?= { +# top_liege = scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# hidden_effect = { +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# add_to_temporary_list = county_titles_under_transfer +# } +# } +# } +# # Personally seize every county title in the Southern England AND county titles personally held by the King of England. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# special_invasion_cb_seize_land_in_region_trigger = { +# TARGET_REGION = custom_southern_england +# TARGET_KINGDOM = title:k_england +# } +# NOT = { is_in_list = county_titles_under_transfer } +# } +# if = { +# limit = { +# holder ?= { +# top_liege ?= scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# custom_description = { +# text = custom_seize_title +# subject = scope:attacker +# object = this +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# } +# } +# } +# +# resolve_title_and_vassal_change = scope:change +# +# scope:attacker = { +# give_nickname = nick_the_conqueror +# if = { +# limit = { exists = global_var:started_norman_yoke_achievement } +# add_achievement_global_variable_effect = { +# VARIABLE = achievement_norman_yoke_war_flag +# VALUE = yes +# } +# } +# if = { +# limit = { +# is_ai = yes +# has_title = title:c_middlesex +# } +# set_realm_capital = title:c_middlesex +# } +# } +# +# modify_all_participants_fame_values = { +# WINNER = scope:attacker +# LOSER = scope:defender +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = 10 +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # 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 } +# +# set_global_variable = norman_conquest_cb_concluded +# +# # 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_white_peace_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = norman_conquest_cb_white_peace_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norman_conquest_cb_white_peace_desc_attacker +# } +# desc = norman_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_med_effect = yes } +# +# # press claims +# every_in_list = { +# list = target_titles +# if = { +# limit = { scope:attacker = { has_weak_claim_on = prev } } +# scope:attacker = { +# make_claim_strong = prev +# } +# } +# } +# +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# +# # Small prestige penalty to the attacker for failing to win their own war. +# scope:attacker = { +# add_prestige = { +# value = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# multiply = -5 +# } +# 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_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:claimant = { +# can_add_hook = { +# type = favor_hook +# target = scope:attacker +# } +# } +# } +# scope:claimant = { +# add_hook = { +# target = scope:attacker +# type = favor_hook +# } +# } +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# set_global_variable = norman_conquest_cb_concluded +# +# # 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 = norman_conquest_cb_defeat_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norman_conquest_cb_defeat_desc_attacker +# } +# desc = norman_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 +# } +# +# # lose claims +# if = { +# limit = { scope:attacker = scope:claimant } +# every_in_list = { +# list = target_titles +# scope:claimant = { +# remove_claim = prev +# } +# } +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:claimant = { +# can_add_hook = { +# type = favor_hook +# target = scope:attacker +# } +# } +# } +# scope:claimant = { +# add_hook = { +# target = scope:attacker +# type = favor_hook +# } +# } +# } +# +# # Award the appropriate amount of prestige to all participants in the war. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# modify_all_participants_fame_values = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# set_global_variable = norman_conquest_cb_concluded +# +# # 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 = "CLAIM_WAR_NAME" +# my_war_name = "CLAIM_WAR_NAME_MY" +# war_name_base = "CLAIM_WAR_NAME_BASE" +# cb_name = "CLAIM_CB_NAME" +# interface_priority = 60 +# +# should_show_war_goal_subview = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 1000 +#} +# +########### +## Special 'claim' CB used by Harold the Hard-ruler to invade England in 1066. +## If victorious, Harold personally seizes all land in Northern England (ostensibly to distribute to good Norwegian vassals). Otherwise should be mostly-identical to a Claim CB. +########### +#norwegian_invasion_cb = { +# icon = invasion +# group = event +# mutually_exclusive_titles = { +# always = yes +# } +# +# allow_hostages = no +# #allowed_for_character = {} +# +# allowed_against_character = { +# faith.religion = scope:attacker.faith.religion +# } +# +# is_allowed_claim_title = { +# scope:claimant = { +# NOT = { has_trait = incapable } +# is_imprisoned = no +# OR = { +# this = scope:attacker +# AND = { +# religion = scope:attacker.religion +# dynasty = scope:attacker.dynasty +# } +# } +# } +# } +# +# cost = { +# #prestige = 1000 +# } +# +# target_titles = claim +# #target_title_tier = all +# +# 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_invalidated_desc = msg_claim_war_invalidated_message +# +# on_invalidated = { set_global_variable = norwegian_invasion_cb_concluded } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = norwegian_invasion_cb_victory_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norwegian_invasion_cb_victory_desc_attacker +# } +# desc = norwegian_invasion_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_high_effect = yes } +# +# # Loc setup. +# character:124 = { save_scope_as = tostig } +# title:d_northumberland = { save_scope_as = northumberland} +# title:d_york = { save_scope_as = york } +# title:d_lancaster = { save_scope_as = lancaster} +# custom_tooltip = norwegian_invasion_cb_victory_with_tostig_desc +# # Set land acquisition type to conquest. +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # Transfer landed titles to the attacker. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# change = scope:change +# } +# +# # EP3 Laamp possibility warning +# scope:defender = { ep3_war_loss_adventurer_tt_effect = yes } +# +# every_in_list = { +# list = target_titles +# +# #Remove elective succession law from k_england. +# clear_title_laws = yes +# +# # Personally seize all duchy titles in Northern England AND all duchy titles personally held by the King of England. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_duchy +# special_invasion_cb_seize_land_in_region_trigger = { +# TARGET_REGION = custom_northern_england +# TARGET_KINGDOM = title:k_england +# } +# } +# if = { +# limit = { +# holder ?= { +# top_liege ?= scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# custom_description = { +# text = custom_seize_title_and_below_de_jure +# subject = scope:attacker +# object = this +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = no +# } +# } +# +# # Grab the counties that go with the duchies, too. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# holder ?= { +# top_liege = scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# hidden_effect = { +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = no +# } +# } +# } +# } +# } +# # Personally seize every county title in the Northern England AND county titles personally held by the King of England. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# special_invasion_cb_seize_land_in_region_trigger = { +# TARGET_REGION = custom_northern_england +# TARGET_KINGDOM = title:k_england +# } +# } +# if = { +# limit = { +# holder ?= { +# top_liege ?= scope:defender +# +# # Vassal players in England get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# custom_description = { +# text = custom_seize_title +# subject = scope:attacker +# object = this +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = no +# } +# } +# } +# } +# } +# resolve_title_and_vassal_change = scope:change +# +# #If Tostig is still alive, and in Harold's court, give him back his northern lands, and give Hardrada a reward. +# scope:attacker = { +# if = { +# limit = { +# character:124 = { +# is_alive = yes +# is_pool_character = no +# liege ?= scope:attacker +# } +# } +# +# #Grab the appropriate titles. +# title:d_northumberland = { +# every_in_de_jure_hierarchy = { +# continue = { tier >= tier_duchy } +# add_to_list = tostig_reward_titles +# } +# } +# title:d_york = { +# every_in_de_jure_hierarchy = { +# continue = { tier >= tier_duchy } +# add_to_list = tostig_reward_titles +# } +# } +# title:d_lancaster = { +# every_in_de_jure_hierarchy = { +# continue = { tier >= tier_duchy } +# add_to_list = tostig_reward_titles +# } +# } +# +# #Adjust titles. +# hidden_effect = { +# create_title_and_vassal_change = { +# type = granted +# save_scope_as = change +# add_claim_on_loss = no +# } +# every_in_list = { +# list = tostig_reward_titles +# limit = { holder = scope:attacker } +# change_title_holder = { +# holder = character:124 +# change = scope:change +# } +# } +# resolve_title_and_vassal_change = scope:change +# +# #A hook for Harold. +# add_hook = { +# type = loyalty_hook +# target = character:124 +# } +# #And some opinion. +# reverse_add_opinion = { +# target = character:124 +# modifier = loyal_servant +# } +# } +# } +# } +# +# #If William already won the conquest, loose Normandy back into the continent. +# scope:attacker = { +# if = { +# limit = { +# any_vassal = { +# primary_title = title:d_normandy +# } +# } +# random_vassal = { +# limit = { primary_title = title:d_normandy } +# save_scope_as = free_william #Harald Hardrada & William the Bastard? A friendship you could never imagine! +# } +# scope:free_william = { +# #De-vassalise him. +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# becomes_independent = { change = scope:change } +# resolve_title_and_vassal_change = scope:change +# #Take away his "Conqueror" title. Clearly he does not deserve it. +# if = { +# #William goes back to being the Bastard. +# limit = { +# this = character:140 +# has_nickname = nick_the_conqueror +# } +# give_nickname = nick_the_bastard +# } +# else = { +# #Anyone else will be mocked forever for their brief victory. +# give_nickname = nick_the_unready +# } +# } +# } +# #And give him Maine & Sable too. +# if = { +# limit = { title:c_maine.holder.liege = scope:attacker } +# create_title_and_vassal_change = { +# type = revoked +# save_scope_as = change +# add_claim_on_loss = no +# } +# title:c_maine.holder = { +# change_liege = { +# liege = scope:free_william +# change = scope:change +# } +# } +# resolve_title_and_vassal_change = scope:change +# } +# if = { +# limit = { +# NOT = { title:c_sable.holder = title:c_maine.holder } +# title:c_sable.holder.liege = scope:attacker +# } +# create_title_and_vassal_change = { +# type = revoked +# save_scope_as = change +# add_claim_on_loss = no +# } +# title:c_sable.holder = { +# change_liege = { +# liege = scope:free_william +# change = scope:change +# } +# } +# resolve_title_and_vassal_change = scope:change +# } +# } +# +# modify_all_participants_fame_values = { +# WINNER = scope:attacker +# LOSER = scope:defender +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = 10 +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # 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 } +# +# set_global_variable = norwegian_invasion_cb_concluded +# +# # 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 = norwegian_invasion_cb_white_peace_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norwegian_invasion_cb_white_peace_desc_attacker +# } +# desc = norwegian_invasion_cb_white_peace_desc +# } +# } +# +# on_white_peace = { +# 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_low_effect = yes } +# scope:defender = { accolade_defender_war_end_glory_gain_med_effect = yes } +# +# # press claims +# every_in_list = { +# list = target_titles +# if = { +# limit = { scope:attacker = { has_weak_claim_on = prev } } +# scope:attacker = { +# make_claim_strong = prev +# } +# } +# } +# +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# +# # Small prestige penalty to the attacker for failing to win their own war. +# scope:attacker = { +# add_prestige = { +# value = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# multiply = -5 +# } +# 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_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:claimant = { +# can_add_hook = { +# type = favor_hook +# target = scope:attacker +# } +# } +# } +# scope:claimant = { +# add_hook = { +# target = scope:attacker +# type = favor_hook +# } +# } +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# set_global_variable = norwegian_invasion_cb_concluded +# +# # 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 = norwegian_invasion_cb_defeat_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = norwegian_invasion_cb_defeat_desc_attacker +# } +# desc = norwegian_invasion_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 +# } +# +# # lose claims +# if = { +# limit = { scope:attacker = scope:claimant } +# every_in_list = { +# list = target_titles +# scope:claimant = { +# remove_claim = prev +# } +# } +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:claimant = { +# can_add_hook = { +# type = favor_hook +# target = scope:attacker +# } +# } +# } +# scope:claimant = { +# add_hook = { +# target = scope:attacker +# type = favor_hook +# } +# } +# } +# +# # Award the appropriate amount of prestige to all participants in the war. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# modify_all_participants_fame_values = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# set_global_variable = norwegian_invasion_cb_concluded +# +# # 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 = "CLAIM_WAR_NAME" +# my_war_name = "CLAIM_WAR_NAME_MY" +# war_name_base = "CLAIM_WAR_NAME_BASE" +# cb_name = "CLAIM_CB_NAME" +# interface_priority = 60 +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +# +# should_show_war_goal_subview = yes +# +# max_ai_diplo_distance_to_title = 1000 +#} +# +########### +## Special 'claim' CB used by the Sons of Lothbrok to invade England & Scotland in 867. +## If victorious, they personally seize all land in k_england or k_scotland (depending on the war). Otherwise very close to a duchy conquest CB. +########### +# +#sons_of_lothbrok_invasion_cb = { +# icon = fp1_varangian_adventurer_conquest +# group = event +# +# allowed_for_character = { +# } +# +# allowed_against_character = { +# scope:attacker = { +# ALL_FALSE = { +# top_liege = scope:defender.top_liege +# liege = scope:defender +# } +# } +# } +# target_titles = none +# target_title_tier = all +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# ai_only_against_neighbors = yes +# allow_hostages = no +# +# valid_to_start = { +# always = no +# } +# +# 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 = msg_religious_war_invalidation_region_message +# +# on_invalidated = { +# } +# +# cost = { +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = sons_of_lothbrok_invasion_cb_victory_desc_attacker +# } +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = sons_of_lothbrok_invasion_cb_victory_desc_defender +# } +# desc = sons_of_lothbrok_invasion_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_high_effect = yes } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# +# # go through the dejure hierarchy under target titles, transfer titles with same or worse tolerance holders (their religion equaly or less tolerated than the defender's), +# # take the holder as vassal otherwise and don't go deeper +# every_in_list = { +# list = target_titles +# custom_tooltip = CONQUEST_CB_TITLE +# every_in_de_jure_hierarchy = { +# continue = { +# OR = { +# NOT = { +# exists = holder +# } +# NOT = { +# holder = { +# target_is_liege_or_above = scope:defender +# } +# } +# AND = { +# scope:attacker.faith = { +# faith_hostility_level_comparison = { +# prev.holder.faith <= scope:defender.faith +# } +# } +# holder = { +# OR = { +# this = scope:defender +# target_is_liege_or_above = scope:defender +# } +# } +# } +# } +# tier > tier_county +# } +# limit = { +# tier = tier_county +# holder ?= { +# OR = { +# this = scope:defender +# target_is_liege_or_above = scope:defender +# } +# } +# } +# +# if = { +# limit = { +# OR = { +# scope:attacker.faith = { +# faith_hostility_level_comparison = { +# prev.holder.faith >= scope:defender.faith +# } +# } +# holder.primary_title.tier >= scope:attacker.primary_title.tier +# } +# } +# add_to_temporary_list = titles_taken +# } +# else = { +# holder = { +# add_to_temporary_list = vassals_taken +# } +# } +# } +# } +# +# every_in_list = { +# list = titles_taken +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# +# every_in_list = { +# list = vassals_taken +# change_liege = { +# liege = 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 = 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 } +# +# # 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 = sons_of_lothbrok_invasion_cb_white_peace_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = sons_of_lothbrok_invasion_cb_white_peace_desc_attacker +# } +# desc = sons_of_lothbrok_invasion_cb_white_peace_desc +# } +# } +# +# on_white_peace = { +# 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_low_effect = yes } +# scope:defender = { accolade_defender_war_end_glory_gain_med_effect = yes } +# +# # Prestige loss for the attacker +# scope:attacker = { +# add_prestige = { +# value = minor_prestige_value +# multiply = -1.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 # not important as scale values are identical +# FAME_BASE = medium_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 +# } +# } +# +# 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 = sons_of_lothbrok_invasion_cb_defeat_desc_defender +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = sons_of_lothbrok_invasion_cb_defeat_desc_attacker +# } +# desc = sons_of_lothbrok_invasion_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 = major_prestige_value +# } +# } +# +# # Prestige loss for the attacker +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 5 +# } +# 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 = 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 +# +# # 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 +# } +# +# transfer_behavior = transfer +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "CONQUEST_WAR_NAME" +# war_name_base = "CONQUEST_WAR_NAME_BASE" +# cb_name = "CONQUEST_CB_NAME" +# +# 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 +# +# max_ai_diplo_distance_to_title = 500 +#} +# +########### +## Special 'invasion' CB used by the Hungarians to migrate from the steppe to Pannonia +## If victorious, the Hungarians directly usurp all land within Pannonia not held by a player. +########### +# +#hungarian_migration_cb = { +# icon = invasion +# group = invasion #Switching this to event will render the CB invisible. +# ai = no # AI targeting is handled through game_rule events. +# +# allowed_for_character = { +# culture = culture:mogyer +# faith = { has_doctrine_parameter = unreformed } +# } +# +# allowed_against_character = { +# #Realm must have at least some land in Hungary. +# scope:defender = { +# any_realm_county = { +# title_province = { geographical_region = custom_hungary } +# } +# } +# } +# +# target_titles = all +# target_title_tier = kingdom +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# use_de_jure_wargoal_only = yes +# combine_into_one = yes +# +# #Configure war-score. This is a bit different to usual, focusing mostly on battles and almost not at all on back-capping the attacker: the Mogyers literally do not care at all if you occupy their homelands, they're moving their whole people to Pannonia anyway. +# +# max_attacker_score_from_battles = 200 +# max_defender_score_from_battles = 200 +# max_defender_score_from_occupation = 25 +# max_attacker_score_from_occupation = 150 +# full_occupation_by_defender_gives_victory = no +# landless_attacker_needs_armies = no +# attacker_capital_gives_war_score = no +# +# valid_to_start = { +# #May only target Hungary. +# scope:target = title:k_hungary +# #Must have taken the appropriate decision. +# has_character_flag = undertaking_hungarian_migration +# } +# +# 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 +# } +# } +# } +# } +# #Emperors do not deign to migrate. Plus it'll mess up title destruction. +# scope:attacker = { highest_held_title_tier >= tier_empire } +# } +# +# on_invalidated = { +# if = { +# limit = { exists = scope:attacker.player_heir } +# scope:attacker.player_heir = { +# if = { +# limit = { +# culture = culture:mogyer +# faith = { has_doctrine_parameter = unreformed } +# } +# #Give scope:attacker back their ability to declare a migration in the event of invalidation. +# add_character_flag = undertaking_hungarian_migration +# } +# } +# } +# } +# +# on_invalidated_desc = msg_invasion_war_invalidated_message +# +# #No cost: that's paid in the decision. +# +# on_declaration = { +# on_declared_war = yes +# hidden_effect = { +# add_to_global_variable_list = { +# name = unavailable_unique_decisions +# target = flag:flag_launched_hungarian_migration +# } +# } +# #Give scope:attacker some armies to ensure success & use up their free invasion. +# scope:attacker = { +# remove_character_flag = undertaking_hungarian_migration +# #One army to conquer. +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# name = event_troop_default_name +# men_at_arms = { +# type = nomadic_riders +# stacks = 20 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 5 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# war = scope:war +# inheritable = no +# } +# } +# else = { +# spawn_army = { +# name = event_troop_default_name +# levies = 2000 +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# war = scope:war +# inheritable = no +# } +# } +# #And one army to hold. +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# name = event_troop_default_name +# men_at_arms = { +# type = nomadic_riders +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# inheritable = no +# } +# } +# else = { +# spawn_army = { +# name = event_troop_default_name +# levies = 1000 +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# inheritable = no +# } +# } +# +# #If we're a few decades in, beef the Mogyers a bit with another temporary army. +# if = { +# limit = { current_date >= 890.1.1 } +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# name = event_troop_default_name +# men_at_arms = { +# type = nomadic_riders +# stacks = 20 +# } +# men_at_arms = { +# type = heavy_horse_archers +# stacks = 5 +# } +# men_at_arms = { +# type = steppe_raiders +# stacks = 5 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# war = scope:war +# inheritable = no +# } +# } +# else = { +# spawn_army = { +# name = event_troop_default_name +# levies = 2000 +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# war = scope:war +# inheritable = no +# } +# } +# } +# #And if we're almost out of the valid time-frame, add another holding army. +# if = { +# limit = { current_date >= 905.1.1 } +# if = { +# limit = { +# has_mpo_dlc_trigger = yes +# } +# spawn_army = { +# name = event_troop_default_name +# men_at_arms = { +# type = nomadic_riders +# stacks = 10 +# } +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# inheritable = no +# } +# } +# else = { +# spawn_army = { +# name = event_troop_default_name +# levies = 1000 +# men_at_arms = { +# type = horse_archers +# stacks = 10 +# } +# location = scope:attacker.capital_province +# uses_supply = no +# inheritable = no +# } +# } +# } +# } +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:attacker = { is_local_player = yes } +# } +# desc = hungarian_invasion_war_victory_desc_attacker +# } +# desc = hungarian_invasion_war_victory_desc +# } +# triggered_desc = { +# trigger = { +# scope:attacker = { is_local_player = yes } +# } +# desc = hungarian_invasion_war_warning_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_high_effect = yes } +# +# #If the Mogyers aren't independent, make them so. +# if = { +# limit = { +# scope:attacker = { top_liege != this } +# } +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# add_claim_on_loss = no +# } +# change_liege_or_become_independent = { +# CHANGE = scope:change +# VASSAL = scope:attacker +# } +# resolve_title_and_vassal_change = scope:change +# } +# +# #Take lands within Pannonia. +# hidden_effect = { +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# setup_invasion_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# change = scope:change +# take_occupied = no +# } +# every_in_list = { +# list = target_titles +# +# # Personally seize all duchy titles in k_hungary AND duchy titles personally held by the target king. +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_duchy +# special_invasion_cb_seize_land_in_region_trigger = { +# TARGET_REGION = custom_hungary +# TARGET_KINGDOM = title:k_hungary +# } +# } +# if = { +# limit = { +# holder ?= { +# top_liege ?= scope:defender +# +# # Vassal players in Hungary get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# hidden_effect = { +# # As a security set all the county below the duchy as under transfer in case the defender owned the duchy and the counties below +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# holder ?= scope:defender +# } +# add_to_temporary_list = county_titles_under_transfer +# } +# } +# custom_description = { +# text = custom_seize_title_and_below_de_jure +# subject = scope:attacker +# object = this +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# } +# } +# +# # Grab counties belonging to duchies that don't exist +# every_in_de_jure_hierarchy = { +# limit = { +# tier = tier_county +# holder ?= { +# top_liege = scope:defender +# +# # Vassal players in Hungary get to keep their holdings, so they can play as vassals of the new king instead of game-overing. +# NAND = { +# this != top_liege +# is_ai = no +# } +# } +# } +# hidden_effect = { +# if = { +# limit = { NOT = { is_in_list = county_titles_under_transfer } } # Theoretically prevents cases in which a title was already on the list +# add_to_temporary_list = county_titles_under_transfer +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# take_baronies = yes +# } +# } +# } +# } +# } +# resolve_title_and_vassal_change = scope:change +# } +# +# #Start processing the Hungarian-specific effects. +# scope:attacker = { +# launch_hungarian_migration_scripted_effect = { INVADER = scope:attacker } +# } +# +# # 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_invasion_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = 10 +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # 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 = invasion_war_white_peace_desc_defender +# } +# desc = invasion_war_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:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# scope:defender = { accolade_defender_war_end_glory_gain_med_effect = yes } +# +# # Prestige for the attacker's war allies +# +# # 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 +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# scope:attacker = { +# add_prestige = mongol_invasion_cb_prestige_white_peace +# } +# +# # 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 = invasion_war_white_peace_desc_defender +# } +# desc = invasion_war_white_peace_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 loss for the attacker +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 5 +# } +# add_prestige = { +# value = massive_prestige_value +# multiply = -1.0 +# } +# } +# +# setup_invasion_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# +# # Attacker loses Prestige, all other war participants gain Prestige (Defender gains full prestige, all allies on both sides gain based on war contribution). +# modify_all_participants_fame_values = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# 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 +# } +# +# transfer_behavior = transfer +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# transfer_behavior = transfer +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "HUNGARIAN_INVASION_WAR_NAME" +# war_name_base = "HUNGARIAN_INVASION_WAR_NAME_BASE" +# cb_name = "HUNGARIAN_INVASION_CB_NAME" +# +# interface_priority = 100 +# +# use_de_jure_wargoal_only = yes +# +# attacker_wargoal_percentage = 0.5 +#} +# +########### +## Special 'invasion' CB used by the Azariqa to secede in Iraq +## If victorious, they directly usurp all land within Jazira & create the relevant title. +########### +# +#azariqa_rebellion_cb = { +# icon = invasion +# group = event +# +# combine_into_one = yes +# should_show_war_goal_subview = yes +# mutually_exclusive_titles = { always = yes } +# allow_hostages = no +# +# allowed_for_character = {} +# +# allowed_for_character_display_regardless = {} +# +# allowed_against_character = {} +# target_titles = all +# target_title_tier = kingdom +# target_de_jure_regions_above = yes +# ignore_effect = change_title_holder +# +# valid_to_start = { always = no } +# +# 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_invasion_war_invalidated_message +# +# cost = {} +# +# on_declaration = { on_declared_war = yes } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = invasion_war_victory_desc_attacker +# } +# desc = invasion_war_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_high_effect = yes } +# +# create_title_and_vassal_change = { +# type = conquest +# save_scope_as = change +# add_claim_on_loss = yes +# } +# setup_invasion_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# change = scope:change +# take_occupied = yes +# } +# # Take k_jazira directly. +# title:k_jazira = { +# if = { +# limit = { +# OR = { +# is_title_created = no +# holder = { +# OR = { +# this = scope:defender +# any_liege_or_above = { this = scope:defender } +# } +# } +# } +# } +# change_title_holder = { +# holder = scope:attacker +# change = scope:change +# } +# } +# } +# resolve_title_and_vassal_change = scope:change +# +# create_title_and_vassal_change = { +# type = independency +# save_scope_as = change +# } +# scope:attacker = { +# becomes_independent = { change = scope:change } +# } +# resolve_title_and_vassal_change = scope:change +# +# hidden_effect = { +# scope:attacker = { +# faith = { save_scope_as = faith } +# set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:attacker } +# } +# } +# +# # 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_invasion_cb' +# IS_RELIGIOUS_WAR = yes +# WINNER_FAME_SCALE = 10 +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # 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 = invasion_war_white_peace_desc_defender +# } +# desc = invasion_war_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:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } +# 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: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 +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# scope:attacker = { +# add_prestige = mongol_invasion_cb_prestige_white_peace +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# # 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 = invasion_war_white_peace_desc_defender +# } +# desc = invasion_war_white_peace_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 loss for the attacker +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 5 +# } +# add_prestige = { +# value = massive_prestige_value +# multiply = -1.0 +# } +# } +# +# setup_invasion_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# +# # Attacker loses Prestige, all other war participants gain Prestige (Defender gains full prestige, all allies on both sides gain based on war contribution). +# modify_all_participants_fame_values = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# imprison_character_effect = { +# TARGET = scope:attacker +# IMPRISONER = scope:defender +# } +# +# # 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 +# } +# +# transfer_behavior = transfer +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# war_name = "INVASION_WAR_NAME" +# war_name_base = "INVASION_WAR_NAME_BASE" +# cb_name = "INVASION_CB_NAME" +# +# interface_priority = 100 +# +# use_de_jure_wargoal_only = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 150 +# max_attacker_score_from_occupation = 150 +#} + +########## +# Special war to claim Byzantium for Raiktor +# If victorious, you gain the kingdom of Epirus for yourself! +########## + +raiktor_claim_cb = { + icon = claim_cb + group = event + + should_show_war_goal_subview = yes + mutually_exclusive_titles = { always = yes } + allow_hostages = no + + allowed_for_character = {} + + allowed_for_character_display_regardless = {} + + allowed_against_character = {} + target_titles = claim + target_title_tier = all + target_de_jure_regions_above = yes + ignore_effect = change_title_holder + + valid_to_start = { always = no } + + should_invalidate = { + + } + + on_invalidated_desc = msg_invasion_war_invalidated_message + + cost = {} + + on_declaration = { on_declared_war = yes } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:claimant = { is_local_player = yes } + } + desc = claim_cb_victory_desc_attacker_claimant + } + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = claim_cb_victory_desc_attacker + } + desc = claim_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 } + + custom_tooltip = you_gain_epirus + scope:defender = { + pay_short_term_gold = { + target = scope:attacker + gold = scope:defender.major_gold_value + } + } + hidden_effect = { + title:k_epirus = { + every_in_de_jure_hierarchy = { + limit = { + tier >= tier_county + holder ?= { + OR = { + this = scope:defender + is_vassal_or_below_of = scope:defender + } + } + } + add_to_list = epirus_titles + } + } + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change_epirus + add_claim_on_loss = yes + } + + title:k_epirus = { + if = { + limit = { + OR = { + is_title_created = no + holder = { + OR = { + this = scope:defender + any_liege_or_above = { this = scope:defender } + } + } + } + } + change_title_holder = { + holder = scope:attacker + change = scope:change_epirus + } + } + } + + every_in_list = { + list = epirus_titles + change_title_holder = { + holder = scope:attacker + change = scope:change_epirus + } + } + + resolve_title_and_vassal_change = scope:change_epirus + } + + custom_tooltip = raiktor_gains_byzantium + hidden_effect = { + create_title_and_vassal_change = { + type = conquest_claim + save_scope_as = change + add_claim_on_loss = yes + } + + setup_claim_cb = { + titles = target_titles + attacker = scope:attacker + defender = scope:defender + claimant = scope:claimant + change = scope:change + } + + resolve_title_and_vassal_change = scope:change + } + + if = { + limit = { + scope:claimant != scope:attacker + scope:claimant.primary_title.tier < scope:attacker.primary_title.tier + scope:claimant = { + NOT = { target_is_liege_or_above = scope:attacker } + } + } + + create_title_and_vassal_change = { + type = conquest_claim + save_scope_as = change_two + add_claim_on_loss = yes + } + scope:claimant = { + change_liege = { + liege = scope:attacker + change = scope:change_two + } + } + resolve_title_and_vassal_change = scope:change_two + } + + if = { + limit = { + scope:claimant != scope:attacker + scope:attacker = { + can_add_hook = { + type = loyalty_hook + target = scope:claimant + } + } + } + scope:attacker = { + add_hook = { + target = scope:claimant + type = loyalty_hook + } + } + } + + # 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_claim_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = 10 + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 10 + LOSER_ALLY_FAME_SCALE = 10 + } + + # 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 } + + hidden_effect = { + scope:claimant = { + remove_trait = devoted + add_gold = 750 + } + } + + # 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 = claim_cb_white_peace_desc_defender + } + desc = claim_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 + } + } + + #EP2 accolade glory gain for defender doing alright + scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } + + # press claims + every_in_list = { + list = target_titles + if = { + limit = { scope:claimant = { has_weak_claim_on = prev } } + scope:claimant = { + make_claim_strong = prev + } + } + } + + # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + setup_claim_cb = { + titles = target_titles + attacker = scope:attacker + defender = scope:defender + claimant = scope:claimant + victory = no + } + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = scope:cb_prestige_factor # Set by 'setup_claim_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_claim_cb' + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 10 + LOSER_ALLY_FAME_SCALE = 10 + } + # Defender neither gains nor loses any prestige. + scope:defender = { + stress_impact = { + arrogant = medium_stress_impact_gain + } + } + + if = { + limit = { + scope:claimant != scope:attacker + scope:attacker = { + can_add_hook = { + type = favor_hook + target = scope:claimant + } + } + } + scope:attacker = { + add_hook = { + target = scope:claimant + type = favor_hook + } + } + } + + # 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 = claim_cb_defeat_desc_defender + } + triggered_desc = { + trigger = { scope:claimant = { is_local_player = yes } } + desc = claim_cb_defeat_desc_attacker_claimant + } + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = claim_cb_defeat_desc_attacker + } + desc = claim_cb_defeat_desc + } + + } + + on_defeat = { + scope:attacker = { show_pow_release_message_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 + } + + # lose claims + every_in_list = { + list = target_titles + scope:claimant = { + remove_claim = prev + } + } + + if = { + limit = { + scope:claimant != scope:attacker + scope:attacker = { + can_add_hook = { + type = favor_hook + target = scope:claimant + } + } + } + scope:attacker = { + add_hook = { + target = scope:claimant + type = favor_hook + } + } + } + + # Attacker pays gold to the defender as reparations. + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 3 + } + } + # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. + setup_claim_cb = { + titles = target_titles + attacker = scope:attacker + defender = scope:defender + claimant = scope:claimant + victory = no + } + # Attacker loses Prestige, all other war participants gain Prestige (Defender gains full prestige, all allies on both sides gain based on war contribution). + modify_all_participants_fame_values = { + WINNER = scope:defender + LOSER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = scale_10_war_defender_win + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 10 + LOSER_ALLY_FAME_SCALE = 10 + } + + # 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 + } + + transfer_behavior = transfer + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "CLAIM_WAR_NAME" + my_war_name = "CLAIM_WAR_NAME_MY" + war_name_base = "CLAIM_WAR_NAME_BASE" + cb_name = "CLAIM_CB_NAME" + + interface_priority = 100 + + attacker_wargoal_percentage = 0.8 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 +} + +########## +# Another Raiktor war, specifically for a few counties +# If victorious, Raiktor gets three counties along the coast +########## + +raiktor_conquest_cb = { + icon = claim_cb + group = event + + combine_into_one = yes + should_show_war_goal_subview = yes + mutually_exclusive_titles = { always = yes } + allow_hostages = no + + allowed_for_character = {} + + allowed_for_character_display_regardless = {} + + allowed_against_character = {} + target_titles = all + target_title_tier = all + target_de_jure_regions_above = yes + ignore_effect = change_title_holder + + valid_to_start = { always = no } + + should_invalidate = { + + } + + on_invalidated_desc = msg_invasion_war_invalidated_message + + cost = {} + + 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_high_effect = yes } + scope:attacker = { + random_courtier = { + limit = { + has_character_flag = raiktor + } + save_scope_as = vassal_to_be + } + } + + if = { + limit = { + exists = scope:vassal_to_be + } + custom_tooltip = raiktor_vassal_desc + } + else = { + custom_tooltip = raiktor_vassal_backup_desc + } + + hidden_effect = { + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + setup_invasion_cb = { + titles = target_titles + attacker = scope:attacker + defender = scope:defender + change = scope:change + take_occupied = no + } + resolve_title_and_vassal_change = scope:change + + if = { + limit = { + exists = scope:vassal_to_be + } + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + + every_in_list = { + list = target_titles + change_title_holder = { + holder = scope:vassal_to_be + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + } + + } + + + if = { + limit = { + exists = scope:vassal_to_be + scope:attacker = { + can_add_hook = { + type = loyalty_hook + target = scope:vassal_to_be + } + } + } + scope:attacker = { + add_hook = { + target = scope:vassal_to_be + type = loyalty_hook + } + } + } + + # 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_invasion_cb' + IS_RELIGIOUS_WAR = yes + WINNER_FAME_SCALE = 10 + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 10 + LOSER_ALLY_FAME_SCALE = 10 + } + + # 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 } + + hidden_effect = { + scope:claimant = { + remove_trait = devoted + add_gold = 100 + } + } + + # 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 = invasion_war_white_peace_desc_defender + } + desc = invasion_war_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:attacker = { accolade_attacker_war_end_glory_gain_low_effect = yes } + 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: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 + } + + # Truce + add_truce_white_peace_effect = yes + + scope:attacker = { + add_prestige = mongol_invasion_cb_prestige_white_peace + stress_impact = { + ambitious = medium_stress_impact_gain + arrogant = medium_stress_impact_gain + } + } + + scope:defender = { + stress_impact = { + arrogant = medium_stress_impact_gain + } + } + + # 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 = invasion_war_white_peace_desc_defender + } + desc = invasion_war_white_peace_desc + } + } + + on_defeat = { + scope:attacker = { show_pow_release_message_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 loss for the attacker + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 5 + } + add_prestige = { + value = massive_prestige_value + multiply = -1.0 + } + } + + setup_invasion_cb = { + titles = target_titles + attacker = scope:attacker + defender = scope:defender + claimant = scope:claimant + victory = no + } + + # Attacker loses Prestige, all other war participants gain Prestige (Defender gains full prestige, all allies on both sides gain based on war contribution). + modify_all_participants_fame_values = { + WINNER = scope:defender + LOSER = scope:attacker + FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' + IS_RELIGIOUS_WAR = no + WINNER_FAME_SCALE = scale_10_war_defender_win + LOSER_FAME_SCALE = -10 + WINNER_ALLY_FAME_SCALE = 10 + LOSER_ALLY_FAME_SCALE = 10 + } + + add_truce_attacker_defeat_effect = yes + + scope:attacker = { + save_temporary_scope_as = loser + } + on_lost_aggression_war_discontent_loss = yes + + imprison_character_effect = { + TARGET = scope:attacker + IMPRISONER = scope:defender + } + + # 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 + } + + transfer_behavior = transfer + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "CONQUEST_WAR_NAME" + war_name_base = "CONQUEST_WAR_NAME_BASE" + cb_name = "CONQUEST_COUNTY_CB_NAME" + + interface_priority = 100 + + use_de_jure_wargoal_only = yes + + attacker_wargoal_percentage = 0.8 + + attacker_ticking_warscore_delay = { days = 0 } + attacker_score_from_occupation_scale = 300 + defender_score_from_occupation_scale = 300 + attacker_score_from_battles_scale = 300 + defender_score_from_battles_scale = 300 + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 +} + +########## +# Special 'conquest' CB used by the Norse whilst they harass the North Atlantic. +# If you feel like you can't get away from the Vikings in the 800s & 900s, they're doing their job. +########## + +fp1_scandi_adventurer_conquest = { + icon = fp1_varangian_adventurer_conquest + group = event + + combine_into_one = yes + should_show_war_goal_subview = yes + mutually_exclusive_titles = { always = yes } + + allowed_for_character = { + is_ai = yes + } + + allowed_against_character = { + always = yes + } + target_titles = all + target_title_tier = duchy + target_de_jure_regions_above = yes + ignore_effect = change_title_holder + + valid_to_start = { + always = no + } + + 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 = { + scope:attacker = { clean_scandinavian_adventurer_effect = yes } + } + + on_declaration = { + on_declared_war = yes + + # If scope:defender is a player or a king, give them a few choices. + scope:defender = { + if = { + limit = { + OR = { + is_ai = no + highest_held_title_tier >= tier_kingdom + } + } + trigger_event = { + id = fp1_trade_events.1131 + days = 30 + } + } + } + } + + 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 = { + # 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 + } + + # go through the dejure hierarchy under target titles, transfer titles with same or worse tolerance holders (their religion equally or less tolerated than the defender's), + # take the holder as vassal otherwise and don't go deeper + every_in_list = { + list = target_titles + custom_tooltip = CONQUEST_CB_TITLE + every_in_de_jure_hierarchy = { + continue = { + OR = { + NOT = { exists = holder } + NOT = { + holder = { target_is_liege_or_above = scope:defender } + } + AND = { + scope:attacker.faith = { + faith_hostility_level_comparison = { prev.holder.faith <= scope:defender.faith } + } + holder = { + OR = { + this = scope:defender + target_is_liege_or_above = scope:defender + } + } + } + } + tier > tier_county + } + limit = { + tier <= tier_duchy + holder ?= { + OR = { + this = scope:defender + target_is_liege_or_above = scope:defender + } + } + } + + if = { + limit = { + OR = { + scope:attacker.faith = { + faith_hostility_level_comparison = { + prev.holder.faith >= scope:defender.faith + } + } + holder.primary_title.tier >= scope:attacker.primary_title.tier + } + } + add_to_temporary_list = titles_taken + } + else = { + holder = { + add_to_temporary_list = vassals_taken + } + } + } + } + + every_in_list = { + list = titles_taken + change_title_holder = { + holder = scope:attacker + change = scope:change + take_baronies = yes + } + } + + every_in_list = { + list = vassals_taken + change_liege = { + liege = 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 = 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 + + #Clean-up adventurer things. + scope:attacker = { clean_scandinavian_adventurer_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 = county_conquest_cb_white_peace_desc_defender + } + desc = county_conquest_cb_white_peace_desc + } + } + + on_white_peace = { + #EP2 accolade glory gain for doing ok against higher ranked enemy + scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } + + # Prestige loss for the attacker + 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 important as the scales 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 + + #Clean-up adventurer things. + scope:attacker = { clean_scandinavian_adventurer_effect = yes } + + # Since they failed to win, take away their efficacy loan. + scope:attacker = { remove_short_term_gold = scandinavian_adventurer_efficacy_loan_value } + + # 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 = 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 = { + # 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 + } + + # Prestige loss for the attacker + scope:attacker = { + if = { + limit = { scope:war ?= { NOT = { has_variable = no_gold_reparations } } } + pay_short_term_gold_reparations_effect = { GOLD_VALUE = 5 } + } + add_prestige = { + value = major_prestige_value + multiply = -1.0 + } + } + + # Prestige for Defender + scope:defender = { + add_prestige_war_defender_effect = { + PRESTIGE_VALUE = major_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: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 + + # Give scope:defender some goodies. + scope:defender = { + # Including a break from the fighting. + fp1_add_realm_size_appropriate_sa_reprieve_effect = yes + # And a tally towards a nickname. + ## Which starts... + if = { + limit = { + NOT = { has_variable = fp1_has_beaten_sa_progress } + } + set_variable = { + name = fp1_has_beaten_sa_progress + value = 1 + } + } + ## ... and grows... + else_if = { + limit = { + has_variable = fp1_has_beaten_sa_progress + ## If <9 adventurers has already been defeated, add +1 otherwise... + var:fp1_has_beaten_sa_progress <= 8 + } + change_variable = { + name = fp1_has_beaten_sa_progress + add = 1 + } + } + ## ... towards a pay-off. + ## if >8 adventures has already been defeated give nickname + else_if = { + limit = { + OR = { + has_bad_nickname = yes + has_any_nickname = no + } + } + hidden_effect = { + random_list = { + 20 = { give_nickname = nick_the_bane_of_danes } + 20 = { give_nickname = nick_the_culture_wall } + 20 = { give_nickname = nick_nord_foe } + 20 = { give_nickname = nick_the_scourge_of_the_northerners } + 20 = { give_nickname = nick_the_burner_of_ash } + } + } + } + } + + #Clean-up adventurer things. + scope:attacker = { clean_scandinavian_adventurer_effect = yes } + + # Since they lost, take away their efficacy loan. + scope:attacker = { remove_short_term_gold = scandinavian_adventurer_efficacy_loan_value } + + # 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 + } + + transfer_behavior = transfer + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "CONQUEST_WAR_NAME" + war_name_base = "CONQUEST_WAR_NAME_BASE" + cb_name = "CONQUEST_DUCHY_CB_NAME" + + 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 +} + +########## +# Special 'vassalise' CB used by diarchs when trying to retract a vassal from a co-vassal. +# If victorious, the diarch takes the affected vassal for their own. +########## + +diarch_vassalisation_cb = { + icon = vassalization + group = event + ai_only_against_neighbors = yes + allow_hostages = no + + allowed_for_character = { always = yes } + + target_titles = de_jure + + should_invalidate = { + scope:attacker = { + # No longer same realm. + top_liege != scope:defender.top_liege + # No longer of a suitable tier. + highest_held_title_tier <= scope:secondary_recipient.highest_held_title_tier + } + } + + on_declaration = { on_declared_war = yes } + + on_invalidated_desc = msg_vassalization_war_invalidated_message + + on_invalidated = {} + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { scope:attacker = { is_local_player = yes } } + desc = diarch_vassalization_cb_victory_desc_attacker + } + triggered_desc = { + trigger = { scope:defender = { is_local_player = yes } } + desc = diarch_vassalization_cb_victory_desc_defender + } + desc = diarch_vassalization_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_low_effect = yes } + + create_title_and_vassal_change = { + type = conquest + save_scope_as = change + add_claim_on_loss = yes + } + setup_de_jure_cb = { + attacker = scope:attacker + defender = scope:defender + change = scope:change + } + resolve_title_and_vassal_change = scope:change + + # Prestige level progress for the attacker + scope:attacker = { + add_prestige_experience = { + value = medium_prestige_value + } + } + + # Prestige loss for the defender + scope:defender = { + add_prestige = { + value = medium_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 + 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 + + #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 = diarch_vassalization_cb_white_peace_desc_defender + } + desc = diarch_vassalization_cb_white_peace_desc + } + } + + on_white_peace = { + scope:attacker = { show_pow_release_message_effect = yes } + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = minor_prestige_value + multiply = -1.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 # Not important as the scales are identical + FAME_BASE = minor_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_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 = diarch_vassalization_cb_white_peace_desc_defender + } + triggered_desc = { + trigger = { + scope:attacker = { + is_local_player = yes + has_targeting_faction = yes + } + } + desc = diarch_vassalization_cb_defeat_desc_attacker + } + desc = diarch_vassalization_cb_white_peace_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 + } + + # 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 + } + } + + # Prestige for the defender + scope:defender = { + add_prestige_war_defender_effect = { + PRESTIGE_VALUE = 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:defender + FAME_BASE = major_prestige_value + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 1 + LOSER_ALLY_FAME_SCALE = 1 + } + + scope:attacker = { + save_temporary_scope_as = loser + } + + # Truce + add_truce_attacker_defeat_effect = yes + + 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 + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "DIARCH_VASSALIZATION_WAR_NAME" + war_name_base = "DIARCH_VASSALIZATION_WAR_NAME_BASE" + cb_name = "DIARCH_VASSALIZATION_CB_NAME" + interface_priority = 59 + + ticking_war_score_targets_entire_realm = yes + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 + attacker_ticking_warscore = 0 + attacker_wargoal_percentage = 0.8 + + max_ai_diplo_distance_to_title = 500 +} + +########## +# Special CB used against diarchs when trying to force them from office. +# If victorious, the rebel imprisons the diarch and takes a chunk of their cash. +########## + +remove_regent_cb = { + icon = dissolution_war + group = event + + allow_hostages = no + allowed_for_character = { always = yes } + + allowed_against_character = { + # Scope:defender must be the diarch of one of scope:attacker's lieges. + scope:attacker = { + any_liege_or_above = { + has_active_diarchy = yes + diarch = scope:defender + has_diarchy_active_parameter = diarchy_is_regency + } + } + } + + ignore_effect = change_title_holder + valid_to_start = { always = no } + + should_invalidate = {} + + on_invalidated_desc = msg_remove_regent_cb_invalidated_message + + on_invalidated = { + #remove the temporary fort level + root.war.var:barony_with_temporary_fort ?= { remove_province_modifier = temporary_fort_province_modifier } + } + + cost = {} + + on_declaration = { + on_declared_war = yes + #add a temporary fort level so that the diarch can be sieged + if = { + limit = { + scope:defender = { + capital_barony.title_province = { fort_level = 0 } + } + } + scope:defender = { + capital_barony.title_province = { + save_scope_as = defender_capital + add_province_modifier = temporary_fort_province_modifier + } + } + } + war ?= { + set_variable = { + name = barony_with_temporary_fort + value = scope:defender_capital + } + } + } + + on_victory_desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:attacker = { is_local_player = yes } + } + desc = remove_regent_cb_victory_desc_attacker + } + desc = remove_regent_cb_victory_desc + } + } + + on_victory = { + # Scope:attacker imprisons the diarch instead. + imprison_character_effect = { + TARGET = scope:defender + IMPRISONER = scope:attacker + } + # Provided our primaries share a realm, the regency moves on, otherwise, we're just warring for prison. + scope:defender = { + if = { + limit = { + top_liege = scope:attacker.top_liege + # Plus, make sure that they're still a diarch. + is_diarch = yes + } + depose_diarch = yes + } + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort ?= { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } + } + + # 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 + + # 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 = remove_regent_cb_white_peace_desc_defender + } + desc = remove_regent_cb_white_peace_desc + } + } + + on_white_peace = { + #EP2 accolade glory gain for doing ok against higher ranked enemy + scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } + + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = minor_prestige_value + multiply = -1.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 # Not important as the scales are identical + FAME_BASE = medium_prestige_value + IS_RELIGIOUS_WAR = no + WINNER_ALLY_FAME_SCALE = 1 + LOSER_ALLY_FAME_SCALE = 1 + } + + scope:defender = { + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort = { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } + stress_impact = { + arrogant = medium_stress_impact_gain + } + } + + 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 = remove_regent_cb_defeat_desc_defender + } + desc = remove_regent_cb_defeat_desc + } + } + + on_defeat = { + 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 + } + + # Prestige loss for the attacker + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 5 + } + add_prestige = { + value = major_prestige_value + multiply = -1.0 + } + } + + # Get imprisoned anyway. + imprison_character_effect = { + TARGET = scope:attacker + IMPRISONER = scope:defender + } + + # Prestige for Defender + scope:defender = { + add_prestige_war_defender_effect = { + PRESTIGE_VALUE = major_prestige_value + } + #remove the temporary fort level + if = { + limit = { + root.war.var:barony_with_temporary_fort = { has_province_modifier = temporary_fort_province_modifier } + } + custom_tooltip = remove_regent_cb_temporary_fort + hidden_effect = { + root.war.var:barony_with_temporary_fort = { + remove_province_modifier = temporary_fort_province_modifier + } + } + } + } + + # 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 + + # 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 + } + + transfer_behavior = transfer + + on_primary_attacker_death = inherit + on_primary_defender_death = inherit + + attacker_allies_inherit = yes + defender_allies_inherit = yes + + war_name = "REMOVE_REGENT_WAR_NAME" + war_name_base = "REMOVE_REGENT_WAR_NAME_BASE" + cb_name = "REMOVE_REGENT_CB_NAME" + + interface_priority = 79 + + attacker_wargoal_percentage = 0.8 + + max_defender_score_from_occupation = 150 + max_attacker_score_from_occupation = 150 +} diff --git a/common/casus_belli_types/00_religious_war.txt b/common/casus_belli_types/00_religious_war.txt index fd057ff6..ec991c6a 100644 --- a/common/casus_belli_types/00_religious_war.txt +++ b/common/casus_belli_types/00_religious_war.txt @@ -3253,36 +3253,36 @@ undirected_great_holy_war = { force_truce_GHW_defenders_effect = yes on_declared_war = yes #Tell non diverting-players about the crazy 4th crusade plan - if = { - limit = { - scope:attacker.faith = { this = faith:roman_catholic } - exists = global_var:byz_claimant_champion - global_var:byz_claimant_champion = { - is_alive = yes - is_ruler = yes - any_character_war = { - using_cb = crusading_claim_cb - } - } - } - global_var:byz_claimant_champion = { - random_character_war = { - limit = { - using_cb = crusading_claim_cb - } - save_scope_as = redirected_crusade - } - } - every_player = { - limit = { - NOT = { - is_attacker_in_war = scope:redirected_crusade - } - ep3_frankokratia_notification_recipient_trigger = yes - } - trigger_event = ep3_frankokratia_events.0031 - } - } +# if = { +# limit = { +# scope:attacker.faith = { this = faith:roman_catholic } +# exists = global_var:byz_claimant_champion +# global_var:byz_claimant_champion = { +# is_alive = yes +# is_ruler = yes +# any_character_war = { +# using_cb = crusading_claim_cb +# } +# } +# } +# global_var:byz_claimant_champion = { +# random_character_war = { +# limit = { +# using_cb = crusading_claim_cb +# } +# save_scope_as = redirected_crusade +# } +# } +# every_player = { +# limit = { +# NOT = { +# is_attacker_in_war = scope:redirected_crusade +# } +# ep3_frankokratia_notification_recipient_trigger = yes +# } +# trigger_event = ep3_frankokratia_events.0031 +# } +# } every_player = { #Fluff for attackers/defenders limit = { scope:attacker.faith.great_holy_war = { diff --git a/common/casus_belli_types/07_ep3_wars.txt b/common/casus_belli_types/07_ep3_wars.txt index 3464bc37..63aa4eb7 100644 --- a/common/casus_belli_types/07_ep3_wars.txt +++ b/common/casus_belli_types/07_ep3_wars.txt @@ -2876,825 +2876,825 @@ ep3_laamp_raid_contract_cb = { } } } - -crusading_claim_cb = { - icon = undirected_great_holy_war - group = religious_script_only - - full_occupation_by_defender_gives_victory = no - attacker_capital_gives_war_score = no - check_all_defenders_for_ticking_war_score = yes - defender_ticking_warscore = 0.125 - imprisonment_by_defender_give_war_score = no - defender_score_from_battles_scale = 125 - attacker_score_from_battles_scale = 125 - - occupation_participation_mult = 0.5 - siege_participation_mult = 1 - battle_participation_mult = 7.5 - - # Root is the title - # scope:claimant is the claimant - # scope:attacker is the attacker - # scope:defender is the defender - is_allowed_claim_title = { - custom_description = { - text = "claimant_titles_held_by_you_or_vassal" - NOR = { - holder = scope:attacker - holder = { - target_is_liege_or_above = scope:attacker - } - } - } - } - - cost = { - } - - target_titles = claim - target_title_tier = all - - on_declaration = { - on_declared_war = yes - if = { - limit = { - scope:defender = { is_sibling_of = scope:attacker } - } - scope:attacker = { - add_achievement_flag_effect = { FLAG = achievement_bad_blood_flag } - } - } - scope:attacker = { - random_character_war = { - limit = { - using_cb = crusading_claim_cb - } - every_war_attacker = { - save_temporary_scope_as = war_attackers - scope:attacker = { - random_owned_story = { - type = frankokratia_story - add_to_variable_list = { - name = frankokratia_leaders - target = scope:war_attackers - } - } - } - } - } - } - } - - should_invalidate = { - OR = { - 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 - } - } - } - } - } - scope:claimant = { - is_alive = no - } - } - } - - on_invalidated_desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:claimant != scope:attacker - scope:claimant = { is_alive = no } - } - desc = msg_claim_war_invalidated_claimant_unavailable_dead_message - } - desc = msg_claim_war_invalidated_message - } - } - - on_invalidated = { - scope:attacker = { - add_prestige = medium_prestige_loss - add_piety = medium_piety_loss - random_owned_story = { - type = frankokratia_story - set_variable = { - name = franko_war_complete - } - } - } - scope:defender = { - add_piety = medium_piety_gain - } - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:claimant = { is_local_player = yes } - } - desc = claim_cb_victory_desc_attacker_claimant - } - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = claim_cb_victory_desc_attacker - } - desc = claim_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { - random_character_war = { - limit = { - using_cb = crusading_claim_cb - } - every_war_attacker = { - save_temporary_scope_as = war_attackers - scope:attacker = { - random_owned_story = { - type = frankokratia_story - add_to_variable_list = { - name = frankokratia_leaders - target = scope:war_attackers - } - } - } - } - } - random_owned_story = { - type = frankokratia_story - set_variable = { - name = franko_war_complete - } - } - } - - 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_high_effect = yes } - - scope:defender ?= { - if = { - limit = { - top_liege = this - government_allows = administrative - primary_title = { is_in_list = target_titles } - } - every_held_title = { - title_tier >= county - limit = { - is_noble_family_title = no - } - add_to_list = target_titles - } - } - } - - scope:claimant = { - custom_tooltip = crusading_claim_gain_byz_emp_tooltip - } - custom_tooltip = crusading_claim_crusader_rewards_tooltip - hidden_effect = { - create_title_and_vassal_change = { - type = conquest_claim - save_scope_as = change - add_claim_on_loss = yes - } - # Create a claim CB which is executed to handle title/vassal changes, in addition to being used to calculate Prestige awards for war participants. - setup_claim_cb = { - titles = target_titles - attacker = scope:attacker - defender = scope:defender - claimant = scope:claimant - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - - if = { - limit = { - scope:claimant != scope:attacker - scope:attacker = { - can_add_hook = { - type = favor_hook - target = scope:claimant - } - } - } - scope:attacker = { - add_hook = { - target = scope:claimant - type = favor_hook - } - } - } - - # 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_claim_cb' - IS_RELIGIOUS_WAR = no - WINNER_FAME_SCALE = 10 - LOSER_FAME_SCALE = -10 - WINNER_ALLY_FAME_SCALE = 10 - LOSER_ALLY_FAME_SCALE = 10 - } - - # FP1: note the victory for future memorialisation via stele (if applicable). - scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } - - #THE LATINS MUST BE PAID - scope:claimant = { - trigger_event = ep3_frankokratia_events.0040 - } - - # 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 = claim_cb_white_peace_desc_defender - } - desc = claim_cb_white_peace_desc - } - - } - - on_white_peace = { - scope:attacker = { - random_character_war = { - limit = { - using_cb = crusading_claim_cb - } - every_war_attacker = { - save_temporary_scope_as = war_attackers - scope:attacker = { - random_owned_story = { - type = frankokratia_story - add_to_variable_list = { - name = frankokratia_leaders - target = scope:war_attackers - } - } - } - } - } - random_owned_story = { - type = frankokratia_story - set_variable = { - name = franko_war_complete - } - } - } - - scope:attacker = { - show_pow_release_message_effect = yes - stress_impact = { - ambitious = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - } - - #EP2 accolade glory gain for defender doing alright - scope:defender = { accolade_defender_war_end_glory_gain_med_effect = yes } - - # press claims - every_in_list = { - list = target_titles - if = { - limit = { scope:claimant = { has_weak_claim_on = prev } } - scope:claimant = { - make_claim_strong = prev - } - } - } - - # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. - setup_claim_cb = { - titles = target_titles - attacker = scope:attacker - defender = scope:defender - claimant = scope:claimant - victory = no - } - # Prestige and piety loss for the attacker - scope:attacker = { - add_piety = major_piety_loss - } - # Attackers all loses Prestige, defenders gain it - modify_all_participants_fame_values_crusading_claim = { - WINNER = scope:defender - LOSER = scope:attacker - FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' - WINNER_FAME_SCALE = scale_10_war_defender_win - LOSER_FAME_SCALE = -10 - WINNER_ALLY_FAME_SCALE = 10 - LOSER_ALLY_FAME_SCALE = 10 - } - # Defender neither gains nor loses any prestige. - scope:defender = { - stress_impact = { - arrogant = medium_stress_impact_gain - } - } - - if = { - limit = { - scope:claimant != scope:attacker - scope:attacker = { - can_add_hook = { - type = favor_hook - target = scope:claimant - } - } - } - scope:attacker = { - add_hook = { - target = scope:claimant - type = favor_hook - } - } - } - - # Truce - add_truce_white_peace_effect = yes - - - #General event that tells all players what happened - every_player = { - limit = { - OR = { - capital_province = { - OR = { - geographical_region = world_europe - geographical_region = world_asia_minor - geographical_region = world_middle_east - geographical_region = world_africa_north -# county = { -# OR = { -# empire = title:e_caspian-pontic_steppe -# empire = title:e_byzantium -# } +# +#crusading_claim_cb = { +# icon = undirected_great_holy_war +# group = religious_script_onlyFr +# +# full_occupation_by_defender_gives_victory = no +# attacker_capital_gives_war_score = no +# check_all_defenders_for_ticking_war_score = yes +# defender_ticking_warscore = 0.125 +# imprisonment_by_defender_give_war_score = no +# defender_score_from_battles_scale = 125 +# attacker_score_from_battles_scale = 125 +# +# occupation_participation_mult = 0.5 +# siege_participation_mult = 1 +# battle_participation_mult = 7.5 +# +# # Root is the title +# # scope:claimant is the claimant +# # scope:attacker is the attacker +# # scope:defender is the defender +# is_allowed_claim_title = { +# custom_description = { +# text = "claimant_titles_held_by_you_or_vassal" +# NOR = { +# holder = scope:attacker +# holder = { +# target_is_liege_or_above = scope:attacker +# } +# } +# } +# } +# +# cost = { +# } +# +# target_titles = claim +# target_title_tier = all +# +# on_declaration = { +# on_declared_war = yes +# if = { +# limit = { +# scope:defender = { is_sibling_of = scope:attacker } +# } +# scope:attacker = { +# add_achievement_flag_effect = { FLAG = achievement_bad_blood_flag } +# } +# } +# scope:attacker = { +# random_character_war = { +# limit = { +# using_cb = crusading_claim_cb +# } +# every_war_attacker = { +# save_temporary_scope_as = war_attackers +# scope:attacker = { +# random_owned_story = { +# type = frankokratia_story +# add_to_variable_list = { +# name = frankokratia_leaders +# target = scope:war_attackers # } - } - } - liege = scope:defender - OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } - } - } - add_character_flag = frankokratia_crusaders_lose_outcome - add_character_flag = frankokratia_crusaders_white_peace_outcome - trigger_event = { - id = ep3_frankokratia_events.0060 - days = 1 - } - } - #Force end on story owner to be safe (necessary for AI owner) - if = { - limit = { - global_var:byz_claimant_champion ?= { - any_owned_story = { - type = frankokratia_story - } - } - } - global_var:byz_claimant_champion = { - trigger_event = { - id = ep3_frankokratia_events.0061 - days = 3 - } - } - } - - # 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 = claim_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { scope:claimant = { is_local_player = yes } } - desc = claim_cb_defeat_desc_attacker_claimant - } - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = claim_cb_defeat_desc_attacker - } - desc = claim_cb_defeat_desc - } - - } - - on_defeat = { - scope:attacker = { - random_character_war = { - limit = { - using_cb = crusading_claim_cb - } - every_war_attacker = { - save_temporary_scope_as = war_attackers - scope:attacker = { - random_owned_story = { - type = frankokratia_story - add_to_variable_list = { - name = frankokratia_leaders - target = scope:war_attackers - } - } - } - } - } - random_owned_story = { - type = frankokratia_story - set_variable = { - name = franko_war_complete - } - } - } - scope:attacker = { show_pow_release_message_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 - } - - # lose claims - every_in_list = { - list = target_titles - scope:claimant = { - remove_claim = prev - } - } - - if = { - limit = { - scope:claimant != scope:attacker - scope:attacker = { - can_add_hook = { - type = favor_hook - target = scope:claimant - } - } - } - scope:attacker = { - add_hook = { - target = scope:claimant - type = favor_hook - } - } - } - - # Attacker pays gold to the defender as reparations. - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - #Loses piety for this debacle - add_piety = massive_piety_loss - } - #Defender should gain piety - scope:defender = { - add_piety = massive_piety_gain - } - # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. - setup_claim_cb = { - titles = target_titles - attacker = scope:attacker - defender = scope:defender - claimant = scope:claimant - victory = no - } - # Attackers all loses Prestige, defenders gain it - modify_all_participants_fame_values_crusading_claim = { - WINNER = scope:defender - LOSER = scope:attacker - FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' - WINNER_FAME_SCALE = scale_10_war_defender_win - LOSER_FAME_SCALE = -10 - WINNER_ALLY_FAME_SCALE = 10 - LOSER_ALLY_FAME_SCALE = 10 - } - - # Truce - add_truce_attacker_defeat_effect = yes - - scope:attacker = { - save_temporary_scope_as = loser - } - on_lost_aggression_war_discontent_loss = yes - - - #General event that tells all players what happened - every_player = { - limit = { - OR = { - capital_province = { - OR = { - geographical_region = world_europe - geographical_region = world_asia_minor - geographical_region = world_middle_east - geographical_region = world_africa_north -# county = { -# OR = { -# empire = title:e_caspian-pontic_steppe -# empire = title:e_byzantium -# } +# } +# } +# } +# } +# } +# } +# +# should_invalidate = { +# OR = { +# 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 # } - } - } - liege = scope:defender - - OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } - } - } - add_character_flag = frankokratia_crusaders_lose_outcome - trigger_event = { - id = ep3_frankokratia_events.0060 - days = 1 - } - } - #Force end on story owner to be safe (necessary for AI owner) - if = { - limit = { - global_var:byz_claimant_champion ?= { - any_owned_story = { - type = frankokratia_story - } - } - } - global_var:byz_claimant_champion = { - trigger_event = { - id = ep3_frankokratia_events.0061 - days = 3 - } - } - } - - # 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 = "CRUSADING_CLAIM_WAR_NAME" - my_war_name = "CRUSADING_CLAIM_WAR_NAME_MY" - war_name_base = "CRUSADING_CLAIM_WAR_NAME_BASE" - cb_name = "CRUSADING_CLAIM_CB_NAME" - interface_priority = 60 - - should_show_war_goal_subview = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 50 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 10000 -} - -ep3_hasan_assassin_war = { - icon = dissolution_war - group = event - allow_hostages = no - allowed_for_character = {} - valid_to_start = { - always = no - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { # Desc for only one player attacker - scope:attacker = { - is_local_player = yes - } - } - desc = nation_fracturing_faction_war_victory_desc_local_player_attacker_alone - } - triggered_desc = { # Desc for only one attacker, player defender - trigger = { - scope:defender = { - is_local_player = yes - } - } - desc = player_nation_fracturing_faction_war_victory_desc_local_player_defender_attacker_alone - } - desc = nation_fracturing_faction_war_victory_desc_local_player_attacker_alone # Desc for a third party involved - } - - } - - 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 } - hasan_sabbah_end_war = { - HASAN = scope:attacker - SELJUK = scope:defender - } - - # 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 = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = player_nation_fracturing_faction_war_white_peace_defender_desc - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - } - } - desc = player_nation_fracturing_faction_war_white_peace_attacker_desc - } - desc = player_nation_fracturing_faction_war_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 - } - } - hidden_effect = { - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = white_peace - } - } - } - - scope:defender = { - stress_impact = { - arrogant = medium_stress_impact_gain - } - - add_character_flag = { - flag = recent_nation_fracturing_faction_war - years = faction_nation_fracturing_war_white_peace_cooldown - } - add_prestige = minor_prestige_value - } - - on_white_peace_faction_revolt_war = yes - # End Hasan's story cycle - hidden_effect = { - scope:attacker = { - if = { - limit = { - any_owned_story = { - type = story_hasan - } - } - random_owned_story = { - type = story_hasan - end_story = 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 = nation_fracturing_faction_war_defeat_defender_desc - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - } - } - desc = player_nation_fracturing_defeat_attacker_desc - } - desc = player_nation_fracturing_faction_war_defeat_desc - } - - } - - on_defeat = { - scope:attacker = { show_pow_release_message_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 - } - add_character_flag = { - flag = recent_nation_fracturing_faction_war - years = faction_nation_fracturing_war_defeat_cooldown - } - add_dread = medium_dread_gain - add_achievement_flag_effect = { FLAG = achievement_know_your_place_flag } - - # LEGITIMACY FROM WINNING FACTION WAR - faction_war_end_victory_legitimacy_effect = yes - } - # End Hasan's story cycle - hidden_effect = { - scope:attacker = { - if = { - limit = { - any_owned_story = { - type = story_hasan - } - } - random_owned_story = { - type = story_hasan - end_story = yes - } - } - } - } - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_invalidated_desc = msg_invalidate_war_title - - check_defender_inheritance_validity = no - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - transfer_behavior = transfer - - war_name = "ASSASSIN_NATION_FRACTURING_WAR_NAME" - - interface_priority = 120 - - 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 -} - +# } +# } +# } +# } +# scope:claimant = { +# is_alive = no +# } +# } +# } +# +# on_invalidated_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:claimant != scope:attacker +# scope:claimant = { is_alive = no } +# } +# desc = msg_claim_war_invalidated_claimant_unavailable_dead_message +# } +# desc = msg_claim_war_invalidated_message +# } +# } +# +# on_invalidated = { +# scope:attacker = { +# add_prestige = medium_prestige_loss +# add_piety = medium_piety_loss +# random_owned_story = { +# type = frankokratia_story +# set_variable = { +# name = franko_war_complete +# } +# } +# } +# scope:defender = { +# add_piety = medium_piety_gain +# } +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { +# scope:claimant = { is_local_player = yes } +# } +# desc = claim_cb_victory_desc_attacker_claimant +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = claim_cb_victory_desc_attacker +# } +# desc = claim_cb_victory_desc +# } +# } +# +# on_victory = { +# scope:attacker = { +# random_character_war = { +# limit = { +# using_cb = crusading_claim_cb +# } +# every_war_attacker = { +# save_temporary_scope_as = war_attackers +# scope:attacker = { +# random_owned_story = { +# type = frankokratia_story +# add_to_variable_list = { +# name = frankokratia_leaders +# target = scope:war_attackers +# } +# } +# } +# } +# } +# random_owned_story = { +# type = frankokratia_story +# set_variable = { +# name = franko_war_complete +# } +# } +# } +# +# 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_high_effect = yes } +# +# scope:defender ?= { +# if = { +# limit = { +# top_liege = this +# government_allows = administrative +# primary_title = { is_in_list = target_titles } +# } +# every_held_title = { +# title_tier >= county +# limit = { +# is_noble_family_title = no +# } +# add_to_list = target_titles +# } +# } +# } +# +# scope:claimant = { +# custom_tooltip = crusading_claim_gain_byz_emp_tooltip +# } +# custom_tooltip = crusading_claim_crusader_rewards_tooltip +# hidden_effect = { +# create_title_and_vassal_change = { +# type = conquest_claim +# save_scope_as = change +# add_claim_on_loss = yes +# } +# # Create a claim CB which is executed to handle title/vassal changes, in addition to being used to calculate Prestige awards for war participants. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# change = scope:change +# } +# resolve_title_and_vassal_change = scope:change +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:attacker = { +# can_add_hook = { +# type = favor_hook +# target = scope:claimant +# } +# } +# } +# scope:attacker = { +# add_hook = { +# target = scope:claimant +# type = favor_hook +# } +# } +# } +# +# # 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_claim_cb' +# IS_RELIGIOUS_WAR = no +# WINNER_FAME_SCALE = 10 +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # FP1: note the victory for future memorialisation via stele (if applicable). +# scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } +# +# #THE LATINS MUST BE PAID +# scope:claimant = { +# trigger_event = ep3_frankokratia_events.0040 +# } +# +# # 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 = claim_cb_white_peace_desc_defender +# } +# desc = claim_cb_white_peace_desc +# } +# +# } +# +# on_white_peace = { +# scope:attacker = { +# random_character_war = { +# limit = { +# using_cb = crusading_claim_cb +# } +# every_war_attacker = { +# save_temporary_scope_as = war_attackers +# scope:attacker = { +# random_owned_story = { +# type = frankokratia_story +# add_to_variable_list = { +# name = frankokratia_leaders +# target = scope:war_attackers +# } +# } +# } +# } +# } +# random_owned_story = { +# type = frankokratia_story +# set_variable = { +# name = franko_war_complete +# } +# } +# } +# +# scope:attacker = { +# show_pow_release_message_effect = yes +# stress_impact = { +# ambitious = medium_stress_impact_gain +# arrogant = medium_stress_impact_gain +# } +# } +# +# #EP2 accolade glory gain for defender doing alright +# scope:defender = { accolade_defender_war_end_glory_gain_med_effect = yes } +# +# # press claims +# every_in_list = { +# list = target_titles +# if = { +# limit = { scope:claimant = { has_weak_claim_on = prev } } +# scope:claimant = { +# make_claim_strong = prev +# } +# } +# } +# +# # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# # Prestige and piety loss for the attacker +# scope:attacker = { +# add_piety = major_piety_loss +# } +# # Attackers all loses Prestige, defenders gain it +# modify_all_participants_fame_values_crusading_claim = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# # Defender neither gains nor loses any prestige. +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:attacker = { +# can_add_hook = { +# type = favor_hook +# target = scope:claimant +# } +# } +# } +# scope:attacker = { +# add_hook = { +# target = scope:claimant +# type = favor_hook +# } +# } +# } +# +# # Truce +# add_truce_white_peace_effect = yes +# +# +# #General event that tells all players what happened +# every_player = { +# limit = { +# OR = { +# capital_province = { +# OR = { +# geographical_region = world_europe +# geographical_region = world_asia_minor +# geographical_region = world_middle_east +# geographical_region = world_africa_north +## county = { +## OR = { +## empire = title:e_caspian-pontic_steppe +## empire = title:e_byzantium +## } +## } +# } +# } +# liege = scope:defender +# OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } +# } +# } +# add_character_flag = frankokratia_crusaders_lose_outcome +# add_character_flag = frankokratia_crusaders_white_peace_outcome +# trigger_event = { +# id = ep3_frankokratia_events.0060 +# days = 1 +# } +# } +# #Force end on story owner to be safe (necessary for AI owner) +# if = { +# limit = { +# global_var:byz_claimant_champion ?= { +# any_owned_story = { +# type = frankokratia_story +# } +# } +# } +# global_var:byz_claimant_champion = { +# trigger_event = { +# id = ep3_frankokratia_events.0061 +# days = 3 +# } +# } +# } +# +# # 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 = claim_cb_defeat_desc_defender +# } +# triggered_desc = { +# trigger = { scope:claimant = { is_local_player = yes } } +# desc = claim_cb_defeat_desc_attacker_claimant +# } +# triggered_desc = { +# trigger = { scope:attacker = { is_local_player = yes } } +# desc = claim_cb_defeat_desc_attacker +# } +# desc = claim_cb_defeat_desc +# } +# +# } +# +# on_defeat = { +# scope:attacker = { +# random_character_war = { +# limit = { +# using_cb = crusading_claim_cb +# } +# every_war_attacker = { +# save_temporary_scope_as = war_attackers +# scope:attacker = { +# random_owned_story = { +# type = frankokratia_story +# add_to_variable_list = { +# name = frankokratia_leaders +# target = scope:war_attackers +# } +# } +# } +# } +# } +# random_owned_story = { +# type = frankokratia_story +# set_variable = { +# name = franko_war_complete +# } +# } +# } +# scope:attacker = { show_pow_release_message_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 +# } +# +# # lose claims +# every_in_list = { +# list = target_titles +# scope:claimant = { +# remove_claim = prev +# } +# } +# +# if = { +# limit = { +# scope:claimant != scope:attacker +# scope:attacker = { +# can_add_hook = { +# type = favor_hook +# target = scope:claimant +# } +# } +# } +# scope:attacker = { +# add_hook = { +# target = scope:claimant +# type = favor_hook +# } +# } +# } +# +# # Attacker pays gold to the defender as reparations. +# scope:attacker = { +# pay_short_term_gold_reparations_effect = { +# GOLD_VALUE = 3 +# } +# #Loses piety for this debacle +# add_piety = massive_piety_loss +# } +# #Defender should gain piety +# scope:defender = { +# add_piety = massive_piety_gain +# } +# # Create an 'helper' claim CB which we won't execute, but can use to determine how much Prestige should be given to war participants. +# setup_claim_cb = { +# titles = target_titles +# attacker = scope:attacker +# defender = scope:defender +# claimant = scope:claimant +# victory = no +# } +# # Attackers all loses Prestige, defenders gain it +# modify_all_participants_fame_values_crusading_claim = { +# WINNER = scope:defender +# LOSER = scope:attacker +# FAME_BASE = scope:cb_prestige_factor # Set by 'setup_claim_cb' +# WINNER_FAME_SCALE = scale_10_war_defender_win +# LOSER_FAME_SCALE = -10 +# WINNER_ALLY_FAME_SCALE = 10 +# LOSER_ALLY_FAME_SCALE = 10 +# } +# +# # Truce +# add_truce_attacker_defeat_effect = yes +# +# scope:attacker = { +# save_temporary_scope_as = loser +# } +# on_lost_aggression_war_discontent_loss = yes +# +# +# #General event that tells all players what happened +# every_player = { +# limit = { +# OR = { +# capital_province = { +# OR = { +# geographical_region = world_europe +# geographical_region = world_asia_minor +# geographical_region = world_middle_east +# geographical_region = world_africa_north +## county = { +## OR = { +## empire = title:e_caspian-pontic_steppe +## empire = title:e_byzantium +## } +## } +# } +# } +# liege = scope:defender +# +# OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } +# } +# } +# add_character_flag = frankokratia_crusaders_lose_outcome +# trigger_event = { +# id = ep3_frankokratia_events.0060 +# days = 1 +# } +# } +# #Force end on story owner to be safe (necessary for AI owner) +# if = { +# limit = { +# global_var:byz_claimant_champion ?= { +# any_owned_story = { +# type = frankokratia_story +# } +# } +# } +# global_var:byz_claimant_champion = { +# trigger_event = { +# id = ep3_frankokratia_events.0061 +# days = 3 +# } +# } +# } +# +# # 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 = "CRUSADING_CLAIM_WAR_NAME" +# my_war_name = "CRUSADING_CLAIM_WAR_NAME_MY" +# war_name_base = "CRUSADING_CLAIM_WAR_NAME_BASE" +# cb_name = "CRUSADING_CLAIM_CB_NAME" +# interface_priority = 60 +# +# should_show_war_goal_subview = yes +# +# attacker_wargoal_percentage = 0.8 +# +# max_defender_score_from_occupation = 50 +# max_attacker_score_from_occupation = 150 +# +# max_ai_diplo_distance_to_title = 10000 +#} +# +#ep3_hasan_assassin_war = { +# icon = dissolution_war +# group = event +# allow_hostages = no +# allowed_for_character = {} +# valid_to_start = { +# always = no +# } +# +# on_declaration = { +# on_declared_war = yes +# } +# +# on_victory_desc = { +# first_valid = { +# triggered_desc = { +# trigger = { # Desc for only one player attacker +# scope:attacker = { +# is_local_player = yes +# } +# } +# desc = nation_fracturing_faction_war_victory_desc_local_player_attacker_alone +# } +# triggered_desc = { # Desc for only one attacker, player defender +# trigger = { +# scope:defender = { +# is_local_player = yes +# } +# } +# desc = player_nation_fracturing_faction_war_victory_desc_local_player_defender_attacker_alone +# } +# desc = nation_fracturing_faction_war_victory_desc_local_player_attacker_alone # Desc for a third party involved +# } +# +# } +# +# 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 } +# hasan_sabbah_end_war = { +# HASAN = scope:attacker +# SELJUK = scope:defender +# } +# +# # 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 = { +# first_valid = { +# triggered_desc = { +# trigger = { scope:defender = { is_local_player = yes } } +# desc = player_nation_fracturing_faction_war_white_peace_defender_desc +# } +# triggered_desc = { +# trigger = { +# scope:attacker = { +# is_local_player = yes +# } +# } +# desc = player_nation_fracturing_faction_war_white_peace_attacker_desc +# } +# desc = player_nation_fracturing_faction_war_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 +# } +# } +# hidden_effect = { +# scope:attacker = { +# add_truce_both_ways = { +# character = scope:defender +# days = 1825 +# war = root.war +# result = white_peace +# } +# } +# } +# +# scope:defender = { +# stress_impact = { +# arrogant = medium_stress_impact_gain +# } +# +# add_character_flag = { +# flag = recent_nation_fracturing_faction_war +# years = faction_nation_fracturing_war_white_peace_cooldown +# } +# add_prestige = minor_prestige_value +# } +# +# on_white_peace_faction_revolt_war = yes +# # End Hasan's story cycle +# hidden_effect = { +# scope:attacker = { +# if = { +# limit = { +# any_owned_story = { +# type = story_hasan +# } +# } +# random_owned_story = { +# type = story_hasan +# end_story = 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 = nation_fracturing_faction_war_defeat_defender_desc +# } +# triggered_desc = { +# trigger = { +# scope:attacker = { +# is_local_player = yes +# } +# } +# desc = player_nation_fracturing_defeat_attacker_desc +# } +# desc = player_nation_fracturing_faction_war_defeat_desc +# } +# +# } +# +# on_defeat = { +# scope:attacker = { show_pow_release_message_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 +# } +# add_character_flag = { +# flag = recent_nation_fracturing_faction_war +# years = faction_nation_fracturing_war_defeat_cooldown +# } +# add_dread = medium_dread_gain +# add_achievement_flag_effect = { FLAG = achievement_know_your_place_flag } +# +# # LEGITIMACY FROM WINNING FACTION WAR +# faction_war_end_victory_legitimacy_effect = yes +# } +# # End Hasan's story cycle +# hidden_effect = { +# scope:attacker = { +# if = { +# limit = { +# any_owned_story = { +# type = story_hasan +# } +# } +# random_owned_story = { +# type = story_hasan +# end_story = yes +# } +# } +# } +# } +# +# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold +# laamp_as_mercenary_payout_tooltip_effect = yes +# } +# +# on_invalidated_desc = msg_invalidate_war_title +# +# check_defender_inheritance_validity = no +# +# on_primary_attacker_death = inherit +# on_primary_defender_death = inherit +# +# attacker_allies_inherit = yes +# defender_allies_inherit = yes +# +# transfer_behavior = transfer +# +# war_name = "ASSASSIN_NATION_FRACTURING_WAR_NAME" +# +# interface_priority = 120 +# +# 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 +#} +# imperial_expedition_cb = { icon = invasion group = conquest diff --git a/common/character_interactions/00_character_interactions.txt b/common/character_interactions/00_character_interactions.txt index cd39a22d..9113ee7f 100644 --- a/common/character_interactions/00_character_interactions.txt +++ b/common/character_interactions/00_character_interactions.txt @@ -933,18 +933,18 @@ offer_vassalization_interaction = { } add = 5 } - - modifier = { # FP3 modifier. - desc = GENERIC_YOUR_PIETY_LEVEL_MODIFIER - trigger = { scope:actor = { any_character_struggle = { has_struggle_phase_parameter = piety_level_affects_vassalage_acceptance } } } - add = { - value = { - value = scope:actor.piety_level - subtract = low_piety_level - } - multiply = 10 - } - } +# +# modifier = { # FP3 modifier. +# desc = GENERIC_YOUR_PIETY_LEVEL_MODIFIER +# trigger = { scope:actor = { any_character_struggle = { has_struggle_phase_parameter = piety_level_affects_vassalage_acceptance } } } +# add = { +# value = { +# value = scope:actor.piety_level +# subtract = low_piety_level +# } +# multiply = 10 +# } +# } # OPINION INFLUENCE modifier = { @@ -1334,10 +1334,10 @@ offer_vassalization_interaction = { remove_character_modifier = event_bonus_to_vassal_accept } - if = { # FP3 - limit = { any_character_struggle = { has_struggle_phase_parameter = offer_vassalization_removes_disloyalty } } - scope:recipient = { remove_trait = disloyal } - } +# if = { # FP3 +# limit = { any_character_struggle = { has_struggle_phase_parameter = offer_vassalization_removes_disloyalty } } +# scope:recipient = { remove_trait = disloyal } +# } } } @@ -2241,23 +2241,23 @@ grant_independence_interaction = { custom_tooltip = grant_vassal_independence_interaction_toast_desc # Struggle Parameter - if = { - limit = { - exists = dynasty - NOT = { - any_held_title = { - is_de_jure_liege_or_above_target = scope:recipient.primary_title - } - } - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = granting_independence_to_non_dejure_gives_renown - } - } - dynasty = { - add_dynasty_prestige = medium_dynasty_prestige_value - } - } +# if = { +# limit = { +# exists = dynasty +# NOT = { +# any_held_title = { +# is_de_jure_liege_or_above_target = scope:recipient.primary_title +# } +# } +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = granting_independence_to_non_dejure_gives_renown +# } +# } +# dynasty = { +# add_dynasty_prestige = medium_dynasty_prestige_value +# } +# } } } } @@ -2432,30 +2432,30 @@ grant_independence_interaction = { } } } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_independence_from_non_dejure_vassal - } - has_character_flag = agenda_towards_escalation - } - } - add = -50 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_independence_from_non_dejure_vassal - } - } - } - add = 100 - } - } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_independence_from_non_dejure_vassal +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -50 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_independence_from_non_dejure_vassal +# } +# } +# } +# add = 100 +# } +# } } # Unity modifiers diff --git a/common/character_interactions/00_grant_titles_interaction.txt b/common/character_interactions/00_grant_titles_interaction.txt index 92190d2a..99749cfb 100644 --- a/common/character_interactions/00_grant_titles_interaction.txt +++ b/common/character_interactions/00_grant_titles_interaction.txt @@ -2192,20 +2192,20 @@ grant_governorship_interaction = { custom_tooltip = grant_titles_interaction_notification_effect_5 } else = { custom_tooltip = grant_titles_interaction_notification_effect } - if = { - limit = { - exists = dynasty - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_gives_prestige - } - } - dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } - } +# if = { +# limit = { +# exists = dynasty +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = struggle_grant_titles_diff_faith_culture_gives_prestige +# } +# } +# dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } +# } remove_variable = lower_count } } @@ -2214,38 +2214,38 @@ grant_governorship_interaction = { hidden_effect = { # Struggle Catalyst - if = { - limit = { - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# if = { +# limit = { +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Achievements. diff --git a/common/character_interactions/00_modifiy_vassal_contract.txt b/common/character_interactions/00_modifiy_vassal_contract.txt index fbe7988a..7081278c 100644 --- a/common/character_interactions/00_modifiy_vassal_contract.txt +++ b/common/character_interactions/00_modifiy_vassal_contract.txt @@ -205,39 +205,39 @@ } # Improving contract catalyst - if = { - limit = { - scope:recipient.count_obligation_improvements_for_vassal > 0 - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# if = { +# limit = { +# scope:recipient.count_obligation_improvements_for_vassal > 0 +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Enact changes. @@ -507,39 +507,39 @@ vassal_modify_vassal_contract_interaction = { } } # Improving contract catalyst - if = { - limit = { - scope:recipient.count_obligation_improvements_for_vassal > 0 - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# if = { +# limit = { +# scope:recipient.count_obligation_improvements_for_vassal > 0 +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Additional Flavor Titles @@ -956,38 +956,38 @@ admin_liege_modify_vassal_contract_interaction = { # Improving contract catalyst if = { - limit = { - scope:recipient.count_obligation_improvements_for_vassal > 0 - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# limit = { +# scope:recipient.count_obligation_improvements_for_vassal > 0 +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Enact changes. @@ -1373,39 +1373,39 @@ admin_vassal_modify_vassal_contract_interaction = { } } # Improving contract catalyst - if = { - limit = { - scope:actor.count_obligation_improvements_for_vassal > 0 - scope:recipient = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:actor - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:actor - } - } - } - } - scope:recipient = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:actor - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:recipient - } - } - } - } +# if = { +# limit = { +# scope:actor.count_obligation_improvements_for_vassal > 0 +# scope:recipient = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:actor +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:actor +# } +# } +# } +# } +# scope:recipient = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:actor +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:recipient +# } +# } +# } +# } } } @@ -1659,39 +1659,39 @@ nomad_liege_modify_vassal_contract_interaction = { } # Improving contract catalyst - if = { - limit = { - scope:recipient.count_obligation_improvements_for_vassal > 0 - scope:actor = { - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - any_character_struggle = { - involvement = involved - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - } - } - scope:actor = { - every_character_struggle = { - involvement = involved - limit = { - activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { - CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal - CHAR = scope:recipient - } - } - activate_struggle_catalyst = { - catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal - character = scope:actor - } - } - } - } +# if = { +# limit = { +# scope:recipient.count_obligation_improvements_for_vassal > 0 +# scope:actor = { +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# any_character_struggle = { +# involvement = involved +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# } +# } +# scope:actor = { +# every_character_struggle = { +# involvement = involved +# limit = { +# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { +# CATALYST = catalyst_grant_privilege_to_diff_faith_culture_vassal +# CHAR = scope:recipient +# } +# } +# activate_struggle_catalyst = { +# catalyst = catalyst_grant_privilege_to_diff_faith_culture_vassal +# character = scope:actor +# } +# } +# } +# } } # Enact changes. diff --git a/common/character_interactions/00_prison_interactions.txt b/common/character_interactions/00_prison_interactions.txt index 0c6bdde9..9aa37267 100644 --- a/common/character_interactions/00_prison_interactions.txt +++ b/common/character_interactions/00_prison_interactions.txt @@ -1372,38 +1372,38 @@ } # Agenda impact - modifier = { - scope:recipient = { - is_important_or_vip_struggle_character = yes - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_imprison_important - } - has_character_flag = agenda_towards_escalation - } - } - add = 200 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_imprison_important - } - } - } - add = -100 - } - } - } +# modifier = { +# scope:recipient = { +# is_important_or_vip_struggle_character = yes +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_imprison_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = 200 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_imprison_important +# } +# } +# } +# add = -100 +# } +# } +# } # modifier = { # scope:recipient = { # has_trait = fp3_struggle_supporter @@ -2291,42 +2291,42 @@ ransom_interaction = { } # Struggle Agenda - modifier = { - scope:secondary_recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_ransom_important - } - has_character_flag = agenda_towards_escalation - } - } - add = -100 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_ransom_important - } - } - } - add = 200 - } - } - } +# modifier = { +# scope:secondary_recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_ransom_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -100 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_ransom_important +# } +# } +# } +# add = 200 +# } +# } +# } modifier = { # Do not ransom at war factor = 0 @@ -3385,42 +3385,42 @@ pay_ransom_interaction = { } # Struggle Agenda - modifier = { - scope:secondary_recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_ransom_important - } - has_character_flag = agenda_towards_escalation - } - } - add = -100 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_ransom_important - } - } - } - add = 200 - } - } - } +# modifier = { +# scope:secondary_recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_ransom_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -100 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_ransom_important +# } +# } +# } +# add = 200 +# } +# } +# } evaluate_action_increasing_house_unity = { VALUE = 100 @@ -4718,22 +4718,22 @@ release_from_prison_interaction = { callous = minor_stress_impact_gain } # Struggle impact - if = { - limit = { - any_character_struggle = { - involvement = involved - OR = { - has_struggle_phase_parameter = release_prisoner_diff_culture_gives_prestige - has_struggle_phase_parameter = release_prisoner_diff_faith_gives_prestige - } - } - is_diff_faith_or_culture_trigger = { - CHAR = scope:recipient - STATUS = involved - } - } - add_prestige = medium_prestige_gain - } +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# OR = { +# has_struggle_phase_parameter = release_prisoner_diff_culture_gives_prestige +# has_struggle_phase_parameter = release_prisoner_diff_faith_gives_prestige +# } +# } +# is_diff_faith_or_culture_trigger = { +# CHAR = scope:recipient +# STATUS = involved +# } +# } +# add_prestige = medium_prestige_gain +# } # Struggle Catalyst # if = { @@ -5928,50 +5928,50 @@ release_from_prison_interaction = { desc = "DEMAND_ADMIN_NEGATIVE_REASON" } # Struggle - modifier = { - trigger = { - scope:demand_conversion = no - scope:renounce_claims = no - scope:banish = no - scope:gain_hook = no - scope:take_vows = no - scope:recruit = no - } - scope:recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:recipient = { - any_character_struggle = { - phase_has_catalyst = catalyst_release_important - } - has_character_flag = agenda_towards_escalation - } - } - add = -100 - } - else_if = { - limit = { - scope:recipient = { - any_character_struggle = { - phase_has_catalyst = catalyst_release_important - } - } - } - add = 200 - } - } - } +# modifier = { +# trigger = { +# scope:demand_conversion = no +# scope:renounce_claims = no +# scope:banish = no +# scope:gain_hook = no +# scope:take_vows = no +# scope:recruit = no +# } +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:recipient = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_release_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -100 +# } +# else_if = { +# limit = { +# scope:recipient = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_release_important +# } +# } +# } +# add = 200 +# } +# } +# } } # AI @@ -6139,62 +6139,62 @@ release_from_prison_interaction = { } } # Struggle - modifier = { - trigger = { - scope:demand_conversion = no - scope:renounce_claims = no - scope:banish = no - scope:gain_hook = no - scope:take_vows = no - scope:recruit = no - } - scope:recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_release_important - } - has_character_flag = agenda_towards_escalation - } - } - add = -100 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_release_important - } - NOT = { - ai_greed >= 25 - } - OR = { - ai_compassion > 50 - AND = { - ai_compassion > 0 - scope:recipient = { - time_in_prison = { years > 1 } - } - } - } - } - } - add = 200 - } - } - } +# modifier = { +# trigger = { +# scope:demand_conversion = no +# scope:renounce_claims = no +# scope:banish = no +# scope:gain_hook = no +# scope:take_vows = no +# scope:recruit = no +# } +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_release_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -100 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_release_important +# } +# NOT = { +# ai_greed >= 25 +# } +# OR = { +# ai_compassion > 50 +# AND = { +# ai_compassion > 0 +# scope:recipient = { +# time_in_prison = { years > 1 } +# } +# } +# } +# } +# } +# add = 200 +# } +# } +# } modifier = { # Family Feud add = -50 scope:actor = { @@ -6364,71 +6364,71 @@ execute_prisoner_interaction = { } # Agenda impact - modifier = { - scope:recipient = { - any_character_struggle = { - involvement = involved - } - is_important_or_vip_struggle_character = yes - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_execute_important - } - has_character_flag = agenda_towards_escalation - } - } - add = 200 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_execute_important - } - } - } - add = -100 - } - } - } - - modifier = { - scope:recipient = { - any_character_struggle = { - involvement = involved - } - has_trait = fp3_struggle_supporter - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_execute_supporter - } - has_trait = fp3_struggle_detractor - } - } - add = 200 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_execute_supporter - } - } - } - add = -100 - } - } - } +# modifier = { +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# is_important_or_vip_struggle_character = yes +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_execute_important +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = 200 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_execute_important +# } +# } +# } +# add = -100 +# } +# } +# } +# +# modifier = { +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# has_trait = fp3_struggle_supporter +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_execute_supporter +# } +# has_trait = fp3_struggle_detractor +# } +# } +# add = 200 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_execute_supporter +# } +# } +# } +# add = -100 +# } +# } +# } #Nomads get the special beheading stuff modifier = { @@ -6560,20 +6560,20 @@ execute_prisoner_interaction = { } # Blocked by current struggle phase - custom_tooltip = { - text = struggle_parameter_struggle_cannot_execute_involved_prisoners - NOT = { - scope:actor = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = struggle_cannot_execute_involved_prisoners - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - } - } +# custom_tooltip = { +# text = struggle_parameter_struggle_cannot_execute_involved_prisoners +# NOT = { +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = struggle_cannot_execute_involved_prisoners +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# } +# } custom_tooltip = { text = is_currently_being_purged_tt diff --git a/common/character_interactions/00_religious_interactions.txt b/common/character_interactions/00_religious_interactions.txt index 352a4053..6ba4082d 100644 --- a/common/character_interactions/00_religious_interactions.txt +++ b/common/character_interactions/00_religious_interactions.txt @@ -97,20 +97,20 @@ ask_for_conversion_interaction = { # If character is converting to the state faith, we add influence state_faith_conversion_add_piety_effect = yes - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } } on_decline = { @@ -270,20 +270,20 @@ ask_for_conversion_courtier_interaction = { # If character is converting to the state faith, we add influence state_faith_conversion_add_piety_effect = yes - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } } on_decline = { @@ -597,20 +597,20 @@ demand_conversion_interaction = { } } - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } # If we're a clan this interaction affects unity accept_faith_conversion_add_clan_unity_effect = yes @@ -880,21 +880,21 @@ demand_conversion_vassal_ruler_interaction = { # If character is converting to the state faith, we add influence state_faith_conversion_add_piety_effect = yes - - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } } on_decline = { @@ -1328,20 +1328,20 @@ demand_conversion_player_ruler_interaction = { # If character is converting to the state faith, we add influence state_faith_conversion_add_piety_effect = yes - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } } on_decline = { @@ -7351,20 +7351,20 @@ attempt_conversion_of_local_ruler_interaction = { } } - scope:actor = { - if = { - limit = { - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = piety_from_converting_involved_rulers - is_secondary_character_involvement_involved_trigger = { - CHAR = scope:recipient - } - } - } - add_piety = medium_piety_gain - } - } +# scope:actor = { +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = piety_from_converting_involved_rulers +# is_secondary_character_involvement_involved_trigger = { +# CHAR = scope:recipient +# } +# } +# } +# add_piety = medium_piety_gain +# } +# } } on_decline = { diff --git a/common/character_interactions/00_scheme_interactions.txt b/common/character_interactions/00_scheme_interactions.txt index 1a18a7f4..8d222f1f 100644 --- a/common/character_interactions/00_scheme_interactions.txt +++ b/common/character_interactions/00_scheme_interactions.txt @@ -2532,39 +2532,39 @@ learn_language_interaction = { base = 0 # Struggle - modifier = { - scope:recipient = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_learned_new_language_important - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_learned_new_language_important - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - has_character_flag = agenda_towards_deescalation - } - } - add = 100 - } - else_if = { - limit = { - scope:actor = { - has_character_flag = agenda_towards_escalation - } - } - add = -50 - } - } - } +# modifier = { +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_learned_new_language_important +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_learned_new_language_important +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# has_character_flag = agenda_towards_deescalation +# } +# } +# add = 100 +# } +# else_if = { +# limit = { +# scope:actor = { +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -50 +# } +# } +# } modifier = { # Focus on befriending if that's the path you've chosen add = -50 diff --git a/common/character_interactions/03_fp2_interactions.txt b/common/character_interactions/03_fp2_interactions.txt index e8ba3871..3748c71f 100644 --- a/common/character_interactions/03_fp2_interactions.txt +++ b/common/character_interactions/03_fp2_interactions.txt @@ -2241,50 +2241,50 @@ purchase_truce_interaction = { base = 0 # Struggle - modifier = { - trigger_if = { - limit = { - scope:recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - } - } - trigger_else = { - always = no - } - add = { - value = 0 - if = { - limit = { - scope:recipient = { - any_character_struggle = { - phase_has_catalyst = catalyst_sign_truce_outside_war - } - has_character_flag = agenda_towards_escalation - } - } - add = -50 - } - else_if = { - limit = { - scope:recipient = { - any_character_struggle = { - phase_has_catalyst = catalyst_sign_truce_outside_war - } - } - } - add = 100 - } - } - desc = AI_STRUGGLE_INTENT - } + # modifier = { +# trigger_if = { +# limit = { +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# } +# } +# trigger_else = { +# always = no +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:recipient = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_sign_truce_outside_war +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -50 +# } +# else_if = { +# limit = { +# scope:recipient = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_sign_truce_outside_war +# } +# } +# } +# add = 100 +# } +# } +# desc = AI_STRUGGLE_INTENT +# } # Factor up or down based on the sum offered. ## Small. @@ -2579,42 +2579,42 @@ purchase_truce_interaction = { } # Struggle - modifier = { - scope:recipient = { - any_character_struggle = { - involvement = involved - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - } - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_sign_truce_outside_war - } - has_character_flag = agenda_towards_escalation - } - } - add = -50 - } - else_if = { - limit = { - scope:actor = { - any_character_struggle = { - phase_has_catalyst = catalyst_sign_truce_outside_war - } - } - } - add = 100 - } - } - } +# modifier = { +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# } +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_sign_truce_outside_war +# } +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -50 +# } +# else_if = { +# limit = { +# scope:actor = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_sign_truce_outside_war +# } +# } +# } +# add = 100 +# } +# } +# } # Finally, calculate factors. ## Only buy truces from weaker/roughly-equal realms if you're craven have been at war forever. modifier = { @@ -5350,45 +5350,45 @@ invite_foreign_ruler_to = { } # Struggle agenda - modifier = { - desc = AI_STRUGGLE_INTENT - scope:invite_to_feast = yes - scope:recipient = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast - } - } - scope:actor = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast - } - } - NAND = { - scope:actor.faith = scope:recipient.faith - scope:actor.culture = scope:recipient.culture - } - add = { - value = 0 - if = { - limit = { - scope:actor = { - has_character_flag = agenda_towards_deescalation - } - } - add = 100 - } - else_if = { - limit = { - scope:actor = { - has_character_flag = agenda_towards_escalation - } - } - add = -100 - } - } - } +# modifier = { +# desc = AI_STRUGGLE_INTENT +# scope:invite_to_feast = yes +# scope:recipient = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast +# } +# } +# scope:actor = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast +# } +# } +# NAND = { +# scope:actor.faith = scope:recipient.faith +# scope:actor.culture = scope:recipient.culture +# } +# add = { +# value = 0 +# if = { +# limit = { +# scope:actor = { +# has_character_flag = agenda_towards_deescalation +# } +# } +# add = 100 +# } +# else_if = { +# limit = { +# scope:actor = { +# has_character_flag = agenda_towards_escalation +# } +# } +# add = -100 +# } +# } +# } } ### Performance-enhancement #ai_potential = { diff --git a/common/character_interactions/06_ep3_laamp_interactions.txt b/common/character_interactions/06_ep3_laamp_interactions.txt index 01b687b3..24d677ca 100644 --- a/common/character_interactions/06_ep3_laamp_interactions.txt +++ b/common/character_interactions/06_ep3_laamp_interactions.txt @@ -7232,78 +7232,78 @@ laamp_war_change_sides_interaction = { } scope:actor = { #ROOT is a 4th crusader and should not be one anymore - frankokratia_remove__war_leader_var_effect = yes - #ROOT is not a 4th crusader and should be one - if = { - limit = { - any_character_war = { - using_cb = crusading_claim_cb - any_war_participant = { - this = scope:recipient - } - any_war_participant = { - any_owned_story = { - type = frankokratia_story - NOT = { - any_in_list = { - variable = frankokratia_leaders - this = scope:actor - } - } - } - } - any_war_defender = { - this = scope:actor - } - } - } - random_character_war = { - limit = { - any_war_participant = { - any_owned_story = { - type = frankokratia_story - NOT = { - any_in_list = { - variable = frankokratia_leaders - this = scope:actor - } - } - } - } - any_war_defender = { - this = scope:actor - } - } - random_war_participant = { - limit = { - any_owned_story = { - type = frankokratia_story - NOT = { - any_in_list = { - variable = frankokratia_leaders - this = scope:actor - } - } - } - } - random_owned_story = { - type = frankokratia_story - limit = { - NOT = { - any_in_list = { - variable = frankokratia_leaders - this = scope:actor - } - } - } - add_to_variable_list = { - name = frankokratia_leaders - target = scope:actor - } - } - } - } - } +# frankokratia_remove__war_leader_var_effect = yes +# #ROOT is not a 4th crusader and should be one +# if = { +# limit = { +# any_character_war = { +# using_cb = crusading_claim_cb +# any_war_participant = { +# this = scope:recipient +# } +# any_war_participant = { +# any_owned_story = { +# type = frankokratia_story +# NOT = { +# any_in_list = { +# variable = frankokratia_leaders +# this = scope:actor +# } +# } +# } +# } +# any_war_defender = { +# this = scope:actor +# } +# } +# } +# random_character_war = { +# limit = { +# any_war_participant = { +# any_owned_story = { +# type = frankokratia_story +# NOT = { +# any_in_list = { +# variable = frankokratia_leaders +# this = scope:actor +# } +# } +# } +# } +# any_war_defender = { +# this = scope:actor +# } +# } +# random_war_participant = { +# limit = { +# any_owned_story = { +# type = frankokratia_story +# NOT = { +# any_in_list = { +# variable = frankokratia_leaders +# this = scope:actor +# } +# } +# } +# } +# random_owned_story = { +# type = frankokratia_story +# limit = { +# NOT = { +# any_in_list = { +# variable = frankokratia_leaders +# this = scope:actor +# } +# } +# } +# add_to_variable_list = { +# name = frankokratia_leaders +# target = scope:actor +# } +# } +# } +# } +# } random_character_war = { limit = { OR = { diff --git a/common/council_tasks/00_steward_tasks.txt b/common/council_tasks/00_steward_tasks.txt index 72bb38a9..25a26cd1 100644 --- a/common/council_tasks/00_steward_tasks.txt +++ b/common/council_tasks/00_steward_tasks.txt @@ -563,51 +563,51 @@ task_develop_county = { } # Struggle Catalyst - if = { - limit = { - exists = scope:county - # target someone from diff faith or culture - scope:county = { - NAND = { - faith = scope:councillor_liege.faith - culture = scope:councillor_liege.culture - } - } - - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_improve_development_vassal_diff_faith_culture - } - } - scope:councillor_liege = { - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_improve_development_vassal_diff_faith_culture - character = scope:councillor_liege - } - } - } - # Struggle Parameter - if = { - limit = { - scope:county.culture != scope:councillor_liege.culture - any_character_struggle = { - involvement = involved - has_struggle_phase_parameter = gain_acceptance_when_developing_other_culture_county - } - } - scope:county.culture = { - save_scope_as = current_culture - change_cultural_acceptance = { - target = scope:councillor_liege.culture - value = miniscule_cultural_acceptance_value - desc = cultural_acceptance_gain_from_phase_effects - } - } - } - - } +# if = { +# limit = { +# exists = scope:county +# # target someone from diff faith or culture +# scope:county = { +# NAND = { +# faith = scope:councillor_liege.faith +# culture = scope:councillor_liege.culture +# } +# } +# +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_improve_development_vassal_diff_faith_culture +# } +# } +# scope:councillor_liege = { +# every_character_struggle = { +# involvement = involved +# activate_struggle_catalyst = { +# catalyst = catalyst_improve_development_vassal_diff_faith_culture +# character = scope:councillor_liege +# } +# } +# } +# # Struggle Parameter +# if = { +# limit = { +# scope:county.culture != scope:councillor_liege.culture +# any_character_struggle = { +# involvement = involved +# has_struggle_phase_parameter = gain_acceptance_when_developing_other_culture_county +# } +# } +# scope:county.culture = { +# save_scope_as = current_culture +# change_cultural_acceptance = { +# target = scope:councillor_liege.culture +# value = miniscule_cultural_acceptance_value +# desc = cultural_acceptance_gain_from_phase_effects +# } +# } +# } +# +# } } else_if = { # fallback for previous save: the effect would trigger a month later limit = { diff --git a/common/customizable_localization/00_war_custom_loc.txt b/common/customizable_localization/00_war_custom_loc.txt index 2a26ae8b..2c71e344 100644 --- a/common/customizable_localization/00_war_custom_loc.txt +++ b/common/customizable_localization/00_war_custom_loc.txt @@ -342,8 +342,8 @@ WarCasusBelliShort = { OR = { using_cb = claim_cb using_cb = claimant_faction_war - using_cb = norman_conquest_cb - using_cb = norwegian_invasion_cb +# using_cb = norman_conquest_cb +# using_cb = norwegian_invasion_cb } } localization_key = war_memory_cb_claim diff --git a/common/decisions/10_culture_conversion_decisions.txt b/common/decisions/10_culture_conversion_decisions.txt index a50418f7..c9f8d73d 100644 --- a/common/decisions/10_culture_conversion_decisions.txt +++ b/common/decisions/10_culture_conversion_decisions.txt @@ -275,31 +275,31 @@ convert_to_local_culture_decision = { } } - modifier = { # Iberian Struggle modifiers - any_character_struggle = { - involvement = involved - } - add = { - value = 0 - if = { - limit = { - any_character_struggle = { - phase_has_catalyst = catalyst_convert_local_culture_faith - } - has_character_flag = agenda_towards_escalation - } - add = -300 - } - else_if = { # Slight boost, so players can't exploit landing lots of characters to bump catalyst progress - limit = { - any_character_struggle = { - phase_has_catalyst = catalyst_convert_local_culture_faith - } - } - add = 20 - } - } - } +# modifier = { # Iberian Struggle modifiers +# any_character_struggle = { +# involvement = involved +# } +# add = { +# value = 0 +# if = { +# limit = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_convert_local_culture_faith +# } +# has_character_flag = agenda_towards_escalation +# } +# add = -300 +# } +# else_if = { # Slight boost, so players can't exploit landing lots of characters to bump catalyst progress +# limit = { +# any_character_struggle = { +# phase_has_catalyst = catalyst_convert_local_culture_faith +# } +# } +# add = 20 +# } +# } +# } modifier = { # If you're the same culture as your liege, and your Capital is in a Duchy with your culture in it, never convert factor = 0 diff --git a/common/domiciles/buildings/NEOW_minority_community_buildings.txt b/common/domiciles/buildings/NEOW_minority_community_buildings.txt index 066e3b9d..b6a1fed3 100644 --- a/common/domiciles/buildings/NEOW_minority_community_buildings.txt +++ b/common/domiciles/buildings/NEOW_minority_community_buildings.txt @@ -8450,7 +8450,7 @@ village_grazing_land_04 = { soundeffect = "event:/DLC/EP3/SFX/UI/domicile_buildings/ep3_ui_domicile_buildings_grazing_lands" } } -grazing_land_05 = { +village_grazing_land_05 = { construction_time = 730 allowed_domicile_types = { minority_community farmstead } previous_building = village_grazing_land_04 @@ -8568,10 +8568,10 @@ grazing_land_05 = { soundeffect = "event:/DLC/EP3/SFX/UI/domicile_buildings/ep3_ui_domicile_buildings_grazing_lands" } } -grazing_land_06 = { +village_grazing_land_06 = { construction_time = 730 allowed_domicile_types = { minority_community farmstead } - previous_building = grazing_land_05 + previous_building = village_grazing_land_05 can_construct = { OR = { diff --git a/common/on_action/army_on_actions.txt b/common/on_action/army_on_actions.txt index f07b9991..5c64279f 100644 --- a/common/on_action/army_on_actions.txt +++ b/common/on_action/army_on_actions.txt @@ -679,7 +679,7 @@ on_siege_looting = { on_army_enter_province = { events = { great_holy_war.0060 # Give Crusaders their trait upon reaching the holy land. - ep3_emperor_yearly.3010 # Byzantine emperor sends fireships to defend the strait of Marmara +# ep3_emperor_yearly.3010 # Byzantine emperor sends fireships to defend the strait of Marmara game_rule.1021 # Figure out whether we should fire a conclusion event during the Conquest. } random_events = { diff --git a/common/on_action/death.txt b/common/on_action/death.txt index 566af92f..99e87690 100644 --- a/common/on_action/death.txt +++ b/common/on_action/death.txt @@ -337,16 +337,16 @@ on_death = { } } - if = { - limit = { - exists = global_var:mongol_empire_was_broken_up - exists = global_var:handed_out_mongolia_in_mongol_succession # If Mongolia wasn't properly granted, something has gone wrong, and the primary_heir should receive the Mongol Empire as expected - any_held_title = { - this = title:e_mongol_empire - } - } - destroy_title = title:e_mongol_empire - } +# if = { +# limit = { +# exists = global_var:mongol_empire_was_broken_up +# exists = global_var:handed_out_mongolia_in_mongol_succession # If Mongolia wasn't properly granted, something has gone wrong, and the primary_heir should receive the Mongol Empire as expected +# any_held_title = { +# this = title:e_mongol_empire +# } +# } +# destroy_title = title:e_mongol_empire +# } # Fix gods-damned Bavaria splitting from East Francia in an ugly fashion in 867. if = { @@ -1576,48 +1576,48 @@ on_death = { } # EP3, Hasan story cycle stuff - if = { - limit = { - root = character:3096 - } - save_scope_as = ismaili_caliph - character:41702 ?= { - trigger_event = { - id = hasan_sabbah.1030 - days = 1 - } - } - } - if = { - limit = { - character:41702 ?= { - any_owned_story = { - type = story_hasan - var:ultimate_foe ?= root - } - } - } - character:41702 = { - random_owned_story = { - type = story_hasan - if = { - limit = { - scope:killer = character:41702 - } - hasan_sabbah_end_war = { - HASAN = character:41702 - SELJUK = root - } - } - else = { - set_variable = { - name = ultimate_foe - value = root.player_heir - } - } - } - } - } +# if = { +# limit = { +# root = character:3096 +# } +# save_scope_as = ismaili_caliph +# character:41702 ?= { +# trigger_event = { +# id = hasan_sabbah.1030 +# days = 1 +# } +# } +# } +# if = { +# limit = { +# character:41702 ?= { +# any_owned_story = { +# type = story_hasan +# var:ultimate_foe ?= root +# } +# } +# } +# character:41702 = { +# random_owned_story = { +# type = story_hasan +# if = { +# limit = { +# scope:killer = character:41702 +# } +# hasan_sabbah_end_war = { +# HASAN = character:41702 +# SELJUK = root +# } +# } +# else = { +# set_variable = { +# name = ultimate_foe +# value = root.player_heir +# } +# } +# } +# } +# } if = { limit = { @@ -2182,7 +2182,7 @@ on_death = { fp1_other_decisions.0063 # FP1: designated HumSac has died fp1_other_decisions.0064 # FP1: remove counties offended by HumSac modifier bp1_house_feud.9000 # BP1: save rivals on death and fire inheritance on action - ep3_frankokratia_events.0021 #EP3 keep frankokratia leaders in the plot +# ep3_frankokratia_events.0021 #EP3 keep frankokratia leaders in the plot mpo_nomad_events.1090 #Nomad widow-marrying event death_management.0123 # Hosue Relations } diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index ffb1dece..a41f9a9a 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -2995,30 +2995,30 @@ on_title_gain_inheritance = { } resolve_title_and_vassal_change = scope:change } - if = { - limit = { - scope:title = { - OR = { - this = title:e_mongol_empire - AND = { - exists = global_var:greatest_of_khans_title - this = global_var:greatest_of_khans_title - } - } - } - has_character_flag = gain_mongol_succession_dread - } - add_dread = 50 - } - else_if = { - limit = { - OR = { - scope:title = title:h_roman_empire - scope:title = title:h_eastern_roman_empire - } - } - set_variable = uses_custom_caesar_flavourization - } +# if = { +# limit = { +# scope:title = { +# OR = { +# this = title:e_mongol_empire +# AND = { +# exists = global_var:greatest_of_khans_title +# this = global_var:greatest_of_khans_title +# } +# } +# } +# has_character_flag = gain_mongol_succession_dread +# } +# add_dread = 50 +# } +# else_if = { +# limit = { +# OR = { +# scope:title = title:h_roman_empire +# scope:title = title:h_eastern_roman_empire +# } +# } +# set_variable = uses_custom_caesar_flavourization +# } } } @@ -3415,25 +3415,25 @@ on_title_lost = { } # Struggle catalyst - if = { - limit = { - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_revoke_title - } - OR = { - scope:transfer_type = flag:revoked - scope:transfer_type = flag:lease_revoked - } - } - every_character_struggle = { - activate_struggle_catalyst = { - catalyst = catalyst_revoke_title - character = scope:new_holder - } - } - } - +# if = { +# limit = { +# any_character_struggle = { +# involvement = involved +# phase_has_catalyst = catalyst_revoke_title +# } +# OR = { +# scope:transfer_type = flag:revoked +# scope:transfer_type = flag:lease_revoked +# } +# } +# every_character_struggle = { +# activate_struggle_catalyst = { +# catalyst = catalyst_revoke_title +# character = scope:new_holder +# } +# } +# } +# # Memories # Lost a significant title if = { diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 388651cb..99fc64d2 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -2909,7 +2909,7 @@ random_yearly_playable_pulse = { 4 = fp2_yearly_events 4 = fp3_yearly_events 2 = bp1_yearly_events - 6 = ep3_yearly_events_byzantium +# 6 = ep3_yearly_events_byzantium 6 = ep3_yearly_events_admin 6 = tgp_japan_yearly_events 6 = tgp_china_yearly_events @@ -3010,8 +3010,8 @@ random_yearly_playable_pulse = { delay = { days = { 181 240 } } bp2_child_pulse delay = { days = { 181 240 } } - bp2_parent_guardian_hostage_taker_pulse - delay = { days = { 241 290 } } +# bp2_parent_guardian_hostage_taker_pulse +# delay = { days = { 241 290 } } bp2_adult_followups delay = { days = { 291 310 } } court_scholar_ongoing @@ -3148,24 +3148,24 @@ five_year_everyone_pulse = { } # FP2 - Checks to start El Cid's Travels - if = { - limit = { # Am I El Cid? - has_fp2_dlc_trigger = yes - has_ep3_dlc_trigger = no - this = character:107590 - NOT = { has_character_flag = has_already_begun_travelling } # Separate first check, for performance - - NOT = { # Start date employer is either dead or gone - OR = { - top_liege = character:107500 - liege = character:107500 - employer = character:107500 - } - } - is_available_healthy_ai_adult = yes # Am I ready to go on an adventure? - } - trigger_event = fp2_struggle.2045 - } +# if = { +# limit = { # Am I El Cid? +# has_fp2_dlc_trigger = yes +# has_ep3_dlc_trigger = no +# this = character:107590 +# NOT = { has_character_flag = has_already_begun_travelling } # Separate first check, for performance +# +# NOT = { # Start date employer is either dead or gone +# OR = { +# top_liege = character:107500 +# liege = character:107500 +# employer = character:107500 +# } +# } +# is_available_healthy_ai_adult = yes # Am I ready to go on an adventure? +# } +# trigger_event = fp2_struggle.2045 +# } #young nobodies getting castrated if = { limit = { @@ -3683,7 +3683,7 @@ on_yearly_events = { 150 = fp2_yearly.3001 # Choosing your epitaph 150 = fp2_yearly.3002 # And They Were Roommates 150 = fp2_yearly.3003 # A Flavorful Evening - 180 = fp2_struggle.2003 # Band of Lost Birds +# 180 = fp2_struggle.2003 # Band of Lost Birds #BP1 - Bontent Pack One Events 100 = bp1_yearly.1000 # Best friend introduces you to a new hobby @@ -4098,12 +4098,12 @@ on_yearly_events = { 200 = tgp_movement_events.0160 # Promise Movement leader to not scheme against each other # TGP - Dynastic Cycle Events - 200 = tgp_dynastic_cycle_events.0001 # Tilt the scales towards Advancement - 200 = tgp_dynastic_cycle_events.0010 # Disciple has a mental breakdown in Instability - 200 = tgp_dynastic_cycle_events.0020 # Rowdy peasants steal food during Instability - 200 = tgp_dynastic_cycle_events.0030 # In this time of Expansion you should become a Military Governor - 200 = tgp_dynastic_cycle_events.0040 # Steward is interested in the Silk Road - 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them +# 200 = tgp_dynastic_cycle_events.0001 # Tilt the scales towards Advancement +# 200 = tgp_dynastic_cycle_events.0010 # Disciple has a mental breakdown in Instability +# 200 = tgp_dynastic_cycle_events.0020 # Rowdy peasants steal food during Instability +# 200 = tgp_dynastic_cycle_events.0030 # In this time of Expansion you should become a Military Governor +# 200 = tgp_dynastic_cycle_events.0040 # Steward is interested in the Silk Road +# 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them # TGP - Confucianism Events 250 = tgp_china_yearly.0001 # Charitable Acts diff --git a/common/scripted_effects/07_dlc_ep3_scripted_effects.txt b/common/scripted_effects/07_dlc_ep3_scripted_effects.txt index 57a7abd1..943a1712 100644 --- a/common/scripted_effects/07_dlc_ep3_scripted_effects.txt +++ b/common/scripted_effects/07_dlc_ep3_scripted_effects.txt @@ -10055,7 +10055,7 @@ ep3_missionary_effect = { OR = { $LOCATION$.religion = $PREACHER$.religion $LOCATION$.faith = { has_doctrine_parameter = unreformed } - character:41702 ?= $PREACHER$ +# character:41702 ?= $PREACHER$ } } $LOCATION$ = { diff --git a/common/scripted_triggers/00_cultural_triggers.txt b/common/scripted_triggers/00_cultural_triggers.txt index d7aae2c6..c7891632 100644 --- a/common/scripted_triggers/00_cultural_triggers.txt +++ b/common/scripted_triggers/00_cultural_triggers.txt @@ -213,7 +213,7 @@ culture_is_not_historical_hybrid_trigger = { #Used to tell if a hybrid culture is one of the historical hybrids or not, mainly in checks for AI hybridization checks related to game rules. #Expects to be used in culture scope NOR = { - this = culture:norman +# this = culture:norman this = culture:maghrebi this = culture:gaelic this = culture:anglo_saxon diff --git a/events/decisions_events/mpo_greatest_of_khans_events.txt b/events/decisions_events/mpo_greatest_of_khans_events.txt index f904a35a..38b76655 100644 --- a/events/decisions_events/mpo_greatest_of_khans_events.txt +++ b/events/decisions_events/mpo_greatest_of_khans_events.txt @@ -85,7 +85,7 @@ mpo_greatest_of_khans.0100 = { limit = { NOR = { using_cb = mpo_great_war_of_defiance_cb - using_cb = crusading_claim_cb +# using_cb = crusading_claim_cb AND = { primary_defender = prev NOT = { @@ -114,7 +114,7 @@ mpo_greatest_of_khans.0100 = { limit = { NOR = { using_cb = mpo_great_war_of_defiance_cb - using_cb = crusading_claim_cb +# using_cb = crusading_claim_cb AND = { primary_defender = prev NOT = { @@ -539,7 +539,7 @@ mpo_greatest_of_khans.0101 = { limit = { NOR = { using_cb = mpo_great_war_of_defiance_cb - using_cb = crusading_claim_cb +# using_cb = crusading_claim_cb AND = { primary_defender = prev NOT = { diff --git a/gfx/portraits/portrait_animations/animations.txt b/gfx/portraits/portrait_animations/animations.txt index 780ab14b..bf86aab4 100644 --- a/gfx/portraits/portrait_animations/animations.txt +++ b/gfx/portraits/portrait_animations/animations.txt @@ -1566,13 +1566,13 @@ idle = { should_use_fat_dwarf_animation = no NOT = { has_trait = pregnant } } - modifier = { - add = 5000 - OR = { - this = character:7757 - this = character:41702 - } - } +# modifier = { +# add = 5000 +# OR = { +# this = character:7757 +# this = character:41702 +# } +# } } portrait_modifier = { animations = AI_zealous_decal diff --git a/history/characters/NEOW_e_britannia.txt b/history/characters/NEOW_e_britannia.txt index 9bc26022..3da64ad8 100644 --- a/history/characters/NEOW_e_britannia.txt +++ b/history/characters/NEOW_e_britannia.txt @@ -80,7 +80,7 @@ britannia_cyflymarhyan_pytyr = { #fixed to real char } britannia_cyflymarhyan_scarlett = { #fixed to real char - name = "W_i_nffryd" + name = "W_i_hat_nffryd" dynasty = dynn_britannia_cyflymarhyan religion = "victorian" culture = soueyrneg @@ -1273,7 +1273,7 @@ britannia_aurelian_ambrose = { } britannia_fitsosbern_horatio = { - name = "_o_rwys" + name = "_O_hat_rwys" dynasty = dynn_britannia_fitsosbern religion = "victorian" culture = soueyrneg