diff --git a/common/activities/activity_types/coronation.txt b/common/activities/activity_types/coronation.txt index 6c73f405..cb1e8210 100644 --- a/common/activities/activity_types/coronation.txt +++ b/common/activities/activity_types/coronation.txt @@ -3061,7 +3061,7 @@ } # Struggle Catalysts -# fp3_struggle_catalysts_for_activities_effect = yes + fp3_struggle_catalysts_for_activities_effect = yes } conclusion_description = { first_valid = { diff --git a/common/activities/activity_types/feast.txt b/common/activities/activity_types/feast.txt index 7ebb34b5..48627fca 100644 --- a/common/activities/activity_types/feast.txt +++ b/common/activities/activity_types/feast.txt @@ -608,31 +608,31 @@ activity_feast = { desc = "Nomad searching for prestige" } } -# # Struggles. -# if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast -# } -# } -# # Escalating. -# if = { -# limit = { has_character_flag = agenda_towards_escalation } -# add = { -# value = -25 -# desc = debug_gui.activity_weight.struggle.wants_to_escalate -# } -# } -# # Deescalating. -# if = { -# limit = { has_character_flag = agenda_towards_deescalation } -# add = { -# value = 50 -# desc = debug_gui.activity_weight.struggle.wants_to_deescalate -# } -# } -# } + # Struggles. + if = { + limit = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast + } + } + # Escalating. + if = { + limit = { has_character_flag = agenda_towards_escalation } + add = { + value = -25 + desc = debug_gui.activity_weight.struggle.wants_to_escalate + } + } + # Deescalating. + if = { + limit = { has_character_flag = agenda_towards_deescalation } + add = { + value = 50 + desc = debug_gui.activity_weight.struggle.wants_to_deescalate + } + } + } if = { limit = { ai_has_warlike_personality = yes @@ -4272,30 +4272,30 @@ activity_feast = { trigger_event = feast.2001 # Struggle Catalysts ## We trigger this here to make sure that someone else actually turned up to the party before having it affect regional relations. -# if = { -# limit = { -# # At least one participant is involved and of a different faith or culture -# scope:activity = { -# any_attending_character = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast -# } -# is_diff_faith_or_culture_trigger = { -# CHAR = scope:host -# STATUS = involved -# } -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_invite_diff_faith_culture_to_feast -# character = scope:activity.activity_host -# } -# } -# } + if = { + limit = { + # At least one participant is involved and of a different faith or culture + scope:activity = { + any_attending_character = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_invite_diff_faith_culture_to_feast + } + is_diff_faith_or_culture_trigger = { + CHAR = scope:host + STATUS = involved + } + } + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_invite_diff_faith_culture_to_feast + character = scope:activity.activity_host + } + } + } } # Accolade stuff if = { @@ -4967,6 +4967,6 @@ activity_feast = { } # Struggle Catalysts -# fp3_struggle_catalysts_for_activities_effect = yes + fp3_struggle_catalysts_for_activities_effect = yes } } diff --git a/common/activities/activity_types/hunt.txt b/common/activities/activity_types/hunt.txt index b4531cb3..ea33ed00 100644 --- a/common/activities/activity_types/hunt.txt +++ b/common/activities/activity_types/hunt.txt @@ -5754,7 +5754,7 @@ on_complete = { # Struggle Catalysts -# fp3_struggle_catalysts_for_activities_effect = yes + fp3_struggle_catalysts_for_activities_effect = yes hunt_remove_variables_effect = yes scope:activity.activity_location = { diff --git a/common/buildings/00_castle_buildings.txt b/common/buildings/00_castle_buildings.txt index 540bcce5..a4c5678d 100644 --- a/common/buildings/00_castle_buildings.txt +++ b/common/buildings/00_castle_buildings.txt @@ -497,22 +497,22 @@ castle_01 = { } } } -# # Harrying logic. -# if = { -# limit = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# is_important_or_vip_struggle_character = yes -# } -# global_var:harrying_of_the_north = { save_scope_as = story } -# if = { -# limit = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# } -# else_if = { -# limit = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# } -# } + # Harrying logic. + if = { + limit = { + character_is_valid_for_harrying_of_the_north_trigger = yes + is_important_or_vip_struggle_character = yes + } + global_var:harrying_of_the_north = { save_scope_as = story } + if = { + limit = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + } + else_if = { + limit = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + } + } } #Mandala Creator Aspect creator_mandala_built_regular_holding_piety_effect = yes diff --git a/common/buildings/00_special_buildings.txt b/common/buildings/00_special_buildings.txt index 4601605f..f0e605d5 100644 --- a/common/buildings/00_special_buildings.txt +++ b/common/buildings/00_special_buildings.txt @@ -6117,11 +6117,11 @@ parthenon = { cost_gold = 1000 can_construct = { - scope:holder.faith.religion = faith:megalocratic.religion + scope:holder.faith.religion = faith:hellenic_pagan.religion } is_enabled = { - scope:holder.faith.religion = faith:megalocratic.religion + scope:holder.faith.religion = faith:hellenic_pagan.religion custom_description = { text = holy_site_building_trigger barony = { diff --git a/common/casus_belli_types/00_claim.txt b/common/casus_belli_types/00_claim.txt deleted file mode 100644 index 9984f51e..00000000 --- a/common/casus_belli_types/00_claim.txt +++ /dev/null @@ -1,836 +0,0 @@ -claim_cb = { - icon = claim_cb - group = claim - mutually_exclusive_titles = { - NOT = { - # If pushing personal claims, you can press multiple claims with the Divine Right innovation (High Medieval Era). - trigger_if = { - limit = { - scope:attacker = scope:claimant - } - scope:attacker = { - OR = { - culture = { - has_innovation = innovation_chronicle_writing - } - AND = { - government_has_flag = government_is_landless_adventurer - has_realm_law = camp_purpose_legitimists - has_variable = legitimist_claimed_title - var:legitimist_claimed_title = { - OR = { - holder = scope:defender - de_jure_liege.holder = scope:defender - } - } - } - } - } - } - # If pushing claims for someone else, you need the Rightful Ownership innovation to press multiple claims (Late Medieval Era). - trigger_else = { - scope:attacker = { - culture = { - has_innovation = innovation_divine_right - } - } - } - } - } - - # This whole section was already commented out, I just commented it out more to prevent console errors - #allowed_for_character = {} - - # allowed_against_character = { - # faith.religion = scope:attacker.faith.religion - # } - - # Root is the title - # scope:claimant is the claimant - # scope:attacker is the attacker - # scope:defender is the defender - is_allowed_claim_title = { - trigger_if = { - limit = { - scope:attacker = { - is_ai = yes - has_variable = conqueror - } - } - tier >= tier_duchy - } - custom_description = { - text = "claimant_titles_held_by_you_or_vassal" - NOR = { - holder = scope:attacker - holder = { - target_is_liege_or_above = scope:attacker - } - } - } - scope:claimant = { - NOT = { has_trait = incapable } - is_hostage = no - custom_description = { - text = is_not_a_minister_desc - tgp_is_any_minister = no - } - trigger_if = { - limit = { scope:claimant != scope:attacker } # You can always press your own claims - is_imprisoned = no - } - #religion = scope:attacker.religion - # claimant must not be at war against defender for this claim already - custom_description = { - text = "claimant_already_pressing_their_claim" - object = root - NAND = { - liege = scope:attacker - any_character_war = { - casus_belli = { - any_target_title = { - this = root - } - } - } - } - } - } - scope:attacker = { - #Cannot press claims against your own vassals, as these must be revoked. - custom_description = { - text = "claimant_titles_held_by_attacker_vassals" - NOT = { - root.holder = { - target_is_liege_or_above = scope:attacker - } - } - } - } - trigger_if = { - limit = { - scope:claimant != scope:attacker # You can always press your own claims (though the prestige cost might be high) - } - trigger_if = { - limit = { - is_weak_claimant_due_to_gender_trigger = { FAITH = scope:attacker.faith CHARACTER = scope:claimant } - } - trigger_if = { - limit = { - scope:claimant = { is_adult = yes } - } - save_temporary_scope_as = treat_claim_as_weak - } - trigger_else = { - always = no - } - } - trigger_else_if = { - limit = { - scope:claimant = { is_adult = no } - } - save_temporary_scope_as = treat_claim_as_weak - } - # making the default behavior explicit if no other trigger_(else_)ifs are valid - trigger_else = { - always = yes - } - } - trigger_if = { - limit = { exists = scope:treat_claim_as_weak } - holder = { - custom_description = { - text = "claim_target_position_is_weak" - object = scope:attacker - OR = { - has_trait = incapable - is_adult = no - is_weak_claimant_due_to_gender_trigger = { FAITH = scope:attacker.faith CHARACTER = root.holder } - } - } - } - } - #Under Byzantine law, a ruler must be unblemished - trigger_if = { - limit = { - scope:defender.culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } - } - scope:claimant = { - custom_description = { - text = "byzantine_claimant_is_disfigured" - object = scope:claimant - valid_for_byz_succession_trigger = yes - } - } - } - #Under Byzantine law, a ruler must be able to produce children. - trigger_if = { - limit = { - scope:defender.culture = { has_cultural_parameter = physical_disfigurement_blocks_inheritance } - } - scope:claimant = { - custom_description = { - text = "byzantine_claimant_is_celibate" - object = scope:defender - is_eunuch_trigger = no - NOT = { - has_trait = celibate - } - } - } - } - } - - allowed_for_character_display_regardless = { - #If you're landless, you need the Legitimist camp purpose - trigger_if = { - limit = { - scope:attacker = { - government_has_flag = government_is_landless_adventurer - } - } - scope:attacker = { - has_realm_law = camp_purpose_legitimists - } - } - tgp_japan_offensive_wars_ban_trigger = yes - } - - cost = { - piety = { - value = 0 - add = common_cb_impious_piety_cost - } - prestige = { - value = 0 - add = claim_cb_prestige_cost - multiply = common_cb_prestige_cost_multiplier - - if = { - limit = { - scope:attacker = { - has_character_flag = temp_no_claim_war_cost - } - } - multiply = { - value = 0 - desc = "free_cost" # Says 'free' - } - } - - # LEGITIMACY AFFECTS COST - multiply = { - value = { - value = 0 - scope:attacker = { - if = { - limit = { has_legitimacy_flag = reduced_claim_cb_cost } - add = 0.5 - } - else_if = { - limit = { has_legitimacy_flag = very_reduced_claim_cb_cost } - add = 0.25 - } - else_if = { - limit = { has_legitimacy_flag = extra_reduced_claim_cb_cost } - add = 0.15 - } - else = { - add = 1 - } - } - } - desc = legitimacy_high_modifier_tt - } - multiply = { - value = { - value = 0 - scope:attacker = { - if = { - limit = { has_legitimacy_flag = massively_increased_claim_cb_cost } - add = 2.5 - } - else_if = { - limit = { has_legitimacy_flag = very_increased_claim_cb_cost } - add = 2 - } - else_if = { - limit = { has_legitimacy_flag = increased_claim_cb_cost } - add = 1.5 - } - else = { - add = 1 - } - } - } - desc = legitimacy_low_modifier_tt - } - } - } - - 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 } - } - } - } - - 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 - } - } - } - } - } - AND = { - scope:claimant != scope:attacker - scope:claimant = { - OR = { - is_alive = no - NOR = { - is_vassal_or_below_of = scope:attacker - is_courtier_of = scope:attacker - } - } - } - } - scope:claimant = { - tgp_is_any_minister = yes - } - } - } - - 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 - } - triggered_desc = { - trigger = { - scope:claimant = { - NOR = { - this = scope:attacker - NOR = { - is_vassal_or_below_of = scope:attacker - is_courtier_of = scope:attacker - } - tgp_is_any_minister = yes - } - } - } - desc = msg_claim_war_invalidated_claimant_unavailable_not_vassal_message - } - triggered_desc = { - trigger = { - scope:claimant = { - tgp_is_any_minister = yes - } - } - desc = msg_claim_war_invalidated_claimant_is_now_a_minister_message - } - desc = msg_claim_war_invalidated_message - } - } - - on_invalidated = { - } - - 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 = { - #Grab the higher title tier - ordered_in_list = { - list = target_titles - order_by = tier - save_scope_as = target - } - - scope:attacker = { - if = { - limit = { - is_ai = no - has_realm_law = camp_purpose_legitimists - any_in_list = { - list = target_titles - tier >= tier_kingdom - } - } - add_achievement_global_variable_effect = { - VARIABLE = finished_birthright_achievement - VALUE = yes - } - } - if = { - limit = { - is_landless_adventurer = yes - NOT = { government_has_flag = government_is_nomadic } - } - hidden_effect = { - if = { - limit = { - NOT = { has_trait = adventurer } - } - add_trait = adventurer - } - save_scope_as = the_adventurer - every_courtier = { - set_variable = { - name = former_camp_leader - value = scope:the_adventurer - } - add_trait = adventurer_follower - } - } - } - if = { - limit = { - has_variable = install_claimants_oath - has_variable = install_claimants_oath_counter - } - add_to_variable_list = { - name = installed_claimants_oath - target = scope:claimant - } - change_variable = { - name = install_claimants_oath_counter - add = 1 - } - } - - show_pow_release_message_effect = yes - - #EP2 Accolade glory gain from winning against higher ranked enemy - accolade_attacker_war_end_glory_gain_med_effect = yes - - # FP1: note the victory for future memorialisation via stele (if applicable) - fp1_remember_recent_conquest_victory_effect = yes - } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_attacker_victory_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 - } - } - - # EP3 Laamp possibility warning - ep3_war_loss_adventurer_tt_effect = yes - } - - 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 - - # Landless Ceremonial Liege - if = { - limit = { - scope:claimant.top_liege != scope:defender.top_liege - scope:claimant.primary_title.tier < scope:defender.primary_title.tier - scope:claimant = { is_landed = no } - any_in_list = { - list = target_titles - exists = var:ceremonial_title - } - NOT = { - any_in_list = { - list = target_titles - OR = { - is_landless_type_title = no - is_noble_family_title = yes - } - } - } - } - scope:defender = { - faction_demand_regent_transfer_effect = { - NEW_REGENT = scope:claimant - REASON = conquest_claim - } - } - create_title_and_vassal_change = { - type = conquest_claim - save_scope_as = change_three - add_claim_on_loss = no - } - # Landless Ceremonial Liege must be house head - scope:claimant = { - if = { - limit = { is_house_head = no } - house = { - house_head = { - if = { - limit = { - is_landed = no - is_ai = no - } - found_cadet_house_decision_effect = { - CHARACTER = this - PRESTIGE = 0 - } - } - } - set_house_head = scope:claimant - } - } - } - resolve_title_and_vassal_change = scope:change_three - } - else_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 = 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 - } - - # 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 = 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 } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - #EP2 accolade glory gain for winning against higher ranked enemy - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - 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 - } - - 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 - - ai_score_mult = { - value = 1 - # HOUSE RELATIONS - add = house_relation_ai_score_value - #There is no fighting in the admin room! - if = { - limit = { - scope:attacker = { - government_has_flag = government_is_feudal - liege ?= { - government_has_flag = government_is_administrative - } - } - scope:defender = { - government_has_flag = government_is_administrative - liege ?= scope:attacker.liege - } - } - multiply = 0.4 - } - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - } -} diff --git a/common/casus_belli_types/06_ce1_wars.txt b/common/casus_belli_types/06_ce1_wars.txt deleted file mode 100644 index 37f88544..00000000 --- a/common/casus_belli_types/06_ce1_wars.txt +++ /dev/null @@ -1,1984 +0,0 @@ -# Custom CBs for CE1 - -# mythical_ancestor_war - like a mix of a claim and invasion war, allows you to invade anyone who holds land within a title you have a claim on - -# legendary_adventure - Kingdom-tier Varangian Adventure - -# leg_demand_fealty_cb - Vassalize neighbouring realms smaller than you - -mythical_ancestor_war = { - icon = invasion - group = claim - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { - always = no - } - - allowed_for_character = { - is_alive = yes # error suppression - is_ai = no - has_variable_list = legendary_claims - dynasty ?= { ce1_heroic_track_perks >= 2 } - NOT = { - government_has_flag = government_is_landless_adventurer - } - } - - allowed_for_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - target_titles = all - target_title_tier = all - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - - valid_to_start = { - scope:attacker = { - OR = { - is_target_in_variable_list = { - name = legendary_claims - target = scope:target - } - any_claim = { - root = { - is_target_in_variable_list = { - name = legendary_claims - target = prev - } - } - scope:target = { - is_de_jure_liege_or_above_target = prev - } - } - } - } - } - - 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 - - on_invalidated = { - } - - cost = { - piety = { - value = 0 - add = common_cb_impious_piety_cost - } - prestige = { # This should cost around the same as a regular claim war but without the discounts - value = 0 - add = ancestor_cb_prestige_cost - - if = { - limit = { - scope:attacker = { - has_character_flag = temp_no_claim_war_cost - } - } - multiply = { - value = 0 - desc = "free_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 - } - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = 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 } - - # Truce - add_truce_attacker_victory_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 - } - resolve_title_and_vassal_change = scope:change - - # Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution. - modify_all_participants_fame_values = { - WINNER = scope:attacker - LOSER = scope:defender - FAME_BASE = scope:cb_prestige_factor # Set by 'setup_invasion_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 } - - # 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 - - # 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 = "ANCESTOR_WAR_NAME" - war_name_base = "ANCESTOR_WAR_NAME_BASE" - cb_name = "ANCESTOR_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 - - ai_score_mult = { - value = 1 - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - } -} - -legendary_adventure = { - icon = invasion - group = conquest - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - custom_tooltip = { - text = legendary_adventure_cb_tt - exists = var:legendary_adventure_cb - var:legendary_adventure_cb >= 1 - } - highest_held_title_tier >= tier_duchy - NOT = { - government_has_flag = government_is_landless_adventurer - } - } - - allowed_for_character_display_regardless = { - # Most requirements are taken care of by the legend rewards - is_at_war = no - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - # Players vs. AI filtering. - OR = { - # Can always target the AI. - is_ai = yes - # Cannot target a player unless they completely control at least two duchies. - any_sub_realm_kingdom = { - count >= 2 - save_temporary_scope_as = player_controlled_kingdom - # Custom description to suppress errors. - custom_description = { - text = SUPPRESS - scope:defender = { completely_controls = scope:player_controlled_kingdom } - } - } - } - NOT = { - is_liege_or_above_of = scope:attacker - } - # Scope:defender cannot be bordering your realm. - scope:defender = { - NOT = { character_is_land_realm_neighbor = scope:attacker } - } - } - target_titles = all - target_title_tier = kingdom - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - - ai_can_target_all_titles = { always = yes } - ai_score_mult = { - value = varangian_adventure_ai_targeting_value - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - } - - valid_to_start = { - } - - 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_county_conquest_war_invalidated_message - - on_invalidated = {} - - cost = { - piety = { - value = fp1_varangian_adventure_base_piety_cost - - multiply = common_cb_piety_cost_multiplier - } - prestige = { - value = varangian_adventurer_cb_cost - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - scope:attacker = { - change_variable = { - name = legendary_adventure_cb - add = -1 - } - } - on_declared_war = yes - # Dish out event troops, if appropriate. - ## We give out x200 troops per same-culture same-faith core mainland Scandinavian county, up to a maximum of ten counties. - ## These are evenly split between good MaA -> average MaA -> good MaA again, to give a decent bell curve. - scope:attacker = { - # Grab capital for loc - capital_barony = { save_scope_as = capital_barony } - # Send the actual troops. - send_interface_toast = { - type = msg_troops_gained - title = legendary_adventure.troops_raised.tt - left_icon = scope:attacker - #Raise the adventuring host! - spawn_army = { - men_at_arms = { - type = accolade_maa_vanguards - stacks = 2 - } - men_at_arms = { - type = accolade_maa_lancers - stacks = 2 - } - - men_at_arms = { - type = accolade_maa_skirmishers - stacks = 4 - } - men_at_arms = { - type = accolade_maa_archers - stacks = 4 - } - men_at_arms = { - type = accolade_maa_pikes - stacks = 4 - } - - inheritable = no - uses_supply = no - location = scope:attacker.capital_province - war = scope:war - war_keep_on_attacker_victory = yes - save_scope_as = new_army - name = adventuring_host - } - } - } - } - - 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 } - - # Organise general results for the attacker. - scope:attacker = { - if = { - limit = { - exists = liege - this != liege - } - liege = { - save_scope_as = title_beneficiary - } - } - else = { - custom_tooltip = fp1_varangian_adventurer_conquest.summaries.old_domains - custom_tooltip = fp1_varangian_adventurer_conquest.summaries.landed_family_old_domains - custom_tooltip = fp1_varangian_adventurer_conquest.summaries.old_vassals - } - every_vassal_or_below = { - limit = { dynasty = scope:attacker.dynasty } - add_to_list = vassalised_family_list - } - # Set up titles in the new colony. - ## First up, hand over counties in the target kingdom to scope:attacker. - create_title_and_vassal_change = { - type = conquest - save_scope_as = change - add_claim_on_loss = yes - } - 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 - ## Grab the appropriate kingdom for future independence checks. - random_in_list = { - list = target_titles - limit = { tier = tier_kingdom } - save_scope_as = target_kingdom - } - ## Next, if the appropriate kingdom doesn't already exist, create it. - if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_kingdom - is_title_created = no - } - } - random_in_list = { - list = target_titles - limit = { tier = tier_kingdom } - save_scope_as = new_kingdom - } - create_title_and_vassal_change = { - type = created - save_scope_as = change - add_claim_on_loss = no - } - scope:new_kingdom = { - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - ## Else if it does & is a part of scope:defender's sub-realm, usurp it. - else_if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_kingdom - holder = { - OR = { - this = scope:defender - any_liege_or_above = { this = scope:defender } - } - } - } - } - random_in_list = { - list = target_titles - # No need to check all triggers, since there'll only ever be one kingdom in the list. - limit = { tier = tier_kingdom } - save_scope_as = new_kingdom - } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = yes - } - scope:new_kingdom = { - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - ## Else we want a titular kingdom. - else = { - # To keep tooltips neat, show the core kingdom as transferring (preventing a messy "unlanded of" from appearing). - show_as_tooltip = { - random_in_list = { - list = target_titles - limit = { tier = tier_kingdom } - save_scope_as = new_kingdom - } - create_title_and_vassal_change = { - type = created - save_scope_as = change - add_claim_on_loss = no - } - scope:new_kingdom = { - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - # Actual transfer. - hidden_effect = { - create_dynamic_title = { - tier = kingdom - name = ADVENTURER_KINGDOM_NAME - } - create_title_and_vassal_change = { - type = created - save_scope_as = change - add_claim_on_loss = no - } - scope:new_title = { - set_destroy_on_gain_same_tier = yes - set_no_automatic_claims = yes - set_can_be_named_after_dynasty = no - change_title_holder = { - holder = scope:attacker - change = scope:change - } - save_scope_as = new_kingdom - } - resolve_title_and_vassal_change = scope:change - # Generate a new CoA - ## We do this in a separate block so that the effect has time to see that the title has a holder, since it'll error otherwise. - scope:new_title = { generate_coa = yes } - } - } - ## Set a new capital. - ### We prefer the de jure capital of the other. - if = { - limit = { - any_in_list = { - list = target_titles - this = kingdom.title_capital_county - } - } - random_in_list = { - list = target_titles - limit = { this = kingdom.title_capital_county } - save_temporary_scope_as = new_capital - scope:attacker = { set_realm_capital = scope:new_capital } - } - } - ### Otherwise, tribals go by pure levy count. - else_if = { - limit = { - scope:attacker = { government_has_flag = government_is_tribal } - } - ordered_in_list = { - list = target_titles - limit = { tier = tier_county } - order_by = total_county_levies - save_temporary_scope_as = new_capital - scope:attacker = { set_realm_capital = scope:new_capital } - } - } - ### If nomadic, they will prefer county fertility - else_if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_county - uses_county_fertility = yes - } - } - ordered_in_list = { - list = target_titles - limit = { tier = tier_county } - order_by = county_fertility - save_temporary_scope_as = new_capital - scope:attacker = { set_realm_capital = scope:new_capital } - } - } - ### Everyone else prefers the highest development. - else = { - ordered_in_list = { - list = target_titles - limit = { tier = tier_county } - order_by = development_level - save_temporary_scope_as = new_capital - scope:attacker = { set_realm_capital = scope:new_capital } - } - } - # Then re-order stuff in the Old Country. - ## First, we destroy any other titles scope:attacker holds (excepting HoF titles). - scope:attacker = { - if = { - limit = { - any_held_title = { - title_tier = duchy - is_head_of_faith = no - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev } - } - } - } - every_held_title = { - title_tier = duchy - limit = { - is_head_of_faith = no - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev } - } - } - save_temporary_scope_as = excess_duchy - scope:attacker = { - every_vassal = { - limit = { - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev.primary_title } - } - } - add_to_temporary_list = vassal_transfer - } - # First, try to give it to your former liege - if = { - limit = { - exists = scope:title_beneficiary - } - scope:excess_duchy = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - hidden_effect = { - every_in_list = { - limit = { - this != scope:title_beneficiary - } - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - # Failing that, try to give the title away to a powerful vassal - else_if = { - limit = { - any_powerful_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_duchy - } - } - } - random_powerful_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_duchy - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_duchy = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Failing that, give it to some random vassal - else_if = { - limit = { - any_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_duchy - } - } - } - random_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_duchy - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_duchy = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Final failure, destroy the title - else = { - destroy_title = scope:excess_duchy - } - } - } - } - if = { - limit = { - any_held_title = { - title_tier = kingdom - NOR = { - this = scope:new_kingdom - is_head_of_faith = yes - } - } - } - every_held_title = { - title_tier = kingdom - limit = { - NOR = { - this = scope:new_kingdom - is_head_of_faith = yes - } - } - save_temporary_scope_as = excess_kingdom - scope:attacker = { - every_vassal = { - limit = { - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev.primary_title } - } - } - add_to_temporary_list = vassal_transfer - } - # First, try to give it to your former liege - if = { - limit = { - exists = scope:title_beneficiary - } - scope:excess_kingdom = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - hidden_effect = { - every_in_list = { - limit = { - this != scope:title_beneficiary - } - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - # Failing that, try to give the title away to a powerful vassal - else_if = { - limit = { - any_powerful_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_kingdom - } - } - } - random_powerful_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_kingdom - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_kingdom = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Failing that, give it to some random vassal - else_if = { - limit = { - any_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_kingdom - } - } - } - random_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_kingdom - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_kingdom = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Final failure, destroy the title - else = { - destroy_title = scope:excess_kingdom - } - } - } - } - if = { - limit = { - any_held_title = { - title_tier = empire - is_head_of_faith = no - } - } - every_held_title = { - title_tier = empire - limit = { - is_head_of_faith = no - } - save_temporary_scope_as = excess_empire - scope:attacker = { - every_vassal = { - limit = { - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev.primary_title } - } - } - add_to_temporary_list = vassal_transfer - } - # First, try to give the title away - if = { - limit = { - any_powerful_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_empire - } - } - } - random_powerful_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_empire - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_empire = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - hidden_effect = { - every_in_list = { - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Failing that, give it to some random vassal - else_if = { - limit = { - any_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_empire - } - } - } - random_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_empire - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_empire = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - every_in_list = { - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Final failure, destroy the title - else = { - destroy_title = scope:excess_empire - } - } - } - } - if = { - limit = { - any_held_title = { - title_tier = hegemony - is_head_of_faith = no - } - } - every_held_title = { - title_tier = hegemony - limit = { - is_head_of_faith = no - } - save_temporary_scope_as = excess_hegemony - scope:attacker = { - every_vassal = { - limit = { - NOT = { - scope:new_kingdom = { is_de_jure_liege_or_above_target = prev.primary_title } - } - } - add_to_temporary_list = vassal_transfer - } - # First, try to give the title away - if = { - limit = { - any_powerful_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_hegemony - } - } - } - random_powerful_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_hegemony - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_hegemony = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - hidden_effect = { - every_in_list = { - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Failing that, give it to some random vassal - else_if = { - limit = { - any_vassal = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_hegemony - } - } - } - random_vassal = { - limit = { - any_held_title = { - target_is_de_jure_liege_or_above = scope:excess_hegemony - } - } - save_temporary_scope_as = title_beneficiary - scope:excess_hegemony = { - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - change_title_holder_include_vassals = { - holder = scope:title_beneficiary - change = scope:change - } - every_in_list = { - list = vassal_transfer - change_liege = { - liege = scope:title_beneficiary - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - } - } - # Final failure, destroy the title - else = { - destroy_title = scope:excess_hegemony - } - } - } - } - # If at the end of this, you're somebody's vassal, break free - if = { - limit = { - top_liege != this - } - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - becomes_independent = { change = scope:change } - resolve_title_and_vassal_change = scope:change - } - } - ## Sort out vassalised family. - custom_tooltip = fp1_varangian_adventurer_conquest.summaries.family_transfer - every_held_title = { - title_tier = county - limit = { - kingdom = { is_in_list = target_titles } - } - add_to_list = spare_counties_list - } - ## If there are any to account for, we bring over other landed family members from the Old Country & try to give them counties in the colony. - if = { - limit = { - any_in_list = { - list = vassalised_family_list - count >= 1 - } - } - # Then iterate through the family members, dishing out titles as appropriate. - every_in_list = { - list = vassalised_family_list - # Players first. - limit = { is_ai = no } - # Then NPCs, prioritising counts. - alternative_limit = { highest_held_title_tier = tier_county } - # We don't process barons, they can just go landless. - # Grab the currently affected vassal. - save_temporary_scope_as = receiving_vassal - # Then, if there's anything in that list, look at handing out titles. - if = { - limit = { - any_in_list = { - list = spare_counties_list - this != scope:attacker.capital_county - holder = scope:attacker - } - } - random_in_list = { - list = spare_counties_list - limit = { - this != scope:attacker.capital_county - tier = tier_county - holder = scope:attacker - } - save_temporary_scope_as = spare_county - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - scope:spare_county = { - change_title_holder = { - holder = scope:receiving_vassal - change = scope:change - } - } - scope:receiving_vassal = { - change_liege = { - liege = scope:attacker - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - # And add them to the post-processing list so we can divy out their lands elsewhere. - add_to_list = vassal_family_processed_list - } - # Otherwise, we're going to have to do something special with this character, so take note of them for later. - else = { add_to_list = vassal_family_not_processed_list } - } - } - ## Distribute scope:attacker's old domains to peasant vassals of the local culture/faith. - every_held_title = { - title_tier = county - limit = { - kingdom = { - this != scope:target_kingdom - } - } - # Grab the county for ease of reference. - save_temporary_scope_as = current_county - # First, try to give it to the title beneficiary from earlier - if = { - limit = { - exists = scope:title_beneficiary - } - scope:title_beneficiary = { save_temporary_scope_as = local_warlord } - } - # Failing that, make a new guy - else = { - # Create an elevated peasant to claim the county. - create_character = { - location = scope:current_county.title_province - template = old_country_local_warlord_template - save_temporary_scope_as = local_warlord - } - } - # Assign the seceding title to the new upstart. - create_title_and_vassal_change = { - type = granted - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - scope:current_county = { - change_title_holder = { - holder = scope:local_warlord - change = scope:change - take_baronies = yes - } - } - } - resolve_title_and_vassal_change = scope:change - # And give them their independence if they have become your vassal. - if = { - limit = { - scope:local_warlord = { - is_vassal_of = scope:attacker - } - } - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - scope:local_warlord = { - becomes_independent = { change = scope:change } - save_scope_as = truce_loc - add_truce_both_ways = { - character = scope:attacker - days = 14600 - name = CE1_ADVENTURER_TRUCE - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - ## Distribute landed family's domains outside of the colony to peasant vassals of the local culture/faith. - every_in_list = { - list = vassal_family_processed_list - every_held_title = { - title_tier = county - limit = { - kingdom = { - this != scope:target_kingdom - } - } - # Grab the county for ease of reference. - save_temporary_scope_as = current_county - # Create an elevated peasant to claim the county. - create_character = { - location = scope:current_county.title_province - template = old_country_local_warlord_template - save_temporary_scope_as = local_warlord - } - # Assign the seceding title to the new upstart. - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - scope:current_county = { - change_title_holder = { - holder = scope:local_warlord - change = scope:change - take_baronies = yes - } - } - } - resolve_title_and_vassal_change = scope:change - # And give them their independence. - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - scope:local_warlord = { - becomes_independent = { change = scope:change } - save_scope_as = truce_loc - add_truce_both_ways = { - character = scope:attacker - days = 14600 - name = CE1_ADVENTURER_TRUCE - } - } - } - resolve_title_and_vassal_change = scope:change - } - } - ## Give all old vassals outside of the target_titles independence. - every_vassal = { - limit = { - NOT = { - any_held_title = { kingdom = scope:target_kingdom } - } - } - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - hidden_effect = { - becomes_independent = { change = scope:change } - save_scope_as = truce_loc - add_truce_both_ways = { - character = scope:attacker - days = 14600 - name = CE1_ADVENTURER_TRUCE - } - } - resolve_title_and_vassal_change = scope:change - } - ## Adjusting the government type as appropriate. - # Conquering tribes makes you tribal. - if = { - limit = { - capital_province = { has_holding_type = tribal_holding } - NOT = { government_has_flag = government_is_tribal } - } - # Change government to tribal. - change_government = tribal_government - } - # Conquering elsewhere as a tribal makes you feudal. - else_if = { - limit = { - NOT = { - capital_province = { has_holding_type = tribal_holding } - } - government_has_flag = government_is_tribal - } - # Change government to feudal. - change_government = feudal_government - } - ## Seizing control so things *vaguely* work. - custom_tooltip = fp1_varangian_adventurer_conquest.summaries.control_rebate - scope:attacker = { trigger_event = fp1_varangian_adventures.0001 } - ## And giving them a gold bounty to keep them afloat. - scope:attacker = { add_gold = varangian_adventures_bounty_amount_value } - # Finally, general cleanup. - ## Move any remaining newly-landless family to scope:attacker's court. - scope:attacker = { - #gather all your cool dudes - every_courtier = { - limit = { - is_ai = yes - } - add_to_list = vassal_family_not_processed_list - } - } - every_in_list = { - list = vassal_family_not_processed_list - limit = { is_ruler = no } - save_temporary_scope_as = landless_family - scope:attacker = { add_courtier = scope:landless_family } - set_location = scope:attacker.capital_province - } - ## If scope:attacker wasn't the house head, they found a new house. We ignore their probable-tribalism. - if = { - limit = { - this != house.house_head - } - found_cadet_house_decision_effect = { - CHARACTER = scope:attacker - PRESTIGE = 0 - } - } - ## If scope:attacker *was* the house head, then all landed members of their house not in their new realm found new houses. - else = { - house = { - every_house_member = { - limit = { - is_ruler = yes - NOR = { - # Exempt scope:attacker. - this = scope:attacker - # And anyone who made the trip with them. - any_liege_or_above = { this = scope:attacker } - } - } - save_scope_as = attacker_house_head - found_cadet_house_decision_effect = { - CHARACTER = scope:attacker_house_head - PRESTIGE = 0 - } - } - } - } - ## If scope:attacker wasn't an adventurer before, make them one. - if = { - limit = { - NOR = { - has_trait = adventurer - government_has_flag = government_is_nomadic - } - } - add_trait = adventurer - } - ## Increment their Varangian Adventurer CB tally. - if = { - limit = { - NOT = { has_variable = va_cb_tally } - } - set_variable = { - name = va_cb_tally - # We set to two initially, since the first war cost prestige already, so we want to pretend you had a value of 1 the first time around. - value = 2 - } - } - else = { - change_variable = { - name = va_cb_tally - add = 1 - } - } - # Aaaaaand track the A Dangerous Business achievement. - if = { - limit = { - has_trait = dwarf - NOT = { - capital_county = { - title_province = { geographical_region = world_europe } - } - } - } - add_achievement_flag_effect = { FLAG = a_dangerous_business_achievement_flag } - } - } - - # 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 - } - - # Break alliances now out of diplo range - if = { - limit = { - scope:attacker = { - any_ally = { - NOT = { in_diplomatic_range = scope:attacker } - } - } - } - scope:attacker = { - every_ally = { - limit = { - NOT = { in_diplomatic_range = scope:attacker } - } - break_alliance = scope:attacker - } - } - } - - # 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 = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - #EP2 accolade glory gain for winning 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 = { - 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 = 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_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 = "CE1_ADVENTURER_WAR" - war_name_base = "CE1_ADVENTURER_WAR_BASE" - cb_name = "CE1_ADVENTURER_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 -} - -leg_demand_fealty_cb = { - icon = de_jure_cb - group = conquest - - allowed_for_character = { - scope:attacker = { - has_character_modifier = fealty_demanded - } - NOT = { - government_has_flag = government_is_landless_adventurer - } - } - - allowed_for_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - scope:defender.highest_held_title_tier < scope:attacker.highest_held_title_tier - scope:defender = { - any_neighboring_and_across_water_top_liege_realm_owner = { - this = scope:attacker - } - } - } - target_titles = none - ignore_effect = change_title_holder - ai_only_against_neighbors = yes - - valid_to_start = { - } - - on_declaration = { - on_declared_war = yes - } - - should_invalidate = { - scope:defender.highest_held_title_tier >= scope:attacker.highest_held_title_tier - } - - cost = { - piety = { - value = 0 - add = common_cb_impious_piety_cost - } - prestige = { - value = 0 - add = { - desc = CB_SIZE_OF_TARGET_REALM_COST - scope:defender = { - every_sub_realm_county = { - add = { - value = 40 - } - } - } - } - if = { - limit = { - scope:defender.primary_title = { - tier = tier_kingdom - } - } - multiply = { - value = 2 - desc = CB_VASSALIZING_KING - } - } - if = { - limit = { - scope:defender.primary_title = { - tier = tier_empire - } - } - multiply = { - value = 4 - desc = CB_VASSALIZING_EMPEROR - } - } - - multiply = common_cb_prestige_cost_multiplier - } - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = leg_demand_fealty_v_attacker - } - desc = leg_demand_fealty_v_neutral - } - - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - #EP2 accolade glory gain for winning against higher ranked enemy - scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } - - create_title_and_vassal_change = { - type = conquest - save_scope_as = change - add_claim_on_loss = yes - } - - scope:defender = { - change_liege = { - liege = scope:attacker - change = scope:change - } - - } - resolve_title_and_vassal_change = scope:change - - - # truce - add_truce_attacker_victory_effect = yes - - # FP1: note the victory for future memorialisation via stele (if applicable). - scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - - #Mandalas gain or lose piety/devotion depending on Decree - mandala_war_victory_effects = yes - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = de_jure_cb_white_peace_desc_defender - } - desc = de_jure_cb_white_peace_desc - } - - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - - #EP2 accolade glory gain for doing ok against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - # Truce - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = de_jure_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = de_jure_cb_defeat_desc_attacker - } - desc = de_jure_cb_defeat_desc - } - - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 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 - } - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "DEMAND_FEALTY_NAME" - war_name_base = "DEMAND_FEALTY_NAME_BASE" - cb_name = DEMAND_FEALTY_CB_NAME - interface_priority = 98 #Below take all and regular dejure. - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 - - on_invalidated_desc = msg_invalidate_war_title - - ai_score_mult = { - value = 1 - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - } -} diff --git a/common/casus_belli_types/07_ep3_admin_cbs.txt b/common/casus_belli_types/07_ep3_admin_cbs.txt deleted file mode 100644 index 0602d503..00000000 --- a/common/casus_belli_types/07_ep3_admin_cbs.txt +++ /dev/null @@ -1,2002 +0,0 @@ -expansion_cb = { - icon = county_expansion - group = conquest - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_for_character = { - OR = { - government_allows = administrative - house ?= { has_house_modifier = bp3_bosporan_kingdom_modifier } - } - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_celestial - } - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - target_titles = neighbor_land - target_title_tier = county - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - value = viking_conquest_ai_score_value - - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - - # Tell the Romans to stop going adventuring into the steppe for no gods-damned reason. - multiply = byzantium_conquests_ai_score_value - #Declaring war on the frankokratia leader can really ruin the whole thing - if = { - limit = { - scope:defender = { - any_owned_story = { - story_type = frankokratia_story - NOT = { has_variable = franko_war_complete } - } - } - } - multiply = 0 - } - } - - valid_to_start = { - scope:target = { - is_landless_type_title = no - } - trigger_if = { - limit = { - scope:attacker = { - NOT = { government_allows = administrative } - house ?= { has_house_modifier = bp3_bosporan_kingdom_modifier } - } - } - scope:target.title_province = { - geographical_region = black_sea_coast_region - } - } - } - - 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_county_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - influence = { - add = { - value = 25 - desc = CB_BASE_COST - } - add = { - value = 0.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 75 - } - multiply = common_cb_cost_multiplier - if = { - limit = { - scope:attacker = { - NOT = { government_has_flag = government_has_influence } - } - } - multiply = 0 - } - } - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = county_conquest_cb_victory_desc_attacker - } - desc = county_conquest_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - - # Grab the designated county. - every_in_list = { - list = target_titles - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "EXPANSION_WAR_NAME" - war_name_base = "EXPANSION_WAR_NAME_BASE" - cb_name = "EXPANSION_COUNTY_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -duchy_expansion_cb = { - icon = duchy_expansion - group = conquest - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - allowed_for_character = { - government_allows = administrative - vassal_contract_has_flag = admin_duchy_expansion_unlocked - NOT = { - government_has_flag = government_is_landless_adventurer - } - } - - allowed_for_character_display_regardless = { - trigger_if = { - limit = { - culture = { - has_cultural_parameter = cb_lower_prestige_level_requirement - } - } - prestige_level >= 2 - } - trigger_else = { - prestige_level >= 3 - } - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - target_titles = neighbor_land - target_title_tier = duchy - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - - ai_only_against_neighbors = yes - - ai_score_mult = { - value = viking_conquest_ai_score_value - - # As a feudal gov, do not attack tribal - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - - # Tell the Romans to stop going adventuring into the steppe for no gods-damned reason. - multiply = byzantium_conquests_ai_score_value - #Declaring war on the frankokratia leader can really ruin the whole thing - if = { - limit = { - scope:defender = { - any_owned_story = { - story_type = frankokratia_story - NOT = { has_variable = franko_war_complete } - } - } - } - multiply = 0 - } - } - - valid_to_start = { - scope:target = { - is_landless_type_title = 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 = { - } - - cost = { - influence = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 1 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 250 - } - multiply = common_cb_cost_multiplier - } - prestige = { - add = { - value = 100 - desc = CB_BASE_COST - } - add = { - value = 5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 500 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = county_conquest_cb_victory_desc_attacker - } - desc = county_conquest_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 eligible vassals and sieze counties from ineligible ones - every_in_list = { - list = target_titles - custom_tooltip = CONQUEST_CB_TITLE - - expansion_cb_title_transfer = yes - } - - every_in_list = { - list = vassals_taken - change_liege = { - liege = scope:attacker - change = scope:change - } - } - - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:attacker - change = scope:change - take_baronies = yes - } - } - - # If applicable, take the target title (i.e. duchy) as well - every_in_list = { - list = target_title_taken - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = medium_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - # Truce - add_truce_attacker_victory_effect = yes - - # FP1: note the victory for future memorialisation via stele (if applicable). - scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } - - if = { # Warning that only counties are changing hands - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - } - } - random_in_list = { - list = target_titles - limit = { tier = tier_duchy } - save_scope_as = de_jure_target - } - } - if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - holder = scope:defender - } - } - if = { - limit = { - scope:defender = { - any_held_title = { - title_tier = county - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - custom_tooltip = conquest_title_not_transferred_tt - } - } - else = { - if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = yes - holder = { - NOT = { - any_sub_realm_county = { - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - } - } - custom_tooltip = expansion_take_target_title_tt - } - else_if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = yes - } - } - custom_tooltip = conquest_title_usurp_tt - } - else_if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = no - any_de_jure_county = { - percent > 0.5 - holder ?= { - OR = { - this = scope:defender - any_liege_or_above = { this = scope:defender } - } - } - } - } - } - custom_tooltip = expansion_create_target_title_tt - } - } - - # 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 = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - - # EP2 accolade glory gain for doing pretty good against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker # not impactful as the scale are identical - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "EXPANSION_WAR_NAME" - war_name_base = "EXPANSION_WAR_NAME_BASE" - cb_name = "EXPANSION_DUCHY_CB_NAME" - - interface_priority = 84 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -naval_expansion_cb = { - icon = naval_county_expansion - group = conquest - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_for_character = { - OR = { - government_allows = administrative - house ?= { has_house_modifier = bp3_bosporan_kingdom_modifier } - } - any_sub_realm_county = { - is_coastal_county = yes - } - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_celestial - } - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - target_titles = neighbor_land_or_water - target_title_tier = county - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - value = viking_conquest_ai_score_value - - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - - # Tell the Romans to stop going adventuring into the steppe for no gods-damned reason. - multiply = byzantium_conquests_ai_score_value - #Declaring war on the frankokratia leader can really ruin the whole thing - if = { - limit = { - scope:defender = { - any_owned_story = { - story_type = frankokratia_story - NOT = { has_variable = franko_war_complete } - } - } - } - multiply = 0 - } - } - - # Target county has to be coastal and not border you. - valid_to_start = { - scope:target = { - is_coastal_county = yes - } - NOT = { - any_sub_realm_county = { - any_neighboring_county = { this = scope:target } - } - } - trigger_if = { - limit = { - scope:attacker = { - NOT = { government_allows = administrative } - house ?= { has_house_modifier = bp3_bosporan_kingdom_modifier } - } - } - scope:target.title_province = { - geographical_region = black_sea_coast_region - } - } - } - - 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_county_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - influence = { - add = { - value = 25 - desc = CB_BASE_COST - } - add = { - value = 0.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 75 - } - multiply = common_cb_cost_multiplier - if = { - limit = { - scope:attacker = { - NOT = { government_has_flag = government_has_influence } - } - } - multiply = 0 - } - } - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = county_conquest_cb_victory_desc_attacker - } - desc = county_conquest_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - - # Grab the designated county. - every_in_list = { - list = target_titles - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "EXPANSION_WAR_NAME" - war_name_base = "EXPANSION_WAR_NAME_BASE" - cb_name = "NAVAL_EXPANSION_COUNTY_CB_NAME" - - interface_priority = 81 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -naval_duchy_expansion_cb = { - icon = naval_duchy_expansion - group = conquest - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - allowed_for_character = { - government_allows = administrative - any_sub_realm_county = { - is_coastal_county = yes - } - vassal_contract_has_flag = admin_naval_duchy_expansion_unlocked - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_celestial - } - } - - allowed_for_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - trigger_if = { - limit = { - culture = { - has_cultural_parameter = cb_lower_prestige_level_requirement - } - } - prestige_level >= 2 - } - trigger_else = { - prestige_level >= 3 - } - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - target_titles = neighbor_land_or_water - target_title_tier = duchy - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - - ai_only_against_neighbors = yes - - ai_score_mult = { - value = viking_conquest_ai_score_value - - # As a feudal gov, do not attack tribal - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - - # Tell the Romans to stop going adventuring into the steppe for no gods-damned reason. - multiply = byzantium_conquests_ai_score_value - #Declaring war on the frankokratia leader can really ruin the whole thing - if = { - limit = { - scope:defender = { - any_owned_story = { - story_type = frankokratia_story - NOT = { has_variable = franko_war_complete } - } - } - } - multiply = 0 - } - } - - # Target duchy must have counties that are coastal and doesn't border you. - valid_to_start = { - scope:target = { - any_in_de_jure_hierarchy = { - tier = tier_county - is_coastal_county = yes - - NOT = { - any_neighboring_county = { - OR = { - holder = root - holder = { - any_liege_or_above = { this = root } - } - } - } - } - } - } - } - - should_invalidate = { - NOT = { - any_in_list = { - list = target_titles - any_in_de_jure_hierarchy = { - tier = tier_county - holder = { - target_is_same_character_or_above = scope:defender - } - } - } - } - } - - on_invalidated_desc = msg_religious_war_invalidation_region_message - - on_invalidated = { - } - - cost = { - influence = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 1 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 250 - } - multiply = common_cb_cost_multiplier - } - prestige = { - add = { - value = 100 - desc = CB_BASE_COST - } - add = { - value = 5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 500 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = county_conquest_cb_victory_desc_attacker - } - desc = county_conquest_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 eligible vassals and sieze counties from ineligible ones - every_in_list = { - list = target_titles - custom_tooltip = CONQUEST_CB_TITLE - - expansion_cb_title_transfer = yes - } - - every_in_list = { - list = vassals_taken - change_liege = { - liege = scope:attacker - change = scope:change - } - } - - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:attacker - change = scope:change - take_baronies = yes - } - } - - # If applicable, take the target title (i.e. duchy) as well - every_in_list = { - list = target_title_taken - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = medium_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - # Truce - add_truce_attacker_victory_effect = yes - - # FP1: note the victory for future memorialisation via stele (if applicable). - scope:attacker = { fp1_remember_recent_conquest_victory_effect = yes } - - if = { # Warning that only counties are changing hands - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - } - } - random_in_list = { - list = target_titles - limit = { tier = tier_duchy } - save_scope_as = de_jure_target - } - } - if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - holder = scope:defender - } - } - if = { - limit = { - scope:defender = { - any_held_title = { - title_tier = county - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - custom_tooltip = conquest_title_not_transferred_tt - } - } - else = { - if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = yes - holder = { - NOT = { - any_sub_realm_county = { - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - } - } - custom_tooltip = expansion_take_target_title_tt - } - else_if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = yes - } - } - custom_tooltip = conquest_title_usurp_tt - } - else_if = { - limit = { - any_in_list = { - list = target_titles - tier >= scope:attacker.highest_held_title_tier - is_title_created = no - any_de_jure_county = { - percent > 0.5 - holder ?= { - OR = { - this = scope:defender - any_liege_or_above = { this = scope:defender } - } - } - } - } - } - custom_tooltip = expansion_create_target_title_tt - } - } - - # 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 = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - - # EP2 accolade glory gain for doing pretty good against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker # not impactful as the scale are identical - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "EXPANSION_WAR_NAME" - war_name_base = "EXPANSION_WAR_NAME_BASE" - cb_name = "NAVAL_EXPANSION_DUCHY_CB_NAME" - - interface_priority = 82 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -influence_war_cb = { - icon = duchy_expansion - group = event - - combine_into_one = no - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - allow_hostages = no - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - allowed_for_character = { - government_allows = administrative - NOT = { - government_has_flag = government_is_landless_adventurer - } - } - - allowed_against_character = { - scope:attacker = { - ALL_FALSE = { - top_liege = scope:defender.top_liege - liege = scope:defender - } - } - } - - ignore_effect = change_title_holder - - # Only started from character interaction via script - valid_to_start = { always = no } - should_check_for_interface_availability = 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 = { - } - - # Cost is handled via the interaction - cost = {} - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = influence_war_top_liege_gains_title_desc - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # EP2 accolade glory gain for winning against higher ranked enemy - scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } - - # Gain opinion with your top liege - scope:attacker = { - reverse_add_opinion = { - modifier = win_influence_war_opinion - target = top_liege - } - } - # Kickbacks for the original instigator - scope:attacker.top_liege ?= { - if = { - limit = { this != scope:attacker } - send_interface_toast = { - type = event_toast_effect_good - title = influence_war_instigator_notification - left_icon = scope:attacker - right_icon = scope:defender - if = { - limit = { this != top_liege } - reverse_add_opinion = { - modifier = win_influence_war_opinion - target = top_liege - } - } - change_influence = { - value = massive_influence_gain - multiply = 3 - } - } - } - } - - 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 eligible vassals and sieze counties from ineligible ones - every_in_list = { - list = target_titles - custom_tooltip = INFLUENCE_WAR_CB_TITLE - - expansion_cb_title_transfer = yes - } - - every_in_list = { - list = vassals_taken - change_liege = { - liege = scope:attacker.top_liege - change = scope:change - } - } - - every_in_list = { - list = titles_taken - change_title_holder = { - holder = scope:attacker.top_liege - change = scope:change - take_baronies = yes - } - } - - # If applicable, take the target title (i.e. duchy) as well - every_in_list = { - list = target_title_taken - #custom_tooltip = expansion_take_target_title_tt - change_title_holder = { - holder = scope:attacker.top_liege - 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 } - - if = { # Warning that only counties are changing hands - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - } - } - random_in_list = { - list = target_titles - limit = { tier = tier_duchy } - save_scope_as = de_jure_target - } - } - if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - holder = scope:defender - } - } - if = { - limit = { - scope:defender = { - any_held_title = { - title_tier = county - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - custom_tooltip = conquest_title_not_transferred_tt - } - else = { - custom_tooltip = influence_war_take_target_title_tt - } - } - else = { - if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - is_title_created = yes - holder = { - NOT = { - any_sub_realm_county = { - #tier = tier_county - NOT = { target_is_de_jure_liege_or_above = scope:de_jure_target } - } - } - } - } - } - custom_tooltip = expansion_take_target_title_tt - } - else_if = { - limit = { - any_in_list = { - list = target_titles - tier = tier_duchy - is_title_created = yes - } - } - custom_tooltip = conquest_title_usurp_tt - } - #else = { custom_tooltip = expansion_create_target_title_tt } - } - - # 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 = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - - # EP2 accolade glory gain for doing pretty good against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker # not impactful as the scale are identical - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "INFLUENCE_WAR_NAME" - war_name_base = "INFLUENCE_WAR_NAME_BASE" - cb_name = "INFLUENCE_WAR_CB_NAME" - - interface_priority = 84 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - ai_score_mult = { - value = 1 - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - } -} diff --git a/common/casus_belli_types/07_ep3_wars.txt b/common/casus_belli_types/07_ep3_wars.txt index ddbb6552..9f5b586c 100644 --- a/common/casus_belli_types/07_ep3_wars.txt +++ b/common/casus_belli_types/07_ep3_wars.txt @@ -4594,396 +4594,396 @@ ep3_pillaging_foray = { ticking_war_score_targets_entire_realm = no } -# -#ep3_roman_empire_border_war = { -# icon = ducal_conquest_cb -# group = invasion -# -# combine_into_one = yes -# should_show_war_goal_subview = yes -# allow_hostages = no -# mutually_exclusive_titles = { always = yes } -# interface_priority = 110 -# -# attacker_score_from_occupation_scale = 150 -# attacker_score_from_battles_scale = 150 -# defender_score_from_battles_scale = 150 -# -# allowed_for_character = { -# OR = { -# title:h_roman_empire ?= { is_title_created = yes } -# title:h_eastern_roman_empire ?= { is_title_created = yes } -# any_player = { -# any_owned_story = { -# type = ep3_story_cycle_restoring_rome -# } -# } -# is_ai = no -# } -# top_liege = { -# NOR = { -# any_owned_story = { -# type = ep3_story_cycle_restoring_rome -# } -# is_roman_emperor_excluding_byzantium_trigger = yes -# } -# } -# } -# -# allowed_for_character_display_regardless = { -# tgp_japan_offensive_wars_ban_trigger = yes -# } -# -# allowed_against_character = { -# is_landed = yes -# top_liege = { -# OR = { -# any_owned_story = { -# type = ep3_story_cycle_restoring_rome -# } -# is_roman_emperor_excluding_byzantium_trigger = yes -# } -# } -# } -# -# target_titles = neighbor_land # border -# target_title_tier = county -# target_de_jure_regions_above = no -# ignore_effect = change_title_holder -# -# ai_score_mult = { -# value = 0.5 -# if = { -# limit = { scope:attacker.prestige < scope:attacker.massive_prestige_value } -# multiply = 0 -# } -# -# add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing -# } -# -# valid_to_start = { -# exists = scope:target -# NOT = { -# scope:target.title_province = { has_province_modifier = recently_looted_modifier } -# } -# } -# -# should_invalidate = { -# NOT = { -# any_in_list = { -# list = target_titles -# holder = { target_is_same_character_or_above = scope:defender } -# } -# } -# } -# -# on_invalidated_desc = msg_county_conquest_war_invalidated_message -# -# on_invalidated = {} -# -# cost = { -# prestige = massive_prestige_value -# } -# -# on_declaration = { -# on_declared_war = yes -# } -# -# on_victory_desc = { -# triggered_desc = { -# trigger = { -# scope:attacker = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_victory_attacker -# } -# triggered_desc = { -# trigger = { -# scope:defender = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_victory_defender -# } -# } -# -# 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_low_effect = yes } -# -# every_in_list = { -# list = target_titles -# save_scope_as = raid_county -# # Set raided province modifier -# title_province = { -# add_province_modifier = { -# modifier = recently_looted_modifier -# years = 5 -# } -# } -# show_as_tooltip = { -# every_in_list = { -# list = target_titles -# fp2_border_raid_damage_effect = yes -# } -# } -# # Find province for building destruction -# ordered_county_province = { -# order_by = num_buildings -# random = { -# chance = 25 -# modifier = { factor = destroy_building_soldier_multiplier_value } # chance increases with more soldiers -# modifier = { add = destroy_building_development_multiplier_value } # chance increases with development -# custom_tooltip = destroy_random_building_tt -# destroy_random_building_variable_effect = yes -# } -# } -# } -# -# hidden_effect = { -# scope:attacker = { -# send_interface_message = { -# type = event_raid_good -# title = border_raid_message_title -# show_as_tooltip = { -# every_in_list = { -# list = target_titles -# fp2_border_raid_damage_effect = yes -# } -# } -# } -# } -# scope:defender = { -# send_interface_message = { -# type = event_raid_bad -# title = border_raid_message_title -# every_in_list = { -# list = target_titles -# fp2_border_raid_damage_effect = yes -# } -# } -# } -# } -# -# show_as_tooltip = { -# 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: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 = miniscule_prestige_value -# } -# } -# -# # Prestige for the attacker's war allies -# add_from_contribution_attackers = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# # Prestige for the defender's war allies -# add_from_contribution_defenders = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# # Break alliances now out of diplo range -# if = { -# limit = { -# scope:attacker = { -# any_ally = { -# NOT = { in_diplomatic_range = scope:attacker } -# } -# } -# } -# scope:attacker = { -# every_ally = { -# limit = { -# NOT = { in_diplomatic_range = scope:attacker } -# } -# break_alliance = scope:attacker -# } -# } -# } -# -# # Truce -# add_truce_attacker_victory_effect = yes -# -# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold -# laamp_as_mercenary_payout_tooltip_effect = yes -# } -# -# on_white_peace_desc = { -# triggered_desc = { -# trigger = { -# scope:attacker = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_white_peace_attacker -# } -# triggered_desc = { -# trigger = { -# scope:defender = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_white_peace_defender -# } -# } -# -# on_white_peace = { -# # Prestige loss for the attacker -# scope:attacker = { -# add_prestige = { -# value = miniscule_prestige_value -# multiply = -1.0 -# } -# stress_impact = { -# ambitious = medium_stress_impact_gain -# arrogant = medium_stress_impact_gain -# } -# } -# -# # Prestige for the attacker's war allies -# add_from_contribution_attackers = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# # Prestige for the defender's war allies -# add_from_contribution_defenders = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# 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 = { -# triggered_desc = { -# trigger = { -# scope:attacker = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_defeat_attacker -# } -# triggered_desc = { -# trigger = { -# scope:defender = { is_local_player = yes } -# } -# desc = border_raid_cb_desc_defeat_defender -# } -# } -# -# 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_high_effect = yes -# # Prestige for Defender -# add_prestige_war_defender_effect = { -# PRESTIGE_VALUE = medium_prestige_value -# } -# } -# -# # Prestige loss for the attacker -# scope:attacker = { -# pay_short_term_gold_reparations_effect = { -# GOLD_VALUE = 1 -# } -# add_prestige = { -# value = medium_prestige_value -# multiply = -1.0 -# } -# } -# -# # Prestige for the attacker's war allies -# add_from_contribution_attackers = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# # Prestige for the defender's war allies -# add_from_contribution_defenders = { -# prestige = minor_prestige_value -# opinion = { -# modifier = contributed_in_war -# } -# } -# -# add_truce_attacker_defeat_effect = yes -# -# scope:attacker = { -# save_temporary_scope_as = loser -# } -# -# on_lost_aggression_war_discontent_loss = yes -# -# # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold -# laamp_as_mercenary_payout_tooltip_effect = yes -# } -# -# transfer_behavior = transfer -# -# on_primary_attacker_death = invalidate -# on_primary_defender_death = inherit -# -# attacker_allies_inherit = no -# defender_allies_inherit = no -# -# war_name = "EP3_BORDER_RAID_WAR_NAME" -# war_name_base = "EP3_BORDER_RAID_WAR_NAME_BASE" -# cb_name = "EP3_BORDER_RAID_CB_NAME" -# -# interface_priority = 79 -# -# use_de_jure_wargoal_only = yes -# -# # The war will last 2 years at most -# defender_ticking_warscore_delay = { months = 3 } -# defender_ticking_warscore = 0.15 -# -# attacker_wargoal_percentage = 1 -# attacker_ticking_warscore = 1 -# -# max_defender_score_from_occupation = 100 -# max_attacker_score_from_occupation = 1 -# -# ticking_war_score_targets_entire_realm = no -#} -# + +ep3_roman_empire_border_war = { + icon = ducal_conquest_cb + group = invasion + + combine_into_one = yes + should_show_war_goal_subview = yes + allow_hostages = no + mutually_exclusive_titles = { always = yes } + interface_priority = 110 + + attacker_score_from_occupation_scale = 150 + attacker_score_from_battles_scale = 150 + defender_score_from_battles_scale = 150 + + allowed_for_character = { + OR = { + title:h_roman_empire ?= { is_title_created = yes } + title:h_eastern_roman_empire ?= { is_title_created = yes } + any_player = { + any_owned_story = { + type = ep3_story_cycle_restoring_rome + } + } + is_ai = no + } + top_liege = { + NOR = { + any_owned_story = { + type = ep3_story_cycle_restoring_rome + } + is_roman_emperor_excluding_byzantium_trigger = yes + } + } + } + + allowed_for_character_display_regardless = { + tgp_japan_offensive_wars_ban_trigger = yes + } + + allowed_against_character = { + is_landed = yes + top_liege = { + OR = { + any_owned_story = { + type = ep3_story_cycle_restoring_rome + } + is_roman_emperor_excluding_byzantium_trigger = yes + } + } + } + + target_titles = neighbor_land # border + target_title_tier = county + target_de_jure_regions_above = no + ignore_effect = change_title_holder + + ai_score_mult = { + value = 0.5 + if = { + limit = { scope:attacker.prestige < scope:attacker.massive_prestige_value } + multiply = 0 + } + + add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing + } + + valid_to_start = { + exists = scope:target + NOT = { + scope:target.title_province = { has_province_modifier = recently_looted_modifier } + } + } + + should_invalidate = { + NOT = { + any_in_list = { + list = target_titles + holder = { target_is_same_character_or_above = scope:defender } + } + } + } + + on_invalidated_desc = msg_county_conquest_war_invalidated_message + + on_invalidated = {} + + cost = { + prestige = massive_prestige_value + } + + on_declaration = { + on_declared_war = yes + } + + on_victory_desc = { + triggered_desc = { + trigger = { + scope:attacker = { is_local_player = yes } + } + desc = border_raid_cb_desc_victory_attacker + } + triggered_desc = { + trigger = { + scope:defender = { is_local_player = yes } + } + desc = border_raid_cb_desc_victory_defender + } + } + + 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_low_effect = yes } + + every_in_list = { + list = target_titles + save_scope_as = raid_county + # Set raided province modifier + title_province = { + add_province_modifier = { + modifier = recently_looted_modifier + years = 5 + } + } + show_as_tooltip = { + every_in_list = { + list = target_titles + fp2_border_raid_damage_effect = yes + } + } + # Find province for building destruction + ordered_county_province = { + order_by = num_buildings + random = { + chance = 25 + modifier = { factor = destroy_building_soldier_multiplier_value } # chance increases with more soldiers + modifier = { add = destroy_building_development_multiplier_value } # chance increases with development + custom_tooltip = destroy_random_building_tt + destroy_random_building_variable_effect = yes + } + } + } + + hidden_effect = { + scope:attacker = { + send_interface_message = { + type = event_raid_good + title = border_raid_message_title + show_as_tooltip = { + every_in_list = { + list = target_titles + fp2_border_raid_damage_effect = yes + } + } + } + } + scope:defender = { + send_interface_message = { + type = event_raid_bad + title = border_raid_message_title + every_in_list = { + list = target_titles + fp2_border_raid_damage_effect = yes + } + } + } + } + + show_as_tooltip = { + 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: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 = miniscule_prestige_value + } + } + + # Prestige for the attacker's war allies + add_from_contribution_attackers = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + # Prestige for the defender's war allies + add_from_contribution_defenders = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + # Break alliances now out of diplo range + if = { + limit = { + scope:attacker = { + any_ally = { + NOT = { in_diplomatic_range = scope:attacker } + } + } + } + scope:attacker = { + every_ally = { + limit = { + NOT = { in_diplomatic_range = scope:attacker } + } + break_alliance = scope:attacker + } + } + } + + # Truce + add_truce_attacker_victory_effect = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + } + + on_white_peace_desc = { + triggered_desc = { + trigger = { + scope:attacker = { is_local_player = yes } + } + desc = border_raid_cb_desc_white_peace_attacker + } + triggered_desc = { + trigger = { + scope:defender = { is_local_player = yes } + } + desc = border_raid_cb_desc_white_peace_defender + } + } + + on_white_peace = { + # Prestige loss for the attacker + scope:attacker = { + add_prestige = { + value = miniscule_prestige_value + multiply = -1.0 + } + stress_impact = { + ambitious = medium_stress_impact_gain + arrogant = medium_stress_impact_gain + } + } + + # Prestige for the attacker's war allies + add_from_contribution_attackers = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + # Prestige for the defender's war allies + add_from_contribution_defenders = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + 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 = { + triggered_desc = { + trigger = { + scope:attacker = { is_local_player = yes } + } + desc = border_raid_cb_desc_defeat_attacker + } + triggered_desc = { + trigger = { + scope:defender = { is_local_player = yes } + } + desc = border_raid_cb_desc_defeat_defender + } + } + + 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_high_effect = yes + # Prestige for Defender + add_prestige_war_defender_effect = { + PRESTIGE_VALUE = medium_prestige_value + } + } + + # Prestige loss for the attacker + scope:attacker = { + pay_short_term_gold_reparations_effect = { + GOLD_VALUE = 1 + } + add_prestige = { + value = medium_prestige_value + multiply = -1.0 + } + } + + # Prestige for the attacker's war allies + add_from_contribution_attackers = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + # Prestige for the defender's war allies + add_from_contribution_defenders = { + prestige = minor_prestige_value + opinion = { + modifier = contributed_in_war + } + } + + add_truce_attacker_defeat_effect = yes + + scope:attacker = { + save_temporary_scope_as = loser + } + + on_lost_aggression_war_discontent_loss = yes + + # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold + laamp_as_mercenary_payout_tooltip_effect = yes + } + + transfer_behavior = transfer + + on_primary_attacker_death = invalidate + on_primary_defender_death = inherit + + attacker_allies_inherit = no + defender_allies_inherit = no + + war_name = "EP3_BORDER_RAID_WAR_NAME" + war_name_base = "EP3_BORDER_RAID_WAR_NAME_BASE" + cb_name = "EP3_BORDER_RAID_CB_NAME" + + interface_priority = 79 + + use_de_jure_wargoal_only = yes + + # The war will last 2 years at most + defender_ticking_warscore_delay = { months = 3 } + defender_ticking_warscore = 0.15 + + attacker_wargoal_percentage = 1 + attacker_ticking_warscore = 1 + + max_defender_score_from_occupation = 100 + max_attacker_score_from_occupation = 1 + + ticking_war_score_targets_entire_realm = no +} + ep3_laamp_apprehend_adventurer_cb = { icon = apprehend_adventurer group = event @@ -6009,20 +6009,20 @@ ep3_laamp_peasant_war = { # Struggle Stuffs if = { -# limit = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_populist_uprise -# involvement = involved -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_populist_uprise -# character = scope:defender -# } -# } -# } + limit = { + any_character_struggle = { + phase_has_catalyst = catalyst_populist_uprise + involvement = involved + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_populist_uprise + character = scope:defender + } + } + } } } @@ -6205,32 +6205,32 @@ ep3_laamp_peasant_war = { # Legitimacy effect faction_war_end_defeat_legitimacy_effect = yes # Struggle Catalysts -# hidden_effect = { -# if = { -# limit = { -# is_important_or_vip_struggle_character = yes -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion -# CHAR = scope:attacker -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion -# CHAR = scope:attacker -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion -# character = scope:defender -# } -# } -# } + hidden_effect = { + if = { + limit = { + is_important_or_vip_struggle_character = yes + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion + CHAR = scope:attacker + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion + CHAR = scope:attacker + } + } + activate_struggle_catalyst = { + catalyst = catalyst_accepted_demand_from_faction_requesting_culture_faith_conversion + character = scope:defender + } + } + } } } scope:attacker = { diff --git a/common/casus_belli_types/10_tgp_china_wars.txt b/common/casus_belli_types/10_tgp_china_wars.txt deleted file mode 100644 index 217e6a74..00000000 --- a/common/casus_belli_types/10_tgp_china_wars.txt +++ /dev/null @@ -1,3324 +0,0 @@ -# Vassal CB made available when China is in the corruption dynastic cycle phase. -china_seize_county_cb = { - icon = county_conquest_cb - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - is_independent_ruler = no - top_liege = { - has_title = title:h_china - } - top_participant_group:dynastic_cycle ?= { - OR = { - AND = { - has_participant_group_parameter = dynastic_cycle_vassal_internal_wars_allowed - root = { - NOT = { - government_has_flag = government_is_celestial - } - } - } - AND = { - has_participant_group_parameter = dynastic_cycle_vassal_seize_cb - root = { - OR = { - NOT = { - government_has_flag = government_is_celestial - } - vassal_contract_has_flag = celestial_military_appointment - } - } - } - } - } - } - - allowed_against_character = { - scope:attacker = { - trigger_if = { - limit = { - government_has_flag = government_is_celestial - } - scope:attacker.top_overlord != scope:defender.top_overlord # Must NOT be peer-vassals or tributaries - } - trigger_else = { - scope:attacker.top_overlord = scope:defender.top_overlord # Must be peer-vassals or tributaries - } - } - } - - target_titles = neighbor_land - target_title_tier = county - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - } - - valid_to_start = { - } - - allowed_for_character_display_regardless = { - } - - 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_county_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - # When this war is started, the Chinese emperor loses legitimacy - scope:attacker = { - top_liege = { - add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss } - } - } - } - - 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 } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - # Grab the designated county. - every_in_list = { - list = target_titles - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINA_SEIZE_COUNTY_WAR_NAME" - war_name_base = "CHINA_SEIZE_COUNTY_WAR_NAME_BASE" - cb_name = "CHINA_SEIZE_COUNTY_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -china_hegemon_seize_county_cb = { - icon = county_conquest_cb - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - OR = { - has_title = title:h_china - has_title = title:e_minister_grand_marshal - } - situation:dynastic_cycle ?= { - has_situation_top_phase_parameter = dynastic_cycle_hegemon_unlocks_external_casus_belli - } - } - - allowed_for_character_display_regardless = { - tgp_dynastic_cycle_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - scope:defender = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_herder - } - } - } - - target_titles = all - target_title_tier = county - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - } - - valid_to_start = { - scope:target ?= { - is_neighbor_to_realm = scope:attacker.top_liege - } - } - - 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_county_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - - # When this war is started, the chinese emperor loses legitimacy - scope:attacker = { - top_liege = { - add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss } - } - } - } - - 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 } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - if = { - limit = { - scope:attacker = { - has_title = title:e_minister_grand_marshal - } - } - # Grab the designated county. - every_in_list = { - list = target_titles - change_title_holder = { - holder = scope:attacker.top_liege - change = scope:change - } - } - } - else = { - # Grab the designated county. - every_in_list = { - list = target_titles - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINA_SEIZE_COUNTY_WAR_NAME" - war_name_base = "CHINA_SEIZE_COUNTY_WAR_NAME_BASE" - cb_name = "CHINA_SEIZE_COUNTY_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} -# Same as above, but for targeting Duchies -china_seize_duchy_cb = { - icon = duchy_conquest_cb - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - is_independent_ruler = no - top_liege = { - has_title = title:h_china - } - top_participant_group:dynastic_cycle ?= { - OR = { - AND = { - has_participant_group_parameter = dynastic_cycle_vassal_internal_wars_allowed - root = { - NOT = { - government_has_flag = government_is_celestial - } - } - } - AND = { - has_participant_group_parameter = dynastic_cycle_vassal_seize_cb - root = { - OR = { - NOT = { - government_has_flag = government_is_celestial - } - vassal_contract_has_flag = celestial_military_appointment - } - } - } - } - } - } - - allowed_against_character = { - scope:attacker = { - trigger_if = { - limit = { - government_has_flag = government_is_celestial - } - scope:attacker.top_overlord != scope:defender.top_overlord # Must NOT be peer-vassals or tributaries - } - trigger_else = { - scope:attacker.top_overlord = scope:defender.top_overlord # Must be peer-vassals or tributaries - } - } - } - - target_titles = neighbor_land - target_title_tier = duchy - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - } - - valid_to_start = { - } - - allowed_for_character_display_regardless = { - } - - 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_duchy_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - - # When this war is started, the Chinese emperor loses legitimacy - scope:attacker = { - top_liege = { - add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss } - } - } - } - - 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 } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - every_in_list = { - list = target_titles - # Grab the designated Duchy and it's vassals - change_title_holder_include_vassals = { - holder = scope:attacker - change = scope:change - take_baronies = no - } - every_de_jure_county = { - limit = { - holder = { - OR = { - this = scope:defender - is_vassal_or_below_of = scope:defender - } - } - } - # Grab the Counties held directly by the Defender - change_title_holder = { - holder = scope:attacker - change = scope:change - take_baronies = no - } - } - } - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINA_SEIZE_DUCHY_WAR_NAME" - war_name_base = "CHINA_SEIZE_DUCHY_WAR_NAME_BASE" - cb_name = "CHINA_SEIZE_DUCHY_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -china_hegemon_seize_duchy_cb = { - icon = duchy_conquest_cb - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - OR = { - has_title = title:h_china - has_title = title:e_minister_grand_marshal - } - situation:dynastic_cycle ?= { - has_situation_top_phase_parameter = dynastic_cycle_hegemon_unlocks_external_casus_belli - } - } - - allowed_for_character_display_regardless = { - tgp_dynastic_cycle_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - scope:defender = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_herder - } - } - } - - target_titles = all - target_title_tier = duchy - ignore_effect = change_title_holder - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - } - - valid_to_start = { - scope:target ?= { - is_neighbor_to_realm = scope:attacker.top_liege - } - } - - 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_duchy_conquest_war_invalidated_message - on_invalidated = {} - - cost = { - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - - # When this war is started, the chinese emperor loses legitimacy - scope:attacker = { - top_liege = { - add_legitimacy_effect = { LEGITIMACY = miniscule_legitimacy_loss } - } - } - } - - 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 } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 - } - # Give land to the Hegemon - if = { - limit = { - scope:attacker = { - has_title = title:e_minister_grand_marshal - } - } - every_in_list = { - list = target_titles - # Grab the designated Duchy and it's vassals - change_title_holder_include_vassals = { - holder = scope:attacker.top_liege - change = scope:change - take_baronies = no - } - every_de_jure_county = { - limit = { - holder = { - OR = { - this = scope:defender - is_vassal_or_below_of = scope:defender - } - } - } - # Grab the Counties held directly by the Defender - change_title_holder = { - holder = scope:attacker.top_liege - change = scope:change - take_baronies = no - } - } - } - } - else = { - every_in_list = { - list = target_titles - change_title_holder_include_vassals = { - holder = scope:attacker - change = scope:change - take_baronies = no - } - every_de_jure_county = { - limit = { - holder = scope:defender - } - change_title_holder = { - holder = scope:attacker - change = scope:change - take_baronies = no - } - } - } - } - resolve_title_and_vassal_change = scope:change - - # Prestige Progress for the Attacker - every_in_list = { - list = target_titles - scope:attacker = { - add_prestige_experience = minor_prestige_value - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker - FAME_BASE = minor_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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - 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 - } - } - - 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 = county_conquest_cb_defeat_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = county_conquest_cb_defeat_desc_attacker - } - desc = county_conquest_cb_defeat_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = minor_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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINA_SEIZE_DUCHY_WAR_NAME" - war_name_base = "CHINA_SEIZE_DUCHY_WAR_NAME_BASE" - cb_name = "CHINA_SEIZE_DUCHY_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -# Allow other rulers to invade China and take the mandate away from them, only in instability phase -claim_the_mandate_cb = { - icon = celestial - group = celestial - ai_only_against_neighbors = yes - - allowed_for_character = { - is_independent_ruler = yes - any_neighboring_top_liege_realm_owner = { - has_title = title:h_china - } - NAND = { - is_ai = yes - any_owned_story = { - story_type = story_mongol_invasion - } - } - } - allowed_for_character_display_regardless = { - custom_tooltip = { - text = has_gok_story_tt - NOT = { - any_owned_story = { - story_type = story_greatest_of_khans - } - } - } - } - - allowed_against_character = { - has_title = title:h_china - } - - allowed_against_character_display_regardless = { - custom_tooltip = { - text = dynastic_cycle_not_corruption_phase_desc - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_instability - } - } - } - - cost = { - piety = { - value = 0 - add = common_cb_impious_piety_cost - } - prestige = { - add = { - value = 2000 - desc = CB_BASE_COST - } - multiply = common_cb_prestige_cost_multiplier - - # Target's legitimacy level affects cost - Lower levels make it cheaper - scope:defender = { - if = { - limit = { legitimacy_level < 5 } - multiply = { - value = { - switch = { - trigger = scope:defender.legitimacy_level - 4 = { value = 0.9 } - 3 = { value = 0.75 } - 2 = { value = 0.6 } - 1 = { value = 0.45 } - 0 = { value = 0.3 } - } - } - desc = dynastic_cycle_hegemon_legitimacy_level_cost_desc - } - } - } - - # LEGITIMACY AFFECTS COST - multiply = { - value = { - value = 0 - scope:attacker = { - if = { - limit = { has_legitimacy_flag = reduced_claim_cb_cost } - add = 0.5 - } - else_if = { - limit = { has_legitimacy_flag = very_reduced_claim_cb_cost } - add = 0.25 - } - else_if = { - limit = { has_legitimacy_flag = extra_reduced_claim_cb_cost } - add = 0.15 - } - else = { - add = 1 - } - } - } - desc = legitimacy_high_modifier_tt - } - multiply = { - value = { - value = 0 - scope:attacker = { - if = { - limit = { has_legitimacy_flag = massively_increased_claim_cb_cost } - add = 2.5 - } - else_if = { - limit = { has_legitimacy_flag = very_increased_claim_cb_cost } - add = 2 - } - else_if = { - limit = { has_legitimacy_flag = increased_claim_cb_cost } - add = 1.5 - } - else = { - add = 1 - } - } - } - desc = legitimacy_low_modifier_tt - } - } - } - - target_titles = none - - on_declaration = { - on_declared_war = yes - } - - should_invalidate = { - scope:defender = { - is_independent_ruler = no - } - } - - on_invalidated_desc = msg_subjugation_war_invalidated_message - - on_invalidated = { - } - - on_victory_desc = { - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = tribal_subjugation_cb_victory_desc_equal_tier_attacker - } - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = tribal_subjugation_cb_victory_desc_equal_tier_defender - } - desc = tribal_subjugation_cb_victory_desc_equal_tier - } - } - } - - on_victory = { - # Dynastic cycle will shift through the on_title_gain on action - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_attacker_victory_effect = yes - - #EP2 Accolade glory gain from winning against higher ranked enemy - scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } - - scope:attacker = { - tgp_claim_mandate_of_heaven_effect = yes - # Hand over the direct holding of the former Hegemon - create_title_and_vassal_change = { - type = conquest - save_scope_as = change_capital_and_direct_holdings - add_claim_on_loss = yes - } - scope:defender = { - every_held_title = { - title_tier > barony - limit = { - is_noble_family_title = no - is_landless_type_title = no - } - change_title_holder = { - holder = scope:attacker - change = scope:change_capital_and_direct_holdings - } - } - } - - # Hand over the capital - Unless it's a player holding - if = { - limit = { - # or your capital already inside h_china - that means you keep old capital. - capital_county.hegemony != title:h_china - title:h_china.title_capital_county.holder = { - is_ai = yes - this != scope:defender - } - } - title:h_china.title_capital_county = { - change_title_holder = { - holder = scope:attacker - change = scope:change_capital_and_direct_holdings - } - } - } - resolve_title_and_vassal_change = scope:change_capital_and_direct_holdings - } - - # Prestige loss for the defender - scope:defender = { - 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: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 - - # 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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = tribal_subjugation_cb_white_peace_desc_defender - } - desc = tribal_subjugation_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: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 = medium_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 = { - 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 = tribal_subjugation_cb_white_peace_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = tribal_subjugation_cb_defeat_desc_attacker - } - desc = tribal_subjugation_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_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige and gold loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = major_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - 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 - } - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CLAIM_THE_MANDATE_NAME" - war_name_base = "CLAIM_THE_MANDATE_NAME_BASE" - cb_name = "CLAIM_THE_MANDATE_CB_NAME" - interface_priority = 100 - - ticking_war_score_targets_entire_realm = yes - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 - - ai_score_mult = { - } -} - -chinese_consolidation_cb = { - icon = celestial - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = no - - allowed_for_character = { - situation:dynastic_cycle ?= { - situation_current_phase = situation_dynastic_cycle_phase_chaos - } - NAND = { - is_ai = yes - any_owned_story = { - story_type = story_mongol_invasion - } - } - trigger_if = { # Pace foreign invasions into Chaos-era China a bit - limit = { - is_ai = yes - NOR = { - exists = top_participant_group:dynastic_cycle - any_owned_story = { - story_type = story_take_mandate_of_heaven - } - } - } - OR = { - has_variable = conqueror - culture = { has_cultural_pillar = heritage_chinese } - AND = { - OR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_steppe_admin - } - static_group_filter = { - group = wants_to_conquer_china - match = 0.3 - } - } - AND = { - static_group_filter = { - group = wants_to_conquer_china - match = 0.05 - } - ai_has_warlike_personality = yes - } - } - } - any_character_to_title_neighboring_and_across_water_empire = { - hegemony ?= title:h_china - } - } - allowed_for_character_display_regardless = { - tgp_dynastic_cycle_offensive_wars_ban_trigger = yes - custom_tooltip = { - text = has_gok_story_tt - NOT = { - any_owned_story = { - story_type = story_greatest_of_khans - } - } - } - } - allowed_against_character = { - #Must be within Dynastic Cycle - exists = top_participant_group:dynastic_cycle - } - - target_titles = neighbor_land_or_water - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - ai_only_against_neighbors = yes - - ai_score_mult = { - value = chinese_consolidation_ai_score_value #basic values - add = 1 - if = { - limit = { - scope:attacker.primary_title.tier >= tier_kingdom - } - multiply = 2 - } - if = { - limit = { - scope:defender = { - primary_title = title:h_china - } - } - multiply = 3 - } - } - - 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 - - cost = { - piety = { - add = common_cb_impious_piety_cost - if = { - limit = { - scope:defender.faith = scope:attacker.faith - } - add = { - value = 100 - desc = CB_SAME_FAITH_COST - } - add = { - value = 10 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 800 - } - } - multiply = common_cb_piety_cost_multiplier - } - prestige = { - value = 0 - if = { - limit = { - NOT = { scope:defender.faith = scope:attacker.faith } - } - add = { - value = 150 - desc = CB_COST_DIFFERENT_FAITH - } - add = { - value = 10 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 800 - } - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = chinese_consolidation_cb_victory_desc_attacker - } - desc = chinese_consolidation_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - #EP2 accolade glory gain for winning against higher ranked enemy - scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } - - create_title_and_vassal_change = { - type = conquest - save_scope_as = change - add_claim_on_loss = yes - } - - # vassalize or take titles and vassals - scope:defender = { - # take the relevant titles of same tier or higher and vassalize the rest - every_held_title = { - limit = { - hegemony = title:h_china - } - add_to_list = titles_taken - } - every_vassal = { - limit = { - primary_title.hegemony = title:h_china - } - if = { - limit = { - highest_held_title_tier >= scope:attacker.highest_held_title_tier - } - add_to_list = titles_taken - } - else = { - add_to_list = vassals_taken - } - } - every_vassal_or_below = { - limit = { - primary_title.hegemony = title:h_china - liege = { - NOT = { - is_in_list = vassals_taken - } - } - } - if = { - limit = { - highest_held_title_tier >= scope:attacker.highest_held_title_tier - } - add_to_list = titles_taken - } - else = { - add_to_list = vassals_taken - } - } - } - every_in_list = { - list = titles_taken - change_title_holder_include_vassals = { - holder = scope:attacker - change = scope:change - take_baronies = no - } - } - every_in_list = { - list = vassals_taken - change_liege = { - liege = scope:attacker - change = scope:change - } - } - - resolve_title_and_vassal_change = scope:change - # if the attacker didn't want to unify China, make them want it - scope:attacker = { - if = { - limit = { - NOT = { - any_owned_story = { - story_type = story_take_mandate_of_heaven - } - } - is_ai = yes - } - create_story = story_take_mandate_of_heaven - } - } - # 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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = de_jure_cb_white_peace_desc_defender - } - desc = de_jure_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - - #EP2 accolade glory gain for doing pretty good against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker # not impactful as the scale are identical - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = de_jure_cb_white_peace_desc_defender - } - desc = de_jure_cb_white_peace_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINESE_CONSOLIDATION_WAR_NAME" - war_name_base = "CHINESE_CONSOLIDATION_WAR_NAME_BASE" - cb_name = "CHINESE_CONSOLIDATION_CB_NAME" - - interface_priority = 120 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.5 - defender_ticking_warscore = 0.05 - attacker_ticking_warscore = 0.05 - defender_ticking_warscore_delay = { months = 24 } - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - max_defender_score_from_battles = 100 - max_attacker_score_from_battles = 100 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -chinese_reunification_cb = { - icon = celestial - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - - allowed_for_character = { - situation:dynastic_cycle ?= { - NOT = { situation_current_phase = situation_dynastic_cycle_phase_chaos } - } - top_participant_group:dynastic_cycle ?= { - participant_group_type = hegemon_ruler - } - } - allowed_against_character = { - exists = top_participant_group:dynastic_cycle - } - - target_title_tier = kingdom - target_titles = neighbor_land_or_water - target_de_jure_regions_above = yes - ignore_effect = change_title_holder - ai_only_against_neighbors = yes - - ai_score_mult = { - value = chinese_consolidation_ai_score_value #basic values - add = 1 - if = { - limit = { - scope:attacker.primary_title.tier >= tier_kingdom - } - multiply = 2 - } - if = { - limit = { - scope:defender = { - primary_title = title:h_china - } - } - multiply = 3 - } - } - - valid_to_start = { - scope:target.hegemony ?= title:h_china - scope:target = { - # can only target those encircled in China, not for border. - any_title_to_title_neighboring_and_across_water_kingdom = { - percent >= 0.6 - hegemony ?= title:h_china - } - } - } - - should_invalidate = { - OR = { - scope:attacker = { - top_participant_group:dynastic_cycle ?= { - NOT = { - participant_group_type = hegemon_ruler - } - } - } - NOT = { - any_in_list = { - list = target_titles - any_in_de_jure_hierarchy = { - tier = tier_county - holder = { - OR = { - this = scope:defender - target_is_liege_or_above = scope:defender - } - } - } - } - } - } - } - - on_invalidated_desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:attacker = { - top_participant_group:dynastic_cycle ?= { - NOT = { - participant_group_type = hegemon_ruler - } - } - } - } - desc = msg_celestial_war_invalidation_no_longer_son_of_heaven - } - desc = msg_religious_war_invalidation_region_message - } - } - - cost = { - piety = { - add = common_cb_impious_piety_cost - if = { - limit = { - scope:defender.faith = scope:attacker.faith - } - add = { - value = 100 - desc = CB_SAME_FAITH_COST - } - add = { - value = 10 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 800 - } - } - multiply = common_cb_piety_cost_multiplier - } - prestige = { - value = 0 - if = { - limit = { - NOT = { scope:defender.faith = scope:attacker.faith } - } - add = { - value = 150 - desc = CB_COST_DIFFERENT_FAITH - } - add = { - value = 10 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 800 - } - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = 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 - - # Influence - add_influence_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 - } - - show_as_tooltip = { - every_in_list = { - list = target_titles - custom_tooltip = invasion_title_transfer_tt - custom_tooltip = invasion_title_transfer_2_tt - every_in_de_jure_hierarchy = { - limit = { holder.top_liege = scope:defender } - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - } - scope:defender = { - every_sub_realm_county = { - limit = { - county_controller = scope:attacker - } - change_title_holder = { - holder = scope:attacker - change = scope:change - } - } - } - } - - hidden_effect = { - setup_invasion_cb = { - titles = target_titles - attacker = scope:attacker - defender = scope:defender - change = scope:change - take_occupied = yes - } - resolve_title_and_vassal_change = scope:change - } - - # Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution. - modify_all_participants_fame_values = { - WINNER = scope:attacker - LOSER = scope:defender - FAME_BASE = scope:cb_prestige_factor # Set by 'setup_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 = de_jure_cb_white_peace_desc_defender - } - desc = de_jure_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - - #EP2 accolade glory gain for doing pretty good against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:attacker # not impactful as the scale are identical - FAME_BASE = medium_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - - add_truce_white_peace_effect = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = de_jure_cb_white_peace_desc_defender - } - desc = de_jure_cb_white_peace_desc - } - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = 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 - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "CHINESE_CONSOLIDATION_WAR_NAME" - war_name_base = "CHINESE_CONSOLIDATION_WAR_NAME_BASE" - cb_name = "CHINESE_CONSOLIDATION_CB_NAME" - - interface_priority = 120 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.5 - defender_ticking_warscore = 0.05 - attacker_ticking_warscore = 0.05 - defender_ticking_warscore_delay = { months = 24 } - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - max_defender_score_from_battles = 100 - max_attacker_score_from_battles = 100 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} - -silk_road_vassalization_cb = { - icon = vassalization - group = vassalization - ai_only_against_neighbors = yes - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - allowed_for_character = { - has_tgp_dlc_trigger = yes - title:h_china.holder ?= root - top_participant_group:dynastic_cycle ?= { - has_participant_group_parameter = dynastic_cycle_hegemon_unlocks_external_casus_belli - } - } - - allowed_against_character_display_regardless = { - tgp_japan_offensive_wars_ban_trigger = yes - } - - allowed_against_character = { - #Must be involved in the Silk Road - scope:defender = { - any_character_situation = { - situation_type = silk_road_situation - } - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_herder - } - } - } - - cost = { - piety = { - value = 0 - add = common_cb_impious_piety_cost - } - prestige = { - value = 0 - add = { - desc = CB_SIZE_OF_TARGET_REALM_COST - scope:defender = { - every_sub_realm_county = { - add = { - value = 125 - } - } - } - } - if = { - limit = { - scope:defender.primary_title = { - tier = tier_kingdom - } - } - multiply = { - value = 2 - desc = CB_VASSALIZING_KING - } - } - if = { - limit = { - scope:defender.primary_title = { - tier = tier_empire - } - } - multiply = { - value = 4 - desc = CB_VASSALIZING_EMPEROR - } - } - - multiply = common_cb_prestige_cost_multiplier - } - } - - should_invalidate = { - OR = { - scope:defender = { - is_independent_ruler = no - } - scope:defender.primary_title.tier >= scope:attacker.primary_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 = vassalization_cb_victory_desc_attacker - } - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = vassalization_cb_victory_desc_defender - } - desc = vassalization_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = change - add_claim_on_loss = no - } - scope:defender = { - change_liege = { - liege = scope:attacker - 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 - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = vassalization_cb_white_peace_desc_defender - } - desc = vassalization_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - - #EP2 accolade glory gain for doing ok against higher ranked enemy - scope:defender = { accolade_defender_war_end_glory_gain_low_effect = yes } - - # 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 = vassalization_cb_white_peace_desc_defender - } - triggered_desc = { - trigger = { - scope:attacker = { - is_local_player = yes - has_targeting_faction = yes - } - } - desc = vassalization_cb_defeat_desc_attacker - } - desc = vassalization_cb_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 for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 3 - } - add_prestige = { - value = major_prestige_value - multiply = -1.0 - } - } - - # Allies on both sides get full prestige value for helping in the war, based on their war participation. - modify_allies_of_participants_fame_values = { - WINNER = scope:defender - FAME_BASE = major_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - 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 - } - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "SILK_ROAD_VASSALIZATION_WAR_NAME" - war_name_base = "SILK_ROAD_VASSALIZATION_WAR_NAME_BASE" - cb_name = "SILK_ROAD_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 - - ai_score_mult = { - value = 1 - # As a feudal gov never attack tribal for vassalization - add = { - if = { - limit = { - scope:attacker = { - NOT = { government_has_flag = government_is_tribal } - } - scope:defender = { - government_has_flag = government_is_tribal - } - } - add = -1000 - } - } - # HOUSE RELATIONS - add = house_relation_ai_score_value - # Tell the Romans to stop going adventuring into the steppe for no gods-damned reason. - multiply = byzantium_conquests_ai_score_value - - add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing - - # If the Silk Road is doing well, absolutely attack it - if = { - limit = { - has_tgp_dlc_trigger = yes - situation:silk_road_situation ?= { - any_situation_sub_region = { - sub_region_current_phase = phase_exceptional_bounty - any_situation_sub_region_participant_group = { participant_group_has_character = scope:defender } - } - } - } - add = 100 - } - } -} - -# Kingdom tier cb used by the Grand Campaign Great Project -grand_campaign_kingdom_invasion_cb = { - icon = duchy_conquest_cb - group = celestial - - combine_into_one = yes - should_show_war_goal_subview = yes - mutually_exclusive_titles = { always = yes } - allow_hostages = no - - allowed_for_character = { - title:h_china.holder ?= { - OR = { - this = root.top_liege - this = root - } - } - any_great_project = { - great_project_type = grand_campaign_project - great_project_owner = root.top_liege - OR = { - any_contribution = { - contributor = root - } - root = { - has_title = title:e_minister_grand_marshal - } - } - } - } - - allowed_against_character = { - any_great_project = { - great_project_type = grand_campaign_project - great_project_owner = title:h_china.holder - any_in_list = { - variable = grand_campaign_titles - holder ?= { - OR = { - this = scope:defender - any_liege_or_above = { - this = scope:defender - } - } - this != title:h_china.holder - top_overlord != title:h_china.holder - } - } - } - } - valid_to_start = { - any_great_project = { - great_project_type = grand_campaign_project - great_project_owner = root.top_liege - var:grand_campaign_target_kingdom ?= scope:target - } - } - - target_titles = all - ignore_effect = change_title_holder - target_de_jure_regions_above = yes - - attacker_score_from_occupation_scale = 150 - attacker_score_from_battles_scale = 150 - defender_score_from_battles_scale = 150 - - ai_only_against_neighbors = yes - - ai_score_mult = { - # As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - # Use this war if you are the Grand Marshal - if = { - limit = { - has_title = title:e_minister_grand_marshal - } - add = 1000 - } - add = { - every_in_list = { - list = target_titles - if = { - limit = { feudal_clan_tribal_conquest_constraints = yes } - add = -1000 - } - } - } - - # AI in struggles act insularly for wars that don't have a familial or legal basis. - multiply = struggle_wars_prioritise_struggle_targets_value - } - - 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 - } - } - } - } - } - #invalidate when China gets into Chaos - NOT = { exists = title:h_china.holder } - } - } - - on_invalidated_desc = { - first_valid = { - triggered_desc = { - trigger = { - NOT = { exists = title:h_china.holder } - } - desc = msg_celestial_war_invalidation_chaos - } - desc = msg_religious_war_invalidation_region_message - } - } - on_invalidated = {} - - cost = { - prestige = { - add = { - value = 50 - desc = CB_BASE_COST - } - add = { - value = 2.5 - multiply = scope:attacker.realm_size - desc = CB_REALM_SIZE_COST - max = 150 - } - multiply = common_cb_prestige_cost_multiplier - } - } - - on_declaration = { - on_declared_war = yes - if = { - limit = { - NOT = { - any_great_project = { - great_project_type = grand_campaign_project - great_project_owner = scope:attacker.top_liege - exists = var:grand_campaign_war - } - } - } - scope:defender = { - save_scope_as = title_holder - } - scope:war ?= { - save_scope_as = grand_campaign_war - } - random_great_project = { - limit = { - great_project_type = grand_campaign_project - great_project_owner = scope:attacker.top_liege - } - save_scope_as = great_project - great_project_owner = { - save_scope_as = owner - } - # only update if previous war ended - if = { - limit = { - NOT = { exists = var:grand_campaign_war } - } - set_variable = { - name = grand_campaign_war - value = scope:grand_campaign_war - } - } - random_in_list = { - variable = grand_campaign_titles - limit = { - holder = { - OR = { - this = scope:defender - target_is_liege_or_above = scope:defender - } - top_overlord != scope:attacker.top_overlord - } - } - save_scope_as = target_title - } - scope:attacker = { - save_scope_as = contributor - trigger_event = tgp_china_ministry.0004 - } - } - scope:war ?= { - set_variable = { - name = grand_campaign_project - value = scope:great_project - } - } - } - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:attacker = { is_local_player = yes } } - desc = grand_campaign_kingdom_invasion_cb_victory_desc_attacker - } - desc = grand_campaign_kingdom_invasion_cb_victory_desc - } - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_victory_effect = yes - - # Influence - add_influence_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 } - - if = { - limit = { - exists = war.var:grand_campaign_project - } - war.var:grand_campaign_project = { - every_in_list = { - variable = grand_campaign_titles - add_to_list = target_titles - } - save_scope_as = great_project - great_project_owner = { - save_scope_as = hegemon - } - } - } - else = { - random_great_project = { - limit = { - great_project_type = grand_campaign_project - great_project_owner = scope:attacker.top_liege - } - every_in_list = { - variable = grand_campaign_titles - add_to_list = target_titles - } - save_scope_as = great_project - great_project_owner = { - save_scope_as = hegemon - } - } - } - # Take the titles and hand them to the Hegemon - create_title_and_vassal_change = { - type = conquest - save_scope_as = change - add_claim_on_loss = yes - } - every_in_list = { - list = target_titles - every_in_de_jure_hierarchy = { - continue = { - tier <= tier_duchy - tier >= tier_county - } - limit = { - holder.top_overlord != scope:hegemon - tier >= tier_county - } - change_title_holder = { - holder = scope:hegemon - change = scope:change - take_baronies = no - } - } - } - resolve_title_and_vassal_change = scope:change - - if = { - limit = { - NOT = { exists = scope:cb_prestige_factor } - } - save_scope_value_as = { - name = cb_prestige_factor - value = { - every_in_list = { - list = target_titles - add = 50 - } - } - } - } - - # 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 - } - # 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 - - # Inform Hegemon about the outcome - scope:hegemon = { - trigger_event = tgp_china_ministry.0002 - } - # There is no truce on purpose, you should be able to attack multiple times to succeed the project - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = county_conquest_cb_white_peace_desc_defender - } - desc = county_conquest_cb_white_peace_desc - } - } - - on_white_peace = { - scope:attacker = { show_pow_release_message_effect = yes } - # Prestige loss for the attacker - scope:attacker = { - add_prestige = { - value = minor_prestige_value - multiply = -1.0 - } - stress_impact = { - ambitious = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } - } - war.var:grand_campaign_project ?= { - every_in_list = { - variable = grand_campaign_titles - add_to_list = target_titles - } - save_scope_as = great_project - great_project_owner = { - save_scope_as = hegemon - } - } - - # 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 - } - } - # Inform Hegemon about the outcome - scope:hegemon = { - trigger_event = tgp_china_ministry.0003 - } - - #there is no truce on purpose, you should be able to attack multiple times to succeed the project - - # 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 = { - scope:attacker = { show_pow_release_message_effect = yes } - - # Legitimacy - add_legitimacy_attacker_defeat_effect = yes - - # Influence - add_influence_attacker_defeat_effect = yes - - scope:defender = { - mandala_peacemaker_perk_serenity_effect = yes - #EP2 accolade glory gain for winning against higher ranked enemy - accolade_defender_war_end_glory_gain_high_effect = yes - # Prestige for Defender - add_prestige_war_defender_effect = { - PRESTIGE_VALUE = medium_prestige_value - } - } - - # Prestige loss for the attacker - scope:attacker = { - pay_short_term_gold_reparations_effect = { - GOLD_VALUE = 2 - } - add_prestige = medium_prestige_loss - } - - war.var:grand_campaign_project ?= { - every_in_list = { - variable = grand_campaign_titles - add_to_list = target_titles - } - save_scope_as = great_project - great_project_owner = { - save_scope_as = hegemon - } - } - # Inform Hegemon about the outcome - scope:hegemon = { - trigger_event = tgp_china_ministry.0003 - } - - # 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 = minor_prestige_value - IS_RELIGIOUS_WAR = no - WINNER_ALLY_FAME_SCALE = 1 - LOSER_ALLY_FAME_SCALE = 1 - } - - 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 - - # There is no truce on purpose, you should be able to attack multiple times to succeed the project - } - - transfer_behavior = transfer - - on_primary_attacker_death = inherit - on_primary_defender_death = inherit - - attacker_allies_inherit = yes - defender_allies_inherit = yes - - war_name = "GP_KINGDOM_INVASION_WAR_NAME" - war_name_base = "GP_KINGDOM_INVASION_WAR_NAME_BASE" - cb_name = "GP_KINGDOM_INVASION_CB_NAME" - - interface_priority = 83 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 -} diff --git a/common/casus_belli_types/10_tgp_faction_wars.txt b/common/casus_belli_types/10_tgp_faction_wars.txt deleted file mode 100644 index d39190dc..00000000 --- a/common/casus_belli_types/10_tgp_faction_wars.txt +++ /dev/null @@ -1,804 +0,0 @@ -# Triggers as a result of an Install Regent Faction demand being refused -replace_ceremonial_regent_faction_war = { - icon = dissolution_war - group = civil_war - ai_only_against_liege = yes - allow_hostages = no - - allowed_for_character = { - scope:attacker = { is_leading_faction_type = replace_ceremonial_regent_faction } - } - - allowed_against_character = { - scope:attacker.liege = scope:defender - } - - target_de_jure_regions_above = yes - target_top_liege_if_outside_realm = no # In case of adventurers starting faction wars - - valid_to_start = { - } - - on_declaration = { - } - - on_victory_desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:defender = { is_local_player = yes } - } - desc = replace_ceremonial_regent_faction_war_victory_defender_desc - } - desc = replace_ceremonial_regent_faction_war_victory_desc - } - } - - on_victory = { - scope:attacker = { - show_pow_release_message_effect = yes - #EP2 Accolade glory gain from winning against higher ranked enemy - accolade_attacker_war_end_glory_gain_med_effect = yes - } - # LEGITIMACY FROM LOSING FACTION WAR - faction_war_end_defeat_legitimacy_effect = yes - scope:defender = { - add_prestige = -500 - add_character_flag = { - flag = recent_replace_regent_faction_war - years = liberty_war_victory_cooldown - } - } - scope:defender = { - faction_demand_regent_transfer_effect = { - NEW_REGENT = scope:attacker - REASON = faction_demand - } - } - hidden_effect = { - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = victory - } - } - if = { - limit = { - exists = scope:attacker.joined_faction - } - scope:attacker.joined_faction = { - save_scope_as = saved_faction - add_faction_discontent = -200 - every_faction_member = { - if = { - limit = { - exists = scope:attacker.joined_faction # Can get destroyed as we loop through - } - leave_faction_with_cooldown_effect = { - FACTION = scope:attacker.joined_faction - YEARS = liberty_war_victory_cooldown - } - } - else = { - add_faction_cooldown_effect = { YEARS = liberty_war_victory_cooldown } - } - } - } - } - # The faction should have already been destroyed due to all members leaving above, but in case it hasn't, destroy it now. - if = { - limit = { exists = scope:saved_faction } - scope:saved_faction = { destroy_faction = yes } - } - } - } - - on_white_peace_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = replace_ceremonial_regent_faction_war_white_peace_defender_desc - } - desc = replace_ceremonial_regent_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_replace_regent_faction_war - years = faction_war_white_peace_cooldown - } - } - on_white_peace_faction_revolt_war = yes - } - - on_defeat_desc = { - first_valid = { - triggered_desc = { - trigger = { scope:defender = { is_local_player = yes } } - desc = replace_ceremonial_regent_faction_war_defeat_defender_desc - } - desc = replace_ceremonial_regent_faction_war_defeat_desc - } - } - - on_defeat = { - scope:attacker = { - show_pow_release_message_effect = yes - save_scope_as = imprisoner - } - scope:defender = { - add_character_flag = { - flag = recent_replace_regent_faction_war - years = faction_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 - } - on_lost_faction_revolt_war = yes # Imprison all faction members, including the faction leader. - scope:attacker = { # Imprison any war participant that isn't already in the faction. - every_character_war = { - limit = { is_defender = scope:defender } - every_war_attacker = { - limit = { is_imprisoned = no } - hidden_effect = { - hard_imprison_character_effect = { - TARGET = this - IMPRISONER = scope:defender - } - } - } - } - } - } - - on_invalidated_desc = msg_invalidate_war_title - - check_attacker_inheritance_validity = no - - on_primary_attacker_death = inherit_faction - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = no - defender_allies_inherit = yes - - war_name = "JAPANESE_REGENT_FACTION_WAR" - - interface_priority = 80 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_attacker_score_from_battles = 100 - max_defender_score_from_battles = 50 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 -} - -# Triggers as a result of a Restore Ceremonial Liege demand being refused -restore_ceremonial_liege_faction_war = { - icon = dissolution_war - group = civil_war - ai_only_against_liege = yes - allow_hostages = no - allowed_for_character = { - scope:attacker = { is_leading_faction_type = restore_ceremonial_liege_faction } - } - - allowed_against_character = { - scope:attacker.liege = scope:defender - } - - target_de_jure_regions_above = yes - target_top_liege_if_outside_realm = no # In case of adventurers starting faction wars - - valid_to_start = { - } - - on_declaration = { - } - - on_victory_desc = { - desc = restore_ceremonial_liege_faction_war_victory_desc - } - - on_victory = { - scope:attacker = { - show_pow_release_message_effect = yes - #EP2 Accolade glory gain from winning against higher ranked enemy - accolade_attacker_war_end_glory_gain_med_effect = yes - } - # LEGITIMACY FROM LOSING FACTION WAR - faction_war_end_defeat_legitimacy_effect = yes - scope:defender = { - add_prestige = -500 - add_character_flag = { - flag = recent_restore_ceremonial_liege_faction_war - years = liberty_war_victory_cooldown - } - show_as_tooltip = { - restore_ceremonial_liege_faction_reward_effect = yes - } - } - show_as_tooltip = { - scope:attacker = { - imprison = { - target = scope:defender - type = house_arrest - } - } - } - hidden_effect = { - rightfully_imprison_character_effect = { - TARGET = scope:defender - IMPRISONER = scope:attacker - } - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = victory - } - joined_faction = { - save_scope_as = saved_faction - add_faction_discontent = -200 - every_faction_member = { - if = { - limit = { - exists = scope:attacker.joined_faction # Can get destroyed as we loop through - } - leave_faction_with_cooldown_effect = { - FACTION = scope:attacker.joined_faction - YEARS = liberty_war_victory_cooldown - } - } - else = { - add_faction_cooldown_effect = { YEARS = liberty_war_victory_cooldown } - } - } - } - # The faction should have already been destroyed due to all members leaving above, but in case it hasn't, destroy it now. - if = { - limit = { exists = scope:saved_faction } - scope:saved_faction = { destroy_faction = yes } - } - } - } - - scope:attacker = { - trigger_event = tgp_faction_events.0206 - } - } - - on_white_peace_desc = { - desc = restore_ceremonial_liege_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_restore_ceremonial_liege_faction_war - years = faction_war_white_peace_cooldown - } - } - on_white_peace_faction_revolt_war = yes - } - - on_defeat_desc = { - desc = restore_ceremonial_liege_faction_war_defeat_desc - } - - on_defeat = { - scope:attacker = { - show_pow_release_message_effect = yes - save_scope_as = imprisoner - } - scope:defender = { - add_character_flag = { - flag = recent_restore_ceremonial_liege_faction_war - years = faction_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 - } - on_lost_faction_revolt_war = yes # Imprison all faction members, including the faction leader. - scope:attacker = { # Imprison any war participant that isn't already in the faction. - every_character_war = { - limit = { is_defender = scope:defender } - every_war_attacker = { - limit = { is_imprisoned = no } - hidden_effect = { - hard_imprison_character_effect = { - TARGET = this - IMPRISONER = scope:defender - } - } - } - } - } - scope:claimant = { - depose_effect = { DEPOSER = scope:defender } - } - on_lost_faction_revolt_war = yes - } - - on_invalidated_desc = msg_invalidate_war_title - - check_attacker_inheritance_validity = no - - on_primary_attacker_death = inherit_faction - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = no - defender_allies_inherit = yes - - war_name = "JAPANESE_RESTORE_EMPEROR_FACTION_WAR" - - interface_priority = 80 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_attacker_score_from_battles = 100 - max_defender_score_from_battles = 50 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 -} - -# Triggers as a result of a Ceremonial Claimant Faction demand being refused -ceremonial_claimant_faction_war = { - icon = claim_cb - group = civil_war - ai_only_against_liege = no - target_titles = claim - allow_hostages = no - target_top_liege_if_outside_realm = no - allowed_for_character = { - scope:attacker = { - is_leading_faction_type = ceremonial_claimant_faction - } - } - - allowed_against_character = { - exists = scope:attacker.joined_faction - scope:attacker.joined_faction = { - special_title.holder = scope:defender - } - } - - valid_to_start = {} - - should_invalidate = { - OR = { - NOT = { exists = scope:attacker.joined_faction } - NOT = { - scope:attacker.joined_faction = { - exists = special_character - special_character = { is_alive = yes } - has_special_title = yes - } - } - scope:attacker.joined_faction.special_character = scope:attacker.joined_faction.special_title.holder - } - } - - on_invalidated_desc = msg_invalidate_war_title - - on_declaration = { - #on_declared_war = yes - } - - on_victory_desc = { - desc = ceremonial_claimant_faction_war_victory_desc - - } - - on_victory = { - scope:attacker = { show_pow_release_message_effect = yes } - - #EP2 Accolade glory gain from winning against higher ranked enemy - scope:attacker = { accolade_attacker_war_end_glory_gain_med_effect = yes } - - scope:defender = { - add_character_flag = { - flag = recent_ceremonial_claimant_faction_war - years = liberty_war_victory_cooldown - } - } - show_as_tooltip = { - scope:attacker = { - imprison = { - target = scope:defender - type = house_arrest - } - } - } - hidden_effect = { - rightfully_imprison_character_effect = { - TARGET = scope:defender - IMPRISONER = scope:attacker - } - } - scope:defender = { - faction_demand_regent_transfer_effect = { - NEW_REGENT = scope:attacker - REASON = faction_demand - } - } - - random_in_list = { - list = target_titles - save_scope_as = target_title - } - - on_ceremonial_claimant_faction_war_win_common = { - TITLE = scope:target_title - ATTACKER = scope:attacker - DEFENDER = scope:defender - CLAIMANT = scope:claimant - } - - hidden_effect = { - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = victory - } - } - } - - # LEGITIMACY FROM LOSING FACTION WAR - faction_war_end_defeat_legitimacy_effect = yes - - #Mandalas gain or lose piety/devotion depending on Decree - mandala_war_victory_effects = yes - } - - on_white_peace_desc = { - desc = ceremonial_claimant_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 - } - } - - scope:defender = { - add_character_flag = { - flag = recent_ceremonial_claimant_faction_war - years = faction_war_white_peace_cooldown - } - stress_impact = { - arrogant = medium_stress_impact_gain - } - } - on_white_peace_faction_revolt_war = yes - - hidden_effect = { - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = white_peace - } - if = { - limit = { exists = joined_faction } - joined_faction = { - destroy_faction = yes # Destroy the faction if it wasn't already destroyed automatically. - } - } - } - } - } - - on_defeat_desc = { - desc = ceremonial_claimant_faction_war_defeat_desc - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - on_lost_faction_revolt_war = yes - - scope:defender = { - add_character_flag = { - flag = recent_ceremonial_claimant_faction_war - years = faction_war_white_peace_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 - } - - #Mandalas gain or lose piety/devotion depending on Decree - mandala_war_defeat_effects = yes - } - - check_attacker_inheritance_validity = no - - on_primary_attacker_death = inherit_faction - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = no - defender_allies_inherit = yes - - war_name = "CEREMONIAL_CLAIMANT_WAR_NAME" - - interface_priority = 80 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_attacker_score_from_battles = 50 - max_defender_score_from_battles = 100 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 -} - -# Triggers as a result of the Liberty Faction demand -imperial_policy_faction_war = { - icon = dissolution_war - group = civil_war - ai_only_against_liege = yes - allow_hostages = no - allowed_for_character = { - scope:attacker = { - is_leading_faction_type = imperial_policy_faction - } - } - - allowed_against_character = { - scope:attacker = { - liege = scope:defender - } - } - - target_de_jure_regions_above = yes - target_top_liege_if_outside_realm = no # In case of adventurers starting faction wars - - valid_to_start = { - } - - on_declaration = { - } - - on_victory_desc = { - desc = imperial_policy_war_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 } - - # LEGITIMACY FROM LOSING FACTION WAR - faction_war_end_defeat_legitimacy_effect = yes - - scope:defender = { - - add_prestige = -500 - - add_character_flag = { - flag = recent_imperial_policy_faction_war - years = liberty_war_victory_cooldown - } - } - - scope:attacker = { - custom_tooltip = faction_demand.0222.tt - trigger_event = { - id = faction_demand.0227 - days = 1 - } - } - - hidden_effect = { - scope:attacker = { - add_truce_both_ways = { - character = scope:defender - days = 1825 - war = root.war - result = victory - } - joined_faction = { - save_scope_as = saved_faction - add_faction_discontent = -200 - every_faction_member = { - if = { - limit = { - exists = scope:attacker.joined_faction # Can get destroyed as we loop through - } - leave_faction_with_cooldown_effect = { - FACTION = scope:attacker.joined_faction - YEARS = liberty_war_victory_cooldown - } - } - else = { - add_faction_cooldown_effect = { YEARS = liberty_war_victory_cooldown } - } - } - } - # The faction should have already been destroyed due to all members leaving above, but in case it hasn't, destroy it now. - if = { - limit = { exists = scope:saved_faction } - scope:saved_faction = { - destroy_faction = 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 = { - desc = imperial_policy_war_white_peace_end_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_imperial_policy_faction_war - years = faction_war_white_peace_cooldown - } - } - on_white_peace_faction_revolt_war = yes - - # EP3: note gold gained from military assistance/join war contracts and their war contribution threshold - laamp_as_mercenary_payout_tooltip_effect = yes - } - - on_defeat_desc = { - desc = imperial_policy_war_defeat_end_desc - } - - on_defeat = { - scope:attacker = { show_pow_release_message_effect = yes } - scope:defender = { - add_character_flag = { - flag = recent_imperial_policy_faction_war - years = faction_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 - } - on_lost_faction_revolt_war = 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_invalidated_desc = msg_invalidate_war_title - - check_attacker_inheritance_validity = no - - on_primary_attacker_death = inherit_faction - on_primary_defender_death = inherit - - transfer_behavior = transfer - - attacker_allies_inherit = no - defender_allies_inherit = yes - - war_name = "IMPERIAL_POLICY_WAR_NAME" - - interface_priority = 80 - - use_de_jure_wargoal_only = yes - - attacker_wargoal_percentage = 0.8 - - max_attacker_score_from_battles = 100 - max_defender_score_from_battles = 50 - - max_defender_score_from_occupation = 150 - max_attacker_score_from_occupation = 150 - - max_ai_diplo_distance_to_title = 500 -} diff --git a/common/character_interactions/00_character_interactions.txt b/common/character_interactions/00_character_interactions.txt index 86d0d01b..dd63d337 100644 --- a/common/character_interactions/00_character_interactions.txt +++ b/common/character_interactions/00_character_interactions.txt @@ -2337,67 +2337,67 @@ grant_independence_interaction = { resolve_title_and_vassal_change = scope:change } -# # Struggle Catalysts. -# scope:actor = { -# if = { -# limit = { -# catalyst_gave_independence_to_powerful_diff_faith_culture_vassal_preliminary_trigger = { -# CHAR1 = scope:actor -# CHAR2 = scope:recipient -# } -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal -# character = scope:actor -# } -# } -# } -# -# if = { -# limit = { -# NOT = { -# any_held_title = { -# is_de_jure_liege_or_above_target = scope:recipient.primary_title -# } -# } -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_independence_from_non_dejure_vassal -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_independence_from_non_dejure_vassal -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_independence_from_non_dejure_vassal -# character = scope:actor -# } -# } -# } -# } + # Struggle Catalysts. + scope:actor = { + if = { + limit = { + catalyst_gave_independence_to_powerful_diff_faith_culture_vassal_preliminary_trigger = { + CHAR1 = scope:actor + CHAR2 = scope:recipient + } + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_gave_independence_to_powerful_diff_faith_culture_vassal + character = scope:actor + } + } + } + + if = { + limit = { + NOT = { + any_held_title = { + is_de_jure_liege_or_above_target = scope:recipient.primary_title + } + } + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_independence_from_non_dejure_vassal + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_independence_from_non_dejure_vassal + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_independence_from_non_dejure_vassal + character = scope:actor + } + } + } + } # Grant independence to non de_jure @@ -2519,49 +2519,49 @@ expose_secret_interaction = { expose_secret = scope:actor } } -# if = { -# limit = { -# has_title = title:e_minister_of_justice -# top_participant_group:dynastic_cycle ?= { -# NOT = { participant_group_type = other_rulers } -# } -# OR = { -# scope:recipient = { -# top_participant_group:dynastic_cycle ?= { -# NOT = { participant_group_type = other_rulers } -# } -# } -# scope:target.secret_target = { -# top_participant_group:dynastic_cycle ?= { -# NOT = { participant_group_type = other_rulers } -# } -# } -# } -# } -# add_merit_if_relevant_effect = { -# MERIT = minor_merit_value -# } -# if = { -# limit = { -# government_has_flag = government_has_influence -# } -# change_influence = { -# value = minor_influence_gain -# multiply = scope:recipient.highest_held_title_tier -# } -# } -# situation:dynastic_cycle = { -# if = { -# limit = { -# situation_top_has_catalyst = catalyst_minister_exposed_secret -# } -# trigger_situation_catalyst = { -# catalyst = catalyst_minister_exposed_secret -# character = scope:actor -# } -# } -# } -# } + if = { + limit = { + has_title = title:e_minister_of_justice + top_participant_group:dynastic_cycle ?= { + NOT = { participant_group_type = other_rulers } + } + OR = { + scope:recipient = { + top_participant_group:dynastic_cycle ?= { + NOT = { participant_group_type = other_rulers } + } + } + scope:target.secret_target = { + top_participant_group:dynastic_cycle ?= { + NOT = { participant_group_type = other_rulers } + } + } + } + } + add_merit_if_relevant_effect = { + MERIT = minor_merit_value + } + if = { + limit = { + government_has_flag = government_has_influence + } + change_influence = { + value = minor_influence_gain + multiply = scope:recipient.highest_held_title_tier + } + } + situation:dynastic_cycle = { + if = { + limit = { + situation_top_has_catalyst = catalyst_minister_exposed_secret + } + trigger_situation_catalyst = { + catalyst = catalyst_minister_exposed_secret + character = scope:actor + } + } + } + } stress_impact = { honest = minor_stress_impact_loss @@ -2668,43 +2668,43 @@ expose_secret_interaction = { } } } -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# has_trait = fp3_struggle_detractor -# } -# scope:actor = { -# any_character_struggle = { -# involvement = involved -# } -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_reveal_secret_detractor -# } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_reveal_secret_detractor -# } -# } -# } -# add = -100 -# } -# } -# } + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + has_trait = fp3_struggle_detractor + } + scope:actor = { + any_character_struggle = { + involvement = involved + } + } + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_reveal_secret_detractor + } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_reveal_secret_detractor + } + } + } + add = -100 + } + } + } # Unity modifiers evaluate_action_decreasing_house_unity = { diff --git a/common/character_interactions/00_courtier_and_guest_interactions.txt b/common/character_interactions/00_courtier_and_guest_interactions.txt deleted file mode 100644 index c03c3a67..00000000 --- a/common/character_interactions/00_courtier_and_guest_interactions.txt +++ /dev/null @@ -1,1210 +0,0 @@ -recruit_guest_interaction = { - category = interaction_category_vassal - icon = guest - common_interaction = yes - - special_ai_interaction = recruit_courtier - - desc = recruit_guest_interaction_desc - - should_use_extra_icon = { - NOT = { scope:recipient = { is_close_family_of = scope:actor } } - scope:actor = { has_usable_hook = scope:recipient } - } - extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" - - is_shown = { - scope:actor != scope:recipient - scope:recipient = { is_pool_guest_of = scope:actor } - scope:actor = { - is_ruler = yes - } - } - - is_valid_showing_failures_only = { - scope:recipient = { - is_ruler = no - } - trigger_if = { - limit = { - NOR = { - scope:recipient = { is_close_family_of = scope:actor } # Close family members are free - scope:actor = { has_usable_hook = scope:recipient } # Using a hook makes it free - } - } - scope:actor = { - gold >= scope:recipient.recruit_guest_interaction_cost - } - } - } - - can_send = { - # check if we're using the hook (is_valid_showing_failures_only checks only if we have a hook), else we need to be able to afford it - trigger_if = { - limit = { - NOR = { - AND = { - exists = scope:hook - always = scope:hook - } - scope:recipient = { is_close_family_of = scope:actor } - } - scope:actor = { has_usable_hook = scope:recipient } # without this the is_valid_showing_failures_only above shows the same error - } - scope:actor = { - gold >= scope:recipient.recruit_guest_interaction_cost - } - } - } - - send_options_exclusive = no - send_option = { - is_valid = { - scope:actor = { - has_usable_hook = scope:recipient - } - } - flag = hook - localization = SCHEME_HOOK - } - send_option = { # EP3 Influence - is_shown = { # Actor must have a government that uses influence - scope:actor = { - government_has_flag = government_has_influence - } - } - is_valid = { - # Actor has enough influence - scope:actor = { influence >= minor_influence_value } - } - flag = influence_send_option - localization = INFLUENCE_SEND_OPTION - } - - on_accept = { - scope:recipient = { - every_traveling_family_member = { - add_to_temporary_list = recruiting_family - } - } - - if = { - limit = { scope:recipient = { is_close_family_of = scope:actor } } # Close family members are free - # do nothing - } - else_if = { - limit = { always = scope:hook } - scope:actor = { use_hook = scope:recipient } - } - else_if = { - limit = { always = scope:influence_send_option } - scope:actor = { change_influence = minor_influence_loss } - } - else = { - scope:recipient = { - save_temporary_scope_as = most_expensive_person - - every_in_list = { - list = recruiting_family - - if = { - limit = { this.individual_recruit_guest_interaction_cost >= scope:most_expensive_person.individual_recruit_guest_interaction_cost } - save_temporary_scope_as = most_expensive_person - } - } - } - - scope:actor = { - pay_short_term_gold = { - target = scope:most_expensive_person - gold = scope:most_expensive_person.recruit_guest_interaction_cost_with_list #This value needs a list with the name "recruiting_family" - } - } - } - - - - scope:actor = { - send_interface_message = { - type = event_generic_neutral - title = msg_recruited_guest_to_court_interaction_title - right_icon = scope:recipient - stress_impact = { - shy = minor_stress_impact_gain - paranoid = minor_stress_impact_gain - } - every_in_list = { - list = recruiting_family - scope:actor = { - add_courtier ?= prev - } - remove_variable = last_visited_ruler # Even though it times out automatically, removing it here saves cycles for performance. - add_opinion = { - target = scope:actor - opinion = 50 - modifier = grateful_opinion - } - } - } - } - } - - auto_accept = yes - - # AI - ai_targets = { - ai_recipients = guests - } - ai_frequency_by_tier = { - barony = 0 - county = 36 - duchy = 12 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_potential = { - is_at_war = no # Try to avoid wasting your war chest! - NOT = { has_variable = conqueror } - short_term_gold >= yearly_character_income - any_courtier_or_guest = { - is_alive = yes - count <= 30 - } - ai_should_focus_on_building_in_their_capital = no - NOT = { government_has_flag = government_is_nomadic } - } - - ai_will_do = { - base = 0 - - #Lacking councillors - compare_modifier = { - trigger = { - scope:actor = { - NOT = { exists = cp:councillor_chancellor } - } - scope:recipient = { - OR = { - AND = { - is_male = yes - scope:actor = { faith_dominant_gender_male_or_equal = yes } - } - AND = { - is_female = yes - scope:actor = { faith_dominant_gender_female_or_equal = yes } - } - } - } - } - target = scope:recipient - value = diplomacy - offset = { - value = 0 - subtract = decent_skill_rating - } - } - compare_modifier = { - trigger = { - scope:actor = { - NOT = { exists = cp:councillor_marshal } - } - scope:recipient = { - OR = { - AND = { - is_male = yes - scope:actor = { faith_dominant_gender_male_or_equal = yes } - } - AND = { - is_female = yes - scope:actor = { faith_dominant_gender_female_or_equal = yes } - } - } - } - } - target = scope:recipient - value = martial - offset = { - value = 0 - subtract = decent_skill_rating - } - } - compare_modifier = { - trigger = { - scope:actor = { - NOT = { exists = cp:councillor_steward } - } - scope:recipient = { - OR = { - AND = { - is_male = yes - scope:actor = { faith_dominant_gender_male_or_equal = yes } - } - AND = { - is_female = yes - scope:actor = { faith_dominant_gender_female_or_equal = yes } - } - } - } - } - target = scope:recipient - value = stewardship - offset = { - value = 0 - subtract = decent_skill_rating - } - } - compare_modifier = { - trigger = { scope:actor = { NOT = { exists = cp:councillor_spymaster } } } - target = scope:recipient - value = intrigue - offset = { - value = 0 - subtract = decent_skill_rating - } - } - - #Lacking court physician - compare_modifier = { - trigger = { - scope:actor = { court_physician_available_trigger = no } - scope:recipient = { - would_be_valid_for_court_position = { - employer = scope:actor - court_position = court_physician_court_position - } - } - } - target = scope:recipient - value = learning - offset = { - value = 0 - subtract = decent_skill_rating - } - } - - #Lacking knights - compare_modifier = { - trigger = { - scope:recipient.prowess >= decent_skill_rating - scope:recipient = { - can_be_knight_trigger = { ARMY_OWNER = scope:actor } - } - scope:actor = { - OR = { - number_of_knights < max_number_of_knights - any_knight = { - prowess < decent_skill_rating - } - } - } - } - target = scope:recipient - value = prowess - offset = { - value = 0 - subtract = decent_skill_rating - } - } - - - #Vested interest - modifier = { - add = 20 - scope:recipient = { - OR = { - has_relation_lover = scope:actor - has_relation_friend = scope:actor - has_secret_relation_lover = scope:actor - has_relation_soulmate = scope:actor - has_relation_best_friend = scope:actor - is_child_of = scope:actor - } - } - } - - - #Claimants - modifier = { - scope:recipient = { - any_claim = { - neighboring_useful_courtier_or_guest_claim_trigger = { RULER = scope:actor } - } - } - add = { - value = 0 - if = { - limit = { - scope:recipient = { - any_claim = { - neighboring_useful_courtier_or_guest_claim_trigger = { RULER = scope:actor } - tier >= tier_duchy - } - } - } - add = 40 - } - else = { - add = 30 - } - } - } - - # Make it all more likely - modifier = { - factor = 4 - } - - # The AI will always use a hook if it can - modifier = { - scope:hook = yes - add = 1 - } - } -} - -kick_from_court_interaction = { - category = interaction_category_vassal - icon = guest - - - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:recipient = { is_foreign_court_or_pool_guest = yes } } - desc = kick_from_court_interaction_desc_guest - } - desc = kick_from_court_interaction_desc - } - } - - is_shown = { - scope:actor != scope:recipient - scope:recipient = { - OR = { - is_courtier_of = scope:actor - is_pool_guest_of = scope:actor - } - bp2_valid_for_standard_interactions_trigger = yes - } - } - - cost = { - prestige = { - if = { - limit = { - scope:actor = { has_government = landless_adventurer_government } - } - value = minor_prestige_value - } - else_if = { - limit = { - scope:recipient = { - any_traveling_family_member = { - count = all - is_lowborn = yes - } - } - } - value = minor_prestige_value - } - else = { - value = medium_prestige_value - } - } - } - - is_valid_showing_failures_only = { - scope:recipient = { - kick_from_court_validity_trigger = yes - NOT = { is_imprisoned_by = scope:actor } - - custom_description = { - text = "kick_from_court_interaction_travelling_family_invalid" - subject = scope:recipient - NOT = { - any_traveling_family_member = { - this != scope:recipient - kick_from_court_validity_trigger = no - } - } - } - } - } - - on_accept = { - scope:actor = { - stress_impact = { - gregarious = minor_stress_impact_gain - } - - hidden_effect = { - send_interface_message = { - type = event_generic_neutral - title = msg_kicked_courtier_from_court_interaction_title - - right_icon = scope:recipient - - show_as_tooltip = { - scope:actor = { - remove_courtier_or_guest = scope:recipient - } - } - - #Remove them as guardian/ward for any courtier - if = { - limit = { - any_courtier = { - has_relation_guardian = scope:recipient - } - } - every_courtier = { - limit = { - has_relation_guardian = scope:recipient - } - save_scope_as = ward - remove_guardian_effect = { - GUARDIAN = scope:recipient - WARD = scope:ward - RETURN_WARD = yes - HIDE_OPINION = no - } - } - scope:recipient = { trigger_event = char_interaction.0090 } - } - if = { - limit = { - any_courtier = { - has_relation_ward = scope:recipient - } - } - random_courtier = { - limit = { - has_relation_ward = scope:recipient - } - save_scope_as = guardian - - send_interface_message = { - type = event_childhood_neutral - title = remove_guardian_interaction_notification - left_icon = scope:recipient - right_icon = scope:guardian - remove_guardian_effect = { - GUARDIAN = scope:guardian - WARD = scope:recipient - RETURN_WARD = yes - HIDE_OPINION = no - } - } - } - } - } - } - - #To be able to send a cohesive interface message AND show a good tooltip - show_as_tooltip = { - #Remove them as guardian for any child - if = { - limit = { - any_courtier = { - has_relation_guardian = scope:recipient - } - } - every_courtier = { - limit = { - has_relation_guardian = scope:recipient - } - save_scope_as = ward - remove_guardian_effect = { - GUARDIAN = scope:recipient - WARD = scope:ward - RETURN_WARD = yes - HIDE_OPINION = no - } - } - } - - #Remove them as ward of any courtier - if = { - limit = { - any_courtier = { - has_relation_ward = scope:recipient - } - } - random_courtier = { - limit = { - has_relation_ward = scope:recipient - } - save_scope_as = guardian - remove_guardian_effect = { - GUARDIAN = scope:guardian - WARD = scope:recipient - RETURN_WARD = yes - HIDE_OPINION = no - } - } - } - } - } - - scope:recipient = { - every_traveling_family_member = { - add_to_temporary_list = kicked_family - } - } - - every_in_list = { - list = kicked_family - #Kicks, adds opinions, adds people to kicked_relatives_list - kick_from_court_interaction_effect = yes - } - - if = { - limit = { - any_in_list = { - list = kicked_relatives_list - is_alive = yes - } - } - every_in_list = { - list = kicked_relatives_list - custom = all_close_family_members_of_kicked_characters - add_opinion = { - modifier = kicked_relative_from_court - target = scope:actor - } - } - } - - employed_booner_invalidation_effect = { EMPLOYEE = scope:recipient LIEGE = scope:actor } - } - - auto_accept = yes -} - -invite_to_court_interaction = { - category = interaction_category_vassal - icon = guest - - desc = invite_to_court_interaction_desc - - is_shown = { - scope:recipient = { - NOR = { - is_courtier_of = scope:actor - is_foreign_court_guest = yes - host ?= scope:actor - has_trait = order_member - is_ruler = yes - location = { is_sea_province = yes } - } - } - } - - is_valid_showing_failures_only = { - custom_tooltip = { - scope:recipient = { - OR = { - NOT = { exists = liege } - NOT = { has_variable = invite_to_court_cooldown } - } - } - text = INVITE_TO_COURT_COOLDOWN - } - can_recruit_character_to_court_trigger = { - RECRUITER = scope:actor - RECRUITEE = scope:recipient - } - custom_tooltip = { - scope:recipient = { - NAND = { - has_variable = nomad_defector_var - var:nomad_defector_var = { - this = scope:actor - } - } - } - text = nomad_defected_invite_desc - } - } - - #Pay som gold to persuade a wandering character to come to your court - send_option = { - is_shown = { - exists = scope:recipient - } - flag = cover_travel_expenses - localization = COVER_TRAVEL_EXPENSES - } - send_option = { # EP3 Influence - is_shown = { # Actor must have a government that uses influence - scope:actor = { - government_has_flag = government_has_influence - } - } - is_valid = { - # Actor has enough influence - scope:actor = { influence >= medium_influence_value } - # Both characters are within the same top realm - scope:recipient.top_liege = scope:actor.top_liege - } - flag = influence_send_option - localization = TRADE_INFLUENCE_FOR_BETTER_AI_ACCEPTANCE - } - send_option = { - is_valid = { - scope:actor = { - has_usable_hook = scope:recipient - } - } - flag = hook - localization = SCHEME_HOOK - } - should_use_extra_icon = { - scope:actor = { has_usable_hook = scope:recipient } - } - extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" - - send_options_exclusive = no - - cost = { - influence = { - value = 0 - if = { - limit = { scope:influence_send_option = yes } - add = scope:actor.medium_influence_value - desc = INFLUENCE_INTERACTION_ACCEPTANCE_SEND_OPTION - } - } - } - - on_accept = { - hidden_effect = { - scope:recipient = { - set_variable = { - name = invite_to_court_cooldown - years = 5 - } - } - - if = { - limit = { - exists = scope:recipient.liege - } - scope:recipient.liege = { - send_interface_message = { - type = event_generic_neutral - title = msg_courtier_left_court_interaction_title - - right_icon = scope:recipient - - show_as_tooltip = { - remove_courtier_or_guest = scope:recipient - } - } - } - } - } - - scope:actor = { - send_interface_message = { - type = event_generic_neutral - title = invite_to_court_interaction_notification - right_icon = scope:recipient - - scope:recipient = { - every_traveling_family_member = { - scope:actor = { add_courtier = prev } - hidden_effect = { - return_to_court = yes - } - } - } - - if = { - limit = { always = scope:hook } - scope:actor = { - use_hook = scope:recipient - } - } - } - } - - - if = { - limit = { always = scope:cover_travel_expenses } - scope:actor = { - pay_short_term_gold = { - gold = { - value = bribe_value - multiply = 0.5 - } - target = scope:recipient - } - stress_impact = { - greedy = minor_stress_impact_gain - } - } - } - } - - ai_accept = { - base = -50 - - #Opinions - opinion_modifier = { - trigger = { - exists = liege - is_courtier_of = liege - } - opinion_target = liege - multiplier = -0.5 - step = 5 - max = 25 - } - opinion_modifier = { - opinion_target = scope:actor - multiplier = 0.5 - step = 5 - max = 25 - } - - # Stooge modifier - modifier = { - scope:recipient = { has_variable = non_recruitable_var } - scope:recipient.var:non_recruitable_var = scope:actor - add = -200 - desc = AI_STOOGE - } - - #Current roles - modifier = { - is_knight = yes - add = -20 - desc = AI_MY_LIEGES_KNIGHT - } - modifier = { - is_commanding_army = yes - add = -30 - desc = AI_MY_LIEGES_COMMANDER - } - modifier = { - is_councillor = yes - add = -40 - desc = AI_ON_THE_COUNCIL - } - - modifier = { - trigger = { scope:recipient = { has_court_position = court_physician_court_position } } - add = -20 - desc = AI_COURT_PHYSICIAN - } - - #Relations & relatives (with actor) - modifier = { - has_relation_lover = scope:actor - add = 100 - desc = AI_YOUR_LOVER - } - - modifier = { - has_relation_friend = scope:actor - add = 75 - desc = AI_YOUR_FRIEND - } - - modifier = { - is_child_of = scope:actor - add = 160 - desc = AI_YOUR_CHILD - } - - modifier = { - this.dynasty.dynast = scope:actor - add = 30 - desc = AI_YOU_ARE_THE_DYNAST - } - - modifier = { - this.house.house_head = scope:actor - add = 60 - desc = AI_YOU_ARE_THE_HOUSE_HEAD - } - - modifier = { - this.top_liege = scope:actor - add = 60 - desc = AI_YOU_ARE_THE_SOVEREIGN - } - - modifier = { - NOT = { is_child_of = scope:actor } - NOT = { is_close_family_of = scope:actor } - is_extended_family_of = scope:actor - add = 30 - desc = AI_YOUR_RELATIVE - } - - modifier = { - NOT = { is_child_of = scope:actor } - is_close_family_of = scope:actor - add = 75 - desc = AI_YOUR_RELATIVE - } - - modifier = { - is_spouse_of = scope:actor - add = 160 - desc = AI_YOUR_SPOUSE - } - - #Relations & relatives (with host) - modifier = { - exists = liege - has_relation_lover = liege - add = -100 - desc = AI_THEIR_LOVER - } - - modifier = { - exists = liege - has_relation_friend = liege - add = -75 - desc = AI_THEIR_FRIEND - } - - modifier = { - exists = liege - is_child_of = liege - add = -160 - desc = AI_THEIR_CHILD - } - - modifier = { - exists = liege - NOT = { is_child_of = liege } - is_close_family_of = liege - add = -75 - desc = AI_THEIR_RELATIVE - } - - #Family (at location) - modifier = { - exists = location - any_consort_not_in_traveling_family_trigger = yes - desc = AI_LEAVING_MY_SPOUSE - add = -100 - } - - modifier = { - exists = location - any_child_not_in_traveling_family_trigger = yes - desc = AI_LEAVING_MY_CHILD - add = -100 - } - - modifier = { - add = -50 - desc = AI_MARRIED_MATRILINIALLY - is_married = yes - is_male = yes - any_spouse = { - matrilinear_marriage = yes - host = scope:recipient.host - } - } - - modifier = { - add = -50 - desc = AI_MARRIED_PATRILINIALLY - is_married = yes - is_female = yes - any_spouse = { - patrilinear_marriage = yes - host = scope:recipient.host - } - } - - modifier = { - add = -50 - desc = AI_INSPIRED - inspiration ?= { - NOT = { - exists = inspiration_sponsor - } - } - } - - modifier = { - add = -500 - desc = AI_SPONSORED_INSPIRATION - inspiration ?= { - exists = inspiration_sponsor - } - } - - modifier = { - add = -500 - desc = AI_WANDERLUST - is_child_of = scope:actor - has_character_modifier = lust_for_adventure - } - - modifier = { - add = -180 - desc = ELUDING_CASTRATOR - is_adult = no - any_memory = { - memory_type = family_castration_fled_memory - memory_participant:castrator ?= { - this = scope:actor - } - } - } - - modifier = { - liege ?= { is_landed = yes } - scope:actor = { is_landed = no } - add = -50 - desc = AI_MY_LIEGE_IS_LANDED - } - - #Wandering characters (who aren't doing anything else) - modifier = { - add = { - value = 10 - add = scope:actor.diplomacy - - if = { - limit = { - faith = scope:actor.faith - } - add = 10 - } - else_if = { - limit = { - faith = { #Same religion - But faith should not be considered Hostile or Evil - religion = scope:actor.faith.religion - faith_hostility_level = { - target = scope:actor.faith - value < 2 - } - } - } - add = 5 - } - if = { - limit = { - culture = scope:actor.culture - } - add = 10 - } - else_if = { - limit = { - culture = { - has_same_culture_heritage = scope:actor.culture - } - } - add = 5 - } - if = { - limit = { - OR = { - has_trait = content - has_trait = lazy - has_trait = trusting - } - } - add = 10 - } - } - desc = AI_CAN_BE_PERSUADED_TO_STAY - - is_pool_guest = no - location.province_owner ?= { - OR = { - any_liege_or_above = { this = scope:actor } - this = scope:actor - } - } - NOR = { - has_relation_rival = scope:actor - exists = liege - is_child_of = scope:actor - has_character_modifier = lust_for_adventure - } - } - - modifier = { - add = { - value = 20 - if = { - limit = { - has_trait = greedy - } - multiply = 1.5 - } - else_if = { - limit = { - has_trait = generous - } - multiply = 0.5 - } - } - scope:cover_travel_expenses = yes - desc = AI_TRAVEL_EXPENSES - } - - # Amenities impact - ## Actor's amenities increases acceptance - modifier = { - add = { - value = 10 - if = { - limit = { - scope:actor = { - has_royal_court = yes - has_dlc_feature = royal_court - amenity_level = { target = court_lodging_standards value >= high_amenity_level } - } - } - add = 10 - } - if = { - limit = { - scope:actor = { - amenity_level = { target = court_lodging_standards value >= very_high_amenity_level } - } - } - add = 10 - } - if = { - limit = { - scope:actor = { - amenity_level = { target = court_lodging_standards value >= max_amenity_level } - } - } - add = 20 - } - } - desc = AI_COURT_LODGING_STANDARDS_QUALITY - scope:actor = { - has_royal_court = yes - has_dlc_feature = royal_court - amenity_level = { target = court_lodging_standards value >= medium_amenity_level } - } - } - ## Target's liege amenities decreases acceptance - modifier = { - add = { - value = -10 - if = { - limit = { - liege = { - amenity_level = { target = court_lodging_standards value >= high_amenity_level } - } - } - add = -10 - } - if = { - limit = { - liege = { - amenity_level = { target = court_lodging_standards value >= very_high_amenity_level } - } - } - add = -10 - } - if = { - limit = { - liege = { - amenity_level = { target = court_lodging_standards value >= max_amenity_level } - } - } - add = -20 - } - } - desc = AI_LIEGE_COURT_LODGING_STANDARDS_QUALITY - exists = liege - is_courtier_of = liege - liege = { - has_royal_court = yes - has_dlc_feature = royal_court - amenity_level = { target = court_lodging_standards value >= medium_amenity_level } - } - } - - modifier = { - add = { - value = scope:actor.house.house_unity_value - multiply = 0.5 - } - desc = AI_HOUSE_UNITY - scope:actor = { government_has_flag = government_is_clan } - exists = house - exists = scope:actor.house - house = scope:actor.house - house = { - OR = { - has_house_unity_stage = harmonious - has_house_unity_stage = friendly - } - } - } - - modifier = { - add = 25 - scope:influence_send_option = yes - desc = INFLUENCE_INTERACTION_ACCEPTANCE_SEND_OPTION - } - - modifier = { - add = estate_invite_to_court_acceptance_value - scope:actor = { - domicile ?= { has_domicile_parameter = estate_increase_invite_to_court_acceptance } - } - desc = estate_buildings_with_value_desc - } - - modifier = { - add = -1000 - desc = MALUS_TO_RECRUITMENT_FOR_IMPERIAL_EUNUCHS - scope:recipient = { - is_eunuch_trigger = yes - liege ?= { - government_allows = administrative - primary_title.tier >= tier_empire - culture = { has_cultural_parameter = can_appoint_chief_eunuch } - } - } - } - - - modifier = { - scope:actor.culture = { - has_cultural_parameter = invite_courtiers_reasons - } - add = 15 - desc = invite_courtiers_additional_reason - } - - # Event modifiers - - # El Cid - modifier = { - has_variable = cid_1010_no_invite_var - var:cid_1010_no_invite_var = scope:actor - add = -200 - desc = cid_1010_no_invite_var_desc - } - } - - auto_accept = { - custom_description = { - text = "spending_hook" - subject = scope:actor - object = scope:recipient - scope:hook = yes - } - } -} diff --git a/common/character_interactions/00_diarch_interactions.txt b/common/character_interactions/00_diarch_interactions.txt index 5a742e05..75d4fb2d 100644 --- a/common/character_interactions/00_diarch_interactions.txt +++ b/common/character_interactions/00_diarch_interactions.txt @@ -2047,75 +2047,75 @@ diarch_imprison_interaction = { } ## We avoid wars here too, but only in the resulting event. ## Agenda impact -# modifier = { -# 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 -# } -# } -# any_character_struggle = { involvement = involved } -# } -# modifier = { -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } -# } -# } -# add = -100 -# } -# } -# any_character_struggle = { involvement = involved } -# } -# modifier = { -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } -# has_trait = fp3_struggle_detractor -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } -# } -# } -# add = -100 -# } -# } -# any_character_struggle = { involvement = involved } -# } + modifier = { + 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 + } + } + any_character_struggle = { involvement = involved } + } + modifier = { + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_detractor } + } + } + add = -100 + } + } + any_character_struggle = { involvement = involved } + } + modifier = { + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } + has_trait = fp3_struggle_detractor + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { phase_has_catalyst = catalyst_imprison_supporter } + } + } + add = -100 + } + } + any_character_struggle = { involvement = involved } + } # Factors. ## Relationships. ### + Do pick on people we hate. diff --git a/common/character_interactions/00_dynast_interactions.txt b/common/character_interactions/00_dynast_interactions.txt deleted file mode 100644 index 7942e651..00000000 --- a/common/character_interactions/00_dynast_interactions.txt +++ /dev/null @@ -1,1995 +0,0 @@ -#Interactions relating to the head of the dynasty - -disinherit_interaction = { - icon = icon_dynasty - category = interaction_category_hostile - interface_priority = 60 - - desc = disinherit_interaction_desc - use_diplomatic_range = no - - is_shown = { - NOT = { - scope:recipient = scope:actor - - AND = { # Explicit AND to ensure no funny business - scope:recipient = { is_child_of = scope:actor } - scope:actor.dynasty = { - this = scope:recipient.dynasty - has_dynasty_perk = fp2_coterie_legacy_5 - } - } - } - - scope:actor = { - is_dynast = yes - dynasty = scope:recipient.dynasty - - } - scope:recipient = { - NOT = { - has_trait = disinherited - } - } - } - - is_valid = { - custom_description = { - scope:actor.culture = { - NOT = { has_cultural_parameter = cannot_disherit } - } - text = "mystical_ancestors_disinherit" - } - } - - is_valid_showing_failures_only = { - trigger_if = { - limit = { - NOT = { # in such cases, it will be free so no need to check for Renown - scope:recipient = { - OR = { - has_trait = disputed_heritage - any_secret = { - type = secret_disputed_heritage - is_known_by = scope:actor - } - has_trait = bastard - } - } - } - } - scope:actor.dynasty = { - dynasty_prestige >= medium_dynasty_prestige_value - } - } - - scope:recipient = { NOT = { has_strong_hook = scope:actor } } - trigger_if = { - limit = { - scope:recipient = { - NOR = { - is_child_of = scope:actor - is_grandchild_of = scope:actor - is_great_grandchild_of = scope:actor - } - } - } - custom_description = { - scope:recipient.top_liege = scope:actor.top_liege - text = "same_realm_as" - } - } - custom_tooltip = { - text = cannot_take_overt_hostile_actions_against_diarch.tt - NOT = { scope:recipient ?= scope:actor.diarch } - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0020 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - forgiving = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - - #Legitimacy loss - if = { - limit = { has_legitimacy = yes } - if = { - limit = { scope:recipient = { is_primary_heir_of = scope:actor } } - add_legitimacy = { - value = medium_legitimacy_loss - multiply = scope:actor.primary_title.tier - } - } - else_if = { - limit = { scope:recipient = { is_child_of = scope:actor } } - add_legitimacy = { - value = minor_legitimacy_loss - multiply = scope:actor.primary_title.tier - } - } - else = { - add_legitimacy = { - value = miniscule_legitimacy_loss - multiply = scope:actor.primary_title.tier - } - } - } - hidden_effect = { - send_interface_toast = { - type = event_toast_effect_neutral - title = disinherit_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - scope:recipient = { - show_as_tooltip = { - disinherit_effect = { DISINHERITOR = scope:actor } - } - } - } - } - } - - scope:recipient = { - disinherit_effect = { DISINHERITOR = scope:actor } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = medium_unity_loss - DESC = clan_unity_disinheritance.desc - REVERSE_NON_HOUSE_TARGET = no - } - - if = { - limit = { - scope:recipient = { - any_secret = { - type = secret_disputed_heritage - is_known_by = scope:actor - save_temporary_scope_as = secret_to_reveal - } - } - } - - scope:secret_to_reveal = { - expose_secret = scope:recipient.mother - } - - scope:recipient = { - add_trait = disputed_heritage - } - } - } - - cost = { - renown = { - value = { - add = scope:actor.dynasty.medium_dynasty_prestige_value - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = yes - } - } - add = scope:actor.dynasty.major_dynasty_prestige_value - } - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = no - any_heir_title = { - exists = holder - } - } - } - add = scope:actor.dynasty.medium_dynasty_prestige_value - } - if = { - limit = { - scope:recipient = { - OR = { - has_trait = disputed_heritage - any_secret = { - type = secret_disputed_heritage - is_known_by = scope:actor - } - has_trait = bastard - } - } - } - multiply = 0 - } - } - } - prestige = { - value = { - add = medium_prestige_value - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = yes - } - } - add = massive_prestige_value - } - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = no - any_heir_title = { - exists = holder - } - } - } - add = medium_prestige_value - } - if = { - limit = { - scope:recipient = { - OR = { - has_trait = disputed_heritage - any_secret = { - type = secret_disputed_heritage - is_known_by = scope:actor - } - has_trait = bastard - } - } - } - multiply = 0 - } - } - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - NOT = { - has_trait = forgiving - } - is_dynast = yes - } - - ai_targets = { - ai_recipients = dynasty - max = 20 - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 48 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_will_do = { - base = 0 - - modifier = { - add = -100 - scope:actor = { - OR = { - legitimacy_level = 0 - legitimacy_level = 1 - } - } - scope:recipient = { is_primary_heir_of = scope:actor } - } - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - - modifier = { - add = 100 - scope:recipient = { - is_primary_heir_of = scope:actor - OR = { - has_trait = inbred - has_trait = intellect_bad_3 - has_trait = incapable - } - } - } - - modifier = { - add = 5 - ai_vengefulness >= medium_positive_ai_value - scope:recipient = { - is_heir_of = scope:actor - } - OR = { - AND = { - scope:recipient = { - has_trait = incestuous - } - NOT = { is_incestuous_trigger = yes } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = kinslayer - } - NOT = { has_trait = kinslayer } - } - AND = { - scope:recipient = { - has_trait = adulterer - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = fornicator - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = deviant - } - NOT = { - is_deviant_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = witch - } - NOT = { - is_witch_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = sodomite - } - NOR = { - has_trait = sodomite - any_secret = { - type = secret_homosexual - } - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = cannibal - } - NOT = { - is_cannibal_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - } - } - - # Unity modifiers - evaluate_action_decreasing_house_unity = { - VALUE = 100 - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - - modifier = { - factor = 0 - scope:recipient = { - is_ai = no - } - } - } -} - -disinherit_children_interaction = { - icon = icon_dynasty - category = interaction_category_hostile - interface_priority = 60 - - desc = disinherit_children_interaction_desc - use_diplomatic_range = no - - is_shown = { - # DLC checking - has_fp2_dlc_trigger = yes - # Standard check - scope:recipient != scope:actor - - scope:actor.dynasty = { - this = scope:recipient.dynasty - has_dynasty_perk = fp2_coterie_legacy_5 - } - scope:recipient = { - NOT = { - has_trait = disinherited - } - } - } - - is_valid = { - scope:actor = { is_parent_of = scope:recipient } - - - custom_description = { - scope:actor.culture = { - NOT = { has_cultural_parameter = cannot_disherit } - } - text = "mystical_ancestors_disinherit" - } - } - - is_valid_showing_failures_only = { - scope:actor = { - prestige >= major_prestige_value - } - scope:recipient = { NOT = { has_strong_hook = scope:actor } } - trigger_if = { - limit = { - scope:recipient = { - NOR = { - is_child_of = scope:actor - is_grandchild_of = scope:actor - is_great_grandchild_of = scope:actor - } - } - } - custom_description = { - scope:recipient.top_liege = scope:actor.top_liege - text = "same_realm_as" - } - } - custom_tooltip = { - text = cannot_take_overt_hostile_actions_against_diarch.tt - NOT = { scope:recipient ?= scope:actor.diarch } - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0020 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - forgiving = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - add_tyranny = massive_tyranny_value - hidden_effect = { - send_interface_toast = { - type = event_toast_effect_neutral - title = disinherit_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - scope:recipient = { - show_as_tooltip = { - disinherit_effect = { DISINHERITOR = scope:actor } - } - } - } - } - } - - scope:recipient = { - disinherit_effect = { DISINHERITOR = scope:actor } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = minor_unity_loss - DESC = clan_unity_disinheritance.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - prestige = { - value = { - add = medium_prestige_value - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = yes - } - } - add = massive_prestige_value - } - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = no - any_heir_title = { - exists = holder - } - } - } - add = medium_prestige_value - } - } - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - NOT = { - has_trait = forgiving - } - is_dynast = yes - } - - ai_targets = { - ai_recipients = dynasty - max = 20 - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 48 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - - modifier = { - add = 100 - scope:recipient = { - is_primary_heir_of = scope:actor - OR = { - has_trait = inbred - has_trait = intellect_bad_3 - has_trait = incapable - } - } - } - - modifier = { - add = 5 - ai_vengefulness >= medium_positive_ai_value - scope:recipient = { - is_heir_of = scope:actor - } - OR = { - AND = { - scope:recipient = { - has_trait = incestuous - } - NOT = { is_incestuous_trigger = yes } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = kinslayer - } - NOT = { has_trait = kinslayer } - } - AND = { - scope:recipient = { - has_trait = adulterer - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = fornicator - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = deviant - } - NOT = { - is_deviant_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = witch - } - NOT = { - is_witch_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = sodomite - } - NOR = { - has_trait = sodomite - any_secret = { - type = secret_homosexual - } - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = cannibal - } - NOT = { - is_cannibal_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - } - } - - # Unity modifiers - evaluate_action_decreasing_house_unity = { - VALUE = 100 - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - - modifier = { - factor = 0 - scope:recipient = { - is_ai = no - } - } - } -} - -restore_inheritance_interaction = { - icon = icon_dynasty - category = interaction_category_friendly - desc = restore_inheritance_interaction_desc - - interface_priority = 60 - - is_shown = { - scope:actor = { - is_dynast = yes - dynasty = scope:recipient.dynasty - - } - scope:recipient = { - has_trait = disinherited - } - } - - is_valid_showing_failures_only = { - scope:actor.dynasty ={ - dynasty_prestige >= miniscule_dynasty_prestige_value - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0030 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - vengeful = minor_stress_impact_gain - stubborn = minor_stress_impact_gain - } - hidden_effect = { - send_interface_message = { - type = event_dynasty_neutral - title = restore_inheritance_interaction_notification - right_icon = scope:recipient - show_as_tooltip = { - scope:recipient = { - restore_inheritance_effect = yes - } - } - } - } - } - - scope:recipient = { - restore_inheritance_effect = yes - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = minor_unity_gain - DESC = clan_unity_re_inheritance.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - renown = { - value = scope:actor.dynasty.medium_dynasty_prestige_value - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - is_dynast = yes - } - - ai_targets = { - ai_recipients = dynasty - max = 20 - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 48 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - - modifier = { - add = 5 - ai_vengefulness <= medium_negative_ai_value - } - - modifier = { - add = 100 - scope:recipient = scope:actor - } - - # Unity modifiers - evaluate_action_increasing_house_unity = { - VALUE = 100 - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - } -} - -denounce_interaction = { - icon = icon_dynasty - category = interaction_category_hostile - interface_priority = 59 #after disinherit - - desc = denounce_interaction_desc - - is_shown = { - scope:recipient != scope:actor - - scope:actor = { - is_dynast = yes - dynasty = scope:recipient.dynasty - } - scope:recipient = { - NOT = { - has_trait = denounced - } - } - } - - is_valid_showing_failures_only = { - scope:actor.dynasty = { - dynasty_prestige >= minor_dynasty_prestige_value - } - scope:recipient = { NOT = { has_strong_hook = scope:actor } } - custom_tooltip = { - text = cannot_take_overt_hostile_actions_against_diarch.tt - NOT = { scope:recipient ?= scope:actor.diarch } - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0040 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - forgiving = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - - hidden_effect = { - send_interface_toast = { - type = event_toast_effect_neutral - title = denounce_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - scope:recipient = { - show_as_tooltip = { - denounce_effect = { ACTOR = scope:actor RECIPIENT = scope:recipient } - } - } - } - } - } - - scope:recipient = { - denounce_effect = { ACTOR = scope:actor RECIPIENT = scope:recipient } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = minor_unity_loss - DESC = clan_unity_denouncement.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - renown = { - value = { - add = scope:actor.dynasty.minor_dynasty_prestige_value - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = yes - } - } - add = scope:actor.dynasty.medium_dynasty_prestige_value - } - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = no - any_heir_title = { - exists = holder - } - } - } - add = scope:actor.dynasty.minor_dynasty_prestige_value - } - } - } - prestige = { - value = { - add = medium_prestige_value - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = yes - } - } - add = major_prestige_value - } - if = { - limit = { - scope:recipient = { - is_landed_or_landless_administrative = no - any_heir_title = { - exists = holder - } - } - } - add = medium_prestige_value - } - } - } - } - - auto_accept = yes - - ai_potential = { - is_adult = yes - NOT = { - has_trait = forgiving - } - is_dynast = yes - } - - ai_targets = { - ai_recipients = dynasty - max = 20 - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 48 - kingdom = 12 - empire = 12 - hegemony = 12 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - - modifier = { - add = 5 - ai_vengefulness >= medium_positive_ai_value - OR = { - AND = { - scope:recipient = { - has_trait = incestuous - } - NOT = { is_incestuous_trigger = yes } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = kinslayer - } - NOT = { has_trait = kinslayer } - } - AND = { - scope:recipient = { - has_trait = adulterer - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = fornicator - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = deviant - } - NOT = { - is_deviant_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = witch - } - NOT = { - is_witch_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = sodomite - } - NOR = { - has_trait = sodomite - any_secret = { - type = secret_homosexual - } - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = cannibal - } - NOT = { - is_cannibal_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - } - } - - # Unity modifiers - evaluate_action_decreasing_house_unity = { - VALUE = 100 - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - } -} - -forgive_interaction = { - icon = icon_dynasty - category = interaction_category_friendly - interface_priority = 60 - - desc = forgive_interaction_desc - - is_shown = { - scope:recipient != scope:actor - - scope:actor = { - is_dynast = yes - dynasty = scope:recipient.dynasty - } - scope:recipient = { - has_trait = denounced - } - } - - is_valid_showing_failures_only = { - scope:actor.dynasty = { - dynasty_prestige >= miniscule_dynasty_prestige_value - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0050 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - vengeful = minor_stress_impact_gain - stubborn = minor_stress_impact_gain - } - hidden_effect = { - send_interface_message = { - type = event_generic_neutral - title = forgive_interaction_notification - right_icon = scope:recipient - show_as_tooltip = { - scope:recipient = { - forgive_effect = yes - } - } - } - } - } - - scope:recipient = { - forgive_effect = yes - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = minor_unity_gain - DESC = clan_unity_forgiveness.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - renown = { - value = scope:actor.dynasty.miniscule_dynasty_prestige_value - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - is_dynast = yes - } - - ai_targets = { - ai_recipients = dynasty - max = 20 - } - - ai_frequency_by_tier = { - barony = 0 - county = 120 - duchy = 60 - kingdom = 24 - empire = 24 - hegemony = 24 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - - modifier = { - add = 5 - ai_vengefulness <= medium_negative_ai_value - } - - modifier = { - add = 100 - scope:recipient = scope:actor - } - - # Unity modifiers - evaluate_action_increasing_house_unity = { - VALUE = 100 - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - } -} - -call_dynasty_member_to_war_interaction = { - icon = icon_dynasty - category = interaction_category_diplomacy - interface_priority = 60 - - desc = call_dynasty_member_to_war_interaction_desc - - interface = call_ally - special_interaction = call_ally_interaction - popup_on_receive = yes - pause_on_receive = yes - - greeting = positive - notification_text = CALL_DYNASTY_MEMBER_NOTIFICATION - - is_shown = { - scope:recipient != scope:actor - - scope:actor = { - is_dynast = yes - religion = scope:recipient.religion - dynasty = scope:recipient.dynasty - house != scope:recipient.house # Use the House Head version instead - any_character_war = { - is_war_leader = scope:actor - } - } - scope:recipient = { - is_ruler = yes - } - - scope:recipient = { - NOT = { - target_is_liege_or_above = scope:actor - } - } - } - - has_valid_target = { - exists = scope:target - } - - has_valid_target_showing_failures_only = { - scope:target = { - is_war_leader = scope:actor - } - joiner_not_already_in_another_war_with_any_target_war_participants_trigger = { - WARRIOR = scope:actor - JOINER = scope:recipient - } - } - - is_valid_showing_failures_only = { - scope:actor.dynasty = { dynasty_prestige >= medium_dynasty_prestige_value } - scope:recipient = { - NOT = { government_has_flag = government_is_mercenary } - NOT = { government_has_flag = government_is_holy_order } - } - custom_description = { - text = "is_already_in_all_wars" - scope:actor = { - any_character_war = { - NOR = { - is_participant = scope:recipient - was_called = scope:recipient - } - OR = { - primary_attacker = scope:actor - primary_defender = scope:actor - } - } - } - } - } - - can_be_picked = { - can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:actor JOINER = scope:recipient } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = call_ally.0001 - } - } - - on_accept = { - call_dynasty_member_to_war_interaction_effect = yes - - save_scope_value_as = { - name = call_dynasty_member_to_war_interaction - value = yes - } - - if = { - limit = { - exists = scope:target - } - scope:actor = { - trigger_event = call_ally.0100 - } - } - } - - on_decline = { - #The war could theoretically end on the day the decline is sent - if = { - limit = { - exists = scope:target - } - scope:target = { - if = { - limit = { - is_attacker = scope:actor - } - scope:actor = { - add_opinion = { - modifier = rejected_call_to_offensive_war - target = scope:recipient - } - } - } - else = { - scope:actor = { - add_opinion = { - modifier = rejected_call_to_defensive_war - target = scope:recipient - } - } - } - hidden_effect = { - if = { - limit = { - NOT = { was_called = scope:recipient } - } - set_called_to = scope:recipient - } - } - } - scope:actor.dynasty = { - add_dynasty_prestige = medium_dynasty_prestige_loss - } - } - - if = { - limit = { - exists = scope:target - } - scope:actor = { - trigger_event = call_ally.0101 - } - } - } - - ai_accept = { - base = 20 - - modifier = { # Refuse call to conflicts of little benefit - add = -1000 - desc = WONT_FIGHT_MEANINGLESS_REASON - trigger_if = { - limit = { exists = scope:target } - scope:target = { using_cb = fp2_border_raid } - scope:recipient = { # Unless they like going on raids - NOR = { - has_trait = viking - has_trait = reaver - } - } - } - trigger_else = { always = no } - } - - modifier = { # Refuse call against Heir - add = -1000 - exists = scope:recipient.player_heir - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - scope:target.casus_belli.primary_attacker = scope:recipient.player_heir - } - trigger_else = { - scope:target.casus_belli.primary_defender = scope:recipient.player_heir - } - desc = WONT_FIGHT_HEIR_REASON - } - - modifier = { # Refuse call against Spouse - add = -1000 - scope:recipient = { - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - any_spouse = { - this = scope:target.casus_belli.primary_attacker - } - } - trigger_else = { - any_spouse = { - this = scope:target.casus_belli.primary_defender - } - } - - } - desc = WONT_FIGHT_SPOUSE_REASON - } - - modifier = { # Reluctant when already at war - add = -50 - scope:recipient = { - is_at_war = yes - } - desc = ALREADY_AT_WAR - } - - opinion_modifier = { # Opinion Factor - who = scope:recipient - opinion_target = scope:actor - multiplier = 1.0 - desc = AI_OPINION_REASON - } - - # Honor factor - ai_value_modifier = { - ai_honor = 1 - min = 0 - } - - modifier = { # Tends to join defensive wars - add = 50 - scope:target.casus_belli.primary_defender = scope:actor - desc = DEFENSIVE_WAR_REASON - } - - compare_modifier = { # Likes fighting infidels - trigger = { - scope:recipient.faith = scope:actor.faith - OR = { - AND = { - scope:target.casus_belli.primary_attacker = { - this = scope:actor - faith = { - faith_hostility_level = { - target = scope:target.casus_belli.primary_defender.faith - value >= religious_cb_enabled_hostility_level - } - } - } - } - AND = { - scope:target.casus_belli.primary_defender = { - this = scope:actor - faith = { - faith_hostility_level = { - target = scope:target.casus_belli.primary_defender.faith - value >= religious_cb_enabled_hostility_level - } - } - } - } - } - } - target = scope:recipient - value = ai_zeal - desc = "ZEAL_AGAINST_INFIDELS" - min = 0 - multiplier = 0.5 - } - - modifier = { # Reluctant to attack another ally - add = -50 - scope:target.casus_belli.primary_attacker = scope:actor - scope:recipient = { - is_allied_to = scope:target.casus_belli.primary_defender - } - desc = ATTACK_ON_ALLY_REASON - } - - modifier = { # Reluctant to defend against another ally - add = -25 - scope:target.casus_belli.primary_defender = scope:actor - scope:recipient = { - is_allied_to = scope:target.casus_belli.primary_attacker - } - desc = WAR_WITH_ALLY_REASON - } - - modifier = { # Reluctant to join wars against religious brethren. - add = -50 - scope:recipient.faith != scope:actor.faith - scope:target.casus_belli.primary_attacker = scope:actor - scope:target.casus_belli.primary_defender.faith = scope:recipient.faith - scope:target.casus_belli.war = { - OR = { - using_cb = minor_religious_war - using_cb = religious_war - using_cb = major_religious_war - using_cb = undirected_great_holy_war - using_cb = directed_great_holy_war - } - } - desc = WONT_ATTACK_RELIGIOUS_BRETHREN_REASON - } - - fp3_struggle_resist_allied_wars_modifier = yes - } - - auto_accept = { - custom_description = { - text = "spending_hook" - subject = scope:actor - object = scope:recipient - scope:hook = yes - } - } - - send_option = { - is_valid = { - scope:actor = { - has_usable_hook = scope:recipient - } - } - flag = hook - localization = SCHEME_HOOK - } - should_use_extra_icon = { - scope:actor = { has_usable_hook = scope:recipient } - } - extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" - - send_options_exclusive = no -} - -dynast_claim_title_interaction = { - icon = icon_dynasty - category = interaction_category_diplomacy - interface_priority = 34 #right after HoF Request Claim - desc = dynast_claim_title_interaction_desc - target_type = title - target_filter = recipient_domain_titles - ignores_pending_interaction_block = yes - cost = { renown = scope:actor.dynasty.major_dynasty_prestige_value } - is_shown = { - scope:recipient != scope:actor - - scope:actor = { - is_dynast = yes - religion = scope:recipient.religion - dynasty = scope:recipient.dynasty - } - - scope:recipient = { - is_playable_character = yes - } - } - - can_be_picked = { - custom_description = { - scope:target = { NOT = { any_claimant = { this = scope:actor } } } - text = "already_have_a_claim_on_this_title" - } - } - - is_valid_showing_failures_only = { - custom_description = { - scope:recipient = { - any_held_title = { - title_tier >= county - NOT = { any_claimant = { this = scope:actor } } - } - } - - object = scope:recipient - text = "already_have_claims_on_all_titles" - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0060 - } - } - - on_accept = { - dynast_claim_title_effect = yes - scope:actor = { - hidden_effect = { - send_interface_toast = { - type = event_toast_effect_neutral - title = dynast_claim_title_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - show_as_tooltip = { - dynast_claim_title_effect = yes - } - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = medium_unity_loss - DESC = clan_unity_title_claim.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - auto_accept = yes -} - -dynast_end_dynasty_wars_interaction = { - icon = icon_dynasty - category = interaction_category_diplomacy - desc = dynast_end_dynasty_wars_interaction_desc - - is_shown = { - scope:actor != scope:recipient - - scope:actor = { - is_dynast = yes - religion = scope:recipient.religion - dynasty = scope:recipient.dynasty - } - - scope:recipient = { - is_playable_character = yes - any_character_war = { - primary_defender != scope:actor - primary_attacker = scope:recipient - primary_defender.dynasty = scope:recipient.dynasty - } - } - } - - is_valid_showing_failures_only = { - scope:actor.dynasty = { - dynasty_prestige >= medium_dynasty_prestige_value - } - scope:actor = { - NOT = { - is_at_war_with = scope:recipient - } - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0070 - } - } - - on_accept = { - - scope:actor = { - hidden_effect = { - send_interface_message = { - type = event_dynasty_neutral - title = dynast_end_dynasty_wars_interaction_notification - right_icon = scope:recipient - show_as_tooltip = { - dynast_end_dynasty_wars_effect = yes - } - } - } - } - dynast_end_dynasty_wars_effect = yes - } - - auto_accept = yes -} - -dynast_legitimize_bastard_interaction = { - icon = icon_dynasty - category = interaction_category_diplomacy - desc = dynast_legitimize_bastard_interaction_desc - - is_shown = { - scope:actor = { - this = scope:recipient.dynasty.dynast - religion = scope:recipient.religion - house != scope:recipient.house - faith = { has_doctrine_parameter = bastards_legitimize } - } - scope:recipient = { - has_trait = bastard - this != scope:actor - faith = { has_doctrine_parameter = bastards_legitimize } - } - } - - is_valid = { - scope:actor.dynasty = { - dynasty_prestige >= medium_dynasty_prestige_value - } - } - - auto_accept = yes - - cost = { - renown = scope:actor.dynasty.medium_dynasty_prestige_value - } - - on_accept = { - scope:actor = { - stress_impact = { - arrogant = minor_stress_impact_gain - } - send_interface_message = { - type = event_dynasty_neutral - title = dynast_legitimize_bastard_interaction_notification - right_icon = scope:recipient - show_as_tooltip = { - scope:recipient = { - add_trait_force_tooltip = legitimized_bastard - add_opinion = { - target = scope:actor - modifier = legitimized_me_opinion - } - } - } - } - } - - hidden_effect = { - scope:recipient = { - trigger_event = bastard_interaction.0009 - every_parent = { - limit = { - is_playable_character = yes - this != scope:actor - } - hidden_effect = { #Nudge towards friendship - if = { - limit = { - NOR = { - has_relation_friend = scope:actor - has_relation_potential_friend = scope:actor - } - } - set_relation_potential_friend = scope:actor - } - } - trigger_event = bastard_interaction.0010 - } - every_sibling = { - limit = { - is_playable_character = yes - this != scope:actor - } - trigger_event = bastard_interaction.0010 - } - } - - scope:actor = { - if = { - limit = { - has_character_modifier = oath_of_children - } - hidden_effect = { - remove_character_modifier = oath_of_children - add_character_modifier = oath_of_children - } - } - } - } - } -} - -#send_to_varangian_guard_interaction = { -# category = interaction_category_friendly -# interface_priority = 60 -# icon = send_to_varangian_guard_interaction -# -# desc = send_to_varangian_guard_interaction_desc -# use_diplomatic_range = no -# common_interaction = yes -# -# is_shown = { -# scope:recipient != scope:actor -# -# scope:actor = { -# is_dynast = yes -# dynasty = scope:recipient.dynasty -# -# dynasty = { -# has_dynasty_perk = fp1_adventure_legacy_1 -# } -# -# exists = title:e_byzantium.holder -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# this = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# } -# } -# } -# -# cooldown = { years = 2 } -# -# is_valid_showing_failures_only = { -# scope:actor = { -# is_at_war = no -# NOT = { -# has_relation_rival = title:e_byzantium.holder -# } -# } -# scope:recipient = { -# is_ruler = no -# is_adult = yes -# is_married = no -# NOR = { -# has_trait = varangian -# has_trait = order_member -# } -# } -# trigger_if = { -# limit = { -# scope:recipient = { -# is_adult = yes -# NOT = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# } -# } -# } -# custom_description = { -# scope:recipient = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# } -# text = "not_allowed_in_varangian_guard" -# } -# } -# trigger_if = { -# limit = { -# scope:recipient = { -# NOR = { -# is_child_of = scope:actor -# is_grandchild_of = scope:actor -# is_great_grandchild_of = scope:actor -# } -# } -# } -# custom_description = { -# scope:recipient.top_liege = scope:actor.top_liege -# text = "same_realm_as" -# } -# } -# } -# -# on_accept = { -# title:e_byzantium.holder = { -# save_scope_as = emperor -# if = { -# limit = { capital_county = title:c_byzantion } -# set_local_variable = { -# name = to_miklagard -# value = yes -# } -# } -# } -# -# scope:actor = { -# stress_impact = { -# paranoid = minor_stress_impact_gain -# } -# hidden_effect = { -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = send_to_varangian_guard_interaction_toast -# -# left_icon = scope:recipient -# right_icon = scope:emperor -# -# custom_tooltip = send_to_varangian_guard_interaction_toast_desc -# } -# } -# } -# -# scope:recipient = { -# save_scope_as = varangian_candidate -# -# } -# -# show_as_tooltip = { -# scope:varangian_candidate = { -# visit_court_of = scope:emperor -# add_trait = varangian -# custom_description_no_bullet = { -# text = send_to_varangian_guard_interaction_effect -# } -# } -# } -# hidden_effect = { -# scope:emperor = { -# trigger_event = varangian.0003 -# } -# } -# -# # If we're a clan this interaction affects unity -# add_clan_unity_interaction_effect = { -# CHARACTER = scope:actor -# TARGET = scope:recipient -# VALUE = miniscule_unity_loss -# DESC = clan_unity_vaering.desc -# REVERSE_NON_HOUSE_TARGET = no -# } -# } -# -# cost = { -# prestige = { -# value = 350 -# } -# } -# -# auto_accept = yes -# -# ai_potential = { -# is_at_war = no -# is_dynast = yes -# -# dynasty = { -# has_dynasty_perk = fp1_adventure_legacy_1 -# } -# -# exists = title:e_byzantium.holder -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# this = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# } -# } -# -# ai_targets = { -# ai_recipients = children -# max = 10 -# } -# -# ai_frequency_by_tier = { -# barony = 0 -# county = 120 -# duchy = 60 -# kingdom = 24 -# empire = 24 -# hegemony = 24 -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file diff --git a/common/character_interactions/00_faction_interactions.txt b/common/character_interactions/00_faction_interactions.txt deleted file mode 100644 index 0d0ff65d..00000000 --- a/common/character_interactions/00_faction_interactions.txt +++ /dev/null @@ -1,169 +0,0 @@ -#Interactions relating to factions - -force_join_faction_interaction = { - category = interaction_category_vassal - special_interaction = force_join_faction - desc = force_join_faction_interaction_desc - icon = scroll_scales - - force_notification = yes - greeting = positive - notification_text = FORCE_JOIN_FACTION_NOTIFICATION - - is_shown = { - scope:actor = { - is_a_faction_member = yes - liege = scope:recipient.liege - NOR = { - joined_faction = scope:recipient.joined_faction - scope:recipient = scope:actor.liege - } - } - } - - is_valid_showing_failures_only = { - scope:actor = { - trigger_if = { - limit = { government_allows = administrative } - custom_tooltip = { - text = force_join_faction_admin_requirement_desc - OR = { - has_strong_usable_hook = scope:recipient - AND = { - influence >= { value = scope:actor.monumental_influence_value multiply = 2 } - scope:recipient ?= { - NOT = { opinion = { target = scope:actor value <= -50 } } - NOT = { opinion = { target = scope:recipient.liege value >= 50 } } - } - } - } - } - } - trigger_else = { - has_strong_usable_hook = scope:recipient # Make sure to update the NFaction::POTENTIAL_FORCE_JOIN_HOOK_TYPE define if you change the type of hook used here - } - NOT = { is_at_war_with = scope:recipient } - } - scope:recipient = { - trigger_if = { - limit = { is_a_faction_member = yes } - joined_faction.faction_leader ?= { is_ai = yes } - } - is_forced_into_faction = no - can_join_faction = scope:actor.joined_faction - } - custom_description = { - text = barons_joining_independence_factions - NAND = { - scope:actor.joined_faction = { faction_is_type = independence_faction } - scope:recipient.highest_held_title_tier = tier_barony - } - } - } - - on_accept = { - scope:actor = { - send_interface_message = { - type = event_faction_neutral - title = force_join_faction_interaction_notification - right_icon = scope:recipient - if = { - limit = { scope:hook = yes } - use_hook = scope:recipient - } - else_if = { - limit = { scope:influence = yes } - change_influence = { - value = monumental_influence_value - multiply = -2 - } - } - scope:recipient = { - join_faction_forced = { - faction = scope:actor.joined_faction - forced_by = scope:actor - years = 10 - } - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = medium_unity_loss - DESC = clan_unity_forced_faction_joinage.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - auto_accept = yes - - #Use hook - send_option = { - is_valid = { - exists = scope:recipient - scope:actor ?= { has_strong_usable_hook = scope:recipient } - } - flag = hook - localization = GENERIC_SPEND_A_HOOK - } - - #Spend influence - send_option = { - is_shown = { - scope:actor = { government_allows = administrative } - scope:actor.top_liege ?= { government_allows = administrative } - } - is_valid = { # Convincing someone with influence is not available if they hate you or love the liege - scope:actor ?= { influence >= { value = scope:actor.monumental_influence_value multiply = 2 } } - scope:recipient ?= { - NOT = { opinion = { target = scope:actor value <= -50 } } - NOT = { opinion = { target = scope:recipient.liege value >= 50 } } - } - } - flag = influence - localization = SPEND_INFLUENCE - } - - send_options_exclusive = yes - - # AI - ai_targets = { - ai_recipients = peer_vassals - } - ai_frequency_by_tier = { - barony = 0 - county = 24 - duchy = 12 - kingdom = 12 - empire = 12 - hegemony = 0 - } - - ai_potential = { - top_liege != this - is_a_faction_member = yes - - # Only force others to join a faction if you joined by your own free will - is_forced_into_faction = no - } - - ai_will_do = { - base = 100 - - # Don't steal players' factions' members - modifier = { - factor = 0 - scope:recipient = { - is_a_faction_member = yes - joined_faction = { - faction_leader = { - is_ai = no - } - } - } - } - } -} diff --git a/common/character_interactions/00_house_head_interactions.txt b/common/character_interactions/00_house_head_interactions.txt deleted file mode 100644 index 564f5846..00000000 --- a/common/character_interactions/00_house_head_interactions.txt +++ /dev/null @@ -1,1201 +0,0 @@ -#Interactions relating to the head of the house - -call_house_member_to_war_interaction = { - category = interaction_category_diplomacy - icon = alliance - - - interface_priority = 60 - - desc = call_house_member_to_war_interaction_desc - - interface = call_ally - special_interaction = call_ally_interaction - popup_on_receive = yes - pause_on_receive = yes - - notification_text = CALL_HOUSE_MEMBER_NOTIFICATION - - is_shown = { - scope:recipient != scope:actor - - scope:actor = { - OR = { - is_house_head = yes - AND = { - exists = dynasty - # DLC checking - has_fp2_dlc_trigger = yes - # Standard check - dynasty = { has_dynasty_perk = fp2_coterie_legacy_3 } - } - } - religion = scope:recipient.religion - house = scope:recipient.house - any_character_war = { - is_war_leader = scope:actor - } - } - - scope:recipient = { - is_playable_character = yes - } - - scope:recipient = { - NOT = { - target_is_liege_or_above = scope:actor - } - } - } - - has_valid_target = { - exists = scope:target - } - - has_valid_target_showing_failures_only = { - scope:target = { - is_war_leader = scope:actor - } - joiner_not_already_in_another_war_with_any_target_war_participants_trigger = { - WARRIOR = scope:actor - JOINER = scope:recipient - } - } - - is_valid_showing_failures_only = { - custom_description = { - text = "is_already_in_all_wars" - scope:actor = { - any_character_war = { - NOR = { - is_participant = scope:recipient - was_called = scope:recipient - } - OR = { - primary_attacker = scope:actor - primary_defender = scope:actor - } - } - } - } - } - - can_be_picked = { - can_join_war_liege_vassal_check_trigger = { WARRIOR = scope:actor JOINER = scope:recipient } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = call_ally.0001 - } - } - - on_accept = { - call_house_member_to_war_interaction_effect = yes - - save_scope_value_as = { - name = call_house_member_to_war_interaction - value = yes - } - - if = { - limit = { - exists = scope:target - } - - scope:actor = { - trigger_event = call_ally.0100 - } - } - - scope:actor = { - if = { - limit = { NOT = { is_house_head = yes } } - add_prestige = medium_prestige_loss - } - } - - # If the Dynasty has the Unity Legacy perk, the recipient is rewarded with some Prestige - if = { - limit = { scope:actor.dynasty = { has_dynasty_perk = fp2_coterie_legacy_3 } } - scope:recipient = { add_prestige = medium_prestige_gain } - } - } - - on_decline = { - #The war could theoretically end on the day the decline is sent - if = { - limit = { - exists = scope:target - } - - scope:target = { - if = { - limit = { - is_attacker = scope:actor - } - scope:actor = { - add_opinion = { - modifier = rejected_call_to_offensive_war - target = scope:recipient - } - } - } - else = { - scope:actor = { - add_opinion = { - modifier = rejected_call_to_defensive_war - target = scope:recipient - } - } - } - scope:actor = { - trigger_event = call_ally.0101 - } - } - - # If we're a clan this interaction affects unity - refuse_call_to_arms_add_clan_unity_effect = yes - } - } - - ai_accept = { - base = 20 - - modifier = { # Refuse call to conflicts of little benefit - add = -1000 - desc = WONT_FIGHT_MEANINGLESS_REASON - trigger_if = { - limit = { exists = scope:target } - scope:target = { using_cb = fp2_border_raid } - scope:recipient = { # Unless they like going on raids - NOR = { - has_trait = viking - has_trait = reaver - } - } - } - trigger_else = { always = no } - } - - modifier = { # Refuse call against Heir - add = -1000 - exists = scope:recipient.player_heir - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - scope:target.casus_belli.primary_attacker = scope:recipient.player_heir - } - trigger_else = { - scope:target.casus_belli.primary_defender = scope:recipient.player_heir - } - desc = WONT_FIGHT_HEIR_REASON - } - - modifier = { # Refuse call against Spouse - add = -1000 - scope:recipient = { - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - any_spouse = { - this = scope:target.casus_belli.primary_attacker - } - } - trigger_else = { - any_spouse = { - this = scope:target.casus_belli.primary_defender - } - } - - } - desc = WONT_FIGHT_SPOUSE_REASON - } - - opinion_modifier = { # Opinion Factor - who = scope:recipient - opinion_target = scope:actor - multiplier = 1.0 - desc = AI_OPINION_REASON - } - - # Honor factor - ai_value_modifier = { - ai_honor = 1 - min = 0 - } - - modifier = { # Tends to join defensive wars - add = 50 - scope:target.casus_belli.primary_defender = scope:actor - desc = DEFENSIVE_WAR_REASON - } - - compare_modifier = { # Likes fighting infidels - trigger = { - scope:recipient.faith = scope:actor.faith - OR = { - AND = { - scope:target.casus_belli.primary_attacker = { - this = scope:actor - faith = { - faith_hostility_level = { - target = scope:target.casus_belli.primary_defender.faith - value >= religious_cb_enabled_hostility_level - } - } - } - } - AND = { - scope:target.casus_belli.primary_defender = { - this = scope:actor - faith = { - faith_hostility_level = { - target = scope:target.casus_belli.primary_defender.faith - value >= religious_cb_enabled_hostility_level - } - } - } - } - } - } - target = scope:recipient - value = ai_zeal - desc = "ZEAL_AGAINST_INFIDELS" - min = 0 - multiplier = 0.5 - } - - modifier = { # Reluctant to attack another ally - add = -50 - scope:target.casus_belli.primary_attacker = scope:actor - scope:recipient = { - is_allied_to = scope:target.casus_belli.primary_defender - } - desc = ATTACK_ON_ALLY_REASON - } - - modifier = { # Reluctant to defend against another ally - add = -25 - scope:target.casus_belli.primary_defender = scope:actor - scope:recipient = { - is_allied_to = scope:target.casus_belli.primary_attacker - } - desc = WAR_WITH_ALLY_REASON - } - - modifier = { # Reluctant to join wars against religious brethren. - add = -50 - scope:recipient.faith != scope:actor.faith - scope:target.casus_belli.primary_attacker = scope:actor - scope:target.casus_belli.primary_defender.faith = scope:recipient.faith - scope:target.casus_belli.war = { - OR = { - using_cb = minor_religious_war - using_cb = religious_war - using_cb = major_religious_war - using_cb = undirected_great_holy_war - using_cb = directed_great_holy_war - } - } - desc = WONT_ATTACK_RELIGIOUS_BRETHREN_REASON - } - - modifier = { # Happy to gain Prestige thanks to the Unity perk - add = 50 - dynasty = { has_dynasty_perk = fp2_coterie_legacy_3 } - desc = "UNITY_PERK_BONUS" - } - - fp3_struggle_resist_allied_wars_modifier = yes - } - - # Score above 0 means the AI will call this ally. Note that DESIRED_WAR_SIDE_STRENGTH still applies and can prevent calling the ally - ai_will_do = { - base = 100 - - modifier = { # If the player is at war, do not bother them with offensive calls - scope:target.casus_belli.primary_attacker = scope:actor - scope:recipient = { - is_ai = no - any_character_war = { - primary_defender = scope:recipient - } - } - factor = 0 - } - - modifier = { # Do not call the player if they are in debt - scope:recipient = { - is_ai = no - gold <= -1 - } - factor = 0 - } - - modifier = { # Don't call players in against their heirs (they wouldn't accept the reverse situation... don't be a hypocrite) - exists = scope:recipient.player_heir - scope:recipient = { - is_ai = no - } - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - scope:target.casus_belli.primary_attacker = scope:recipient.player_heir - } - trigger_else = { - scope:target.casus_belli.primary_defender = scope:recipient.player_heir - } - factor = 0 - } - - modifier = { # Same with spouses - scope:recipient = { - is_ai = no - } - trigger_if = { - limit = { scope:target.casus_belli.primary_defender = scope:actor } - any_spouse = { - this = scope:target.casus_belli.primary_attacker - } - } - trigger_else = { - any_spouse = { - this = scope:target.casus_belli.primary_defender - } - } - factor = 0 - } - - modifier = { # Don't call brand-new allies into old wars, at least until some time has elapsed. - has_variable = delay_calling_recent_ally - var:delay_calling_recent_ally = scope:recipient - scope:target = { - war_days >= 30 - } - factor = 0 - - } - - modifier = { # If the recipient is allied to both the attacker and the defender, the attacker shouldn't call - scope:target.casus_belli.primary_attacker = scope:actor - scope:target.casus_belli.primary_defender = { - is_allied_to = scope:recipient - } - factor = 0 - } - - #You're a Mandala Suzerain; you don't get off the hook that easily - modifier = { - scope:actor = { subject_contract_has_flag = tributary_contract_suzerain_guarantee_override } - scope:recipient = scope:actor.suzerain - add = 500 - } - } - - auto_accept = { - custom_description = { - text = "spending_hook" - subject = scope:actor - object = scope:recipient - scope:hook = yes - } - } - - send_option = { - is_valid = { - scope:actor = { - has_usable_hook = scope:recipient - } - } - flag = hook - localization = SCHEME_HOOK - } - should_use_extra_icon = { - scope:actor = { has_usable_hook = scope:recipient } - } - extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" - - send_options_exclusive = no -} - - -#Head legitimizes child or actor requests from head to legitimize -legitimize_bastard_interaction = { - category = interaction_category_diplomacy - special_interaction = legitimize_bastard - icon = legitimized_bastard - - greeting = positive - notification_text = ASK_TO_legitimize_bastard_interaction - - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:actor.house.house_head = scope:actor } - desc = legitimize_bastard_interaction_desc_house_head - } - desc = legitimize_bastard_interaction_desc_not_house_head - } - } - - is_shown = { - scope:actor.house.house_head.faith = { - has_doctrine_parameter = bastards_legitimize - } - scope:actor.faith = { - has_doctrine_parameter = bastards_legitimize - } - scope:secondary_recipient = { - faith = { - has_doctrine_parameter = bastards_legitimize - } - this != scope:actor - has_trait = bastard - OR = { - father = scope:actor - mother = scope:actor - scope:actor.house.house_head = scope:actor - } - OR = { - house = scope:actor.house - AND = { - OR = { - father.house = scope:actor.house - mother.house = scope:actor.house - } - has_dynasty = no - } - } - } - scope:actor = { - is_lowborn = no - is_concubine = no - } - } - - is_valid_showing_failures_only = { - } - - cost = { - prestige = { - value = bastard_legitimization_prestige_cost - } - } - - ai_accept = { - base = -50 - - modifier = { - trigger = { - scope:actor != scope:actor.house.house_head - } - add = { - value = scope:actor.prestige_level - multiply = 20 - } - desc = PRESTIGOUS_IN_OUR_HOUSE - } - - modifier = { - trigger = { - always = scope:hook - } - add = 100 - desc = SCHEME_WEAK_HOOK_USED - } - - opinion_modifier = { - trigger = { - scope:actor != scope:actor.house.house_head - } - who = scope:recipient - opinion_target = scope:actor - multiplier = 1 - } - - opinion_modifier = { - trigger = { - scope:actor != scope:actor.house.house_head - } - who = scope:recipient - opinion_target = scope:secondary_recipient - multiplier = 0.25 - } - - modifier = { - add = intimidated_reason_value - scope:recipient = { - target_is_liege_or_above = scope:actor - has_dread_level_towards = { - target = scope:actor - level = 1 - } - } - desc = INTIMIDATED_REASON - } - modifier = { - add = cowed_reason_value - scope:recipient = { - target_is_liege_or_above = scope:actor - has_dread_level_towards = { - target = scope:actor - level = 2 - } - } - desc = COWED_REASON - } - - modifier = { - add = intimidated_external_reason_value - scope:recipient = { - NOT = { target_is_liege_or_above = scope:actor } - has_dread_level_towards = { - target = scope:actor - level = 1 - } - } - desc = INTIMIDATED_REASON - } - modifier = { - add = cowed_external_reason_value - scope:recipient = { - NOT = { target_is_liege_or_above = scope:actor } - has_dread_level_towards = { - target = scope:actor - level = 2 - } - } - desc = COWED_REASON - } - - # Unity modifiers - evaluate_action_decreasing_house_unity = { - VALUE = 100 - } - } - - auto_accept = { - OR = { - scope:actor = scope:actor.house.house_head - AND = { - always = scope:hook - scope:actor = { has_strong_hook = scope:recipient } - } - } - } - - on_accept = { - scope:actor = { - stress_impact = { - arrogant = minor_stress_impact_gain - } - - legitimize_bastard_interaction_opinions_effect = { - BASTARD = scope:secondary_recipient - HOUSE_HEAD = scope:actor.house.house_head - LEGITIMIZER = scope:actor - } - - if = { - limit = { always = scope:hook } - scope:actor = { - use_hook = scope:recipient - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = miniscule_unity_loss - DESC = clan_unity_bastardry.desc - REVERSE_NON_HOUSE_TARGET = no - } - - hidden_effect = { - scope:actor = { - if = { - limit = { - has_character_modifier = oath_of_children - } - hidden_effect = { - remove_character_modifier = oath_of_children - add_character_modifier = oath_of_children - } - } - } - } - } - - on_decline = { - scope:actor = { - send_interface_toast = { - type = event_toast_effect_bad - title = legitimize_bastard_interaction_decline_notification - - left_icon = scope:actor.house.house_head - right_icon = scope:secondary_recipient - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = miniscule_unity_gain - DESC = clan_unity_bastardry_refusal.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - send_option = { - is_shown = { - scope:actor != scope:recipient - } - is_valid = { - scope:actor = { - has_usable_hook = scope:recipient - } - } - flag = hook - localization = SCHEME_HOOK - } - should_use_extra_icon = { - scope:actor = { has_usable_hook = scope:recipient } - } - extra_icon = "gfx/interface/icons/character_interactions/hook_icon.dds" - - send_options_exclusive = no -} - -accuse_of_decandence_interaction = { - icon = antagonistic - category = interaction_category_hostile - interface_priority = 60 - common_interaction = yes - - cooldown = { years = 3 } - - desc = accuse_of_decandence_interaction_desc - - is_shown = { - scope:actor = { government_has_flag = government_is_clan } - scope:recipient != scope:actor - scope:actor.house.house_head ?= scope:actor - scope:recipient.house ?= scope:actor.house - scope:recipient = { - NOT = { - has_trait = decadent - } - } - } - - is_valid_showing_failures_only = { - scope:recipient = { is_adult = yes } - scope:recipient = { NOT = { has_strong_hook = scope:actor } } - custom_tooltip = { - text = cannot_take_overt_hostile_actions_against_diarch.tt - NOT = { scope:recipient ?= scope:actor.diarch } - } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0041 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - forgiving = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - send_interface_toast = { - type = event_toast_effect_neutral - title = accuse_of_decandence_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - scope:recipient = { - add_stress = major_stress_gain - if = { - limit = { - has_trait = extolled - } - remove_trait = extolled - } - else = { - add_trait = decadent - } - add_opinion = { - modifier = accused_of_decadence_opinion - target = scope:actor - } - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = major_unity_loss - DESC = clan_unity_decadence.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - piety = { - value = { - add = minor_piety_value - if = { - limit = { - scope:recipient = { - num_virtuous_traits > 0 - } - } - add = { - value = minor_piety_value - multiply = scope:recipient.num_virtuous_traits - } - } - if = { - limit = { - scope:recipient = { - num_sinful_traits > 0 - } - } - add = { - value = minor_piety_value - multiply = 0.5 - multiply = scope:recipient.num_sinful_traits - min = 10 - } - } - } - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - government_has_flag = government_is_clan - house.house_head ?= this - is_adult = yes - NOT = { - has_trait = forgiving - } - } - - ai_targets = { - ai_recipients = dynasty - max = 30 - } - - ai_targets = { - ai_recipients = vassals - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 36 - kingdom = 36 - empire = 36 - hegemony = 36 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - - modifier = { - add = 50 - scope:actor = { - ai_wants_low_unity = yes - NOT = { house ?= { has_house_unity_stage = antagonistic } } - } - scope:recipient = { - num_sinful_traits >= 1 - } - } - - modifier = { - add = 100 - scope:actor = { - ai_wants_low_unity = yes - NOT = { house ?= { has_house_unity_stage = antagonistic } } - } - scope:recipient = { - num_sinful_traits >= 2 - } - } - - modifier = { - add = 20 - scope:actor = { - ai_wants_low_unity = yes - NOT = { house ?= { has_house_unity_stage = antagonistic } } - } - scope:recipient = { - number_of_opposing_personality_traits = { - target = scope:actor - value >= 1 - } - } - } - - modifier = { - add = 100 - scope:actor = { - ai_wants_low_unity = yes - NOT = { house ?= { has_house_unity_stage = antagonistic } } - } - scope:recipient = { - number_of_opposing_personality_traits = { - target = scope:actor - value >= 2 - } - } - } - - modifier = { - add = 50 - scope:actor = { - ai_wants_low_unity = yes - NOT = { house ?= { has_house_unity_stage = antagonistic } } - } - OR = { - AND = { - scope:recipient = { - has_trait = incestuous - } - NOT = { is_incestuous_trigger = yes } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = kinslayer - } - NOT = { has_trait = kinslayer } - } - AND = { - scope:recipient = { - has_trait = adulterer - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = fornicator - } - NOR = { - has_trait = adulterer - has_trait = fornicator - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:fornicator FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = deviant - } - NOT = { - is_deviant_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = witch - } - NOT = { - is_witch_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = sodomite - } - NOR = { - has_trait = sodomite - any_secret = { - type = secret_homosexual - } - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:sodomite FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - AND = { - scope:recipient = { - has_trait = cannibal - } - NOT = { - is_cannibal_trigger = yes - } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:cannibal FAITH = scope:actor.faith GENDER_CHARACTER = scope:recipient } - } - } - } - - modifier = { - factor = 0.25 - scope:recipient = { - is_powerful_vassal_of = scope:actor - } - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - } - } - } - - modifier = { - factor = 0 - scope:recipient = { - is_primary_heir_of = scope:actor - } - } - } -} - -extoll_virtuousness_interaction = { - icon = unity_harmonious - category = interaction_category_friendly - interface_priority = 60 - common_interaction = yes - - cooldown = { years = 3 } - - desc = extoll_virtuousness_interaction_desc - - is_shown = { - scope:actor = { government_has_flag = government_is_clan } - scope:recipient != scope:actor - scope:actor.house.house_head ?= scope:actor - scope:recipient.house ?= scope:actor.house - scope:recipient = { - NOT = { - has_trait = extolled - } - } - } - - is_valid_showing_failures_only = { - scope:recipient = { is_adult = yes } - } - - on_auto_accept = { - scope:recipient = { - trigger_event = char_interaction.0042 - } - } - - on_accept = { - scope:actor = { - stress_impact = { - sadistic = minor_stress_impact_gain - callous = minor_stress_impact_gain - } - send_interface_toast = { - type = event_toast_effect_neutral - title = extoll_interaction_notification - - left_icon = scope:actor - right_icon = scope:recipient - - scope:recipient = { - if = { - limit = { - has_trait = decadent - } - remove_trait = decadent - } - else = { - add_trait = extolled - } - add_opinion = { - modifier = extolled_virtue_opinion - target = scope:actor - } - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = major_unity_gain - DESC = clan_unity_extolled.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - cost = { - piety = { - value = { - add = medium_piety_value - if = { - limit = { - scope:recipient = { - num_sinful_traits > 0 - } - } - add = { - value = medium_piety_value - multiply = scope:recipient.num_sinful_traits - } - } - if = { - limit = { - scope:recipient = { - num_virtuous_traits > 0 - } - } - add = { - value = medium_piety_value - multiply = 0.5 - multiply = scope:recipient.num_virtuous_traits - min = 10 - } - } - } - } - } - - auto_accept = yes - - ai_potential = { - is_at_war = no - government_has_flag = government_is_clan - house.house_head ?= this - is_adult = yes - NOT = { - has_trait = paranoid - } - } - - ai_targets = { - ai_recipients = dynasty - max = 30 - } - - ai_targets = { - ai_recipients = vassals - } - - ai_frequency_by_tier = { - barony = 0 - county = 96 - duchy = 36 - kingdom = 36 - empire = 36 - hegemony = 36 - } - - ai_will_do = { - base = 0 - - modifier = { - add = 100 - scope:actor = { - NOT = { ai_wants_low_unity = yes } - } - scope:recipient = { - OR = { - has_relation_friend = scope:actor - has_relation_best_friend = scope:actor - is_primary_heir_of = scope:actor - } - } - } - - modifier = { - add = 50 - scope:actor = { - ai_wants_high_unity = yes - NOT = { house ?= { has_house_unity_stage = harmonious } } - } - scope:recipient = { - num_virtuous_traits >= 1 - } - } - - modifier = { - add = 100 - scope:actor = { - ai_wants_high_unity = yes - NOT = { house ?= { has_house_unity_stage = harmonious } } - } - scope:recipient = { - num_virtuous_traits >= 2 - } - } - - modifier = { - add = 20 - scope:actor = { - ai_wants_high_unity = yes - NOT = { house ?= { has_house_unity_stage = harmonious } } - } - scope:recipient = { - number_of_personality_traits_in_common = { - target = scope:actor - value >= 1 - } - } - } - - modifier = { - add = 100 - scope:actor = { - ai_wants_high_unity = yes - NOT = { house ?= { has_house_unity_stage = harmonious } } - } - scope:recipient = { - number_of_personality_traits_in_common = { - target = scope:actor - value >= 2 - } - } - } - - modifier = { - factor = 1.5 - scope:recipient = { - is_vassal_of = scope:actor - } - } - - modifier = { - factor = 0 - scope:recipient = { - OR = { - has_relation_rival = scope:actor - has_relation_nemesis = scope:actor - } - } - } - } -} diff --git a/common/character_interactions/00_lover_interactions.txt b/common/character_interactions/00_lover_interactions.txt deleted file mode 100644 index 188ff6f2..00000000 --- a/common/character_interactions/00_lover_interactions.txt +++ /dev/null @@ -1,46 +0,0 @@ -#Break up with your Lover -break_up_with_lover_interaction = { - category = interaction_category_hostile - use_diplomatic_range = no - icon = lover - - desc = break_up_with_lover_interaction_desc - - is_shown = { - scope:actor = { - has_relation_lover = scope:recipient - } - } - - is_valid_showing_failures_only = { - } - - on_accept = { - scope:actor = { - send_interface_message = { - type = event_sway_neutral - title = break_up_with_lover_interaction_notification - right_icon = scope:recipient - lover_breakup_effect = { - BREAKER = scope:actor - LOVER = scope:recipient - } - stress_impact = { - lustful = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - } - } - } - - # If we're a clan this interaction affects unity - add_clan_unity_interaction_effect = { - CHARACTER = scope:actor - TARGET = scope:recipient - VALUE = miniscule_unity_loss - DESC = clan_unity_dramatic_breakup.desc - REVERSE_NON_HOUSE_TARGET = no - } - } - - auto_accept = yes -} diff --git a/common/character_interactions/00_prison_interactions.txt b/common/character_interactions/00_prison_interactions.txt index ccc89e96..b285a1c7 100644 --- a/common/character_interactions/00_prison_interactions.txt +++ b/common/character_interactions/00_prison_interactions.txt @@ -403,34 +403,34 @@ } } -# # Harrying logic. -# scope:actor = { -# if = { -# limit = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# scope:recipient = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# is_important_or_vip_struggle_character = yes -# } -# culture != scope:recipient.culture -# } -# global_var:harrying_of_the_north = { save_scope_as = story } -# if = { -# limit = { -# character_is_valid_norman_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } -# } -# else_if = { -# limit = { -# character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } -# } -# } -# } + # Harrying logic. + scope:actor = { + if = { + limit = { + character_is_valid_for_harrying_of_the_north_trigger = yes + scope:recipient = { + character_is_valid_for_harrying_of_the_north_trigger = yes + is_important_or_vip_struggle_character = yes + } + culture != scope:recipient.culture + } + global_var:harrying_of_the_north = { save_scope_as = story } + if = { + limit = { + character_is_valid_norman_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } + } + else_if = { + limit = { + character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } + } + } + } } on_decline = { @@ -6491,38 +6491,38 @@ execute_prisoner_interaction = { add = 30 } -# modifier = { -# scope:recipient = { -# any_character_struggle = { -# involvement = involved -# } -# has_trait = fp3_struggle_detractor -# } -# add = { -# value = 0 -# if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_detractor -# } -# has_trait = fp3_struggle_supporter -# } -# } -# add = 200 -# } -# else_if = { -# limit = { -# scope:actor = { -# any_character_struggle = { -# phase_has_catalyst = catalyst_execute_detractor -# } -# } -# } -# add = -100 -# } -# } -# } + modifier = { + scope:recipient = { + any_character_struggle = { + involvement = involved + } + has_trait = fp3_struggle_detractor + } + add = { + value = 0 + if = { + limit = { + scope:actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_detractor + } + has_trait = fp3_struggle_supporter + } + } + add = 200 + } + else_if = { + limit = { + scope:actor = { + any_character_struggle = { + phase_has_catalyst = catalyst_execute_detractor + } + } + } + add = -100 + } + } + } modifier = { add = 200 scope:actor.faith = { @@ -6882,65 +6882,65 @@ execute_prisoner_interaction = { } } } -# if = { # Execute Supporter/Detractor -# limit = { -# fp3_struggle_involves_one_supporter_and_one_detractor = { -# FIRST = scope:actor -# SECOND = scope:recipient -# } -# } -# if = { -# limit = { -# scope:recipient = { has_trait = fp3_struggle_detractor } -# struggle:persian_struggle = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_detractor -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_detractor -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_execute_detractor -# character = scope:actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_execute_detractor } -# } -# } -# else_if = { -# limit = { -# scope:recipient = { has_trait = fp3_struggle_supporter } -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_supporter -# CHAR = scope:recipient -# } -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_either_trigger = { -# CATALYST = catalyst_execute_supporter -# CHAR = scope:recipient -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_execute_supporter -# character = scope:actor -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_execute_supporter } -# } -# } -# } + if = { # Execute Supporter/Detractor + limit = { + fp3_struggle_involves_one_supporter_and_one_detractor = { + FIRST = scope:actor + SECOND = scope:recipient + } + } + if = { + limit = { + scope:recipient = { has_trait = fp3_struggle_detractor } + struggle:persian_struggle = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_detractor + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_detractor + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_execute_detractor + character = scope:actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_execute_detractor } + } + } + else_if = { + limit = { + scope:recipient = { has_trait = fp3_struggle_supporter } + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_supporter + CHAR = scope:recipient + } + } + } + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_either_trigger = { + CATALYST = catalyst_execute_supporter + CHAR = scope:recipient + } + } + activate_struggle_catalyst = { + catalyst = catalyst_execute_supporter + character = scope:actor + } + log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_execute_supporter } + } + } + } # Free House Member CB target executed during war if = { limit = { diff --git a/common/character_interactions/00_revoke_title_interaction.txt b/common/character_interactions/00_revoke_title_interaction.txt index 6a51ecd8..6100af44 100644 --- a/common/character_interactions/00_revoke_title_interaction.txt +++ b/common/character_interactions/00_revoke_title_interaction.txt @@ -529,34 +529,34 @@ scope:actor = { remove_character_flag = flag_hostile_actions_disabled_delay } } -# # Harrying logic. -# scope:actor = { -# if = { -# limit = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# scope:recipient = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# is_important_or_vip_struggle_character = yes -# } -# culture != scope:recipient.culture -# } -# global_var:harrying_of_the_north = { save_scope_as = story } -# if = { -# limit = { -# character_is_valid_norman_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } -# } -# else_if = { -# limit = { -# character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } -# } -# } -# } + # Harrying logic. + scope:actor = { + if = { + limit = { + character_is_valid_for_harrying_of_the_north_trigger = yes + scope:recipient = { + character_is_valid_for_harrying_of_the_north_trigger = yes + is_important_or_vip_struggle_character = yes + } + culture != scope:recipient.culture + } + global_var:harrying_of_the_north = { save_scope_as = story } + if = { + limit = { + character_is_valid_norman_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } + } + else_if = { + limit = { + character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } + } + } + } } on_decline = { @@ -715,33 +715,33 @@ } # Harrying logic. -# scope:actor = { -# if = { -# limit = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# scope:recipient = { -# character_is_valid_for_harrying_of_the_north_trigger = yes -# is_important_or_vip_struggle_character = yes -# } -# culture != scope:recipient.culture -# } -# global_var:harrying_of_the_north = { save_scope_as = story } -# if = { -# limit = { -# character_is_valid_norman_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } -# } -# else_if = { -# limit = { -# character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes -# scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } -# } -# ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } -# } -# } -# } + scope:actor = { + if = { + limit = { + character_is_valid_for_harrying_of_the_north_trigger = yes + scope:recipient = { + character_is_valid_for_harrying_of_the_north_trigger = yes + is_important_or_vip_struggle_character = yes + } + culture != scope:recipient.culture + } + global_var:harrying_of_the_north = { save_scope_as = story } + if = { + limit = { + character_is_valid_norman_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_resistance_effect = { AMOUNT = harrying_minor_increase_value } + } + else_if = { + limit = { + character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes + scope:recipient = { character_is_valid_norman_for_harrying_of_the_north_trigger = yes } + } + ep3_increase_pacification_effect = { AMOUNT = harrying_minor_increase_value } + } + } + } if = { limit = { @@ -1135,11 +1135,11 @@ is_imprisoned_by = scope:actor } } -# scope:actor = { # The HRE doesn't need endless civil wars -# NOT = { -# primary_title = title:e_hre -# } -# } + scope:actor = { # The HRE doesn't need endless civil wars + NOT = { + primary_title = title:e_hre + } + } exists = scope:actor.primary_title.title_capital_county OR = { scope:landed_title = scope:actor.primary_title.title_capital_county @@ -1176,11 +1176,11 @@ is_imprisoned_by = scope:actor } } -# scope:actor = { # The HRE doesn't need endless civil wars -# NOT = { -# primary_title = title:e_hre -# } -# } + scope:actor = { # The HRE doesn't need endless civil wars + NOT = { + primary_title = title:e_hre + } + } scope:actor.domain_size < scope:actor.domain_limit scope:actor.primary_title.tier > tier_county trigger_if = { diff --git a/common/character_interactions/00_tributary_interactions.txt b/common/character_interactions/00_tributary_interactions.txt index 7e71abe5..424ac93f 100644 --- a/common/character_interactions/00_tributary_interactions.txt +++ b/common/character_interactions/00_tributary_interactions.txt @@ -40,7 +40,11 @@ become_tributary_interaction = { text = become_tributary_interaction_hegemony_not_neighbor_tt scope:actor = { OR = { - is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_europa } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india } } } } diff --git a/common/character_interactions/10_ach_interactions.txt b/common/character_interactions/10_ach_interactions.txt index c507e456..411f13d2 100644 --- a/common/character_interactions/10_ach_interactions.txt +++ b/common/character_interactions/10_ach_interactions.txt @@ -10,14 +10,7 @@ ai_target_quick_trigger = { adult = yes } - ai_frequency_by_tier = { - barony = 0 - county = 0 - duchy = 0 - kingdom = 0 - empire = 12 - hegemony = 12 - } + ai_frequency = 12 popup_on_receive = yes pause_on_receive = yes @@ -44,7 +37,10 @@ is_valid_showing_failures_only = { scope:actor = { faith = { - has_doctrine = doctrine_spiritual_head + OR = { + has_doctrine = doctrine_spiritual_head + has_doctrine = doctrine_holy_order_head + } } is_imprisoned = no NOT = { has_trait = excommunicated } @@ -127,7 +123,7 @@ has_trait = sodomite trait_is_criminal_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:sodomite + TRAIT = sodomite GENDER_CHARACTER = scope:actor } } @@ -139,7 +135,7 @@ has_trait = sodomite trait_is_shunned_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:sodomite + TRAIT = sodomite GENDER_CHARACTER = scope:actor } } @@ -151,7 +147,7 @@ has_trait = deviant trait_is_criminal_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:deviant + TRAIT = deviant GENDER_CHARACTER = scope:actor } } @@ -163,7 +159,7 @@ has_trait = deviant trait_is_shunned_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:deviant + TRAIT = deviant GENDER_CHARACTER = scope:actor } } @@ -175,7 +171,7 @@ has_trait = adulterer trait_is_criminal_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:adulterer + TRAIT = adulterer GENDER_CHARACTER = scope:actor } } @@ -187,7 +183,7 @@ has_trait = adulterer trait_is_shunned_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:adulterer + TRAIT = adulterer GENDER_CHARACTER = scope:actor } } @@ -199,7 +195,7 @@ has_trait = fornicator trait_is_criminal_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:fornicator + TRAIT = fornicator GENDER_CHARACTER = scope:actor } } @@ -211,7 +207,7 @@ has_trait = fornicator trait_is_shunned_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:fornicator + TRAIT = fornicator GENDER_CHARACTER = scope:actor } } @@ -223,7 +219,7 @@ has_trait = witch trait_is_criminal_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:witch + TRAIT = witch GENDER_CHARACTER = scope:actor } } @@ -235,7 +231,7 @@ has_trait = witch trait_is_shunned_in_faith_trigger = { FAITH = scope:actor.faith - TRAIT = trait:witch + TRAIT = witch GENDER_CHARACTER = scope:actor } } @@ -265,15 +261,15 @@ OR = { AND = { has_trait = kinslayer_1 - trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_1 GENDER_CHARACTER = scope:actor } + trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_1 GENDER_CHARACTER = scope:actor } } AND = { has_trait = kinslayer_2 - trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_2 GENDER_CHARACTER = scope:actor } + trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_2 GENDER_CHARACTER = scope:actor } } AND = { has_trait = kinslayer_3 - trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_3 GENDER_CHARACTER = scope:actor } + trait_is_criminal_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_3 GENDER_CHARACTER = scope:actor } } } } @@ -285,15 +281,15 @@ OR = { AND = { has_trait = kinslayer_1 - trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_1 GENDER_CHARACTER = scope:actor } + trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_1 GENDER_CHARACTER = scope:actor } } AND = { has_trait = kinslayer_2 - trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_2 GENDER_CHARACTER = scope:actor } + trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_2 GENDER_CHARACTER = scope:actor } } AND = { has_trait = kinslayer_3 - trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = trait:kinslayer_3 GENDER_CHARACTER = scope:actor } + trait_is_shunned_in_faith_trigger = { FAITH = faith TRAIT = kinslayer_3 GENDER_CHARACTER = scope:actor } } } } diff --git a/common/character_interactions/10_tgp_test_interactions.txt b/common/character_interactions/10_tgp_test_interactions.txt deleted file mode 100644 index 225f1ba7..00000000 --- a/common/character_interactions/10_tgp_test_interactions.txt +++ /dev/null @@ -1,288 +0,0 @@ -### Apply some impact to the relation between two houses. -# -debug_impact_house_relation_interaction = { - category = interaction_debug_tgp - desc = debug_impact_house_relation_interaction_desc - use_diplomatic_range = no - ignores_pending_interaction_block = yes - icon = debug_chars - common_interaction = yes - - is_shown = { - debug_only = yes - exists = scope:recipient.house - scope:recipient.house ?= { - NOT = { this = scope:actor.house } - } - } - is_valid_showing_failures_only = { - house_relation_is_valid_to_start_trigger = { - HOUSE = scope:actor.house - OTHER_HOUSE = scope:recipient.house - } - } - - send_option = { - localization = debug_impact_house_relation_for_the_significantly_better - flag = impact_for_the_significantly_better - } - send_option = { - localization = debug_impact_house_relation_for_the_noticeably_better - flag = impact_for_the_noticeably_better - } - send_option = { - localization = debug_impact_house_relation_for_the_slightly_better - flag = impact_for_the_slightly_better - } - send_option = { - localization = debug_impact_house_relation_by_setting_to_neutral - flag = set_to_neutral - } - send_option = { - localization = debug_impact_house_relation_for_the_slightly_worse - flag = impact_for_the_slightly_worse - } - send_option = { - localization = debug_impact_house_relation_for_the_noticeably_worse - flag = impact_for_the_noticeably_worse - } - send_option = { - localization = debug_impact_house_relation_for_the_significantly_worse - flag = impact_for_the_significantly_worse - } - send_option = { - localization = debug_impact_house_relation_by_clearing_it - flag = clear_relation - is_valid = { - scope:actor.house = { - has_house_relation_with = scope:recipient.house - } - } - } - send_option = { - localization = debug_impact_house_relation_by_starting_a_feud - flag = start_feud - is_shown = { - has_bp1_dlc_trigger = yes - } - is_valid = { - custom_tooltip = { - text = action_in_debt_click - NOT = { - house_has_feud_relation_with_trigger = { TARGET = scope:recipient } - } - } - } - } - - can_send = { - house_relation_is_valid_to_start_trigger = { - HOUSE = scope:actor.house - OTHER_HOUSE = scope:recipient.house - } -} - on_accept = { - if = { - limit = { scope:clear_relation = yes } - scope:actor.house = { - random_house_relation = { - limit = { - any_relation_house = { scope:recipient.house = this } - } - clear_house_relation = yes - } - } - } - else_if = { - limit = { scope:set_to_neutral = yes } - scope:actor.house = { - set_house_relation = { - target = scope:recipient.house - description = debug_impact_house_relation_change_description - } - } - } - else_if = { - limit = { scope:start_feud = yes } - - house_feud_start_effect = { - # Feuding House Head - ACTOR = scope:actor - # Target House Head - TARGET = scope:recipient - # Feud Reason - REASON = head_cuckolded - # House Member attacker if relevant - ATTACKER = scope:actor - # House Member victim if relevant - VICTIM = scope:recipient - } - } - else = { - scope:recipient = { - scope:actor.house = { - impact_house_relation = { - target = scope:recipient.house - steps = { - value = 0 - - if = { - limit = { scope:impact_for_the_significantly_better = yes} - add = 3 - } - if = { - limit = { scope:impact_for_the_noticeably_better = yes } - add = 1 - } - if = { - limit = { scope:impact_for_the_slightly_better = yes } - add = 0.3 - } - if = { - limit = { scope:impact_for_the_slightly_worse = yes } - add = -0.3 - } - if = { - limit = { scope:impact_for_the_noticeably_worse = yes } - add = -1 - } - if = { - limit = { scope:impact_for_the_significantly_worse = yes } - add = -3 - } - } - description = debug_impact_house_relation_change_description - } - } - } - } - } - auto_accept = yes -} - - -debug_spawn_natural_disaster = { - category = interaction_debug_tgp - use_diplomatic_range = no - ignores_pending_interaction_block = yes - common_interaction = yes - icon = debug_bad - auto_accept = yes - is_shown = { - debug_only = yes - scope:recipient ?= { - is_landed = yes - highest_held_title_tier >= tier_county - } - } - send_option = { - flag = sub_realm_earthquake - localization = debug_sub_realm_earthquake - } - send_option = { - flag = random_earthquake - localization = debug_random_earthquake - } - send_option = { - flag = sub_realm_flood - localization = debug_sub_realm_flood - is_valid = { - custom_tooltip = { - text = debug_sub_realm_flood_tt - scope:recipient = { - any_sub_realm_county = { - title_province = { geographical_region = global_flood_region } - NOT = { - any_county_situation = { situation_type = natural_disaster_flood } - } - } - } - } - } - } - send_option = { - flag = random_flood - localization = debug_random_flood - } - on_accept = { - hidden_effect = { - scope:recipient = { - switch = { - trigger = yes - scope:sub_realm_earthquake = { - scope:recipient = { - random_sub_realm_county = { - limit = { - save_temporary_scope_as = county_temp - NOT = { - any_in_global_list = { - variable = ongoing_earthquakes - var:epicenter_county ?= scope:county_temp.kingdom - } - } - } - spawn_earthquake_in_county_effect = { COUNTY = this } - } - } - } - scope:random_earthquake = { trigger_event = natural_disaster.9901 } - scope:sub_realm_flood = { - scope:recipient = { - random_sub_realm_county = { - limit = { - title_province = { geographical_region = global_flood_region } - NOT = { - any_county_situation = { situation_type = natural_disaster_flood } - } - } - spawn_flood_in_county_effect = { COUNTY = this } - } - } - } - scope:random_flood = { trigger_event = natural_disaster.9902 } - } - } - } - } -} - - -debug_change_bloc_cohesion = { - category = interaction_debug_tgp - use_diplomatic_range = no - ignores_pending_interaction_block = yes - common_interaction = yes - icon = icon_leave_bloc - auto_accept = yes - is_shown = { - debug_only = yes - scope:recipient.house.house_confederation ?= { has_cohesion = yes } - } - send_option = { - flag = max - localization = Max - } - send_option = { - flag = improve - localization = debug_improve_block_cohesion - } - send_option = { - flag = damage - localization = debug_damage_block_cohesion - } - send_option = { - flag = destroy - localization = DESTROY_ACCOLADE - } - on_accept = { - scope:recipient.house.house_confederation = { - switch = { - trigger = yes - scope:max = { change_cohesion = 100 } - scope:improve = { change_cohesion = 20 } - scope:damage = { change_cohesion = -20 } - scope:destroy = { change_cohesion = -100 } - } - } - } -} diff --git a/common/coat_of_arms/coat_of_arms/01_landed_titles.txt b/common/coat_of_arms/coat_of_arms/01_landed_titles.txt index 5f7ca6f9..1544a5ff 100644 --- a/common/coat_of_arms/coat_of_arms/01_landed_titles.txt +++ b/common/coat_of_arms/coat_of_arms/01_landed_titles.txt @@ -28538,57 +28538,57 @@ c_upland = { } } -#k_danelaw = { -# pattern = "pattern_solid.dds" -# color1 = "red" -# color2 = "white" -# colored_emblem = { -# texture = "ce_circle_mask.dds" -# color1 = "red" -# color2 = "red" -# instance = { position = { 0.5 0.48 } scale = { 0.7 0.7 } } -# } -# colored_emblem = { -# texture = "ce_frame_circle_borre_single.dds" -# color1 = "white" -# color2 = "black" -# instance = { position = { 0.5 0.48 } scale = { 0.95 0.95 } } -# } -# colored_emblem = { -# texture = "ce_norse_triquetra_ivaring.dds" -# color1 = "red" -# color2 = "white" -# color3 = "white" -# instance = { position = { 0.5 0.48 } scale = { 0.9 0.9 } } -# } -#} -# -## Just so they don't end up with a random CoA; we copy the k_danelaw one anyhoo. -#k_daneland = { -# pattern = "pattern_solid.dds" -# color1 = "red" -# color2 = "white" -# colored_emblem = { -# texture = "ce_circle_mask.dds" -# color1 = "red" -# color2 = "red" -# instance = { position = { 0.5 0.48 } scale = { 0.7 0.7 } } -# } -# colored_emblem = { -# texture = "ce_frame_circle_borre_single.dds" -# color1 = "white" -# color2 = "black" -# instance = { position = { 0.5 0.48 } scale = { 0.95 0.95 } } -# } -# colored_emblem = { -# texture = "ce_norse_triquetra_ivaring.dds" -# color1 = "red" -# color2 = "white" -# color3 = "white" -# instance = { position = { 0.5 0.48 } scale = { 0.9 0.9 } } -# } -#} -# +k_danelaw = { + pattern = "pattern_solid.dds" + color1 = "red" + color2 = "white" + colored_emblem = { + texture = "ce_circle_mask.dds" + color1 = "red" + color2 = "red" + instance = { position = { 0.5 0.48 } scale = { 0.7 0.7 } } + } + colored_emblem = { + texture = "ce_frame_circle_borre_single.dds" + color1 = "white" + color2 = "black" + instance = { position = { 0.5 0.48 } scale = { 0.95 0.95 } } + } + colored_emblem = { + texture = "ce_norse_triquetra_ivaring.dds" + color1 = "red" + color2 = "white" + color3 = "white" + instance = { position = { 0.5 0.48 } scale = { 0.9 0.9 } } + } +} + +# Just so they don't end up with a random CoA; we copy the k_danelaw one anyhoo. +k_daneland = { + pattern = "pattern_solid.dds" + color1 = "red" + color2 = "white" + colored_emblem = { + texture = "ce_circle_mask.dds" + color1 = "red" + color2 = "red" + instance = { position = { 0.5 0.48 } scale = { 0.7 0.7 } } + } + colored_emblem = { + texture = "ce_frame_circle_borre_single.dds" + color1 = "white" + color2 = "black" + instance = { position = { 0.5 0.48 } scale = { 0.95 0.95 } } + } + colored_emblem = { + texture = "ce_norse_triquetra_ivaring.dds" + color1 = "red" + color2 = "white" + color3 = "white" + instance = { position = { 0.5 0.48 } scale = { 0.9 0.9 } } + } +} + d_jomsvikings = { # Simple colour inversion from ho_jomsvikings pattern = "pattern_solid.dds" diff --git a/common/council_positions/00_council_positions.txt b/common/council_positions/00_council_positions.txt deleted file mode 100644 index 0767195f..00000000 --- a/common/council_positions/00_council_positions.txt +++ /dev/null @@ -1,3194 +0,0 @@ -councillor_chancellor = { - skill = diplomacy - - name = { - first_valid = { - triggered_desc = { - trigger = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_chancellor_celestial_government_imperial - } - triggered_desc = { - trigger = { - OR = { - highest_held_title_tier = tier_empire - highest_held_title_tier = tier_kingdom - } - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_chancellor_non_celestial_government_imperial - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_hegemony - government_has_flag = government_has_merit - is_governor_or_admin_count = yes - } - desc = councillor_chancellor_celestial_government_non_imperial - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_administrative } - desc = councillor_chancellor_japan_administrative - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_feudal } - desc = councillor_chancellor_japan_feudal - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_kingdom - government_has_flag = government_has_merit - is_governor_or_admin_count = no - } - desc = councillor_chancellor_celestial_family_head - } - desc = councillor_chancellor - } - } - - valid_position = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_nomadic - } - } - - tooltip = { - first_valid = { - triggered_desc = { - trigger = { - scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } - } - desc = game_concept_minister_grand_chancellor_desc - } - desc = game_concept_chancellor_desc - } - } - - auto_fill = { - } - - modifier = { - name = councillor_chancellor_modifier - fellow_vassal_opinion = 5 - monthly_diplomacy_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = councillor_chancellor_modifier - monthly_prestige = 1 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_chancellor_modifier - monthly_influence = 1 - enemy_political_scheme_success_chance_max_add = -5 - scale = council_scaled_admin_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - diplomacy = 1 - scale = chancellor_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - trigger_if = { # If the liege has a ministry, we check a separate minister trigger - limit = { - root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes } - } - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - trigger_else = { - can_be_chancellor_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - tgp_is_ceremonial_liege_trigger = no - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_chancellor MINISTER_POSITION = councillor_chancellor } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = chancellor - - barbershop_data = { - position = { 918.0 172.0 } - click_to_front = no - } -} - -councillor_steward = { - skill = stewardship - - name = { - first_valid = { - triggered_desc = { - trigger = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_steward_celestial_government_imperial - } - triggered_desc = { - trigger = { - OR = { - highest_held_title_tier = tier_empire - highest_held_title_tier = tier_kingdom - } - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_steward_non_celestial_government_imperial - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_hegemony - government_has_flag = government_has_merit - is_governor_or_admin_count = yes - } - desc = councillor_steward_celestial_government_non_imperial - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_administrative } - desc = councillor_steward_japan_administrative - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_feudal } - desc = councillor_steward_japan_feudal - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_kingdom - government_has_flag = government_has_merit - is_governor_or_admin_count = no - } - desc = councillor_steward_celestial_family_head - } - desc = councillor_steward - } - } - - tooltip = { - first_valid = { - triggered_desc = { - trigger = { - scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } - } - desc = game_concept_minister_of_revenue_desc - } - desc = game_concept_steward_desc - } - } - - auto_fill = { - } - - valid_position = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_nomadic - } - } - - modifier = { - name = councillor_steward_modifier - monthly_income = 1 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_steward_modifier - build_gold_cost = -0.025 - monthly_stewardship_lifestyle_xp_gain_mult = 0.05 - domain_tax_mult = 0.025 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = councillor_steward_modifier - monthly_influence = 1 - domicile_build_gold_cost = -0.05 - scale = council_scaled_admin_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - stewardship = 1 - scale = steward_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - trigger_if = { # If the liege has a ministry, we check a separate minister trigger - limit = { - root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes } - } - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - trigger_else = { - can_be_steward_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - tgp_is_ceremonial_liege_trigger = no - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_revenue MINISTER_POSITION = councillor_steward } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = steward - - barbershop_data = { - position = { 1268.0 172.0 } - click_to_front = no - } -} - -councillor_marshal = { - skill = martial - - name = { - first_valid = { - triggered_desc = { - trigger = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = minister_war - } - triggered_desc = { - trigger = { - OR = { - highest_held_title_tier = tier_empire - highest_held_title_tier = tier_kingdom - } - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_marshal_non_celestial_government_imperial - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_hegemony - government_has_flag = government_has_merit - is_governor = yes - } - desc = councillor_marshal_celestial_government_non_imperial - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_administrative } - desc = councillor_marshal_japan_administrative - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_feudal } - desc = councillor_marshal_japan_feudal - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_kingdom - government_has_flag = government_has_merit - is_governor_or_admin_count = no - } - desc = councillor_marshal_celestial_family_head - } - desc = councillor_marshal - } - } - - tooltip = { - first_valid = { - triggered_desc = { - trigger = { - scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } - } - desc = game_concept_minister_of_war_desc - } - desc = game_concept_marshal_desc - } - } - - auto_fill = { - } - - valid_position = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_nomadic - } - } - - modifier = { - name = councillor_marshal_modifier - prowess = 1 - army_maintenance_mult = -0.05 - monthly_martial_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = councillor_marshal_modifier - levy_size = 0.05 - scale = council_scaled_by_liege_tier_not_admin - } - - modifier = { - name = councillor_marshal_modifier - monthly_influence = 1 - maa_toughness_mult = 0.04 - scale = council_scaled_admin_value - } - - modifier = { # Minister modifiers - name = minister_war_modifier - monthly_merit = 1 - scale = council_scaled_celestial_ministry_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - martial = 1 - scale = marshal_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - trigger_if = { # If the liege has a ministry, we check a separate minister trigger - limit = { - root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes } - } - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - trigger_else = { - can_be_marshal_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - tgp_is_ceremonial_liege_trigger = no - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_war MINISTER_POSITION = councillor_marshal } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = marshal - - barbershop_data = { - position = { 558.0 172.0 } - click_to_front = no - } -} - -councillor_spymaster = { - skill = intrigue - - name = { - first_valid = { - triggered_desc = { - trigger = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_spymaster_celestial_government_imperial - } - triggered_desc = { - trigger = { - OR = { - highest_held_title_tier = tier_empire - highest_held_title_tier = tier_kingdom - } - government_has_flag = government_has_merit - is_independent_ruler = yes - } - desc = councillor_spymaster_non_celestial_government_imperial - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_hegemony - government_has_flag = government_has_merit - is_governor_or_admin_count = yes - } - desc = councillor_spymaster_celestial_government_non_imperial - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_administrative } - desc = councillor_spymaster_japan_administrative - } - triggered_desc = { - trigger = { government_has_flag = government_is_japan_feudal } - desc = councillor_spymaster_japan_feudal - } - triggered_desc = { - trigger = { - highest_held_title_tier < tier_kingdom - government_has_flag = government_has_merit - is_governor_or_admin_count = no - } - desc = councillor_spymaster_celestial_family_head - } - desc = councillor_spymaster - } - } - - tooltip = { - first_valid = { - triggered_desc = { - trigger = { - scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } - } - desc = game_concept_minister_censor_desc - } - desc = game_concept_spymaster_desc - } - } - - auto_fill = { - } - - valid_position = { - NOT = { government_has_flag = government_is_landless_adventurer } - } - - # Scaled modifiers. - modifier = { - name = councillor_spymaster_modifier - scale = council_scaled_by_liege_tier - monthly_intrigue_lifestyle_xp_gain_mult = 0.05 - dread_baseline_add = 10 - } - - # Unscaled modifiers. - modifier = { - name = councillor_spymaster_modifier - hostile_scheme_phase_duration_add = -10 - owned_hostile_scheme_success_chance_max_add = 10 - } - - modifier = { - name = councillor_spymaster_modifier - monthly_influence = 1 - owned_scheme_secrecy_add = 5 - scale = council_scaled_admin_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - intrigue = 1 - scale = spymaster_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - intrigue = 1 - scale = spymaster_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - trigger_if = { # If the liege has a ministry, we check a separate minister trigger - limit = { - root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes } - } - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - trigger_else = { - can_be_spymaster_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - tgp_is_ceremonial_liege_trigger = no - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_censor MINISTER_POSITION = councillor_spymaster } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - use_for_scheme_phase_duration = yes - use_for_scheme_resistance = yes - - portrait_animation = spymaster - - barbershop_data = { - position = { 1433.0 261.0 } - click_to_front = yes - } -} - -councillor_court_chaplain = { - skill = learning - - auto_fill = { - trigger_if = { - limit = { - is_ai = yes - tgp_has_access_to_ministry_trigger = no - } - always = yes - } - trigger_else_if = { - limit = { - tgp_has_access_to_ministry_trigger = yes - } - always = no - } - trigger_else = { - faith = { - NOT = { has_doctrine_parameter = clerical_appointment_ruler } - } - } - } - - fill_from_pool = yes - is_clergy_position = yes - - can_fire = { - trigger_if = { - limit = { - tgp_has_access_to_ministry_trigger = no - } - custom_description = { - text = "court_chaplain_cant_fire_doctrines" - faith = { - NOT = { has_doctrine_parameter = clerical_appointment_fixed } - } - } - } - } - - can_reassign = { - trigger_if = { - limit = { - NAND = { - government_has_flag = government_has_merit - highest_held_title_tier >= tier_hegemony - } - } - custom_description = { - text = "court_chaplain_cant_reassign_doctrines" - OR = { - faith = { - NOT = { has_doctrine_parameter = clerical_appointment_fixed } - } - NOT = { exists = cp:councillor_court_chaplain } - } - } - } - } - - can_change_once = { - faith = { - has_doctrine_parameter = clerical_appointment_fixed - } - NAND = { - government_has_flag = government_has_merit - highest_held_title_tier >= tier_hegemony - } - exists = cp:councillor_court_chaplain - } - - inherit = no - - name = { - first_valid = { - triggered_desc = { - trigger = { - highest_held_title_tier >= tier_hegemony - government_has_flag = government_has_merit - } - desc = councillor_court_chaplain_celestial_government_imperial - } - triggered_desc = { - trigger = { - OR = { - culture = { has_cultural_pillar = heritage_chinese } - culture = { has_cultural_pillar = heritage_tungusic } - } - religion = religion:buddhism_religion - } - desc = councillor_court_chaplain_buddhist_chinese - } - triggered_desc = { - trigger = { - OR = { - culture = { has_cultural_pillar = heritage_chinese } - culture = { has_cultural_pillar = heritage_tungusic } - } - religion = religion:taoism_religion - } - desc = councillor_court_chaplain_daoist_chinese - } - triggered_desc = { - trigger = { - OR = { - culture = { has_cultural_pillar = heritage_chinese } - culture = { has_cultural_pillar = heritage_tungusic } - } - religion = religion:confucianism_religion - } - desc = councillor_court_chaplain_confucian_chinese - } - triggered_desc = { - trigger = { - OR = { - culture = { has_cultural_pillar = heritage_tibetan } - } - religion = religion:buddhism_religion - } - desc = councillor_court_chaplain_buddhist_tibetan - } - triggered_desc = { - trigger = { - government_has_flag = government_is_mandala - } - desc = councillor_court_chaplain_mandala_government - } - triggered_desc = { - trigger = { - faith = { - OR = { - has_doctrine = doctrine_theocracy_temporal - religion = { is_in_family = rf_pagan } - } - } - } - desc = actual_bishop_title - } - triggered_desc = { - trigger = { - faith = { - NOR = { - has_doctrine = doctrine_theocracy_temporal - religion = { is_in_family = rf_pagan } - } - } - } - desc = { - first_valid = { - #Shia -# triggered_desc = { -# trigger = { highest_held_title_tier >= tier_empire faith = faith:ismaili } -# desc = councillor_court_chaplain_ismaili_empire -# } -# triggered_desc = { -# trigger = { highest_held_title_tier >= tier_kingdom faith = faith:ismaili } -# desc = councillor_court_chaplain_ismaili_kingdom -# } - #Islam - triggered_desc = { - trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:aqlani.religion } - desc = councillor_court_chaplain_islam_empire - } - triggered_desc = { - trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:aqlani.religion } - desc = councillor_court_chaplain_islam_kingdom - } - triggered_desc = { - trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:aqlani.religion } - desc = councillor_court_chaplain_islam_duchy - } - triggered_desc = { - trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:aqlani.religion } - desc = councillor_court_chaplain_islam_county - } - #Yazidi - triggered_desc = { - trigger = { highest_held_title_tier >= tier_empire faith.religion = faith:yazidi.religion } - desc = councillor_court_chaplain_yazidi_empire - } - triggered_desc = { - trigger = { highest_held_title_tier >= tier_kingdom faith.religion = faith:yazidi.religion } - desc = councillor_court_chaplain_yazidi_kingdom - } - triggered_desc = { - trigger = { highest_held_title_tier >= tier_duchy faith.religion = faith:yazidi.religion } - desc = councillor_court_chaplain_yazidi_duchy - } - triggered_desc = { - trigger = { highest_held_title_tier < tier_duchy faith.religion = faith:yazidi.religion } - desc = councillor_court_chaplain_yazidi_county - } - desc = councillor_court_chaplain - } - } - } - desc = councillor_court_chaplain - } - } - - tooltip = { - first_valid = { - triggered_desc = { - trigger = { - scope:councillor_liege = { tgp_has_access_to_ministry_trigger = yes } - } - desc = game_concept_minister_of_rites_desc - } - triggered_desc = { - trigger = { - faith = { has_doctrine = doctrine_theocracy_temporal } - } - desc = game_concept_realm_priest_desc - } - desc = game_concept_court_chaplain_desc - } - } - - modifier = { - name = councillor_court_chaplain_modifier - county_opinion_add = 5 - monthly_learning_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = councillor_court_chaplain_modifier - monthly_piety = 1 - scale = council_scaled_monthly_income - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - learning = 1 - scale = court_chaplain_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - learning = 1 - scale = court_chaplain_reliable_house_scale - } - - pool_character_config = pool_court_chaplain - - valid_character = { - exists = root.liege_or_court_owner - trigger_if = { # If the liege has a ministry, we check a separate minister trigger - limit = { - root.liege_or_court_owner = { tgp_has_access_to_ministry_trigger = yes } - } - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - trigger_else = { - can_be_court_chaplain_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - tgp_is_ceremonial_liege_trigger = no - } - - valid_position = { - NOR = { - government_has_flag = government_is_landless_adventurer - government_has_flag = government_is_nomadic - } - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_rites MINISTER_POSITION = councillor_court_chaplain } - if = { - limit = { - years_from_game_start >= 1 - } - if = { - limit = { - is_ruler = no - liege = { - faith = { has_doctrine = doctrine_clerical_succession_spiritual_fixed_appointment } - any_vassal = { - is_physically_able_adult = yes - is_councillor = no - government_has_flag = government_is_theocracy - can_be_court_chaplain_trigger = { COURT_OWNER = liege } - faith = liege.faith - } - } - } - liege = { - random_vassal = { - limit = { - is_physically_able_adult = yes - is_councillor = no - government_has_flag = government_is_theocracy - can_be_court_chaplain_trigger = { COURT_OWNER = liege } - faith = liege.faith - } - weight = { - base = 1 - modifier = { - add = 1000 - faith.religious_head ?= this - } - modifier = { - add = learning - } - modifier = { - add = primary_title.tier - } - } - liege = { - assign_councillor_type = { - type = councillor_court_chaplain - remove_existing_councillor = yes - target = prev - } - } - } - } - move_to_pool = yes - } - if = { - limit = { - exists = this - exists = liege.culture - NOT = { - knows_language_of_culture = liege.culture - } - } - random_list = { - 10 = { - modifier = { - add = learning - } - learn_language_of_culture = liege.culture - } - 5 = { - trigger = { - can_start_scheme = { - type = learn_language - target_character = liege - } - } - start_scheme = { - type = learn_language - target_character = liege - } - } - 5 = { - trigger = { - OR = { - has_trait = arrogant - has_trait = arbitrary - has_trait = lazy - has_trait = fickle - } - } - } - } - } - } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = chaplain - - barbershop_data = { - position = { 1618.0 172.0 } - click_to_front = no - } -} - -councillor_spouse = { - auto_fill = yes - can_fire = { councillor_spouse_can_fire = yes } - can_reassign = { councillor_spouse_can_reassign = yes } - - name = { - first_valid = { - triggered_desc = { - trigger = { - NOT = { exists = scope:councillor } - } - desc = councillor_spouse - } - triggered_desc = { - trigger = { scope:councillor = { is_male = yes } } - desc = { - first_valid = { - #Mongol All - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_mongol } - } - desc = baron_feudal_male_mongol - } - #Saxon Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_sogdian } - } - desc = duke_feudal_male_sogdian - } - #Saxon Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_anglo_saxon } - } - desc = baron_feudal_male_anglo_saxon - } - #English Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - OR = { - culture = { has_name_list = name_list_english } - culture = { has_name_list = name_list_anglo_saxon } - culture = { has_name_list = name_list_irish } - culture = { has_name_list = name_list_pictish } - culture = { has_name_list = name_list_scottish } - culture = { has_name_list = name_list_gaelic } - } - } - desc = count_feudal_male_english - } - - #Tibetan Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = emperor_feudal_male_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = king_feudal_male_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = duke_feudal_male_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = count_feudal_male_tibetan_group - } - #West-African Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = king_feudal_male_west_african_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = duke_feudal_male_west_african_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = count_feudal_male_west_african_group - } - #Dravidian/Indo-Aryan Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = emperor_feudal_male_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = king_feudal_male_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = duke_feudal_male_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = count_feudal_male_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = baron_feudal_male_dravidian_group - } - - #Mongolic and Turkic All - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_mongolic - has_cultural_pillar = heritage_turkic - } - } - } - desc = emperor_feudal_male_altaic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_mongolic - has_cultural_pillar = heritage_turkic - } - } - } - desc = king_feudal_male_altaic_group - } - #Iranian Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = emperor_feudal_male_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = king_feudal_male_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = duke_feudal_male_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = count_feudal_male_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = baron_feudal_male_iranian_group - } - - #Turkish Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = emperor_feudal_male_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = king_feudal_male_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = duke_feudal_male_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = count_feudal_male_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = baron_feudal_male_turkish - } - #Arabic Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = king_republic_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = duke_republic_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = count_republic_male_arabic_group - } - #Arabic Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = emperor_feudal_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = king_feudal_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = duke_feudal_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = count_feudal_male_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = baron_feudal_male_arabic_group - } - - #Russian Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_russian } - } - desc = emperor_feudal_male_russian - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_russian } - } - desc = duke_feudal_male_russian - } - #Norse Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_norse } - } - desc = count_feudal_male_norse - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_norse } - } - desc = baron_feudal_male_norse - } - #German Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_cultural_pillar = heritage_central_germanic } - } - desc = emperor_feudal_male_german - } - #Byzantine Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_byzantine } - } - desc = king_republic_male_byzantine_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_byzantine } - } - desc = duke_republic_male_byzantine_group - } - #Greek Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_greek } - } - desc = emperor_feudal_male_greek - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_greek } - } - desc = king_feudal_male_greek - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_greek } - } - desc = duke_feudal_male_greek - } - #Roman Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = emperor_republic_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = king_republic_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = duke_republic_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = count_republic_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = baron_republic_male_roman - } - #Roman Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = emperor_feudal_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = king_feudal_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = duke_feudal_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = count_feudal_male_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = baron_feudal_male_roman - } - #Latin Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_latin } - } - desc = king_republic_male_latin_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_latin } - } - desc = duke_republic_male_latin_group - } - #Tribal Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_tribal - } - desc = emperor_tribal_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_tribal - } - desc = king_tribal_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_tribal - } - desc = duke_tribal_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_tribal - } - desc = count_tribal_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_tribal - } - desc = baron_tribal_male - } - #Clan Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_clan - } - desc = emperor_clan_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_clan - } - desc = king_clan_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_clan - } - desc = duke_clan_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_clan - } - desc = count_clan_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_clan - } - desc = baron_clan_male - } - #Republic Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_republic - } - desc = emperor_republic_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - } - desc = king_republic_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - } - desc = duke_republic_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - } - desc = count_republic_male - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_republic - } - desc = baron_republic_male - } - - #Admin/Ceremonial Regent - triggered_desc = { - trigger = { - is_governor = yes - tgp_is_ceremonial_regent_trigger = yes - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - } - } - desc = councillor_spouse - } - - #Feudal/Default Fallback - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - tgp_is_any_minister = yes - } - } - desc = councillor_spouse_emperor - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_king - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_duke - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_count - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_baron - } - triggered_desc = { - trigger = { highest_held_title_tier >= tier_kingdom } - desc = councillor_spouse_prince_consort - } - desc = councillor_spouse_consort - } - } - } - desc = { - first_valid = { - #Saxon Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_anglo_saxon } - } - desc = baron_feudal_female_anglo_saxon - } - #Tibetan Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = emperor_feudal_female_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = king_feudal_female_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = duke_feudal_female_tibetan_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_tibetan } - } - desc = count_feudal_female_tibetan_group - } - #West-African Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = king_feudal_female_west_african_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = duke_feudal_female_west_african_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_west_african - has_cultural_pillar = heritage_sahelian - has_cultural_pillar = heritage_senegambian - has_cultural_pillar = heritage_akan - } - } - } - desc = count_feudal_female_west_african_group - } - #Dravidian/Indo-Aryan Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = emperor_feudal_female_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = king_feudal_female_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = duke_feudal_female_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = count_feudal_female_dravidian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_dravidian - has_cultural_pillar = heritage_indo_aryan - } - } - } - desc = baron_feudal_female_dravidian_group - } - - #Mongolic and Turkic All - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_mongolic - has_cultural_pillar = heritage_turkic - } - } - } - desc = emperor_feudal_female_altaic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_tribal - } - culture = { - OR = { - has_cultural_pillar = heritage_mongolic - has_cultural_pillar = heritage_turkic - } - } - } - desc = king_feudal_female_altaic_group - } - #Iranian non-Muslim Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - } - desc = emperor_feudal_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead - } - desc = king_feudal_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead - } - desc = duke_feudal_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead - } - desc = count_feudal_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - NOT = { religion = religion:islam_religion } # Uses persianized arabic titles instead - } - desc = baron_feudal_female_iranian_group - } - - #Iranian Muslim Feudal/Clan - #Empire-tier titles use same loc as non-Muslim - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - religion = religion:islam_religion - } - desc = king_feudal_muslim_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - religion = religion:islam_religion - } - desc = duke_feudal_muslim_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - religion = religion:islam_religion - } - desc = count_feudal_muslim_female_iranian_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_iranian } - religion = religion:islam_religion - } - desc = baron_feudal_muslim_female_iranian_group - } - - #Turkish Feudal/Clan - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = emperor_feudal_female_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = king_feudal_female_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = duke_feudal_female_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = count_feudal_female_turkish - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - } - culture = { has_name_list = name_list_turkish } - } - desc = baron_feudal_female_turkish - } - #Arabic Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = king_republic_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = duke_republic_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_arabic } - } - desc = count_republic_female_arabic_group - } - #Arabic Feudal/Clan/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = emperor_feudal_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = king_feudal_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = duke_feudal_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = count_feudal_female_arabic_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - government_has_flag = government_is_clan - } - culture = { has_cultural_pillar = heritage_arabic } - } - desc = baron_feudal_female_arabic_group - } - - #Russian Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_russian } - } - desc = emperor_feudal_female_russian - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_russian } - } - desc = duke_feudal_female_russian - } - #Norse Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_norse } - } - desc = count_feudal_female_norse - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_name_list = name_list_norse } - } - desc = baron_feudal_female_norse - } - #German Feudal/Tribal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_tribal - } - culture = { has_cultural_pillar = heritage_central_germanic } - } - desc = emperor_feudal_female_german - } - #Byzantine Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_byzantine } - } - desc = king_republic_female_byzantine_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_byzantine } - } - desc = duke_republic_female_byzantine_group - } - #Greek Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_greek } - } - desc = emperor_feudal_female_greek - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_greek } - } - desc = king_feudal_female_greek - } - #Roman Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = emperor_republic_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = king_republic_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = duke_republic_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = count_republic_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_republic - culture = { has_name_list = name_list_roman } - } - desc = baron_republic_female_roman - } - #Roman Feudal - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = emperor_feudal_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = king_feudal_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = duke_feudal_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = count_feudal_female_roman - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_feudal - culture = { has_name_list = name_list_roman } - } - desc = baron_feudal_female_roman - } - #Latin Republic - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_latin } - } - desc = king_republic_female_latin_group - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - culture = { has_cultural_pillar = heritage_latin } - } - desc = duke_republic_female_latin_group - } - #Tribal Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_tribal - } - desc = emperor_tribal_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_tribal - } - desc = king_tribal_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_tribal - } - desc = duke_tribal_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_tribal - } - desc = count_tribal_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_tribal - } - desc = baron_tribal_female - } - #Clan Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_clan - } - desc = emperor_clan_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_clan - } - desc = king_clan_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_clan - } - desc = duke_clan_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_clan - } - desc = count_clan_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_clan - } - desc = baron_clan_female - } - #Republic Default - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - government_has_flag = government_is_republic - } - desc = emperor_republic_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - government_has_flag = government_is_republic - } - desc = king_republic_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - government_has_flag = government_is_republic - } - desc = duke_republic_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - government_has_flag = government_is_republic - } - desc = count_republic_female - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - government_has_flag = government_is_republic - } - desc = baron_republic_female - } - - #Admin / Ceremonial Regent - triggered_desc = { - trigger = { - OR = { - is_governor = yes - tgp_is_ceremonial_regent_trigger = yes - } - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - } - } - desc = councillor_spouse - } - - #Feudal/Default Fallback - triggered_desc = { - trigger = { - highest_held_title_tier = tier_empire - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - tgp_is_any_minister = yes - } - } - desc = councillor_spouse_empress - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_kingdom - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_queen - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_duchy - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_duchess - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_county - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_countess - } - triggered_desc = { - trigger = { - highest_held_title_tier = tier_barony - NOR = { #The following governments have "Spouses" - government_has_flag = government_is_theocracy - government_has_flag = government_is_mercenary - government_has_flag = government_is_holy_order - AND = { - is_independent_ruler = no - government_allows = administrative - } - } - } - desc = councillor_spouse_baroness - } - desc = councillor_spouse_consort - } - } - } - } - - tooltip = game_concept_spouse_desc - - valid_position = { - councillor_spouse_valid_position = yes - } - - valid_character = { - exists = liege - can_be_spouse_councillor_trigger = { COUNCIL_OWNER = liege } - tgp_is_ceremonial_liege_trigger = no - } - - on_get_position = { - set_variable = { - name = councillor_spouse_lifestyle_progress - value = 0 - } -# if = { -# limit = { -# primary_spouse.primary_title = title:e_hre -# } -# debug_log = "Set new Spouse council position" -# debug_log_scopes = yes -# } - trigger_event = councillor_spouse_background.0001 - } - - on_lose_position = { - remove_variable = councillor_spouse_lifestyle_progress - } - - on_fired_from_position = { - remove_variable = councillor_spouse_lifestyle_progress - } - - barbershop_data = { - position = { 763.0 261.00 } - click_to_front = yes - } -} - -councillor_vizier = { - auto_fill = yes - can_fire = yes - can_reassign = yes - - name = councillor_vizier - tooltip = councillor_vizier_desc - - valid_position = { - government_has_flag = may_appoint_viziers - } - - valid_character = { - exists = liege_or_court_owner - can_be_vizier_councillor_trigger = { COUNCIL_OWNER = liege_or_court_owner } - } - - on_get_position = { - set_variable = { - name = councillor_vizier_lifestyle_progress - value = 0 - } - } - - on_lose_position = { - remove_variable = councillor_vizier_lifestyle_progress - } - - on_fired_from_position = { - remove_variable = councillor_vizier_lifestyle_progress - } - - barbershop_data = { - position = { 763.0 261.00 } - click_to_front = yes - } -} - -councillor_kurultai_1 = { - name = councillor_kurultai - tooltip = game_concept_kurultai_desc - - valid_position = { - government_has_flag = government_is_nomadic - } - - valid_character = { - exists = root.liege_or_court_owner - can_be_kurultai_trigger = { - COURT_OWNER = root.liege_or_court_owner - CP1 = councillor_kurultai_2 - CP2 = councillor_kurultai_3 - CP3 = councillor_kurultai_4 - } - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = kurultai_chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = kurultai_steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = kurultai_marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - learning = 1 - scale = kurultai_court_chaplain_learn_on_the_job_scale - } - - modifier = { - name = councillor_kurultai_modifier - monthly_income = 0.5 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - herd_gain_mult = 0.05 - herd_capacity_mult = 0.05 - scale = council_scaled_by_liege_tier_nomad - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - levy_size = 0.05 - scale = council_scaled_by_liege_tier_not_nomad - } - - - modifier = { - name = councillor_kurultai_modifier - fellow_vassal_opinion = 10 - } - - on_get_position = { - got_council_position_effect = yes - } - - on_fired_from_position = { - if = { - limit = { - exists = root.liege_or_court_owner - liege_or_court_owner = { is_ai = no } - } - liege_or_court_owner = { - add_prestige = major_prestige_loss - } - } - fired_from_council_position_effect = yes - } - - portrait_animation = survey - - barbershop_data = { - position = { 918.0 172.0 } - click_to_front = no - } -} - -councillor_kurultai_2 = { - name = councillor_kurultai - tooltip = game_concept_kurultai_desc - - valid_position = { - government_has_flag = government_is_nomadic - } - - valid_character = { - exists = root.liege_or_court_owner - can_be_kurultai_trigger = { - COURT_OWNER = root.liege_or_court_owner - CP1 = councillor_kurultai_1 - CP2 = councillor_kurultai_3 - CP3 = councillor_kurultai_4 - } - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = kurultai_chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = kurultai_steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = kurultai_marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - learning = 1 - scale = kurultai_court_chaplain_learn_on_the_job_scale - } - - modifier = { - name = councillor_kurultai_modifier - monthly_income = 0.5 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - herd_gain_mult = 0.05 - herd_capacity_mult = 0.05 - scale = council_scaled_by_liege_tier_nomad - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - levy_size = 0.05 - scale = council_scaled_by_liege_tier_not_nomad - } - - - modifier = { - name = councillor_kurultai_modifier - fellow_vassal_opinion = 10 - } - - on_get_position = { - got_council_position_effect = yes - } - - on_fired_from_position = { - if = { - limit = { - exists = root.liege_or_court_owner - liege_or_court_owner = { is_ai = no } - } - liege_or_court_owner = { - add_prestige = major_prestige_loss - } - } - fired_from_council_position_effect = yes - } - - portrait_animation = hunting_falcon - - barbershop_data = { - position = { 1268.0 172.0 } - click_to_front = no - } -} - -councillor_kurultai_3 = { - name = councillor_kurultai - tooltip = game_concept_kurultai_desc - - valid_position = { - government_has_flag = government_is_nomadic - } - - valid_character = { - exists = root.liege_or_court_owner - can_be_kurultai_trigger = { - COURT_OWNER = root.liege_or_court_owner - CP1 = councillor_kurultai_1 - CP2 = councillor_kurultai_2 - CP3 = councillor_kurultai_4 - } - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = kurultai_chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = kurultai_steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = kurultai_marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - learning = 1 - scale = kurultai_court_chaplain_learn_on_the_job_scale - } - - modifier = { - name = councillor_kurultai_modifier - monthly_income = 0.5 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - herd_gain_mult = 0.05 - herd_capacity_mult = 0.05 - scale = council_scaled_by_liege_tier_nomad - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - levy_size = 0.05 - scale = council_scaled_by_liege_tier_not_nomad - } - - - modifier = { - name = councillor_kurultai_modifier - fellow_vassal_opinion = 10 - } - - on_get_position = { - got_council_position_effect = yes - } - - on_fired_from_position = { - if = { - limit = { - exists = root.liege_or_court_owner - liege_or_court_owner = { is_ai = no } - } - liege_or_court_owner = { - add_prestige = major_prestige_loss - } - } - fired_from_council_position_effect = yes - } - - portrait_animation = hunting_shortbow_aim_arrow_default - - barbershop_data = { - position = { 1618.0 172.0 } - click_to_front = no - } -} - -councillor_kurultai_4 = { - name = councillor_kurultai - tooltip = game_concept_kurultai_desc - - valid_position = { - government_has_flag = government_is_nomadic - } - - valid_character = { - exists = root.liege_or_court_owner - can_be_kurultai_trigger = { - COURT_OWNER = root.liege_or_court_owner - CP1 = councillor_kurultai_1 - CP2 = councillor_kurultai_2 - CP3 = councillor_kurultai_3 - } - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = kurultai_chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = kurultai_steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = kurultai_marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - learning = 1 - scale = kurultai_court_chaplain_learn_on_the_job_scale - } - - modifier = { - name = councillor_kurultai_modifier - monthly_income = 0.5 - scale = council_scaled_monthly_income - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - herd_gain_mult = 0.05 - herd_capacity_mult = 0.05 - scale = council_scaled_by_liege_tier_nomad - } - - modifier = { - name = councillor_kurultai_modifier - monthly_prestige = 0.15 - levy_size = 0.05 - scale = council_scaled_by_liege_tier_not_nomad - } - - - modifier = { - name = councillor_kurultai_modifier - fellow_vassal_opinion = 10 - } - - on_get_position = { - got_council_position_effect = yes - } - - on_fired_from_position = { - if = { - limit = { - exists = root.liege_or_court_owner - liege_or_court_owner = { is_ai = no } - } - liege_or_court_owner = { - add_prestige = major_prestige_loss - } - } - fired_from_council_position_effect = yes - } - - portrait_animation = shepherd_with_sheep - - barbershop_data = { - position = { 558.0 172.0 } - click_to_front = no - } -} diff --git a/common/council_positions/01_ministry_positions.txt b/common/council_positions/01_ministry_positions.txt deleted file mode 100644 index e23a8450..00000000 --- a/common/council_positions/01_ministry_positions.txt +++ /dev/null @@ -1,300 +0,0 @@ -minister_personnel = { - skill = diplomacy - - name = minister_personnel - - valid_position = { - tgp_has_access_to_ministry_trigger = yes - } - - tooltip = game_concept_minister_of_personnel_desc - - auto_fill = { - } - - modifier = { - name = minister_personnel_modifier - fellow_vassal_opinion = 5 - monthly_diplomacy_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = minister_personnel_modifier - monthly_prestige = 1 - scale = council_scaled_monthly_income - } - - modifier = { - name = minister_personnel_modifier - monthly_influence = 1 - enemy_political_scheme_success_chance_max_add = -5 - scale = council_scaled_admin_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - diplomacy = 1 - scale = chancellor_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_personnel MINISTER_POSITION = minister_personnel } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = happy_teacher - - barbershop_data = { - position = { 918.0 172.0 } - click_to_front = no - } -} - -minister_justice = { - skill = learning - - name = minister_justice - - valid_position = { - tgp_has_access_to_ministry_trigger = yes - } - - tooltip = game_concept_minister_of_justice_desc - - auto_fill = { - } - - modifier = { - name = minister_justice_modifier - fellow_vassal_opinion = 5 - monthly_diplomacy_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = minister_justice_modifier - monthly_prestige = 1 - scale = council_scaled_monthly_income - } - - modifier = { - name = minister_justice_modifier - monthly_influence = 1 - enemy_political_scheme_success_chance_max_add = -5 - scale = council_scaled_admin_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - diplomacy = 1 - scale = chancellor_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - diplomacy = 1 - scale = chancellor_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_justice MINISTER_POSITION = minister_justice } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = page_flipping - - barbershop_data = { - position = { 918.0 172.0 } - click_to_front = no - } -} - -minister_works = { - skill = stewardship - - name = minister_works - - tooltip = game_concept_minister_of_works_desc - - auto_fill = { - } - - valid_position = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - name = minister_works_modifier - build_gold_cost = -0.03 - build_speed = -0.02 - monthly_stewardship_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = minister_works_modifier - monthly_influence = 1 - domicile_build_gold_cost = -0.05 - scale = council_scaled_admin_value - } - - modifier = { # Minister modifiers - name = minister_works_modifier - monthly_merit = 1 - scale = council_scaled_celestial_ministry_value - } - - modifier = { # Favored minister modifiers - name = minister_works_modifier - monthly_influence = 1 - monthly_treasury_from_ministry_budget_base = 0.25 - scale = council_scaled_celestial_ministry_favored_value - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - stewardship = 1 - scale = steward_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - stewardship = 1 - scale = steward_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - tgp_can_be_a_minister_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_of_works MINISTER_POSITION = minister_works } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = minister_works - - barbershop_data = { - position = { 1268.0 172.0 } - click_to_front = no - } -} - -minister_grand_marshal = { - skill = martial - - name = minister_grand_marshal - - tooltip = game_concept_minister_grand_marshal_desc - - auto_fill = { - } - - valid_position = { - tgp_has_access_to_ministry_trigger = yes - } - - modifier = { - name = minister_grand_marshal_modifier - army_maintenance_mult = -0.06 - monthly_martial_lifestyle_xp_gain_mult = 0.05 - scale = council_scaled_by_liege_tier - } - - modifier = { - name = minister_grand_marshal_modifier - monthly_influence = 1 - maa_toughness_mult = 0.04 - scale = council_scaled_admin_value - } - - modifier = { # Minister modifiers - name = minister_grand_marshal_modifier - monthly_merit = 1 - scale = council_scaled_celestial_ministry_value - } - - modifier = { - name = minister_grand_marshal_modifier - men_at_arms_recruitment_cost = -0.15 - } - - council_owner_modifier = { - name = learn_on_the_job_modifier - martial = 1 - scale = marshal_learn_on_the_job_scale - } - - council_owner_modifier = { - name = reliable_house_modifier - martial = 1 - scale = marshal_reliable_house_scale - } - - valid_character = { - exists = root.liege_or_court_owner - tgp_can_be_grand_marshal_trigger = { COURT_OWNER = root.liege_or_court_owner } - } - - on_get_position = { - got_council_position_effect = yes - got_minister_position_effect = { MINISTER_TITLE = e_minister_grand_marshal MINISTER_POSITION = minister_grand_marshal } - } - - on_fired_from_position = { - fired_from_council_position_effect = yes - } - - on_lose_position = { - fired_minister_position_effect = yes - } - - portrait_animation = grand_marshal - - barbershop_data = { - position = { 1268.0 172.0 } - click_to_front = no - } -} diff --git a/common/culture/creation_names/00_names.txt b/common/culture/creation_names/00_names.txt deleted file mode 100644 index a5cea73e..00000000 --- a/common/culture/creation_names/00_names.txt +++ /dev/null @@ -1,1663 +0,0 @@ -# Used in definition order - -nomadic_house_name = { - trigger = { - government_has_flag = government_is_nomadic - } -} -# -#scanian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_skane = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_skane -# } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_north_germanic } -# duchy = title:d_skane -# } -# scope:culture = { has_cultural_pillar = heritage_north_germanic } -# } -#} -# -#beta_israeli = { -# trigger = { -# faith.religion = religion:judaism_religion -# scope:culture = { has_cultural_pillar = heritage_east_african } -# } -#} -# -#avadhi = { -# trigger = { -# OR = { -# capital_county = { -# title:k_kosala = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_kosala -# } -# culture = { has_cultural_pillar = heritage_indo_aryan } -# any_sub_realm_county = { -# culture = scope:culture -# kingdom = title:k_kosala -# } -# } -#} -# -#malayali = { -# trigger = { -# OR = { -# capital_county = { -# title:d_chera_nadu = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_chera_nadu -# } -# culture = culture:tamil -# any_sub_realm_county = { -# culture = culture:tamil -# duchy = title:d_chera_nadu -# } -# } -#} -# -#hejazi = { -# trigger = { -# OR = { -# capital_county = { -# title:d_mecca = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_medina = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_mecca -# has_primary_title = title:d_medina -# } -# culture = culture:bedouin -# any_sub_realm_county = { -# culture = culture:bedouin -# OR = { -# duchy = title:d_mecca -# duchy = title:d_medina -# } -# } -# } -#} -# -#szekely = { -# trigger = { -# OR = { -# capital_county = { -# title:d_transylvania = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_transylvanian_alps = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_transylvania -# has_primary_title = title:d_transylvanian_alps -# } -# culture = culture:hungarian -# any_sub_realm_county = { -# culture = culture:hungarian -# OR = { -# duchy = title:d_transylvania -# duchy = title:d_transylvanian_alps -# } -# } -# } -#} -#maithili = { -# trigger = { -# OR = { -# capital_county = { -# title:d_tirabhukti = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_tirabhukti -# } -# OR = { -# culture = culture:bengali -# culture = culture:nepali -# } -# any_sub_realm_county = { -# OR = { -# culture = culture:bengali -# culture = culture:nepali -# } -# duchy = title:d_tirabhukti -# } -# } -#} -# -#bihari = { -# trigger = { -# OR = { -# capital_county = { -# title:d_magadha = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_tirabhukti = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_kasi = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_magadha -# has_primary_title = title:d_tirabhukti -# has_primary_title = title:d_kasi -# } -# scope:culture = { has_cultural_pillar = heritage_indo_aryan } -# any_sub_realm_county = { -# culture = scope:culture -# or = { -# duchy = title:d_magadha -# duchy = title:d_tirabhukti -# duchy = title:d_kasi -# } -# } -# } -#} -# -# -#azeri = { -# trigger = { -# OR = { -# capital_county = { -# title:d_shirvan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_azerbaijan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_shirvan -# has_primary_title = title:d_azerbaijan -# } -# scope:culture = { has_cultural_pillar = heritage_turkic } -# any_sub_realm_county = { -# culture = scope:culture -# OR = { -# duchy = title:d_shirvan -# duchy = title:d_azerbaijan -# } -# } -# } -#} -# -#dhundari = { -# trigger = { -# OR = { -# capital_county = { -# title:d_ajmer = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_ajmer -# } -# culture = culture:rajput -# any_sub_realm_county = { -# culture = culture:rajput -# duchy = title:d_ajmer -# } -# } -#} -# -#mewari = { -# trigger = { -# OR = { -# capital_county = { -# title:d_medapata = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_medapata -# } -# culture = culture:rajput -# any_sub_realm_county = { -# culture = culture:rajput -# duchy = title:d_medapata -# } -# } -#} -# -#marwari = { -# trigger = { -# OR = { -# capital_county = { -# title:d_maru = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_stravani = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_maru -# has_primary_title = title:d_stravani -# } -# culture = culture:rajput -# any_sub_realm_county = { -# culture = culture:rajput -# OR = { -# duchy = title:d_maru -# duchy = title:d_stravani -# } -# } -# } -#} -# -#nimadi = { -# trigger = { -# OR = { -# capital_county = { -# title:d_anupa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_anupa -# } -# OR ={ -# culture = culture:marathi -# culture = culture:malvi -# } -# any_sub_realm_county = { -# OR ={ -# culture = culture:marathi -# culture = culture:malvi -# } -# duchy = title:d_anupa -# } -# } -#} -# -#kathiawari = { -# trigger = { -# OR = { -# capital_county = { -# title:d_anartta = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_saurashtra = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_anartta -# has_primary_title = title:d_saurashtra -# } -# culture = culture:gujarati -# any_sub_realm_county = { -# culture = culture:gujarati -# OR = { -# duchy = title:d_anartta -# duchy = title:d_saurashtra -# } -# } -# } -#} -# -#kabylian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_kroumerie = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_bejaia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_zab = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_kroumerie -# has_primary_title = title:d_bejaia -# has_primary_title = title:d_zab -# } -# OR = { -# culture = culture:butr -# culture = culture:baranis -# } -# any_sub_realm_county = { -# OR ={ -# culture = culture:butr -# culture = culture:baranis -# } -# OR = { -# duchy = title:d_kroumerie -# duchy = title:d_bejaia -# duchy = title:d_zab -# } -# } -# } -#} -# -#austrian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_osterreich = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_salzburg = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_steyermark = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_carinthia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_osterreich -# has_primary_title = title:d_salzburg -# has_primary_title = title:d_steyermark -# has_primary_title = title:d_carinthia -# has_primary_title = title:k_austria -# } -# culture = { has_cultural_pillar = heritage_central_germanic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_central_germanic } -# OR = { -# duchy = title:d_osterreich -# duchy = title:d_salzburg -# duchy = title:d_steyermark -# duchy = title:d_carinthia -# } -# } -# } -#} -# -#burgundian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_burgundy = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_upper_burgundy = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_burgundy -# has_primary_title = title:d_upper_burgundy -# } -# culture = { has_cultural_pillar = heritage_frankish } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_frankish } -# OR = { -# duchy = title:d_burgundy -# duchy = title:d_upper_burgundy -# } -# } -# } -#} -# -#arpitan = { -# trigger = { -# OR = { -# capital_county = { -# title:d_dauphine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_savoie = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_provence = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_dauphine -# has_primary_title = title:d_savoie -# has_primary_title = title:d_provence -# } -# culture = { has_cultural_pillar = heritage_frankish } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_frankish } -# OR = { -# duchy = title:d_dauphine -# duchy = title:d_savoie -# duchy = title:d_provence -# } -# } -# } -#} -# -#lothringian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_upper_lorraine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_lower_lorraine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_lower_lorraine -# has_primary_title = title:d_upper_lorraine -# } -# culture = { has_cultural_pillar = heritage_central_germanic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_central_germanic } -# OR = { -# duchy = title:d_lower_lorraine -# duchy = title:d_upper_lorraine -# } -# } -# } -#} -# -#lorrainian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_upper_lorraine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_lower_lorraine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_lower_lorraine -# has_primary_title = title:d_upper_lorraine -# } -# any_sub_realm_county = { -# OR = { -# duchy = title:d_lower_lorraine -# duchy = title:d_upper_lorraine -# } -# } -# } -#} -# -#angevin = { -# trigger = { -# OR = { -# capital_county = { -# title:d_anjou = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_anjou -# } -# culture = culture:french -# any_sub_realm_county = { -# culture = culture:french -# duchy = title:d_anjou -# } -# } -#} -# -#provancale = { -# trigger = { -# OR = { -# capital_county = { -# title:d_provence = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_provence -# } -# OR = { -# culture = culture:occitan -# culture = culture:french -# } -# any_sub_realm_county = { -# OR = { -# culture = culture:occitan -# culture = culture:french -# } -# duchy = title:d_provence -# } -# } -#} -# -#walloon = { -# trigger = { -# OR = { -# capital_county = { -# title:d_flanders = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_brabant = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_luxembourg = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_julich = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_holland = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_flanders -# has_primary_title = title:d_brabant -# has_primary_title = title:d_luxembourg -# has_primary_title = title:d_julich -# has_primary_title = title:d_holland -# } -# culture = { has_cultural_pillar = heritage_frankish } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_frankish } -# OR ={ -# duchy = title:d_flanders -# duchy = title:d_brabant -# duchy = title:d_luxembourg -# duchy = title:d_julich -# duchy = title:d_holland -# } -# } -# } -#} -# -#flemish = { -# trigger = { -# culture = culture:dutch -# any_sub_realm_county = { -# culture = culture:dutch -# OR ={ -# duchy = title:d_flanders -# duchy = title:d_brabant -# duchy = title:d_luxembourg -# duchy = title:d_julich -# duchy = title:d_holland -# } -# } -# } -#} -# -#aquitanian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_aquitaine = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_gascogne = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_armagnac = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_aquitaine -# has_primary_title = title:d_gascogne -# has_primary_title = title:d_armagnac -# } -# culture = culture:occitan -# any_sub_realm_county = { -# culture = culture:occitan -# OR ={ -# duchy = title:d_aquitaine -# duchy = title:d_gascogne -# duchy = title:d_armagnac -# } -# } -# } -#} -# -#poitevin = { -# trigger = { -# OR = { -# capital_county = { -# title:d_poitou = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_poitou -# } -# culture = culture:french -# any_sub_realm_county = { -# culture = culture:french -# duchy = title:d_poitou -# } -# } -#} -# -#auvergnat = { -# trigger = { -# OR = { -# capital_county = { -# title:d_auvergne = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_bourbon = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_auvergne -# has_primary_title = title:d_bourbon -# } -# culture = culture:occitan -# any_sub_realm_county = { -# culture = culture:occitan -# OR = { -# duchy = title:d_auvergne -# duchy = title:d_bourbon -# } -# } -# } -#} -# -#lengadocian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_languedoc = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_toulouse = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_languedoc -# has_primary_title = title:d_toulouse -# } -# culture = culture:occitan -# any_sub_realm_county = { -# culture = culture:occitan -# OR = { -# duchy = title:d_languedoc -# duchy = title:d_toulouse -# } -# } -# } -#} -# -#mercian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_hereford = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_hereford -# } -# culture = culture:anglo_saxon -# any_sub_realm_county = { -# culture = culture:anglo_saxon -# duchy = title:d_hereford -# } -# } -#} -# -#northumbrian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_northumberland = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_york = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_lancaster = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_northumberland -# has_primary_title = title:d_york -# has_primary_title = title:d_lancaster -# } -# culture = culture:anglo_saxon -# any_sub_realm_county = { -# culture = culture:anglo_saxon -# OR = { -# duchy = title:d_northumberland -# duchy = title:d_york -# duchy = title:d_lancaster -# } -# } -# } -#} -# -#northerner = { -# trigger = { -# OR = { -# capital_county = { -# title:d_northumberland = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_york = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_lancaster = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_northumberland -# has_primary_title = title:d_york -# has_primary_title = title:d_lancaster -# } -# culture = culture:english -# any_sub_realm_county = { -# culture = culture:english -# OR = { -# duchy = title:d_northumberland -# duchy = title:d_york -# duchy = title:d_lancaster -# } -# } -# } -#} -# -#silesian = { -# trigger = { -# OR = { -# culture = culture:polish -# culture = culture:czech -# } -# any_sub_realm_county = { -# OR = { -# culture = culture:polish -# culture = culture:czech -# } -# OR = { -# duchy = title:d_upper_silesia -# duchy = title:d_lower_silesia -# } -# } -# } -#} -# -# -#ruthenian = { -# trigger = { -# culture = culture:russian -# any_sub_realm_county = { -# culture = culture:russian -# OR = { -# duchy = title:d_kiev -# duchy = title:d_halych -# duchy = title:d_cherven_cities -# duchy = title:d_volhynia -# duchy = title:d_turov -# duchy = title:d_pinsk -# duchy = title:d_minsk -# duchy = title:d_grodno -# duchy = title:d_chernigov -# duchy = title:d_pereyaslavl -# duchy = title:d_yedisan -# duchy = title:d_levedia -# duchy = title:d_voronezh -# duchy = title:d_khopyor -# duchy = title:d_don_valley -# } -# } -# } -#} -# -#belarusian = { #Aka white ruthenian -# trigger = { -# culture = culture:russian -# any_sub_realm_county = { -# culture = culture:russian -# OR = { -# duchy = title:d_pinsk -# duchy = title:d_minsk -# duchy = title:d_grodno -# } -# } -# } -#} -# -#red_ruthenian = { -# trigger = { -# culture = culture:russian -# any_sub_realm_county = { -# culture = culture:russian -# OR = { -# duchy = title:d_halych -# duchy = title:d_cherven_cities -# } -# } -# } -#} -# -#munda = { -# trigger = { -# culture = culture:bengali -# any_sub_realm_county = { -# culture = culture:bengali -# duchy = title:d_jharkand -# } -# } -#} -# -#shirvani = { -# trigger = { -# culture = culture:persian -# any_sub_realm_county = { -# culture = culture:persian -# duchy = title:d_shirvan -# } -# } -#} -# -#pontic = { -# trigger = { -# OR = { -# culture = culture:greek -# culture = { any_parent_culture_or_above = { this = culture:greek } } -# } -# OR = { -# capital_county = { -# title_province = { geographical_region = world_steppe } -# } -# capital_county = { -# title:k_pontus = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_pontus -# capital_county = { -# title:d_chaldia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:d_chaldia -# } -# } -#} -# -#novgorodian = { -# trigger = { -# culture = culture:russian -# any_sub_realm_county = { -# culture = culture:russian -# duchy = title:d_novgorod -# } -# } -#} -# -#geatish = { -# trigger = { -# culture = culture:swedish -# any_sub_realm_county = { -# culture = culture:swedish -# OR = { -# duchy = title:d_smaland -# duchy = title:d_vastergotland -# duchy = title:d_ostergotland -# } -# } -# } -#} -# -#gutish = { -# trigger = { -# culture = culture:swedish -# any_sub_realm_county = { -# culture = culture:swedish -# duchy = title:d_gotland -# } -# } -#} -# -#venetian = { -# trigger = { -# culture = { has_cultural_pillar = heritage_latin } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_latin } -# duchy = title:d_venice -# } -# } -#} -# -#mervi = { -# trigger = { -# culture = { has_cultural_pillar = heritage_iranian } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_iranian } -# duchy = title:d_merv -# } -# } -#} -# -#parsi = { -# trigger = { -# capital_county = { -# title_province = { geographical_region = world_india } -# } -# faith = { religion_tag = zoroastrianism_religion } -# any_sub_realm_county = { -# faith = { religion_tag = zoroastrianism_religion } -# title_province = { geographical_region = world_india } -# } -# } -#} -# -#icelandic = { -# trigger = { -# OR = { -# capital_county = { -# title:d_iceland = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_iceland -# } -# culture = { has_cultural_pillar = heritage_north_germanic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_north_germanic } -# duchy = title:d_iceland -# } -# } -#} -# -#omani = { -# trigger = { -# OR = { -# capital_county = { -# title:d_oman = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_oman -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_arabic } -# duchy = title:d_oman -# } -# } -#} -# -#khaleeji = { -# trigger = { -# OR = { -# capital_county = { -# title:d_al-hasa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_bahrain = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_khuzestan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_hormuz = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_fars = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_al-hasa -# has_primary_title = title:d_bahrain -# has_primary_title = title:d_khuzestan -# has_primary_title = title:d_hormuz -# has_primary_title = title:d_fars -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_arabic } -# OR = { -# duchy = title:d_al-hasa -# duchy = title:d_bahrain -# duchy = title:d_khuzestan -# duchy = title:d_hormuz -# duchy = title:d_fars -# } -# } -# } -#} -# -#mahri = { -# trigger = { -# OR = { -# capital_county = { -# title:d_mahra = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_mahra -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_arabic } -# duchy = title:d_mahra -# } -# } -#} -# -#gorani = { -# trigger = { -# OR = { -# capital_county = { -# title:d_kermanshah = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_kermanshah -# } -# culture = culture:kurdish -# any_sub_realm_county = { -# culture = culture:kurdish -# culture = culture:kurdish -# } -# } -#} -# -#luri = { -# trigger = { -# OR = { -# capital_county = { -# title:d_khuzestan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_kermanshah = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_khuzestan -# has_primary_title = title:d_kermanshah -# } -# culture = { has_cultural_pillar = heritage_iranian } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_iranian } -# OR ={ -# duchy = title:d_khuzestan -# duchy = title:d_kermanshah -# } -# } -# } -#} -# -#tabari = { #or Mazandarani -# trigger = { -# OR = { -# capital_county = { -# title:d_tabaristan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_daylam = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_tabaristan -# has_primary_title = title:d_daylam -# } -# culture = { has_cultural_pillar = heritage_iranian } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_iranian } -# OR ={ -# duchy = title:d_tabaristan -# duchy = title:d_daylam -# } -# } -# } -#} -# -#ligurian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_genoa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_genoa -# } -# culture = { has_cultural_pillar = heritage_latin } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_latin } -# duchy = title:d_genoa -# } -# } -#} -# -#romagnol = { -# trigger = { -# OR = { -# capital_county = { -# title:d_romagna = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_emilia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_romagna -# has_primary_title = title:d_emilia -# } -# culture = { has_cultural_pillar = heritage_latin } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_latin } -# OR = { -# duchy = title:d_romagna -# duchy = title:d_emilia -# } -# } -# } -#} -# -#tuscan = { -# trigger = { -# OR = { -# capital_county = { -# title:d_toscana = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_pisa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_toscana -# has_primary_title = title:d_pisa -# } -# culture = { has_cultural_pillar = heritage_latin } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_latin } -# OR = { -# duchy = title:d_toscana -# duchy = title:d_pisa -# } -# } -# } -#} -# -#umbrian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_spoleto = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_spoleto -# } -# culture = { has_cultural_pillar = heritage_latin } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_latin } -# duchy = title:d_spoleto -# } -# } -#} -# -#new_english = { -# trigger = { -# capital_county = { -# title_province = { -# geographical_region = world_steppe -# } -# } -# culture = { has_cultural_pillar = heritage_west_germanic } -# any_sub_realm_county = { -# title_province = { -# geographical_region = world_steppe -# } -# } -# } -#} -# -#moroccan = { -# trigger = { -# OR = { -# capital_county = { -# title:k_maghreb = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_maghreb -# } -# any_sub_realm_county = { -# title:k_maghreb = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#algerian = { -# trigger = { -# OR = { -# capital_county = { -# title:k_tahert = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_tahert -# } -# any_sub_realm_county = { -# title:k_tahert = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#tripolitanian = { -# trigger = { -# OR = { -# capital_county = { -# title:d_syrte = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_fezzan = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_cyrenaica = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:d_syrte -# primary_title = title:d_fezzan -# primary_title = title:d_cyrenaica -# } -# any_sub_realm_county = { -# OR = { -# title:d_syrte = { -# is_de_jure_liege_or_above_target = prev -# } -# title:d_fezzan = { -# is_de_jure_liege_or_above_target = prev -# } -# title:d_cyrenaica = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# } -#} -# -#tunisian = { -# trigger = { -# OR = { -# capital_county = { -# title:k_africa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_africa -# } -# any_sub_realm_county = { -# title:k_africa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#lebanese = { -# trigger = { -# capital_county = { -# is_coastal_county = yes -# } -# OR = { -# capital_county = { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_syria -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#syrian = { -# trigger = { -# capital_county = { -# is_coastal_county = no -# } -# OR = { -# capital_county = { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_syria -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#iraqi = { -# trigger = { -# OR = { -# capital_county = { -# title:k_mesopotamia = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_jazira = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_mesopotamia -# primary_title = title:k_jazira -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# OR = { -# title:k_mesopotamia = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_jazira = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# } -#} -# -#soqotri = { -# trigger = { -# OR = { -# capital_county = { -# title:d_socotra = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:d_socotra -# } -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title:d_socotra = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#palestinian = { -# trigger = { -# OR = { -# capital_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# primary_title = title:k_jerusalem -# primary_title = title:k_israel -# } -# faith.religion = religion:islam_religion -# culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -#} -# -#upper_saxon = { -# trigger = { -# OR = { -# capital_county = { -# title:d_thuringia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_anhalt = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_lausitz = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# capital_county = { -# title:d_meissen = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:d_thuringia -# primary_title = title:d_anhalt -# primary_title = title:d_lausitz -# primary_title = title:d_meissen -# } -# culture = culture:saxon -# } -#} -# -#dalmatian = { -# trigger = { -# capital_county = { -# title:k_croatia = { -# is_de_jure_liege_or_above_target = prev -# } -# has_coastal_province = yes -# } -# culture = { -# OR = { -# has_cultural_pillar = heritage_south_slavic -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_latin -# } -# } -# } -#} -# -#neapolitan = { -# trigger = { -# capital_county = { -# title:k_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# NOT = { -# title:d_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# culture = { -# OR = { -# has_cultural_pillar = heritage_berber -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_latin -# } -# } -# any_sub_realm_county = { -# title:d_capua = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -#} -# -#arvanite = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_albanian } -# any_sub_realm_county = { -# OR = { -# culture = culture:greek -# -# title:e_byzantium = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# } -#} -# -#griko = { -# trigger = { -# OR = { -# capital_county = { -# title:k_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_sicily -# } -# culture = culture:greek -# any_sub_realm_county = { -# culture = culture:greek -# kingdom = title:k_sicily -# } -# } -#} -# -#egyptiote = { -# trigger = { -# OR = { -# capital_county = { -# title:k_egypt = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_egypt -# } -# culture = culture:greek -# any_sub_realm_county = { -# culture = culture:greek -# kingdom = title:k_egypt -# } -# } -#} -# -#cappadocian = { -# trigger = { -# OR = { -# capital_county = { -# title:k_anatolia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_anatolia -# } -# culture = culture:greek -# any_sub_realm_county = { -# culture = culture:greek -# kingdom = title:k_anatolia -# } -# } -#} -# -#cypriot = { -# trigger = { -# OR = { -# capital_county = { -# title:k_cyprus = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_cyprus -# } -# culture = culture:greek -# any_sub_realm_county = { -# culture = culture:greek -# kingdom = title:k_cyprus -# } -# } -#} -# -#wamvita = { -# trigger = { -# OR = { -# capital_county = { -# title:d_mombasa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_mombasa -# } -# any_sub_realm_county = { -# culture = { has_cultural_pillar = heritage_bantu } -# duchy = title:d_mombasa -# } -# scope:culture = { has_cultural_pillar = heritage_bantu } -# } -#} -# \ No newline at end of file diff --git a/common/culture/creation_names/00_names_hybrid.txt b/common/culture/creation_names/00_names_hybrid.txt deleted file mode 100644 index 3a7202dc..00000000 --- a/common/culture/creation_names/00_names_hybrid.txt +++ /dev/null @@ -1,1600 +0,0 @@ -# Used in definition order - -nomadic_house_name_hybrid = { - trigger = { - government_has_flag = government_is_nomadic - } - hybrid = yes -} - -#azeri_hybrid = { -# trigger = { -# OR = { -# capital_county ?= { -# OR = { -# title:d_shirvan = { is_de_jure_liege_or_above_target = prev } -# title:d_azerbaijan = { is_de_jure_liege_or_above_target = prev } -# } -# } -# has_primary_title = title:d_shirvan -# has_primary_title = title:d_azerbaijan -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_turkic } -# scope:other_culture = { has_cultural_pillar = heritage_iranian } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_iranian } -# scope:other_culture = { has_cultural_pillar = heritage_turkic } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#anatolian_turkish = { -# trigger = { -# capital_county.title_province ?= { geographical_region = ghw_region_anatolia } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# geographical_region = ghw_region_anatolia -# } -# } -# OR = { -# scope:culture = { has_cultural_pillar = heritage_turkic } -# scope:other_culture = { has_cultural_pillar = heritage_turkic } -# } -# } -# hybrid = yes -#} -# -#norse_gael = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_goidelic } -# scope:other_culture = { has_cultural_pillar = heritage_north_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_north_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_goidelic } -# } -# } -# } -# hybrid = yes -#} -# -#danelander = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = culture:anglo_saxon -# scope:culture = culture:english -# } -# scope:other_culture = { has_cultural_pillar = heritage_north_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_north_germanic } -# OR = { -# scope:other_culture = culture:anglo_saxon -# scope:other_culture = culture:english -# } -# } -# } -# OR = { -# capital_county ?= { -# OR = { -# title:k_danelaw = { is_de_jure_liege_or_above_target = prev } -# title:k_daneland = { is_de_jure_liege_or_above_target = prev } -# } -# } -# primary_title = title:k_danelaw -# primary_title = title:k_daneland -# } -# } -# hybrid = yes -#} -# -#engelsk = { -# trigger = { -# OR = { -# AND = { -# scope:culture = culture:anglo_saxon -# scope:other_culture = culture:norwegian -# } -# AND = { -# scope:culture = culture:norwegian -# scope:other_culture = culture:anglo_saxon -# } -# } -# NOT = { religion = religion:germanic_religion } # Norse followers should become Anglo-Norse -# } -# hybrid = yes -#} -# -#anglo_norse = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = culture:anglo_saxon -# scope:culture = culture:english -# } -# scope:other_culture = { has_cultural_pillar = heritage_north_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_north_germanic } -# OR = { -# scope:other_culture = culture:anglo_saxon -# scope:other_culture = culture:english -# } -# } -# } -# } -# hybrid = yes -#} -# -#hindustani_proper = { -# trigger = { -# capital_county.title_province ?= { geographical_region = ghw_region_northern_india } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_iranian } -# scope:other_culture = { has_cultural_pillar = heritage_indo_aryan } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_turkic } -# scope:other_culture = { has_cultural_pillar = heritage_indo_aryan } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# geographical_region = ghw_region_northern_india -# } -# } -# } -# hybrid = yes -#} -# -#rhinelander = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# capital_county ?= { -# title_province = { geographical_region = custom_rhineland } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# geographical_region = custom_rhineland -# } -# } -# } -# hybrid = yes -#} -# -#turko_iranian = { #Just making sure we get a pretty name for Oghuz+Persian regardless of who hybridizes who. -# trigger = { -# scope:culture = culture:turkish -# scope:other_culture = culture:persian -# } -# hybrid = yes -#} -# -#turko_afghan = { #Just making sure we get a pretty name for Afghan+Oghuz regardless of who hybridizes who. -# trigger = { -# scope:culture = culture:turkish -# scope:other_culture = culture:afghan -# } -# hybrid = yes -#} -# -#ulster_scots = { -# trigger = { -# OR = { -# AND = { -# scope:culture = culture:scottish -# scope:other_culture = culture:irish -# } -# AND = { -# scope:culture = culture:irish -# scope:other_culture = culture:scottish -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# duchy = title:d_ulster -# } -# } -# } -# hybrid = yes -#} -# -#romansh_hybrid = { -# trigger = { -# OR = { -# capital_county ?= { -# title:d_currezia = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:d_currezia -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#swiss = { -# trigger = { -# OR = { -# capital_county ?= { -# title:k_switzerland = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_switzerland -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#transylvanian = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_magyar } -# scope:other_culture = { has_cultural_pillar = heritage_vlach } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_vlach } -# scope:other_culture = { has_cultural_pillar = heritage_magyar } -# } -# } -# OR = { -# capital_county ?= { -# OR = { -# title:d_transylvania = { is_de_jure_liege_or_above_target = prev } -# title:d_transylvanian_alps = { is_de_jure_liege_or_above_target = prev } -# } -# } -# has_primary_title = title:d_transylvania -# has_primary_title = title:d_transylvanian_alps -# } -# any_sub_realm_county = { -# OR = { -# duchy = title:d_transylvania -# duchy = title:d_transylvanian_alps -# } -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#alsatian = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# any_sub_realm_county = { -# OR = { -# duchy = title:d_alsace -# duchy = title:d_upper_lorraine -# } -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#vlaemsch = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = culture:dutch -# } -# AND = { -# scope:culture = culture:dutch -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#khalkha = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_tibetan } -# scope:other_culture = { has_cultural_pillar = heritage_mongolic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_mongolic } -# scope:other_culture = { has_cultural_pillar = heritage_tibetan } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#himalayan = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_tibetan } -# scope:other_culture = culture:nepali -# } -# AND = { -# scope:culture = culture:nepali -# scope:other_culture = { has_cultural_pillar = heritage_tibetan } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#angevin_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_west_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#kazakh = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_mongolic } -# scope:other_culture = { has_cultural_pillar = heritage_turkic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_turkic } -# scope:other_culture = { has_cultural_pillar = heritage_mongolic } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#kurlander = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_baltic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_balto_finnic } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# duchy = title:d_courland -# } -# } -# hybrid = yes -#} -# -#livonian = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_balto_finnic } -# scope:other_culture = { has_cultural_pillar = heritage_baltic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_baltic } -# scope:other_culture = { has_cultural_pillar = heritage_balto_finnic } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#moroccan_hybrid = { -# trigger = { -# OR = { -# AND = { -# OR = { # Arabic language to make Andalusian valid -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:culture = { has_cultural_pillar = language_arabic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_berber } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_berber } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = language_arabic } -# } -# } -# } -# OR = { -# capital_county ?= { -# title:k_maghreb = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_maghreb -# # You are an Andalusian expanding into Africa -# AND = { -# OR = { -# scope:culture = culture:andalusian -# scope:other_culture = culture:andalusian -# } -# has_title = title:k_maghreb -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#algerian_hybrid = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:culture = { has_cultural_pillar = language_arabic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_berber } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_berber } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = language_arabic } -# } -# } -# } -# OR = { -# capital_county ?= { -# title:k_tahert = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_tahert -# # You are an Andalusian expanding into Africa -# AND = { -# OR = { -# scope:culture = culture:andalusian -# scope:other_culture = culture:andalusian -# } -# has_title = title:k_tahert -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#tripolitanian_hybrid = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:culture = { has_cultural_pillar = language_arabic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_berber } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_berber } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = language_arabic } -# } -# } -# } -# OR = { -# capital_county ?= { -# OR = { -# title:d_syrte = { is_de_jure_liege_or_above_target = prev } -# title:d_fezzan = { is_de_jure_liege_or_above_target = prev } -# title:d_cyrenaica = { is_de_jure_liege_or_above_target = prev } -# } -# } -# primary_title = title:d_syrte -# primary_title = title:d_fezzan -# primary_title = title:d_cyrenaica -# # You are an Andalusian expanding into Africa -# AND = { -# OR = { -# scope:culture = culture:andalusian -# scope:other_culture = culture:andalusian -# } -# OR = { -# has_title = title:d_syrte -# has_title = title:d_fezzan -# has_title = title:d_cyrenaica -# } -# NOT = { has_title = title:k_africa } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#tunisian_hybrid = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:culture = { has_cultural_pillar = language_arabic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_berber } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_berber } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = language_arabic } -# } -# } -# } -# OR = { -# capital_county ?= { -# title:k_africa = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_africa -# # You are an Andalusian expanding into Africa -# AND = { -# OR = { -# scope:culture = culture:andalusian -# scope:other_culture = culture:andalusian -# } -# has_title = title:k_tahert -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#kuzarim = { -# trigger = { -# OR = { -# AND = { -# scope:culture = culture:khazar -# scope:other_culture = { has_cultural_pillar = heritage_israelite } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_israelite } -# scope:other_culture = culture:khazar -# } -# } -# faith = { religion_tag = judaism_religion } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#siddi = { -# trigger = { -# OR = { -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_east_african } -# scope:culture = { has_cultural_pillar = heritage_somalian } -# } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_indo_aryan } -# scope:other_culture = { has_cultural_pillar = heritage_dravidian } -# } -# } -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_indo_aryan } -# scope:culture = { has_cultural_pillar = heritage_dravidian } -# } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_east_african } -# scope:other_culture = { has_cultural_pillar = heritage_somalian } -# } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#bari = { # Emirate of Bari -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_berber } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:culture = { has_cultural_pillar = heritage_frankish } -# } -# scope:other_culture = { has_cultural_pillar = heritage_berber } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#gyalrong = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_tibetan } -# scope:other_culture = { has_cultural_pillar = heritage_qiangic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_qiangic } -# scope:other_culture = { has_cultural_pillar = heritage_tibetan } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#lebanese_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = heritage_byzantine } -# } -# } -# OR = { -# capital_county ?= { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:k_syria -# } -# any_sub_realm_county = { -# title:k_syria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# hybrid = yes -#} -# -#outremer = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#oltremare = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#ultramar = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_iberian } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# faith.religion = religion:christianity_religion # Prevents Andalusians from becoming Ultramar -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#jerusalemer = { -# trigger = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_north_germanic } -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#jeruzaleman = { -# trigger = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_south_slavic } -# scope:culture = { has_cultural_pillar = heritage_west_slavic } -# scope:culture = { has_cultural_pillar = heritage_east_slavic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#kulfoldi = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_magyar } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#dramor = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_brythonic } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#coigriche = { -# trigger = { -# scope:culture = { has_cultural_pillar = heritage_goidelic } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# any_sub_realm_county = { -# title_province = { geographical_region = world_middle_east_jerusalem } -# } -# } -# hybrid = yes -#} -# -#arpitan_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# OR = { -# capital_county ?= { -# OR = { -# title:d_dauphine = { is_de_jure_liege_or_above_target = prev } -# title:d_savoie = { is_de_jure_liege_or_above_target = prev } -# title:d_provence = { is_de_jure_liege_or_above_target = prev } -# } -# } -# has_primary_title = title:d_dauphine -# has_primary_title = title:d_savoie -# has_primary_title = title:d_provence -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# OR = { -# duchy = title:d_dauphine -# duchy = title:d_savoie -# duchy = title:d_provence -# } -# } -# } -# hybrid = yes -#} -# -#new_english_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_mongolic } -# scope:other_culture = { has_cultural_pillar = heritage_turkic } -# } -# } -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_mongolic } -# scope:culture = { has_cultural_pillar = heritage_turkic } -# } -# scope:other_culture = { has_cultural_pillar = heritage_west_germanic } -# } -# } -# capital_county ?= { -# title_province = { -# geographical_region = world_steppe -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# geographical_region = world_steppe -# } -# } -# } -# hybrid = yes -#} -# -#upper_saxon_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = culture:saxon -# scope:other_culture = culture:polabian -# } -# AND = { -# scope:culture = culture:polabian -# scope:other_culture = culture:saxon -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#dobrujan = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_vlach } -# scope:other_culture = { has_cultural_pillar = heritage_turkic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_turkic } -# scope:other_culture = { has_cultural_pillar = heritage_vlach } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# OR = { -# duchy = title:d_dobrudja -# duchy = title:d_bugeac -# } -# } -# } -# } -# hybrid = yes -#} -# -#aromanian = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { -# OR = { -# this = { has_cultural_pillar = heritage_vlach } -# any_parent_culture_or_above = { this = { has_cultural_pillar = heritage_vlach } } -# } -# } -# scope:other_culture = { -# has_cultural_pillar = heritage_byzantine -# } -# } -# AND = { -# scope:culture = { -# has_cultural_pillar = heritage_byzantine -# } -# scope:other_culture = { -# OR = { -# this = { has_cultural_pillar = heritage_vlach } -# any_parent_culture_or_above = { this = { has_cultural_pillar = heritage_vlach } } -# } -# } -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# title:k_thessalonika = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_epirus = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_hellas = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# } -# hybrid = yes -#} -# -#dalmatian_hybrid = { -# trigger = { -# capital_county ?= { -# # Is in the Balkans but not Greece, Bulgaria, or Romania -# title_province = { -# geographical_region = custom_south_slavia -# } -# NOR = { -# title:k_dacia = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_moldavia = { -# is_de_jure_liege_or_above_target = prev -# } -# title:k_bulgaria = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# scope:culture = { -# OR = { -# has_cultural_pillar = heritage_south_slavic -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_latin -# } -# } -# scope:other_culture = { -# OR = { -# has_cultural_pillar = heritage_south_slavic -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_latin -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# has_coastal_province = yes -# } -# } -# hybrid = yes -#} -# -#neapolitan_hybrid = { -# trigger = { -# capital_county ?= { -# title:k_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# NOT = { -# title:d_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# scope:culture = { -# OR = { -# has_cultural_pillar = heritage_latin -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_berber -# } -# } -# scope:other_culture = { -# OR = { -# has_cultural_pillar = heritage_latin -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_berber -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title:d_capua = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# hybrid = yes -#} -# -#siculo_norman = { -# trigger = { -# capital_county ?= { -# title:k_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# scope:culture = culture:norman -# scope:other_culture = { -# OR = { -# has_cultural_pillar = heritage_latin -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_berber -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#arvorigeg = { -# trigger = { -# scope:culture = { -# has_cultural_pillar = heritage_brythonic -# } -# scope:other_culture = { -# has_cultural_pillar = heritage_frankish -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#gallo = { -# trigger = { -# scope:culture = { -# has_cultural_pillar = heritage_frankish -# } -# scope:other_culture = { -# has_cultural_pillar = heritage_brythonic -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#scota = { -# trigger = { -# OR = { -# AND = { -# scope:culture = culture:scottish -# scope:other_culture = culture:egyptian -# } -# AND = { -# scope:culture = culture:egyptian -# scope:other_culture = culture:scottish -# } -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#parsi_hybrid = { -# trigger = { -# capital_county ?= { -# title_province = { geographical_region = world_india } -# } -# faith = { religion_tag = zoroastrianism_religion } -# OR = { -# AND = { -# OR = { -# scope:culture = { has_cultural_pillar = heritage_dravidian } -# scope:culture = { has_cultural_pillar = heritage_indo_aryan } -# } -# scope:other_culture = { has_cultural_pillar = heritage_iranian } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_iranian } -# OR = { -# scope:other_culture = { has_cultural_pillar = heritage_dravidian } -# scope:other_culture = { has_cultural_pillar = heritage_indo_aryan } -# } -# } -# } -# any_sub_realm_county = { -# faith = { religion_tag = zoroastrianism_religion } -# title_province = { geographical_region = world_india } -# } -# } -#} -# -#arvanite_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_albanian } -# } -# AND = { -# scope:other_culture = { has_cultural_pillar = heritage_albanian } -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# } -# } -# -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#wendish_hybrid = { # West Slav-speakers in Germany -# trigger = { -# OR = { -# scope:culture = { has_cultural_pillar = language_czech_slovak } -# scope:culture = { has_cultural_pillar = language_lechitic } -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# } -# AND = { -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# } -# AND = { -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# } -# } -# -# OR = { -# capital_county ?= { -# title:e_hre = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:e_hre -# } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#bohemian_hybrid = { # German-speakers in Czechia. using Böhmisch just to differentiate from the title and really hammer home the point -# trigger = { -# OR = { -# scope:culture = { has_cultural_pillar = language_high_german } -# scope:culture = { has_cultural_pillar = language_saxon } -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# } -# AND = { -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# scope:culture = { has_cultural_pillar = heritage_central_germanic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# } -# AND = { -# scope:other_culture = { has_cultural_pillar = heritage_west_slavic } -# scope:culture = { has_cultural_pillar = heritage_west_germanic } -# } -# } -# -# any_sub_realm_county = { -# title:k_bohemia = { -# is_de_jure_liege_or_above_target = prev -# } -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# } -# } -# hybrid = yes -#} -# -#gasmouloi_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_byzantine } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = heritage_byzantine } -# } -# } -# OR = { -# capital_county ?= { -# title:e_byzantium = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:e_byzantium -# capital_county ?= { -# title:e_latin_empire = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# primary_title = title:e_latin_empire -# } -# any_sub_realm_county = { -# OR = { -# title:e_byzantium = { -# is_de_jure_liege_or_above_target = prev -# } -# title:e_latin_empire = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# } -# } -# hybrid = yes -#} -# -#aquitanian_hybrid = { -# trigger = { -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = language_basque } -# scope:other_culture = { has_cultural_pillar = heritage_frankish } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_frankish } -# scope:other_culture = { has_cultural_pillar = language_basque } -# } -# } -# } -# hybrid = yes -#} -# -#griko_hybrid = { -# trigger = { -# OR = { -# capital_county ?= { -# title:k_sicily = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_sicily -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_latin } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_latin } -# scope:other_culture = { has_cultural_pillar = heritage_byzantine } -# } -# } -# } -# hybrid = yes -#} -# -#egyptiote_hybrid = { -# trigger = { -# OR = { -# capital_county ?= { -# title:k_egypt = { -# is_de_jure_liege_or_above_target = prev -# } -# } -# has_primary_title = title:k_egypt -# } -# scope:culture = { has_cultural_pillar = heritage_byzantine } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# } -# hybrid = yes -#} -# -#shirazi = { -# trigger = { -# capital_county.title_province ?= { geographical_region = world_africa_east } -# any_sub_realm_county = { -# OR = { -# culture = scope:culture -# culture = scope:other_culture -# } -# title_province = { -# geographical_region = world_africa_east -# } -# } -# OR = { -# AND = { -# scope:culture = { has_cultural_pillar = heritage_bantu } -# scope:other_culture = { has_cultural_pillar = heritage_arabic } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_arabic } -# scope:other_culture = { has_cultural_pillar = heritage_bantu } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_bantu } -# scope:other_culture = { has_cultural_pillar = heritage_iranian } -# } -# AND = { -# scope:culture = { has_cultural_pillar = heritage_iranian } -# scope:other_culture = { has_cultural_pillar = heritage_bantu } -# } -# } -# } -# hybrid = yes -#} -# -#goryeo_hybrid = { -# trigger = { -# scope:culture = culture:goguryeo -# OR = { -# scope:other_culture = culture:baekje -# scope:other_culture = culture:silla -# } -# } -# hybrid = yes -#} -# -#samhan_hybrid = { -# trigger = { -# OR = { -# scope:culture = culture:baekje -# scope:culture = culture:silla -# } -# scope:other_culture = { -# OR = { -# has_cultural_pillar = heritage_buyeo -# has_cultural_pillar = heritage_korean -# } -# } -# } -# hybrid = yes -#} -# \ No newline at end of file diff --git a/common/culture/traditions/NEOW_traditions.txt b/common/culture/traditions/NEOW_traditions.txt index 31753822..db14a2c0 100644 --- a/common/culture/traditions/NEOW_traditions.txt +++ b/common/culture/traditions/NEOW_traditions.txt @@ -1212,8 +1212,8 @@ tradition_russian_legacy = { is_shown = { has_cultural_pillar = heritage_east_slavic NOT = { - culture = culture:NEOW_kievan - culture = culture:NEOW_vohlynian + culture = NEOW_kievan + culture = NEOW_vohlynian } } can_pick = { diff --git a/common/customizable_localization/00_adventurer_names.txt b/common/customizable_localization/00_adventurer_names.txt index 69886513..cd761fa1 100644 --- a/common/customizable_localization/00_adventurer_names.txt +++ b/common/customizable_localization/00_adventurer_names.txt @@ -7476,6 +7476,7 @@ GetAdventureNameSuffix = { NOT = { exists = scope:new_landless_adventurer } scope:new_landless_adventurer ?= { culture = { has_cultural_pillar = heritage_greek } + } } } } diff --git a/common/customizable_localization/00_pl_custom_loc.txt b/common/customizable_localization/00_pl_custom_loc.txt deleted file mode 100644 index 33acf26d..00000000 --- a/common/customizable_localization/00_pl_custom_loc.txt +++ /dev/null @@ -1,2054 +0,0 @@ -##v1.5 -#education_focus_acc = { -# log_loc_errors = no -# parent = education_focus -# suffix = "_acc" -#} -# -##v1.5 -#education_focus_ins = { -# log_loc_errors = no -# parent = education_focus -# suffix = "_ins" -#} -# -##v1.5 -#education_focus_gen = { -# log_loc_errors = no -# parent = education_focus -# suffix = "_gen" -#} -# -# -##v1.5 -#education_focus_child_ins = { -# log_loc_errors = no -# parent = education_focus_child -# suffix = "_ins" -#} -# -##v1.5 -#education_focus_child_acc = { -# log_loc_errors = no -# parent = education_focus_child -# suffix = "_acc" -#} -# -##v1.5 -#education_focus_child_gen = { -# log_loc_errors = no -# parent = education_focus_child -# suffix = "_gen" -#} -# -# -#GetShockedExpressionFemale = { -# log_loc_errors = no -# type = character -# -# random_valid = yes -# -# text = { -# localization_key = shocked_expression_shocked_female -# } -# text = { -# localization_key = shocked_expression_appalled_female -# } -#} -# -## ------------------------------------------------------------------------------------ -# -## v1.5 -#my_prison_pet = { -# log_loc_errors = no -# parent = prison_pet -# suffix = "_my" -#} -# -## v1.5 -#little_prison_pet_vocative = { -# log_loc_errors = no -# parent = prison_pet -# suffix = "_little_vocative" -#} -# -## ------------------------------------------------------------------------------------ -# -## v1.5 -#exotic_fowl_type_genitive_plural = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = fowl_dinner_peacock_genitive_plural -# trigger = { -# age > 14 -# } -# } -# -# text = { -# localization_key = fowl_dinner_child_genitive_plural -# trigger = { -# age < 15 -# } -# } -#} -# -## v1.10 -#GruesomeFestivalNameMsc = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = gruesomefestivalname_blot -# trigger = { faith.religion = religion:germanic_religion } -# } -# -# text = { -# localization_key = gruesomefestivalname_festival -# trigger = { -# NOT = { faith.religion = religion:germanic_religion } -# } -# fallback = yes -# } -#} -# -## v1.5 -#RealmTypeGenitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = kingdom_genitive_lower_case -# trigger = { -# highest_held_title_tier >= 4 -# } -# } -# -# text = { -# localization_key = duchy_genitive_lower_case -# trigger = { -# highest_held_title_tier >= 3 -# } -# } -# -# text = { -# localization_key = county_genitive_lower_case -# trigger = { -# highest_held_title_tier >= 2 -# } -# } -# -# text = { -# localization_key = barony_genitive_lower_case -# trigger = { -# highest_held_title_tier >= 1 -# } -# } -#} -# -## v1.5 -#BaronyTownTypeLocative = { -# log_loc_errors = no -# parent = BaronyTownType -# suffix = "_locative" -#} -# -## v1.5 -#BaronyTownTypeGenitive = { -# log_loc_errors = no -# parent = BaronyTownType -# suffix = "_genitive" -#} -# -## v1.5 -#diplomacy_skill_level_genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = skill_level_terrible_genitive -# trigger = { diplomacy < terrible_skill_level } -# } -# -# text = { -# localization_key = skill_level_poor_genitive -# trigger = { -# diplomacy >= terrible_skill_level -# diplomacy < average_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_average_genitive -# trigger = { -# diplomacy >= average_skill_level -# diplomacy < good_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_good_genitive -# trigger = { -# diplomacy >= good_skill_level -# diplomacy < excellent_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_excellent_genitive -# trigger = { diplomacy >= excellent_skill_level } -# } -#} -# -## v1.5 -#martial_skill_level_genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = skill_level_terrible_genitive -# trigger = { martial < terrible_skill_level } -# } -# -# text = { -# localization_key = skill_level_poor_genitive -# trigger = { -# martial >= terrible_skill_level -# martial < average_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_average_genitive -# trigger = { -# martial >= average_skill_level -# martial < good_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_good_genitive -# trigger = { -# martial >= good_skill_level -# martial < excellent_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_excellent_genitive -# trigger = { martial >= excellent_skill_level } -# } -#} -# -## v1.5 -#stewardship_skill_level_genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = skill_level_terrible_genitive -# trigger = { stewardship < terrible_skill_level } -# } -# -# text = { -# localization_key = skill_level_poor_genitive -# trigger = { -# stewardship >= terrible_skill_level -# stewardship < average_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_average_genitive -# trigger = { -# stewardship >= average_skill_level -# stewardship < good_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_good_genitive -# trigger = { -# stewardship >= good_skill_level -# stewardship < excellent_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_excellent_genitive -# trigger = { stewardship >= excellent_skill_level } -# } -#} -# -## v1.5 -#intrigue_skill_level_genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = skill_level_terrible_genitive -# trigger = { intrigue < terrible_skill_level } -# } -# -# text = { -# localization_key = skill_level_poor_genitive -# trigger = { -# intrigue >= terrible_skill_level -# intrigue < average_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_average_genitive -# trigger = { -# intrigue >= average_skill_level -# intrigue < good_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_good_genitive -# trigger = { -# intrigue >= good_skill_level -# intrigue < excellent_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_excellent_genitive -# trigger = { intrigue >= excellent_skill_level } -# } -#} -# -## v1.5 -#learning_skill_level_genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = skill_level_terrible_genitive -# trigger = { learning < terrible_skill_level } -# } -# -# text = { -# localization_key = skill_level_poor_genitive -# trigger = { -# learning >= terrible_skill_level -# learning < average_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_average_genitive -# trigger = { -# learning >= average_skill_level -# learning < good_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_good_genitive -# trigger = { -# learning >= good_skill_level -# learning < excellent_skill_level -# } -# } -# -# text = { -# localization_key = skill_level_excellent_genitive -# trigger = { learning >= excellent_skill_level } -# } -#} -# -## v1.5 -#CompositionTypeGloriousAccusative = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { var:composition_type = flag:song } -# localization_key = CompositionType_song_glorious_accusative -# } -# text = { -# trigger = { var:composition_type = flag:chronicle } -# localization_key = CompositionType_chronicle_glorious_accusative -# } -# text = { -# trigger = { var:composition_type = flag:poem } -# localization_key = CompositionType_poem_glorious_accusative -# } -#} -# -## v1.5 -#ComplimentAdjectiveTheMostGenitive = { -# log_loc_errors = no -# type = character -# -# random_valid = yes -# -# # Fair/Handsome -# text = { -# trigger = { -# has_trait = beauty_good -# is_male = yes -# NOT = { -# has_variable = court_6040_best_looking_var #needed to keep court.6040 loc coherent -# } -# } -# localization_key = compliment_handsome_the_most_genitive -# } -# text = { -# trigger = { -# has_trait = beauty_good -# is_female = yes -# NOT = { -# has_variable = court_6040_best_looking_var #needed to keep court.6040 loc coherent -# } -# } -# localization_key = compliment_fair_the_most_genitive -# } -# -# # Impressive -# text = { -# trigger = { -# has_personality_malicious_trigger = yes -# is_female = yes -# } -# localization_key = compliment_impressive_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_malicious_trigger = yes -# is_male = yes -# } -# localization_key = compliment_impressive_the_most_genitive -# } -# -# # Benign -# text = { -# trigger = { -# ai_compassion >= medium_positive_ai_value -# is_female = yes -# } -# localization_key = compliment_benign_female_the_most_genitive -# } -# text = { -# trigger = { -# ai_compassion >= medium_positive_ai_value -# is_male = yes -# } -# localization_key = compliment_benign_the_most_genitive -# } -# -# # Benevolent -# text = { -# trigger = { -# ai_compassion >= medium_positive_ai_value -# is_female = yes -# } -# localization_key = compliment_benevolent_female_the_most_genitive -# } -# text = { -# trigger = { -# ai_compassion >= medium_positive_ai_value -# is_male = yes -# } -# localization_key = compliment_benevolent_the_most_genitive -# } -# -# # Implacable -# text = { -# trigger = { -# has_personality_dominant_trigger = yes -# is_female = yes -# } -# localization_key = compliment_implacable_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_dominant_trigger = yes -# is_male = yes -# } -# localization_key = compliment_implacable_the_most_genitive -# } -# -# # Modest -# text = { -# trigger = { -# has_personality_submissive_trigger = yes -# is_female = yes -# } -# localization_key = compliment_modest_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_submissive_trigger = yes -# is_male = yes -# } -# localization_key = compliment_modest_the_most_genitive -# } -# -# # Charming -# text = { -# trigger = { -# has_personality_extroverted_trigger = yes -# is_female = yes -# } -# localization_key = compliment_charming_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_extroverted_trigger = yes -# is_male = yes -# } -# localization_key = compliment_charming_the_most_genitive -# } -# -# -# # Thoughtful -# text = { -# trigger = { -# has_personality_introverted_trigger = yes -# is_female = yes -# } -# localization_key = compliment_thoughtful_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_introverted_trigger = yes -# is_male = yes -# } -# localization_key = compliment_thoughtful_the_most_genitive -# } -# -# # Perceptive -# text = { -# trigger = { -# has_personality_emotional_trigger = yes -# is_female = yes -# } -# localization_key = compliment_perceptive_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_emotional_trigger = yes -# is_male = yes -# } -# localization_key = compliment_perceptive_the_most_genitive -# } -# -# # Sensible -# text = { -# trigger = { -# has_personality_levelheaded_trigger = yes -# is_female = yes -# } -# localization_key = compliment_sensible_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_levelheaded_trigger = yes -# is_male = yes -# } -# localization_key = compliment_sensible_the_most_genitive -# } -# -# # Serene -# text = { -# trigger = { -# has_personality_annoying_trigger = yes -# is_female = yes -# } -# localization_key = compliment_serene_female_the_most_genitive -# } -# text = { -# trigger = { -# has_personality_annoying_trigger = yes -# is_male = yes -# } -# localization_key = compliment_serene_the_most_genitive -# } -# -# # Fallback -# text = { -# trigger = { always = no } -# fallback = yes -# localization_key = compliment_fallback_the_most_genitive -# } -#} -# -## v1.5 -#RegionalGameObjectAccusative = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# text = { -# localization_key = deck_of_cards_accusative -# } -# -# text = { -# trigger = { -# exists = capital_province -# capital_province = { -# geographical_region = world_india -# } -# } -# localization_key = pachisi_board_accusative #indian -# } -# -# text = { -# localization_key = chess_set_accusative -# } -#} -# -## v1.7.2 -#child_favorite_toy_adj = { -# log_loc_errors = no -# parent = child_favorite_toy -# suffix = "_adj" -#} -# -## v1.7.2 -#child_favorite_toy_accusative = { -# log_loc_errors = no -# parent = child_favorite_toy -# suffix = "_accusative" -#} -# -## v1.7.2 -#child_favorite_toy_instrumental = { -# log_loc_errors = no -# parent = child_favorite_toy -# suffix = "_instrumental" -#} -# -## v1.7.2 -#child_favorite_toy_my = { -# log_loc_errors = no -# parent = child_favorite_toy -# suffix = "_my" -#} -# -## v1.13.0.1 - dopelniacz - rycerza, czempiona -#KnightCulturePossessiveNoTooltip = { -# log_loc_errors = no -# parent = KnightCulture -# suffix = "_no_tooltip_possessive" -#} -# -## v1.13.0.1 - wołacz - rycerzu, czempionie -#KnightCultureVocativeNoTooltip = { -# log_loc_errors = no -# parent = KnightCulture -# suffix = "_no_tooltip_vocative" -#} -# -## v1.13.0.1 - miejscownik - rycerzu, czempionie -#KnightCultureLocativeNoTooltip = { -# log_loc_errors = no -# parent = KnightCulture -# suffix = "_no_tooltip_locative" -#} -# -## v1.13.0.1 - celownik - rycerzowi, czempionowi -#KnightCultureDativeNoTooltip = { -# log_loc_errors = no -# parent = KnightCulture -# suffix = "_no_tooltip_dative" -#} -# -## v1.13.0.1 - narzednik - rycerzem, czempionem -#KnightCultureInstrumentalNoTooltip = { -# log_loc_errors = no -# parent = KnightCulture -# suffix = "_no_tooltip_instrumental" -#} -# -## v1.5 -#PrisonTypeCellAdj = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { is_in_prison_type = dungeon } -# localization_key = prisontypecell_dungeon_cell_adj -# } -# -# text = { -# trigger = { is_in_prison_type = house_arrest } -# localization_key = prisontypecell_house_arrest_adj -# } -#} -# -## v1.5 -#GetUpperClothingArticleAdj = { -# log_loc_errors = no -# type = character -# -# random_valid = yes -# -# text = { -# trigger = { -# is_female = no -# } -# localization_key = clothing_word_shirt_adj -# } -# -# text = { -# trigger = { -# is_female = yes -# } -# localization_key = clothing_word_blouse_adj -# } -# -# text = { -# trigger = { -# is_female = yes -# } -# localization_key = clothing_word_dress_adj -# } -#} -# -## v1.13.0.1 -#InsultNounGenitive = { -# log_loc_errors = no -# parent = InsultNoun -# suffix = "_genitive" -#} -# -## v1.13.0.1 -#InsultNounVocative = { -# log_loc_errors = no -# parent = InsultNoun -# suffix = "_vocative" -#} -# -## v1.13.0.1 -#InsultNounAccusative = { -# log_loc_errors = no -# parent = InsultNoun -# suffix = "_accusative" -#} -# -## v1.13.0.1 -#InsultNounInstrumental = { -# log_loc_errors = no -# parent = InsultNoun -# suffix = "_instrumental" -#} -# -# -# -## v1.6 -#GetUnbelieverNamePluralAdj = { -# log_loc_errors = no -# parent = GetUnbelieverNamePlural -# suffix = "_adj" -#} -# -## v1.6 -#GetUnbelieverNamePluralDative = { -# log_loc_errors = no -# parent = GetUnbelieverNamePlural -# suffix = "_dative" -#} -# -# -## ------------------------------------------------------------------------------ # -# -## v1.5 -#GritTypeAdj = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# location = { -# OR = { -# terrain = mountains -# terrain = desert_mountains -# } -# } -# } -# localization_key = grit_type_grit_adj -# fallback = yes -# } -# -# text = { -# trigger = { -# location = { -# OR = { -# terrain = plains -# terrain = farmlands -# terrain = hills -# terrain = floodplains -# } -# } -# } -# localization_key = grit_type_dirt_adj -# } -# -# text = { -# trigger = { -# location = { -# OR = { -# terrain = desert -# terrain = oasis -# } -# } -# } -# localization_key = grit_type_sand_adj -# } -# -# text = { -# trigger = { -# location = { terrain = wetlands } -# } -# localization_key = grit_type_bog_water_adj -# } -# -# text = { -# trigger = { -# location = { -# OR = { -# terrain = forest -# terrain = taiga -# } -# } -# } -# localization_key = grit_type_twigs_adj -# } -# -# text = { -# trigger = { -# location = { terrain = jungle } -# } -# localization_key = grit_type_wet_leaves_adj -# } -# -# text = { -# trigger = { -# location = { -# OR = { -# terrain = steppe -# terrain = drylands -# } -# } -# } -# localization_key = grit_type_dry_grass_adj -# } -#} -# -## v1.5 -#ToleranceValueAdj = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = tolerance_righteous_adj -# -# trigger = { -# faith = { -# faith_hostility_level = { -# target = scope:second.faith -# value = faith_fully_accepted_level -# } -# } -# } -# } -# text = { -# localization_key = tolerance_astray_adj -# -# trigger = { -# faith = { -# faith_hostility_level = { -# target = scope:second.faith -# value = faith_astray_level -# } -# } -# } -# } -# text = { -# localization_key = tolerance_sinister_adj -# -# trigger = { -# faith = { -# faith_hostility_level = { -# target = scope:second.faith -# value = faith_hostile_level -# } -# } -# } -# } -# text = { -# localization_key = tolerance_evil_adj -# -# trigger = { -# faith = { -# faith_hostility_level = { -# target = scope:second.faith -# value = faith_evil_level -# } -# } -# } -# } -#} -# -## v1.5 -#SeductionGiftTypeAdj = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { scope:gift = flag:tapestry } -# localization_key = seduce_gift_tapestry_adj -# } -# -# text = { -# trigger = { scope:gift = flag:horse } -# localization_key = seduce_gift_horse_adj -# } -# -# text = { -# trigger = { scope:gift = flag:tailor } -# localization_key = seduce_gift_tailored_clothes_adj -# } -# -# text = { -# trigger = { scope:gift = flag:rare_book } -# localization_key = seduce_gift_rare_book_adj -# } -# -# text = { -# trigger = { scope:gift = flag:embroidery } -# localization_key = seduce_gift_embroidery_adj -# } -# -# text = { -# trigger = { scope:gift = flag:poem } -# localization_key = seduce_gift_poem_adj -# } -# -# text = { -# trigger = { scope:gift = flag:woodcarving } -# localization_key = seduce_gift_woodcarving_adj -# } -# -# text = { -# trigger = { scope:gift = flag:object } -# localization_key = seduce_gift_object_adj -# } -# -# text = { -# trigger = { scope:gift = flag:jewelry } -# localization_key = seduce_gift_jewelry_adj -# } -# -# text = { -# trigger = { scope:gift = flag:stuffed_animal } -# localization_key = seduce_gift_stuffed_animal_adj -# } -# -# text = { -# trigger = { scope:gift = flag:flower_display } -# localization_key = seduce_gift_flower_display_adj -# } -# -# text = { -# trigger = { scope:gift = flag:handkerchief } -# localization_key = seduce_gift_handkerchief_adj -# } -#} -# -## v1.5 -#ThreeToTwelveInstrumental = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# text = { -# localization_key = number_three_instrumental -# } -# text = { -# localization_key = number_four_instrumental -# } -# text = { -# localization_key = number_five_instrumental -# } -# text = { -# localization_key = number_six_instrumental -# } -# text = { -# localization_key = number_seven_instrumental -# } -# text = { -# localization_key = number_eight_instrumental -# } -# text = { -# localization_key = number_nine_instrumental -# } -# text = { -# localization_key = number_ten_instrumental -# } -# text = { -# localization_key = number_eleven_instrumental -# } -# text = { -# localization_key = number_twelve_instrumental -# } -#} -# -## v1.5 -#InsultNounSexualVocative = { -# log_loc_errors = no -# type = character -# -# random_valid = yes -# -# text = { -# trigger = { is_male = yes } -# localization_key = insultnounsexual_lecher_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# localization_key = insultnounsexual_debaucher_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# localization_key = insultnounsexual_fornicator_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# localization_key = insultnounsexual_philanderer_vocative -# } -# -# text = { -# trigger = { -# is_male = yes -# NOT = { has_trait = sodomite } -# } -# localization_key = insultnounsexual_womanizer_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_amorosa_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_jezebel_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_quean_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_delilah_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_strumpet_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_trollop_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# localization_key = insultnounsexual_hussy_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_voluptuary_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_copulator_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_libidinist_vocative -# } -# -# text = { -# trigger = { is_male = yes } -# weight_multiplier = { -# base = 0.1 -# } -# localization_key = insultnounsexual_roue_vocative -# } -# -# # female versions requested for other languages -# text = { -# trigger = { is_female = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_voluptuary_female_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_copulator_female_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = insultnounsexual_libidinist_female_vocative -# } -# -# text = { -# trigger = { is_female = yes } -# weight_multiplier = { -# base = 0.1 -# } -# localization_key = insultnounsexual_roue_female_vocative -# } -# # -- -# text = { -# trigger = { -# is_female = yes -# } -# localization_key = whore_vocative -# } -# text = { -# trigger = { -# is_female = yes -# } -# localization_key = harlot_vocative -# } -# text = { -# weight_multiplier = { -# base = 0.3 -# } -# localization_key = bedswerver_vocative -# } -# text = { -# trigger = { is_male = yes } -# localization_key = pig_vocative -# } -# text = { -# trigger = { is_male = yes } -# localization_key = skirt_chaser_vocative -# } -#} -# -# -## v1.13.0.1 -#FavoriteTreatAccusative = { -# log_loc_errors = no -# parent = FavoriteTreat -# suffix = "_accusative" -#} -# -# -## v1.5 -#SignatureWeaponAttemptedHeavyAccusative = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = signature_weapon_attempted_heavy_slash_accusative -# trigger = { -# OR = { -# var:signature_weapon = flag:sword -# var:signature_weapon = flag:axe -# var:signature_weapon = flag:dagger -# } -# } -# fallback = yes -# } -# text = { -# localization_key = signature_weapon_attempted_heavy_crush_accusative -# trigger = { -# OR = { -# var:signature_weapon = flag:mace -# var:signature_weapon = flag:hammer -# } -# } -# } -# text = { -# localization_key = signature_weapon_attempted_heavy_pierce_accusative -# trigger = { -# var:signature_weapon = flag:spear -# } -# } -#} -# -## v1.5 -#SignatureWeaponAttemptedLightAccusative = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = signature_weapon_attempted_light_slash_accusative -# trigger = { -# OR = { -# var:signature_weapon = flag:sword -# var:signature_weapon = flag:axe -# var:signature_weapon = flag:dagger -# } -# } -# fallback = yes -# } -# text = { -# localization_key = signature_weapon_attempted_light_crush_accusative -# trigger = { -# OR = { -# var:signature_weapon = flag:mace -# var:signature_weapon = flag:hammer -# } -# } -# } -# text = { -# localization_key = signature_weapon_attempted_light_pierce_accusative -# trigger = { -# var:signature_weapon = flag:spear -# } -# } -#} -# -# -##v1.13.0.1 -#GetExpensiveDessertInTheFaceInstrumental = { -# log_loc_errors = no -# parent = GetExpensiveDessertInTheFace -# suffix = "_instrumental" -#} -# -# -#ArtifactQualityNarz = { -# log_loc_errors = no -# parent = ArtifactQuality -# suffix = "_narz" -#} -# -#ArtifactQualityFMie = { -# log_loc_errors = no -# parent = ArtifactQuality -# suffix = "_fmie" -#} -# -# -# -#ArtifactArticleWealthMasculine = { -# log_loc_errors = no -# parent = ArtifactArticleWealth -# suffix = "_masc" -#} -# -#ArtifactArticleWealthAccusativeFem = { -# log_loc_errors = no -# parent = ArtifactArticleWealth -# suffix = "_acc_fem" -#} -# -##v1.9.0.2 -#ArtifactFlowerSpeciesGender = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# exists = scope:flower_species -# OR = { -# scope:flower_species = flag:flower_type_orchid -# scope:flower_species = flag:flower_type_rose -# scope:flower_species = flag:flower_type_foxglove -# scope:flower_species = flag:flower_type_geranium -# scope:flower_species = flag:flower_type_lily -# scope:flower_species = flag:flower_type_lavender -# scope:flower_species = flag:flower_type_peony -# scope:flower_species = flag:flower_type_delphinium -# scope:flower_species = flag:flower_type_chrysanthemum -# scope:flower_species = flag:flower_type_gardenia -# } -# } -# localization_key = ArtifactFlowerSpecies_z -# } -# -# text = { -# localization_key = ArtifactFlowerSpecies_m -# fallback = yes -# } -# -#} -# -# -#PetNamePrecious = { #PetName: lover ones with sexual or romantic terms removed -# log_loc_errors = no -# type = character -# -# random_valid = yes -# -# text = { -# localization_key = pet_name_darling_precious -# } -# -# text = { -# localization_key = pet_name_dearest_precious_precious -# } -# -# text = { -# localization_key = pet_name_little_pet_precious -# } -# -# text = { -# localization_key = pet_name_treasure_precious -# } -# -# text = { -# localization_key = pet_name_sweetness_precious -# } -# -# text = { -# localization_key = pet_name_rose_precious -# } -# -# text = { -# localization_key = pet_name_sunshine_precious -# } -# -# text = { -# localization_key = pet_name_spring_blossom_precious -# } -# -# text = { -# localization_key = pet_name_petal_precious -# } -# -# text = { -# localization_key = pet_name_honeycomb_precious -# } -#} -# -##v1.13.0.1 -#GetExpensiveMealBier = { -# log_loc_errors = no -# parent = GetExpensiveMeal -# suffix = "_bier" -#} -# -##v1.13.0.1 -#GetExpensiveMealDop = { -# log_loc_errors = no -# parent = GetExpensiveMeal -# suffix = "_dop" -#} -# -# -##v1.6.1 -#GetExpensiveMealAltDop = { -# log_loc_errors = no -# parent = GetExpensiveMealAlt -# suffix = "_dop" -#} -# -##v1.6.1 -#GetDisabilityIns = { -# log_loc_errors = no -# parent = GetDisability -# suffix = "_ins" -#} -# -##v1.13.0.1 -#GetExpensiveDessertBier = { -# log_loc_errors = no -# parent = GetExpensiveDessert -# suffix = "_bier" -#} -# -##v1.13.0.1 -#GetExpensiveDessertNarz = { -# log_loc_errors = no -# parent = GetExpensiveDessert -# suffix = "_narz" -#} -# -##v1.13.0.1 -#GetExpensiveDessertDop = { -# log_loc_errors = no -# parent = GetExpensiveDessert -# suffix = "_dop" -#} -# -#GetVictimOrMy_VictimTrue = { # Used in Hold Court -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# top_liege = { has_character_flag = concerned_exists } -# } -# localization_key = pt_true -# } -# text = { -# trigger = { always = no } -# fallback = yes -# localization_key = pt_false -# } -#} -# -# -##1.6 -#GetUnbelieverTermVocative = { -# log_loc_errors = no -# parent = GetUnbelieverTerm -# suffix = "_vocative" -#} -# -##1.13.0.1 -#FavoriteTreatDemandAccusative = { -# log_loc_errors = no -# parent = FavoriteTreatDemand -# suffix = "_accusative" -#} -# -# -##1.8.1 -#TrinketLookAdjectiveMasc = { -# log_loc_errors = no -# parent = TrinketLookAdjective -# suffix = "_masc" -#} -# -# -# -##1.8.1 -#ArtifactBookContentQualityMasc = { -# log_loc_errors = no -# parent = ArtifactBookContentQuality -# suffix = "_masc" -#} -# -# -#PL_ArtifactBaseWeaponTypeNom = { -# log_loc_errors = no -# parent = ArtifactBaseWeaponType -# suffix = "_nom" -#} -# -# -## v1.13.0.1 -#RegionalDrinkGenitive = { -# log_loc_errors = no -# parent = RegionalDrink -# suffix = "_genitive" -#} -# -## v1.13.0.1 -#RegionalDrinkInstrumental = { -# log_loc_errors = no -# parent = RegionalDrink -# suffix = "_instrumental" -#} -# -## v1.13.0.1 -#GetExpensiveDrink_SingularAccusative = { -# log_loc_errors = no -# parent = GetExpensiveDrink_Singular -# suffix = "_accusative_singular" -#} -# -## v1.13.0.1 -#GetExpensiveDrink_SingularGenitive = { -# log_loc_errors = no -# parent = GetExpensiveDrink_Singular -# suffix = "_genitive_singular" -#} -# -# -## v1.13.0.1 -#GetExpensiveDrinkGenitive = { -# log_loc_errors = no -# parent = GetExpensiveDrink -# suffix = "_genitive" -#} -# -## v1.13.0.1 -#RegionalAlcoholicDrinkAdj = { -# log_loc_errors = no -# parent = RegionalAlcoholicDrink -# suffix = "_genitive" -#} -# -# -## 1.10 -#GetRegionalArcherMAAGenitive = { -# log_loc_errors = no -# parent = GetRegionalArcherMAA -# suffix = "_genitive" -#} -# -# -# -## v1.13.0.1 -#GetRegionalInfantryMAAGenitive = { -# log_loc_errors = no -# parent = GetRegionalInfantryMAA -# suffix = "_genitive" -#} -# -# -## v1.13.0.1 -#GetRegionalCavalryMAAGenitive = { -# log_loc_errors = no -# parent = GetRegionalCavalryMAA -# suffix = "_genitive" -#} -# -# -# -## 1.13.0.1 -#GetRegionalSkirmisherMAAGenitive = { -# log_loc_errors = no -# parent = GetRegionalSkirmisherMAA -# suffix = "_genitive" -#} -# -# -##v1.5 - plik -# -#GeneratePoem_Title_Fragment_Emotion_adj = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# # Romance Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_love_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_passion_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_tenderness_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_doting_adj -# } -# ## } -# # Mourning Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_sadness_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_sorrow_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_regret_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_mourning_adj -# } -# ## } -# # Legacy Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Strife Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_rage_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_anger_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_bloodlust_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_wrath_adj -# } -# ## } -# # Incompetence Block -# ## comment_container = { -# # No current fragments. -# ## } -#} -# -#GeneratePoem_Title_Fragment_MetaphoricalPlace_adj = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# # Romance Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_heart_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_head_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_dreams_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:romance } -# localization_key = generatepoem_title_chest_adj -# } -# ## } -# # Mourning Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Legacy Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Strife Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Incompetence Block -# ## comment_container = { -# # No current fragments. -# ## } -#} -# -#GeneratePoem_Title_Fragment_Season_adj = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# text = { localization_key = generatepoem_title_spring_adj } -# text = { localization_key = generatepoem_title_summer_adj } -# text = { localization_key = generatepoem_title_autumn_adj } -# text = { localization_key = generatepoem_title_winter_adj } -#} -# -#GeneratePoem_Title_Fragment_PatheticFallacy_adj = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# # Romance Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Mourning Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_windswept_woods_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_rainy_nights_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_still_mornings_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:mourning } -# localization_key = generatepoem_title_lonely_graves_adj -# } -# ## } -# # Legacy Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Strife Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Incompetence Block -# ## comment_container = { -# # No current fragments. -# ## } -#} -# -#### 1.4.4 -#GeneratePoem_Title_Fragment_Sobriquet_adj = { -# log_loc_errors = no -# type = character -# random_valid = yes -# -# # Romance Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Mourning Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Legacy Block -# ## comment_container = { -# # No current fragments. -# ## } -# # Strife Block -# ## comment_container = { -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_sword_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_spear_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_axe_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_lance_adj -# } -# text = { -# trigger = { var:poetry_theme = flag:strife } -# localization_key = generatepoem_title_mace_adj -# } -# ## } -# # Incompetence Block -# ## comment_container = { -# # No current fragments. -# ## } -#} -# -# -# -# -#PL_GetAnimalMale = { -# log_loc_errors = no -# type = all -# random_valid = yes -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:stag -# var:animal_type ?= flag:hart -# #var:animal_type ?= flag:roe -# var:animal_type ?= flag:reindeer -# var:animal_type ?= flag:elk -# #var:animal_type ?= flag:antelope -# #var:animal_type ?= flag:gazelle -# #var:animal_type ?= flag:saiga -# } -# } -# localization_key = hunt_animal_male_stag -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:roe -# } -# } -# localization_key = pl_hunt_animal_male_roe -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:fox -# #var:animal_type ?= flag:wolf -# #var:animal_type ?= flag:hyena -# } -# } -# localization_key = hunt_animal_male_dog -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:wolf -# } -# } -# localization_key = pl_hunt_animal_male_wolf -# } -# -# text = { -# trigger = { var:animal_type ?= flag:hare } -# localization_key = hunt_animal_male_jack -# } -# -# text = { -# trigger = { -# OR = { -# #var:animal_type ?= flag:elk -# var:animal_type ?= flag:bison -# var:animal_type ?= flag:aurochs -# } -# } -# localization_key = hunt_animal_male_bull -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:boar -# #var:animal_type ?= flag:bear -# } -# } -# localization_key = pl_animal_type_male_boar -# } -# -# # text = { -# # trigger = { var:animal_type ?= flag:lion } -# # localization_key = pl_animal_type_male_lion -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:tiger } -# # localization_key = pl_animal_type_male_tiger -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:leopard } -# # localization_key = pl_animal_type_male_leopard -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:unicorn } -# # localization_key = pl_horse_gender_male_stallion -# # } -# -# text = { -# trigger = { always = no } -# localization_key = hunt_animal_male_fallback -# fallback = yes -# } -#} -# -#PL_GetAnimalFemale = { -# log_loc_errors = no -# type = all -# random_valid = yes -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:stag -# #var:animal_type ?= flag:roe -# #var:animal_type ?= flag:antelope -# #var:animal_type ?= flag:gazelle -# } -# } -# localization_key = hunt_animal_female_doe -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:roe -# } -# } -# localization_key = pl_hunt_animal_female_roe -# } -# -# text = { -# trigger = { var:animal_type ?= flag:hart } -# localization_key = hunt_animal_female_hind -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:wolf -# #var:animal_type ?= flag:hyena -# } -# } -# localization_key = pl_hunt_animal_female_wolf -# } -# -# text = { -# trigger = { var:animal_type ?= flag:fox } -# localization_key = hunt_animal_female_vixen -# } -# -# text = { -# trigger = { var:animal_type ?= flag:hare } -# localization_key = hunt_animal_female_jill -# } -# -# text = { -# trigger = { -# OR = { -# #var:animal_type ?= flag:elk -# var:animal_type ?= flag:bison -# #var:animal_type ?= flag:aurochs -# } -# } -# localization_key = hunt_animal_female_cow -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:elk -# } -# } -# localization_key = pl_hunt_animal_female_elk -# } -# -# text = { -# trigger = { -# OR = { -# var:animal_type ?= flag:boar -# #var:animal_type ?= flag:bear -# } -# } -# localization_key = pl_animal_type_female_boar -# } -# -# # text = { -# # trigger = { var:animal_type ?= flag:lion } -# # localization_key = hunt_animal_female_lioness -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:tiger } -# # localization_key = hunt_animal_female_tigress -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:leopard } -# # localization_key = hunt_animal_female_leopardess -# # } -# -# # text = { -# # trigger = { var:animal_type ?= flag:unicorn } -# # localization_key = horse_gender_mare -# # } -# -# text = { -# trigger = { always = no } -# localization_key = hunt_animal_female_fallback -# } -#} -# -# -## v1.13.0.1 -#PL_GetTerrainTypeLocative = { -# log_loc_errors = no -# type = province -# parent = GetTerrainType -# suffix = _pl_locative -#} -# -## v1.13.0.1 -#PL_GetTerrainTypeGenitive = { -# log_loc_errors = no -# type = province -# parent = GetTerrainType -# suffix = _pl_genitive -#} -# -## v1.13.0.1 -#PL_GetTerrainTypeArticle = { -# log_loc_errors = no -# type = province -# parent = GetTerrainType -# suffix = _pl_art -#} -# -## v1.13.0.1 -#PL_GetTerrainTypePluralLocative = { -# log_loc_errors = no -# type = province -# parent = GetTerrainType -# suffix = _plural_pl_locative -#} -# -## v1.13.0.1 -#PL_GetTerrainTypePluralGenitive = { -# log_loc_errors = no -# type = province -# parent = GetTerrainType -# suffix = _plural_pl_genitive -#} -# -# -##1.11.5 -#PL_GetRandomRegionalWoodGenitive = { -# log_loc_errors = no -# parent = GetRandomRegionalWood -# suffix = _pl_genitive -#} -# -# -# -##1.12.5 -#PL_RegionalEdibleMeatGenitive = { -# log_loc_errors = no -# parent = RegionalEdibleMeat -# suffix = _gen -#} -# -##1.12.5 -#PL_RegionalEdibleAnimalGenitive = { -# log_loc_errors = no -# parent = RegionalEdibleAnimal -# suffix = _gen -#} -# -# -##1.12.5 -#PL_RegionalRootVegetableGenitive = { -# log_loc_errors = no -# parent = RegionalRootVegetable -# suffix = _gen -#} -# -## 1.13.0.3 -#PL_GetRealmOrDomicileConceptYourLocative = { -# log_loc_errors = no -# parent = GetRealmOrDomicileConcept -# suffix = "_pl_y_locative" -#} -# -# # 1.13.0.3 -#PL_GetCourtOrOfficerPositionConceptPlural = { -# log_loc_errors = no -# parent = GetCourtOrOfficerPositionConceptPlural -# suffix = "_pl" -#} \ No newline at end of file diff --git a/common/customizable_localization/00_pl_custom_loc_extra.txt b/common/customizable_localization/00_pl_custom_loc_extra.txt deleted file mode 100644 index d77e9284..00000000 --- a/common/customizable_localization/00_pl_custom_loc_extra.txt +++ /dev/null @@ -1,8554 +0,0 @@ -##v1.6.1 -#religion_name_adj_feminine_accusative = { -# log_loc_errors = no -# type = faith -# text = { -# trigger = { -# religion_tag = christianity_religion -# } -# localization_key = christianity_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = north_african_religion -# } -# localization_key = north_african_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = baltic_religion -# } -# localization_key = baltic_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = akom_religion -# } -# localization_key = akom_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = bon_religion -# } -# localization_key = bon_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = buddhism_religion -# } -# localization_key = buddhism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = tani_religion -# } -# localization_key = tani_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = dualism_religion -# } -# localization_key = dualism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = finno_ugric_religion -# } -# localization_key = finno_ugric_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = germanic_religion -# } -# localization_key = germanic_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = hellenism_religion -# } -# localization_key = hellenism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = hinduism_religion -# } -# localization_key = hinduism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = islam_religion -# } -# localization_key = islam_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = jainism_religion -# } -# localization_key = jainism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = judaism_religion -# } -# localization_key = judaism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = kushitism_religion -# } -# localization_key = kushitism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = magyar_religion -# } -# localization_key = magyar_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = mundhum_religion -# } -# localization_key = mundhum_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = paganism_religion -# } -# localization_key = paganism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = qiangic_religion -# } -# localization_key = qiangic_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = slavic_religion -# } -# localization_key = slavic_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = taoism_religion -# } -# localization_key = taoism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = tengrism_religion -# } -# localization_key = tengrism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = waaqism_religion -# } -# localization_key = waaqism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = west_african_religion -# } -# localization_key = west_african_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = west_african_bori_religion -# } -# localization_key = west_african_bori_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = west_african_orisha_religion -# } -# localization_key = west_african_orisha_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = west_african_roog_religion -# } -# localization_key = west_african_roog_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = yazidi_religion -# } -# localization_key = yazidi_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = zoroastrianism_religion -# } -# localization_key = zoroastrianism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = zunism_religion -# } -# localization_key = zunism_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = siberian_religion -# } -# localization_key = siberian_religion_adj_feminine_accusative -# } -# text = { -# trigger = { -# religion_tag = basque_religion -# } -# localization_key = basque_religion_adj_feminine_accusative -# } -# text = { -# localization_key = religion_name_adj_feminine_fallback -# fallback = yes -# } -#} -# -##v1.6.1 -#religion_name_adj_masculine_ins = { -# log_loc_errors = no -# type = faith -# text = { -# trigger = { -# religion_tag = christianity_religion -# } -# localization_key = christianity_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = north_african_religion -# } -# localization_key = north_african_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = baltic_religion -# } -# localization_key = baltic_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = akom_religion -# } -# localization_key = akom_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = bon_religion -# } -# localization_key = bon_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = buddhism_religion -# } -# localization_key = buddhism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = tani_religion -# } -# localization_key = tani_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = dualism_religion -# } -# localization_key = dualism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = finno_ugric_religion -# } -# localization_key = finno_ugric_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = germanic_religion -# } -# localization_key = germanic_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = hellenism_religion -# } -# localization_key = hellenism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = hinduism_religion -# } -# localization_key = hinduism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = islam_religion -# } -# localization_key = islam_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = jainism_religion -# } -# localization_key = jainism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = judaism_religion -# } -# localization_key = judaism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = kushitism_religion -# } -# localization_key = kushitism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = magyar_religion -# } -# localization_key = magyar_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = mundhum_religion -# } -# localization_key = mundhum_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = paganism_religion -# } -# localization_key = paganism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = qiangic_religion -# } -# localization_key = qiangic_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = slavic_religion -# } -# localization_key = slavic_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = taoism_religion -# } -# localization_key = taoism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = tengrism_religion -# } -# localization_key = tengrism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = waaqism_religion -# } -# localization_key = waaqism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = west_african_religion -# } -# localization_key = west_african_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = west_african_bori_religion -# } -# localization_key = west_african_bori_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = west_african_orisha_religion -# } -# localization_key = west_african_orisha_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = west_african_roog_religion -# } -# localization_key = west_african_roog_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = yazidi_religion -# } -# localization_key = yazidi_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = zoroastrianism_religion -# } -# localization_key = zoroastrianism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = zunism_religion -# } -# localization_key = zunism_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = siberian_religion -# } -# localization_key = siberian_religion_adj_masculine_ins -# } -# text = { -# trigger = { -# religion_tag = basque_religion -# } -# localization_key = basque_religion_adj_masculine_ins -# } -# text = { -# localization_key = religion_name_adj_feminine_fallback -# fallback = yes -# } -#} -# -# -##v1.5 -#TitleRankAdjConcept = { -# log_loc_errors = no -# type = landed_title -# -# text = { -# trigger = { -# tier = tier_barony -# } -# -# localization_key = game_concept_barony_pos -# } -# -# text = { -# trigger = { -# tier = tier_county -# } -# -# localization_key = game_concept_county_pos -# } -# -# text = { -# trigger = { -# tier = tier_duchy -# } -# -# localization_key = game_concept_duchy_pos -# } -# -# text = { -# trigger = { -# tier = tier_kingdom -# } -# -# localization_key = game_concept_kingdom_pos -# } -# -# text = { -# trigger = { -# tier = tier_empire -# } -# -# localization_key = game_concept_empire_pos -# } -#} -# -# -## -------------------------- Title Adj -------------------------- # -# -#TitleAdjBase = { -# log_loc_errors = no -# -# type = landed_title -# -# text = { -# trigger = { -# OR = { -# is_mercenary_company = yes -# is_holy_order = yes -# is_titular = yes -# } -# } -# -# #localization_key = title_notier_notooltip -# localization_key = PL_title_adj_notier -# } -# -# text = { -# trigger = { -# OR = { -# this = title:k_east_francia -# this = title:k_france -# } -# } -# -# #localization_key = title_francia_notooltip -# localization_key = PL_title_adj_francia -# } -# -# text = { -# -# trigger = { -# tier > tier_barony -# NOR = { -# -# this = title:d_ismaili -# this = title:d_nizari -# this = title:d_zayidi -# this = title:d_ghulat -# this = title:k_papal_state -# this = title:k_orthodox -# this = title:d_iconoclast -# this = title:d_patriarchate_in_the_east -# this = title:d_coptic_papacy -# this = title:d_apostolic_church -# this = title:d_conversos -# this = title:d_manichean -# this = title:d_sunni -# this = title:d_shiite -# this = title:d_imami -# this = title:d_masmudi -# this = title:d_muwalladi -# this = title:e_golden_horde -# this = title:e_ilkhanate -# #this = title:e_chagatai -# this = title:e_red_horde -# this = title:e_white_horde -# this = title:e_great_yuan -# this = title:e_blue_horde -# this = title:e_omnod_dalai_khanate -# this = title:e_aarlud_khanate -# this = title:e_togskol_khanate -# this = title:e_baruun_khanate -# this = title:e_uyghur_khanate -# this = title:e_kirghiz_khanate -# this = title:e_mongol_empire -# this = title:e_timurids -# #this = title:d_rabbinism -# this = title:d_karaism -# this = title:d_haymanot -# this = title:d_malabarism -# this = title:d_samaritan -# this = title:d_kabarism -# this = title:d_mazdayasna -# this = title:d_zurvanism -# this = title:d_gayomarthianism -# this = title:d_khurmazta -# this = title:d_mazdakism -# this = title:d_khurramism -# this = title:d_urartuism -# this = title:k_sakya_trizin -# this = title:k_switzerland -# this = title:k_visigoths -# this = title:e_latin_empire -# this = title:e_north_sea -# this = title:d_yungdrung_bon -# this = title:e_hre -# this = title:d_western_isles -# this = title:h_roman_empire -# this = title:e_byzantium -# this = title:h_eastern_roman_empire -# this = title:k_armenian_principality -# this = title:d_northern_isles -# this = title:e_wendish_empire -# this = title:e_west_slavia -# this = title:d_cherven_cities -# this = title:k_magyar -# this = title:e_persia -# this = title:e_arabia -# this = title:e_bengal -# this = title:e_deccan -# this = title:c_maldives -# -# #nobles -# -# this = title:d_nf_ampelas -# this = title:d_nf_aplakes -# this = title:d_nf_agelastos -# this = title:d_nf_doukas -# this = title:d_nf_gerontas -# this = title:d_nf_hexavoulis -# this = title:d_nf_kardias -# this = title:d_nf_katakalitzes -# this = title:d_nf_kourkouas -# this = title:d_nf_krateros -# this = title:d_nf_lachanodrakon -# this = title:d_nf_makedon -# this = title:d_nf_maleios -# this = title:d_nf_maleinos -# this = title:d_nf_maurikios -# this = title:d_nf_melissenos -# this = title:d_nf_pastillas -# this = title:d_nf_ooryphas -# this = title:d_nf_sellokalas -# this = title:d_nf_skleros -# this = title:d_nf_arcruni -# this = title:d_nf_argyros -# this = title:d_nf_basiliakos -# this = title:d_nf_botaneiates -# this = title:d_nf_bryennios -# this = title:d_nf_diogenes -# this = title:d_nf_dragosevic -# this = title:d_nf_kamateros -# this = title:d_nf_karandenos -# this = title:d_nf_kaukadenos -# this = title:d_nf_komnenos -# this = title:d_nf_makrembolites -# this = title:d_nf_murzuphlos -# this = title:d_nf_ouranos -# this = title:d_nf_pahlavuni -# this = title:d_nf_palaiologos -# this = title:d_nf_pegonites -# this = title:d_nf_phokas -# this = title:d_nf_pleustes -# this = title:d_nf_synadenos -# this = title:d_nf_tarchaneiotes -# this = title:d_nf_taronites -# this = title:d_nf_varajnuni -# this = title:d_nf_saronites -# this = title:d_nf_garidas -# this = title:d_nf_areobindenos -# this = title:d_nf_alopos -# this = title:d_nf_durres -# this = title:d_nf_angelos -# this = title:d_nf_batatzes -# this = title:d_nf_branas -# this = title:d_nf_gabras -# this = title:d_nf_kamytzes -# this = title:d_nf_kantakouzenos -# this = title:d_nf_komnenos_doukas -# this = title:d_nf_kontostephanos -# this = title:d_nf_lampardas -# this = title:d_nf_macrodoukas -# this = title:d_nf_petraliphas -# this = title:d_nf_raoul -# this = title:d_nf_rogerios -# -# this = title:d_laamp_anangapida -# this = title:d_laamp_ziyar -# this = title:d_laamp_ahwazi -# this = title:d_laamp_guttorm -# this = title:d_laamp_hrolfr -# this = title:d_laamp_ubbe -# this = title:d_laamp_enian -# this = title:d_laamp_sabbah -# this = title:d_laamp_wake -# this = title:d_laamp_el_cid -# this = title:d_laamp_crispin -# this = title:d_laamp_suleyman -# this = title:d_laamp_wallada -# this = title:d_laamp_danishmend -# this = title:d_laamp_voiteh -# this = title:d_laamp_aelfwine -# this = title:d_laamp_karatzas -# this = title:d_laamp_ding_hui -# this = title:d_laamp_zhu_quanzhong -# this = title:d_laamp_miyoshi_kiyotsura -# this = title:d_laamp_hidden_valley_banner -# this = title:d_laamp_way_of_the_mountains -# this = title:d_laamp_pongyi_thaing_fellowship -# this = title:d_laamp_ravine_lords -# this = title:d_laamp_sirafi_mariners -# this = title:d_laamp_liangshan_band -# this = title:d_laamp_frontier_guardians -# this = title:d_laamp_companions_of_caodong -# this = title:d_laamp_hiei_wayfarers -# this = title:d_laamp_northern_blades -# this = title:d_laamp_band_of_the_inland_sea -# this = title:d_laamp_munheon_disciples -# this = title:d_laamp_white_tigers -# this = title:d_laamp_pathwalkers -# this = title:d_laamp_delta_company -# this = title:d_laamp_leaf_hermits -# this = title:d_laamp_disciples_of_chongyang -# this = title:d_laamp_wandering_lute -# this = title:d_laamp_lembongs_band -# this = title:d_laamp_dawn_company -# this = title:d_laamp_eastern_sculptors -# this = title:d_laamp_stormbringers -# this = title:d_laamp_samadhi_and_prajna_society -# this = title:d_laamp_arrow_cutters -# this = title:d_laamp_ordinators -# this = title:d_laamp_kizil_buga -# this = title:d_laamp_ali_ibn_reverter -# this = title:d_laamp_andronikos_komnenos -# this = title:d_laamp_asen -# this = title:d_laamp_mieszko -# this = title:d_laamp_raimon_brun -# this = title:d_laamp_lalibela -# this = title:d_laamp_muhammad_bakhtiyar -# this = title:d_laamp_raoul -# -# -# } -# } -# -# #localization_key = title_adj_all_notooltip -# localization_key = PL_title_adj -# } -# -# text = { -# -# #localization_key = title_adj_fallback_notooltip -# localization_key = PL_title_adj_fallback -# fallback = yes -# -# } -# -# -#} -# -#TitleAdjBase2 = { -# log_loc_errors = no -# -# type = landed_title -# -# text = { -# #localization_key = title_adj_all_notier_notooltip -# localization_key = PL_title_adj_all_notier -# } -# -#} -# -## NoTooltip -#TitleAdjNoTooltip = { -# parent = TitleAdjBase -# suffix = "_notooltip" -#} -# -#TitleAdjNoTierNoTooltip = { -# parent = TitleAdjBase2 -# suffix = "_notooltip" -#} -# -#TitleAdjRealmAdjNoTierNoTooltip = { -# parent = TitleAdjBase2 -# suffix = "_realm_notooltip" -#} -# -# -# -## Tooltip -#TitleAdj = { -# parent = TitleAdjBase -# suffix = "_tooltip" -#} -# -#TitleAdjNoTier = { -# parent = TitleAdjBase2 -# suffix = "_tooltip" -#} -# -#TitleAdjRealmAdjNoTier = { -# parent = TitleAdjBase2 -# suffix = "_realm_tooltip" -#} -# -# -## -------------------------- Title Adj -------------------------- # -## v1.5 -#RealmTierType = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# primary_title.tier = tier_barony -# } -# localization_key = cv_realm_gov_type_barony -# } -# -# text = { -# trigger = { -# is_alive = no -# } -# localization_key = cv_realm_gov_type_dead -# } -# -# text = { -# fallback = yes -# localization_key = cv_realm_gov_type -# } -# -#} -# -## v1.5 - w oknie hrabstwa -#HoldingTypeYourAdj = { -# log_loc_errors = no -# type = province -# -# text = { -# trigger = { -# has_holding = no -# } -# localization_key = HOLDING_EMPTY -# } -# -# text = { -# trigger = { -# has_holding_type = castle_holding -# } -# localization_key = castle_holding_concept_your_adj -# } -# -# text = { -# trigger = { -# has_holding_type = city_holding -# } -# localization_key = city_holding_concept_your_adj -# } -# -# text = { -# trigger = { -# has_holding_type = church_holding -# } -# localization_key = church_holding_concept_your_adj -# } -# -# text = { -# trigger = { -# has_holding_type = tribal_holding -# } -# localization_key = tribal_holding_concept_your_adj -# } -# -# text = { -# fallback = yes -# localization_key = holding_fallback_concept_your_adj -# } -# -#} -# -## v1.5 -#HoldingTypeAdj = { -# log_loc_errors = no -# type = province -# -# text = { -# trigger = { -# has_holding = no -# } -# localization_key = HOLDING_EMPTY -# } -# -# text = { -# trigger = { -# has_holding_type = castle_holding -# } -# localization_key = castle_holding_concept_adj -# } -# -# text = { -# trigger = { -# has_holding_type = city_holding -# } -# localization_key = city_holding_concept_adj -# } -# -# text = { -# trigger = { -# has_holding_type = church_holding -# } -# localization_key = church_holding_concept_adj -# } -# -# text = { -# trigger = { -# has_holding_type = tribal_holding -# } -# localization_key = tribal_holding_concept_adj -# } -# -# text = { -# fallback = yes -# localization_key = holding_fallback_concept_adj -# } -# -#} -# -## v1.5 -#TitleZZe = { -# log_loc_errors = no -# type = landed_title -# -# text = { -# trigger = { -# OR = { -# this = title:b_wschowa -# this = title:b_szczecin -# this = title:b_slupsk -# # this = title:b_ortelsbur -# this = title:b_hammerstein -# this = title:b_schwetz -# this = title:b_gorlitz -# this = title:b_sprottau -# this = title:b_schweibus -# # this = title:b_lvov -# this = title:b_lviv -# this = title:b_stezyca -# this = title:b_slutsk -# this = title:b_smolensk -# -# } -# } -# localization_key = title_ze -# } -# -# text = { -# fallback = yes -# localization_key = title_z -# } -#} -# -# -## v1.5 -#TitleIsPlural = { -# log_loc_errors = no -# type = landed_title -# -# text = { -# trigger = { -# OR = { -# this = title:d_bohemia -# this = title:k_bohemia -# this = title:k_moravia -# this = title:d_prussia -# this = title:d_cherven_cities -# this = title:d_masuria -# this = title:d_transylvanian_alps -# this = title:k_hungary -# this = title:k_italy -# this = title:e_italy -# this = title:d_jomsvikings -# this = title:c_kujawy -# # this = title:c_lettigalians -# # this = title:d_arabs -# # this = title:d_kajaneborg -# # this = title:d_khazars -# # this = title:d_meryas -# # this = title:d_pruthenians -# # this = title:d_sami -# # this = title:d_veps -# # this = title:d_votes -# this = title:k_pechenegs -# this = title:c_golden_hills -# } -# } -# localization_key = pt_true -# } -# -# text = { -# fallback = yes -# localization_key = pt_false -# } -#} -# -# -#PL_ActivityStringBypass = { -# log_loc_errors = no -# type = activity -# -# text = { -# fallback = yes -# localization_key = pl_activity_string_bypass -# } -#} -# -#PL_ActivityGenitiveStringBypass = { -# log_loc_errors = no -# parent = PL_ActivityStringBypass -# suffix = "_genitive" -#} -# -#PL_ActivityAccusativeStringBypass = { -# log_loc_errors = no -# parent = PL_ActivityStringBypass -# suffix = "_accusative" -#} -# -#PL_ActivityLocativeStringBypass = { -# log_loc_errors = no -# parent = PL_ActivityStringBypass -# suffix = "_locative" -#} -# -#PL_Ruler_Government_Genitive = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# has_government = landless_adventurer_government -# } -# localization_key = pl_landless_ruler_gen -# } -# -# text = { -# trigger = { -# has_government = feudal_government -# } -# localization_key = pl_feudal_ruler_gen -# } -# -# text = { -# trigger = { -# has_government = clan_government -# } -# localization_key = pl_clan_ruler_gen -# } -# -# text = { -# trigger = { -# has_government = tribal_government -# } -# localization_key = pl_tribal_ruler_gen -# } -# -# text = { -# trigger = { -# has_government = theocracy_government -# } -# localization_key = pl_theocracy_ruler_gen -# } -# -# text = { -# trigger = { -# has_government = republic_government -# } -# localization_key = pl_republic_ruler_gen -# } -# -# text = { -# fallback = yes -# localization_key = pl_fallback_ruler_gen -# } -# -#} -# -#PL_GetDiarchTitle = { -# type = character -# log_loc_errors = no -# -# text = { -# trigger = { -# has_diarchy_type = vizierate -# } -# localization_key = pl_diarch_vizier -# } -# -# text = { -# trigger = { -# OR = { -# has_diarchy_type = regency -# has_diarchy_type = temporary_regency -# # has_diarchy_type = entrenched_regency -# } -# } -# localization_key = pl_diarch_regent -# } -# -# text = { -# fallback = yes -# localization_key = pl_diarch_fallback -# } -# -#} -# -#PL_GetDiarchTitleGenitive = { -# parent = PL_GetDiarchTitle -# suffix = "_genitive" -#} -# -#PL_GetDiarchTitleAccusative = { -# parent = PL_GetDiarchTitle -# suffix = "_accusative" -#} -# -#PL_GetDiarchTitleInstrumental = { -# parent = PL_GetDiarchTitle -# suffix = "_instrumental" -#} -# -# -#PL_GetDiarchyTypeName = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# has_diarchy_type = vizierate -# } -# localization_key = pl_diarch_vizierate -# } -# -# text = { -# trigger = { -# OR = { -# has_diarchy_type = temporary_regency -# } -# } -# localization_key = pl_diarch_temp_regency -# } -# -# text = { -# trigger = { -# OR = { -# has_diarchy_type = regency -# } -# } -# localization_key = pl_diarch_ent_regency -# } -# -# text = { -# fallback = yes -# localization_key = pl_diarch_type_fallback -# } -# -#} -# -#PL_GetDiarchyTypeNameAccusative = { -# parent = PL_GetDiarchyTypeName -# suffix = "_accusative" -#} -# -#PL_GetDiarchyTypeNameLocative = { -# parent = PL_GetDiarchyTypeName -# suffix = "_locative" -#} -# -# -#PL_GetDiarchyTypeNameGender = { -# parent = PL_GetDiarchyTypeName -# suffix = "_gender" -#} -# -# -# -#######High God###### -# -##v1.11 -#HighGodNameBase = { -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_high_god_name -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:sedism -# } -# localization_key = sedism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = priscillianism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:vaishnavism -# } -# localization_key = vaishnavism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:srikula_shaktism -# } -# localization_key = shaktism_good_god_sundari -# } -# -# text = { -# trigger = { -# this = faith:kalikula_shaktism -# } -# localization_key = shaktism_good_god_kali -# } -# -# text = { -# trigger = { -# this = faith:krishnaism -# } -# localization_key = krishnaism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:saura -# } -# localization_key = saura_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = west_african_bori_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = west_african_roog_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:urartuism -# } -# localization_key = urartuism_high_god_name -# } -# -# text = { -# trigger = { -# this = faith:khurmazta -# } -# localization_key = khurmazta_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_high_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_high_god_name -# } -#} -# -##v1.6 -#HighGodNameCel = { -# log_loc_errors = no -# parent = HighGodNameBase -# suffix = "_cel" -#} -# -##v1.6 -#HighGodNameWol = { -# log_loc_errors = no -# parent = HighGodNameBase -# suffix = "_wol" -#} -# -#######Health God###### -# -##v1.6 -#HealthGodNameBase = { -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_health_god_name -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_health_god_name #Chaxiraxi -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:sedism -# } -# localization_key = sedism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:smartism -# } -# localization_key = smartism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_health_god_name -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_good_god_dadrail -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_health_god_name -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_health_god_name -# } -#} -# -##v1.6 -#HealthGodNameCel = { -# log_loc_errors = no -# parent = HealthGodNameBase -# suffix = "_cel" -#} -# -##v1.6 -#HealthGodNameWol = { -# log_loc_errors = no -# parent = HealthGodNameBase -# suffix = "_wol" -#} -# -#######Creator###### -# -##v1.6 -#CreatorNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_creator_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_high_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sabianism -# } -# localization_key = sabianism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_creator_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_creator_god_name_cel -# } -#} -# -#######Fertility God###### -# -##v1.6 -#FertilityGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_fertility_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_fertility_god_name_cel #Moneiba (women) and Eranoranhan (male) -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:khurmazta -# } -# localization_key = khurmazta_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:urartuism -# this = faith:afridunism -# } -# } -# localization_key = urartuism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_fertility_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_fertility_god_name_cel -# } -#} -# -#######Wealth God###### -# -##v1.6 -#WealthGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_wealth_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_wealth_god_name_cel #Magec -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sedism -# } -# localization_key = sedism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_high_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vaishnavism -# } -# localization_key = vaishnavism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:krishnaism -# } -# localization_key = vaishnavism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:saura -# } -# localization_key = hinduism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_wealth_god_name_cel -# } -#} -# -#######Household God###### -# -##v1.6 -#HouseholdGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_household_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_household_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_household_god_name_cel #Maxios, minor gods who protected households and holy places -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_wealth_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:smartism -# } -# localization_key = smartism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_household_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_household_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_household_god_name_cel -# } -#} -# -#######Fate God###### -# -##v1.6 -#FateGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_fate_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_fate_god_name_cel #Achuguayo, god of Time so technically not fate but close enough. -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_high_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_fate_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:khurmazta -# } -# localization_key = khurmazta_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_fate_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_fate_god_name_cel -# } -#} -# -#######Knowledge God###### -# -##v1.6 -#KnowledgeGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_knowledge_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:cainitism -# } -# localization_key = cainitism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vaishnavism -# } -# localization_key = vaishnavism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:smartism -# } -# localization_key = smartism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:krishnaism -# } -# localization_key = vaishnavism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:saura -# } -# localization_key = hinduism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_knowledge_god_name_cel -# } -#} -# -#######War God###### -# -##v1.6 -#WarGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_war_god_name_cel -# } -# -# text = { -# trigger = { -# OR = { -# this = faith:coptic -# this = faith:armenian_apostolic -# } -# } -# localization_key = east_christian_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_war_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sedism -# } -# localization_key = sedism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vaishnavism -# } -# localization_key = vaishnavism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:shaivism -# } -# localization_key = shaivism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:smartism -# } -# localization_key = smartism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:krishnaism -# } -# localization_key = vaishnavism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:saura -# } -# localization_key = saura_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_war_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:khurmazta -# } -# localization_key = khurmazta_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_war_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_war_god_name_cel -# } -#} -# -#######Trickster God###### -# -##v1.6 -#TricksterGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_trickster_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_knowledge_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vaishnavism -# } -# localization_key = vaishnavism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:krishnaism -# } -# localization_key = vaishnavism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:saura -# } -# localization_key = hinduism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_trickster_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_trickster_god_name_cel -# } -#} -# -#######Night God###### -# -##v1.6 -#NightGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_night_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_night_god_name_cel -# } -#} -# -#######Water God###### -# -##v1.6 -#WaterGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# OR = { -# this = faith:catholic -# this = faith:orthodox -# } -# } -# localization_key = west_christian_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_water_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_water_god_name_cel #Achuhucanac, god of rain -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:yumaism -# } -# localization_key = yumaism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_water_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_high_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = bidu_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_water_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_water_god_name_cel -# } -#} -# -#######Witch God###### -# -##v1.6 -#WitchGodNameCel = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_witch_god_cel -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_witch_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_witch_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:valentinianism -# } -# localization_key = valentinianism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethianism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:priscillianism -# } -# localization_key = manicheanism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:mandeaism -# } -# localization_key = mandeaism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# this = faith:manichean -# } -# localization_key = manicheanism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = manicheanism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_night_god_name_cel -# } -# -# text = { -# trigger = { -# this = faith:west_african_bidu_pagan -# } -# localization_key = dogon_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = dogon_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = bori_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_night_god_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = roog_sene_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_witchgod_name_cel -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_witchgod_name_cel -# } -#} -# -#######Death Deity Wołacz###### -# -##v1.11 -#DeathDeityNameNarz = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_death_deity_name_narz -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_death_god_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_death_god_name_narz -# } -# -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_death_god_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = hinduism_death_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_death_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_high_god_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_devil_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = hinduism_death_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_death_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_devil_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_devil_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_fate_god_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_good_god_azazil_narz -# } -# -# text = { -# trigger = { -# this = faith:urartuism -# } -# localization_key = urartuism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_death_deity_name_narz -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_devil_name_narz -# } -# -# text = { -# fallback = yes -# localization_key = paganism_death_deity_name_narz -# } -#} -# -#######GHW###### -# -##v1.6 -#GHWNameBase = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = ghw_crusade -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = ghw_jihad -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = ghw_jihad -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = ghw_purification -# } -# -# text = { -# localization_key = ghw_great_holy_war -# fallback = yes -# } -#} -# -##v1.6 -#GHWNameAdj = { -# parent = GHWNameBase -# suffix = "_adj" -#} -# -##v1.6 -#GHWNameDop = { -# parent = GHWNameBase -# suffix = "_dop" -#} -# -#######Pantheon###### -# -##v1.6 -#PantheonTermIsFemale = { -# log_loc_errors = no -# type = faith -# -# ## true ## -# text = { -# trigger = { -# OR = { -# religion_tag = buddhism_religion -# religion_tag = dualism_religion -# religion_tag = paganism_religion -# religion_tag = west_african_orisha_religion -# } -# } -# localization_key = pt_true -# } -# -# -# ## fallback, false ## -# text = { -# fallback = yes -# localization_key = pt_false -# } -#} -# -##v1.6 -#PantheonTermBase = { -# log_loc_errors = no -# type = faith -# -# ## abosoma ## -# text = { -# trigger = { -# religion_tag = akom_religion -# } -# localization_key = akom_the_abosom -# } -# -# ## sił ## -# text = { -# trigger = { -# religion_tag = basque_religion -# } -# localization_key = religion_the_powers -# } -# -# ## bogów ## -# text = { -# trigger = { -# OR = { -# religion_tag = tani_religion -# religion_tag = baltic_religion -# religion_tag = bon_religion -# religion_tag = finno_ugric_religion -# religion_tag = germanic_religion -# religion_tag = hellenism_religion -# religion_tag = hinduism_religion -# religion_tag = jainism_religion -# religion_tag = kushitism_religion -# religion_tag = magyar_religion -# religion_tag = mundhum_religion -# religion_tag = qiangic_religion -# religion_tag = siberian_religion -# religion_tag = slavic_religion -# religion_tag = taoism_religion -# religion_tag = waaqism_religion -# religion_tag = west_african_roog_religion -# religion_tag = west_african_religion -# religion_tag = north_african_religion -# -# } -# } -# localization_key = religion_the_gods -# } -# -# ## sansary ## -# text = { -# trigger = { -# religion_tag = buddhism_religion -# } -# localization_key = buddhism_samsara -# } -# -# ## boga ## -# text = { -# trigger = { -# OR = { -# religion_tag = christianity_religion -# religion_tag = yazidi_religion -# } -# } -# localization_key = christianity_high_god_name -# } -# -# ## prawdziwej wiedzy ## -# text = { -# trigger = { -# religion_tag = dualism_religion -# } -# localization_key = dualism_good_god_knowledge -# } -# -# ## allaha ## -# text = { -# trigger = { -# religion_tag = islam_religion -# } -# localization_key = islam_high_god_name -# } -# -# ## pana ## -# text = { -# trigger = { -# religion_tag = judaism_religion -# } -# localization_key = judaism_high_god_name -# } -# -# ## matki ziemi i ojca nieba ## -# text = { -# trigger = { -# religion_tag = paganism_religion -# } -# localization_key = paganism_mother_earth_father_sky -# } -# -# ## tengriego ## -# text = { -# trigger = { -# religion_tag = tengrism_religion -# } -# localization_key = tengrism_high_god_name -# } -# -# ## duchów ## -# text = { -# trigger = { -# religion_tag = west_african_bori_religion -# } -# localization_key = religion_the_spirits -# } -# -# ## oriszy ## -# text = { -# trigger = { -# religion_tag = west_african_orisha_religion -# } -# localization_key = yoruba_the_orisa -# } -# -# ## ahury mazdy ## -# text = { -# trigger = { -# religion_tag = zoroastrianism_religion -# } -# localization_key = zoroastrianism_high_god_name -# } -# -# ## zuna ## -# text = { -# trigger = { -# religion_tag = zunism_religion -# } -# localization_key = zunism_high_god_name -# } -# -# ## fallback ## -# text = { -# fallback = yes -# localization_key = pantheon_term_fallback -# } -# -# -# -#} -# -##v1.6 -#PantheonTermGenitive = { -# parent = PantheonTermBase -# suffix = "_possessive" -#} -# -##v1.6 -#PantheonTermDative = { -# parent = PantheonTermBase -# suffix = "_dative" -#} -# -#######House of Worship ###### -# -##v1.6 -#HouseOfWorshipBase = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# this = faith:insular_celtic -# } -# localization_key = insular_celtic_house_of_worship -# } -# -# text = { -# trigger = { -# this = faith:bosnian_church -# } -# localization_key = bosnian_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_house_of_worship -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_house_of_worship -# } -# -# text = { -# trigger = { -# this = faith:alevi -# } -# localization_key = alevi_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_house_of_worship -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_house_of_worship -# } -# -# text = { -# localization_key = paganism_house_of_worship -# fallback = yes -# } -#} -# -##v1.6 -#HouseOfWorshipAdj = { -# parent = HouseOfWorshipBase -# suffix = "_adj" -#} -# -##v1.6 -#HouseOfWorshipPluralLocative = { -# parent = HouseOfWorshipBase -# suffix = "_plural_locative" -#} -# -#######Religious Text Adjective###### -#### v1.6 - Pisma Świętego, Koranu -# -#ReligiousTextAdj = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# this = faith:paulician -# } -# localization_key = paulician_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:vajrayana -# } -# localization_key = vajrayana_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:lamaism -# } -# localization_key = lamaism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:sabianism -# } -# localization_key = sabianism_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:cainitism -# } -# localization_key = cainite_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:alevi -# } -# localization_key = alevi_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:druze -# } -# localization_key = druze_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:haymanot -# } -# localization_key = haymanot_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_religious_text_adj -# } -# -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_religious_text_adj -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_religious_text_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_religious_text_adj -# } -# -# text = { -# localization_key = paganism_religious_text_adj -# fallback = yes -# } -#} -# -#######Religious Symbol Adjective###### -#### v1.6 - Krzyża, Kołowratu -# -#ReligiousSymbolAdj = { -# log_loc_errors = no -# type = faith -# -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_religious_symbol_adj -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = baltic_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_religious_symbol_adj -# } -# -# -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_religious_symbol_adj2 -# } -# -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = hinduism_religion -# } -# -# localization_key = hinduism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_religious_symbol_adj -# } -# -# -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = mundhum_religion -# } -# -# localization_key = mundhumism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = west_african_bori_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = west_african_roog_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_religious_symbol_adj -# } -# -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_religious_symbol_adj -# } -# -# text = { -# localization_key = paganism_religious_text_adj -# fallback = yes -# } -#} -# -# -## v1.6 -#PositiveAfterLifeBase = { -# log_loc_errors = no -# type = faith -# -# #Wiary na poczatku -# -# #faith:sethianism -# text = { -# trigger = { -# this = faith:sethianism -# } -# localization_key = sethian_divine_realm -# } -# -# #faith:melieism -# text = { -# trigger = { -# this = faith:melieism -# } -# localization_key = tangut_positive_afterlife -# } -# -# # _________________________________________________________________ # -# -# #akom -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_afterlife -# } -# -# #basque -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_positive_afterlife -# } -# -# #baltic -# text = { -# trigger = { -# -# religion_tag = baltic_religion -# } -# -# localization_key = paganism_afterlife -# } -# -# #bon -# text = { -# trigger = { -# -# religion_tag = bon_religion -# } -# -# localization_key = bon_afterlife_positive -# } -# -# #buddhism -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_divine_realm -# } -# -# #christianity -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_positive_afterlife -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_positive_afterlife -# } -# -# #tani -# text = { -# trigger = { -# -# religion_tag = tani_religion -# } -# -# localization_key = tani_positive_afterlife -# } -# -# #dualism -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_positive_afterlife -# } -# -# #finno-ugric -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_afterlife -# } -# -# #germanic -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_positive_afterlife -# } -# -# #hellenism -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_death_deity_name -# } -# -# #hinduism, mundhum -# text = { -# trigger = { -# -# OR = { -# religion_tag = hinduism_religion -# religion_tag = mundhum_religion -# } -# } -# -# localization_key = hinduism_positive_afterlife -# } -# -# #islam -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_positive_afterlife -# } -# -# #jainism -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_positive_afterlife -# } -# -# #judaism -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_positive_afterlife -# } -# -# #kushitism -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_divine_realm -# } -# -# #magyar -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_divine_realm -# } -# -# #paganism -# text = { -# trigger = { -# -# religion_tag = paganism_religion -# } -# -# localization_key = paganism_divine_realm -# } -# -# #qiangic -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_positive_afterlife -# } -# -# #siberian -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_divine_realm -# } -# -# #slavic -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_positive_afterlife -# } -# -# #taoism -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_positive_afterlife -# } -# -# #tengrism -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_divine_realm -# } -# -# #waaqism -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_afterlife -# } -# -# #west african bori -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = west_african_bori_divine_realm -# } -# -# #west african orisha -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_divine_realm -# } -# -# #west african roog -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = west_african_roog_afterlife -# } -# -# #west african -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_divine_realm -# } -# -# #yazidi -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_positive_afterlife -# } -# -# #zoroastrianism -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_positive_afterlife -# } -# -# #zunism -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_divine_realm -# } -# -# #fallback -# text = { -# localization_key = positive_afterlife_fallback -# fallback = yes -# } -#} -# -## v1.5 -#PositiveAfterLifeLocative = { -# log_loc_errors = no -# parent = PositiveAfterLifeBase -# suffix = "_locative" -#} -# -## v1.5 -#PositiveAfterLifeGenitive = { -# log_loc_errors = no -# parent = PositiveAfterLifeBase -# suffix = "_genitive" -#} -# -## v1.5 -#NegativeAfterLifeBase = { -# log_loc_errors = no -# type = faith -# -# #akom -# text = { -# trigger = { -# -# religion_tag = akom_religion -# } -# -# localization_key = akom_afterlife -# } -# -# #basque -# text = { -# trigger = { -# -# religion_tag = basque_religion -# } -# -# localization_key = basque_negative_afterlife -# } -# -# #baltic, paganism -# text = { -# trigger = { -# -# OR = { -# religion_tag = baltic_religion -# religion_tag = paganism_religion -# } -# } -# -# localization_key = paganism_afterlife -# } -# -# #bon, tani -# text = { -# trigger = { -# -# OR = { -# religion_tag = bon_religion -# religion_tag = tani_religion -# } -# } -# -# localization_key = bon_afterlife_negative -# } -# -# #buddhism -# text = { -# trigger = { -# -# religion_tag = buddhism_religion -# } -# -# localization_key = buddhism_negative_afterlife -# } -# -# #christianity -# text = { -# trigger = { -# -# religion_tag = christianity_religion -# } -# -# localization_key = christianity_negative_afterlife -# } -# -# #north african -# text = { -# trigger = { -# -# religion_tag = north_african_religion -# } -# -# localization_key = acham_negative_afterlife -# } -# -# #dualism -# text = { -# trigger = { -# -# religion_tag = dualism_religion -# } -# -# localization_key = dualism_negative_afterlife -# } -# -# #finno-ugric -# text = { -# trigger = { -# -# religion_tag = finno_ugric_religion -# } -# -# localization_key = finno_ugric_afterlife -# } -# -# #germanic -# text = { -# trigger = { -# -# religion_tag = germanic_religion -# } -# -# localization_key = germanic_death_deity_name -# } -# -# #hellenism -# text = { -# trigger = { -# -# religion_tag = hellenism_religion -# } -# -# localization_key = hellenism_death_deity_name -# } -# -# #hinduism, mundhum -# text = { -# trigger = { -# -# OR = { -# religion_tag = hinduism_religion -# religion_tag = mundhum_religion -# } -# } -# -# localization_key = hinduism_negative_afterlife -# } -# -# #islam -# text = { -# trigger = { -# -# religion_tag = islam_religion -# } -# -# localization_key = islam_negative_afterlife -# } -# -# #jainism -# text = { -# trigger = { -# -# religion_tag = jainism_religion -# } -# -# localization_key = jainism_negative_afterlife -# } -# -# #judaism -# text = { -# trigger = { -# -# religion_tag = judaism_religion -# } -# -# localization_key = judaism_negative_afterlife -# } -# -# #kushitism -# text = { -# trigger = { -# -# religion_tag = kushitism_religion -# } -# -# localization_key = kushitism_divine_realm -# } -# -# #magyar -# text = { -# trigger = { -# -# religion_tag = magyar_religion -# } -# -# localization_key = magyar_afterlife -# } -# -# #qiangic -# text = { -# trigger = { -# -# religion_tag = qiangic_religion -# } -# -# localization_key = qiangic_negative_afterlife -# } -# -# #siberian -# text = { -# trigger = { -# -# religion_tag = siberian_religion -# } -# -# localization_key = siberian_afterlife_negative -# } -# -# #slavic -# text = { -# trigger = { -# -# religion_tag = slavic_religion -# } -# -# localization_key = slavic_negative_afterlive -# } -# -# #taoism -# text = { -# trigger = { -# -# religion_tag = taoism_religion -# } -# -# localization_key = taoism_negative_afterlife -# } -# -# #tengrism -# text = { -# trigger = { -# -# religion_tag = tengrism_religion -# } -# -# localization_key = tengrism_afterlife_negative -# } -# -# #waaqism -# text = { -# trigger = { -# -# religion_tag = waaqism_religion -# } -# -# localization_key = waaqism_afterlife -# } -# -# #west african bori -# text = { -# trigger = { -# -# religion_tag = west_african_bori_religion -# } -# -# localization_key = west_african_bori_divine_realm -# } -# -# #west african orisha -# text = { -# trigger = { -# -# religion_tag = west_african_orisha_religion -# } -# -# localization_key = yoruba_divine_realm -# } -# -# #west african roog -# text = { -# trigger = { -# -# religion_tag = west_african_roog_religion -# } -# -# localization_key = west_african_roog_afterlife -# } -# -# #west african -# text = { -# trigger = { -# -# religion_tag = west_african_religion -# } -# -# localization_key = west_african_divine_realm -# } -# -# #yazidi -# text = { -# trigger = { -# -# religion_tag = yazidi_religion -# } -# -# localization_key = yazidi_negative_afterlife -# } -# -# #zoroastrianism -# text = { -# trigger = { -# -# religion_tag = zoroastrianism_religion -# } -# -# localization_key = zoroastrianism_negative_afterlife -# } -# -# #zunism -# text = { -# trigger = { -# -# religion_tag = zunism_religion -# } -# -# localization_key = zunism_afterlife_negative -# } -# -# #fallback -# text = { -# localization_key = negative_afterlife_fallback -# fallback = yes -# } -#} -# -## v1.5 -#NegativeAfterLifeGenitive = { -# log_loc_errors = no -# parent = NegativeAfterLifeBase -# suffix = "_genitive" -#} -# -## v1.5 -#NegativeAfterLifeLocative = { -# log_loc_errors = no -# parent = NegativeAfterLifeBase -# suffix = "_locative" -#} -# -################################################### ################################################## ################################################## -# -#PL_1_GetAppropriateGodname = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# house.house_head.faith = { -# OR = { -# religion_tag = christianity_religion -# religion_tag = islam_religion -# religion_tag = judaism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Boze -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# religion_tag = buddhism_religion -# } -# } -# localization_key = CustomLoc_PL_Doskonali -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# OR = { -# religion_tag = dualism_religion -# religion_tag = zoroastrianism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Niebiosa -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# NOR = { -# religion_tag = dualism_religion -# religion_tag = zoroastrianism_religion -# religion_tag = buddhism_religion -# religion_tag = christianity_religion -# religion_tag = islam_religion -# religion_tag = judaism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Bogowie -# } -# -# text = { -# trigger = { -# always = no -# } -# localization_key = CustomLoc_PL_Inne -# fallback = yes -# } -#} -# -#PL_2_GetAppropriateGodname = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# house.house_head.faith = { -# OR = { -# religion_tag = christianity_religion -# religion_tag = islam_religion -# religion_tag = judaism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Boga -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# religion_tag = buddhism_religion -# } -# } -# localization_key = CustomLoc_PL_Doskonalych -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# OR = { -# religion_tag = dualism_religion -# religion_tag = zoroastrianism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Niebiosa2 -# } -# -# text = { -# trigger = { -# house.house_head.faith = { -# NOR = { -# religion_tag = dualism_religion -# religion_tag = zoroastrianism_religion -# religion_tag = buddhism_religion -# religion_tag = christianity_religion -# religion_tag = islam_religion -# religion_tag = judaism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Bogow -# } -# -# text = { -# trigger = { -# always = no -# } -# localization_key = CustomLoc_PL_Inne2 -# fallback = yes -# } -#} -# -#PL_Cie = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# house.house_head.faith = { -# OR = { -# religion_tag = christianity_religion -# religion_tag = islam_religion -# religion_tag = judaism_religion -# } -# } -# } -# localization_key = CustomLoc_PL_Brak -# } -# -# text = { -# trigger = { -# always = no -# } -# localization_key = CustomLoc_PL_Cie -# fallback = yes -# } -#} -# \ No newline at end of file diff --git a/common/customizable_localization/00_pl_relations.txt b/common/customizable_localization/00_pl_relations.txt deleted file mode 100644 index 2f6ba289..00000000 --- a/common/customizable_localization/00_pl_relations.txt +++ /dev/null @@ -1,220 +0,0 @@ -#### Relacje postaci ### -# -## PL_nephew -## PL_niece -# -## ----- Dla RelationToMe ----- -# -## MySheHe - moja, mój -## MySheHeGenitive - mojej, mojego -## MySheHeLocative - mojej, moim -## YourSheHe - twój, twoja w zależności od relacji -## RelationToMeAccusative - żonę, męża, siostrę -## RelationToMeVocative - żono, mężu, siostro -## RelationToMeLocative - żonie, mężu, siostrze -## RelationToMeDative - żonie, mężowi, znajomemu -## RelationToMeInstrumental - żoną, mężem, znajomym -## RelationToMePossessive - żony, męża, następcy (oryginalne) -# -## ----- Dla RelationToMeShort ----- -# -## RelationToMeShortGenitive - żony, męża, siostry -## RelationToMeShortAccusative - żonę, męża, siostrę -## RelationToMeShortVocative - żono, mężu, siostro -## RelationToMeShortLocative - żonie, mężu, siostrze -## RelationToMeShortDative - żonie, mężowi, znajomemu -## RelationToMeShortInstrumental - żoną, mężem, znajomym -# -## ----- Dla RelationToMeAddress ----- -# -## RelationToMeAddressVocative - moja miłości, mój przyjecielu -# -## ----- Dla CouncilPosition ----- -# -## CouncilPositionGender - zarządca, zarządczyni -## CouncilPositionGenderPossessive - zarządcy, zarządczyni -## CouncilPositionGenderAccusative -## CouncilPositionGenderVocative -## CouncilPositionGenderLocative -## CouncilPositionGenderDative -## CouncilPositionGenderInstrumental -# -## ----- inne / nie do powszechnego użycia ----- -# -## MyCharacterIntroductionNoComma_PL -## MySheHeGUI -# -## Nephew - siostrzeniec/bratanek -## Niece - siostrzenica/bratanica -#PL_nephew = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = nephew_from_brother -# trigger = { -# root.father = { -# is_sibling_of = scope:second -# } -# -# } -# } -# -# text = { -# fallback = yes -# localization_key = nephew_from_sister -# trigger = { -# root.mother = { -# is_sibling_of = scope:second -# } -# } -# } -#} -# -#PL_nephew_possessive = { -# parent = PL_nephew -# suffix = "_possessive" -#} -# -#PL_nephew_accusative = { -# parent = PL_nephew -# suffix = "_accusative" -#} -# -#PL_nephew_vocative = { -# parent = PL_nephew -# suffix = "_vocative" -#} -# -#PL_nephew_locative = { -# parent = PL_nephew -# suffix = "_locative" -#} -# -#PL_nephew_dative = { -# parent = PL_nephew -# suffix = "_dative" -#} -# -#PL_nephew_instrumental = { -# parent = PL_nephew -# suffix = "_instrumental" -#} -# -#PL_niece = { -# log_loc_errors = no -# type = character -# -# text = { -# localization_key = niece_from_brother -# trigger = { -# root.father = { -# is_sibling_of = scope:second -# } -# -# } -# } -# -# text = { -# fallback = yes -# localization_key = niece_from_sister -# trigger = { -# root.mother = { -# is_sibling_of = scope:second -# } -# } -# } -#} -# -#PL_niece_possessive = { -# parent = PL_niece -# suffix = "_possessive" -#} -# -#PL_niece_accusative = { -# parent = PL_niece -# suffix = "_accusative" -#} -# -#PL_niece_vocative = { -# parent = PL_niece -# suffix = "_vocative" -#} -# -#PL_niece_locative = { -# parent = PL_niece -# suffix = "_locative" -#} -# -#PL_niece_dative = { -# parent = PL_niece -# suffix = "_dative" -#} -# -#PL_niece_instrumental = { -# parent = PL_niece -# suffix = "_instrumental" -#} -# -# -#CouncilPositionPL = { -# log_loc_errors = no -# type = character -# -# text = { -# trigger = { -# has_council_position = councillor_chancellor -# } -# localization_key = councillor_chancellor -# } -# -# text = { -# trigger = { -# has_council_position = councillor_spouse -# } -# localization_key = councillor_spouse -# } -# -# text = { -# trigger = { -# has_council_position = councillor_marshal -# } -# localization_key = councillor_marshal -# } -# -# -# text = { -# trigger = { -# has_council_position = councillor_steward -# } -# localization_key = councillor_steward -# } -# -# -# text = { -# trigger = { -# has_council_position = councillor_spymaster -# } -# localization_key = councillor_spymaster -# } -# -# text = { -# trigger = { -# has_council_position = councillor_court_chaplain -# } -# localization_key = councillor_court_chaplain -# } -# -# text = { -# trigger = { -# has_council_position = councillor_vizier -# } -# localization_key = councillor_vizier -# } -# -# text = { -# fallback = yes -# localization_key = councillor_position_fallback -# } -#} -# \ No newline at end of file diff --git a/common/customizable_localization/00_war_custom_loc.txt b/common/customizable_localization/00_war_custom_loc.txt index 2a26ae8b..e8ff92d4 100644 --- a/common/customizable_localization/00_war_custom_loc.txt +++ b/common/customizable_localization/00_war_custom_loc.txt @@ -356,7 +356,7 @@ WarCasusBelliShort = { using_cb = duchy_conquest_cb using_cb = county_struggle_cb using_cb = fp2_mediterranean_conquest_cb -# using_cb = hungarian_migration_cb + using_cb = hungarian_migration_cb using_cb = sons_of_lothbrok_invasion_cb } } diff --git a/common/customizable_localization/06_ce1_legends_custom_loc.txt b/common/customizable_localization/06_ce1_legends_custom_loc.txt index 94af096f..6218205d 100644 --- a/common/customizable_localization/06_ce1_legends_custom_loc.txt +++ b/common/customizable_localization/06_ce1_legends_custom_loc.txt @@ -16,222 +16,222 @@ GetMythicalFounder = { type = character random_valid = yes -# text = { # Charles Martell -# trigger = { -# var:mythical_ancestor_var = flag:charles_martell -# } -# localization_key = MythicalFounder_charles_martell -# } -# text = { # Alexander the Great -# trigger = { -# var:mythical_ancestor_var = flag:alexander -# } -# localization_key = MythicalFounder_alexander -# } -# text = { # Lech -# trigger = { -# var:mythical_ancestor_var = flag:lech -# } -# localization_key = MythicalFounder_lech -# } -# text = { # Czech -# trigger = { -# var:mythical_ancestor_var = flag:czech -# } -# localization_key = MythicalFounder_czech -# } -# text = { # Rus -# trigger = { -# var:mythical_ancestor_var = flag:rus -# } -# localization_key = MythicalFounder_rus -# } -# text = { # King Arthur -# trigger = { -# var:mythical_ancestor_var = flag:arthur -# } -# localization_key = MythicalFounder_arthur -# } -# text = { # Corineus -# trigger = { -# var:mythical_ancestor_var = flag:corineus -# } -# localization_key = MythicalFounder_corineus -# } -# text = { # Magnus Maximus -# trigger = { -# var:mythical_ancestor_var = flag:magnus_maximus -# } -# localization_key = MythicalFounder_magnus_maximus -# } -# text = { # Brutus of Troy -# trigger = { -# var:mythical_ancestor_var = flag:brutus -# } -# localization_key = MythicalFounder_brutus -# } -# text = { # Aeneas -# trigger = { -# var:mythical_ancestor_var = flag:aeneas -# } -# localization_key = MythicalFounder_aeneas -# } -# text = { # Scota -# trigger = { -# var:mythical_ancestor_var = flag:scota -# } -# localization_key = MythicalFounder_scota -# } -# text = { # Romulus -# trigger = { -# var:mythical_ancestor_var = flag:romulus -# } -# localization_key = MythicalFounder_romulus -# } -# text = { # Numa Pompilius -# trigger = { -# var:mythical_ancestor_var = flag:numa -# } -# localization_key = MythicalFounder_numa -# } -# text = { # Belisarius -# trigger = { -# var:mythical_ancestor_var = flag:belisarius -# } -# localization_key = MythicalFounder_belisarius -# } -# text = { # Ardashir -# trigger = { -# var:mythical_ancestor_var = flag:ardashir -# } -# localization_key = MythicalFounder_ardashir -# } -# text = { # Pharaohs -# trigger = { -# var:mythical_ancestor_var = flag:pharaohs -# } -# localization_key = MythicalFounder_pharaohs -# } -# text = { # Visigothic Kings -# trigger = { -# var:mythical_ancestor_var = flag:visigothic_kings -# } -# localization_key = MythicalFounder_visigothic_kings -# } -# text = { # Abd al-Rahman -# trigger = { -# var:mythical_ancestor_var = flag:abd_al_rahman -# } -# localization_key = MythicalFounder_abd_al_rahman -# } -# text = { # Zenobia -# trigger = { -# var:mythical_ancestor_var = flag:zenobia -# } -# localization_key = MythicalFounder_zenobia -# } -# text = { # King Solomon -# trigger = { -# var:mythical_ancestor_var = flag:solomon -# } -# localization_key = MythicalFounder_solomon -# } -# text = { # Conan Meriadoc -# trigger = { -# var:mythical_ancestor_var = flag:conan_meriadoc -# } -# localization_key = MythicalFounder_conan_meriadoc -# } -# text = { # Pishdadian Dynasty -# trigger = { -# var:mythical_ancestor_var = flag:pishdadian -# } -# localization_key = MythicalFounder_pishdadian -# } -# text = { # Chościsko -# trigger = { -# var:mythical_ancestor_var = flag:choscisko -# } -# localization_key = MythicalFounder_choscisko -# } -# text = { # Arsacids -# trigger = { -# var:mythical_ancestor_var = flag:arsacids -# } -# localization_key = MythicalFounder_arsacids -# } -# text = { # King David -# trigger = { -# var:mythical_ancestor_var = flag:david -# } -# localization_key = MythicalFounder_david -# } -# text = { # Karkota Naga -# trigger = { -# var:mythical_ancestor_var = flag:naga -# } -# localization_key = MythicalFounder_naga -# } -# text = { # God Brahman -# trigger = { -# var:mythical_ancestor_var = flag:brahman -# } -# localization_key = MythicalFounder_brahman -# } -# text = { # Odin -# trigger = { -# var:mythical_ancestor_var = flag:odin -# } -# localization_key = MythicalFounder_odin -# } -# text = { # Ragnar Lodbrok -# trigger = { -# var:mythical_ancestor_var = flag:ragnar -# } -# localization_key = MythicalFounder_ragnar -# } -# text = { # Brunhild -# trigger = { -# var:mythical_ancestor_var = flag:brunhild -# } -# localization_key = MythicalFounder_brunhild -# } -# text = { # Eremon -# trigger = { -# var:mythical_ancestor_var = flag:eremon -# } -# localization_key = MythicalFounder_eremon -# } -# text = { # Eber -# trigger = { -# var:mythical_ancestor_var = flag:eber -# } -# localization_key = MythicalFounder_eber -# } -# text = { # Genghis Khan -# trigger = { -# var:mythical_ancestor_var = flag:genghis -# } -# localization_key = MythicalFounder_genghis -# } -# text = { # Emperor Constantine I -# trigger = { -# var:mythical_ancestor_var = flag:constantine -# } -# localization_key = MythicalFounder_constantine -# } -# text = { # Emperor Justinian I -# trigger = { -# var:mythical_ancestor_var = flag:justinian -# } -# localization_key = MythicalFounder_justinian -# } -# text = { # Melusine -# trigger = { -# var:mythical_ancestor_var = flag:melusine -# } -# localization_key = MythicalFounder_melusina -# } + text = { # Charles Martell + trigger = { + var:mythical_ancestor_var = flag:charles_martell + } + localization_key = MythicalFounder_charles_martell + } + text = { # Alexander the Great + trigger = { + var:mythical_ancestor_var = flag:alexander + } + localization_key = MythicalFounder_alexander + } + text = { # Lech + trigger = { + var:mythical_ancestor_var = flag:lech + } + localization_key = MythicalFounder_lech + } + text = { # Czech + trigger = { + var:mythical_ancestor_var = flag:czech + } + localization_key = MythicalFounder_czech + } + text = { # Rus + trigger = { + var:mythical_ancestor_var = flag:rus + } + localization_key = MythicalFounder_rus + } + text = { # King Arthur + trigger = { + var:mythical_ancestor_var = flag:arthur + } + localization_key = MythicalFounder_arthur + } + text = { # Corineus + trigger = { + var:mythical_ancestor_var = flag:corineus + } + localization_key = MythicalFounder_corineus + } + text = { # Magnus Maximus + trigger = { + var:mythical_ancestor_var = flag:magnus_maximus + } + localization_key = MythicalFounder_magnus_maximus + } + text = { # Brutus of Troy + trigger = { + var:mythical_ancestor_var = flag:brutus + } + localization_key = MythicalFounder_brutus + } + text = { # Aeneas + trigger = { + var:mythical_ancestor_var = flag:aeneas + } + localization_key = MythicalFounder_aeneas + } + text = { # Scota + trigger = { + var:mythical_ancestor_var = flag:scota + } + localization_key = MythicalFounder_scota + } + text = { # Romulus + trigger = { + var:mythical_ancestor_var = flag:romulus + } + localization_key = MythicalFounder_romulus + } + text = { # Numa Pompilius + trigger = { + var:mythical_ancestor_var = flag:numa + } + localization_key = MythicalFounder_numa + } + text = { # Belisarius + trigger = { + var:mythical_ancestor_var = flag:belisarius + } + localization_key = MythicalFounder_belisarius + } + text = { # Ardashir + trigger = { + var:mythical_ancestor_var = flag:ardashir + } + localization_key = MythicalFounder_ardashir + } + text = { # Pharaohs + trigger = { + var:mythical_ancestor_var = flag:pharaohs + } + localization_key = MythicalFounder_pharaohs + } + text = { # Visigothic Kings + trigger = { + var:mythical_ancestor_var = flag:visigothic_kings + } + localization_key = MythicalFounder_visigothic_kings + } + text = { # Abd al-Rahman + trigger = { + var:mythical_ancestor_var = flag:abd_al_rahman + } + localization_key = MythicalFounder_abd_al_rahman + } + text = { # Zenobia + trigger = { + var:mythical_ancestor_var = flag:zenobia + } + localization_key = MythicalFounder_zenobia + } + text = { # King Solomon + trigger = { + var:mythical_ancestor_var = flag:solomon + } + localization_key = MythicalFounder_solomon + } + text = { # Conan Meriadoc + trigger = { + var:mythical_ancestor_var = flag:conan_meriadoc + } + localization_key = MythicalFounder_conan_meriadoc + } + text = { # Pishdadian Dynasty + trigger = { + var:mythical_ancestor_var = flag:pishdadian + } + localization_key = MythicalFounder_pishdadian + } + text = { # Chościsko + trigger = { + var:mythical_ancestor_var = flag:choscisko + } + localization_key = MythicalFounder_choscisko + } + text = { # Arsacids + trigger = { + var:mythical_ancestor_var = flag:arsacids + } + localization_key = MythicalFounder_arsacids + } + text = { # King David + trigger = { + var:mythical_ancestor_var = flag:david + } + localization_key = MythicalFounder_david + } + text = { # Karkota Naga + trigger = { + var:mythical_ancestor_var = flag:naga + } + localization_key = MythicalFounder_naga + } + text = { # God Brahman + trigger = { + var:mythical_ancestor_var = flag:brahman + } + localization_key = MythicalFounder_brahman + } + text = { # Odin + trigger = { + var:mythical_ancestor_var = flag:odin + } + localization_key = MythicalFounder_odin + } + text = { # Ragnar Lodbrok + trigger = { + var:mythical_ancestor_var = flag:ragnar + } + localization_key = MythicalFounder_ragnar + } + text = { # Brunhild + trigger = { + var:mythical_ancestor_var = flag:brunhild + } + localization_key = MythicalFounder_brunhild + } + text = { # Eremon + trigger = { + var:mythical_ancestor_var = flag:eremon + } + localization_key = MythicalFounder_eremon + } + text = { # Eber + trigger = { + var:mythical_ancestor_var = flag:eber + } + localization_key = MythicalFounder_eber + } + text = { # Genghis Khan + trigger = { + var:mythical_ancestor_var = flag:genghis + } + localization_key = MythicalFounder_genghis + } + text = { # Emperor Constantine I + trigger = { + var:mythical_ancestor_var = flag:constantine + } + localization_key = MythicalFounder_constantine + } + text = { # Emperor Justinian I + trigger = { + var:mythical_ancestor_var = flag:justinian + } + localization_key = MythicalFounder_justinian + } + text = { # Melusine + trigger = { + var:mythical_ancestor_var = flag:melusine + } + localization_key = MythicalFounder_melusina + } text = { # Fallback trigger = { var:mythical_ancestor_var = flag:fallback @@ -310,7 +310,7 @@ GetRandomExteriorDetail = { #Remember to use the 1st person present in the loc, trigger = { location = { has_holding_type = church_holding - county = { NEOW_religion_is_broadly_christian_trigger = yes } + county.OR = { faith.religion = religion:protestant_religion faith.religion = religion:catholic_religion faith.religion = religion:eastern_orthodox_religion } } } localization_key = GetRandomExteriorDetail_bells diff --git a/common/decisions/00_diarchy_decisions.txt b/common/decisions/00_diarchy_decisions.txt index e64e37a1..316753bd 100644 --- a/common/decisions/00_diarchy_decisions.txt +++ b/common/decisions/00_diarchy_decisions.txt @@ -20,27 +20,27 @@ diarch_attempt_to_overthrow_liege = { } } selection_tooltip = diarch_attempt_to_overthrow_liege_tooltip -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/00_fp3_decisions.txt b/common/decisions/00_fp3_decisions.txt index 2691d42a..93d51834 100644 --- a/common/decisions/00_fp3_decisions.txt +++ b/common/decisions/00_fp3_decisions.txt @@ -1,620 +1,619 @@ -# -#### Find a New Faith for Persia ### -#adopt_a_new_faith_for_persia_decision = { -# ai_check_interval_by_tier = { -# barony = 0 -# county = 36 -# duchy = 12 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# sort_order = -20 -# decision_group_type = major -# -# cooldown = { years = 30 } -# -# is_shown = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# is_landed = yes -# has_trait = fp3_struggle_detractor -# } -# -# is_valid_showing_failures_only = { -# faith.religion = religion:islam_religion -# } -# -# is_valid = { -# -# } -# -# widget = { -# gui = "decision_view_widget_generic_multichoice_with_effects" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_PERSIAN_FAITH" -# show_from_start = yes -# -# ### imami -# item = { -# value = choose_imami -# is_valid = { -# NOT = { faith = faith:imami } -# } -# current_description = choose_imami_desc -# localization = choose_imami_name -# icon = "gfx/interface/icons/faith/imami.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# highest_held_title_tier >= tier_kingdom -# ai_boldness >= 25 -# } -# add = 20 -# } -# if = { -# limit = { -# any_sub_realm_county = { -# faith = faith:imami -# } -# } -# add = 10 -# } -# if = { -# limit = { -# exists = title:d_sunni.holder -# opinion = { -# target = title:d_sunni.holder -# value < -20 -# } -# } -# add = 20 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:imami -# } -# } -# multiply = 4 -# } -# } -# } -# ### alevi -# item = { -# value = choose_alevi -# is_valid = { -# NOT = { faith = faith:alevi } -# } -# current_description = choose_alevi_desc -# localization = choose_alevi_name -# icon = "gfx/interface/icons/faith/alevi.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# any_sub_realm_county = { -# faith = faith:alevi -# } -# } -# add = 10 -# } -# if = { -# limit = { -# exists = title:d_sunni.holder -# opinion = { -# target = title:d_sunni.holder -# value < -20 -# } -# culture = { has_cultural_pillar = heritage_turkic } -# } -# add = 50 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:alevi -# } -# culture = { has_cultural_pillar = heritage_turkic } -# } -# multiply = 4 -# } -# } -# } -# ### nizari -# item = { -# value = choose_nizari -# is_valid = { -# NOT = { faith = faith:nizari } -# } -# current_description = choose_nizari_desc -# localization = choose_nizari_name -# icon = "gfx/interface/icons/faith/nizari.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# any_sub_realm_county = { -# faith = faith:nizari -# } -# } -# add = 10 -# } -# if = { -# limit = { -# highest_held_title_tier >= tier_kingdom -# ai_boldness >= 25 -# } -# add = 10 -# } -# if = { -# limit = { -# exists = title:d_sunni.holder -# opinion = { -# target = title:d_sunni.holder -# value < -20 -# } -# } -# add = 20 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:nizari -# } -# } -# multiply = 4 -# } -# } -# } -# ### zayidi -# item = { -# value = choose_zayidi -# is_valid = { -# NOT = { faith = faith:zayidi } -# } -# current_description = choose_zayidi_desc -# localization = choose_zayidi_name -# icon = "gfx/interface/icons/faith/zayidi.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# any_sub_realm_county = { -# faith = faith:zayidi -# } -# } -# add = 10 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:zayidi -# piety_level >= 3 -# } -# } -# add = 100 -# } -# if = { -# limit = { -# OR = { -# culture = culture:daylamite -# culture = { any_parent_culture_or_above = { this = culture:daylamite } } -# } -# } -# add = 50 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:zayidi -# root = { -# opinion = { -# target = prev -# value >= 20 -# } -# } -# } -# } -# add = 20 -# } -# } -# } -# -# ### Maturidi -# item = { -# value = choose_maturidi -# is_valid = { -# NOT = { faith = faith:maturidi } -# } -# current_description = choose_maturidi_desc -# localization = choose_maturidi_name -# icon = "gfx/interface/icons/faith/maturidi.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# any_sub_realm_county = { -# count >= 4 -# faith = faith:maturidi -# } -# } -# add = 5 -# } -# if = { -# limit = { -# exists = title:d_sunni.holder -# opinion = { -# target = title:d_sunni.holder -# value >= -20 -# } -# } -# add = 10 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:maturidi -# } -# } -# multiply = 2 -# } -# if = { -# limit = { -# title:d_sunni.holder.faith ?= faith:maturidi -# } -# multiply = 0 -# } -# } -# } -# ### Mutazili -# item = { -# value = choose_mutazila -# is_valid = { -# NOT = { faith = faith:mutazila } -# } -# current_description = choose_mutazila_desc -# localization = choose_mutazila_name -# icon = "gfx/interface/icons/faith/mutazila.dds" -# ai_chance = { -# value = 0 -# if = { -# limit = { -# any_sub_realm_county = { -# count >= 4 -# faith = faith:mutazila -# } -# } -# add = 5 -# } -# if = { -# limit = { -# exists = title:d_sunni.holder -# opinion = { -# target = title:d_sunni.holder -# value >= -20 -# } -# } -# add = 10 -# } -# if = { -# limit = { -# any_independent_ruler = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# faith = faith:mutazila -# } -# } -# multiply = 2 -# } -# if = { -# limit = { -# title:d_sunni.holder.faith ?= faith:mutazila -# } -# multiply = 0 -# } -# } -# } -# ### azariqa -# item = { -# value = choose_azariqa -# is_valid = { -# NOT = { faith = faith:azariqa } -# } -# current_description = choose_azariqa_desc -# localization = choose_azariqa_name -# icon = "gfx/interface/icons/faith/azariqa.dds" -# ai_chance = { -# value = 0 -# if = { # If the Azariqa revolt is successful, then Azariqa will start to dominate! -# limit = { -# exists = faith:azariqa.religious_head -# } -# add = 100 -# } -# if = { # Or if someone _truly_ fits the bill... -# limit = { -# ai_zeal >= 50 -# ai_boldness >= 75 -# OR = { -# has_trait = vengeful -# has_trait = peasant_leader -# } -# } -# add = 10 -# } -# } -# } -# ### zurvanism (behafaridism) -# item = { -# value = choose_zurvanism -# is_valid = { -# NOT = { faith = faith:zurvanism } -# has_trait = eccentric -# } -# current_description = choose_zurvanism_desc -# localization = choose_zurvanism_name -# icon = "gfx/interface/icons/faith/zurvanism.dds" -# ai_chance = { -# value = 100 -# } -# } -# } -# -# effect = { -# if = { -# limit = { scope:choose_maturidi = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:maturidi } -# } -# show_as_tooltip = { set_character_faith = faith:maturidi } -# hidden_effect = { -# set_character_faith_with_conversion = faith:maturidi -# } -# faith:maturidi = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_mutazila = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:mutazila } -# } -# show_as_tooltip = { set_character_faith = faith:mutazila } -# hidden_effect = { -# set_character_faith_with_conversion = faith:mutazila -# } -# faith:mutazila = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_imami = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:imami } -# } -# show_as_tooltip = { set_character_faith = faith:imami } -# hidden_effect = { -# set_character_faith_with_conversion = faith:imami -# } -# faith:imami = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_alevi = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:alevi } -# } -# show_as_tooltip = { set_character_faith = faith:alevi } -# hidden_effect = { -# set_character_faith_with_conversion = faith:alevi -# } -# faith:alevi = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_nizari = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:nizari } -# } -# show_as_tooltip = { set_character_faith = faith:nizari } -# hidden_effect = { -# set_character_faith_with_conversion = faith:nizari -# } -# faith:nizari = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_zayidi = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:zayidi } -# } -# show_as_tooltip = { set_character_faith = faith:zayidi } -# hidden_effect = { -# set_character_faith_with_conversion = faith:zayidi -# } -# faith:zayidi = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_azariqa = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:azariqa } -# } -# show_as_tooltip = { set_character_faith = faith:azariqa } -# hidden_effect = { -# set_character_faith_with_conversion = faith:azariqa -# } -# faith:azariqa = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# else_if = { -# limit = { scope:choose_zurvanism = yes } -# -# if = { -# limit = { -# capital_county.faith = faith -# } -# capital_county = { set_county_faith = faith:zurvanism } -# } -# show_as_tooltip = { set_character_faith = faith:zurvanism } -# hidden_effect = { -# set_character_faith_with_conversion = faith:zurvanism -# } -# faith:zurvanism = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_persian_fervor -# } -# } -# } -# capital_county = { -# add_county_modifier = { -# modifier = religious_settler_influx -# years = 25 -# } -# } -# if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_ruler_chooses_persian_faith -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# phase_has_catalyst = catalyst_ruler_chooses_persian_faith -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_ruler_chooses_persian_faith -# character = root -# } -# } -# } -# } -# -# cost = { -# piety = { -# value = major_piety_value -# } -# } -# -# ai_potential = { -# highest_held_title_tier >= tier_county -# title:d_sunni.holder.faith ?= faith -# is_landed = yes -# is_at_war = no -# } -# -# ai_will_do = { -# base = 20 -# -# modifier = { -# add = { -# value = ai_zeal -# multiply = -0.5 -# } -# } -# -# modifier = { -# add = -20 -# has_trait = craven -# } -# -# modifier = { -# add = 20 -# has_trait = ambitious -# } -# -# modifier = { -# add = -20 -# NOT = { -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_ruler_chooses_persian_faith -# } -# } -# } -# -# modifier = { -# add = 20 -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_ruler_chooses_persian_faith -# } -# } -# -# modifier = { -# add = 40 -# top_liege = this -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_ruler_chooses_persian_faith -# } -# } -# } -#} -# \ No newline at end of file + +### Find a New Faith for Persia ### +adopt_a_new_faith_for_persia_decision = { + ai_check_interval_by_tier = { + barony = 0 + county = 36 + duchy = 12 + kingdom = 12 + empire = 12 + hegemony = 12 + } + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + sort_order = -20 + decision_group_type = major + + cooldown = { years = 30 } + + is_shown = { + any_character_struggle = { is_struggle_type = persian_struggle } + is_landed = yes + has_trait = fp3_struggle_detractor + } + + is_valid_showing_failures_only = { + faith.religion = religion:islam_religion + } + + is_valid = { + + } + + widget = { + gui = "decision_view_widget_generic_multichoice_with_effects" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_PERSIAN_FAITH" + show_from_start = yes + + ### imami + item = { + value = choose_imami + is_valid = { + NOT = { faith = faith:imami } + } + current_description = choose_imami_desc + localization = choose_imami_name + icon = "gfx/interface/icons/faith/imami.dds" + ai_chance = { + value = 0 + if = { + limit = { + highest_held_title_tier >= tier_kingdom + ai_boldness >= 25 + } + add = 20 + } + if = { + limit = { + any_sub_realm_county = { + faith = faith:imami + } + } + add = 10 + } + if = { + limit = { + exists = title:d_sunni.holder + opinion = { + target = title:d_sunni.holder + value < -20 + } + } + add = 20 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:imami + } + } + multiply = 4 + } + } + } + ### alevi + item = { + value = choose_alevi + is_valid = { + NOT = { faith = faith:alevi } + } + current_description = choose_alevi_desc + localization = choose_alevi_name + icon = "gfx/interface/icons/faith/alevi.dds" + ai_chance = { + value = 0 + if = { + limit = { + any_sub_realm_county = { + faith = faith:alevi + } + } + add = 10 + } + if = { + limit = { + exists = title:d_sunni.holder + opinion = { + target = title:d_sunni.holder + value < -20 + } + culture = { has_cultural_pillar = heritage_turkic } + } + add = 50 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:alevi + } + culture = { has_cultural_pillar = heritage_turkic } + } + multiply = 4 + } + } + } + ### nizari + item = { + value = choose_nizari + is_valid = { + NOT = { faith = faith:nizari } + } + current_description = choose_nizari_desc + localization = choose_nizari_name + icon = "gfx/interface/icons/faith/nizari.dds" + ai_chance = { + value = 0 + if = { + limit = { + any_sub_realm_county = { + faith = faith:nizari + } + } + add = 10 + } + if = { + limit = { + highest_held_title_tier >= tier_kingdom + ai_boldness >= 25 + } + add = 10 + } + if = { + limit = { + exists = title:d_sunni.holder + opinion = { + target = title:d_sunni.holder + value < -20 + } + } + add = 20 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:nizari + } + } + multiply = 4 + } + } + } + ### zayidi + item = { + value = choose_zayidi + is_valid = { + NOT = { faith = faith:zayidi } + } + current_description = choose_zayidi_desc + localization = choose_zayidi_name + icon = "gfx/interface/icons/faith/zayidi.dds" + ai_chance = { + value = 0 + if = { + limit = { + any_sub_realm_county = { + faith = faith:zayidi + } + } + add = 10 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:zayidi + piety_level >= 3 + } + } + add = 100 + } + if = { + limit = { + OR = { + culture = culture:daylamite + culture = { any_parent_culture_or_above = { this = culture:daylamite } } + } + } + add = 50 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:zayidi + root = { + opinion = { + target = prev + value >= 20 + } + } + } + } + add = 20 + } + } + } + + ### Maturidi + item = { + value = choose_maturidi + is_valid = { + NOT = { faith = faith:maturidi } + } + current_description = choose_maturidi_desc + localization = choose_maturidi_name + icon = "gfx/interface/icons/faith/maturidi.dds" + ai_chance = { + value = 0 + if = { + limit = { + any_sub_realm_county = { + count >= 4 + faith = faith:maturidi + } + } + add = 5 + } + if = { + limit = { + exists = title:d_sunni.holder + opinion = { + target = title:d_sunni.holder + value >= -20 + } + } + add = 10 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:maturidi + } + } + multiply = 2 + } + if = { + limit = { + title:d_sunni.holder.faith ?= faith:maturidi + } + multiply = 0 + } + } + } + ### Mutazili + item = { + value = choose_mutazila + is_valid = { + NOT = { faith = faith:mutazila } + } + current_description = choose_mutazila_desc + localization = choose_mutazila_name + icon = "gfx/interface/icons/faith/mutazila.dds" + ai_chance = { + value = 0 + if = { + limit = { + any_sub_realm_county = { + count >= 4 + faith = faith:mutazila + } + } + add = 5 + } + if = { + limit = { + exists = title:d_sunni.holder + opinion = { + target = title:d_sunni.holder + value >= -20 + } + } + add = 10 + } + if = { + limit = { + any_independent_ruler = { + any_character_struggle = { is_struggle_type = persian_struggle } + faith = faith:mutazila + } + } + multiply = 2 + } + if = { + limit = { + title:d_sunni.holder.faith ?= faith:mutazila + } + multiply = 0 + } + } + } + ### azariqa + item = { + value = choose_azariqa + is_valid = { + NOT = { faith = faith:azariqa } + } + current_description = choose_azariqa_desc + localization = choose_azariqa_name + icon = "gfx/interface/icons/faith/azariqa.dds" + ai_chance = { + value = 0 + if = { # If the Azariqa revolt is successful, then Azariqa will start to dominate! + limit = { + exists = faith:azariqa.religious_head + } + add = 100 + } + if = { # Or if someone _truly_ fits the bill... + limit = { + ai_zeal >= 50 + ai_boldness >= 75 + OR = { + has_trait = vengeful + has_trait = peasant_leader + } + } + add = 10 + } + } + } + ### zurvanism (behafaridism) + item = { + value = choose_zurvanism + is_valid = { + NOT = { faith = faith:zurvanism } + has_trait = eccentric + } + current_description = choose_zurvanism_desc + localization = choose_zurvanism_name + icon = "gfx/interface/icons/faith/zurvanism.dds" + ai_chance = { + value = 100 + } + } + } + + effect = { + if = { + limit = { scope:choose_maturidi = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:maturidi } + } + show_as_tooltip = { set_character_faith = faith:maturidi } + hidden_effect = { + set_character_faith_with_conversion = faith:maturidi + } + faith:maturidi = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_mutazila = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:mutazila } + } + show_as_tooltip = { set_character_faith = faith:mutazila } + hidden_effect = { + set_character_faith_with_conversion = faith:mutazila + } + faith:mutazila = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_imami = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:imami } + } + show_as_tooltip = { set_character_faith = faith:imami } + hidden_effect = { + set_character_faith_with_conversion = faith:imami + } + faith:imami = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_alevi = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:alevi } + } + show_as_tooltip = { set_character_faith = faith:alevi } + hidden_effect = { + set_character_faith_with_conversion = faith:alevi + } + faith:alevi = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_nizari = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:nizari } + } + show_as_tooltip = { set_character_faith = faith:nizari } + hidden_effect = { + set_character_faith_with_conversion = faith:nizari + } + faith:nizari = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_zayidi = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:zayidi } + } + show_as_tooltip = { set_character_faith = faith:zayidi } + hidden_effect = { + set_character_faith_with_conversion = faith:zayidi + } + faith:zayidi = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_azariqa = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:azariqa } + } + show_as_tooltip = { set_character_faith = faith:azariqa } + hidden_effect = { + set_character_faith_with_conversion = faith:azariqa + } + faith:azariqa = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + else_if = { + limit = { scope:choose_zurvanism = yes } + + if = { + limit = { + capital_county.faith = faith + } + capital_county = { set_county_faith = faith:zurvanism } + } + show_as_tooltip = { set_character_faith = faith:zurvanism } + hidden_effect = { + set_character_faith_with_conversion = faith:zurvanism + } + faith:zurvanism = { + change_fervor = { + value = 15 + desc = fervor_gain_persian_fervor + } + } + } + capital_county = { + add_county_modifier = { + modifier = religious_settler_influx + years = 25 + } + } + if = { + limit = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_ruler_chooses_persian_faith + } + } + every_character_struggle = { + involvement = involved + limit = { + phase_has_catalyst = catalyst_ruler_chooses_persian_faith + } + activate_struggle_catalyst = { + catalyst = catalyst_ruler_chooses_persian_faith + character = root + } + } + } + } + + cost = { + piety = { + value = major_piety_value + } + } + + ai_potential = { + highest_held_title_tier >= tier_county + title:d_sunni.holder.faith ?= faith + is_landed = yes + is_at_war = no + } + + ai_will_do = { + base = 20 + + modifier = { + add = { + value = ai_zeal + multiply = -0.5 + } + } + + modifier = { + add = -20 + has_trait = craven + } + + modifier = { + add = 20 + has_trait = ambitious + } + + modifier = { + add = -20 + NOT = { + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_ruler_chooses_persian_faith + } + } + } + + modifier = { + add = 20 + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_ruler_chooses_persian_faith + } + } + + modifier = { + add = 40 + top_liege = this + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_ruler_chooses_persian_faith + } + } + } +} diff --git a/common/decisions/00_guest_decisions.txt b/common/decisions/00_guest_decisions.txt index 2f44feb9..fe3f0f3f 100644 --- a/common/decisions/00_guest_decisions.txt +++ b/common/decisions/00_guest_decisions.txt @@ -178,27 +178,27 @@ invite_claimants_decision = { ### Scrape the Barrel ### scrape_the_barrel_decision = { -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/10_ach_oath_decisions.txt b/common/decisions/10_ach_oath_decisions.txt index 773830b9..45849a73 100644 --- a/common/decisions/10_ach_oath_decisions.txt +++ b/common/decisions/10_ach_oath_decisions.txt @@ -960,173 +960,173 @@ purge_pretenders_oath_decision = { } -# -### End the Struggle -#end_the_struggle_oath_decision = { -# picture = { -# trigger = { var:end_the_struggle_oath_type_var = flag:persian_struggle } -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# picture = { -# trigger = { var:end_the_struggle_oath_type_var = flag:iberian_struggle } -# reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_compromise.dds" -# } -# decision_group_type = oaths -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 12 -# empire = 12 -# hegemony = 12 -# } -# -# title = { -# first_valid = { -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# exists = struggle:persian_struggle -# } -# desc = end_the_struggle_oath_decision_title_persian -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# } -# desc = end_the_struggle_oath_decision_title_persian_ended -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# exists = struggle:iberian_struggle -# } -# desc = end_the_struggle_oath_decision_title_iberian -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# } -# desc = end_the_struggle_oath_decision_title_iberian_ended -# } -# } -# } -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# exists = struggle:persian_struggle -# } -# desc = end_the_struggle_oath_decision_desc_persian -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# } -# desc = end_the_struggle_oath_decision_desc_persian_ended -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# exists = struggle:iberian_struggle -# } -# desc = end_the_struggle_oath_decision_desc_iberian -# } -# triggered_desc = { -# trigger = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# } -# desc = end_the_struggle_oath_decision_desc_iberian_ended -# } -# } -# } -# -# is_shown = { -# highest_held_title_tier >= tier_kingdom -# has_variable = end_the_struggle_oath -# has_variable = end_the_struggle_oath_timer -# has_variable = end_the_struggle_oath_type_var -# } -# -# is_valid_showing_failures_only = { -# custom_tooltip = { -# text = busy_in_coronation_tooltip -# NOT = { -# involved_activity ?= { -# activity_host = root -# has_activity_type = activity_coronation -# } -# } -# } -# } -# -# is_valid = { -# trigger_if = { -# limit = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# exists = struggle:persian_struggle -# } -# custom_tooltip = { -# text = end_the_struggle_oath_decision_trigger_persian -# has_character_flag = ach_ended_struggle -# } -# } -# trigger_if = { -# limit = { -# var:end_the_struggle_oath_type_var = flag:persian_struggle -# NOT = { exists = struggle:persian_struggle } -# } -# custom_tooltip = { -# text = end_the_struggle_oath_decision_trigger_persian_ended -# has_character_flag = ach_ended_struggle -# } -# } -# trigger_else_if = { -# limit = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# exists = struggle:iberian_struggle -# } -# custom_tooltip = { -# text = end_the_struggle_oath_decision_trigger_iberian -# has_character_flag = ach_ended_struggle -# } -# } -# trigger_else_if = { -# limit = { -# var:end_the_struggle_oath_type_var = flag:iberian_struggle -# NOT = { exists = struggle:iberian_struggle } -# } -# custom_tooltip = { -# text = end_the_struggle_oath_decision_trigger_iberian_ended -# has_character_flag = ach_ended_struggle -# } -# } -# -# trigger_else = { -# always = yes -# } -# } -# -# effect = { -# coronation_oath_success_effect = { OATH = end_the_struggle_oath } -# -# show_as_tooltip = { -# add_character_modifier = oath_of_end_the_struggle -# } -# -# hidden_effect = { -# remove_variable = end_the_struggle_oath_timer -# remove_variable = end_the_struggle_oath_type_var -# } -# } -# -# ai_will_do = { -# base = 100 -# } -#} + +## End the Struggle +end_the_struggle_oath_decision = { + picture = { + trigger = { var:end_the_struggle_oath_type_var = flag:persian_struggle } + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + picture = { + trigger = { var:end_the_struggle_oath_type_var = flag:iberian_struggle } + reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_compromise.dds" + } + decision_group_type = oaths + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 12 + empire = 12 + hegemony = 12 + } + + title = { + first_valid = { + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + exists = struggle:persian_struggle + } + desc = end_the_struggle_oath_decision_title_persian + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + } + desc = end_the_struggle_oath_decision_title_persian_ended + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + exists = struggle:iberian_struggle + } + desc = end_the_struggle_oath_decision_title_iberian + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + } + desc = end_the_struggle_oath_decision_title_iberian_ended + } + } + } + + desc = { + first_valid = { + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + exists = struggle:persian_struggle + } + desc = end_the_struggle_oath_decision_desc_persian + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + } + desc = end_the_struggle_oath_decision_desc_persian_ended + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + exists = struggle:iberian_struggle + } + desc = end_the_struggle_oath_decision_desc_iberian + } + triggered_desc = { + trigger = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + } + desc = end_the_struggle_oath_decision_desc_iberian_ended + } + } + } + + is_shown = { + highest_held_title_tier >= tier_kingdom + has_variable = end_the_struggle_oath + has_variable = end_the_struggle_oath_timer + has_variable = end_the_struggle_oath_type_var + } + + is_valid_showing_failures_only = { + custom_tooltip = { + text = busy_in_coronation_tooltip + NOT = { + involved_activity ?= { + activity_host = root + has_activity_type = activity_coronation + } + } + } + } + + is_valid = { + trigger_if = { + limit = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + exists = struggle:persian_struggle + } + custom_tooltip = { + text = end_the_struggle_oath_decision_trigger_persian + has_character_flag = ach_ended_struggle + } + } + trigger_if = { + limit = { + var:end_the_struggle_oath_type_var = flag:persian_struggle + NOT = { exists = struggle:persian_struggle } + } + custom_tooltip = { + text = end_the_struggle_oath_decision_trigger_persian_ended + has_character_flag = ach_ended_struggle + } + } + trigger_else_if = { + limit = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + exists = struggle:iberian_struggle + } + custom_tooltip = { + text = end_the_struggle_oath_decision_trigger_iberian + has_character_flag = ach_ended_struggle + } + } + trigger_else_if = { + limit = { + var:end_the_struggle_oath_type_var = flag:iberian_struggle + NOT = { exists = struggle:iberian_struggle } + } + custom_tooltip = { + text = end_the_struggle_oath_decision_trigger_iberian_ended + has_character_flag = ach_ended_struggle + } + } + + trigger_else = { + always = yes + } + } + + effect = { + coronation_oath_success_effect = { OATH = end_the_struggle_oath } + + show_as_tooltip = { + add_character_modifier = oath_of_end_the_struggle + } + + hidden_effect = { + remove_variable = end_the_struggle_oath_timer + remove_variable = end_the_struggle_oath_type_var + } + } + + ai_will_do = { + base = 100 + } +} ## Greatest Hunter greatest_hunter_oath_decision = { diff --git a/common/decisions/30_activity_decisions.txt b/common/decisions/30_activity_decisions.txt index 39e82d00..5905fc2b 100644 --- a/common/decisions/30_activity_decisions.txt +++ b/common/decisions/30_activity_decisions.txt @@ -8,27 +8,27 @@ hold_court_decision = { empire = 120 hegemony = 120 } -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } @@ -141,27 +141,27 @@ petition_liege_decision = { } reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/30_court_decisions.txt b/common/decisions/30_court_decisions.txt index 87e9e7c8..056419b5 100644 --- a/common/decisions/30_court_decisions.txt +++ b/common/decisions/30_court_decisions.txt @@ -8,27 +8,27 @@ pay_homage_decision = { empire = 45 hegemony = 0 } -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/40_japan_decisions.txt b/common/decisions/40_japan_decisions.txt index 49284545..c376bf97 100644 --- a/common/decisions/40_japan_decisions.txt +++ b/common/decisions/40_japan_decisions.txt @@ -379,29 +379,29 @@ petition_ceremonial_liege_decision = { } reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" } -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_nomadic -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_nomadic } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_nomadic } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/80_major_decisions_middle_east.txt b/common/decisions/80_major_decisions_middle_east.txt index 1f6caaf8..3f57bdb6 100644 --- a/common/decisions/80_major_decisions_middle_east.txt +++ b/common/decisions/80_major_decisions_middle_east.txt @@ -1,987 +1,986 @@ -##Create the Empire of Outremer -#### Form the Outremer Empire ### -#create_outremer_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" -# } -# desc = create_outremer_empire_decision_desc -# selection_tooltip = create_outremer_empire_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# #Visible to dukes and kings. -# highest_held_title_tier >= tier_duchy -# highest_held_title_tier <= tier_kingdom -# #Must be in the right area. -# capital_province = { geographical_region = world_middle_east } -# #Must have the correct religion, and support from the rest of Catholicism. -# religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. -# faith = faith:catholic -# #Exempt Byzantine group: this is such a huge slap in the face to _anyone_ even vaguely in the Greek sphere. -# culture = { -# NOR = { -# has_cultural_pillar = heritage_byzantine -# has_cultural_pillar = heritage_caucasian -# has_cultural_pillar = heritage_syriac -# } -# } -# #Can only do it once. -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_outremer_empire -# } -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# highest_held_title_tier = tier_kingdom -# completely_controls_region = custom_outremer -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = create_outremer_empire_decision_effect_tooltip -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# form_outremer_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0001 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_outremer_empire -# } -# set_global_variable = { -# name = flag_created_outremer_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the Ash'ari Caliphate ### -#restore_sunni_caliphate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = restore_sunni_caliphate_decision_desc -# selection_tooltip = restore_sunni_caliphate_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith = faith:ashari -# NOT = { faith = { exists = religious_head } } -# highest_held_title_tier > 3 #Only Kings and Emperors -# } -# -# is_valid = { -# completely_controls = title:c_mecca -# completely_controls = title:d_medina -# completely_controls = title:d_shammar -# completely_controls = title:d_palestine -# completely_controls = title:d_oultrejourdain -# piety_level >= high_piety_level -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_sunni_caliphate_decision_effect_tooltip -# show_as_tooltip = { -# restore_sunni_caliphate_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0003 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { #Always do it when possible. -# base = 100 -# ai_value_modifier = { -# ai_zeal = 1.0 -# } -# modifier = { -# factor = 0 -# has_trait = cynical -# } -# } -#} -# -#### Embrace Outremer Culture ### -#embrace_outremer_culture_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = embrace_outremer_culture_decision_desc -# selection_tooltip = embrace_outremer_culture_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 120 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith:catholic.religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. -# NOR = { -# root.culture = culture:roman -# root.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# OR = { -# faith.religion = faith:catholic.religion -# top_liege ?= { faith.religion = faith:catholic.religion } -# } -# capital_province = { -# OR = { -# geographical_region = world_middle_east -# geographical_region = world_persian_empire -# geographical_region = world_africa -# } -# } -# top_liege = { -# culture != root.culture -# } -# top_liege.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# -# is_valid = { -# custom_description = { -# text = "under_outremer_liege" -# top_liege = { -# culture != root.culture -# } -# liege.culture = { -# any_parent_culture = { -# has_cultural_pillar = heritage_arabic -# } -# } -# } -# custom_description = { -# text = "under_outremer_empire" -# liege = { -# has_title = title:e_outremer -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# } -# -# effect = { -# custom_tooltip = embrace_outremer_culture_decision_courtiers_embrace_outremer -# custom_tooltip = embrace_outremer_culture_decision_provinces_embrace_outremer -# custom_tooltip = embrace_outremer_culture_decision_capital_embraces_outremer -# top_liege.culture = { save_scope_as = outremer_equivalent } -# hidden_effect = { -# every_courtier = { -# limit = { -# has_culture = root.culture -# dynasty = root.dynasty -# } -# set_culture = scope:outremer_equivalent -# } -# every_held_title = { -# title_tier = county -# limit = { -# culture = { has_same_culture_heritage = root.culture } -# title_province = { -# OR = { -# geographical_region = world_middle_east -# geographical_region = world_persian_empire -# geographical_region = world_africa -# } -# } -# } -# set_county_culture = scope:outremer_equivalent -# } -# capital_county = { set_county_culture = scope:outremer_equivalent } -# } -# set_culture = scope:outremer_equivalent -# add_character_flag = converted_culture_this_lifetime -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# modifier = { #Small Crusader States will balkanize with their own culture or go native. -# factor = 0 -# top_liege = { -# highest_held_title_tier < 4 #Less than King -# } -# } -# } -#} -# -#### Restore Israel ### -#create_israel_kingdom_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" -# } -# desc = create_israel_kingdom_decision_desc -# selection_tooltip = create_israel_kingdom_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith.religion = faith:rabbinism.religion -# NOT = { -# exists = title:k_israel.holder -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:create_israel_kingdom -# } -# } -# } -# -# is_valid = { -# prestige_level >= high_prestige_level -# piety_level >= high_piety_level -# completely_controls = title:d_palestine -# completely_controls = title:d_urdunn -# completely_controls = title:d_oultrejourdain -# custom_description = { -# text = "jerusalem_is_same_faith" -# title:c_jerusalem.faith = root.faith -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# custom_tooltip = create_israel_kingdom_decision_effect_tooltip -# show_as_tooltip = { -# create_israel_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0005 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:create_israel_kingdom -# } -# set_global_variable = { -# name = create_israel_kingdom -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the [ROOT.Char.GetFaith.GetAdjectiveNoTooltip] High Priesthood ### -#jewish_restore_high_priesthood_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" -# } -# desc = jewish_restore_high_priesthood_decision_desc -# selection_tooltip = jewish_restore_high_priesthood_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# NOT = { #Can be redone if somehow the High Priest title is destroyed -# exists = faith.religious_head -# } -# religion = religion:judaism_religion -# faith = { -# NOT = { -# has_doctrine_parameter = no_head_of_faith -# } -# } -# } -# -# is_valid = { -# piety_level >= 2 -# custom_description = { -# text = "restore_high_priesthood_holy_sites" -# faith = { -# any_holy_site = { -# OR = { -# county.holder = root -# county.holder.top_liege = { this = root } -# } -# count >= 3 -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = restore_high_priesthood_decision_effect_tooltip -# trigger_event = { -# id = middle_east_decisions.0007 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Restore the [ROOT.Char.GetFaith.AltPriestTermPlural] ### -#zoroastrian_restore_high_priesthood_decision = { #Updated for FP3 by Ola -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# desc = zoroastrian_restore_high_priesthood_decision_desc -# selection_tooltip = zoroastrian_restore_high_priesthood_decision_tooltip -# decision_group_type = major -# sort_order = 80 -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# NOR = { #Can be redone if somehow the High Priest title is destroyed -# exists = faith.religious_head -# faith = { has_doctrine = doctrine_no_head } #Only if Faith is meant to have one. -# faith = { has_doctrine = doctrine_temporal_head } #Cannot be done if you have taken the "Destroy the Magi" decision -# } -# OR = { -# faith = faith:mazdayasna -# faith = faith:zurvanism -# faith = faith:gayomarthianism -# faith = faith:khurmazta -# faith = faith:mazdakism -# faith = faith:khurramism -# faith = faith:urartuism -# faith = faith:afridunism -# } -# } -# -# is_valid = { -# piety_level >= high_piety_level -# custom_description = { -# text = "restore_high_priesthood_holy_sites" -# faith = { -# any_holy_site = { -# OR = { -# county.holder = root -# county.holder.top_liege = { this = root } -# } -# count >= 3 -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = restore_high_priesthood_decision_effect_tooltip -# trigger_event = { -# id = middle_east_decisions.0009 -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Become the Saoshyant ### -#become_saoshyant_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# desc = become_saoshyant_decision_desc -# selection_tooltip = become_saoshyant_decision_tooltip -# decision_group_type = major -# sort_order = 100 #FP3 change; this is an extremely epic decision, we want it to appear on top. -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# faith.religion = faith:mazdayasna.religion -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_became_saoshyant -# } -# } -# } -# -# is_valid = { -# piety_level >= very_high_piety_level -# has_title = title:e_persia -# completely_controls = title:e_persia -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# -# effect = { -# show_as_tooltip = { -# become_saoshyant_decision_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0011 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_became_saoshyant -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Refound the long-lapsed & short-lived Armenian Empire - by Ewan Cowhig Croft -#### Revive Greater Armenia ### -#create_armenian_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = create_armenian_empire_decision_desc -# selection_tooltip = create_armenian_empire_decision_tooltip -# decision_group_type = major -# -# ai_check_interval = 0 -# -# is_shown = { -# is_playable_character = yes # Normally this will always be true, but if in DEBUG mode and playing as an unlanded ruler this will cause error spam without it. -# highest_held_title_tier <= tier_kingdom -# capital_province = { geographical_region = custom_greater_armenia } -# OR = { -# faith = faith:armenian_apostolic -# culture = culture:armenian -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_armenian_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_allows = administrative -# government_has_flag = government_is_landless_adventurer -# } -# } -# -# is_valid = { -# top_liege = this -# highest_held_title_tier = tier_kingdom -# completely_controls_region = custom_greater_armenia -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_available_adult = yes -# } -# -# cost = { -# prestige = 2000 -# piety = 1000 -# } -# -# effect = { -# show_as_tooltip = { -# revive_armenian_empire_decision_scripted_effect = yes -# } -# save_scope_as = founder -# trigger_event = { -# id = middle_east_decisions.1001 -# } -# #Notify other players. -# every_player = { -# limit = { -# this != root -# is_within_diplo_range = { CHARACTER = root } -# } -# trigger_event = middle_east_decisions.1002 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_created_armenian_empire -# } -# set_global_variable = { -# name = flag_created_armenian_empire -# value = scope:founder -# } -# } -# } -# -# ai_potential = { -# always = no -# } -# -# ai_will_do = { -# base = 0 -# } -#} -# -################################## -## Found the Empire of Beth Nahrain -## by Anna Johansson -################################## -# -#### Found Empire Of Beth Nahrain Decision ### -#found_empire_of_beth_nahrain_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" -# } -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# title = middle_east_major_decisions.1020.t -# desc = middle_east_major_decisions.1020.desc -# selection_tooltip = middle_east_major_decisions.1020.tt -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# capital_province = { geographical_region = world_middle_east } -# -# any_sub_realm_county = { -# OR = { -# faith = faith:nestorian -# culture = { -# OR = { -# this = culture:assyrian -# any_parent_culture_or_above = { -# this = culture:assyrian -# } -# } -# } -# } -# } -# -# #Can only do it once -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:created_beth_nahrain -# } -# } -# } -# is_valid = { -# is_independent_ruler = yes -# highest_held_title_tier = tier_kingdom -# culture = { has_cultural_pillar = heritage_syriac } -# custom_tooltip = { -# text = completely_controls_jazira_mesopotamia_tt -# completely_controls = title:k_jazira -# completely_controls = title:k_mesopotamia -# } -# custom_tooltip = { -# text = has_titles_jazira_mesopotamia_tt -# has_title = title:k_jazira -# has_title = title:k_mesopotamia -# } -# OR = { -# custom_tooltip = { -# text = has_title_and_completely_control_jerusalem_tt -# has_title = title:k_jerusalem -# completely_controls = title:k_jerusalem -# } -# custom_tooltip = { -# text = has_title_and_completely_control_syria_tt -# has_title = title:k_syria -# completely_controls = title:k_syria -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:created_beth_nahrain -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_jazira = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# title:k_mesopotamia = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# -# if = { -# limit = { -# has_title = title:k_jerusalem -# completely_controls = title:k_jerusalem -# } -# title:k_jerusalem = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# } -# -# if = { -# limit = { -# has_title = title:k_syria -# completely_controls = title:k_syria -# } -# title:k_syria = { -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# } -# } -# #Create Beth Nahrain -# title:e_beth_nahrain = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# dynasty = { -# add_dynasty_prestige = 1000 -# } -# -# give_nickname = nick_beth_nahrain -# -# show_as_tooltip = { -# promote_culture_beth_nahrain_scripted_effect = yes -# custom_tooltip = middle_east_major_decisions.1020.promote_culture.tt -# } -# save_scope_as = suppress_tooltips -# -# trigger_event = { id = middle_east_decisions.1020 } -# -# show_as_tooltip = { -# random_list = { -# 100 = { -# show_chance = no -# desc = middle_east_major_decisions.1020.learning.desc -# learning_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# desc = middle_east_major_decisions.1020.martial.desc -# martial_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# trigger = { -# faith = faith:nestorian -# } -# desc = middle_east_major_decisions.1020.nestorian.desc -# nestorian_faith_beth_nahrain_scripted_effect = yes -# } -# 100 = { -# show_chance = no -# trigger = { -# NOT = { -# faith = faith:nestorian -# } -# } -# desc = middle_east_major_decisions.1020.no_faith.desc -# no_faith_beth_nahrain_scripted_effect = yes -# } -# } -# } -# } -# -# cost = { -# prestige = 1000 -# } -# -# ai_potential = { -# culture = { has_cultural_pillar = heritage_syriac } -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -############### -## Dar al-Islam -############### -# -#### Establish the Dar al-Islam ### -#create_dar_al_islam_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" -# } -# decision_group_type = major -# -# desc = create_dar_al_islam_decision_desc -# selection_tooltip = create_dar_al_islam_decision_tt -# -# sort_order = 1000 # Should be at the very top -# -# is_shown = { -# # Only for Islamic head of faiths -# faith = { religious_head ?= root } -# faith.religion = religion:islam_religion -# # And only if it hasn't been created yet -# NOT = { has_global_variable = created_dar_al_islam } -# } -# is_valid = { -# # The basics -# is_independent_ruler = yes -# any_held_title = { -# count >= 2 -# tier = tier_empire -# } -# faith = { has_doctrine = doctrine_temporal_head } -# # Must be very pious -# prestige_level >= 4 -# piety_level >= 5 -# # Controls Islamic core lands -# completely_controls_region = world_middle_east_arabia -# completely_controls_region = world_middle_east_jerusalem -# completely_controls_region = world_persia -# completely_controls_region = world_africa_north -# # Also controls at minimum % of all islamic counties -# save_temporary_scope_as = root_scope -# custom_tooltip = { -# text = realm_controls_enough_islamic_counties_desc -# any_realm_county = { -# faith.religion = religion:islam_religion -# count >= islam_required_county_number_value -# } -# } -# } -# -# is_valid_showing_failures_only = { -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# show_as_tooltip = { -# create_dar_al_islam_effect = yes -# } -# save_scope_as = dar_al_islam_ruler -# # Save all existing islamic head of faiths and their titles -# religion:islam_religion = { -# every_faith = { -# if = { -# limit = { -# exists = religious_head -# faith_hostility_level = { -# target = root.faith -# value < faith_hostile_level -# } -# } -# religious_head_title = { -# add_to_list = old_hof_title -# } -# religious_head = { -# add_to_list = former_islamic_hofs -# } -# } -# } -# } -# # Trigger follow-up events -# trigger_event = middle_east_decisions.1100 -# every_player = { -# limit = { -# this != root -# NOT = { is_in_list = former_islamic_hofs } -# } -# trigger_event = middle_east_decisions.1101 -# } -# every_in_list = { -# list = former_islamic_hofs -# limit = { this != root } -# trigger_event = { id = middle_east_decisions.1102 days = 1 } -# } -# } -# -# cost = { -# piety = 1500 -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 24 -# hegemony = 0 -# } -# -# ai_potential = { -# faith = { religious_head ?= root } -# faith.religion = religion:islam_religion -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# \ No newline at end of file +#Create the Empire of Outremer +### Form the Outremer Empire ### +create_outremer_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" + } + desc = create_outremer_empire_decision_desc + selection_tooltip = create_outremer_empire_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + #Visible to dukes and kings. + highest_held_title_tier >= tier_duchy + highest_held_title_tier <= tier_kingdom + #Must be in the right area. + capital_province = { geographical_region = world_middle_east } + #Must have the correct religion, and support from the rest of Catholicism. + religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. + faith = faith:catholic + #Exempt Byzantine group: this is such a huge slap in the face to _anyone_ even vaguely in the Greek sphere. + culture = { + NOR = { + has_cultural_pillar = heritage_byzantine + has_cultural_pillar = heritage_caucasian + has_cultural_pillar = heritage_syriac + } + } + #Can only do it once. + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_outremer_empire + } + } + } + + is_valid = { + prestige_level >= max_prestige_level + highest_held_title_tier = tier_kingdom + completely_controls_region = custom_outremer + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = create_outremer_empire_decision_effect_tooltip + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + form_outremer_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0001 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_outremer_empire + } + set_global_variable = { + name = flag_created_outremer_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the Ash'ari Caliphate ### +restore_sunni_caliphate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = restore_sunni_caliphate_decision_desc + selection_tooltip = restore_sunni_caliphate_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + faith = faith:ashari + NOT = { faith = { exists = religious_head } } + highest_held_title_tier > 3 #Only Kings and Emperors + } + + is_valid = { + completely_controls = title:c_mecca + completely_controls = title:d_medina + completely_controls = title:d_shammar + completely_controls = title:d_palestine + completely_controls = title:d_oultrejourdain + piety_level >= high_piety_level + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_sunni_caliphate_decision_effect_tooltip + show_as_tooltip = { + restore_sunni_caliphate_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0003 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { #Always do it when possible. + base = 100 + ai_value_modifier = { + ai_zeal = 1.0 + } + modifier = { + factor = 0 + has_trait = cynical + } + } +} + +### Embrace Outremer Culture ### +embrace_outremer_culture_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = embrace_outremer_culture_decision_desc + selection_tooltip = embrace_outremer_culture_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 120 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + faith:catholic.religion = { exists = var:variable_ghw_unlocked } #The era of the Crusades must have started. + NOR = { + root.culture = culture:roman + root.culture = { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + } + OR = { + faith.religion = faith:catholic.religion + top_liege ?= { faith.religion = faith:catholic.religion } + } + capital_province = { + OR = { + geographical_region = world_middle_east + geographical_region = world_persian_empire + geographical_region = world_africa + } + } + top_liege = { + culture != root.culture + } + top_liege.culture = { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + } + + is_valid = { + custom_description = { + text = "under_outremer_liege" + top_liege = { + culture != root.culture + } + liege.culture = { + any_parent_culture = { + has_cultural_pillar = heritage_arabic + } + } + } + custom_description = { + text = "under_outremer_empire" + liege = { + has_title = title:e_outremer + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + } + + effect = { + custom_tooltip = embrace_outremer_culture_decision_courtiers_embrace_outremer + custom_tooltip = embrace_outremer_culture_decision_provinces_embrace_outremer + custom_tooltip = embrace_outremer_culture_decision_capital_embraces_outremer + top_liege.culture = { save_scope_as = outremer_equivalent } + hidden_effect = { + every_courtier = { + limit = { + has_culture = root.culture + dynasty = root.dynasty + } + set_culture = scope:outremer_equivalent + } + every_held_title = { + title_tier = county + limit = { + culture = { has_same_culture_heritage = root.culture } + title_province = { + OR = { + geographical_region = world_middle_east + geographical_region = world_persian_empire + geographical_region = world_africa + } + } + } + set_county_culture = scope:outremer_equivalent + } + capital_county = { set_county_culture = scope:outremer_equivalent } + } + set_culture = scope:outremer_equivalent + add_character_flag = converted_culture_this_lifetime + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + modifier = { #Small Crusader States will balkanize with their own culture or go native. + factor = 0 + top_liege = { + highest_held_title_tier < 4 #Less than King + } + } + } +} + +### Restore Israel ### +create_israel_kingdom_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" + } + desc = create_israel_kingdom_decision_desc + selection_tooltip = create_israel_kingdom_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + faith.religion = faith:rabbinism.religion + NOT = { + exists = title:k_israel.holder + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:create_israel_kingdom + } + } + } + + is_valid = { + prestige_level >= high_prestige_level + piety_level >= high_piety_level + completely_controls = title:d_palestine + completely_controls = title:d_urdunn + completely_controls = title:d_oultrejourdain + custom_description = { + text = "jerusalem_is_same_faith" + title:c_jerusalem.faith = root.faith + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + custom_tooltip = create_israel_kingdom_decision_effect_tooltip + show_as_tooltip = { + create_israel_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0005 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:create_israel_kingdom + } + set_global_variable = { + name = create_israel_kingdom + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the [ROOT.Char.GetFaith.GetAdjectiveNoTooltip] High Priesthood ### +jewish_restore_high_priesthood_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds" + } + desc = jewish_restore_high_priesthood_decision_desc + selection_tooltip = jewish_restore_high_priesthood_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + NOT = { #Can be redone if somehow the High Priest title is destroyed + exists = faith.religious_head + } + religion = religion:judaism_religion + faith = { + NOT = { + has_doctrine_parameter = no_head_of_faith + } + } + } + + is_valid = { + piety_level >= 2 + custom_description = { + text = "restore_high_priesthood_holy_sites" + faith = { + any_holy_site = { + OR = { + county.holder = root + county.holder.top_liege = { this = root } + } + count >= 3 + } + } + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_high_priesthood_decision_effect_tooltip + trigger_event = { + id = middle_east_decisions.0007 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Restore the [ROOT.Char.GetFaith.AltPriestTermPlural] ### +zoroastrian_restore_high_priesthood_decision = { #Updated for FP3 by Ola + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + desc = zoroastrian_restore_high_priesthood_decision_desc + selection_tooltip = zoroastrian_restore_high_priesthood_decision_tooltip + decision_group_type = major + sort_order = 80 + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + NOR = { #Can be redone if somehow the High Priest title is destroyed + exists = faith.religious_head + faith = { has_doctrine = doctrine_no_head } #Only if Faith is meant to have one. + faith = { has_doctrine = doctrine_temporal_head } #Cannot be done if you have taken the "Destroy the Magi" decision + } + OR = { + faith = faith:mazdayasna + faith = faith:zurvanism + faith = faith:gayomarthianism + faith = faith:khurmazta + faith = faith:mazdakism + faith = faith:khurramism + faith = faith:urartuism + faith = faith:afridunism + } + } + + is_valid = { + piety_level >= high_piety_level + custom_description = { + text = "restore_high_priesthood_holy_sites" + faith = { + any_holy_site = { + OR = { + county.holder = root + county.holder.top_liege = { this = root } + } + count >= 3 + } + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + custom_tooltip = restore_high_priesthood_decision_effect_tooltip + trigger_event = { + id = middle_east_decisions.0009 + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +### Become the Saoshyant ### +become_saoshyant_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + desc = become_saoshyant_decision_desc + selection_tooltip = become_saoshyant_decision_tooltip + decision_group_type = major + sort_order = 100 #FP3 change; this is an extremely epic decision, we want it to appear on top. + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + faith.religion = faith:mazdayasna.religion + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_became_saoshyant + } + } + } + + is_valid = { + piety_level >= very_high_piety_level + has_title = title:e_persia + completely_controls = title:e_persia + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + + effect = { + show_as_tooltip = { + become_saoshyant_decision_effect = yes + } + trigger_event = { + id = middle_east_decisions.0011 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_became_saoshyant + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Refound the long-lapsed & short-lived Armenian Empire - by Ewan Cowhig Croft +### Revive Greater Armenia ### +create_armenian_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = create_armenian_empire_decision_desc + selection_tooltip = create_armenian_empire_decision_tooltip + decision_group_type = major + + ai_check_interval = 0 + + is_shown = { + is_playable_character = yes # Normally this will always be true, but if in DEBUG mode and playing as an unlanded ruler this will cause error spam without it. + highest_held_title_tier <= tier_kingdom + capital_province = { geographical_region = custom_greater_armenia } + OR = { + faith = faith:armenian_apostolic + culture = culture:armenian + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_armenian_empire + } + } + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_republic + government_has_flag = government_is_clan + government_allows = administrative + government_has_flag = government_is_landless_adventurer + } + } + + is_valid = { + top_liege = this + highest_held_title_tier = tier_kingdom + completely_controls_region = custom_greater_armenia + } + + is_valid_showing_failures_only = { + is_landed = yes + is_available_adult = yes + } + + cost = { + prestige = 2000 + piety = 1000 + } + + effect = { + show_as_tooltip = { + revive_armenian_empire_decision_scripted_effect = yes + } + save_scope_as = founder + trigger_event = { + id = middle_east_decisions.1001 + } + #Notify other players. + every_player = { + limit = { + this != root + is_within_diplo_range = { CHARACTER = root } + } + trigger_event = middle_east_decisions.1002 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_created_armenian_empire + } + set_global_variable = { + name = flag_created_armenian_empire + value = scope:founder + } + } + } + + ai_potential = { + always = no + } + + ai_will_do = { + base = 0 + } +} + +################################# +# Found the Empire of Beth Nahrain +# by Anna Johansson +################################# + +### Found Empire Of Beth Nahrain Decision ### +found_empire_of_beth_nahrain_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds" + } + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + title = middle_east_major_decisions.1020.t + desc = middle_east_major_decisions.1020.desc + selection_tooltip = middle_east_major_decisions.1020.tt + + is_shown = { + is_ruler = yes + is_playable_character = yes + capital_province = { geographical_region = world_middle_east } + + any_sub_realm_county = { + OR = { + faith = faith:nestorian + culture = { + OR = { + this = culture:assyrian + any_parent_culture_or_above = { + this = culture:assyrian + } + } + } + } + } + + #Can only do it once + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:created_beth_nahrain + } + } + } + is_valid = { + is_independent_ruler = yes + highest_held_title_tier = tier_kingdom + culture = { has_cultural_pillar = heritage_syriac } + custom_tooltip = { + text = completely_controls_jazira_mesopotamia_tt + completely_controls = title:k_jazira + completely_controls = title:k_mesopotamia + } + custom_tooltip = { + text = has_titles_jazira_mesopotamia_tt + has_title = title:k_jazira + has_title = title:k_mesopotamia + } + OR = { + custom_tooltip = { + text = has_title_and_completely_control_jerusalem_tt + has_title = title:k_jerusalem + completely_controls = title:k_jerusalem + } + custom_tooltip = { + text = has_title_and_completely_control_syria_tt + has_title = title:k_syria + completely_controls = title:k_syria + } + } + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:created_beth_nahrain + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_jazira = { + set_de_jure_liege_title = title:e_beth_nahrain + } + title:k_mesopotamia = { + set_de_jure_liege_title = title:e_beth_nahrain + } + + if = { + limit = { + has_title = title:k_jerusalem + completely_controls = title:k_jerusalem + } + title:k_jerusalem = { + set_de_jure_liege_title = title:e_beth_nahrain + } + } + + if = { + limit = { + has_title = title:k_syria + completely_controls = title:k_syria + } + title:k_syria = { + set_de_jure_liege_title = title:e_beth_nahrain + } + } + } + #Create Beth Nahrain + title:e_beth_nahrain = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + dynasty = { + add_dynasty_prestige = 1000 + } + + give_nickname = nick_beth_nahrain + + show_as_tooltip = { + promote_culture_beth_nahrain_scripted_effect = yes + custom_tooltip = middle_east_major_decisions.1020.promote_culture.tt + } + save_scope_as = suppress_tooltips + + trigger_event = { id = middle_east_decisions.1020 } + + show_as_tooltip = { + random_list = { + 100 = { + show_chance = no + desc = middle_east_major_decisions.1020.learning.desc + learning_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + desc = middle_east_major_decisions.1020.martial.desc + martial_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + trigger = { + faith = faith:nestorian + } + desc = middle_east_major_decisions.1020.nestorian.desc + nestorian_faith_beth_nahrain_scripted_effect = yes + } + 100 = { + show_chance = no + trigger = { + NOT = { + faith = faith:nestorian + } + } + desc = middle_east_major_decisions.1020.no_faith.desc + no_faith_beth_nahrain_scripted_effect = yes + } + } + } + } + + cost = { + prestige = 1000 + } + + ai_potential = { + culture = { has_cultural_pillar = heritage_syriac } + } + + ai_will_do = { + base = 100 + } +} + +############## +# Dar al-Islam +############## + +### Establish the Dar al-Islam ### +create_dar_al_islam_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_foundation.dds" + } + decision_group_type = major + + desc = create_dar_al_islam_decision_desc + selection_tooltip = create_dar_al_islam_decision_tt + + sort_order = 1000 # Should be at the very top + + is_shown = { + # Only for Islamic head of faiths + faith = { religious_head ?= root } + faith.religion = religion:islam_religion + # And only if it hasn't been created yet + NOT = { has_global_variable = created_dar_al_islam } + } + is_valid = { + # The basics + is_independent_ruler = yes + any_held_title = { + count >= 2 + tier = tier_empire + } + faith = { has_doctrine = doctrine_temporal_head } + # Must be very pious + prestige_level >= 4 + piety_level >= 5 + # Controls Islamic core lands + completely_controls_region = world_middle_east_arabia + completely_controls_region = world_middle_east_jerusalem + completely_controls_region = world_persia + completely_controls_region = world_africa_north + # Also controls at minimum % of all islamic counties + save_temporary_scope_as = root_scope + custom_tooltip = { + text = realm_controls_enough_islamic_counties_desc + any_realm_county = { + faith.religion = religion:islam_religion + count >= islam_required_county_number_value + } + } + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + show_as_tooltip = { + create_dar_al_islam_effect = yes + } + save_scope_as = dar_al_islam_ruler + # Save all existing islamic head of faiths and their titles + religion:islam_religion = { + every_faith = { + if = { + limit = { + exists = religious_head + faith_hostility_level = { + target = root.faith + value < faith_hostile_level + } + } + religious_head_title = { + add_to_list = old_hof_title + } + religious_head = { + add_to_list = former_islamic_hofs + } + } + } + } + # Trigger follow-up events + trigger_event = middle_east_decisions.1100 + every_player = { + limit = { + this != root + NOT = { is_in_list = former_islamic_hofs } + } + trigger_event = middle_east_decisions.1101 + } + every_in_list = { + list = former_islamic_hofs + limit = { this != root } + trigger_event = { id = middle_east_decisions.1102 days = 1 } + } + } + + cost = { + piety = 1500 + } + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 24 + hegemony = 0 + } + + ai_potential = { + faith = { religious_head ?= root } + faith.religion = religion:islam_religion + } + + ai_will_do = { + base = 100 + } +} diff --git a/common/decisions/80_major_decisions_roman.txt b/common/decisions/80_major_decisions_roman.txt index 41962795..6470d3eb 100644 --- a/common/decisions/80_major_decisions_roman.txt +++ b/common/decisions/80_major_decisions_roman.txt @@ -1,418 +1,418 @@ -##Restoring the Roman Empire (as Byzantium) -#### Restore the Roman Empire ### -#restore_roman_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" -# } -# desc = restore_roman_empire_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# decision_group_type = roman -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_byzantium -# NOT = { primary_title = title:e_hre } -# NOT = { primary_title = title:e_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_allows = administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_scripted_effect = yes -# } -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# } -# trigger_event = ep3_roman_restoration.0100 -# } -# else = { -# trigger_event = roman_restoration.0001 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restoring the Roman Empire (as HRE) -#### Restore the Roman Empire ### -#restore_roman_empire_holy_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = restore_roman_empire_holy_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_hre -# OR = { -# NOT = { has_title = title:e_byzantium } # Prioritize Byzaboos -# primary_title = title:e_hre -# } -# NOT = { primary_title = title:e_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_flag = government_is_administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_holy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0003 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restoring the Roman Empire (as Italia) -#### Restore the Roman Empire ### -#restore_roman_empire_italian_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = restore_roman_empire_italian_decision_desc -# selection_tooltip = restore_roman_empire_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# has_title = title:e_italy -# OR = { -# NAND = { -# has_title = title:e_byzantium #Prioritize Byzaboos -# has_title = title:e_hre #And the Germans -# } -# primary_title = title:e_italy -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# culture = { has_cultural_pillar = heritage_latin } -# is_target_in_global_variable_list = { #Only available after unifying Italy. -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# OR = { -# government_has_flag = government_is_feudal -# government_has_flag = government_is_republic -# government_has_flag = government_is_clan -# government_has_flag = government_is_administrative -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# restore_roman_empire_decision_religion_culture_trigger = yes -# completely_controls = title:d_latium -# completely_controls = title:d_venice -# completely_controls = title:d_romagna -# completely_controls = title:d_sicily -# completely_controls = title:d_genoa -# completely_controls = title:d_capua -# completely_controls = title:d_apulia -# completely_controls = title:d_thrace -# completely_controls = title:d_antioch -# completely_controls = title:d_palestine -# completely_controls = title:d_alexandria -# completely_controls = title:d_athens -# completely_controls = title:d_tunis -# completely_controls = title:d_croatia -# completely_controls = title:d_thessalonika -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# } -# -# effect = { -# custom_tooltip = restore_roman_empire_decision_effect_tooltip -# show_as_tooltip = { -# create_roman_empire_italy_scripted_effect = yes -# } -# trigger_event = { -# id = roman_restoration.0150 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# set_global_variable = { -# name = flag_restored_roman_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Restore the real Roman Empire -#### Form the Sultanate of Rum ### -#form_rum_sultanate_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds" -# } -# desc = form_rum_sultanate_decision_desc -# selection_tooltip = form_rum_sultanate_decision_tooltip -# # Deliberately left in the major group rather than the Roman one. -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 0 -# hegemony = 0 -# } -# -# is_shown = { -# is_ruler = yes -# is_playable_character = yes -# is_landed = yes # Laamps don't need to know about this -# OR = { -# religion = religion:islam_religion -# culture = { has_cultural_pillar = heritage_turkic } -# } -# NOT = { culture = culture:greek } -# NOT = { OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } } -# OR = { -# top_liege = this -# top_liege = { faith.religion = faith:aqlani.religion } -# } -# capital_province = { -# OR = { -# geographical_region = world_persian_empire -# geographical_region = world_asia_minor -# geographical_region = custom_greater_armenia -# } -# } -# NOR = { -# exists = title:k_rum.holder -# top_liege = { is_roman_emperor_trigger = yes } -# } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_rum_sultanate -# } -# } -# OR = { -# highest_held_title_tier < 4 #Dukes or lower, splitting off from Persia. -# AND = { -# highest_held_title_tier < 5 -# top_liege = this #Or just a fancy way to get a new King title. -# } -# } -# } -# -# is_valid = { -# prestige_level >= high_prestige_level -# piety_level >= high_piety_level -# completely_controls = title:d_cibyrrhaeot -# completely_controls = title:d_anatolia -# completely_controls = title:d_cappadocia -# completely_controls = title:d_charsianon -# completely_controls = title:d_paphlagonia -# completely_controls = title:d_armeniac -# completely_controls = title:d_chaldia -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# is_at_war = no -# } -# -# effect = { -# custom_tooltip = form_rum_sultanate_decision_effect_tooltip -# gain_heroic_legend_seed_tooltip_effect = yes -# show_as_tooltip = { -# create_rum_scripted_effect = yes -# } -# trigger_event = { -# id = middle_east_decisions.0014 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_rum_sultanate -# } -# set_global_variable = { -# name = flag_formed_rum_sultanate -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# +#Restoring the Roman Empire (as Byzantium) +### Restore the Roman Empire ### +restore_roman_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" + } + desc = restore_roman_empire_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + decision_group_type = roman + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + has_title = title:e_byzantium + NOT = { primary_title = title:e_hre } + NOT = { primary_title = title:e_italy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_republic + government_has_flag = government_is_clan + government_allows = administrative + } + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_scripted_effect = yes + } + if = { + limit = { + has_ep3_dlc_trigger = yes + } + trigger_event = ep3_roman_restoration.0100 + } + else = { + trigger_event = roman_restoration.0001 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restoring the Roman Empire (as HRE) +### Restore the Roman Empire ### +restore_roman_empire_holy_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = restore_roman_empire_holy_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + has_title = title:e_hre + OR = { + NOT = { has_title = title:e_byzantium } # Prioritize Byzaboos + primary_title = title:e_hre + } + NOT = { primary_title = title:e_italy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_republic + government_has_flag = government_is_clan + government_has_flag = government_is_administrative + } + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_holy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0003 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restoring the Roman Empire (as Italia) +### Restore the Roman Empire ### +restore_roman_empire_italian_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = restore_roman_empire_italian_decision_desc + selection_tooltip = restore_roman_empire_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + has_title = title:e_italy + OR = { + NAND = { + has_title = title:e_byzantium #Prioritize Byzaboos + has_title = title:e_hre #And the Germans + } + primary_title = title:e_italy + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + culture = { has_cultural_pillar = heritage_latin } + is_target_in_global_variable_list = { #Only available after unifying Italy. + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + OR = { + government_has_flag = government_is_feudal + government_has_flag = government_is_republic + government_has_flag = government_is_clan + government_has_flag = government_is_administrative + } + } + + is_valid = { + prestige_level >= max_prestige_level + restore_roman_empire_decision_religion_culture_trigger = yes + completely_controls = title:d_latium + completely_controls = title:d_venice + completely_controls = title:d_romagna + completely_controls = title:d_sicily + completely_controls = title:d_genoa + completely_controls = title:d_capua + completely_controls = title:d_apulia + completely_controls = title:d_thrace + completely_controls = title:d_antioch + completely_controls = title:d_palestine + completely_controls = title:d_alexandria + completely_controls = title:d_athens + completely_controls = title:d_tunis + completely_controls = title:d_croatia + completely_controls = title:d_thessalonika + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + } + + effect = { + custom_tooltip = restore_roman_empire_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_italy_scripted_effect = yes + } + trigger_event = { + id = roman_restoration.0150 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + set_global_variable = { + name = flag_restored_roman_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Restore the real Roman Empire +### Form the Sultanate of Rum ### +form_rum_sultanate_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/fp3_decision_concession.dds" + } + desc = form_rum_sultanate_decision_desc + selection_tooltip = form_rum_sultanate_decision_tooltip + # Deliberately left in the major group rather than the Roman one. + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 0 + hegemony = 0 + } + + is_shown = { + is_ruler = yes + is_playable_character = yes + is_landed = yes # Laamps don't need to know about this + OR = { + religion = religion:islam_religion + culture = { has_cultural_pillar = heritage_turkic } + } + NOT = { culture = culture:greek } + NOT = { OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } } + OR = { + top_liege = this + top_liege = { faith.religion = faith:aqlani.religion } + } + capital_province = { + OR = { + geographical_region = world_persian_empire + geographical_region = world_asia_minor + geographical_region = custom_greater_armenia + } + } + NOR = { + exists = title:k_rum.holder + top_liege = { is_roman_emperor_trigger = yes } + } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_rum_sultanate + } + } + OR = { + highest_held_title_tier < 4 #Dukes or lower, splitting off from Persia. + AND = { + highest_held_title_tier < 5 + top_liege = this #Or just a fancy way to get a new King title. + } + } + } + + is_valid = { + prestige_level >= high_prestige_level + piety_level >= high_piety_level + completely_controls = title:d_cibyrrhaeot + completely_controls = title:d_anatolia + completely_controls = title:d_cappadocia + completely_controls = title:d_charsianon + completely_controls = title:d_paphlagonia + completely_controls = title:d_armeniac + completely_controls = title:d_chaldia + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + + effect = { + custom_tooltip = form_rum_sultanate_decision_effect_tooltip + gain_heroic_legend_seed_tooltip_effect = yes + show_as_tooltip = { + create_rum_scripted_effect = yes + } + trigger_event = { + id = middle_east_decisions.0014 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_formed_rum_sultanate + } + set_global_variable = { + name = flag_formed_rum_sultanate + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + ### Mend the Great Schism ### mend_the_great_schism_decision = { picture = { @@ -1060,411 +1060,410 @@ dismantle_papacy_decision = { #For Muslims and Pagans. base = 100 } } -# -##Uniting Italy -#### Unify Italy ### -#unify_italian_empire_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" -# } -# desc = unify_italian_empire_decision_desc -# selection_tooltip = unify_italian_empire_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# culture = { has_cultural_pillar = heritage_latin } -# is_ruler = yes -# is_playable_character = yes -# highest_held_title_tier > 2 #Dukes and above -# capital_province = { geographical_region = world_europe_south_italy } -# NOT = { #Can only do it once. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# } -# NOT = { #Too late. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_restored_roman_empire -# } -# } -# NOT = { #Too late. -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_reformed_carolingian_empire -# } -# } -# } -# -# is_valid = { -# prestige_level >= very_high_prestige_level -# has_title = title:e_italy -# #All the Peninsula -# completely_controls_region = world_europe_south_italy -# #And Illyria -# completely_controls_region = custom_roman_illyricum -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# effect = { -# gain_heroic_legend_seed_tooltip_effect = yes -# custom_tooltip = unify_italian_empire_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0140 -# } -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_unified_italian_empire -# } -# set_global_variable = { -# name = flag_unified_italian_empire -# value = root -# } -# } -# } -# -# ai_potential = { -# always = yes -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -##Roman Empires showdown decision. -#### Dismantle German Pretenders ### -#dismantle_holy_pretender_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = dismantle_holy_pretender_decision_desc -# selection_tooltip = dismantle_holy_pretender_decision_tooltip -# decision_group_type = roman -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# exists = title:e_hre.holder #Must exist in the first place... -# NOT = { -# root = title:e_hre.holder #That'd be awkward... -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# culture = { has_cultural_pillar = heritage_latin } -# } -# is_ruler = yes -# is_playable_character = yes -# is_roman_emperor_trigger = yes -# NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. -# has_character_flag = flag_emperor_challenging_hre #Applied below. -# has_character_flag = flag_emperor_challenged_hre #Applied in war. -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# #All the Italian Peninsula -# completely_controls_region = world_europe_south_italy -# #And Lotharingia (the Rhine). -# completely_controls = title:d_luxembourg -# completely_controls = title:d_brabant -# completely_controls = title:d_cologne -# completely_controls = title:d_upper_lorraine -# completely_controls = title:d_lower_lorraine -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# prestige = 2000 -# } -# -# effect = { -# custom_tooltip = dismantle_holy_pretender_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0160 -# } -# } -# -# ai_potential = { -# has_trait = ambitious -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -#### Dismantle Greek Pretenders ### -#dismantle_byz_pretender_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_realm.dds" -# } -# desc = dismantle_byz_pretender_decision_desc -# selection_tooltip = dismantle_byz_pretender_decision_tooltip -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 0 -# kingdom = 0 -# empire = 120 -# hegemony = 120 -# } -# -# is_shown = { -# exists = title:e_byzantium.holder #Must exist in the first place... -# NOT = { -# root = title:e_byzantium.holder #That'd be awkward... -# } -# OR = { -# culture = { has_cultural_pillar = heritage_frankish } -# culture = { has_cultural_pillar = heritage_central_germanic } -# culture = { has_cultural_pillar = heritage_latin } -# } -# is_ruler = yes -# is_playable_character = yes -# OR = { -# is_roman_emperor_trigger = yes -# has_title = title:e_hre -# } -# NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. -# has_character_flag = flag_emperor_challenging_byz #Applied below. -# has_character_flag = flag_emperor_challenged_byz #Applied in war. -# } -# } -# -# is_valid = { -# prestige_level >= max_prestige_level -# #All the Italian Peninsula -# completely_controls_region = world_europe_south_italy -# #And Epirus/Hellas (Greek foothold). -# completely_controls = title:d_dyrrachion -# completely_controls = title:d_cephalonia -# completely_controls = title:d_epirus -# completely_controls = title:d_athens -# completely_controls = title:d_achaia -# } -# -# is_valid_showing_failures_only = { -# is_landed = yes -# is_capable_adult = yes -# is_imprisoned = no -# top_liege = this -# is_at_war = no -# } -# -# cost = { -# prestige = 2000 -# } -# -# effect = { -# custom_tooltip = dismantle_byz_pretender_decision_effect_tooltip -# trigger_event = { -# id = roman_restoration.0170 -# } -# } -# -# ai_potential = { -# has_trait = ambitious -# } -# -# ai_will_do = { -# base = 100 -# } -#} -# -############################################## -## Rebuke Roman Claim to Sicily # -## by Ewan Cowhig Croft # -############################################## -# -#rebuke_roman_revanchism_sicily = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds" -# } -# decision_group_type = major -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 0 -# duchy = 120 -# kingdom = 120 -# empire = 120 -# hegemony = 120 -# } -# -# desc = rebuke_roman_revanchism_sicily_desc -# selection_tooltip = rebuke_roman_revanchism_sicily_tooltip -# -# is_shown = { -# # Standard filter checks. -# is_playable_character = yes -# # Sicily is still under the ERE. -# title:e_byzantium = { is_de_jure_liege_or_above_target = title:k_sicily } -# # Has land in Sicily. -# any_held_title = { -# title_tier = county -# title_province = { geographical_region = custom_sicily } -# } -# # Outside the ERE. -# NOR = { -# has_title = title:e_byzantium -# any_liege_or_above = { has_title = title:e_byzantium } -# } -# # Aaaaaaand it's already happened in 1178. -# NOT = { game_start_date >= 1178.10.1 } -# # Not repeatable. -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_rebuked_roman_claim_to_sicily -# } -# } -# } -# -# is_valid = { -# # Must be independent. -# top_liege = this -# # Should have a decent prestige level. -# prestige_level >= high_prestige_level -# OR = { -# # You've got most things and no ERE. -# AND = { -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.lower_tally -# any_county_in_region = { -# region = custom_sicily -# count >= rebuke_roman_revanchism_sicily_requirements_some_ere_county_value -# rebuke_roman_revanchism_counties_controlled_trigger = yes -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_booted -# NOT = { -# any_county_in_region = { -# region = custom_sicily -# rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes -# } -# } -# } -# } -# # You've got even more things but there's still some ERE. -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.higher_tally -# any_county_in_region = { -# region = custom_sicily -# count >= rebuke_roman_revanchism_sicily_requirements_no_ere_county_value -# rebuke_roman_revanchism_counties_controlled_trigger = yes -# } -# } -# } -# title:k_sicily = { -# OR = { -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.sicily_has_no_holder -# is_title_created = no -# } -# holder = root -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_cant_be_revanchising -# OR = { -# NOT = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:retake_eastern_provinces_decision -# } -# } -# NOT = { exists = title:e_byzantium.holder } -# } -# } -# custom_tooltip = { -# text = rebuke_roman_revanchism_sicily.tt.requirements.ere_not_in_italy -# NOT = { -# any_county_in_region = { -# region = world_europe_south_italy -# count >= rebuke_roman_revanchism_sicily_requirements_no_ere_in_italy_county_value -# rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes -# } -# } -# } -# } -# -# is_valid_showing_failures_only = { is_available_at_peace_adult = yes } -# -# effect = { -# save_scope_as = taker -# show_as_tooltip = { -# random_list = { -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.1 -# title:k_sicily = { set_de_jure_liege_title = title:e_italy } -# } -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.2 -# title:k_sicily = { set_de_jure_liege_title = title:e_maghreb } -# } -# 100 = { -# show_chance = no -# desc = rebuke_roman_revanchism_sicily.tt.effects.option.3 -# trigger = { rebuke_roman_revanchism_sicily_controls_unlisted_empire_trigger = yes } -# title:k_sicily = { set_de_jure_liege_title = root.primary_title } -# } -# } -# add_prestige_experience = rebuke_roman_revanchism_sicily_fame_reward_value -# } -# trigger_event = roman_restoration.1211 -# # Notifying other players is done in scope:taker's event, as scope:taker may change the circumstances of the decision with their option choice. -# hidden_effect = { -# add_to_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_rebuked_roman_claim_to_sicily -# } -# } -# } -# -# cost = { prestige = 1000 } -# -# ai_potential = { always = yes } -# -# # We always want them to do this if they can. -# ai_will_do = { base = 1000 } -#} -# \ No newline at end of file + +#Uniting Italy +### Unify Italy ### +unify_italian_empire_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + } + desc = unify_italian_empire_decision_desc + selection_tooltip = unify_italian_empire_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + is_shown = { + culture = { has_cultural_pillar = heritage_latin } + is_ruler = yes + is_playable_character = yes + highest_held_title_tier > 2 #Dukes and above + capital_province = { geographical_region = world_europe_south_italy } + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + } + NOT = { #Too late. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_restored_roman_empire + } + } + NOT = { #Too late. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_reformed_carolingian_empire + } + } + } + + is_valid = { + prestige_level >= very_high_prestige_level + has_title = title:e_italy + #All the Peninsula + completely_controls_region = world_europe_south_italy + #And Illyria + completely_controls_region = custom_roman_illyricum + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + effect = { + gain_heroic_legend_seed_tooltip_effect = yes + custom_tooltip = unify_italian_empire_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0140 + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_unified_italian_empire + } + set_global_variable = { + name = flag_unified_italian_empire + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Roman Empires showdown decision. +### Dismantle German Pretenders ### +dismantle_holy_pretender_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = dismantle_holy_pretender_decision_desc + selection_tooltip = dismantle_holy_pretender_decision_tooltip + decision_group_type = roman + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + exists = title:e_hre.holder #Must exist in the first place... + NOT = { + root = title:e_hre.holder #That'd be awkward... + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + culture = { has_cultural_pillar = heritage_latin } + } + is_ruler = yes + is_playable_character = yes + is_roman_emperor_trigger = yes + NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. + has_character_flag = flag_emperor_challenging_hre #Applied below. + has_character_flag = flag_emperor_challenged_hre #Applied in war. + } + } + + is_valid = { + prestige_level >= max_prestige_level + #All the Italian Peninsula + completely_controls_region = world_europe_south_italy + #And Lotharingia (the Rhine). + completely_controls = title:d_luxembourg + completely_controls = title:d_brabant + completely_controls = title:d_cologne + completely_controls = title:d_upper_lorraine + completely_controls = title:d_lower_lorraine + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + prestige = 2000 + } + + effect = { + custom_tooltip = dismantle_holy_pretender_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0160 + } + } + + ai_potential = { + has_trait = ambitious + } + + ai_will_do = { + base = 100 + } +} + +### Dismantle Greek Pretenders ### +dismantle_byz_pretender_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_realm.dds" + } + desc = dismantle_byz_pretender_decision_desc + selection_tooltip = dismantle_byz_pretender_decision_tooltip + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 0 + kingdom = 0 + empire = 120 + hegemony = 120 + } + + is_shown = { + exists = title:e_byzantium.holder #Must exist in the first place... + NOT = { + root = title:e_byzantium.holder #That'd be awkward... + } + OR = { + culture = { has_cultural_pillar = heritage_frankish } + culture = { has_cultural_pillar = heritage_central_germanic } + culture = { has_cultural_pillar = heritage_latin } + } + is_ruler = yes + is_playable_character = yes + OR = { + is_roman_emperor_trigger = yes + has_title = title:e_hre + } + NOR = { #Once an Emperor throws the challenge, he has only one chance to dismantle the Empire. + has_character_flag = flag_emperor_challenging_byz #Applied below. + has_character_flag = flag_emperor_challenged_byz #Applied in war. + } + } + + is_valid = { + prestige_level >= max_prestige_level + #All the Italian Peninsula + completely_controls_region = world_europe_south_italy + #And Epirus/Hellas (Greek foothold). + completely_controls = title:d_dyrrachion + completely_controls = title:d_cephalonia + completely_controls = title:d_epirus + completely_controls = title:d_athens + completely_controls = title:d_achaia + } + + is_valid_showing_failures_only = { + is_landed = yes + is_capable_adult = yes + is_imprisoned = no + top_liege = this + is_at_war = no + } + + cost = { + prestige = 2000 + } + + effect = { + custom_tooltip = dismantle_byz_pretender_decision_effect_tooltip + trigger_event = { + id = roman_restoration.0170 + } + } + + ai_potential = { + has_trait = ambitious + } + + ai_will_do = { + base = 100 + } +} + +############################################# +# Rebuke Roman Claim to Sicily # +# by Ewan Cowhig Croft # +############################################# + +rebuke_roman_revanchism_sicily = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_legitimacy.dds" + } + decision_group_type = major + + ai_check_interval_by_tier = { + barony = 0 + county = 0 + duchy = 120 + kingdom = 120 + empire = 120 + hegemony = 120 + } + + desc = rebuke_roman_revanchism_sicily_desc + selection_tooltip = rebuke_roman_revanchism_sicily_tooltip + + is_shown = { + # Standard filter checks. + is_playable_character = yes + # Sicily is still under the ERE. + title:e_byzantium = { is_de_jure_liege_or_above_target = title:k_sicily } + # Has land in Sicily. + any_held_title = { + title_tier = county + title_province = { geographical_region = custom_sicily } + } + # Outside the ERE. + NOR = { + has_title = title:e_byzantium + any_liege_or_above = { has_title = title:e_byzantium } + } + # Aaaaaaand it's already happened in 1178. + NOT = { game_start_date >= 1178.10.1 } + # Not repeatable. + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_rebuked_roman_claim_to_sicily + } + } + } + + is_valid = { + # Must be independent. + top_liege = this + # Should have a decent prestige level. + prestige_level >= high_prestige_level + OR = { + # You've got most things and no ERE. + AND = { + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.lower_tally + any_county_in_region = { + region = custom_sicily + count >= rebuke_roman_revanchism_sicily_requirements_some_ere_county_value + rebuke_roman_revanchism_counties_controlled_trigger = yes + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_booted + NOT = { + any_county_in_region = { + region = custom_sicily + rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes + } + } + } + } + # You've got even more things but there's still some ERE. + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.higher_tally + any_county_in_region = { + region = custom_sicily + count >= rebuke_roman_revanchism_sicily_requirements_no_ere_county_value + rebuke_roman_revanchism_counties_controlled_trigger = yes + } + } + } + title:k_sicily = { + OR = { + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.sicily_has_no_holder + is_title_created = no + } + holder = root + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_cant_be_revanchising + OR = { + NOT = { + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:retake_eastern_provinces_decision + } + } + NOT = { exists = title:e_byzantium.holder } + } + } + custom_tooltip = { + text = rebuke_roman_revanchism_sicily.tt.requirements.ere_not_in_italy + NOT = { + any_county_in_region = { + region = world_europe_south_italy + count >= rebuke_roman_revanchism_sicily_requirements_no_ere_in_italy_county_value + rebuke_roman_revanchism_counties_controlled_by_ere_trigger = yes + } + } + } + } + + is_valid_showing_failures_only = { is_available_at_peace_adult = yes } + + effect = { + save_scope_as = taker + show_as_tooltip = { + random_list = { + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.1 + title:k_sicily = { set_de_jure_liege_title = title:e_italy } + } + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.2 + title:k_sicily = { set_de_jure_liege_title = title:e_maghreb } + } + 100 = { + show_chance = no + desc = rebuke_roman_revanchism_sicily.tt.effects.option.3 + trigger = { rebuke_roman_revanchism_sicily_controls_unlisted_empire_trigger = yes } + title:k_sicily = { set_de_jure_liege_title = root.primary_title } + } + } + add_prestige_experience = rebuke_roman_revanchism_sicily_fame_reward_value + } + trigger_event = roman_restoration.1211 + # Notifying other players is done in scope:taker's event, as scope:taker may change the circumstances of the decision with their option choice. + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_rebuked_roman_claim_to_sicily + } + } + } + + cost = { prestige = 1000 } + + ai_potential = { always = yes } + + # We always want them to do this if they can. + ai_will_do = { base = 1000 } +} diff --git a/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt b/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt index 89860d74..966cfe31 100644 --- a/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt +++ b/common/decisions/dlc_decisions/ce_1/ce1_legendary_decisions.txt @@ -7,27 +7,27 @@ # By James Beaumont ########################### legend_demand_fealty = { -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } diff --git a/common/decisions/dlc_decisions/ep3_decisions.txt b/common/decisions/dlc_decisions/ep3_decisions.txt index fbd295d6..4e5cc646 100644 --- a/common/decisions/dlc_decisions/ep3_decisions.txt +++ b/common/decisions/dlc_decisions/ep3_decisions.txt @@ -1656,27 +1656,27 @@ restore_backwater_counties_decision = { #} change_state_faith = { -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { trigger = { faith.religion = religion:islam_religion @@ -1910,27 +1910,27 @@ change_state_faith = { } adopt_state_faith = { -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { trigger = { top_liege.primary_title.state_faith.religion = religion:islam_religion @@ -2768,9 +2768,9 @@ establish_silk_production_decision = { domicile ?= { is_domicile_type = estate } -# top_liege ?= { -# is_roman_emperor_primary_title_trigger = yes -## } + top_liege ?= { + is_roman_emperor_primary_title_trigger = yes + } NOT = { house = { has_house_modifier = ep3_unlocked_silk @@ -2781,7 +2781,7 @@ establish_silk_production_decision = { is_valid = { trigger_if = { limit = { top_liege = this } -# is_roman_emperor_trigger = yes + is_roman_emperor_trigger = yes OR = { has_realm_law = imperial_bureaucracy_2 has_realm_law = imperial_bureaucracy_3 diff --git a/common/decisions/dlc_decisions/ep_1/00_ep1_court_grandeur_and_amenity_decisions.txt b/common/decisions/dlc_decisions/ep_1/00_ep1_court_grandeur_and_amenity_decisions.txt index e16f8e47..9aabb6ac 100644 --- a/common/decisions/dlc_decisions/ep_1/00_ep1_court_grandeur_and_amenity_decisions.txt +++ b/common/decisions/dlc_decisions/ep_1/00_ep1_court_grandeur_and_amenity_decisions.txt @@ -122,28 +122,28 @@ order_mass_eviction_decision = { # Arrange for a major room to be remodelled with decor inspired by a more grandiose culture. ### Exoticize a Grand Hall ### exoticise_a_grand_hall_decision = { -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# government_has_flag = government_is_nomadic -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + government_has_flag = government_is_nomadic + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { trigger = { government_has_flag = government_is_nomadic diff --git a/common/decisions/dlc_decisions/ep_3/06_ep3_admin_decisions.txt b/common/decisions/dlc_decisions/ep_3/06_ep3_admin_decisions.txt index 07e88063..9e0f08fe 100644 --- a/common/decisions/dlc_decisions/ep_3/06_ep3_admin_decisions.txt +++ b/common/decisions/dlc_decisions/ep_3/06_ep3_admin_decisions.txt @@ -485,27 +485,27 @@ admin_confirmation_decision = { hegemony = 0 } sort_order = 1000 -# picture = { -# trigger = { -# NOR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_theocracy -# top_liege ?= { government_has_flag = government_is_tribal } -# top_liege ?= { government_has_flag = government_is_theocracy } -# } -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# top_liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_byzantine } -# capital_barony ?= title:b_constantinople -# is_roman_emperor_primary_title_trigger = yes -# } -# } -# } -# } -# reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" -# } + picture = { + trigger = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_theocracy + top_liege ?= { government_has_flag = government_is_tribal } + top_liege ?= { government_has_flag = government_is_theocracy } + } + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + top_liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_byzantine } + capital_barony ?= title:b_constantinople + is_roman_emperor_primary_title_trigger = yes + } + } + } + } + reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds" + } picture = { reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds" } @@ -1232,12 +1232,12 @@ convert_to_administrative_decision = { ai_will_do = { base = 0 - # modifier = { - # OR = { - # is_roman_emperor_primary_title_trigger = yes - # } - # add = 100 - # } + modifier = { + OR = { + is_roman_emperor_primary_title_trigger = yes + } + add = 100 + } modifier = { culture = { OR = { diff --git a/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt index 886785ca..1e4feccf 100644 --- a/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt +++ b/common/decisions/dlc_decisions/fp_3/fp3_islamic_decisions.txt @@ -352,164 +352,163 @@ fp3_promote_persian_scripture_decision = { } } } -# -#### Declare Stance in the Iranian Intermezzo ### -#fp3_name_read_in_friday_prayer_decision = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/fp3/antagonistic.dds" -# } -# selection_tooltip = fp3_name_read_in_friday_prayer_decision_tooltip -# decision_group_type = major -# sort_order = -20 -# decision_group_type = struggle -# # We check this via the struggle itself. -# ai_check_interval = 0 -# -# title = { -# first_valid = { -# # Supporter turns Detractor. -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_supporter } -# desc = fp3_name_read_in_friday_prayer_decision.supporter_turns_detractor.t -# } -# # Detractor turns Supporter. -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_detractor } -# desc = fp3_name_read_in_friday_prayer_decision.detractor.turns_supporter.t -# } -# # Neither trait. -# desc = fp3_name_read_in_friday_prayer_decision.neutral.t -# } -# } -# -# desc = { -# first_valid = { -# # Supporter turns Detractor. -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_supporter } -# desc = fp3_name_read_in_friday_prayer_decision.supporter_turns_detractor.desc -# } -# # Detractor turns Supporter. -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_detractor } -# desc = fp3_name_read_in_friday_prayer_decision.detractor.turns_supporter.desc -# } -# # Neither trait. -# desc = fp3_name_read_in_friday_prayer_decision.neutral.desc -# } -# } -# -# is_shown = { -# has_fp3_dlc_trigger = yes -# any_character_struggle = { this = struggle:persian_struggle } -# has_religion = religion:islam_religion -# } -# -# is_valid = { -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.orthodox_sunnis_only -# faith.religious_head ?= title:d_sunni.holder -# } -# OR = { -# fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = yes -# trigger_if = { -# # If you meet the requirements, there'll be no warning copy as it just doesn't apply to you. -# limit = { fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = no } -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.fallback_validity -# always = yes -# } -# } -# } -# is_at_war = no -# # Supporters can't switch away to detraction if they're allied to the caliph. -# trigger_if = { -# limit = { -# has_trait = fp3_struggle_supporter -# exists = title:d_sunni.holder -# } -# NOT = { is_allied_to = title:d_sunni.holder } -# } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.orthodox_sunnis_only -# has_religion = religion:islam_religion -# faith.religious_head ?= title:d_sunni.holder -# } -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.sunni_caliph_must_exist -# exists = title:d_sunni.holder -# } -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.sunni_caliph_cannot_change_prayer_order -# NOT = { has_title = title:d_sunni } -# } -# # If you've already got the modifier, then you can't flipflop unless the caliph changes. -# trigger_if = { -# limit = { -# has_variable = last_explicit_friday_prayer_caliph -# title:d_sunni.holder ?= var:last_explicit_friday_prayer_caliph -# OR = { -# has_character_modifier = fp3_name_read_in_friday_prayer_modifier -# has_character_modifier = fp3_displayed_pious_submission_to_caliph_modifier -# } -# } -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.require_new_caliph_or_modifier_lapse -# always = no -# } -# } -# # If you rejected the caliph's demands previously, then you can't flipflop unless the caliph changes. -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.require_new_caliph_or_flag_lapse -# OR = { -# NOT = { has_variable = last_explicit_defied_caliph } -# NOT = { title:d_sunni.holder ?= var:last_explicit_defied_caliph } -# } -# } -# # If you killed the caliph at any point, you can't switch at all. -# trigger_if = { -# limit = { -# has_trait = fp3_struggle_detractor -# exists = title:d_sunni.holder -# exists = title:d_sunni.holder.dynasty -# NOT = { dynasty ?= title:d_sunni.holder.dynasty } -# } -# custom_tooltip = { -# text = fp3_name_read_in_friday_prayer_decision.tt.caliph_murderers_cant_become_supporters -# NOT = { -# any_killed_character = { -# save_temporary_scope_as = char_temp -# title:d_sunni = { -# any_past_holder = { this = scope:char_temp } -# } -# } -# } -# } -# } -# } -# -# cost = { -# piety = { -# # Base value. -# value = 250 -# # Not meeting the liege trigger reqs gives you an extra surcharge. -# if = { -# limit = { fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = no } -# add = 350 -# } -# } -# } -# -# effect = { -# show_as_tooltip = { read_name_in_friday_prayer_scripted_effect = yes } -# trigger_event = fp3_decision.0015 -# } -# -# -# # No AI checks here as we handle them taking the decision as part of general struggle stuff. -#} -# \ No newline at end of file + +### Declare Stance in the Iranian Intermezzo ### +fp3_name_read_in_friday_prayer_decision = { + picture = { + reference = "gfx/interface/illustrations/decisions/fp3/antagonistic.dds" + } + selection_tooltip = fp3_name_read_in_friday_prayer_decision_tooltip + decision_group_type = major + sort_order = -20 + decision_group_type = struggle + # We check this via the struggle itself. + ai_check_interval = 0 + + title = { + first_valid = { + # Supporter turns Detractor. + triggered_desc = { + trigger = { has_trait = fp3_struggle_supporter } + desc = fp3_name_read_in_friday_prayer_decision.supporter_turns_detractor.t + } + # Detractor turns Supporter. + triggered_desc = { + trigger = { has_trait = fp3_struggle_detractor } + desc = fp3_name_read_in_friday_prayer_decision.detractor.turns_supporter.t + } + # Neither trait. + desc = fp3_name_read_in_friday_prayer_decision.neutral.t + } + } + + desc = { + first_valid = { + # Supporter turns Detractor. + triggered_desc = { + trigger = { has_trait = fp3_struggle_supporter } + desc = fp3_name_read_in_friday_prayer_decision.supporter_turns_detractor.desc + } + # Detractor turns Supporter. + triggered_desc = { + trigger = { has_trait = fp3_struggle_detractor } + desc = fp3_name_read_in_friday_prayer_decision.detractor.turns_supporter.desc + } + # Neither trait. + desc = fp3_name_read_in_friday_prayer_decision.neutral.desc + } + } + + is_shown = { + has_fp3_dlc_trigger = yes + any_character_struggle = { this = struggle:persian_struggle } + has_religion = religion:islam_religion + } + + is_valid = { + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.orthodox_sunnis_only + faith.religious_head ?= title:d_sunni.holder + } + OR = { + fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = yes + trigger_if = { + # If you meet the requirements, there'll be no warning copy as it just doesn't apply to you. + limit = { fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = no } + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.fallback_validity + always = yes + } + } + } + is_at_war = no + # Supporters can't switch away to detraction if they're allied to the caliph. + trigger_if = { + limit = { + has_trait = fp3_struggle_supporter + exists = title:d_sunni.holder + } + NOT = { is_allied_to = title:d_sunni.holder } + } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.orthodox_sunnis_only + has_religion = religion:islam_religion + faith.religious_head ?= title:d_sunni.holder + } + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.sunni_caliph_must_exist + exists = title:d_sunni.holder + } + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.sunni_caliph_cannot_change_prayer_order + NOT = { has_title = title:d_sunni } + } + # If you've already got the modifier, then you can't flipflop unless the caliph changes. + trigger_if = { + limit = { + has_variable = last_explicit_friday_prayer_caliph + title:d_sunni.holder ?= var:last_explicit_friday_prayer_caliph + OR = { + has_character_modifier = fp3_name_read_in_friday_prayer_modifier + has_character_modifier = fp3_displayed_pious_submission_to_caliph_modifier + } + } + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.require_new_caliph_or_modifier_lapse + always = no + } + } + # If you rejected the caliph's demands previously, then you can't flipflop unless the caliph changes. + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.require_new_caliph_or_flag_lapse + OR = { + NOT = { has_variable = last_explicit_defied_caliph } + NOT = { title:d_sunni.holder ?= var:last_explicit_defied_caliph } + } + } + # If you killed the caliph at any point, you can't switch at all. + trigger_if = { + limit = { + has_trait = fp3_struggle_detractor + exists = title:d_sunni.holder + exists = title:d_sunni.holder.dynasty + NOT = { dynasty ?= title:d_sunni.holder.dynasty } + } + custom_tooltip = { + text = fp3_name_read_in_friday_prayer_decision.tt.caliph_murderers_cant_become_supporters + NOT = { + any_killed_character = { + save_temporary_scope_as = char_temp + title:d_sunni = { + any_past_holder = { this = scope:char_temp } + } + } + } + } + } + } + + cost = { + piety = { + # Base value. + value = 250 + # Not meeting the liege trigger reqs gives you an extra surcharge. + if = { + limit = { fp3_name_read_in_friday_prayer_decision_liege_requirements_trigger = no } + add = 350 + } + } + } + + effect = { + show_as_tooltip = { read_name_in_friday_prayer_scripted_effect = yes } + trigger_event = fp3_decision.0015 + } + + + # No AI checks here as we handle them taking the decision as part of general struggle stuff. +} diff --git a/common/decisions/dlc_decisions/tgp/tgp_tribute_mission_decisions.txt b/common/decisions/dlc_decisions/tgp/tgp_tribute_mission_decisions.txt index 7c8ff96d..183f6bd1 100644 --- a/common/decisions/dlc_decisions/tgp/tgp_tribute_mission_decisions.txt +++ b/common/decisions/dlc_decisions/tgp/tgp_tribute_mission_decisions.txt @@ -135,673 +135,672 @@ tribute_mission_decision_mandala = { } } -#tribute_mission_decision_china = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" -# } -# decision_group_type = realm -# -# should_create_alert = { always = yes } -# -# desc = tribute_mission_decision_desc_china -# -# cooldown = { years = 5 } -# -# is_shown = { -# title:h_china ?= { is_title_created = yes } -# is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# NOT = { is_at_war_with = title:h_china.holder } #Pretty obvious -# OR = { -# tribute_mission_decision_generic_trigger = yes -# tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_china.holder } -# tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_china.holder } -# } -# } -# -# widget = { -# gui = "decision_view_widget_pay_tribute" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" -# -# item = { # Gold -# value = tribute_mission_gold -# is_valid = { has_gold_tribute_trigger = yes } -# localization = tribute_mission_decision_option_gold -# icon = "gfx/interface/icons/message_feed/money.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { short_term_gold >= excessive_gold_tribute_value } -# add = 20 -# } -# if = { -# limit = { short_term_gold >= adequate_gold_tribute_value } -# add = 20 -# } -# } -# } -# item = { # Herd -# value = tribute_mission_herd -# is_valid = { has_herd_tribute_trigger = yes } -# localization = tribute_mission_decision_option_herd -# icon = "gfx/interface/icons/icon_herd.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { -# domicile ?= { herd >= excessive_herd_tribute_value } -# } -# add = 20 -# } -# if = { -# limit = { -# domicile ?= { herd >= adequate_herd_tribute_value } -# } -# add = 20 -# } -# } -# } -# -# item = { # Artifact -# value = tribute_mission_artifact -# is_valid = { has_artifact_tribute_trigger = yes } -# localization = tribute_mission_decision_option_artifact -# icon = "gfx/interface/icons/message_feed/artifact.dds" -# ai_chance = { value = 20 } -# } -# -# item = { # Concubine -# value = tribute_mission_concubine -# is_valid = { -# has_concubine_tribute_trigger = yes -# title:h_china.holder = { is_adult = yes } -# can_have_concubines_trigger = { CHAR = title:h_china.holder } -# } -# localization = tribute_mission_decision_option_concubine -# icon = "gfx/interface/icons/concubine_icon.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# -# item = { # Eunuch -# value = tribute_mission_eunuch -# is_valid = { -# has_eunuch_tribute_trigger = yes -# can_employ_court_eunuchs_trigger = { CHAR = title:h_china.holder } -# } -# localization = tribute_mission_decision_option_eunuch -# icon = "gfx/interface/icons/character_interactions/eunuch.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# } -# -# effect = { -# custom_tooltip = tribute_mission_decision_effects_china_tt -# tribute_mission_decision_effect = { TARGET = title:h_china.holder } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 72 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 0 -# } -# -# ai_potential = { -# exists = title:h_china.holder -# tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder } -# } -# -# ai_will_do = { -# base = 20 -# tribute_mission_decision_ai_will_do_modifiers = yes -# -# modifier = { -# add = -25 -# primary_title.tier = tier_kingdom -# NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_china.holder } } -# } -# } -#} -# -#tribute_mission_decision_roman_empire = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" -# } -# decision_group_type = realm -# -# should_create_alert = { always = yes } -# -# desc = tribute_mission_decision_desc_roman_empire -# -# cooldown = { years = 5 } -# -# is_shown = { -# title:h_roman_empire ?= { is_title_created = yes } -# is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# NOT = { is_at_war_with = title:h_roman_empire.holder } #Pretty obvious -# OR = { -# tribute_mission_decision_generic_trigger = yes -# tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_roman_empire.holder } -# tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_roman_empire.holder } -# } -# } -# -# widget = { -# gui = "decision_view_widget_pay_tribute" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" -# -# item = { # Gold -# value = tribute_mission_gold -# is_valid = { has_gold_tribute_trigger = yes } -# localization = tribute_mission_decision_option_gold -# icon = "gfx/interface/icons/message_feed/money.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { short_term_gold >= excessive_gold_tribute_value } -# add = 20 -# } -# if = { -# limit = { short_term_gold >= adequate_gold_tribute_value } -# add = 20 -# } -# } -# } -# item = { # Herd -# value = tribute_mission_herd -# is_valid = { has_herd_tribute_trigger = yes } -# localization = tribute_mission_decision_option_herd -# icon = "gfx/interface/icons/icon_herd.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { -# domicile ?= { herd >= excessive_herd_tribute_value } -# } -# add = 20 -# } -# if = { -# limit = { -# domicile ?= { herd >= adequate_herd_tribute_value } -# } -# add = 20 -# } -# } -# } -# -# item = { # Artifact -# value = tribute_mission_artifact -# is_valid = { has_artifact_tribute_trigger = yes } -# localization = tribute_mission_decision_option_artifact -# icon = "gfx/interface/icons/message_feed/artifact.dds" -# ai_chance = { value = 20 } -# } -# -# item = { # Concubine -# value = tribute_mission_concubine -# is_valid = { -# has_concubine_tribute_trigger = yes -# title:h_roman_empire.holder = { is_adult = yes } -# can_have_concubines_trigger = { CHAR = title:h_roman_empire.holder } -# } -# localization = tribute_mission_decision_option_concubine -# icon = "gfx/interface/icons/concubine_icon.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# -# item = { # Eunuch -# value = tribute_mission_eunuch -# is_valid = { -# has_eunuch_tribute_trigger = yes -# can_employ_court_eunuchs_trigger = { CHAR = title:h_roman_empire.holder } -# } -# localization = tribute_mission_decision_option_eunuch -# icon = "gfx/interface/icons/character_interactions/eunuch.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# } -# -# effect = { -# custom_tooltip = tribute_mission_decision_effects_roman_empire_tt -# tribute_mission_decision_effect = { TARGET = title:h_roman_empire.holder } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 72 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 0 -# } -# -# ai_potential = { -# exists = title:h_roman_empire.holder -# tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_roman_empire.holder } -# } -# -# ai_will_do = { -# base = 20 -# tribute_mission_decision_ai_will_do_modifiers = yes -# -# modifier = { -# add = -25 -# primary_title.tier = tier_kingdom -# NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_roman_empire.holder } } -# } -# } -#} -# -#tribute_mission_decision_eastern_roman_empire = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" -# } -# decision_group_type = realm -# -# should_create_alert = { always = yes } -# -# desc = tribute_mission_decision_desc_eastern_roman_empire -# -# cooldown = { years = 5 } -# -# is_shown = { -# title:h_eastern_roman_empire ?= { is_title_created = yes } -# is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# NOT = { is_at_war_with = title:h_eastern_roman_empire.holder } #Pretty obvious -# OR = { -# tribute_mission_decision_generic_trigger = yes -# tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_eastern_roman_empire.holder } -# tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_eastern_roman_empire.holder } -# } -# } -# -# widget = { -# gui = "decision_view_widget_pay_tribute" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" -# -# item = { # Gold -# value = tribute_mission_gold -# is_valid = { has_gold_tribute_trigger = yes } -# localization = tribute_mission_decision_option_gold -# icon = "gfx/interface/icons/message_feed/money.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { short_term_gold >= excessive_gold_tribute_value } -# add = 20 -# } -# if = { -# limit = { short_term_gold >= adequate_gold_tribute_value } -# add = 20 -# } -# } -# } -# item = { # Herd -# value = tribute_mission_herd -# is_valid = { has_herd_tribute_trigger = yes } -# localization = tribute_mission_decision_option_herd -# icon = "gfx/interface/icons/icon_herd.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { -# domicile ?= { herd >= excessive_herd_tribute_value } -# } -# add = 20 -# } -# if = { -# limit = { -# domicile ?= { herd >= adequate_herd_tribute_value } -# } -# add = 20 -# } -# } -# } -# -# item = { # Artifact -# value = tribute_mission_artifact -# is_valid = { has_artifact_tribute_trigger = yes } -# localization = tribute_mission_decision_option_artifact -# icon = "gfx/interface/icons/message_feed/artifact.dds" -# ai_chance = { value = 20 } -# } -# -# item = { # Concubine -# value = tribute_mission_concubine -# is_valid = { -# has_concubine_tribute_trigger = yes -# title:h_eastern_roman_empire.holder = { is_adult = yes } -# can_have_concubines_trigger = { CHAR = title:h_eastern_roman_empire.holder } -# } -# localization = tribute_mission_decision_option_concubine -# icon = "gfx/interface/icons/concubine_icon.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# -# item = { # Eunuch -# value = tribute_mission_eunuch -# is_valid = { -# has_eunuch_tribute_trigger = yes -# can_employ_court_eunuchs_trigger = { CHAR = title:h_eastern_roman_empire.holder } -# } -# localization = tribute_mission_decision_option_eunuch -# icon = "gfx/interface/icons/character_interactions/eunuch.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# } -# -# effect = { -# custom_tooltip = tribute_mission_decision_effects_eastern_roman_empire_tt -# tribute_mission_decision_effect = { TARGET = title:h_eastern_roman_empire.holder } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 72 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 0 -# } -# -# ai_potential = { -# exists = title:h_eastern_roman_empire.holder -# tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_eastern_roman_empire.holder } -# } -# -# ai_will_do = { -# base = 20 -# tribute_mission_decision_ai_will_do_modifiers = yes -# -# modifier = { -# add = -25 -# primary_title.tier = tier_kingdom -# NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_eastern_roman_empire.holder } } -# } -# } -#} -# -#tribute_mission_decision_dar_al_islam = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds" -# } -# decision_group_type = realm -# -# should_create_alert = { always = yes } -# -# desc = tribute_mission_decision_desc_dar_al_islam -# -# cooldown = { years = 5 } -# -# is_shown = { -# title:h_dar_al_islam ?= { is_title_created = yes } -# is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# NOT = { is_at_war_with = title:h_dar_al_islam.holder } #Pretty obvious -# OR = { -# tribute_mission_decision_generic_trigger = yes -# tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_dar_al_islam.holder } -# tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_dar_al_islam.holder } -# } -# } -# -# widget = { -# gui = "decision_view_widget_pay_tribute" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" -# -# item = { # Gold -# value = tribute_mission_gold -# is_valid = { has_gold_tribute_trigger = yes } -# localization = tribute_mission_decision_option_gold -# icon = "gfx/interface/icons/message_feed/money.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { short_term_gold >= excessive_gold_tribute_value } -# add = 20 -# } -# if = { -# limit = { short_term_gold >= adequate_gold_tribute_value } -# add = 20 -# } -# } -# } -# item = { # Herd -# value = tribute_mission_herd -# is_valid = { has_herd_tribute_trigger = yes } -# localization = tribute_mission_decision_option_herd -# icon = "gfx/interface/icons/icon_herd.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { -# domicile ?= { herd >= excessive_herd_tribute_value } -# } -# add = 20 -# } -# if = { -# limit = { -# domicile ?= { herd >= adequate_herd_tribute_value } -# } -# add = 20 -# } -# } -# } -# -# item = { # Artifact -# value = tribute_mission_artifact -# is_valid = { has_artifact_tribute_trigger = yes } -# localization = tribute_mission_decision_option_artifact -# icon = "gfx/interface/icons/message_feed/artifact.dds" -# ai_chance = { value = 20 } -# } -# -# item = { # Concubine -# value = tribute_mission_concubine -# is_valid = { -# has_concubine_tribute_trigger = yes -# title:h_dar_al_islam.holder = { is_adult = yes } -# can_have_concubines_trigger = { CHAR = title:h_dar_al_islam.holder } -# } -# localization = tribute_mission_decision_option_concubine -# icon = "gfx/interface/icons/concubine_icon.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# -# item = { # Eunuch -# value = tribute_mission_eunuch -# is_valid = { -# has_eunuch_tribute_trigger = yes -# can_employ_court_eunuchs_trigger = { CHAR = title:h_dar_al_islam.holder } -# } -# localization = tribute_mission_decision_option_eunuch -# icon = "gfx/interface/icons/character_interactions/eunuch.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# } -# -# effect = { -# custom_tooltip = tribute_mission_decision_effects_dar_al_islam_tt -# tribute_mission_decision_effect = { TARGET = title:h_dar_al_islam.holder } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 72 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 0 -# } -# -# ai_potential = { -# exists = title:h_dar_al_islam.holder -# tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_dar_al_islam.holder } -# } -# -# ai_will_do = { -# base = 20 -# tribute_mission_decision_ai_will_do_modifiers = yes -# -# modifier = { -# add = -25 -# primary_title.tier = tier_kingdom -# NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_dar_al_islam.holder } } -# } -# } -#} -# -#tribute_mission_decision_india = { -# picture = { -# reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds" -# } -# decision_group_type = realm -# -# should_create_alert = { always = yes } -# -# desc = tribute_mission_decision_desc_india -# -# cooldown = { years = 5 } -# -# is_shown = { -# title:h_india ?= { is_title_created = yes } -# is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india } -# } -# -# is_valid_showing_failures_only = { -# is_available_adult = yes -# NOT = { is_at_war_with = title:h_india.holder } #Pretty obvious -# OR = { -# tribute_mission_decision_generic_trigger = yes -# tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_india.holder } -# tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_india.holder } -# } -# } -# -# widget = { -# gui = "decision_view_widget_pay_tribute" -# controller = decision_option_list_controller -# decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" -# -# item = { # Gold -# value = tribute_mission_gold -# is_valid = { has_gold_tribute_trigger = yes } -# localization = tribute_mission_decision_option_gold -# icon = "gfx/interface/icons/message_feed/money.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { short_term_gold >= excessive_gold_tribute_value } -# add = 20 -# } -# if = { -# limit = { short_term_gold >= adequate_gold_tribute_value } -# add = 20 -# } -# } -# } -# item = { # Herd -# value = tribute_mission_herd -# is_valid = { has_herd_tribute_trigger = yes } -# localization = tribute_mission_decision_option_herd -# icon = "gfx/interface/icons/icon_herd.dds" -# ai_chance = { -# value = 20 -# if = { -# limit = { -# domicile ?= { herd >= excessive_herd_tribute_value } -# } -# add = 20 -# } -# if = { -# limit = { -# domicile ?= { herd >= adequate_herd_tribute_value } -# } -# add = 20 -# } -# } -# } -# -# item = { # Artifact -# value = tribute_mission_artifact -# is_valid = { has_artifact_tribute_trigger = yes } -# localization = tribute_mission_decision_option_artifact -# icon = "gfx/interface/icons/message_feed/artifact.dds" -# ai_chance = { value = 20 } -# } -# -# item = { # Concubine -# value = tribute_mission_concubine -# is_valid = { -# has_concubine_tribute_trigger = yes -# title:h_india.holder = { is_adult = yes } -# can_have_concubines_trigger = { CHAR = title:h_india.holder } -# } -# localization = tribute_mission_decision_option_concubine -# icon = "gfx/interface/icons/concubine_icon.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# -# item = { # Eunuch -# value = tribute_mission_eunuch -# is_valid = { -# has_eunuch_tribute_trigger = yes -# can_employ_court_eunuchs_trigger = { CHAR = title:h_india.holder } -# } -# localization = tribute_mission_decision_option_eunuch -# icon = "gfx/interface/icons/character_interactions/eunuch.dds" -# ai_chance = { value = 50 } #The AI can do it? Do it! -# } -# } -# -# effect = { -# custom_tooltip = tribute_mission_decision_effects_india_tt -# tribute_mission_decision_effect = { TARGET = title:h_india.holder } -# } -# -# ai_check_interval_by_tier = { -# barony = 0 -# county = 72 -# duchy = 36 -# kingdom = 36 -# empire = 36 -# hegemony = 0 -# } -# -# ai_potential = { -# exists = title:h_india.holder -# tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_india.holder } -# } -# -# ai_will_do = { -# base = 20 -# tribute_mission_decision_ai_will_do_modifiers = yes -# -# modifier = { -# add = -25 -# primary_title.tier = tier_kingdom -# NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_india.holder } } -# } -# } -#} -# \ No newline at end of file +tribute_mission_decision_china = { + picture = { + reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds" + } + decision_group_type = realm + + should_create_alert = { always = yes } + + desc = tribute_mission_decision_desc_china + + cooldown = { years = 5 } + + is_shown = { + title:h_china ?= { is_title_created = yes } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { is_at_war_with = title:h_china.holder } #Pretty obvious + OR = { + tribute_mission_decision_generic_trigger = yes + tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_china.holder } + tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_china.holder } + } + } + + widget = { + gui = "decision_view_widget_pay_tribute" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" + + item = { # Gold + value = tribute_mission_gold + is_valid = { has_gold_tribute_trigger = yes } + localization = tribute_mission_decision_option_gold + icon = "gfx/interface/icons/message_feed/money.dds" + ai_chance = { + value = 20 + if = { + limit = { short_term_gold >= excessive_gold_tribute_value } + add = 20 + } + if = { + limit = { short_term_gold >= adequate_gold_tribute_value } + add = 20 + } + } + } + item = { # Herd + value = tribute_mission_herd + is_valid = { has_herd_tribute_trigger = yes } + localization = tribute_mission_decision_option_herd + icon = "gfx/interface/icons/icon_herd.dds" + ai_chance = { + value = 20 + if = { + limit = { + domicile ?= { herd >= excessive_herd_tribute_value } + } + add = 20 + } + if = { + limit = { + domicile ?= { herd >= adequate_herd_tribute_value } + } + add = 20 + } + } + } + + item = { # Artifact + value = tribute_mission_artifact + is_valid = { has_artifact_tribute_trigger = yes } + localization = tribute_mission_decision_option_artifact + icon = "gfx/interface/icons/message_feed/artifact.dds" + ai_chance = { value = 20 } + } + + item = { # Concubine + value = tribute_mission_concubine + is_valid = { + has_concubine_tribute_trigger = yes + title:h_china.holder = { is_adult = yes } + can_have_concubines_trigger = { CHAR = title:h_china.holder } + } + localization = tribute_mission_decision_option_concubine + icon = "gfx/interface/icons/concubine_icon.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + + item = { # Eunuch + value = tribute_mission_eunuch + is_valid = { + has_eunuch_tribute_trigger = yes + can_employ_court_eunuchs_trigger = { CHAR = title:h_china.holder } + } + localization = tribute_mission_decision_option_eunuch + icon = "gfx/interface/icons/character_interactions/eunuch.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + } + + effect = { + custom_tooltip = tribute_mission_decision_effects_china_tt + tribute_mission_decision_effect = { TARGET = title:h_china.holder } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 72 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 0 + } + + ai_potential = { + exists = title:h_china.holder + tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder } + } + + ai_will_do = { + base = 20 + tribute_mission_decision_ai_will_do_modifiers = yes + + modifier = { + add = -25 + primary_title.tier = tier_kingdom + NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_china.holder } } + } + } +} + +tribute_mission_decision_roman_empire = { + picture = { + reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" + } + decision_group_type = realm + + should_create_alert = { always = yes } + + desc = tribute_mission_decision_desc_roman_empire + + cooldown = { years = 5 } + + is_shown = { + title:h_roman_empire ?= { is_title_created = yes } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { is_at_war_with = title:h_roman_empire.holder } #Pretty obvious + OR = { + tribute_mission_decision_generic_trigger = yes + tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_roman_empire.holder } + tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_roman_empire.holder } + } + } + + widget = { + gui = "decision_view_widget_pay_tribute" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" + + item = { # Gold + value = tribute_mission_gold + is_valid = { has_gold_tribute_trigger = yes } + localization = tribute_mission_decision_option_gold + icon = "gfx/interface/icons/message_feed/money.dds" + ai_chance = { + value = 20 + if = { + limit = { short_term_gold >= excessive_gold_tribute_value } + add = 20 + } + if = { + limit = { short_term_gold >= adequate_gold_tribute_value } + add = 20 + } + } + } + item = { # Herd + value = tribute_mission_herd + is_valid = { has_herd_tribute_trigger = yes } + localization = tribute_mission_decision_option_herd + icon = "gfx/interface/icons/icon_herd.dds" + ai_chance = { + value = 20 + if = { + limit = { + domicile ?= { herd >= excessive_herd_tribute_value } + } + add = 20 + } + if = { + limit = { + domicile ?= { herd >= adequate_herd_tribute_value } + } + add = 20 + } + } + } + + item = { # Artifact + value = tribute_mission_artifact + is_valid = { has_artifact_tribute_trigger = yes } + localization = tribute_mission_decision_option_artifact + icon = "gfx/interface/icons/message_feed/artifact.dds" + ai_chance = { value = 20 } + } + + item = { # Concubine + value = tribute_mission_concubine + is_valid = { + has_concubine_tribute_trigger = yes + title:h_roman_empire.holder = { is_adult = yes } + can_have_concubines_trigger = { CHAR = title:h_roman_empire.holder } + } + localization = tribute_mission_decision_option_concubine + icon = "gfx/interface/icons/concubine_icon.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + + item = { # Eunuch + value = tribute_mission_eunuch + is_valid = { + has_eunuch_tribute_trigger = yes + can_employ_court_eunuchs_trigger = { CHAR = title:h_roman_empire.holder } + } + localization = tribute_mission_decision_option_eunuch + icon = "gfx/interface/icons/character_interactions/eunuch.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + } + + effect = { + custom_tooltip = tribute_mission_decision_effects_roman_empire_tt + tribute_mission_decision_effect = { TARGET = title:h_roman_empire.holder } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 72 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 0 + } + + ai_potential = { + exists = title:h_roman_empire.holder + tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_roman_empire.holder } + } + + ai_will_do = { + base = 20 + tribute_mission_decision_ai_will_do_modifiers = yes + + modifier = { + add = -25 + primary_title.tier = tier_kingdom + NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_roman_empire.holder } } + } + } +} + +tribute_mission_decision_eastern_roman_empire = { + picture = { + reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds" + } + decision_group_type = realm + + should_create_alert = { always = yes } + + desc = tribute_mission_decision_desc_eastern_roman_empire + + cooldown = { years = 5 } + + is_shown = { + title:h_eastern_roman_empire ?= { is_title_created = yes } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { is_at_war_with = title:h_eastern_roman_empire.holder } #Pretty obvious + OR = { + tribute_mission_decision_generic_trigger = yes + tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_eastern_roman_empire.holder } + tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_eastern_roman_empire.holder } + } + } + + widget = { + gui = "decision_view_widget_pay_tribute" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" + + item = { # Gold + value = tribute_mission_gold + is_valid = { has_gold_tribute_trigger = yes } + localization = tribute_mission_decision_option_gold + icon = "gfx/interface/icons/message_feed/money.dds" + ai_chance = { + value = 20 + if = { + limit = { short_term_gold >= excessive_gold_tribute_value } + add = 20 + } + if = { + limit = { short_term_gold >= adequate_gold_tribute_value } + add = 20 + } + } + } + item = { # Herd + value = tribute_mission_herd + is_valid = { has_herd_tribute_trigger = yes } + localization = tribute_mission_decision_option_herd + icon = "gfx/interface/icons/icon_herd.dds" + ai_chance = { + value = 20 + if = { + limit = { + domicile ?= { herd >= excessive_herd_tribute_value } + } + add = 20 + } + if = { + limit = { + domicile ?= { herd >= adequate_herd_tribute_value } + } + add = 20 + } + } + } + + item = { # Artifact + value = tribute_mission_artifact + is_valid = { has_artifact_tribute_trigger = yes } + localization = tribute_mission_decision_option_artifact + icon = "gfx/interface/icons/message_feed/artifact.dds" + ai_chance = { value = 20 } + } + + item = { # Concubine + value = tribute_mission_concubine + is_valid = { + has_concubine_tribute_trigger = yes + title:h_eastern_roman_empire.holder = { is_adult = yes } + can_have_concubines_trigger = { CHAR = title:h_eastern_roman_empire.holder } + } + localization = tribute_mission_decision_option_concubine + icon = "gfx/interface/icons/concubine_icon.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + + item = { # Eunuch + value = tribute_mission_eunuch + is_valid = { + has_eunuch_tribute_trigger = yes + can_employ_court_eunuchs_trigger = { CHAR = title:h_eastern_roman_empire.holder } + } + localization = tribute_mission_decision_option_eunuch + icon = "gfx/interface/icons/character_interactions/eunuch.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + } + + effect = { + custom_tooltip = tribute_mission_decision_effects_eastern_roman_empire_tt + tribute_mission_decision_effect = { TARGET = title:h_eastern_roman_empire.holder } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 72 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 0 + } + + ai_potential = { + exists = title:h_eastern_roman_empire.holder + tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_eastern_roman_empire.holder } + } + + ai_will_do = { + base = 20 + tribute_mission_decision_ai_will_do_modifiers = yes + + modifier = { + add = -25 + primary_title.tier = tier_kingdom + NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_eastern_roman_empire.holder } } + } + } +} + +tribute_mission_decision_dar_al_islam = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds" + } + decision_group_type = realm + + should_create_alert = { always = yes } + + desc = tribute_mission_decision_desc_dar_al_islam + + cooldown = { years = 5 } + + is_shown = { + title:h_dar_al_islam ?= { is_title_created = yes } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { is_at_war_with = title:h_dar_al_islam.holder } #Pretty obvious + OR = { + tribute_mission_decision_generic_trigger = yes + tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_dar_al_islam.holder } + tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_dar_al_islam.holder } + } + } + + widget = { + gui = "decision_view_widget_pay_tribute" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" + + item = { # Gold + value = tribute_mission_gold + is_valid = { has_gold_tribute_trigger = yes } + localization = tribute_mission_decision_option_gold + icon = "gfx/interface/icons/message_feed/money.dds" + ai_chance = { + value = 20 + if = { + limit = { short_term_gold >= excessive_gold_tribute_value } + add = 20 + } + if = { + limit = { short_term_gold >= adequate_gold_tribute_value } + add = 20 + } + } + } + item = { # Herd + value = tribute_mission_herd + is_valid = { has_herd_tribute_trigger = yes } + localization = tribute_mission_decision_option_herd + icon = "gfx/interface/icons/icon_herd.dds" + ai_chance = { + value = 20 + if = { + limit = { + domicile ?= { herd >= excessive_herd_tribute_value } + } + add = 20 + } + if = { + limit = { + domicile ?= { herd >= adequate_herd_tribute_value } + } + add = 20 + } + } + } + + item = { # Artifact + value = tribute_mission_artifact + is_valid = { has_artifact_tribute_trigger = yes } + localization = tribute_mission_decision_option_artifact + icon = "gfx/interface/icons/message_feed/artifact.dds" + ai_chance = { value = 20 } + } + + item = { # Concubine + value = tribute_mission_concubine + is_valid = { + has_concubine_tribute_trigger = yes + title:h_dar_al_islam.holder = { is_adult = yes } + can_have_concubines_trigger = { CHAR = title:h_dar_al_islam.holder } + } + localization = tribute_mission_decision_option_concubine + icon = "gfx/interface/icons/concubine_icon.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + + item = { # Eunuch + value = tribute_mission_eunuch + is_valid = { + has_eunuch_tribute_trigger = yes + can_employ_court_eunuchs_trigger = { CHAR = title:h_dar_al_islam.holder } + } + localization = tribute_mission_decision_option_eunuch + icon = "gfx/interface/icons/character_interactions/eunuch.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + } + + effect = { + custom_tooltip = tribute_mission_decision_effects_dar_al_islam_tt + tribute_mission_decision_effect = { TARGET = title:h_dar_al_islam.holder } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 72 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 0 + } + + ai_potential = { + exists = title:h_dar_al_islam.holder + tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_dar_al_islam.holder } + } + + ai_will_do = { + base = 20 + tribute_mission_decision_ai_will_do_modifiers = yes + + modifier = { + add = -25 + primary_title.tier = tier_kingdom + NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_dar_al_islam.holder } } + } + } +} + +tribute_mission_decision_india = { + picture = { + reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds" + } + decision_group_type = realm + + should_create_alert = { always = yes } + + desc = tribute_mission_decision_desc_india + + cooldown = { years = 5 } + + is_shown = { + title:h_india ?= { is_title_created = yes } + is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india } + } + + is_valid_showing_failures_only = { + is_available_adult = yes + NOT = { is_at_war_with = title:h_india.holder } #Pretty obvious + OR = { + tribute_mission_decision_generic_trigger = yes + tribute_mission_decision_concubine_trigger = { OVERLORD = title:h_india.holder } + tribute_mission_decision_eunuch_trigger = { OVERLORD = title:h_india.holder } + } + } + + widget = { + gui = "decision_view_widget_pay_tribute" + controller = decision_option_list_controller + decision_to_second_step_button = "CHOOSE_TRIBUTE_DECISION_NEXT_STEP_BUTTON" + + item = { # Gold + value = tribute_mission_gold + is_valid = { has_gold_tribute_trigger = yes } + localization = tribute_mission_decision_option_gold + icon = "gfx/interface/icons/message_feed/money.dds" + ai_chance = { + value = 20 + if = { + limit = { short_term_gold >= excessive_gold_tribute_value } + add = 20 + } + if = { + limit = { short_term_gold >= adequate_gold_tribute_value } + add = 20 + } + } + } + item = { # Herd + value = tribute_mission_herd + is_valid = { has_herd_tribute_trigger = yes } + localization = tribute_mission_decision_option_herd + icon = "gfx/interface/icons/icon_herd.dds" + ai_chance = { + value = 20 + if = { + limit = { + domicile ?= { herd >= excessive_herd_tribute_value } + } + add = 20 + } + if = { + limit = { + domicile ?= { herd >= adequate_herd_tribute_value } + } + add = 20 + } + } + } + + item = { # Artifact + value = tribute_mission_artifact + is_valid = { has_artifact_tribute_trigger = yes } + localization = tribute_mission_decision_option_artifact + icon = "gfx/interface/icons/message_feed/artifact.dds" + ai_chance = { value = 20 } + } + + item = { # Concubine + value = tribute_mission_concubine + is_valid = { + has_concubine_tribute_trigger = yes + title:h_india.holder = { is_adult = yes } + can_have_concubines_trigger = { CHAR = title:h_india.holder } + } + localization = tribute_mission_decision_option_concubine + icon = "gfx/interface/icons/concubine_icon.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + + item = { # Eunuch + value = tribute_mission_eunuch + is_valid = { + has_eunuch_tribute_trigger = yes + can_employ_court_eunuchs_trigger = { CHAR = title:h_india.holder } + } + localization = tribute_mission_decision_option_eunuch + icon = "gfx/interface/icons/character_interactions/eunuch.dds" + ai_chance = { value = 50 } #The AI can do it? Do it! + } + } + + effect = { + custom_tooltip = tribute_mission_decision_effects_india_tt + tribute_mission_decision_effect = { TARGET = title:h_india.holder } + } + + ai_check_interval_by_tier = { + barony = 0 + county = 72 + duchy = 36 + kingdom = 36 + empire = 36 + hegemony = 0 + } + + ai_potential = { + exists = title:h_india.holder + tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_india.holder } + } + + ai_will_do = { + base = 20 + tribute_mission_decision_ai_will_do_modifiers = yes + + modifier = { + add = -25 + primary_title.tier = tier_kingdom + NOT = { tribute_mission_decision_ai_religion_culture_limit_trigger = { TARGET = title:h_india.holder } } + } + } +} diff --git a/common/epidemics/00_epidemics.txt b/common/epidemics/00_epidemics.txt index eed7e315..19307e84 100644 --- a/common/epidemics/00_epidemics.txt +++ b/common/epidemics/00_epidemics.txt @@ -628,7 +628,7 @@ bubonic_plague = { } if = { limit = { - current_date >= 2835.1.1 + current_date >= 1346.1.1 has_game_rule = bd_occurrence_historical NOT = { has_global_variable = black_death_happened @@ -664,7 +664,7 @@ bubonic_plague = { limit = { has_game_rule = bd_occurrence_historical OR = { - current_date < 2835.1.1 + current_date < 1346.1.1 NOT = { geographical_region = world_central_asia } @@ -677,7 +677,26 @@ bubonic_plague = { } spread_chance = { value = spread_chance_epidemics_default_value - multiply = spread_chance_epidemics_mult_value + multiply = spread_chance_epidemics_mult_value + + #Exclusions for historical Milan and Poland, husariaaaa + if = { + limit = { + has_game_rule = bd_occurrence_historical + OR = { + geographical_region = ghw_region_poland + geographical_region = custom_polabia + geographical_region = world_tibet + county.duchy = title:d_lombardia + county.duchy = title:d_aragon + county.duchy = title:d_armagnac + county.duchy = title:d_bohemia + county.duchy = title:d_krusnohori + county.duchy = title:d_severovychodni_cechy + } + } + multiply = 0.02 + } } max_provinces = { 12000 13100 } @@ -2344,8 +2363,12 @@ ergotism = { #dancing plague - not contagious county = { OR = { religion = religion:catholic_religion - religion = religion:eastern_orthodox_religion - religion = religion:protestant_religion + faith = faith:orthodox + faith = faith:nestorian + faith = faith:coptic + faith = faith:armenian_apostolic + faith = faith:insular_celtic + } } } } diff --git a/common/landed_titles/iberia.txt b/common/landed_titles/iberia.txt index 5c7a2c7d..718b23f1 100644 --- a/common/landed_titles/iberia.txt +++ b/common/landed_titles/iberia.txt @@ -71,7 +71,7 @@ e_iberia = { ai_primary_priority = { if = { limit = { - culture = culture:NEOW_andalusian + culture = culture:andalusian } add = @correct_culture_primary_score } diff --git a/common/laws/00_succession_laws.txt b/common/laws/00_succession_laws.txt index 0243956a..5d0f8a8f 100644 --- a/common/laws/00_succession_laws.txt +++ b/common/laws/00_succession_laws.txt @@ -598,7 +598,7 @@ } should_start_with = { has_ep3_dlc_trigger = yes -# has_title = title:e_byzantium + has_title = title:e_byzantium government_allows = administrative } succession = { diff --git a/common/laws/01_title_succession_laws.txt b/common/laws/01_title_succession_laws.txt index 01026bb9..173d77a3 100644 --- a/common/laws/01_title_succession_laws.txt +++ b/common/laws/01_title_succession_laws.txt @@ -79,11 +79,7 @@ can_change_title_law_trigger = yes } can_title_have = { - tier >= tier_county - is_temporal_head_of_faith_trigger = no - NOT = { - is_nomad_title = yes - } + can_title_have_law_general_trigger = yes } succession = { order_of_succession = election diff --git a/common/on_action/death.txt b/common/on_action/death.txt index fc291b48..49f6f08a 100644 --- a/common/on_action/death.txt +++ b/common/on_action/death.txt @@ -819,154 +819,154 @@ on_death = { } } -# # Struggle Catalysts -# ## Generic unnatural deaths. -# if = { -# limit = { exists = scope:killer } -# if = { # FP2/Generic -# limit = { -# is_important_or_vip_struggle_character = yes -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_unnatural_death_important_character -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_unnatural_death_important_character -# character = root -# } -# } -# } -# if = { -# limit = { -# has_trait = fp3_struggle_supporter -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_unnatural_death_supporter -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_unnatural_death_supporter -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter } -# } -# } -# if = { -# limit = { -# has_trait = fp3_struggle_detractor -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_unnatural_death_detractor -# } -# } -# every_character_struggle = { -# involvement = involved -# activate_struggle_catalyst = { -# catalyst = catalyst_unnatural_death_detractor -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor } -# } -# } -# } -# ## Caliphal deaths. -# if = { -# limit = { has_title = title:d_sunni } -# ## Did they die violently? -# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific. -# if = { -# limit = { -# exists = scope:killer -# struggle:persian_struggle ?= { -# phase_has_catalyst = catalyst_caliph_died_violently -# NOT = { has_variable = significant_character_death_cooldown } -# } -# } -# struggle:persian_struggle = { -# activate_struggle_catalyst = { -# catalyst = catalyst_caliph_died_violently -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently } -# set_variable = { -# name = significant_character_death_cooldown -# value = yes -# years = catalyst_cooldown_between_significant_character_deaths_years_value -# } -# } -# } -# ## If not, give the natural version. -# ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific. -# else_if = { -# limit = { -# struggle:persian_struggle ?= { -# phase_has_catalyst = catalyst_caliph_died_naturally -# NOT = { has_variable = significant_character_death_cooldown } -# } -# } -# struggle:persian_struggle = { -# activate_struggle_catalyst = { -# catalyst = catalyst_caliph_died_naturally -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally } -# set_variable = { -# name = significant_character_death_cooldown -# value = yes -# years = catalyst_cooldown_between_significant_character_deaths_years_value -# } -# } -# } -# } -# # Other Struggle Stuff -# ## Caliphal deaths part 2: because people tend to remember stuff like that. -# if = { -# limit = { -# has_title = title:d_sunni -# # Check that scope:killer is in some way involved in the on-going disputes. -# scope:killer ?= { -# any_character_struggle = { this = struggle:persian_struggle } -# # Inter-familial murders within the caliphate don't count, that's just politics. -# exists = root.dynasty -# NOT = { dynasty ?= root.dynasty } -# } -# } -# # Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances. -# scope:killer = { -# # Are you a supporter? If so, invert. -# if = { -# limit = { has_trait = fp3_struggle_supporter } -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = persian_struggle.tt.supporter_killed_caliph -# left_icon = root -# hidden_effect = { remove_trait = fp3_struggle_supporter } -# add_trait_force_tooltip = fp3_struggle_detractor -# } -# } -# # Are you neutral? If so, become a detractor. -# else_if = { -# limit = { -# NOR = { -# has_trait = fp3_struggle_supporter -# has_trait = fp3_struggle_detractor -# } -# } -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = persian_struggle.tt.neutral_killed_caliph -# left_icon = root -# add_trait = fp3_struggle_detractor -# } -# } -# # Else you're a detractor? You're good, carry on as you are. -# } -# } + # Struggle Catalysts + ## Generic unnatural deaths. + if = { + limit = { exists = scope:killer } + if = { # FP2/Generic + limit = { + is_important_or_vip_struggle_character = yes + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_unnatural_death_important_character + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_unnatural_death_important_character + character = root + } + } + } + if = { + limit = { + has_trait = fp3_struggle_supporter + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_unnatural_death_supporter + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_unnatural_death_supporter + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_unnatural_death_supporter } + } + } + if = { + limit = { + has_trait = fp3_struggle_detractor + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_unnatural_death_detractor + } + } + every_character_struggle = { + involvement = involved + activate_struggle_catalyst = { + catalyst = catalyst_unnatural_death_detractor + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_unnatural_death_detractor } + } + } + } + ## Caliphal deaths. + if = { + limit = { has_title = title:d_sunni } + ## Did they die violently? + ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific. + if = { + limit = { + exists = scope:killer + struggle:persian_struggle ?= { + phase_has_catalyst = catalyst_caliph_died_violently + NOT = { has_variable = significant_character_death_cooldown } + } + } + struggle:persian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_caliph_died_violently + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_violently } + set_variable = { + name = significant_character_death_cooldown + value = yes + years = catalyst_cooldown_between_significant_character_deaths_years_value + } + } + } + ## If not, give the natural version. + ### Checked against the struggle directly: the caliph may, after all, be entirely unrelated & this catalyst is FP3-specific. + else_if = { + limit = { + struggle:persian_struggle ?= { + phase_has_catalyst = catalyst_caliph_died_naturally + NOT = { has_variable = significant_character_death_cooldown } + } + } + struggle:persian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_caliph_died_naturally + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_caliph_died_naturally } + set_variable = { + name = significant_character_death_cooldown + value = yes + years = catalyst_cooldown_between_significant_character_deaths_years_value + } + } + } + } + # Other Struggle Stuff + ## Caliphal deaths part 2: because people tend to remember stuff like that. + if = { + limit = { + has_title = title:d_sunni + # Check that scope:killer is in some way involved in the on-going disputes. + scope:killer ?= { + any_character_struggle = { this = struggle:persian_struggle } + # Inter-familial murders within the caliphate don't count, that's just politics. + exists = root.dynasty + NOT = { dynasty ?= root.dynasty } + } + } + # Cool, we've established you're involved enough to assign traits to and don't have extenuating circumstances. + scope:killer = { + # Are you a supporter? If so, invert. + if = { + limit = { has_trait = fp3_struggle_supporter } + send_interface_toast = { + type = event_toast_effect_neutral + title = persian_struggle.tt.supporter_killed_caliph + left_icon = root + hidden_effect = { remove_trait = fp3_struggle_supporter } + add_trait_force_tooltip = fp3_struggle_detractor + } + } + # Are you neutral? If so, become a detractor. + else_if = { + limit = { + NOR = { + has_trait = fp3_struggle_supporter + has_trait = fp3_struggle_detractor + } + } + send_interface_toast = { + type = event_toast_effect_neutral + title = persian_struggle.tt.neutral_killed_caliph + left_icon = root + add_trait = fp3_struggle_detractor + } + } + # Else you're a detractor? You're good, carry on as you are. + } + } every_close_family_member = { create_character_memory = { diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 905ead88..c8fbf2f0 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -57,9 +57,9 @@ on_game_start = { #any_county_province = { has_holding = no } holder.faith = scope:holy_order_faith #{ has_doctrine_parameter = holy_order_head_of_faith } } -# holder = { -# trigger_event = { id = N3OW_holy_order.0001 } -# } + holder = { + trigger_event = { id = N3OW_holy_order.0001 } + } } } } @@ -503,9 +503,9 @@ on_game_start = { #any_county_province = { has_holding = no } holder.faith = scope:holy_order_faith #{ has_doctrine_parameter = holy_order_head_of_faith } } -# holder = { -# trigger_event = { id = N3OW_holy_order.0001 } -# } + holder = { + trigger_event = { id = N3OW_holy_order.0001 } + } } } } @@ -1345,729 +1345,729 @@ on_game_start = { # } setup_tributaries_effect = yes # defined in 00_tributary_setup_effect.txt -# ### FERTILE LANDS ### -# # For deserts that are supposed to be very fertile -# title:c_taizz = { add_county_modifier = fertile_desert_mountains_modifier } -# title:c_mandab = { add_county_modifier = fertile_desert_mountains_modifier } -# title:c_zabid = { add_county_modifier = fertile_desert_mountains_modifier } -# title:c_sanaa = { add_county_modifier = fertile_desert_mountains_modifier } -# title:c_dathina = { add_county_modifier = fertile_desert_mountains_modifier } -# -# ### HENDEKAPOLIS ### -# title:c_ionia = { add_county_modifier = dodekapolis_modifier } -# title:c_chios = { add_county_modifier = dodekapolis_modifier } -# title:c_aeolis = { add_county_modifier = dodekapolis_modifier } -# title:c_lesbos = { add_county_modifier = dodekapolis_modifier } -# -# ### GREECE BACKWATER COUNTIES ### -# if = { -# limit = { has_ep3_dlc_trigger = yes } -# title:c_laconia = { add_county_modifier = backwater_county_modifier } -# title:c_messenia = { add_county_modifier = backwater_county_modifier } -# title:c_korinthos = { add_county_modifier = backwater_county_modifier } -# title:c_achaia = { add_county_modifier = backwater_county_modifier } -# title:c_cephalonia = { add_county_modifier = backwater_county_modifier } -# title:c_attica = { add_county_modifier = backwater_county_modifier } -# title:c_boeotia = { add_county_modifier = backwater_county_modifier } -# title:c_aetolia = { add_county_modifier = backwater_county_modifier } -# title:c_naxos = { add_county_modifier = backwater_county_modifier } -# title:c_euboea = { add_county_modifier = backwater_county_modifier } -# title:c_neopatras = { add_county_modifier = backwater_county_modifier } -# title:c_demetrias = { add_county_modifier = backwater_county_modifier } -# title:c_thessaliotis = { add_county_modifier = backwater_county_modifier } -# title:c_thessalia = { add_county_modifier = backwater_county_modifier } -# title:c_epeiros = { add_county_modifier = backwater_county_modifier } -# title:c_buthrotum = { add_county_modifier = backwater_county_modifier } -# title:c_veria = { add_county_modifier = backwater_county_modifier } -# title:c_metzovo = { add_county_modifier = backwater_county_modifier } -# title:c_chalkidike = { add_county_modifier = backwater_county_modifier } -# title:c_thessalonika = { add_county_modifier = backwater_county_modifier } -# title:c_serres = { add_county_modifier = backwater_county_modifier } -# title:c_mosynopolis = { add_county_modifier = backwater_county_modifier } -# title:c_ohrid = { add_county_modifier = backwater_county_modifier } -# title:c_antipatreia = { add_county_modifier = backwater_county_modifier } -# title:c_dyrrachion = { add_county_modifier = backwater_county_modifier } -# title:c_avlonas = { add_county_modifier = backwater_county_modifier } -# } -# -# ### Pandidakterion IN CONSTANTINOPLE ### -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# current_date >= 1046.1.1 -# } -# title:c_byzantion = { add_county_modifier = pandidakterion_university_modifier } -# } -# -# if = { -# limit = { -# has_dlc_feature = hybridize_culture -# NOT = { -# has_dlc_feature = khans_of_the_steppe -# } -# } -# culture:mongol = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:khitan = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:jurchen = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:cuman = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:bolghar = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:bashkir = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:karluk = { -# add_culture_tradition = tradition_malleable_invaders -# } -# culture:shatuo = { -# add_culture_tradition = tradition_malleable_invaders -# } -# } -# -# if = { -# limit = { -# NOT = { -# has_dlc_feature = khans_of_the_steppe -# } -# } -# culture:hunnic = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:saka = { add_culture_tradition = tradition_horse_lords } -# culture:alan = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:mongol = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:buryat = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:oirat = { add_culture_tradition = tradition_horse_lords } -# culture:naiman = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:kerait = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:khitan = { add_culture_tradition = tradition_horse_lords } -# culture:tuyuhun = { add_culture_tradition = tradition_horse_lords } -# culture:jurchen = { add_culture_tradition = tradition_horse_lords } -# culture:cuman = { add_culture_tradition = tradition_horse_lords } -# culture:khazar = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:bolghar = { add_culture_tradition = tradition_horse_lords } -# culture:bashkir = { add_culture_tradition = tradition_horse_lords } -# culture:avar = { add_culture_tradition = tradition_horse_lords } -# culture:karluk = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:kimek = { add_culture_tradition = tradition_horse_lords } -# culture:kipchak = { add_culture_tradition = tradition_horse_lords } -# culture:laktan = { add_culture_tradition = tradition_horse_lords } -# culture:kirghiz = { add_culture_tradition = tradition_horse_lords } -# culture:yughur = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } -# culture:uriankhai = { add_culture_tradition = tradition_horse_lords } -# culture:chuvash = { add_culture_tradition = tradition_horse_lords } -# culture:ongud = { add_culture_tradition = tradition_horse_lords } -# culture:turkmen = { add_culture_tradition = tradition_horse_lords } -# culture:mogyer = { add_culture_tradition = tradition_horse_lords } -# culture:pecheneg = { add_culture_tradition = tradition_horse_lords } -# culture:ongud = { add_culture_tradition = tradition_steppe_tolerance } -# culture:uyghur = { add_culture_tradition = tradition_steppe_tolerance } -# #culture:turkish = { add_culture_tradition = tradition_horse_lords } -# } + ### FERTILE LANDS ### + # For deserts that are supposed to be very fertile + title:c_taizz = { add_county_modifier = fertile_desert_mountains_modifier } + title:c_mandab = { add_county_modifier = fertile_desert_mountains_modifier } + title:c_zabid = { add_county_modifier = fertile_desert_mountains_modifier } + title:c_sanaa = { add_county_modifier = fertile_desert_mountains_modifier } + title:c_dathina = { add_county_modifier = fertile_desert_mountains_modifier } -# ### DEBUG GLOBAL VARIABLES ### -# # We set these here so that they present nicely and you can see when some variables register zero. -# -# # FP3 Struggle. -# if = { -# limit = { gather_debug_variables_for_persian_struggle_trigger = yes } -# # ENDING -# set_global_variable = { -# name = sp_end_date -# value = 0 -# } -# # There's also fp3_struggle_ending; we don't track that here because it has functional usage that depends on it existing or not, so it's not a debug variable. -# -# # PHASES -# set_global_variable = { -# name = sp_phase_unrest -# value = 0 -# } -# set_global_variable = { -# name = sp_phase_stabil -# value = 0 -# } -# -# # UNREST -# set_global_variable = { -# name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_major -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_medium -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_minor -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_minimal -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_becomes_rival_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_gain_claim_on_title_fp3 -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_usurp_title_fp3 -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_cadet_branch_created -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_supporter_forced_conversion -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_execute_supporter -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_imprison_supporter -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_unnatural_death_supporter -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_reveal_secret_supporter -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_turn_supporter_into_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_forming_alliance_between_detractor_uninvolved_rulers -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_detractor_win_unfair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_detractor_win_fair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_detractor_declare_unfair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_detractor_declare_fair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_unrest_catalyst_became_detractor_fp3 -# value = 0 -# } -# # STABILISATION -# set_global_variable = { -# name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_major -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_medium -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_minor -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_minimal -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_learned_new_language_important -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_vassalize_independent_ruler -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_invite_involved_as_honorary_guests_to_feast_hunt -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_supporter_win_unfair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_supporter_win_fair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_supporter_declare_unfair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_supporter_declare_fair_war_within_the_region -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_install_loyalist_cb -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_imprison_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_execute_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_unnatural_death_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_reveal_secret_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_detractor_forced_conversion -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_turn_detractor_into_supporter -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_gain_struggle_titles_from_interlopers_uninvolved -# value = 0 -# } -# set_global_variable = { -# name = sp_stabil_catalyst_became_supporter_fp3 -# value = 0 -# } -# # CONCESSION -# set_global_variable = { -# name = sp_concession_catalyst_missing_caliphate_or_arabian_empire -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_caliph_or_emperor_loses_revolt_war -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_caliph_or_emperor_accepts_faction_demands -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_caliph_died_violently -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_caliph_died_naturally -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_war_ends_in_white_peace_between_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_became_best_friend_soulmate_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_became_friend_lover_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_forming_alliance_between_supporter_detractor_rulers -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_abandon_hook_on_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_grants_pardon_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_release_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_ransom_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_grants_vassal_to_de_jure_liege_supporter_detractor -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_gift_supporter_detractor_ruler -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_interloper_uninvolved_gain_struggle_titles -# value = 0 -# } -# set_global_variable = { -# name = sp_concession_catalyst_raided_involved -# value = 0 -# } -# } -# -# # UNITY CONFIG -# ## 867. -# if = { -# limit = { game_start_date = 867.1.1 } -# # Twiddle some starting unities. -# ## The Abassids are in the middle of a self-killing frenzy, so we lower theirs substantially. -# house:house_abbasid ?= { -# add_unity_value = { -# value = -100 -# # This is from historical circumstances, so we just do use the house head. -# character = house_head -# desc = clan_unity_historical_circumstances.desc -# } -# } -# ## The Samanids are juuuuust about to get started on killing each other over who gets to lead Transoxiana. -# house:house_samanid ?= { -# add_unity_value = { -# value = -40 -# # This is from historical circumstances, so we just do use the house head. -# character = house_head -# desc = clan_unity_historical_circumstances.desc -# } -# } -# ## The Afrighids (both of them) are having fairly few arguments because only one of them can speak and it's very easy to manage relations with a baby. -# dynasty:1042112.dynast.house ?= { -# add_unity_value = { -# value = 50 -# # This is from historical circumstances, so we just do use the house head. -# character = house_head -# desc = clan_unity_historical_circumstances.desc -# } -# } -# ## The Tahirids are scattered but actually get along quite well and support each other politically (mostly). -# dynasty:811.dynast.house ?= { -# add_unity_value = { -# value = 100 -# # This is from historical circumstances, so we just do use the house head. -# character = house_head -# desc = clan_unity_historical_circumstances.desc -# } -# } -# ## The Umayyads are having something of a renaissance. -# dynasty:597.dynast.house ?= { -# add_unity_value = { -# value = 100 -# # This is from historical circumstances, so we just do use the house head. -# character = house_head -# desc = clan_unity_historical_circumstances.desc -# } -# } -# } -# # LEGITIMACY CONFIG -# ## 867. -# if = { -# limit = { game_start_date = 867.1.1 } -# ## Basileus Basileios was actually elected, so he's technically legitimate, but starts at level 2. With this he should be level 3. -# character:1700 = { -# add_legitimacy = major_legitimacy_gain -# } -# } -# -# # Cultural setup -# if = { -# limit = { -# game_start_date = 1178.10.1 -# } -# culture:norman = { -# set_name_list = name_list_late_norman -# } -# } -# -# ### EP3 BYZANTIUM IMPORTANT COUNTIES ### -# if = { -# limit = { has_ep3_dlc_trigger = yes } -# title:c_antiocheia = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_jerusalem = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_alexandria = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_abbadan = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_edessa = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_bari = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_siracusa = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_roma = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_ravenna = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_tunis = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_tangiers = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_murcia = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_lombardia = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_trier = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_cumberland = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_northumberland = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_chandax = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_tourraine = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = ep3_emperor_yearly.2000 -# } -# } -# title:c_byzantion = { -# set_important_location = { -# title = title:e_byzantium -# enter_realm_event = roman_restoration.1200 -# } -# set_important_location = { -# title = title:h_roman_empire -# enter_realm_event = roman_restoration.1200 -# } -# set_important_location = { -# title = title:h_eastern_roman_empire -# enter_realm_event = roman_restoration.1200 -# } -# } -# } + ### HENDEKAPOLIS ### + title:c_ionia = { add_county_modifier = dodekapolis_modifier } + title:c_chios = { add_county_modifier = dodekapolis_modifier } + title:c_aeolis = { add_county_modifier = dodekapolis_modifier } + title:c_lesbos = { add_county_modifier = dodekapolis_modifier } + + ### GREECE BACKWATER COUNTIES ### + if = { + limit = { has_ep3_dlc_trigger = yes } + title:c_laconia = { add_county_modifier = backwater_county_modifier } + title:c_messenia = { add_county_modifier = backwater_county_modifier } + title:c_korinthos = { add_county_modifier = backwater_county_modifier } + title:c_achaia = { add_county_modifier = backwater_county_modifier } + title:c_cephalonia = { add_county_modifier = backwater_county_modifier } + title:c_attica = { add_county_modifier = backwater_county_modifier } + title:c_boeotia = { add_county_modifier = backwater_county_modifier } + title:c_aetolia = { add_county_modifier = backwater_county_modifier } + title:c_naxos = { add_county_modifier = backwater_county_modifier } + title:c_euboea = { add_county_modifier = backwater_county_modifier } + title:c_neopatras = { add_county_modifier = backwater_county_modifier } + title:c_demetrias = { add_county_modifier = backwater_county_modifier } + title:c_thessaliotis = { add_county_modifier = backwater_county_modifier } + title:c_thessalia = { add_county_modifier = backwater_county_modifier } + title:c_epeiros = { add_county_modifier = backwater_county_modifier } + title:c_buthrotum = { add_county_modifier = backwater_county_modifier } + title:c_veria = { add_county_modifier = backwater_county_modifier } + title:c_metzovo = { add_county_modifier = backwater_county_modifier } + title:c_chalkidike = { add_county_modifier = backwater_county_modifier } + title:c_thessalonika = { add_county_modifier = backwater_county_modifier } + title:c_serres = { add_county_modifier = backwater_county_modifier } + title:c_mosynopolis = { add_county_modifier = backwater_county_modifier } + title:c_ohrid = { add_county_modifier = backwater_county_modifier } + title:c_antipatreia = { add_county_modifier = backwater_county_modifier } + title:c_dyrrachion = { add_county_modifier = backwater_county_modifier } + title:c_avlonas = { add_county_modifier = backwater_county_modifier } + } + + ### Pandidakterion IN CONSTANTINOPLE ### + if = { + limit = { + has_ep3_dlc_trigger = yes + current_date >= 1046.1.1 + } + title:c_byzantion = { add_county_modifier = pandidakterion_university_modifier } + } + + if = { + limit = { + has_dlc_feature = hybridize_culture + NOT = { + has_dlc_feature = khans_of_the_steppe + } + } + culture:mongol = { + add_culture_tradition = tradition_malleable_invaders + } + culture:khitan = { + add_culture_tradition = tradition_malleable_invaders + } + culture:jurchen = { + add_culture_tradition = tradition_malleable_invaders + } + culture:cuman = { + add_culture_tradition = tradition_malleable_invaders + } + culture:bolghar = { + add_culture_tradition = tradition_malleable_invaders + } + culture:bashkir = { + add_culture_tradition = tradition_malleable_invaders + } + culture:karluk = { + add_culture_tradition = tradition_malleable_invaders + } + culture:shatuo = { + add_culture_tradition = tradition_malleable_invaders + } + } + + if = { + limit = { + NOT = { + has_dlc_feature = khans_of_the_steppe + } + } + culture:hunnic = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:saka = { add_culture_tradition = tradition_horse_lords } + culture:alan = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:mongol = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:buryat = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:oirat = { add_culture_tradition = tradition_horse_lords } + culture:naiman = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:kerait = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:khitan = { add_culture_tradition = tradition_horse_lords } + culture:tuyuhun = { add_culture_tradition = tradition_horse_lords } + culture:jurchen = { add_culture_tradition = tradition_horse_lords } + culture:cuman = { add_culture_tradition = tradition_horse_lords } + culture:khazar = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:bolghar = { add_culture_tradition = tradition_horse_lords } + culture:bashkir = { add_culture_tradition = tradition_horse_lords } + culture:avar = { add_culture_tradition = tradition_horse_lords } + culture:karluk = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:kimek = { add_culture_tradition = tradition_horse_lords } + culture:kipchak = { add_culture_tradition = tradition_horse_lords } + culture:laktan = { add_culture_tradition = tradition_horse_lords } + culture:kirghiz = { add_culture_tradition = tradition_horse_lords } + culture:yughur = { add_culture_tradition = tradition_horse_lords add_culture_tradition = tradition_steppe_tolerance } + culture:uriankhai = { add_culture_tradition = tradition_horse_lords } + culture:chuvash = { add_culture_tradition = tradition_horse_lords } + culture:ongud = { add_culture_tradition = tradition_horse_lords } + culture:turkmen = { add_culture_tradition = tradition_horse_lords } + culture:mogyer = { add_culture_tradition = tradition_horse_lords } + culture:pecheneg = { add_culture_tradition = tradition_horse_lords } + culture:ongud = { add_culture_tradition = tradition_steppe_tolerance } + culture:uyghur = { add_culture_tradition = tradition_steppe_tolerance } + #culture:turkish = { add_culture_tradition = tradition_horse_lords } + } + + ### DEBUG GLOBAL VARIABLES ### + # We set these here so that they present nicely and you can see when some variables register zero. + + # FP3 Struggle. + if = { + limit = { gather_debug_variables_for_persian_struggle_trigger = yes } + # ENDING + set_global_variable = { + name = sp_end_date + value = 0 + } + # There's also fp3_struggle_ending; we don't track that here because it has functional usage that depends on it existing or not, so it's not a debug variable. + + # PHASES + set_global_variable = { + name = sp_phase_unrest + value = 0 + } + set_global_variable = { + name = sp_phase_stabil + value = 0 + } + + # UNREST + set_global_variable = { + name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_major + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_medium + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_minor + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_yearly_influential_house_is_antagonistic_minimal + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_becomes_rival_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_gain_claim_on_title_fp3 + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_usurp_title_fp3 + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_cadet_branch_created + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_supporter_forced_conversion + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_execute_supporter + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_imprison_supporter + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_unnatural_death_supporter + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_reveal_secret_supporter + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_turn_supporter_into_detractor + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_forming_alliance_between_detractor_uninvolved_rulers + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_detractor_win_unfair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_detractor_win_fair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_detractor_declare_unfair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_detractor_declare_fair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_unrest_catalyst_became_detractor_fp3 + value = 0 + } + # STABILISATION + set_global_variable = { + name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_major + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_medium + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_minor + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_yearly_influential_house_is_harmonious_minimal + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_learned_new_language_important + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_vassalize_independent_ruler + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_invite_involved_as_honorary_guests_to_feast_hunt + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_supporter_win_unfair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_supporter_win_fair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_supporter_declare_unfair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_supporter_declare_fair_war_within_the_region + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_install_loyalist_cb + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_imprison_detractor + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_execute_detractor + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_unnatural_death_detractor + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_reveal_secret_detractor + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_detractor_forced_conversion + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_turn_detractor_into_supporter + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_gain_struggle_titles_from_interlopers_uninvolved + value = 0 + } + set_global_variable = { + name = sp_stabil_catalyst_became_supporter_fp3 + value = 0 + } + # CONCESSION + set_global_variable = { + name = sp_concession_catalyst_missing_caliphate_or_arabian_empire + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_caliph_or_emperor_loses_revolt_war + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_caliph_or_emperor_accepts_faction_demands + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_caliph_died_violently + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_caliph_died_naturally + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_war_ends_in_white_peace_between_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_became_best_friend_soulmate_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_became_friend_lover_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_forming_alliance_between_supporter_detractor_rulers + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_abandon_hook_on_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_grants_pardon_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_release_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_ransom_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_grants_vassal_to_de_jure_liege_supporter_detractor + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_gift_supporter_detractor_ruler + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_interloper_uninvolved_gain_struggle_titles + value = 0 + } + set_global_variable = { + name = sp_concession_catalyst_raided_involved + value = 0 + } + } + + # UNITY CONFIG + ## 867. + if = { + limit = { game_start_date = 867.1.1 } + # Twiddle some starting unities. + ## The Abassids are in the middle of a self-killing frenzy, so we lower theirs substantially. + house:house_abbasid ?= { + add_unity_value = { + value = -100 + # This is from historical circumstances, so we just do use the house head. + character = house_head + desc = clan_unity_historical_circumstances.desc + } + } + ## The Samanids are juuuuust about to get started on killing each other over who gets to lead Transoxiana. + house:house_samanid ?= { + add_unity_value = { + value = -40 + # This is from historical circumstances, so we just do use the house head. + character = house_head + desc = clan_unity_historical_circumstances.desc + } + } + ## The Afrighids (both of them) are having fairly few arguments because only one of them can speak and it's very easy to manage relations with a baby. + dynasty:1042112.dynast.house ?= { + add_unity_value = { + value = 50 + # This is from historical circumstances, so we just do use the house head. + character = house_head + desc = clan_unity_historical_circumstances.desc + } + } + ## The Tahirids are scattered but actually get along quite well and support each other politically (mostly). + dynasty:811.dynast.house ?= { + add_unity_value = { + value = 100 + # This is from historical circumstances, so we just do use the house head. + character = house_head + desc = clan_unity_historical_circumstances.desc + } + } + ## The Umayyads are having something of a renaissance. + dynasty:597.dynast.house ?= { + add_unity_value = { + value = 100 + # This is from historical circumstances, so we just do use the house head. + character = house_head + desc = clan_unity_historical_circumstances.desc + } + } + } + # LEGITIMACY CONFIG + ## 867. + if = { + limit = { game_start_date = 867.1.1 } + ## Basileus Basileios was actually elected, so he's technically legitimate, but starts at level 2. With this he should be level 3. + character:1700 = { + add_legitimacy = major_legitimacy_gain + } + } + + # Cultural setup + if = { + limit = { + game_start_date = 1178.10.1 + } + culture:norman = { + set_name_list = name_list_late_norman + } + } + + ### EP3 BYZANTIUM IMPORTANT COUNTIES ### + if = { + limit = { has_ep3_dlc_trigger = yes } + title:c_antiocheia = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_jerusalem = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_alexandria = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_abbadan = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_edessa = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_bari = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_siracusa = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_roma = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_ravenna = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_tunis = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_tangiers = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_murcia = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_lombardia = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_trier = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_cumberland = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_northumberland = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_chandax = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_tourraine = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = ep3_emperor_yearly.2000 + } + } + title:c_byzantion = { + set_important_location = { + title = title:e_byzantium + enter_realm_event = roman_restoration.1200 + } + set_important_location = { + title = title:h_roman_empire + enter_realm_event = roman_restoration.1200 + } + set_important_location = { + title = title:h_eastern_roman_empire + enter_realm_event = roman_restoration.1200 + } + } + } # MPO Tribes of the North cultrad mechanic if = { @@ -2093,44 +2093,44 @@ on_game_start = { } # Byzantine name game rule -# title:e_byzantium = { -# if = { -# limit = { -# has_game_rule = eastern_rome_name_of_byzantium -# } -# set_title_name = e_eastern_roman_empire -# } -# else_if = { -# limit = { -# has_game_rule = roman_empire_name_of_byzantium -# } -# set_title_name = h_roman_empire -# } -# else_if = { -# limit = { -# has_game_rule = romania_name_of_byzantium -# } -# set_title_name = e_romania_empire -# } -# else_if = { -# limit = { -# has_game_rule = empire_of_the_greeks_name_of_byzantium -# } -# set_title_name = e_empire_of_the_greeks -# } -# else_if = { -# limit = { -# has_game_rule = rhomaion_name_of_byzantium -# } -# set_title_name = e_rhomaion -# } -# else_if = { -# limit = { -# has_game_rule = unholy_roman_empire_name_of_byzantium -# } -# set_title_name = e_unholy_roman_empire -# } -# } + title:e_byzantium = { + if = { + limit = { + has_game_rule = eastern_rome_name_of_byzantium + } + set_title_name = e_eastern_roman_empire + } + else_if = { + limit = { + has_game_rule = roman_empire_name_of_byzantium + } + set_title_name = h_roman_empire + } + else_if = { + limit = { + has_game_rule = romania_name_of_byzantium + } + set_title_name = e_romania_empire + } + else_if = { + limit = { + has_game_rule = empire_of_the_greeks_name_of_byzantium + } + set_title_name = e_empire_of_the_greeks + } + else_if = { + limit = { + has_game_rule = rhomaion_name_of_byzantium + } + set_title_name = e_rhomaion + } + else_if = { + limit = { + has_game_rule = unholy_roman_empire_name_of_byzantium + } + set_title_name = e_unholy_roman_empire + } + } # Remove Coronation Doctrine if you don't have the DLC if = { @@ -2380,7 +2380,7 @@ on_game_start_after_lobby = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony } add_title_law = saxon_elective_succession_law } @@ -2414,7 +2414,7 @@ on_game_start_after_lobby = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony } add_title_law = urban_elective_succession_law } @@ -4343,18 +4343,18 @@ on_game_start_after_lobby = { } ### GAME RULE: SITUATION TOGGLES -# struggle:iberian_struggle ?= { -# if = { -# limit = { has_game_rule = struggle_iberia_toggle_off } -# end_struggle = yes -# } -# } -# struggle:persian_struggle ?= { -# if = { -# limit = { has_game_rule = struggle_persia_toggle_off } -# end_struggle = yes -# } -# } + struggle:iberian_struggle ?= { + if = { + limit = { has_game_rule = struggle_iberia_toggle_off } + end_struggle = yes + } + } + struggle:persian_struggle ?= { + if = { + limit = { has_game_rule = struggle_persia_toggle_off } + end_struggle = yes + } + } situation:the_great_steppe ?= { if = { limit = { has_game_rule = situation_the_great_steppe_toggle_off } diff --git a/common/on_action/religion_on_actions.txt b/common/on_action/religion_on_actions.txt index 3f1da113..37c30892 100644 --- a/common/on_action/religion_on_actions.txt +++ b/common/on_action/religion_on_actions.txt @@ -449,29 +449,29 @@ on_character_faith_change = { } } } -# ## Struggle Effects -# ### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor. -# if = { -# limit = { -# # Gotta be in the appropriate struggle. -# any_character_struggle = { this = struggle:persian_struggle } -# # Filter out pre-existing detractors. -# NOT = { has_trait = fp3_struggle_detractor } -# # Now, check the new faith. -# exists = title:d_sunni.holder -# OR = { -# NOT = { exists = faith.religious_head } -# NOT = { faith.religious_head = title:d_sunni.holder } -# } -# } -# send_interface_toast = { -# type = event_toast_effect_neutral -# title = persian_struggle.tt.converted_away_from_sunni_orthodoxy -# left_icon = root -# hidden_effect = { remove_trait = fp3_struggle_supporter } -# add_trait_force_tooltip = fp3_struggle_detractor -# } -# } + ## Struggle Effects + ### persian_struggle: switching faith to anything that isn't an orthodox Sunni creed'll flip you to detractor. + if = { + limit = { + # Gotta be in the appropriate struggle. + any_character_struggle = { this = struggle:persian_struggle } + # Filter out pre-existing detractors. + NOT = { has_trait = fp3_struggle_detractor } + # Now, check the new faith. + exists = title:d_sunni.holder + OR = { + NOT = { exists = faith.religious_head } + NOT = { faith.religious_head = title:d_sunni.holder } + } + } + send_interface_toast = { + type = event_toast_effect_neutral + title = persian_struggle.tt.converted_away_from_sunni_orthodoxy + left_icon = root + hidden_effect = { remove_trait = fp3_struggle_supporter } + add_trait_force_tooltip = fp3_struggle_detractor + } + } # Local conversion if = { diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index 92f484bf..f88afc45 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -59,11 +59,11 @@ on_title_destroyed = { } } #Notify folks the latin empire has fallen -# else_if = { -# limit = { scope:landed_title = title:e_latin_empire } -# frankokratia_latin_emp_end_msg_effect = yes -# } -# #Create byz collapse variable that defines anarchy period + else_if = { + limit = { scope:landed_title = title:e_latin_empire } + frankokratia_latin_emp_end_msg_effect = yes + } + #Create byz collapse variable that defines anarchy period # else_if = { # limit = { # scope:landed_title = { @@ -86,27 +86,27 @@ on_title_destroyed = { # # Silk Road prosperity gets hit if Byzantium dies # tgp_silk_road_byzantium_destroyed_effect = yes # } -# else_if = { -# limit = { -# scope:landed_title = title:h_china -# } -# situation:dynastic_cycle ?= { -# if = { -# limit = { -# situation_top_has_catalyst = catalyst_hegemon_lost_mandate_of_heaven -# } -# trigger_situation_catalyst = { -# catalyst = catalyst_hegemon_lost_mandate_of_heaven -# character = root -# } -# } -# } -# # Because a change in liege isn't triggered when the title being destroyed -# tgp_fire_china_realm_name_event_for_vassals_effect = yes -# title:h_china = { -# reset_title_name = yes -# } -# } + else_if = { + limit = { + scope:landed_title = title:h_china + } + situation:dynastic_cycle ?= { + if = { + limit = { + situation_top_has_catalyst = catalyst_hegemon_lost_mandate_of_heaven + } + trigger_situation_catalyst = { + catalyst = catalyst_hegemon_lost_mandate_of_heaven + character = root + } + } + } + # Because a change in liege isn't triggered when the title being destroyed + tgp_fire_china_realm_name_event_for_vassals_effect = yes + title:h_china = { + reset_title_name = yes + } + } # else_if = { # Danelaw-England partition calc. # limit = { # # Partition must be active. @@ -212,7 +212,7 @@ on_title_gain = { } scope:title = { is_nomad_title = no - tier = tier_county + title_tier = county scope:title.title_province = { NOR = { has_holding_type = monotown_holding @@ -221,8 +221,20 @@ on_title_gain = { } } } - scope:title.title_province = { - set_holding_type = city_holding + scope:title = { + limit = { + is_nomad_title = no + title_tier = county + scope:title.title_province = { + NOR = { + has_holding_type = monotown_holding + has_holding_type = city_holding + } + } + } + scope:title.title_province = { + set_holding_type = city_holding + } } } if = { @@ -247,7 +259,7 @@ on_title_gain = { limit = { government_has_flag = government_is_prepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law @@ -256,7 +268,7 @@ on_title_gain = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = saxon_elective_succession_law @@ -285,7 +297,7 @@ on_title_gain = { limit = { government_has_flag = government_is_urepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law @@ -294,7 +306,7 @@ on_title_gain = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = urban_elective_succession_law @@ -687,79 +699,79 @@ on_title_gain = { } } } -# else_if = { -# limit = { -# OR = { -# scope:title = title:c_antiocheia -# scope:title = title:c_jerusalem -# scope:title = title:c_alexandria -# scope:title = title:c_roma -# } -# } -# if = { -# limit = { -# OR = { -# AND = { -# is_roman_emperor_trigger = yes -# faith = faith:orthodox -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# any_liege_or_above = { -# is_roman_emperor_trigger = yes -# faith = faith:orthodox -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# } -# } -# trigger_event = roman_restoration.0199 -# } -# ########### -# # Transfer the Samaritan HoF to the realm that holds Jerusalem -# ########### -# if = { -# limit = { -# scope:title = title:c_jerusalem -# title:d_samaritan.holder ?= { -# # Samaritan HoF is not independent -# # Samaritan liege is not Samaritan -# top_liege.faith != faith:samaritan -# top_liege != root -# } -# # root is at least a king, or their liege is, or their liege's liege is -# OR = { -# highest_held_title_tier >= tier_kingdom -# any_liege_or_above = { -# highest_held_title_tier >= tier_kingdom -# } -# } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# if = { -# limit = { -# highest_held_title_tier >= tier_kingdom -# } -# title:d_samaritan.holder = { -# change_liege = { -# liege = root -# change = scope:title_change -# } -# } -# } -# else = { -# title:d_samaritan.holder = { -# change_liege = { -# liege = root.top_liege -# change = scope:title_change -# } -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# } + else_if = { + limit = { + OR = { + scope:title = title:c_antiocheia + scope:title = title:c_jerusalem + scope:title = title:c_alexandria + scope:title = title:c_roma + } + } + if = { + limit = { + OR = { + AND = { + is_roman_emperor_trigger = yes + faith = faith:orthodox + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + any_liege_or_above = { + is_roman_emperor_trigger = yes + faith = faith:orthodox + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + } + } + trigger_event = roman_restoration.0199 + } + ########### + # Transfer the Samaritan HoF to the realm that holds Jerusalem + ########### + if = { + limit = { + scope:title = title:c_jerusalem + title:d_samaritan.holder ?= { + # Samaritan HoF is not independent + # Samaritan liege is not Samaritan + top_liege.faith != faith:samaritan + top_liege != root + } + # root is at least a king, or their liege is, or their liege's liege is + OR = { + highest_held_title_tier >= tier_kingdom + any_liege_or_above = { + highest_held_title_tier >= tier_kingdom + } + } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + if = { + limit = { + highest_held_title_tier >= tier_kingdom + } + title:d_samaritan.holder = { + change_liege = { + liege = root + change = scope:title_change + } + } + } + else = { + title:d_samaritan.holder = { + change_liege = { + liege = root.top_liege + change = scope:title_change + } + } + } + resolve_title_and_vassal_change = scope:title_change + } + } ########### # FP1 - New holder for a county with a stele. @@ -1119,16 +1131,16 @@ on_title_gain = { ##################### else = { # Newly formed Hegemon of China should spruce up their council -# if = { -# limit = { -# scope:title = title:h_china -# exists = root.dynasty -# exists = scope:previous_holder.house -# scope:previous_holder.house != root.house -# } -# save_scope_as = councillor_liege -# fill_the_ministry_effect = yes -# } + if = { + limit = { + scope:title = title:h_china + exists = root.dynasty + exists = scope:previous_holder.house + scope:previous_holder.house != root.house + } + save_scope_as = councillor_liege + fill_the_ministry_effect = yes + } # Ceremonial Liege invalidation if = { limit = { @@ -1721,68 +1733,68 @@ on_title_gain = { } } # West Francia becomes France when no longer controlled by a Karling -# else_if = { -# limit = { -# scope:title = { -# this = title:k_france -# } -# NOR = { -# dynasty = { this = dynasty:25061 } # Not held by a Karling -# any_liege_or_above = { -# dynasty = { this = dynasty:25061 } # And does not have a liege that is a Karling -# } -# has_global_variable = west_francia_renamed -# } -# } -# trigger_event = { -# id = title_event.0001 -# days = 1 -# } -# } -# # East Francia becomes Germany when no longer controlled by a Karling -# else_if = { -# limit = { -# scope:title = { -# this = title:k_east_francia -# } -# NOR = { -# dynasty = { this = dynasty:25061 } # Not held by a Karling -# any_liege_or_above = { -# dynasty = { this = dynasty:25061 } # And does not have a liege that is a Karling -# } -# has_global_variable = east_francia_renamed -# } -# } -# trigger_event = { -# id = title_event.0002 -# days = 1 -# } -# } -# # Hidden management event to determine if we need to axe Asturias &, if we do, what notification events to send out afterwards. -# else_if = { -# limit = { -# scope:title = title:k_castille -# title:k_asturias = { -# # Leon must be de jure part of Asturias, or else there's no reason to ever stop calling it Asturias. -# any_in_de_jure_hierarchy = { this = title:d_leon } -# } -# } -# trigger_event = { -# id = title_event.0011 -# days = 1 -# } -# } -# # FP2 El Cid Achievement -# else_if = { -# limit = { -# scope:title = title:k_valencia -# has_character_flag = fp2_el_cid_blood_relation_legacy -# } -# set_global_variable = { # DO. NOT. USE. add_achievement_global_variable_effect. IT BREAKS THE ACHIEVEMENT. -# name = fp2_el_cid_achievement_unlocked -# value = yes -# } -# } + else_if = { + limit = { + scope:title = { + this = title:k_france + } + NOR = { + dynasty = { this = dynasty:25061 } # Not held by a Karling + any_liege_or_above = { + dynasty = { this = dynasty:25061 } # And does not have a liege that is a Karling + } + has_global_variable = west_francia_renamed + } + } + trigger_event = { + id = title_event.0001 + days = 1 + } + } + # East Francia becomes Germany when no longer controlled by a Karling + else_if = { + limit = { + scope:title = { + this = title:k_east_francia + } + NOR = { + dynasty = { this = dynasty:25061 } # Not held by a Karling + any_liege_or_above = { + dynasty = { this = dynasty:25061 } # And does not have a liege that is a Karling + } + has_global_variable = east_francia_renamed + } + } + trigger_event = { + id = title_event.0002 + days = 1 + } + } + # Hidden management event to determine if we need to axe Asturias &, if we do, what notification events to send out afterwards. + else_if = { + limit = { + scope:title = title:k_castille + title:k_asturias = { + # Leon must be de jure part of Asturias, or else there's no reason to ever stop calling it Asturias. + any_in_de_jure_hierarchy = { this = title:d_leon } + } + } + trigger_event = { + id = title_event.0011 + days = 1 + } + } + # FP2 El Cid Achievement + else_if = { + limit = { + scope:title = title:k_valencia + has_character_flag = fp2_el_cid_blood_relation_legacy + } + set_global_variable = { # DO. NOT. USE. add_achievement_global_variable_effect. IT BREAKS THE ACHIEVEMENT. + name = fp2_el_cid_achievement_unlocked + value = yes + } + } # TGP CEREMONIAL RULER # IMPERIAL INHERITANCE else_if = { @@ -1803,183 +1815,183 @@ on_title_gain = { days = 1 } } -# # Norway stuff -# else_if = { -# limit = { -# # The title they've acquired is Norway. -# scope:title = title:k_norway -# } -# # Tanglehair becomes Fairhair. -# if = { -# limit = { -# # This character is Harald Fairhair. -# exists = character:144000 -# this = character:144000 -# # Norway has been created by them. -# scope:transfer_type = flag:created -# # Norway has not been created previously. -# NOT = { exists = global_var:norway_created } -# } -# trigger_event = { -# id = fp1_major_decisions.1011 -# days = 1 -# } -# } -# # Check Norway's creation status. -# if = { -# limit = { -# scope:transfer_type = flag:created -# NOT = { exists = global_var:norway_created } -# } -# trigger_event = { -# id = fp1_major_decisions.1012 -# days = 1 -# } -# } -# } -# # English Partition Result - Gained Both -# else_if = { -# limit = { -# # Partition must be active. -# exists = global_var:partition_active_danelaw -# # The gained title must be one of the two partitioned entities. -# OR = { -# scope:title = title:k_england -# scope:title = title:k_danelaw -# } -# # And you must now hold both titles. -# this = title:k_england.holder -# this = title:k_danelaw.holder -# } -# trigger_event = { -# id = british_isles.1032 -# days = 1 -# } -# } -# # Lil Johnny Lackland changes his nickname. -# if = { -# limit = { -# has_nickname = nick_lackland_young -# } -# give_nickname = nick_lackland_ironic -# } + # Norway stuff + else_if = { + limit = { + # The title they've acquired is Norway. + scope:title = title:k_norway + } + # Tanglehair becomes Fairhair. + if = { + limit = { + # This character is Harald Fairhair. + exists = character:144000 + this = character:144000 + # Norway has been created by them. + scope:transfer_type = flag:created + # Norway has not been created previously. + NOT = { exists = global_var:norway_created } + } + trigger_event = { + id = fp1_major_decisions.1011 + days = 1 + } + } + # Check Norway's creation status. + if = { + limit = { + scope:transfer_type = flag:created + NOT = { exists = global_var:norway_created } + } + trigger_event = { + id = fp1_major_decisions.1012 + days = 1 + } + } + } + # English Partition Result - Gained Both + else_if = { + limit = { + # Partition must be active. + exists = global_var:partition_active_danelaw + # The gained title must be one of the two partitioned entities. + OR = { + scope:title = title:k_england + scope:title = title:k_danelaw + } + # And you must now hold both titles. + this = title:k_england.holder + this = title:k_danelaw.holder + } + trigger_event = { + id = british_isles.1032 + days = 1 + } + } + # Lil Johnny Lackland changes his nickname. + if = { + limit = { + has_nickname = nick_lackland_young + } + give_nickname = nick_lackland_ironic + } } ############# # STRUGGLES # ############# -# if = { -# limit = { -# exists = struggle:persian_struggle -# } -# #Struggle Catalysts -# if = { -# limit = { -# scope:title.empire ?= title:e_persia -# scope:title = { -# tier >= tier_county -# is_landless_type_title = no -# } -# NOR = { -# scope:transfer_type = flag:created -# scope:transfer_type = flag:inheritance -# } -# } -# if = { -# limit = { -# fp3_character_uninvolved_in_struggle_trigger = yes -# scope:previous_holder ?= { -# fp3_character_involved_in_struggle_trigger = yes -# any_character_struggle = { -# phase_has_catalyst = catalyst_interloper_uninvolved_gain_struggle_titles -# } -# } -# } -# scope:previous_holder ?= { -# every_character_struggle = { -# limit = { phase_has_catalyst = catalyst_interloper_uninvolved_gain_struggle_titles } -# activate_struggle_catalyst = { -# catalyst = catalyst_interloper_uninvolved_gain_struggle_titles -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_interloper_uninvolved_gain_struggle_titles } -# } -# } -# } -# if = { -# limit = { -# fp3_character_involved_in_struggle_trigger = yes -# any_character_struggle = { -# phase_has_catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved -# # Stop catalyst from affecting those who are only just now uninvolved due to losing this title -# OR = { -# NOT = { is_culture_involved_in_struggle = scope:previous_holder.culture } -# NOT = { is_faith_involved_in_struggle = scope:previous_holder.faith } -# } -# } -# scope:previous_holder ?= { -# OR = { -# fp3_character_uninvolved_in_struggle_trigger = yes -# fp3_character_interloper_in_struggle_trigger = yes -# } -# } -# } -# every_character_struggle = { -# limit = { phase_has_catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved } -# activate_struggle_catalyst = { -# catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_gain_struggle_titles_from_interlopers_uninvolved } -# } -# } -# } -# # FP3 Struggle special cases -# if = { -# limit = { -# scope:title = { -# OR = { -# this = title:d_sunni -# this = title:e_arabia -# } -# } -# } -# ## Convert detractors to supporters if they inherit either of the titles they're detracting against. -# if = { -# limit = { -# NOT = { has_trait = fp3_struggle_supporter } -# } -# if = { -# limit = { has_trait = fp3_struggle_detractor } -# remove_trait = fp3_struggle_detractor -# } -# add_trait = fp3_struggle_supporter -# } -# # FP3 Title Transfer Notification -# struggle:persian_struggle = { # Wet script -# every_involved_ruler = { -# send_interface_toast = { -# type = event_toast_effect_bad -# title = persian_struggle_central_title_transfer.t -# left_icon = scope:previous_holder -# right_icon = scope:title.holder -# -# custom_tooltip = persian_struggle_central_title_transfer.desc -# } -# } -# every_interloper_ruler = { -# send_interface_toast = { -# type = event_toast_effect_bad -# title = persian_struggle_central_title_transfer.t -# left_icon = scope:previous_holder -# right_icon = scope:title.holder -# -# custom_tooltip = persian_struggle_central_title_transfer.desc -# } -# } -# } -# } -# } + if = { + limit = { + exists = struggle:persian_struggle + } + #Struggle Catalysts + if = { + limit = { + scope:title.empire ?= title:e_persia + scope:title = { + tier >= tier_county + is_landless_type_title = no + } + NOR = { + scope:transfer_type = flag:created + scope:transfer_type = flag:inheritance + } + } + if = { + limit = { + fp3_character_uninvolved_in_struggle_trigger = yes + scope:previous_holder ?= { + fp3_character_involved_in_struggle_trigger = yes + any_character_struggle = { + phase_has_catalyst = catalyst_interloper_uninvolved_gain_struggle_titles + } + } + } + scope:previous_holder ?= { + every_character_struggle = { + limit = { phase_has_catalyst = catalyst_interloper_uninvolved_gain_struggle_titles } + activate_struggle_catalyst = { + catalyst = catalyst_interloper_uninvolved_gain_struggle_titles + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_interloper_uninvolved_gain_struggle_titles } + } + } + } + if = { + limit = { + fp3_character_involved_in_struggle_trigger = yes + any_character_struggle = { + phase_has_catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved + # Stop catalyst from affecting those who are only just now uninvolved due to losing this title + OR = { + NOT = { is_culture_involved_in_struggle = scope:previous_holder.culture } + NOT = { is_faith_involved_in_struggle = scope:previous_holder.faith } + } + } + scope:previous_holder ?= { + OR = { + fp3_character_uninvolved_in_struggle_trigger = yes + fp3_character_interloper_in_struggle_trigger = yes + } + } + } + every_character_struggle = { + limit = { phase_has_catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved } + activate_struggle_catalyst = { + catalyst = catalyst_gain_struggle_titles_from_interlopers_uninvolved + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_gain_struggle_titles_from_interlopers_uninvolved } + } + } + } + # FP3 Struggle special cases + if = { + limit = { + scope:title = { + OR = { + this = title:d_sunni + this = title:e_arabia + } + } + } + ## Convert detractors to supporters if they inherit either of the titles they're detracting against. + if = { + limit = { + NOT = { has_trait = fp3_struggle_supporter } + } + if = { + limit = { has_trait = fp3_struggle_detractor } + remove_trait = fp3_struggle_detractor + } + add_trait = fp3_struggle_supporter + } + # FP3 Title Transfer Notification + struggle:persian_struggle = { # Wet script + every_involved_ruler = { + send_interface_toast = { + type = event_toast_effect_bad + title = persian_struggle_central_title_transfer.t + left_icon = scope:previous_holder + right_icon = scope:title.holder + + custom_tooltip = persian_struggle_central_title_transfer.desc + } + } + every_interloper_ruler = { + send_interface_toast = { + type = event_toast_effect_bad + title = persian_struggle_central_title_transfer.t + left_icon = scope:previous_holder + right_icon = scope:title.holder + + custom_tooltip = persian_struggle_central_title_transfer.desc + } + } + } + } + } ############### # GOVERNMENTS # @@ -2142,24 +2154,24 @@ on_title_gain = { } save_scope_as = emperor #Should trigger special event during fourth crusade! -# if = { -# limit = { -# scope:title = title:e_byzantium -# global_var:byz_claimant_champion ?= { -# any_owned_story = { -# type = frankokratia_story -# var:byz_claimant ?= root -# } -# } -# } -# every_vassal_or_below = { -# limit = { -# is_playable_character = yes -# } -# trigger_event = ep3_frankokratia_events.0110 -# } -# } if = { + limit = { + scope:title = title:e_byzantium + global_var:byz_claimant_champion ?= { + any_owned_story = { + type = frankokratia_story + var:byz_claimant ?= root + } + } + } + every_vassal_or_below = { + limit = { + is_playable_character = yes + } + trigger_event = ep3_frankokratia_events.0110 + } + } + else_if = { limit = { exists = house exists = scope:previous_holder @@ -2233,7 +2245,7 @@ on_title_gain = { top_liege = root.top_liege government_allows = administrative this != scope:title_gainer -# scope:title != title:k_chrysanthemum_throne + scope:title != title:k_chrysanthemum_throne } send_interface_message = { type = msg_admin_title_gained @@ -2822,8 +2834,14 @@ on_title_gain = { } } events = { + roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it) + roman_restoration.0199 #Restoring the Pentarchy. + delay = { days = 1 } realm_maintenance.2001 #Big notification about inheriting emperor tier title british_isles.1032 # Danelaw-England partition calc. + title_event.0001 # Rename West Francia to France + title_event.0002 # Rename East Francia to Germany + title_event.0011 # Asturias becomes Leon upon emergence of Castille # If we weren't already in a diarchy but should be, put us in one. diarchy.0011 ep3_emperor_yearly.2020 # EP3: The Patriarch refuses to crown you as new emperor because you have a criminal trait @@ -2881,184 +2899,7 @@ on_title_gain_inheritance = { } scope:title = { is_nomad_title = no - tier >= tier_county - scope:title.title_province = { - NOR = { - has_holding_type = monotown_holding - has_holding_type = city_holding - } - } - } - } - scope:title.title_province = { - set_holding_type = city_holding - } - } - if = { - limit = { - government_has_flag = government_is_prepublic - NOT = { - exists = domicile - } - } - save_scope_as = scoped_farmer - create_nomad_title = { - name = domicile_farmstead - holder = scope:scoped_farmer - government = peasantrepublic_government - save_scope_as = new_title - } - scope:new_title ?= { - add_title_law = noble_family_succession_law - } - } - if = { - limit = { - government_has_flag = government_is_prepublic - any_held_title = { - tier >= tier_county - is_nomad_title = no - NOT = { - has_title_law = saxon_elective_succession_law - } - } - } - every_held_title = { - limit = { - tier >= tier_county - is_nomad_title = no - } - add_title_law = saxon_elective_succession_law - } - } - if = { - limit = { - government_has_flag = government_is_urepublic - NOT = { - exists = domicile - } - } - save_scope_as = scoped_merchant - create_nomad_title = { - name = domicile_palace - holder = scope:scoped_merchant - government = urbanrepublic_government - save_scope_as = new_title - } - scope:new_title ?= { - add_title_law = noble_family_succession_law - } - } - if = { - limit = { - government_has_flag = government_is_urepublic - any_held_title = { - tier >= tier_county - is_nomad_title = no - NOT = { - has_title_law = urban_elective_succession_law - } - } - } - every_held_title = { - limit = { - tier >= tier_county - is_nomad_title = no - } - add_title_law = urban_elective_succession_law - } - } - if = { - limit = { - has_government = landless_minority_government - exists = liege - } - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - scope:root = { - becomes_independent = { change = scope:change } - } - 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 - } - } -} - -# A title is usurped by a character -# root = the new holder -# scope:title = the title that changes hands -# scope:previous_holder = previous holder. Shouldn't be dead -on_title_gain_usurpation = { - events = { - } - effect = { - - ################ N3OW Dynamic Titles ################## - - if = { - limit = { - has_title = title:e_france - faith = faith:carolingian - } - trigger_event = NEOW_dynamic_titles.0013 - } - - if = { - limit = { - has_title = title:e_france - faith = faith:romanticist - } - trigger_event = NEOW_dynamic_titles.0015 - } - - if = { - limit = { - has_title = title:e_france - NOR = { - faith = faith:carolingian - faith = faith:romanticist - } - } - trigger_event = NEOW_dynamic_titles.0014 - } - - ###################################################### - - if = { - limit = { - OR = { - government_has_flag = government_is_prepublic - government_has_flag = government_is_urepublic - } - scope:title = { - is_nomad_title = no - tier = tier_county + title_tier = county scope:title.title_province = { NOR = { has_holding_type = monotown_holding @@ -3070,7 +2911,7 @@ on_title_gain_usurpation = { scope:title = { limit = { is_nomad_title = no - tier = tier_county + title_tier = county scope:title.title_province = { NOR = { has_holding_type = monotown_holding @@ -3172,72 +3013,261 @@ on_title_gain_usurpation = { } resolve_title_and_vassal_change = scope:change } -# # Struggle Catalysts -# if = { -# limit = { # FP2 -# # We are only interested in the title within the Struggle Region -# scope:title.empire ?= title:e_spain -# # Only for usurpation -# scope:transfer_type = flag:usurped -# -# root = { -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_usurp_title_fp2 -# CHAR = root -# } -# } -# } -# } -# root = { -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_usurp_title_fp2 -# CHAR = root -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_usurp_title_fp2 -# character = root -# } -# } -# } -# } -# else_if = { -# limit = { # FP3 -# scope:title.empire ?= title:e_persia -# scope:transfer_type = flag:usurped -# -# root = { -# any_character_struggle = { -# involvement = involved -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_usurp_title_fp3 -# CHAR = root -# } -# } -# } -# } -# root = { -# every_character_struggle = { -# involvement = involved -# limit = { -# activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { -# CATALYST = catalyst_usurp_title_fp3 -# CHAR = root -# } -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_usurp_title_fp3 -# character = root -# } -# log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_usurp_title_fp3 } -# } -# } -# } + 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 + } + } +} + +# A title is usurped by a character +# root = the new holder +# scope:title = the title that changes hands +# scope:previous_holder = previous holder. Shouldn't be dead +on_title_gain_usurpation = { + events = { + } + effect = { + + ################ N3OW Dynamic Titles ################## + + if = { + limit = { + has_title = title:e_france + faith = faith:carolingian + } + trigger_event = NEOW_dynamic_titles.0013 + } + + if = { + limit = { + has_title = title:e_france + faith = faith:romanticist + } + trigger_event = NEOW_dynamic_titles.0015 + } + + if = { + limit = { + has_title = title:e_france + NOR = { + faith = faith:carolingian + faith = faith:romanticist + } + } + trigger_event = NEOW_dynamic_titles.0014 + } + + ###################################################### + + if = { + limit = { + OR = { + government_has_flag = government_is_prepublic + government_has_flag = government_is_urepublic + } + scope:title = { + is_nomad_title = no + title_tier = county + scope:title.title_province = { + NOR = { + has_holding_type = monotown_holding + has_holding_type = city_holding + } + } + } + } + scope:title = { + limit = { + is_nomad_title = no + title_tier = county + scope:title.title_province = { + NOR = { + has_holding_type = monotown_holding + has_holding_type = city_holding + } + } + } + scope:title.title_province = { + set_holding_type = city_holding + } + } + } + if = { + limit = { + government_has_flag = government_is_prepublic + NOT = { + exists = domicile + } + } + save_scope_as = scoped_farmer + create_nomad_title = { + name = domicile_farmstead + holder = scope:scoped_farmer + government = peasantrepublic_government + save_scope_as = new_title + } + scope:new_title ?= { + add_title_law = noble_family_succession_law + } + } + if = { + limit = { + government_has_flag = government_is_prepublic + any_held_title = { + title_tier > barony + is_nomad_title = no + NOT = { + has_title_law = saxon_elective_succession_law + } + } + } + every_held_title = { + limit = { + title_tier > barony + is_nomad_title = no + } + add_title_law = saxon_elective_succession_law + } + } + if = { + limit = { + government_has_flag = government_is_urepublic + NOT = { + exists = domicile + } + } + save_scope_as = scoped_merchant + create_nomad_title = { + name = domicile_palace + holder = scope:scoped_merchant + government = urbanrepublic_government + save_scope_as = new_title + } + scope:new_title ?= { + add_title_law = noble_family_succession_law + } + } + if = { + limit = { + government_has_flag = government_is_urepublic + any_held_title = { + title_tier > barony + is_nomad_title = no + NOT = { + has_title_law = urban_elective_succession_law + } + } + } + every_held_title = { + limit = { + title_tier > barony + is_nomad_title = no + } + add_title_law = urban_elective_succession_law + } + } + if = { + limit = { + government = landless_minority_government + exists = liege + } + create_title_and_vassal_change = { + type = independency + save_scope_as = change + add_claim_on_loss = no + } + scope:root = { + becomes_independent = { change = scope:change } + } + resolve_title_and_vassal_change = scope:change + } + # Struggle Catalysts + if = { + limit = { # FP2 + # We are only interested in the title within the Struggle Region + scope:title.empire ?= title:e_spain + # Only for usurpation + scope:transfer_type = flag:usurped + + root = { + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_usurp_title_fp2 + CHAR = root + } + } + } + } + root = { + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_usurp_title_fp2 + CHAR = root + } + } + activate_struggle_catalyst = { + catalyst = catalyst_usurp_title_fp2 + character = root + } + } + } + } + else_if = { + limit = { # FP3 + scope:title.empire ?= title:e_persia + scope:transfer_type = flag:usurped + + root = { + any_character_struggle = { + involvement = involved + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_usurp_title_fp3 + CHAR = root + } + } + } + } + root = { + every_character_struggle = { + involvement = involved + limit = { + activate_struggle_catalyst_secondary_character_involvement_involved_trigger = { + CATALYST = catalyst_usurp_title_fp3 + CHAR = root + } + } + activate_struggle_catalyst = { + catalyst = catalyst_usurp_title_fp3 + character = root + } + log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_usurp_title_fp3 } + } + } + } } } diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 8f6618c1..3aae3d70 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -777,7 +777,7 @@ yearly_playable_pulse = { limit = { government_has_flag = government_is_prepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law @@ -786,7 +786,7 @@ yearly_playable_pulse = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = saxon_elective_succession_law @@ -814,7 +814,7 @@ yearly_playable_pulse = { limit = { government_has_flag = government_is_urepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law @@ -823,7 +823,7 @@ yearly_playable_pulse = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = urban_elective_succession_law @@ -1236,7 +1236,7 @@ yearly_playable_pulse = { } else_if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { OR = { has_domicile_building_or_higher = village_rice_field_01 @@ -1254,7 +1254,7 @@ yearly_playable_pulse = { } if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = village_grazing_land_05 } @@ -1267,7 +1267,7 @@ yearly_playable_pulse = { } else_if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = village_grazing_land_03 } @@ -1280,7 +1280,7 @@ yearly_playable_pulse = { } else_if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = village_grazing_land_01 } @@ -1295,7 +1295,7 @@ yearly_playable_pulse = { } if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = communal_gardens_fruit_05 } @@ -1308,7 +1308,7 @@ yearly_playable_pulse = { } else_if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = communal_gardens_03 } @@ -1321,7 +1321,7 @@ yearly_playable_pulse = { } else_if = { limit = { - has_government = landless_minority_government + government = landless_minority_government domicile ?= { has_domicile_building_or_higher = communal_gardens_01 } @@ -1705,7 +1705,7 @@ yearly_playable_pulse = { } # Failsafe to ensure we don't get independent admin rulers of too low a rank (i.e. below king) # Failsafe to ensure we don't have a noble family holding land without other titles - Give any held land to liege - if = { + else_if = { limit = { # They are a Vassal is_independent_ruler = no @@ -2319,11 +2319,11 @@ three_year_playable_pulse = { events = { adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise) } -# random_events = { -# 800 = 0 -# 200 = global_culture.3011 -# 600 = global_culture.3012 -# } + random_events = { + 800 = 0 + 200 = global_culture.3011 + 600 = global_culture.3012 + } effect = { if = { # Nomadic herd starves if you're landless limit = { @@ -2771,7 +2771,7 @@ quarterly_playable_pulse = { limit = { government_has_flag = government_is_prepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = saxon_elective_succession_law @@ -2780,7 +2780,7 @@ quarterly_playable_pulse = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = saxon_elective_succession_law @@ -2808,7 +2808,7 @@ quarterly_playable_pulse = { limit = { government_has_flag = government_is_urepublic any_held_title = { - tier >= tier_county + title_tier > barony is_nomad_title = no NOT = { has_title_law = urban_elective_succession_law @@ -2817,7 +2817,7 @@ quarterly_playable_pulse = { } every_held_title = { limit = { - tier >= tier_county + title_tier > barony is_nomad_title = no } add_title_law = urban_elective_succession_law @@ -3392,7 +3392,7 @@ on_yearly_events = { 400 = yearly_persian.1101 # Shu'ubiyya, or Persian Nationalism (From the foreign side) # Varangian Guard -# 400 = varangian.0001 # A Courtier wants to join the Varangian Guard + 400 = varangian.0001 # A Courtier wants to join the Varangian Guard #Pet story cycles 20 = pet_animal.5001 # Rival has cat... @@ -3653,12 +3653,12 @@ on_yearly_events = { 180 = fp2_yearly.8004 # Translation School 180 = fp2_yearly.8005 # Under the Stone Pine 180 = fp2_yearly.8006 # Saqaliba Settlers -# 180 = fp2_struggle.1002 # Xenophilic Advancment -# 160 = fp2_struggle.1050 # Dreams of Destruction -# 150 = fp2_struggle.2000 # Disorderly Market -# 140 = fp2_struggle.2008 # Misdeeds of the Councillor -# 300 = fp2_struggle.2013 # The Secret to Freedom -# 130 = fp2_struggle.2015 # Letter on the Back + 180 = fp2_struggle.1002 # Xenophilic Advancment + 160 = fp2_struggle.1050 # Dreams of Destruction + 150 = fp2_struggle.2000 # Disorderly Market + 140 = fp2_struggle.2008 # Misdeeds of the Councillor + 300 = fp2_struggle.2013 # The Secret to Freedom + 130 = fp2_struggle.2015 # Letter on the Back 180 = fp2_yearly.2025 # Suffering from Success 150 = fp2_yearly.4001 # You fancy a little siesta 150 = fp2_yearly.4002 # A county is increasingly religiously intertwined diff --git a/common/religion/doctrine_types/20_doctrines.txt b/common/religion/doctrine_types/20_doctrines.txt index 70613bdb..888013fd 100644 --- a/common/religion/doctrine_types/20_doctrines.txt +++ b/common/religion/doctrine_types/20_doctrines.txt @@ -1646,8 +1646,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1675,8 +1675,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1704,8 +1704,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1732,7 +1732,10 @@ doctrine_polytheist = { doctrine_sevillian_dominion_4 = { is_shown = { - faith = faith:sevillian + OR = { + + religion = religion:sevillian + } } can_pick = { always = no @@ -1759,8 +1762,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1788,8 +1791,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1817,8 +1820,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1846,8 +1849,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1875,8 +1878,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + + religion = religion:sevillian } } can_pick = { @@ -1905,8 +1908,7 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic } } can_pick = { @@ -1963,8 +1965,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { @@ -1992,8 +1994,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { @@ -2021,8 +2023,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { @@ -2050,8 +2052,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { @@ -2079,8 +2081,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { @@ -2108,8 +2110,8 @@ doctrine_polytheist = { is_shown = { OR = { - faith = faith:roman_catholic - faith = faith:sevillian + religion = religion:roman_catholic + religion = religion:sevillian } } can_pick = { diff --git a/common/religion/doctrine_types/30_core_tenets.txt b/common/religion/doctrine_types/30_core_tenets.txt index 507c3a81..e2fd5254 100644 --- a/common/religion/doctrine_types/30_core_tenets.txt +++ b/common/religion/doctrine_types/30_core_tenets.txt @@ -4861,12 +4861,12 @@ } value = faith_tenet_cost_low } -# else_if = { -# limit = { #Reduction in cost for Celtic Christianity because of stone circle shenanigans -# this = faith:insular_celtic -# } -# value = faith_tenet_cost_mid -# } + else_if = { + limit = { #Reduction in cost for Celtic Christianity because of stone circle shenanigans + this = faith:insular_celtic + } + value = faith_tenet_cost_mid + } else = { value = faith_tenet_cost_high } diff --git a/common/religion/holy_site_types/00_holy_site_types.txt b/common/religion/holy_site_types/00_holy_site_types.txt index 01281150..341bb7eb 100644 --- a/common/religion/holy_site_types/00_holy_site_types.txt +++ b/common/religion/holy_site_types/00_holy_site_types.txt @@ -193,9 +193,7 @@ maastricht = { character_modifier = { diplomacy_per_piety_level = 1 } - parameters = { - jerusalem_conversion_bonus # +20% County Conversion - } + flag = jerusalem_conversion_bonus # +20% County Conversion } frankfurt = { @@ -347,7 +345,7 @@ southhampton = { cornwall = { county = c_cornwall - barony = b_tintagel + barony = b_tintgalel character_modifier = { defender_advantage = 5 @@ -668,15 +666,15 @@ kent = { } } -#segrada_familia = { -# county = c_barcelona -# is_active = no -# -# character_modifier = { -# name = holy_site_segrada_familia_effect_name -# monthly_piety_gain_mult = 0.1 -# } -#} +segrada_familia = { + county = c_barcelona + is_active = no + + character_modifier = { + name = holy_site_segrada_familia_effect_name + monthly_piety_gain_mult = 0.1 + } +} santo_toribio_de_liebana = { county = c_asturias_de_santillana @@ -1068,9 +1066,8 @@ farz = { kerala = { county = c_kerala #St. Thomas Christians. Gotta give this one a *big* bonus - conversion speed maybe?? - parameters = { - kerala_conversion_bonus # +20% County Conversion - } + flag = kerala_conversion_bonus # +50% County Conversion Speed +} # Insular Celtic ## The ecclesiastic capital of Ireland, and site of St. Patrick's primary church. @@ -1088,9 +1085,7 @@ iona = { county = c_inner_hebrides # +20% County Conversion Speed in the British Isles - parameters = { - iona_conversion_bonus # +20% County Conversion - } + flag = iona_conversion_bonus } ## Mountain where patrick fasted and banished the snakes, Pilgramage Site croagh_patrick = { @@ -1116,7 +1111,7 @@ lough_derg = { wistman_wood = { county = c_devon - barony = b_okehampton + barony = b_oakhampton character_modifier = { monthly_piety_gain_mult = 0.15 @@ -1184,9 +1179,7 @@ greenan ={ barony = b_raphoe # 50% County Conversion Resistance - parameters = { - visoki_conversion_resistance_bonus - } + flag = visoki_conversion_resistance_bonus } beaghmore ={ @@ -1214,9 +1207,7 @@ visoki = { county = c_rama # 50% County Conversion Resistance - parameters = { - visoki_conversion_resistance_bonus - } + flag = visoki_conversion_resistance_bonus } ## Seat of the Archbishop of Ragusa, the diocese under which the Bishopric of Bosnia fell, and whose political support allowed them to stay largely independent of Rome. @@ -1318,9 +1309,7 @@ medina = { cordoba = { county = c_cordoba - parameters = { - cordoba_conversion_bonus # +20% County Conversion - } + flag = cordoba_conversion_bonus # +20% county conversion speed } sinai = { diff --git a/common/religion/religion_types/NEOW_finnic.txt b/common/religion/religion_types/NEOW_finnic.txt index 90d91cb5..fe7193ed 100644 --- a/common/religion/religion_types/NEOW_finnic.txt +++ b/common/religion/religion_types/NEOW_finnic.txt @@ -269,7 +269,7 @@ finnic_religion = { #placeholder doctrine = doctrine_pilgrimage_local_rites doctrine = unreformed_faith_doctrine doctrine = doctrine_pluralism_pluralistic - doctrine = clerical_succession_temporal_appointment + doctrine_clerical_succession_temporal_appointment localization = { #HighGod HighGodName = kalevalaist_high_god_name @@ -473,7 +473,7 @@ finnic_religion = { #placeholder doctrine = doctrine_homosexuality_accepted doctrine = doctrine_pilgrimage_local_rites doctrine = doctrine_pluralism_fundamentalist - doctrine = clerical_succession_temporal_appointment + doctrine_clerical_succession_temporal_appointment doctrine = doctrine_clerical_function_recruitment doctrine = doctrine_witchcraft_shunned diff --git a/common/religion/religion_types/NEOW_hungaric.txt b/common/religion/religion_types/NEOW_hungaric.txt index 1ee6d4a9..12a2c0ca 100644 --- a/common/religion/religion_types/NEOW_hungaric.txt +++ b/common/religion/religion_types/NEOW_hungaric.txt @@ -26,7 +26,7 @@ hungaric_religion = { #placeholder doctrine = doctrine_adultery_women_shunned doctrine = doctrine_kinslaying_shunned doctrine = doctrine_deviancy_shunned - doctrine = doctrine_witchcraft_virtuous + doctrine = doctrine_witchcraft_virtuos #Clerical Functions | placeholder doctrine = doctrine_clerical_function_taxation diff --git a/common/religion/religion_types/NEOW_novelist.txt b/common/religion/religion_types/NEOW_novelist.txt index 48009a23..fade8b9a 100644 --- a/common/religion/religion_types/NEOW_novelist.txt +++ b/common/religion/religion_types/NEOW_novelist.txt @@ -132,6 +132,7 @@ holy_site = ker_ys holy_site = doggerland holy_site = rocamadour + holy_site = doggerland #Special Tolerance doctrine = special_doctrine_fantastical_kinship diff --git a/common/religion/religion_types/NEOW_slavic.txt b/common/religion/religion_types/NEOW_slavic.txt index 6a102b1f..4f41bf9b 100644 --- a/common/religion/religion_types/NEOW_slavic.txt +++ b/common/religion/religion_types/NEOW_slavic.txt @@ -28,7 +28,7 @@ slavic_religion = { #placeholder #Clerical Functions | placeholder doctrine = doctrine_clerical_function_recruitment - doctrine = doctrine_clerical_gender_either + doctrine = doctrine_clerical_gender_equal doctrine = doctrine_clerical_marriage_disallowed doctrine = doctrine_clerical_succession_spiritual_fixed_appointment diff --git a/common/scripted_character_templates/04_fp3_character_templates.txt b/common/scripted_character_templates/04_fp3_character_templates.txt index f71c65bb..a626e600 100644 --- a/common/scripted_character_templates/04_fp3_character_templates.txt +++ b/common/scripted_character_templates/04_fp3_character_templates.txt @@ -569,42 +569,42 @@ fp3_avicenna_template = { #This is Rhazes, the great Iranian polymath. He's scripted here so we can potentialy use him in many events, or move him to the history files if needed later. -#fp3_rhazes_template = { -# age = { 30 70 } #their rough age during the period of their flourishing -# name = "Abu_Bakr_al-Razi" #Rhazes -# gender = male -# faith = faith:ashari -# culture = culture:persian -# dynasty = none -# trait = intellect_good_2 #He was one of the Middle Ages' greatest geniuses -# trait = lifestyle_herbalist -# trait = lifestyle_physician -# trait = education_learning_4 -# trait = cynical -# trait = stubborn -# random_traits_list = { #his personality -# count = 1 -# compassionate = {} -# calm = {} -# } -# random_traits = no -# #Skills -# learning = { -# min_template_high_skill -# max_template_high_skill -# } -# martial = 3 -# prowess = 7 -# diplomacy = 9 -# intrigue = 7 -# stewardship = 4 -# after_creation = { -# add_trait_xp = { -# trait = lifestyle_physician -# value = 100 -# } -# } -#} +fp3_rhazes_template = { + age = { 30 70 } #their rough age during the period of their flourishing + name = "Abu_Bakr_al-Razi" #Rhazes + gender = male + faith = faith:ashari + culture = culture:persian + dynasty = none + trait = intellect_good_2 #He was one of the Middle Ages' greatest geniuses + trait = lifestyle_herbalist + trait = lifestyle_physician + trait = education_learning_4 + trait = cynical + trait = stubborn + random_traits_list = { #his personality + count = 1 + compassionate = {} + calm = {} + } + random_traits = no + #Skills + learning = { + min_template_high_skill + max_template_high_skill + } + martial = 3 + prowess = 7 + diplomacy = 9 + intrigue = 7 + stewardship = 4 + after_creation = { + add_trait_xp = { + trait = lifestyle_physician + value = 100 + } + } +} #This is Al-Akhwayni, a physician known for his treatment of mental disorders diff --git a/common/scripted_effects/00_decisions_effects.txt b/common/scripted_effects/00_decisions_effects.txt deleted file mode 100644 index e82ea84a..00000000 --- a/common/scripted_effects/00_decisions_effects.txt +++ /dev/null @@ -1,3788 +0,0 @@ -#reclaim_britannia_decision_effect = { -# every_sub_realm_county = { -# limit = { -# NOR = { -# culture = { has_cultural_pillar = heritage_goidelic } -# culture = { has_cultural_pillar = heritage_brythonic } -# } -# title_province = { geographical_region = world_europe_west_britannia } -# } -# custom = british_isles.0001.custom -# add_county_modifier = { -# modifier = reclaim_britannia_culture_modifier -# days = 3650 -# } -# } -# capital_county = { -# set_county_culture = root.culture -# } -# if = { -# limit = { -# culture = { has_cultural_pillar = heritage_goidelic } -# } -# give_nickname = nick_the_tuatha_de_danann -# } -# else = { -# give_nickname = nick_pendragon -# } -#} -# -#restore_the_danelaw_effect = { -# hidden_effect = { #Should shift all dejure of all Empires owned at the time. -# title:k_england = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_danelaw -# } -# } -# title:k_danelaw = { -# set_de_jure_liege_title = title:k_england.de_jure_liege -# } -# } -# give_nickname = nick_the_dane -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:k_danelaw = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# title:k_danelaw = { -# add_title_law = scandinavian_elective_succession_law -# } -# -# if = { -# limit = { -# NOT = { highest_held_title_tier = tier_empire } -# NOT = { has_primary_title = title:k_danelaw } -# } -# set_primary_title_to = title:k_danelaw -# } -# -# #Destroy england -# destroy_title = title:k_england -#} - -create_holy_order_effect = { - hidden_effect = { - if = { # set up currencies for the HO leader, has to be saved as scope:leader - limit = { - exists = scope:leader - } - scope:leader = { - add_gold = 100 #So that they have some money to lend out - add_piety_level = 2 - add_gold = holy_order_starting_gold - every_courtier = { - add_trait = order_member - } - } - - # send messages - send_interface_toast = { - type = holy_order_founded_message - desc = i_created_holy_order_message - left_icon = scope:leader - right_icon = scope:new_holy_order.title - } - } - # send messages to relevant characters that HO got created - save_scope_as = holy_order_creator - every_player = { - limit = { - faith = scope:holy_order_creator.faith - this != scope:holy_order_creator - } - send_interface_message = { - type = holy_order_founded_message - desc = someone_created_holy_order_message - left_icon = scope:holy_order_creator - right_icon = scope:new_holy_order.title - } - } - every_neighboring_top_liege_realm_owner = { - limit = { - faith != scope:holy_order_creator.faith - } - send_interface_message = { - type = enemy_holy_order_founded_message - desc = other_faith_neighbor_created_holy_order_message - left_icon = scope:holy_order_creator - right_icon = scope:new_holy_order.title - } - } - # get the achievements for creating a HO - add_achievement_flag_effect = { FLAG = achievement_non_nobis_domine_flag } - if = { - limit = { exists = global_var:started_give_a_dog_a_bone_achievement } - add_achievement_global_variable_effect = { - VARIABLE = holy_order_give_a_dog_a_bone_achievement - VALUE = yes - } - } - } - # gain opinion with your HoF, if you have one and it's not you - if = { - limit = { - exists = faith.religious_head - faith.religious_head != root - } - faith.religious_head = { - add_opinion = { - target = root - modifier = founded_holy_order_opinion - } - } - } - # get a nice modifier - if = { - limit = { - NOT = { has_character_modifier = founded_holy_order_modifier } - } - add_character_modifier = { - modifier = founded_holy_order_modifier - years = 5 - } - } - # and boost the fervor - faith = { - change_fervor = { - value = 10 - desc = fervor_gain_holy_order_founded - } - } -} - -#embrace_english_culture_effect = { -# # Scopes saves for localization -# root = { -# save_scope_as = embracer -# } -# -# # Prestige Bonus -# add_prestige = medium_prestige_gain -# -# #Convert your, and your whole family's, culture -# set_culture = culture:english -# if = { -# limit = { any_spouse = { is_playable_character = no } } -# every_spouse = { -# limit = { -# is_playable_character = no -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# } -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_close_family_member = { -# is_playable_character = no -# NOT = { is_spouse_of = root } -# } -# } -# every_close_family_member = { -# limit = { -# is_playable_character = no -# NOT = { is_spouse_of = root } -# } -# custom = all_unlanded_family_members -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_child = { -# NOT = { is_spouse_of = root } -# } -# } -# every_child = { -# limit = { -# NOT = { is_spouse_of = root } -# } -# custom = all_children_custom -# set_culture = culture:english -# } -# } -# -# #Convert appropriate vassals, and their family -# if = { -# limit = { -# any_vassal_or_below = { -# is_ai = yes -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# primary_title = { -# OR = { -# de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege.de_jure_liege = title:k_england -# } -# } -# } -# } -# every_vassal_or_below = { -# custom = embrace_english_culture_vassals_custom -# limit = { -# is_ai = yes -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# primary_title = { -# OR = { -# de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege.de_jure_liege = title:k_england -# } -# } -# } -# set_culture = culture:english -# hidden_effect = { -# if = { -# limit = { any_spouse = { is_playable_character = no } } -# every_spouse = { -# limit = { -# is_playable_character = no -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# } -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_close_family_member = { -# is_playable_character = no -# NOT = { is_spouse_of = prev } -# } -# } -# every_close_family_member = { -# limit = { -# is_playable_character = no -# NOT = { is_spouse_of = prev } -# } -# custom = all_unlanded_family_members -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_child = { -# NOT = { is_spouse_of = prev } -# } -# } -# every_child = { -# limit = { -# NOT = { is_spouse_of = prev } -# } -# custom = all_children_custom -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_vassal_or_below = { -# is_ai = yes -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# primary_title = { -# OR = { -# de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege.de_jure_liege = title:k_england -# } -# } -# } -# } -# every_vassal_or_below = { -# custom = embrace_english_culture_vassals_custom -# limit = { -# is_ai = yes -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# primary_title = { -# OR = { -# de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege = title:k_england -# de_jure_liege.de_jure_liege.de_jure_liege = title:k_england -# } -# } -# } -# set_culture = culture:english -# hidden_effect = { -# if = { -# limit = { any_spouse = { is_playable_character = no } } -# every_spouse = { -# limit = { -# is_playable_character = no -# OR = { -# culture = culture:norman -# culture = culture:french -# } -# } -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_close_family_member = { -# is_playable_character = no -# NOT = { is_spouse_of = prev } -# } -# } -# every_close_family_member = { -# limit = { -# is_playable_character = no -# NOT = { is_spouse_of = prev } -# } -# custom = all_unlanded_family_members -# set_culture = culture:english -# } -# } -# if = { -# limit = { -# any_child = { -# NOT = { is_spouse_of = prev } -# } -# } -# every_child = { -# limit = { -# NOT = { is_spouse_of = prev } -# } -# custom = all_children_custom -# set_culture = culture:english -# } -# } -# } -# } -# } -# } -# } -# } -# -# #Flip Counties -# every_county_in_region = { -# region = custom_england -# custom = embrace_english_culture_counties_custom -# limit = { -# target_is_de_facto_liege_or_above = root.primary_title -# } -# random = { -# chance = 40 -# set_county_culture = culture:english -# } -# } -# -# culture:english = { -# custom_tooltip = decision_embrace_english_culture_get_innovations -# hidden_effect = { -# reset_culture_creation_date = yes -# get_all_innovations_from = culture:norman -# get_all_innovations_from = culture:anglo_saxon -# } -# } -# -# remove_global_variable = harrying_of_the_north -# every_player = { -# limit = { -# capital_province = { -# geographical_region = world_europe_west_britannia -# } -# } -# trigger_event = ep3_story_cycle_harrying.0004 -# } -# global_var:harrying_of_the_north = { end_story = yes } -#} -# -#form_portugal_decision_effects = { -# #Create the title and set proper de jure -# hidden_effect = { -# title:d_porto = { -# save_scope_as = title_d_porto -# set_de_jure_liege_title = title:k_portugal -# } -# title:d_coimbra = { -# save_scope_as = title_d_coimbra -# set_de_jure_liege_title = title:k_portugal -# } -# title:d_beja = { -# save_scope_as = title_d_beja -# set_de_jure_liege_title = title:k_portugal -# } -# title:d_algarve = { -# save_scope_as = title_d_algarve -# set_de_jure_liege_title = title:k_portugal -# } -# title:k_portugal = { -# save_scope_as = title_k_portugal -# } -# } -# custom_tooltip = form_portugal_decision_effects_de_jure_tt -# -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_portugal = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# save_scope_as = title_k_portugal -# } -# resolve_title_and_vassal_change = scope:title_change -# -# if = { -# limit = { -# NOR = { -# primary_title = { this = title:k_portugal } -# highest_held_title_tier = tier_empire -# } -# } -# set_primary_title_to = title:k_portugal -# } -# -# hidden_effect = { -# if = { -# limit = { has_global_variable = fp2_struggle_compromise_ending } -# title:k_portugal = { fp2_struggle_compromise_create_new_empire_effect = yes } -# } -# } -# -# #Covert self & court to portuguese culture -# if = { -# limit = { NOT = { has_culture = culture:portuguese } } -# -# every_courtier = { -# limit = { has_same_culture_as = scope:portugal_former } -# add_to_list = convert_list -# } -# #transfer over innovations from previous culture. -# culture:portuguese = { -# hidden_effect = { reset_culture_creation_date = yes } -# get_all_innovations_from = scope:portugal_former.culture -# } -# set_culture = culture:portuguese -# -# every_in_list = { -# list = convert_list -# custom = portguese_convert_list #This says "every subject in the realm" even though vassals and their courts only covert later, through event -# set_culture = culture:portuguese -# } -# } -# -# # Convert Iberian counties to Portugese culture -# every_sub_realm_county = { -# limit = { -# tier = tier_county -# culture = { has_cultural_pillar = heritage_iberian } -# OR = { -# de_jure_liege = title:d_porto -# de_jure_liege = title:d_coimbra -# de_jure_liege = title:d_beja -# de_jure_liege = title:d_algarve -# } -# } -# custom = portugese_convert_iberian_counties -# set_county_culture = culture:portuguese -# } -# every_sub_realm_county = { -# limit = { -# tier = tier_county -# NOT = { culture = { has_cultural_pillar = heritage_iberian } } -# OR = { -# de_jure_liege = title:d_porto -# de_jure_liege = title:d_coimbra -# de_jure_liege = title:d_beja -# de_jure_liege = title:d_algarve -# } -# } -# custom = portugese_convert_non_iberian_counties -# random = { -# chance = 50 -# set_county_culture = culture:portuguese -# } -# } -# -# #Innovations -# culture:portuguese = { -# add_random_innovation = culture_group_military -# add_random_innovation = culture_group_civic -# } -# -# #Prestige -# add_prestige = massive_prestige_gain -#} -# -# -#declare_canarias_decision_effects = { -# #Create the title and set proper de jure -# title:d_canarias = { -# save_scope_as = d_canarias -# set_de_jure_liege_title = title:k_canarias -# } -# title:k_canarias = { -# save_scope_as = title_k_canarias -# } -# -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_canarias = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# save_scope_as = title_k_canarias -# } -# resolve_title_and_vassal_change = scope:title_change -# -# if = { -# limit = { -# NOR = { -# primary_title = { this = title:k_canarias } -# highest_held_title_tier = tier_empire -# } -# } -# set_primary_title_to = title:k_canarias -# } -# -# #Prestige -# add_prestige = massive_prestige_gain -#} -# -# -# -#unite_the_spanish_thrones_decision_effects = { -# #Prestige -# add_prestige = massive_prestige_gain -# -# #Laws -# if = { -# limit = { has_realm_law = crown_authority_0 } -# add_realm_law_skip_effects = crown_authority_2 -# } -# else_if = { -# limit = { -# OR = { -# has_realm_law = crown_authority_1 -# has_realm_law = crown_authority_2 -# } -# } -# add_realm_law_skip_effects = crown_authority_3 -# } -# -# # Coat of Arms -# if = { -# limit = { scope:spain_uniter.primary_title = title:k_castille } -# primary_title = { set_coa = k_castille_leon } -# } -# else_if = { -# limit = { scope:spain_uniter.primary_title = title:k_leon } -# primary_title = { set_coa = k_leon_castille } -# } -# -# #Handle other Kingdom titles -# title:k_castille = { add_to_list = spanish_kingdoms } -# title:k_leon = { add_to_list = spanish_kingdoms } -# title:k_spanish_galicia = { add_to_list = spanish_kingdoms } -# title:k_portugal = { add_to_list = spanish_kingdoms } -# title:k_aragon = { add_to_list = spanish_kingdoms } -# title:k_navarra = { add_to_list = spanish_kingdoms } -# title:k_andalusia = { add_to_list = spanish_kingdoms } -# title:k_badajoz = { add_to_list = spanish_kingdoms } -# title:k_valencia = { add_to_list = spanish_kingdoms } -# title:k_toledo = { add_to_list = spanish_kingdoms } -# -# custom_tooltip = unite_the_spanish_thrones_decision_titles_tt -# hidden_effect = { -# every_in_list = { -# list = spanish_kingdoms -# limit = { -# this != scope:spain_uniter.primary_title -# scope:spain_uniter = { completely_controls = prev } -# } -# -# #De jure shift all held spanish titles into your primary title -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = scope:spain_uniter.primary_title -# } -# -# #Destroys them all! -# scope:spain_uniter = { destroy_title = prev } -# } -# } -#} -# -#unite_africa_decision_effects = { -# #Prestige -# add_prestige = massive_prestige_gain -# -# #Religion bonuses -# if = { -# limit = { -# faith = { -# OR = { -# religion_tag = islam_religion -# religion_tag = west_african_roog_religion -# religion_tag = west_african_religion -# religion_tag = west_african_bori_religion -# this = faith:coptic -# -# } -# } -# } -# add_piety = massive_piety_gain -# faith = { -# change_fervor = { -# value = medium_fervor_gain -# desc = fervor_gain_united_africa -# } -# } -# -# if = { -# limit = { -# any_vassal_or_below = { -# faith != scope:africa_uniter.faith -# is_ai = yes -# capital_province ?= { geographical_region = world_africa } -# } -# } -# every_vassal_or_below = { -# custom = every_non_root_faith_vassal_africa -# limit = { -# faith != scope:africa_uniter.faith -# is_ai = yes -# capital_province ?= { geographical_region = world_africa } -# } -# random = { -# chance = 33 -# set_character_faith = scope:africa_uniter.faith -# } -# } -# } -# -# if = { -# limit = { -# any_realm_province = { -# faith != scope:africa_uniter.faith -# geographical_region = world_africa -# } -# } -# every_realm_province = { -# limit = { -# faith != scope:africa_uniter.faith -# geographical_region = world_africa -# } -# county = { add_to_list = every_realm_county } -# } -# -# every_in_list = { -# list = every_realm_county -# custom = every_non_root_faith_county_africa -# random = { -# chance = 33 -# custom_tooltip = every_non_africa_uniter_faith_convert -# hidden_effect = { set_county_faith = scope:africa_uniter.faith } -# } -# } -# } -# } -#} -# -#avenge_the_battle_of_tours_decision_effects = { -# -# give_nickname = nick_the_avenger -# add_character_modifier = { -# modifier = avenger_of_the_martyrs -# } -# -# add_prestige = massive_prestige_gain -# -# #Religious bonuses -# add_piety = massive_piety_gain -# faith = { -# change_fervor = { -# value = medium_fervor_gain -# desc = fervor_gain_avenged_battle_of_tours -# } -# } -# -# add_achievement_flag_effect = { FLAG = achievement_al_andalus_flag } -# -# if = { -# limit = { -# any_vassal_or_below = { -# faith != scope:avenger.faith -# is_ai = yes -# capital_province ?= { geographical_region = world_europe_west } -# } -# } -# every_vassal_or_below = { -# custom = every_non_root_faith_vassal_west_europe -# limit = { -# faith != scope:avenger.faith -# is_ai = yes -# capital_province ?= { geographical_region = world_europe_west } -# } -# random = { -# chance = 33 -# set_character_faith = scope:avenger.faith -# } -# } -# } -# -# if = { -# limit = { -# any_realm_province = { -# faith != scope:avenger.faith -# geographical_region = world_europe_west -# } -# } -# every_realm_province = { -# limit = { -# faith != scope:avenger.faith -# geographical_region = world_europe_west -# } -# county = { -# add_to_list = every_realm_county -# } -# } -# -# every_in_list = { -# list = every_realm_county -# custom = every_non_root_faith_county_west_europe -# random = { -# chance = 33 -# custom_tooltip = every_non_avenger_faith_convert -# hidden_effect = { set_county_faith = scope:avenger.faith } -# } -# } -# } -# -# #Christian penalty -# if = { -# limit = { exists = scope:frankish_christian_faith } -# scope:frankish_christian_faith = { -# change_fervor = { -# value = medium_fervor_loss -# desc = fervor_loss_avenged_battle_of_tours -# } -# } -# } -# -# # Rattach south of France to the e_hispania -# title:e_france = { -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# any_in_de_jure_hierarchy = { -# tier = tier_county -# title_province = { geographical_region = custom_south_francia } -# } -# } -# set_de_jure_liege_title = title:e_spain -# } -# } -#} -# -#unite_the_western_slavs_decision_effects = { -# #Prestige -# add_prestige = massive_prestige_gain -# -# #Innovations -# culture = { -# add_random_innovation = culture_group_military -# add_random_innovation = culture_group_civic -# } -# -# #Laws -# if = { -# limit = { has_realm_law = crown_authority_0 } -# add_realm_law_skip_effects = crown_authority_2 -# } -# else_if = { -# limit = { -# OR = { -# has_realm_law = crown_authority_1 -# has_realm_law = crown_authority_2 -# } -# } -# add_realm_law_skip_effects = crown_authority_3 -# } -# -# #Handle de jure drift & destructions of other kingdom titles -# title:k_poland = { add_to_list = west_slavic_kingdoms } -# title:k_pomerania = { add_to_list = west_slavic_kingdoms } -# title:k_bohemia = { add_to_list = west_slavic_kingdoms } -# title:k_sorbia = { add_to_list = west_slavic_kingdoms } -# title:k_moravia = { add_to_list = west_slavic_kingdoms } -# -# if = { -# limit = { highest_held_title_tier = tier_kingdom } -# custom_tooltip = unite_the_western_slavs_decision_titles_tt -# } -# custom_tooltip = unite_the_western_slavs_decision_titles_empire_tt -# # If Saxony has been created, shift everything back into Polabia -# if = { -# limit = { -# is_target_in_global_variable_list = { -# name = unavailable_unique_decisions -# target = flag:flag_formed_saxony -# } -# } -# title:k_saxony = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_sorbia -# } -# } -# } -# hidden_effect = { -# every_duchy = { -# limit = { -# title_capital_county.title_province ?= { -# geographical_region = custom_west_slavia -# } -# kingdom ?= { -# NOR = { -# this = title:k_poland -# this = title:k_pomerania -# this = title:k_bohemia -# this = title:k_moravia -# this = title:k_sorbia -# } -# } -# } -# set_de_jure_liege_title = title:k_sorbia -# } -# scope:western_slav_uniter = { -# #If king-tier, give them the West-Slavia title -# if = { -# limit = { highest_held_title_tier = tier_kingdom } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_west_slavia = { -# change_title_holder = { -# holder = scope:western_slav_uniter -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# # Drift kingdoms to empire -# every_in_list = { -# list = west_slavic_kingdoms -# set_de_jure_liege_title = scope:western_slav_uniter.primary_title -# } -# } -# } -#} -# -#unite_the_southern_slavs_decision_effects = { -# #Prestige -# add_prestige = massive_prestige_gain -# -# #Innovations -# culture = { -# add_random_innovation = culture_group_military -# add_random_innovation = culture_group_civic -# } -# -# #Handle de jure drift & destructions of other kingdom titles -# title:k_croatia = { add_to_list = south_slavic_kingdoms } -# title:k_serbia = { add_to_list = south_slavic_kingdoms } -# title:k_bulgaria = { add_to_list = south_slavic_kingdoms } -# title:k_dacia = { add_to_list = south_slavic_kingdoms } -# title:k_moldavia = { add_to_list = south_slavic_kingdoms } -# -# custom_tooltip = unite_the_southern_slavs_decision_titles_tt -# hidden_effect = { -# every_in_list = { -# list = south_slavic_kingdoms -# limit = { -# this != scope:southern_slav_uniter.primary_title -# scope:southern_slav_uniter = { completely_controls = prev } -# } -# -# #De jure shift all held west slavic titles into your primary title -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = scope:southern_slav_uniter.primary_title -# } -# -# #Destroys them all! -# scope:southern_slav_uniter = { destroy_title = prev } -# } -# } -#} -# -#unite_the_slavs_decision_effects = { -# #Prestige -# add_prestige = massive_prestige_gain -# -# #Innovations -# custom_tooltip = unite_the_slavs_decision_effects_innovations_tt -# hidden_effect = { -# #Add all Slavic cultures in the realm in a list -# every_vassal_or_below = { -# limit = { -# OR = { -# culture = { has_cultural_pillar = heritage_west_slavic } -# culture = { has_cultural_pillar = heritage_east_slavic } -# culture = { has_cultural_pillar = heritage_south_slavic } -# } -# save_temporary_scope_as = slavic_vassal -# NOT = { -# any_in_list = { -# list = slavic_cultures -# this = scope:slavic_vassal.culture -# } -# } -# } -# culture = { -# add_to_list = slavic_cultures -# } -# } -# #Add innovations from 3 random cultures -# every_in_list = { -# list = slavic_cultures -# save_scope_as = culture_getting_innovations -# -# set_while_counter_variable_effect = yes -# while = { -# limit = { var:while_counter < 3 } -# random_in_list = { -# limit = { scope:culture_getting_innovations = { can_get_innovation_from = prev } } -# list = slavic_cultures -# scope:culture_getting_innovations = { get_random_innovation_from = prev } -# } -# increase_while_counter_variable_effect = yes -# } -# remove_while_counter_variable_effect = yes -# } -# } -# -# #Create the title and make it primary -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_slavia = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# set_primary_title_to = title:e_slavia -# title:e_slavia = { save_scope_as = slavia } #For localisation -# -# #Destroy the other three empires if I have them -# if = { -# limit = { has_title = title:e_russia } -# destroy_title = title:e_russia -# } -# if = { -# limit = { has_title = title:e_wendish_empire } -# destroy_title = title:e_wendish_empire -# } -# if = { -# limit = { has_title = title:e_carpathia } -# destroy_title = title:e_carpathia -# } -# -# ###Handle de jure drift and empire destruction### -# -# #First: add all the kingdoms -# title:k_poland = { add_to_list = slavic_kingdoms } -# title:k_pomerania = { add_to_list = slavic_kingdoms } -# title:k_bohemia = { add_to_list = slavic_kingdoms } -# title:k_moravia = { add_to_list = slavic_kingdoms } -# title:k_croatia = { add_to_list = slavic_kingdoms } -# title:k_serbia = { add_to_list = slavic_kingdoms } -# title:k_bulgaria = { add_to_list = slavic_kingdoms } -# title:k_dacia = { add_to_list = slavic_kingdoms } -# title:k_moldavia = { add_to_list = slavic_kingdoms } -# title:k_white_rus = { add_to_list = slavic_kingdoms } -# title:k_galicia-volhynia = { add_to_list = slavic_kingdoms } -# title:k_ruthenia = { add_to_list = slavic_kingdoms } -# title:k_novgorod = { add_to_list = slavic_kingdoms } -# title:k_opolye = { add_to_list = slavic_kingdoms } -# title:k_hungary = { add_to_list = slavic_kingdoms } -# title:k_bosnia = { add_to_list = slavic_kingdoms } -# -# # Inform players of the de jure drift -# title:e_slavia = { custom_tooltip = unite_the_slavs_decision_titles_tt } #Scope change for tooltip formatting. -# -# if = { -# limit = { has_dlc_feature = legends } -# create_legend_seed = { -# type = legitimizing -# quality = illustrious -# chronicle = new_title -# properties = { -# title = title:e_slavia -# founder = root -# } -# } -# } -# # Actually do the de jure drift -# hidden_effect = { -# every_in_list = { -# list = slavic_kingdoms -# -# set_de_jure_liege_title = scope:slav_uniter.primary_title -# } -# } -#} -# -#unite_india_decision_effect = { -# #Create the title and make it primary -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:h_india = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# set_primary_title_to = title:h_india -# -# title:e_rajastan = { set_de_jure_liege_title = title:h_india } -# title:e_deccan = { set_de_jure_liege_title = title:h_india } -# title:e_bengal = { set_de_jure_liege_title = title:h_india } -# -# hidden_effect = { -# if = { -# limit = { has_title = title:e_rajastan } -# destroy_title = title:e_rajastan -# } -# if = { -# limit = { has_title = title:e_deccan } -# destroy_title = title:e_deccan -# } -# if = { -# limit = { has_title = title:e_bengal } -# destroy_title = title:e_bengal -# } -# } -#} -# -#become_saoshyant_decision_effect = { -# set_nickname_effect = { NICKNAME = nick_the_saoshyant } -# add_trait = saoshyant -# custom_tooltip = become_saoshyant_decision_decendant_trait_tooltip -# dynasty = { -# add_dynasty_modifier = { -# modifier = resurging_saoshyant -# years = 25 -# } -# } -# if = { -# limit = { -# any_held_title = { -# title_tier = county -# faith != root.faith -# } -# } -# every_held_title = { -# custom = all_held_counties -# title_tier = county -# limit = { -# faith != root.faith -# } -# random = { -# chance = 35 -# set_county_faith = root.faith -# } -# } -# } -# faith = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_saoshyant -# } -# } -#} - -build_grand_church_decision_effect = { - #faith = { activate_holy_site = segrada_familia } - if = { - limit = { - prestige_level < 5 - } - add_prestige_level = 1 - } -} - -accept_cannibalism_decision_effect = { - custom_tooltip = faith_accept_cannibalism - root.faith = { - set_variable = { - name = accepted_cannibalism - value = yes - } - } - root = { - if = { - limit = { - any_spouse = { - is_cannibal_trigger = no - is_ai = yes - } - } - every_spouse = { - limit = { - is_cannibal_trigger = no - is_ai = yes - } - add_trait = cannibal - } - } - if = { - limit = { - any_close_family_member = { - is_cannibal_trigger = no - is_playable_character = no - is_ai = yes - } - } - every_close_family_member = { - limit = { - is_cannibal_trigger = no - is_playable_character = no - is_ai = yes - } - custom = all_my_family_members - add_trait = cannibal - } - } - if = { - limit = { - any_vassal = { - is_cannibal_trigger = no - is_ai = yes - dread_modified_ai_boldness = { #all vassals that are intimidated - dreaded_character = root - value <= -50 - } - } - } - every_vassal = { - limit = { - is_cannibal_trigger = no - is_ai = yes - dread_modified_ai_boldness = { - dreaded_character = root - value <= -50 - } - } - custom = all_my_intimidated_vassals - add_trait = cannibal - } - } - } - give_nickname = nick_the_devourer -} - -found_university_decision_event_effect = { - if = { - limit = { - OR = { - has_bad_nickname = yes - has_any_nickname = no - } - } - give_nickname = nick_the_scholar - } - - hidden_effect = { - #Event that gives you highly skilled courtier - trigger_event = { - id = major_decisions.2011 - days = { 50 365 } - } - } -} - -found_university_decision_effect = { - found_university_decision_event_effect = yes - - if = { - limit = { - NOT = { has_variable = university } - } - show_as_tooltip = { - every_held_title = { - custom = decision_found_university_custom - title_tier = barony - title_capital_county.title_province = { - add_special_building_slot = generic_university - } - } - } - } -} - -lunatic_building_decision_effect = { - capital_province = { - set_variable = { #To unlock the building - name = variable_greenhouse - value = yes - } - add_special_building_slot = special_greenhouse_01 - add_special_building = special_greenhouse_01 - #add_province_modifier = extra_building_slot - #add_building = special_greenhouse_01 - } - - give_nickname = nick_the_glass -} - -found_witch_coven_decision_effects = { - save_scope_as = founder - custom_tooltip = found_witch_coven_decision_effects.children.tt - custom_tooltip = found_witch_coven_decision_effects.convert.tt - custom_tooltip = found_witch_coven_decision_effects.grand_rite.tt - house = { - add_house_modifier = { - modifier = witch_coven - } - } - # Check for the Volva achievement. - if = { - limit = { - # DLC check. - has_fp1_dlc_trigger = yes - fp1_achievement_religious_norse_trigger = yes - } - add_achievement_flag_effect = { FLAG = volva_achievement_flag } - } -} - -convert_whole_realm_to_feudalism_effect = { - #TOOLTIP INFO - #PLAYER EFFECTS - - hidden_effect = { - ## Spawn holdings in tribal counties - - every_sub_realm_county = { # Spawn temples in your holy sites - limit = { - any_county_province = { - has_holding_type = tribal_holding - } - NOT = { - any_county_province = { - has_holding_type = church_holding - } - } - any_county_province = { - has_holding = no - barony = { - is_holy_site_of = root.faith - } - } - } - random_county_province = { - limit = { - has_holding = no - barony_cannot_construct_holding = no - barony = { - is_holy_site_of = root.faith - } - } - set_holding_type = church_holding - } - hidden_effect = { - if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier } - remove_county_modifier = mpo_siberian_permafrost_modifier - } - else_if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad } - remove_county_modifier = mpo_siberian_permafrost_modifier_bad - } - } - } - - every_sub_realm_county = { # Spawn a City - limit = { - any_county_province = { - has_holding_type = tribal_holding - } - any_county_province = { - has_holding = no - } - NOT = { - any_county_province = { - has_holding_type = city_holding - } - } - } - random_county_province = { - limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - is_coastal = yes - has_special_building_slot = no - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - has_special_building_slot = no - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - barony_cannot_construct_holding = no - } - random = { - chance = 60 - modifier = { - add = county.development_level - } - modifier = { - add = 50 - this.county = root.capital_county - } - modifier = { - add = 20 - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - } - set_holding_type = city_holding - } - } - hidden_effect = { - if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier } - remove_county_modifier = mpo_siberian_permafrost_modifier - } - else_if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad } - remove_county_modifier = mpo_siberian_permafrost_modifier_bad - } - } - } - - every_sub_realm_county = { # Spawn a Temple - limit = { - any_county_province = { - has_holding_type = tribal_holding - } - any_county_province = { - has_holding = no - } - NOT = { - any_county_province = { - has_holding_type = church_holding - } - } - } - random_county_province = { - limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - is_coastal = yes - has_special_building_slot = no - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - has_special_building_slot = no - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - barony_cannot_construct_holding = no - } - alternative_limit = { - has_holding = no - barony_cannot_construct_holding = no - } - random = { - chance = 50 - modifier = { - add = county.development_level - } - modifier = { - add = 50 - this.county = root.capital_county - } - modifier = { - add = 20 - OR = { - terrain = floodplains - terrain = oasis - terrain = farmlands - terrain = terraced_hills - } - } - set_holding_type = church_holding - } - } - hidden_effect = { - if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier } - remove_county_modifier = mpo_siberian_permafrost_modifier - } - else_if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad } - remove_county_modifier = mpo_siberian_permafrost_modifier_bad - } - } - } - - ##Sort out new buildings for liege and all vassals - every_realm_province = { - limit = { - has_holding_type = tribal_holding - NOT = { is_in_list = feudal_conversion } - } - add_to_list = feudal_conversion - } - every_vassal_or_below = { - every_realm_province = { - limit = { - has_holding_type = tribal_holding - NOT = { is_in_list = feudal_conversion } - } - add_to_list = feudal_conversion - } - } - every_in_list = { - list = feudal_conversion - set_variable = { - name = tribal_to_feudal_building_level - value = combined_building_level - days = 1 - } - set_holding_type = castle_holding - while = { - limit = { - var:tribal_to_feudal_building_level > 1 - } - generate_building = yes - change_variable = { - name = tribal_to_feudal_building_level - subtract = 1 - } - } - remove_variable = tribal_to_feudal_building_level - remove_from_list = feudal_conversion - hidden_effect = { - county = { - if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier } - remove_county_modifier = mpo_siberian_permafrost_modifier - } - else_if = { - limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad } - remove_county_modifier = mpo_siberian_permafrost_modifier_bad - } - } - } - } - } - - ##Liege has Soryo? Convert to Soryo! - if = { - limit = { - has_tgp_dlc_trigger = yes - top_liege != this - liege = { government_has_flag = government_is_japan_feudal } - } - change_government = japan_feudal_government - if = { - limit = { - is_house_head = yes - } - save_scope_as = new_head - house = { - set_house_name = japanese_dynasty_name - save_scope_as = new_house - } - create_noble_family_effect = { GOVERNMENT_GIVER = this } - scope:new_title = { - #set_title_name_dynamic = japanese_noble_family_name - set_coa = scope:new_house - } - } - } - ##Liege has clan? Convert to clan! - else_if = { - limit = { - top_liege != this - OR = { - liege = { government_has_flag = government_is_clan } - AND = { - liege = { government_has_flag = government_is_tribal } - religion = religion:islam_religion - } - } - } - change_government = clan_government - } - ##Liege has feudal? Convert to feudal! - else_if = { - limit = { - top_liege != this - OR = { - liege = { government_has_flag = government_is_feudal } - AND = { - liege = { government_has_flag = government_is_tribal } - NOT = { religion = religion:islam_religion } - } - } - } - change_government = feudal_government - } - ##You're an independent Japanese Heritage Character? Convert to Soryo! - else_if = { - limit = { - has_tgp_dlc_trigger = yes - top_liege = this - culture.culture_head ?= { government_is_japanese_trigger = yes } - } - add_character_flag = can_become_japanese_feudal # Used in the can_get_government of japan_feudal_government - change_government = japan_feudal_government - if = { - limit = { - is_house_head = yes - } - save_scope_as = new_head - house = { - set_house_name = japanese_dynasty_name - save_scope_as = new_house - } - create_noble_family_effect = { GOVERNMENT_GIVER = this } - scope:new_title = { - #set_title_name_dynamic = japanese_noble_family_name - set_coa = scope:new_house - } - } - } - ##You're an independent Muslim? Convert to clan! - else_if = { - limit = { - top_liege = this - faith = { religion_tag = islam_religion } - } - change_government = clan_government - } - ##You're an independent anything else? Convert to feudal! - else = { change_government = feudal_government } - if = { - limit = { - government_has_flag = government_is_tribal - } - ##General - custom_tooltip = all_holding_will_change - if = { - limit = { - any_sub_realm_county = { - OR = { - has_county_modifier = mpo_siberian_permafrost_modifier - has_county_modifier = mpo_siberian_permafrost_modifier_bad - } - } - } - custom_tooltip = all_permafrost_will_clear - } - ##Liege has clan? Convert to clan! - if = { - limit = { - top_liege != this - liege = { government_has_flag = government_is_clan } - } - custom_tooltip = clan_liege_vassals_will_convert - } - #Liege has feudal? Convert to feudal! - if = { - limit = { - top_liege != this - liege = { government_has_flag = government_is_feudal } - } - custom_tooltip = feudal_liege_vassals_will_convert - } - ##If I am Islamic, we will become clan. - if = { - limit = { - top_liege = this - faith = { religion_tag = islam_religion } - } - custom_tooltip = islamic_vassals_will_convert - } - ##If I am not Islamic, we will become feudal. - else_if = { - limit = { top_liege = this } - custom_tooltip = other_vassals_will_convert - } - } - - hidden_effect = { - #Nuke tribal authorities. - if = { - limit = { has_realm_law = tribal_authority_0 } - remove_realm_law = tribal_authority_0 - } - if = { - limit = { has_realm_law = tribal_authority_1 } - remove_realm_law = tribal_authority_1 - } - if = { - limit = { has_realm_law = tribal_authority_2 } - remove_realm_law = tribal_authority_2 - } - if = { - limit = { has_realm_law = tribal_authority_3 } - remove_realm_law = tribal_authority_3 - } - #Start off crown authorities. - if = { - limit = { - NOT = { has_realm_law = crown_authority_0 } - } - add_realm_law_skip_effects = crown_authority_0 - } - - #Also convert every vassal. - #Liege has taken soryo, so become soryo. - if = { - limit = { - government_has_flag = government_is_japan_feudal - } - every_vassal_or_below = { - limit = { government_has_flag = government_is_tribal } - add_character_flag = can_become_japanese_feudal # Used in the can_get_government of japan_feudal_government - change_government = japan_feudal_government - if = { - limit = { - is_house_head = yes - } - save_scope_as = new_head - house = { - set_house_name = japanese_dynasty_name - save_scope_as = new_house - } - if = { - limit = { - highest_held_title_tier >= tier_county - } - create_noble_family_effect = { GOVERNMENT_GIVER = this } - scope:new_title = { - #set_title_name_dynamic = japanese_noble_family_name - set_coa = scope:new_house - } - } - } - #Nuke tribal authorities. - if = { - limit = { has_realm_law = tribal_authority_0 } - remove_realm_law = tribal_authority_0 - } - if = { - limit = { has_realm_law = tribal_authority_1 } - remove_realm_law = tribal_authority_1 - } - if = { - limit = { has_realm_law = tribal_authority_2 } - remove_realm_law = tribal_authority_2 - } - if = { - limit = { has_realm_law = tribal_authority_3 } - remove_realm_law = tribal_authority_3 - } - if = { - limit = { - NOT = { has_realm_law = japanese_bureaucracy_0 } - } - add_realm_law_skip_effects = japanese_bureaucracy_0 - } - } - } - #Liege has taken clan, so become clan. - else_if = { - limit = { - government_has_flag = government_is_clan - } - every_vassal_or_below = { - limit = { government_has_flag = government_is_tribal } - change_government = clan_government - #Nuke tribal authorities. - if = { - limit = { has_realm_law = tribal_authority_0 } - remove_realm_law = tribal_authority_0 - } - if = { - limit = { has_realm_law = tribal_authority_1 } - remove_realm_law = tribal_authority_1 - } - if = { - limit = { has_realm_law = tribal_authority_2 } - remove_realm_law = tribal_authority_2 - } - if = { - limit = { has_realm_law = tribal_authority_3 } - remove_realm_law = tribal_authority_3 - } - if = { - limit = { - NOT = { has_realm_law = crown_authority_0 } - } - add_realm_law_skip_effects = crown_authority_0 - } - } - } - #Liege is not clan, become feudal. - else = { - every_vassal_or_below = { - limit = { government_has_flag = government_is_tribal } - change_government = feudal_government - #Nuke tribal authorities. - if = { - limit = { has_realm_law = tribal_authority_0 } - remove_realm_law = tribal_authority_0 - } - if = { - limit = { has_realm_law = tribal_authority_1 } - remove_realm_law = tribal_authority_1 - } - if = { - limit = { has_realm_law = tribal_authority_2 } - remove_realm_law = tribal_authority_2 - } - if = { - limit = { has_realm_law = tribal_authority_3 } - remove_realm_law = tribal_authority_3 - } - if = { - limit = { - NOT = { has_realm_law = crown_authority_0 } - } - add_realm_law_skip_effects = crown_authority_0 - } - } - } - } -} - -################################################## -# Add Special Succession Effects - -special_succession_witengamot_effect = { - if = { - limit = { highest_held_title_tier = tier_empire } - every_held_title = { - title_tier = empire - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = saxon_elective_succession_law - } - every_vassal = { - limit = { special_succession_witengamot_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_witengamot - } - } - else = { - every_held_title = { - title_tier = kingdom - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = saxon_elective_succession_law - } - every_vassal = { - limit = { special_succession_witengamot_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_witengamot - } - } -} - -special_succession_thing_effect = { - if = { - limit = { highest_held_title_tier = tier_empire } - every_held_title = { - title_tier = empire - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = scandinavian_elective_succession_law - } - every_vassal = { - limit = { special_succession_thing_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_thing - } - } - else = { - every_held_title = { - title_tier = kingdom - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = scandinavian_elective_succession_law - } - every_vassal = { - limit = { special_succession_thing_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_thing - } - } -} - -special_succession_tanistry_effect = { - if = { - limit = { highest_held_title_tier = tier_empire } - every_held_title = { - title_tier = empire - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = gaelic_elective_succession_law - } - every_vassal = { - limit = { special_succession_tanistry_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_tanistry - } - } - else = { - every_held_title = { - title_tier = kingdom - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = gaelic_elective_succession_law - } - every_vassal = { - limit = { special_succession_tanistry_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_tanistry - } - } -} - -special_succession_jirga_effect = { - if = { - limit = { highest_held_title_tier = tier_empire } - every_held_title = { - title_tier = empire - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = tribal_elective_succession_law - } - every_vassal = { - limit = { special_succession_jirga_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_thing - } - } - else = { - every_held_title = { - title_tier = kingdom - limit = { - NOR = { - has_title_law_flag = advanced_succession_law - has_title_law_flag = elective_succession_law - } - } - add_title_law = tribal_elective_succession_law - } - every_vassal = { - limit = { special_succession_jirga_trigger = yes } - add_opinion = { - modifier = implemented_traditional_succession_law_opinion - years = 20 - target = root - } - custom = major_decisions.3100.tt_opinion_jirga - } - } -} -# -################################################### -## Launch Hungarian Migration Effects -# -#launch_hungarian_migration_scripted_effect = { -# $INVADER$ = { -# #If Hungary already exists, just tell us it's getting a name change. -# if = { -# limit = { -# title:k_hungary = { is_title_created = yes } -# } -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.pannonia_renamed -# title:k_hungary = { set_title_name = k_hungary } -# } -# #Otherwise, if Hungary doesn't exist, create & acquire it _whilst_ giving it a name change. -# else_if = { -# limit = { -# title:k_hungary = { is_title_created = no } -# } -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.pannonia_renamed_and_usurped -# hidden_effect = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:k_hungary = { -# change_title_holder = { -# holder = $INVADER$ -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# title:k_hungary = { set_title_name = k_hungary } -# } -# } -# -# #If $INVADER$ has both k_hungary & any other kingdom-tier title, destroy the excess titles. -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.destroy_other_kingdoms -# hidden_effect = { -# if = { -# limit = { -# has_title = title:k_hungary -# any_held_title = { -# title_tier >= kingdom -# count >= 2 -# } -# } -# every_held_title = { -# title_tier >= kingdom -# limit = { -# NOT = { this = title:k_hungary } -# } -# save_temporary_scope_as = excess_kingdom -# $INVADER$ = { destroy_title = scope:excess_kingdom } -# } -# } -# } -# -# #Replace all Avar territories within Pannonia with Mogyer, excepting Keve & Krasso. -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.mogyers_move_to_pannonia -# hidden_effect = { -# every_sub_realm_county = { -# limit = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# culture = culture:avar -# NOR = { -# this = title:c_keve -# this = title:c_krasso -# holder = { -# AND = { -# is_ai = no -# has_culture = prev.culture -# } -# } -# } -# } -# set_county_culture = culture:mogyer -# #Switch 'em to $INVADER$'s faith if unreformed & $INVADER$ is any Magyar pagan. -# if = { -# limit = { -# $INVADER$.faith.religion = religion:magyar_religion -# faith = { has_doctrine_parameter = unreformed } -# } -# set_county_faith = $INVADER$.faith -# } -# } -# } -# -# #Replace all Mogyer territories outside of the Pannonian Basin -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.mogyers_outside_pannonia -# hidden_effect = { -# every_sub_realm_county = { -# limit = { -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# culture = culture:mogyer -# } -# set_county_culture = culture:pecheneg -# } -# #Switch 'em to Tengri if Magyar pagan. -# every_sub_realm_county = { -# limit = { -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# culture = culture:pecheneg -# religion = religion:magyar_religion -# } -# set_county_faith = faith:tengri_pagan -# } -# } -# -# #All territory outside Pannonia is given to new holders and/or made independent. -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.territory_outside_pannonia.non_mogyer_vassals -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.territory_outside_pannonia.mogyer_vassals -# custom_tooltip = launch_hungarian_migration_scripted_effect.tt.territory_outside_pannonia.former_territories -# hidden_effect = { -# #All direct vassal non-Mogyers are given their independence, unless they hold land within Pannonia. -# every_vassal = { -# limit = { -# NOT = { culture = culture:mogyer } -# highest_held_title_tier >= tier_county -# any_held_title = { -# count = all -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# } -# } -# 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 -# } -# #... And catch the stragglers. Has to be a separate effect block, or we'll ruin the de facto structure. -# every_vassal_or_below = { -# limit = { -# NOT = { culture = culture:mogyer } -# highest_held_title_tier >= tier_county -# any_held_title = { -# count = all -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# } -# } -# 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 -# } -# #Reserve a duchy, preferring the capital, for $INVADER$. -# if = { -# limit = { title:k_hungary.title_capital_county.duchy.holder = $INVADER$ } -# title:k_hungary.title_capital_county.duchy = { save_scope_as = reserved_title } -# } -# #... Of course, if we can't have the capital for some reason, grab any random duchy in Pannonia. -# else = { -# random_held_title = { -# title_tier = duchy -# #Filter out Syrmia, because Syrmia sucks. -# limit = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# NOT = { this = title:d_syrmia } -# } -# #But if we have no other choice, Syrmia is better than no duchy. -# alternative_limit = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# tier = tier_duchy -# } -# #If we have no possible duchy, make sure to reserve at least *one* county within Pannonia. -# alternative_limit = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# save_scope_as = reserved_title -# } -# } -# #Find all Mogyer vassals outside of Pannonia. -# every_vassal_or_below = { -# limit = { -# culture = culture:mogyer -# highest_held_title_tier >= tier_county -# } -# add_to_list = mogyer_vassals_list -# } -# #Find all Pannonian titles held by $INVADER$ that aren't reserved. -# every_held_title = { -# limit = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# #Technically we could use any_this_title_or_de_jure_above for the following two checks, but it was being problematic and this does the same thing (just more cumbersomely). -# OR = { -# tier = tier_county -# tier = tier_duchy -# } -# exists = scope:reserved_title -# this != scope:reserved_title -# } -# add_to_list = spare_pannonian_titles_list -# } -# #Attempt to give out Pannonian holdings to the vassals who are about to lose land, prioritising players by tier, then NPCs by tier. -# ##Now, process duchy title assignment. -# every_in_list = { -# list = mogyer_vassals_list -# #Players first. -# limit = { -# is_ai = no -# launch_hungarian_migration_ducal_processing_trigger = yes -# } -# #NPCs after that. -# alternative_limit = { -# is_ai = yes -# launch_hungarian_migration_ducal_processing_trigger = yes -# } -# #Grab the appropriate vassal. -# save_temporary_scope_as = receiving_vassal -# #If $INVADER$ has a suitable spare ducal title, hand it over. -# if = { -# limit = { -# any_in_list = { -# list = spare_pannonian_titles_list -# tier = tier_duchy -# holder = $INVADER$ -# } -# } -# #Save the suitable title. -# random_in_list = { -# list = spare_pannonian_titles_list -# limit = { -# tier = tier_duchy -# holder = $INVADER$ -# } -# every_in_de_jure_hierarchy = { -# limit = { -# holder = $INVADER$ -# tier >= tier_county -# } -# add_to_list = multiple_donated_titles -# } -# } -# #Hand it to the receiving vassal. -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# add_claim_on_loss = no -# } -# every_in_list = { -# list = multiple_donated_titles -# save_temporary_scope_as = donated_title -# scope:donated_title = { -# change_title_holder = { -# holder = scope:receiving_vassal -# change = scope:change -# } -# } -# remove_from_list = multiple_donated_titles -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# ##Finally, process county title assignment. -# ###First, attempt to pair de facto sub-vassals to their lieges. -# every_in_list = { -# list = mogyer_vassals_list -# #Players first. -# limit = { -# is_ai = no -# launch_hungarian_migration_count_processing_trigger = yes -# } -# #NPCs after that. -# alternative_limit = { -# is_ai = yes -# launch_hungarian_migration_count_processing_trigger = yes -# } -# #Grab the appropriate vassal. -# save_temporary_scope_as = receiving_vassal -# #If $INVADER$ has a suitable spare county title, hand it over. -# if = { -# #Try to pair vassals with their lieges first. -# limit = { -# #Direct vassals shouldn't bother to try pairing. -# NOT = { liege = $INVADER$ } -# any_in_list = { -# list = spare_pannonian_titles_list -# launch_hungarian_migration_sub_vassal_liege_pairing_trigger = yes -# } -# } -# #Save the suitable title. -# random_in_list = { -# list = spare_pannonian_titles_list -# limit = { -# #Direct vassals shouldn't bother to try pairing. -# NOT = { scope:receiving_vassal.liege = $INVADER$ } -# #Run the stock trigger. -# launch_hungarian_migration_sub_vassal_liege_pairing_trigger = yes -# #Don't give away the new liege's primary title's capital county. -# this != holder.primary_title.title_capital_county -# } -# save_temporary_scope_as = donated_title -# } -# #Hand it to the receiving vassal. -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# add_claim_on_loss = no -# } -# scope:donated_title = { -# change_title_holder = { -# holder = scope:receiving_vassal -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# ###Then, filter through any remaining direct vassals. -# every_in_list = { -# list = mogyer_vassals_list -# #Players first. -# limit = { -# is_ai = no -# launch_hungarian_migration_count_processing_trigger = yes -# } -# #NPCs after that. -# alternative_limit = { -# is_ai = yes -# launch_hungarian_migration_count_processing_trigger = yes -# } -# #Grab the appropriate vassal. -# save_temporary_scope_as = receiving_vassal -# #If $INVADER$ has a suitable spare county title, hand it over. -# if = { -# #Otherwise, grab any spare valid title that $INVADER$ has lying around. -# limit = { -# any_in_list = { -# list = spare_pannonian_titles_list -# launch_hungarian_migration_direct_vassal_requirements_trigger = { INVADER = $INVADER$ } -# } -# } -# #Save the suitable title. -# random_in_list = { -# list = spare_pannonian_titles_list -# limit = { -# launch_hungarian_migration_direct_vassal_requirements_trigger = { INVADER = $INVADER$ } -# } -# save_temporary_scope_as = donated_title -# } -# #Hand it to the receiving vassal. -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# add_claim_on_loss = no -# } -# scope:donated_title = { -# change_title_holder = { -# holder = scope:receiving_vassal -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# ##Clean-up: any landless characters should move to $INVADER$'s court. -# every_in_list = { -# list = mogyer_vassals_list -# limit = { is_ruler = no} -# save_temporary_scope_as = landless_mogyer_vassal -# $INVADER$ = { add_courtier = scope:landless_mogyer_vassal } -# } -# #Sum all remaining territory outside of Pannonia & give that territory to created local characters. -# ##Start by trying to group duchies. -# every_sub_realm_title = { -# #First we try to make duchy power blocks. -# if = { -# #Grab duchies outside of Pannonia. -# limit = { -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# tier = tier_duchy -# } -# save_temporary_scope_as = seceding_duchy -# #Now grab the duchy & any sub-realm counties beneath it outside of Pannonia, and filter them to a list for processing. -# scope:seceding_duchy = { -# every_in_de_jure_hierarchy = { -# limit = { -# tier >= tier_county -# OR = { -# holder = $INVADER$ -# holder = { -# any_liege_or_above = { this = $INVADER$ } -# } -# } -# } -# add_to_temporary_list = seceding_duchy_list -# } -# } -# #Create a local peasant warlord for the duchy & counties. -# create_character = { -# location = scope:seceding_duchy.title_capital_county.title_province -# template = post_migration_local_warlord_template -# save_scope_as = local_warlord -# } -# #Assign the seceding titles to the new peasant warlord. -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = change -# add_claim_on_loss = no -# } -# every_in_list = { -# list = seceding_duchy_list -# limit = { -# NAND = { -# tier = tier_county -# title_province = { geographical_region = custom_hungary } -# } -# } -# change_title_holder = { -# holder = scope:local_warlord -# change = scope:change -# take_baronies = yes -# } -# remove_from_list = seceding_duchy_list -# } -# resolve_title_and_vassal_change = scope:change -# #And give the warlord their independence. -# create_title_and_vassal_change = { -# type = independency -# save_scope_as = change -# add_claim_on_loss = no -# } -# scope:local_warlord = { -# becomes_independent = { change = scope:change } -# } -# resolve_title_and_vassal_change = scope:change -# #If any vassals within Pannonia have gotten mixed up, shunt them back to $INVADER$, and try to find a suitable duke. -# ##Start off by assembling a suitable list of affected vassals (should only ever be the one, but you never know). -# scope:local_warlord = { -# every_vassal = { -# limit = { -# #We're only interested in counts... -# highest_held_title_tier = tier_county -# #... Within Panonnia. -# any_held_title = { launch_hungarian_migration_county_is_within_custom_hungary_trigger = yes } -# } -# add_to_list = vassals_to_shunt -# } -# } -# ##Sort through the list, see who should be the new liege of the misplaced vassals. -# every_in_list = { -# list = vassals_to_shunt -# #First off, check if there's a valid duke to hand 'em over to. -# if = { -# limit = { -# any_held_title = { -# launch_hungarian_migration_misplaced_count_suitable_liege_trigger = { INVADER = $INVADER$ } -# } -# } -# #If there is, we make a note of them for liege determination. -# random_held_title = { -# limit = { -# launch_hungarian_migration_misplaced_count_suitable_liege_trigger = { INVADER = $INVADER$ } -# } -# duchy.holder = { save_scope_as = appropriate_liege } -# } -# } -# #Otherwise, we just grab $INVADER$ as a solid fallback. -# else = { -# $INVADER$ = { save_scope_as = appropriate_liege } -# } -# #Reassign the errant vassal back to their rightful Pannonian realm. -# create_title_and_vassal_change = { -# type = conquest -# save_scope_as = change -# add_claim_on_loss = no -# } -# change_liege = { -# liege = scope:appropriate_liege -# change = scope:change -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# } -# ##... Then we catch the straggler counties. -# every_sub_realm_title = { -# #First we try to make duchy power blocks. -# if = { -# #Grab duchies outside of Pannonia. -# limit = { -# NOT = { -# title_capital_county.title_province = { geographical_region = custom_hungary } -# } -# tier = tier_county -# } -# save_temporary_scope_as = seceding_county -# #Create a local peasant warlord for the county. -# create_character = { -# location = scope:seceding_county.title_province -# template = post_migration_minor_warlord_template -# save_scope_as = minor_warlord -# } -# #Assign the seceding title to the new peasant warlord. -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = change -# add_claim_on_loss = no -# } -# scope:seceding_county = { -# change_title_holder = { -# holder = scope:minor_warlord -# change = scope:change -# take_baronies = yes -# } -# } -# resolve_title_and_vassal_change = scope:change -# #And give the warlord their independence. -# create_title_and_vassal_change = { -# type = independency -# save_scope_as = change -# add_claim_on_loss = no -# } -# scope:minor_warlord = { -# becomes_independent = { change = scope:change } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# } -# } -#} - -tribal_transfer_liege_title_effect = { - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = no - } - scope:title_being_fought_over = { - change_title_holder = { - holder = scope:challenger - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - if = { - limit = { - root = scope:challenger - } - scope:liege_to_challenge = { - add_opinion = { - target = scope:challenger - modifier = usurped_title - } - } - } - else = { - hidden_effect = { - scope:liege_to_challenge = { - add_opinion = { - target = scope:challenger - modifier = usurped_title - } - } - } - } -} - -tribal_challenger_lost_effect = { - if = { - limit = { - root = scope:liege_to_challenge - } - scope:liege_to_challenge = { - add_prestige = medium_prestige_gain - } - } - else = { - hidden_effect = { - scope:liege_to_challenge = { - add_prestige = medium_prestige_gain - } - } - } - add_prestige_level = -1 - if = { - limit = { - root = scope:challenger - } - scope:liege_to_challenge = { - add_opinion = { - target = scope:challenger - modifier = tried_to_usurped_title - } - } - } - else = { - hidden_effect = { - scope:liege_to_challenge = { - add_opinion = { - target = scope:challenger - modifier = tried_to_usurped_title - } - } - } - } -} - -################################################### -## Negotiate the Danelaw Effects -# -#negotiate_the_danelaw_accept_effect = { -# # Mark the partition as being active. -# custom_tooltip = negotiate_the_danelaw_accept_effect.partition_active.tt -# set_global_variable = { -# name = partition_active_danelaw -# value = title:k_england -# } -# # Kingdoms for all! -# ## Scope:ntd_brit receives k_england. -# scope:ntd_brit = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# } -# title:k_england = { -# change_title_holder = { -# holder = scope:ntd_brit -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# title:k_england = { add_title_law = saxon_elective_succession_law } -# } -# ## Whilst scope:ntd_nord receives k_danelaw. -# scope:ntd_nord = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# } -# title:k_danelaw = { -# change_title_holder = { -# holder = scope:ntd_nord -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# title:k_danelaw = { -# add_title_law = scandinavian_elective_succession_law -# # And make sure it follows appropriate de jures. -# hidden_effect = { set_de_jure_liege_title = title:k_england.de_jure_liege } -# } -# } -# # Give k_danelaw various de jures. -# ## Firstly, any duchy that it has at least one county in which isn't scope:ntd_brit's capital duchy. -# custom_tooltip = negotiate_the_danelaw_accept_effect.de_jure_holdings_recognised.tt -# hidden_effect = { -# scope:ntd_nord = { -# every_sub_realm_county = { -# limit = { -# kingdom = title:k_england -# duchy != scope:ntd_brit.capital_county.duchy -# } -# duchy = { set_de_jure_liege_title = title:k_danelaw } -# } -# } -# } -# ## Then, any independent duchy held by a Scandi-side ruler (again exempting scope:ntd_brit's capital, just in case). -# custom_tooltip = negotiate_the_danelaw_accept_effect.independent_holdings_recognised.tt -# hidden_effect = { -# every_county_in_region = { -# region = world_europe_west_britannia -# limit = { -# kingdom = title:k_england -# exists = duchy.holder -# duchy.holder = { negotiate_the_danelaw_norse_side_trigger = yes } -# duchy != scope:ntd_brit.capital_county.duchy -# } -# duchy = { set_de_jure_liege_title = title:k_danelaw } -# } -# } -# # Set up a ceasefire & some opinion gain between the two rulers. -# scope:ntd_brit = { -# add_truce_both_ways = { -# character = scope:ntd_nord -# years = 25 -# name = TRUCE_SIGNED_PARTITION -# } -# add_opinion = { -# target = scope:ntd_nord -# modifier = respect_opinion -# opinion = 50 -# } -# reverse_add_opinion = { -# target = scope:ntd_nord -# modifier = respect_opinion -# opinion = 50 -# } -# } -# # Independent rulers on both sides are extremely unimpressed with this divvying. -# ## First, grab everyone applicable. -# title:k_england = { -# every_in_de_jure_hierarchy = { -# limit = { -# holder ?= { -# top_liege = this -# NOR = { -# this = scope:ntd_actor -# this = scope:ntd_recipient -# } -# } -# } -# holder = { add_to_list = riled_danelaw_independents_list } -# } -# } -# ## Then, apply opinion & hidden rivalry effects. -# every_in_list = { -# list = riled_danelaw_independents_list -# custom = negotiate_the_danelaw_accept_effect.riled_independents_list -# add_opinion = { -# target = scope:ntd_brit -# modifier = weak_opinion -# opinion = -40 -# } -# add_opinion = { -# target = scope:ntd_nord -# modifier = weak_opinion -# opinion = -40 -# } -# # We hide the rivalry stuff, both to make it seem less unappealing, and to encourage valid-feeling drama without deliberately signalling it. -# hidden_effect = { -# if = { -# limit = { -# can_set_relation_potential_rival_trigger = { CHARACTER = scope:ntd_brit } -# } -# set_relation_potential_rival = scope:ntd_brit -# } -# if = { -# limit = { -# can_set_relation_potential_rival_trigger = { CHARACTER = scope:ntd_nord } -# } -# set_relation_potential_rival = scope:ntd_nord -# } -# } -# } -#} -# -#negotiate_the_danelaw_reject_effect = { -# scope:ntd_actor = { -# # If possible, scope:ntd_actor & scope:ntd_recipient immediately become nemeses. -# if = { -# limit = { -# can_set_relation_nemesis_trigger = { CHARACTER = scope:ntd_recipient } -# } -# set_relation_nemesis = { -# reason = nemesis_danelaw_rejection -# copy_reason = rival -# target = scope:ntd_recipient -# } -# } -# else = { -# add_opinion = { -# target = scope:ntd_recipient -# modifier = humiliated_opinion -# opinion = -75 -# } -# } -# # Scope:ntd_actor loses a huge amount of prestige. -# add_prestige = massive_prestige_loss -# # Scope:ntd_actor gets a derrogatory nickname. -# give_nickname = nick_the_weak -# } -#} -# -#negotiate_the_danelaw_each_way_effect = { -# random_list = { -# # The offer is accepted. -# 100 = { -# show_chance = no -# desc = negotiate_the_danelaw_each_way_effect.accepted -# negotiate_the_danelaw_accept_effect = yes -# } -# # The offier is rejected. -# 100 = { -# show_chance = no -# desc = negotiate_the_danelaw_each-way_effect.rejected -# negotiate_the_danelaw_reject_effect = yes -# } -# } -#} -# -#resolve_danelaw_partition_effect = { -# # Drift all k_danelaw cores into England. -# custom_tooltip = resolve_danelaw_partition_effect.adjust_de_jures.tt -# hidden_effect = { -# title:k_danelaw = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_england -# } -# } -# } -# # If k_danelaw is victorious, take care of various bits'n'pieces. -# if = { -# limit = { scope:partition_winner = title:k_danelaw } -# # If appropriate, create k_england. -# if = { -# limit = { -# NOT = { exists = title:k_england.holder } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# } -# title:k_england = { -# change_title_holder = { -# holder = scope:victor -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# # Else usurp k_england. -# else_if = { -# limit = { -# NOT = { title:k_england.holder = scope:victor } -# } -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = title_change -# add_claim_on_loss = yes -# } -# title:k_england = { -# change_title_holder = { -# holder = scope:victor -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# # Sundry cosmetic changes. -# title:k_england = { -# if = { # Only do Scandinavian things for Scandinavians -# limit = { -# holder.culture = { has_cultural_pillar = heritage_north_germanic } -# } -# # Set k_england's CoA to k_danelaw's. -# custom_tooltip = resolve_danelaw_partition_effect.coa_changed.tt -# title:k_england = { set_coa = title:k_danelaw } -# # Give k_england the appropriate succession law. -# add_title_law = scandinavian_elective_succession_law -# } -# # Use k_danelaw's title history, as they won the cold war. -# copy_title_history = title:k_danelaw -# # And make York the de jure capital. -# set_capital_county = title:c_north_riding -# } -# # Remove k_danelaw. -# destroy_title = title:k_danelaw -# # All claims on k_danelaw become claims on k_england. -# title:k_danelaw = { -# every_claimant = { -# custom = resolve_danelaw_partition_effect.all_claimants -# remove_claim = title:k_danelaw -# add_unpressed_claim = title:k_england -# } -# } -# # Finally, mark that this has happened for HKotNS purposes. -# set_global_variable = { -# name = danelaw_became_england -# value = yes -# } -# } -# # If k_england is victorious, we also have a few little things to do. -# if = { -# limit = { scope:partition_winner = title:k_england } -# # If it still exists, destroy k_danelaw. -# if = { -# limit = { exists = title:k_danelaw.holder } -# destroy_title = title:k_danelaw -# } -# # All claims on k_danelaw are removed. -# title:k_danelaw = { -# every_claimant = { -# custom = resolve_danelaw_partition_effect.all_claimants -# remove_claim = title:k_danelaw -# } -# } -# } -#} -# -#formalise_the_daneland_effect = { -# # To start with, remove the partition variable (so that we don't calculate partition resolution whilst taking the alternate route). -# remove_global_variable = partition_active_danelaw -# # Clarify the status of the partition for the player. -# custom_tooltip = formalise_the_daneland_effect.partition_status.tt -# # Sort the title swap. -# ## First, flip everything in k_danelaw to k_daneland. -# custom_tooltip = formalise_the_daneland_effect.adjust_de_jures.tt -# hidden_effect = { -# title:k_danelaw = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_daneland -# } -# } -# # Add k_daneland to whatever empire k_danelaw is part of. -# title:k_daneland = { set_de_jure_liege_title = title:k_danelaw.de_jure_liege } -# } -# ## Then, swap the two titles out. -# ### Give k_daneland to scope:founder. -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# } -# title:k_daneland = { -# change_title_holder = { -# holder = scope:founder -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# ### Do some assorted aesthetic prep-work on k_daneland. -# hidden_effect = { -# title:k_daneland = { -# # Give them k_danelaw's CoA. -# set_coa = title:k_danelaw -# # & title history. -# copy_title_history = title:k_danelaw -# } -# } -# ### Destroy k_danelaw. -# destroy_title = title:k_danelaw -# # All claims on k_danelaw become claims on k_daneland -# title:k_danelaw = { -# every_claimant = { -# custom = formalise_the_daneland_effect.all_claimants -# remove_claim = title:k_danelaw -# add_unpressed_claim = title:k_daneland -# } -# } -# # Step a rivalry with scope:england. -# scope:founder = { -# progress_towards_rival_effect = { -# CHARACTER = scope:england -# OPINION = -75 -# REASON = rival_daneland -# } -# } -#} - -################################################## -# Found Cadet House Effects -found_cadet_house_decision_effect = { - $CHARACTER$ = { - save_scope_as = new_head - save_scope_as = new_house_head # don't ask - hidden_effect = { - house.house_head = { - save_scope_as = former_house_head - } - house = { - save_scope_as = former_house - } - add_achievement_flag_effect = { FLAG = achievement_a_house_of_my_own_flag } - - #Cultural variation for Cadet Branch Naming: - - if = { # Prefixed Primary Title - (PREFIX) (TITLE) - limit = { - is_landed = yes - highest_held_title_tier <= tier_duchy - OR = { - culture = { has_cultural_pillar = heritage_frankish } - top_liege = { - has_title = title:k_france - culture = { has_cultural_pillar = heritage_frankish } - } - } - } - create_cadet_branch = { - prefix = dynnp_de - name = cadet_name_style_primary_title - save_scope_as = new_house - } - } - else_if = { # Barony Dynasty - (BARONY) (DYNASTY) - limit = { - is_landed = yes - culture = { - OR = { - # India - has_cultural_pillar = heritage_indo_aryan - has_cultural_pillar = heritage_dravidian - # Vietnam - has_cultural_pillar = heritage_viet - has_name_list = name_list_vietnamese - # Khmer - has_name_list = name_list_khmer - # Mon - has_name_list = name_list_mon - # Cham - has_name_list = name_list_cham - # Tai - has_name_list = name_list_tai - # China - has_cultural_pillar = heritage_chinese - has_name_list = name_list_han - # Korea - has_cultural_pillar = heritage_korean - has_name_list = name_list_korean - # Buyeo - has_cultural_pillar = heritage_buyeo - has_name_list = name_list_balhae - } - } - NOT = { faith.religion = religion:islam_religion } - } - create_cadet_branch = { - name = cadet_name_style_barony_dynasty - save_scope_as = new_house - } - scope:new_house = { generate_coa = yes } # Avoid western style cadet CoA - } - else_if = { # County Dynasty - (COUNTY) (DYNASTY) - limit = { - is_landed = yes - culture = { - OR = { - # Malaysia - has_name_list = name_list_malay - } - } - } - create_cadet_branch = { - name = cadet_name_style_county_dynasty - save_scope_as = new_house - } - scope:new_house = { generate_coa = yes } # Avoid western style cadet CoA - } - else_if = { # Japanese - (PLACE) - limit = { - exists = var:new_japanese_house_name - culture = { - # Japan - OR = { - has_cultural_pillar = heritage_japonic - has_name_list = name_list_yamato - } - } - } - create_cadet_branch = { - name = { - first_valid = { - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:japanese_house_random_barony } - desc = japanese_house_random_barony - } - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:japanese_house_primary_county } - desc = japanese_house_primary_county - } - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:japanese_house_domicile_barony } - desc = japanese_house_domicile_barony - } - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:japanese_house_domicile_county } - desc = japanese_house_domicile_county - } - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:japanese_house_first_name } - desc = japanese_house_first_name - } - triggered_desc = { - trigger = { scope:new_head.var:new_japanese_house_name ?= flag:custom } - desc = japanese_house_name_custom - } - triggered_desc = { - trigger = { exists = scope:new_head.var:new_japanese_house_name } - desc = japanese_house_name_flag - } - desc = japanese_house_name_fallback - } - } - save_scope_as = new_house - } - scope:new_house = { generate_coa = yes } # Avoid western style cadet CoA - } - else = { #Standard Name Generation - create_cadet_branch = { save_scope_as = new_house } - } - } - - add_prestige = $PRESTIGE$ - - hidden_effect_new_object = { - save_scope_as = new_head - every_player = { - limit = { - exists = house - scope:new_house ?= house - NOT = { this = $CHARACTER$ } - } - send_interface_toast = { - type = msg_created_new_house - title = created_cadet_branch_toast_new_house_desc - left_icon = scope:new_head - desc = created_cadet_branch_toast_new_house_other_tt - } - } - send_interface_toast = { - type = msg_created_new_house - title = created_cadet_branch_toast_new_house_desc - left_icon = scope:new_head - right_icon = scope:former_house_head - desc = created_cadet_branch_toast_new_house_other_tt - } - } - - random_artifact = { - limit = { - var:banner_dynasty ?= $CHARACTER$.dynasty - artifact_owner = { - NOT = { this = $CHARACTER$ } - in_diplomatic_range = $CHARACTER$ - } - NOT = { - any_artifact_house_claimant = { - scope:new_house ?= this - } - } - } - save_scope_as = new_branch_dynasty_banner - scope:new_house ?= { - add_house_artifact_claim = scope:new_branch_dynasty_banner - } - } - - # Struggle Catalysts - if = { - limit = { - $CHARACTER$ = { - exists = house.house_head - any_character_struggle = { - involvement = involved - phase_has_catalyst = catalyst_cadet_branch_created - } - } - } - every_character_struggle = { - involvement = involved - activate_struggle_catalyst = { - catalyst = catalyst_cadet_branch_created - character = $CHARACTER$ - } - log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_cadet_branch_created } - } - } - - every_child = { - limit = { - has_trait = bastard - is_lowborn = no - dynasty = scope:new_head.dynasty - NOT = { house = scope:new_house } - } - set_house = scope:new_house - } - - # If eligible, create a cadet branch for admin type governments - if = { - limit = { - government_allows = noble_families - OR = { - highest_held_title_tier >= main_administrative_tier - AND = { - government_has_flag = government_has_county_tier_noble_families - highest_held_title_tier >= tier_county - } - } - } - create_noble_family_effect = { GOVERNMENT_GIVER = this } - change_influence = major_influence_gain - } - } -} - -learn_language_linguist_effect = { - hidden_effect = { add_courtier = $LINGUIST$ } - $LINGUIST$ = { save_scope_as = selected_linguist } - custom_tooltip = ep1_decision.0201.tt.aptitude - send_interface_toast = { - title = learn_court_language_toast_title - left_icon = root - right_icon = $LINGUIST$ - court_position_grant_effect = { - EMPLOYER = root - POS = court_tutor - CANDIDATE = $LINGUIST$ - } - if = { - limit = { - NOT = { knows_language_of_culture = $LINGUIST$.culture } - } - start_scheme = { - type = learn_language - target_character = $LINGUIST$ - } - } - } -} - -linguist_bonus_culture_effect = { - if = { - limit = { exists = scope:$CULTURE$ } - if = { - limit = { - any_culture_global = { - exists = culture_head - has_same_culture_heritage = scope:$CULTURE$ - NOR = { - has_same_culture_language = scope:$CULTURE$ - has_same_culture_language = root.culture - AND = { - exists = scope:target_court_language.culture - has_same_culture_language = scope:target_court_language.culture - } - AND = { - exists = scope:ling_cul_1_bonus - THIS = scope:ling_cul_1_bonus - } - AND = { - exists = scope:ling_cul_2_bonus - THIS = scope:ling_cul_2_bonus - } - AND = { - exists = scope:ling_cul_3_bonus - THIS = scope:ling_cul_3_bonus - } - } - } - } - random_culture_global = { # Find a culture that speaks this language natively - limit = { - exists = culture_head - has_same_culture_heritage = scope:$CULTURE$ - NOR = { - has_same_culture_language = scope:$CULTURE$ - has_same_culture_language = root.culture - AND = { - exists = scope:target_court_language.culture - has_same_culture_language = scope:target_court_language.culture - } - AND = { - exists = scope:ling_cul_1_bonus - THIS = scope:ling_cul_1_bonus - } - AND = { - exists = scope:ling_cul_2_bonus - THIS = scope:ling_cul_2_bonus - } - AND = { - exists = scope:ling_cul_3_bonus - THIS = scope:ling_cul_3_bonus - } - } - } - save_scope_as = $CULTURE$_bonus - } - } - else = { - random_kingdom = { - limit = { - exists = holder - NOR = { - holder = root - AND = { - exists = scope:target_court_language - holder = scope:target_court_language - } - } - holder = { - in_diplomatic_range = root - culture = { - NOR = { - has_same_culture_language = scope:$CULTURE$ - has_same_culture_language = root.culture - AND = { - exists = scope:target_court_language - has_same_culture_language = scope:target_court_language.culture - } - AND = { - exists = scope:ling_cul_1_bonus - this = scope:ling_cul_1_bonus - } - AND = { - exists = scope:ling_cul_2_bonus - this = scope:ling_cul_2_bonus - } - AND = { - exists = scope:ling_cul_3_bonus - this = scope:ling_cul_3_bonus - } - } - } - } - } - holder.culture = { save_scope_as = $CULTURE$_bonus } - } - } - } -} - -linguist_random_realm_effect = { - # Save random culture realm to fetch faith - if = { - limit = { - any_independent_ruler = { culture = scope:$CULTURE$ } - } - ordered_independent_ruler = { - limit = { culture = scope:$CULTURE$ } - order_by = primary_title.tier - save_scope_as = $CULTURE$_ruler - } - } - # Save fallback to fetch faith - else = { - scope:target_court_language = { save_scope_as = $CULTURE$_ruler } - } -} - -isolate_single_character_effect = { - add_character_flag = { - flag = blocked_from_leaving - years = 5 - } - add_character_modifier = { - modifier = isolating_modifier - years = 5 - } - if = { - limit = { exists = involved_activity } - if = { - limit = { involved_activity.activity_host = root } - invalidate_activity = involved_activity - } - else = { - remove_from_activity = involved_activity - } - } -} - -isolate_family_decision_effect = { - show_as_tooltip = { - every_close_family_member = { - custom = every_close_family_member_at_court - limit = { - is_courtier_of = root - } - add_character_modifier = { - modifier = isolating_modifier - years = 5 - } - } - add_character_modifier = { - modifier = isolating_modifier - years = 5 - } - if = { - limit = { exists = involved_activity } - if = { - limit = { involved_activity.activity_host = root } - invalidate_activity = involved_activity - } - else = { - remove_from_activity = involved_activity - } - } - } - if = { - limit = { NOT = { exists = current_travel_plan } } - custom_tooltip = travelling_will_break_isolation_tt - } - hidden_effect = { - every_close_family_member = { - custom = every_close_family_member_at_court - limit = { - is_courtier_of = root - } - root = { - add_to_variable_list = { - name = isolating_relatives - target = prev - } - } - isolate_single_character_effect = yes - } - every_consort = { - limit = { - is_courtier_of = root - } - root = { - add_to_variable_list = { - name = isolating_relatives - target = prev - } - } - isolate_single_character_effect = yes - } - isolate_single_character_effect = yes - set_variable = { - name = isolating_cooldown_var - years = 1 - } - add_character_flag = { # Prevent the AI from constantly coming in and out of isolation - flag = ai_unisolate_cooldown - years = 1 - } - } - stress_impact = { - brave = minor_stress_impact_gain - gregarious = minor_stress_impact_gain - } -} - -unisolate_family_decision_effect = { - show_as_tooltip = { - every_close_family_member = { - custom = every_close_family_member_at_court - limit = { - is_courtier_of = root - } - remove_character_modifier = isolating_modifier - } - } - hidden_effect = { - every_in_list = { - variable = isolating_relatives - limit = { is_alive = yes } - remove_character_modifier = isolating_modifier - remove_character_flag = blocked_from_leaving - } - clear_variable_list = isolating_relatives - } - remove_character_modifier = isolating_modifier - stress_impact = { - paranoid = minor_stress_impact_gain - shy = minor_stress_impact_gain - } -} - - -#Whippy whippy -flagellation_decision_effect = { - #Get both rewards - if = { - limit = { - has_trait = flagellant - faith = { has_doctrine_parameter = self_mutilation_active } - } - add_stress = major_stress_loss - add_piety = medium_piety_value - } - #Only Piety - else_if = { - limit = { - faith = { has_doctrine_parameter = self_mutilation_active } - } - add_piety = medium_piety_value - } - #Only Stress-loss - else = { add_stress = major_stress_loss } - - #Be kind to the AI - if = { - limit = { is_ai = yes } - random_list = { - 75 = { - #No increase - } - 25 = { - increase_wounds_effect = { REASON = whipping } - } - } - } - else = { - increase_wounds_effect = { REASON = whipping } - } - - #Not already flagellant? - if = { - limit = { - NOT = { has_trait = flagellant } - } - random = { - chance = 20 - add_trait = flagellant - add_stress = major_stress_loss - } - } - -} -#restore_carthage_scripted_effect = { -# -# dynasty = { add_dynasty_prestige = monumental_dynasty_prestige_gain } -# house = { -# add_house_modifier = { -# modifier = restore_carthage_house_modifier -# years = 100 -# } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# -# #Create Kingdoms -# hidden_effect = { -# # Carthage -# title:k_carthage = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# set_de_jure_liege_title = title:e_carthage -# } -# # Carthage Duchies -# title:d_gabes = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_kairouan = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_kroumerie = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_tunis = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_jerid = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_sicily = { -# set_de_jure_liege_title = title:k_carthage -# } -# title:d_sardinia = { -# set_de_jure_liege_title = title:k_carthage -# } -# # And "Tunis" Carthage as capital -# title:c_tunis = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# # Tripolitania -# title:k_tripolitania = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# set_de_jure_liege_title = title:e_carthage -# } -# # Tripolitania Duchies -# title:d_tripolitania = { -# set_de_jure_liege_title = title:k_tripolitania -# } -# title:d_syrte = { -# set_de_jure_liege_title = title:k_tripolitania -# } -# # Mauretania -# title:k_mauretania = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# set_de_jure_liege_title = title:e_carthage -# } -# # Mauretania Duchies -# title:d_bejaia = { -# set_de_jure_liege_title = title:k_mauretania -# } -# title:d_zab = { -# set_de_jure_liege_title = title:k_mauretania -# } -# title:d_tlemcen = { -# set_de_jure_liege_title = title:k_mauretania -# } -# title:d_rif = { -# set_de_jure_liege_title = title:k_mauretania -# } -# title:d_alger = { -# set_de_jure_liege_title = title:k_mauretania -# } -# # Carthago Nova -# title:k_carthago_nova = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# set_de_jure_liege_title = title:e_carthage -# } -# # Carthago Nova Duchies -# title:d_sevilla = { -# set_de_jure_liege_title = title:k_carthago_nova -# } -# title:d_granada = { -# set_de_jure_liege_title = title:k_carthago_nova -# } -# title:d_murcia = { -# set_de_jure_liege_title = title:k_carthago_nova -# } -# title:d_valencia = { -# set_de_jure_liege_title = title:k_carthago_nova -# } -# } -# -# #Create Empire -# title:e_carthage = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# -# resolve_title_and_vassal_change = scope:title_change -# -# hidden_effect = { -# every_held_title = { #Should destroy Kingdoms without dejure land -# title_tier = kingdom -# if = { -# limit = { -# any_direct_de_jure_vassal_title = { count < 1 } -# title_capital_county.empire = title:e_carthage -# } -# root = { destroy_title = prev } -# } -# } -# } -# -# if = { -# limit = { -# capital_county != title:c_tunis -# } -# set_realm_capital = title:c_tunis -# } -# -# hidden_effect = { -# set_primary_title_to = title:e_carthage -# } -#} - -################################################## -# ##Create Cossack Kingdom Decision Effect## -# ## By: Björn S -################################################## -# -#create_cossack_scripted_effect = { -# # Pseudo character to derive culture from without converting the founder by default -# create_character = { -# location = root.location -# culture = root.culture -# faith = root.faith -# gender = root -# dynasty = none -# random_traits = no -# save_scope_as = cossack -# } -# ## We make all nomad holdings tribal, or the government change won't work -# custom_tooltip = { -# every_sub_realm_county = { -# limit = { -# title_province = { -# OR = { -# has_holding_type = nomad_holding -# has_holding_type = herder_holding -# } -# } -# } -# ## Add_to_list = holding_conversion -# title_province = { -# set_holding_type = tribal_holding -# } -# } -# text = create_cossack_tribal_tooltip -# } -# change_government = tribal_government -# -# ## Create the Cossack Culture ## -# culture = { save_scope_as = founder_culture } -# every_player = { -# add_character_flag = { -# flag = hide_hybridization_event -# days = 1 -# } -# } -# custom_tooltip = { -# text = cossack_custom_culture_hybrid -# scope:cossack = { create_hybrid_culture = culture:kazak } -# } -# scope:new_culture ?= { -# set_culture_name = { -# noun = cossack -# collective_noun = cossack_prefix -# prefix = cossack_collective_noun -# } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_cossack = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# ## Set up the Cossack Kingdom title with de jure duchies -# custom_tooltip = { -# text = cossack_custom_de_jure -# title:k_cossack = { set_de_jure_liege_title = title:e_caspian-pontic_steppe } -# title:d_tana = { set_de_jure_liege_title = title:k_cossack } -# title:d_red_levedia = { set_de_jure_liege_title = title:k_cossack } -# title:d_levedia = { set_de_jure_liege_title = title:k_cossack } -# title:d_don_valley = { set_de_jure_liege_title = title:k_cossack } -# title:d_itil = { set_de_jure_liege_title = title:k_cossack } -# } -# -# ##Add Cossack Culture to all de jure duchies in the Cossack Kingdom -# if = { -# limit = { exists = scope:new_culture } -# custom_tooltip = { -# text = cossack_custom_county_culture -# every_held_county = { -# limit = { kingdom = title:k_cossack } -# ## Convert all the counties to Cossack Culture ## -# set_county_culture = scope:new_culture -# } -# } -# } -# else = { custom_tooltip = cossack_custom_county_culture_fallback } -# -# hidden_effect = { -# scope:cossack ?= { silent_disappearance_effect = yes } -# } -#} -# \ No newline at end of file diff --git a/common/scripted_effects/00_major_decisions_scripted_effects.txt b/common/scripted_effects/00_major_decisions_scripted_effects.txt index be6a1c05..959e38ed 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -1,763 +1,763 @@ -#create_roman_empire_scripted_effect = { -# primary_title = { save_scope_as = old_primary_title } -# add_trait = augustus -# if = { -# limit = { has_dlc_feature = legends } -# create_legend_seed = { -# type = legitimizing -# quality = illustrious -# chronicle = new_title -# properties = { -# title = title:h_roman_empire -# founder = root -# } -# } -# } -# #Create Roman Empire, shift dejure/history/laws, destroy e_byzantium. -# -# if = { -# limit = { capital_county = { this = title:c_byzantion } } -# title:h_roman_empire = { -# set_capital_county = title:c_byzantion -# } -# } -# -# hidden_effect = { -# every_held_title = { #Should shift all dejure of all Empires owned at the time. -# title_tier = empire -# -# set_de_jure_liege_title = title:h_roman_empire -# } -# every_empire = { -# limit = { -# NOT = { exists = hegemony } -# any_de_jure_county = { -# percent >= 0.6 -# holder = { -# OR = { -# this = root -# any_liege_or_above = { this = root } -# } -# } -# } -# } -# set_de_jure_liege_title = title:h_roman_empire -# } -# } -# split_byzantine_empire_effect = yes -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:h_roman_empire = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# copy_title_history = title:e_byzantium -# } -# resolve_title_and_vassal_change = scope:change -# if = { # Move your Title MaAs to your new title if you have any -# limit = { -# government_allows = administrative -# primary_title = { -# any_title_maa_regiment = { } -# } -# } -# hidden_effect = { -# primary_title = { transfer_title_maa_ownership = title:h_roman_empire } -# } -# } -# if = { # If you have founded the Varangian Guard, you get to keep the benefits -# limit = { -# scope:old_primary_title = { has_variable = founded_varangian_guard } -# } -# hidden_effect = { -# title:h_roman_empire = { set_variable = founded_varangian_guard } -# } -# } -# hidden_effect = { set_primary_title_to = title:h_roman_empire } -# every_held_title = { #Should destroy all other Empires owned at the time. -# title_tier = empire -# -# root = { destroy_title = prev } -# } -# -# if = { #Automatically move capital to Constantinople, unless it's been set to Rome. -# limit = { -# NOT = { capital_county = { this = title:c_roma } } -# NOT = { capital_county = { this = title:c_byzantion } } -# culture = { has_cultural_pillar = heritage_byzantine } -# } -# hidden_effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { this = title:c_byzantion.holder } -# } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_byzantion = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# root = { set_realm_capital = title:c_byzantion } -# } -# else_if = { -# limit = { -# NOT = { capital_county = { this = title:c_roma } } -# NOT = { capital_county = { this = title:c_byzantion } } -# NOT = { culture = { has_cultural_pillar = heritage_byzantine } } -# exists = title:h_roman_empire.holder -# } -# hidden_effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { this = title:c_roma.holder } -# } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_roma = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# root = { set_realm_capital = title:c_roma } -# } -# hidden_effect = { -# add_character_flag = flag_restorer_of_rome #used for Eulogy. -# title:h_roman_empire = { -# set_variable = rome_was_restored_by_byzantium -# } -# } -#} -# -#create_roman_empire_holy_scripted_effect = { -# add_trait = augustus -# #Create Roman Empire, shift dejure/history/laws, destroy e_hre. -# hidden_effect = { -# every_held_title = { #Should shift all dejure of all Empires owned at the time. -# title_tier = empire -# -# set_de_jure_liege_title = title:h_roman_empire -# } -# primary_title = { -# if = { -# limit = { -# any_in_de_jure_hierarchy = { -# tier = tier_kingdom -# OR = { -# title:k_france ?= this -# title:k_aquitaine ?= this -# title:k_brittany ?= this -# } -# } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# OR = { -# title:k_france ?= this -# title:k_aquitaine ?= this -# title:k_brittany ?= this -# } -# } -# set_de_jure_liege_title = title:e_france -# title:e_france = { set_de_jure_liege_title = title:h_roman_empire } -# } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# set_de_jure_liege_title = title:e_germany -# title:e_germany = { set_de_jure_liege_title = title:h_roman_empire } -# } -# } -# every_empire = { -# limit = { -# NOT = { exists = hegemony } -# any_de_jure_county = { -# percent >= 0.6 -# holder = { -# OR = { -# this = root -# any_liege_or_above = { this = root } -# } -# } -# } -# } -# set_de_jure_liege_title = title:h_roman_empire -# } -# } -# split_byzantine_empire_effect = yes -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:h_roman_empire = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# set_variable = { -# name = variable_restored_hre #Used for flavor later. -# value = yes -# } -# copy_title_history = title:e_hre -# } -# resolve_title_and_vassal_change = scope:change -# if = { # Move your Title MaAs to your new title if you have any -# limit = { -# government_allows = administrative -# primary_title = { -# any_title_maa_regiment = { } -# } -# } -# hidden_effect = { -# primary_title = { transfer_title_maa_ownership = title:h_roman_empire } -# } -# } -# if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) -# limit = { -# primary_title = { has_variable = founded_varangian_guard } -# } -# hidden_effect = { -# title:h_roman_empire = { set_variable = founded_varangian_guard } -# } -# } -# hidden_effect = { set_primary_title_to = title:h_roman_empire } -# every_held_title = { #Should destroy all other Empires owned at the time. -# title_tier = empire -# -# root = { destroy_title = prev } -# } -# hidden_effect = { -# title:h_roman_empire = { -# set_coa = e_hre_roman -# set_title_color = { 255 255 255 } -# } -# } -# -# if = { #Automatically move capital to Rome. -# limit = { -# NOT = { capital_county = { this = title:c_roma } } -# exists = title:h_roman_empire.holder -# } -# hidden_effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { title:c_roma.holder = { this = root } } -# } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_roma = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# title:h_roman_empire.holder = { set_realm_capital = title:c_roma } -# } -# hidden_effect = { -# create_story = restoring_roman_provinces_story -# add_character_flag = flag_restorer_of_rome #used for Eulogy. -# } -#} -# -#create_roman_empire_italy_scripted_effect = { -# add_trait = augustus -# #Create Roman Empire, shift dejure/history/laws, destroy e_italy. -# hidden_effect = { -# every_held_title = { #Should shift all dejure of all Empires owned at the time. -# title_tier = empire -# -# set_de_jure_liege_title = title:h_roman_empire -# } -# every_empire = { -# limit = { -# NOT = { exists = hegemony } -# any_de_jure_county = { -# percent >= 0.6 -# holder = { -# OR = { -# this = root -# any_liege_or_above = { this = root } -# } -# } -# } -# } -# set_de_jure_liege_title = title:h_roman_empire -# } -# } -# split_byzantine_empire_effect = yes -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:h_roman_empire = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# set_variable = { -# name = variable_restored_italy #Used for flavor later. -# value = yes -# } -# copy_title_history = title:e_italy -# } -# resolve_title_and_vassal_change = scope:change -# if = { # Move your Title MaAs to your new title if you have any -# limit = { -# government_allows = administrative -# primary_title = { -# any_title_maa_regiment = { } -# } -# } -# hidden_effect = { -# primary_title = { transfer_title_maa_ownership = title:h_roman_empire } -# } -# } -# if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) -# limit = { -# primary_title = { has_variable = founded_varangian_guard } -# } -# hidden_effect = { -# title:h_roman_empire = { set_variable = founded_varangian_guard } -# } -# } -# hidden_effect = { set_primary_title_to = title:h_roman_empire } -# every_held_title = { #Should destroy all other Empires owned at the time. -# title_tier = empire -# -# root = { destroy_title = prev } -# } -# if = { #Automatically move capital to Rome. -# limit = { -# NOT = { capital_county = { this = title:c_roma } } -# exists = title:h_roman_empire.holder -# } -# hidden_effect = { -# if = { #Usurp if not held personally. -# limit = { -# NOT = { title:c_roma.holder = { this = root } } -# } -# create_title_and_vassal_change = { -# type = returned -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:c_roma = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# } -# title:h_roman_empire.holder = { set_realm_capital = title:c_roma } -# } -# hidden_effect = { -# create_story = restoring_roman_provinces_story -# add_character_flag = flag_restorer_of_rome #used for Eulogy. -# } -#} -# -#split_byzantine_empire_effect = { -# hidden_effect = { -# title:e_byzantium = { -# if = { -# limit = { -# OR = { -# NOT = { exists = holder } -# holder ?= root -# } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# title:e_italy ?= { is_titular = no } -# tier = tier_kingdom -# OR = { -# title:k_trinacria ?= this -# title:k_sicily ?= this -# title:k_naples ?= this -# title:k_venice ?= this -# } -# } -# set_de_jure_liege_title = title:e_italy -# title:e_italy = { set_de_jure_liege_title = title:h_roman_empire } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# OR = { -# title:k_trinacria ?= this -# title:k_epirus ?= this -# title:k_croatia ?= this -# title:k_serbia ?= this -# title:k_bosnia ?= this -# title:k_sicily ?= this -# title:k_venice ?= this -# title:k_naples ?= this -# } -# } -# set_de_jure_liege_title = title:e_illyria -# title:e_illyria = { set_de_jure_liege_title = title:h_roman_empire } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# OR = { -# title:k_thessalonika ?= this -# title:k_hellas ?= this -# title:k_krete ?= this -# title:k_bulgaria ?= this -# } -# } -# set_de_jure_liege_title = title:e_macedonia -# title:e_macedonia = { set_de_jure_liege_title = title:h_roman_empire } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# OR = { -# title:k_saruhan ?= this -# title:k_tekke ?= this -# title:k_trebizond ?= this -# title:k_ottoman ?= this -# title:k_rum ?= this -# title:k_mentese ?= this -# title:k_karaman ?= this -# title:k_germiyan ?= this -# title:k_cyprus ?= this -# title:k_eretnid ?= this -# title:k_candar ?= this -# title:k_nikaea ?= this -# title:k_pontus ?= this -# title:k_armenia ?= this -# title:k_georgia ?= this -# title:k_armenian_principality ?= this -# title:k_old_armenia ?= this -# title:k_anatolia ?= this -# title:k_aydin ?= this -# } -# } -# set_de_jure_liege_title = title:e_anatolia -# title:e_anatolia = { set_de_jure_liege_title = title:h_roman_empire } -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# if = { -# limit = { -# any_title_to_title_neighboring_and_across_water_empire = { -# count >= 1 -# } -# } -# random_title_to_title_neighboring_and_across_water_empire = { -# save_scope_as = new_empire_de_jure -# } -# set_de_jure_liege_title = scope:new_empire_de_jure -# } -# } -# } -# } -# } -#} -# -#create_eastern_roman_empire_scripted_effect = { -# if = { # First we move the domicile of root, if necessary -# limit = { -# exists = domicile -# domicile.domicile_location = { -# geographical_region = custom_ep3_restore_rome_eastern_empire -# } -# } -# domicile = { -# move_domicile = root.capital_province -# } -# } -# scope:new_holder = { # Secondly, we handle the new liege -# add_trait = augustus -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# if = { # We ensure they get Byzantion -# limit = { -# scope:new_holder != title:c_byzantion.holder -# } -# title:c_byzantion = { -# change_title_holder = { -# holder = scope:new_holder -# change = scope:change -# } -# } -# } -# # We move over the De Jure for all the basic titles -# title:e_byzantium ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } -# title:e_illyria ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } -# title:e_macedonia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } -# title:e_anatolia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } -# title:h_eastern_roman_empire = { # They get the new Roman Empire title -# change_title_holder = { -# holder = scope:new_holder -# change = scope:change -# } -# } -# root = { # They get every held title from current root in the greater region -# every_held_title = { -# limit = { -# tier = tier_county -# is_landless_type_title = no -# title_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } -# } -# change_title_holder = { -# holder = scope:new_holder -# change = scope:change -# } -# } -# } -# resolve_title_and_vassal_change = scope:change -# set_primary_title_to = title:h_eastern_roman_empire -# set_realm_capital = title:c_byzantion -# } -# -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# # Then all the direct vassals who should move over -# every_vassal = { -# limit = { -# highest_held_title_tier >= tier_county -# capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } -# } -# change_liege = { -# liege = scope:new_holder -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# # Then vassals who are not directly in line -# every_vassal_or_below = { -# limit = { -# highest_held_title_tier >= tier_county -# capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } -# } -# change_liege = { -# liege = scope:new_holder -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# # Then change the de_jure for empires that are de jure part of the Roman Empire, but who has mostly broken free -# every_empire = { -# limit = { -# hegemony ?= title:h_roman_empire -# any_de_jure_county = { -# percent >= 0.51 -# title_province = { -# geographical_region = custom_ep3_restore_rome_eastern_empire -# } -# } -# } -# set_de_jure_liege_title = title:h_eastern_roman_empire -# } -# -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# # Then every title that aren't county title held by root, but they have a majority of the titles under their rule -# every_held_title = { -# limit = { -# NOR = { -# tier = tier_county -# tier = tier_hegemony -# this = root.primary_title -# } -# is_landless_type_title = no -# any_de_jure_county = { -# percent >= 0.51 -# title_province = { -# geographical_region = custom_ep3_restore_rome_eastern_empire -# } -# } -# } -# change_title_holder = { -# holder = scope:new_holder -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# every_empire = { -# limit = { -# OR = { -# any_de_jure_county = { -# percent >= 0.75 -# holder = { -# OR = { -# this = scope:new_holder -# any_liege_or_above = { this = scope:new_holder } -# } -# } -# } -# AND = { -# de_jure_liege = title:h_eastern_roman_empire -# any_de_jure_county = { -# percent >= 0.51 -# holder = { -# OR = { -# this = scope:new_holder -# any_liege_or_above = { this = scope:new_holder } -# } -# } -# } -# } -# } -# } -# set_de_jure_liege_title = title:h_eastern_roman_empire -# } -#} -# -#mend_great_schism_scripted_effect = { -# root.faith = { -# if = { #If from obscure branch of Christianity, make it official. -# limit = { -# root.faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } -# } -# add_doctrine = special_doctrine_ecumenical_christian -# } -# change_fervor = { -# value = 25 -# desc = fervor_gain_mended_schism -# } -# hidden_effect = { -# religion = { -# every_faith = { -# limit = { -# this != religious_head.faith -# } -# remove_religious_head_title = yes -# } -# } -# } -# } -# every_player = { #Notify all players of the same Faith. -# limit = { -# this != root -# faith = root.faith -# } -# trigger_event = roman_restoration.0103 -# } -# every_ruler = { #Notify rulers of other Christian branches that they are no longer valid and offer chance at conversion. -# limit = { -# faith.religion = root.faith.religion -# faith != root.faith -# NOT = { government_has_flag = government_is_theocracy } -# this != this.faith.religious_head -# faith = { -# has_doctrine = special_doctrine_ecumenical_christian -# } -# } -# trigger_event = roman_restoration.0101 -# } -# every_player = { #Then notify all infidel players that might be around. -# limit = { -# OR = { -# AND = { #Either filthy heretics... -# faith.religion = root.faith.religion -# faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } -# } -# faith.religion != root.faith.religion #...Or Heathens. -# } -# } -# trigger_event = roman_restoration.0102 -# } -# religion:eastern_orthodox_religion = { -# every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. -# custom = every_ecumenical_christian_faith.tt -# limit = { -# this.religion = root.faith.religion -# has_doctrine = special_doctrine_ecumenical_christian -# this != root.faith -# } -# remove_doctrine = special_doctrine_ecumenical_christian -# change_fervor = { -# value = -25 -# desc = fervor_loss_mended_schism -# } -# } -# } -# religion:catholic_religion = { -# every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. -# custom = every_ecumenical_christian_faith.tt -# limit = { -# this.religion = root.faith.religion -# has_doctrine = special_doctrine_ecumenical_christian -# this != root.faith -# } -# remove_doctrine = special_doctrine_ecumenical_christian -# change_fervor = { -# value = -25 -# desc = fervor_loss_mended_schism -# } -# } -# } -# religion:protestant_religion = { -# every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. -# custom = every_ecumenical_christian_faith.tt -# limit = { -# this.religion = root.faith.religion -# has_doctrine = special_doctrine_ecumenical_christian -# this != root.faith -# } -# remove_doctrine = special_doctrine_ecumenical_christian -# change_fervor = { -# value = -25 -# desc = fervor_loss_mended_schism -# } -# } -# } -# -# set_nickname_effect = { NICKNAME = nick_the_ecumenist } -#} +create_roman_empire_scripted_effect = { + primary_title = { save_scope_as = old_primary_title } + add_trait = augustus + if = { + limit = { has_dlc_feature = legends } + create_legend_seed = { + type = legitimizing + quality = illustrious + chronicle = new_title + properties = { + title = title:h_roman_empire + founder = root + } + } + } + #Create Roman Empire, shift dejure/history/laws, destroy e_byzantium. + + if = { + limit = { capital_county = { this = title:c_byzantion } } + title:h_roman_empire = { + set_capital_county = title:c_byzantion + } + } + + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + copy_title_history = title:e_byzantium + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits + limit = { + scope:old_primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + + if = { #Automatically move capital to Constantinople, unless it's been set to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + NOT = { capital_county = { this = title:c_byzantion } } + culture = { has_cultural_pillar = heritage_byzantine } + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { this = title:c_byzantion.holder } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_byzantion = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + root = { set_realm_capital = title:c_byzantion } + } + else_if = { + limit = { + NOT = { capital_county = { this = title:c_roma } } + NOT = { capital_county = { this = title:c_byzantion } } + NOT = { culture = { has_cultural_pillar = heritage_byzantine } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { this = title:c_roma.holder } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + root = { set_realm_capital = title:c_roma } + } + hidden_effect = { + add_character_flag = flag_restorer_of_rome #used for Eulogy. + title:h_roman_empire = { + set_variable = rome_was_restored_by_byzantium + } + } +} + +create_roman_empire_holy_scripted_effect = { + add_trait = augustus + #Create Roman Empire, shift dejure/history/laws, destroy e_hre. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + primary_title = { + if = { + limit = { + any_in_de_jure_hierarchy = { + tier = tier_kingdom + OR = { + title:k_france ?= this + title:k_aquitaine ?= this + title:k_brittany ?= this + } + } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_france ?= this + title:k_aquitaine ?= this + title:k_brittany ?= this + } + } + set_de_jure_liege_title = title:e_france + title:e_france = { set_de_jure_liege_title = title:h_roman_empire } + } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_germany + title:e_germany = { set_de_jure_liege_title = title:h_roman_empire } + } + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_hre #Used for flavor later. + value = yes + } + copy_title_history = title:e_hre + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) + limit = { + primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + hidden_effect = { + title:h_roman_empire = { + set_coa = e_hre_roman + set_title_color = { 255 255 255 } + } + } + + if = { #Automatically move capital to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_roma.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:h_roman_empire.holder = { set_realm_capital = title:c_roma } + } + hidden_effect = { + create_story = restoring_roman_provinces_story + add_character_flag = flag_restorer_of_rome #used for Eulogy. + } +} + +create_roman_empire_italy_scripted_effect = { + add_trait = augustus + #Create Roman Empire, shift dejure/history/laws, destroy e_italy. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Empires owned at the time. + title_tier = empire + + set_de_jure_liege_title = title:h_roman_empire + } + every_empire = { + limit = { + NOT = { exists = hegemony } + any_de_jure_county = { + percent >= 0.6 + holder = { + OR = { + this = root + any_liege_or_above = { this = root } + } + } + } + } + set_de_jure_liege_title = title:h_roman_empire + } + } + split_byzantine_empire_effect = yes + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:h_roman_empire = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_italy #Used for flavor later. + value = yes + } + copy_title_history = title:e_italy + } + resolve_title_and_vassal_change = scope:change + if = { # Move your Title MaAs to your new title if you have any + limit = { + government_allows = administrative + primary_title = { + any_title_maa_regiment = { } + } + } + hidden_effect = { + primary_title = { transfer_title_maa_ownership = title:h_roman_empire } + } + } + if = { # If you have founded the Varangian Guard, you get to keep the benefits (you are not likely to have done it here, but better safe than sorry) + limit = { + primary_title = { has_variable = founded_varangian_guard } + } + hidden_effect = { + title:h_roman_empire = { set_variable = founded_varangian_guard } + } + } + hidden_effect = { set_primary_title_to = title:h_roman_empire } + every_held_title = { #Should destroy all other Empires owned at the time. + title_tier = empire + + root = { destroy_title = prev } + } + if = { #Automatically move capital to Rome. + limit = { + NOT = { capital_county = { this = title:c_roma } } + exists = title:h_roman_empire.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_roma.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_roma = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:h_roman_empire.holder = { set_realm_capital = title:c_roma } + } + hidden_effect = { + create_story = restoring_roman_provinces_story + add_character_flag = flag_restorer_of_rome #used for Eulogy. + } +} + +split_byzantine_empire_effect = { + hidden_effect = { + title:e_byzantium = { + if = { + limit = { + OR = { + NOT = { exists = holder } + holder ?= root + } + } + every_in_de_jure_hierarchy = { + limit = { + title:e_italy ?= { is_titular = no } + tier = tier_kingdom + OR = { + title:k_trinacria ?= this + title:k_sicily ?= this + title:k_naples ?= this + title:k_venice ?= this + } + } + set_de_jure_liege_title = title:e_italy + title:e_italy = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_trinacria ?= this + title:k_epirus ?= this + title:k_croatia ?= this + title:k_serbia ?= this + title:k_bosnia ?= this + title:k_sicily ?= this + title:k_venice ?= this + title:k_naples ?= this + } + } + set_de_jure_liege_title = title:e_illyria + title:e_illyria = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_thessalonika ?= this + title:k_hellas ?= this + title:k_krete ?= this + title:k_bulgaria ?= this + } + } + set_de_jure_liege_title = title:e_macedonia + title:e_macedonia = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + OR = { + title:k_saruhan ?= this + title:k_tekke ?= this + title:k_trebizond ?= this + title:k_ottoman ?= this + title:k_rum ?= this + title:k_mentese ?= this + title:k_karaman ?= this + title:k_germiyan ?= this + title:k_cyprus ?= this + title:k_eretnid ?= this + title:k_candar ?= this + title:k_nikaea ?= this + title:k_pontus ?= this + title:k_armenia ?= this + title:k_georgia ?= this + title:k_armenian_principality ?= this + title:k_old_armenia ?= this + title:k_anatolia ?= this + title:k_aydin ?= this + } + } + set_de_jure_liege_title = title:e_anatolia + title:e_anatolia = { set_de_jure_liege_title = title:h_roman_empire } + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + if = { + limit = { + any_title_to_title_neighboring_and_across_water_empire = { + count >= 1 + } + } + random_title_to_title_neighboring_and_across_water_empire = { + save_scope_as = new_empire_de_jure + } + set_de_jure_liege_title = scope:new_empire_de_jure + } + } + } + } + } +} + +create_eastern_roman_empire_scripted_effect = { + if = { # First we move the domicile of root, if necessary + limit = { + exists = domicile + domicile.domicile_location = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + domicile = { + move_domicile = root.capital_province + } + } + scope:new_holder = { # Secondly, we handle the new liege + add_trait = augustus + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + if = { # We ensure they get Byzantion + limit = { + scope:new_holder != title:c_byzantion.holder + } + title:c_byzantion = { + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + } + # We move over the De Jure for all the basic titles + title:e_byzantium ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_illyria ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_macedonia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:e_anatolia ?= { set_de_jure_liege_title = title:h_eastern_roman_empire } + title:h_eastern_roman_empire = { # They get the new Roman Empire title + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + root = { # They get every held title from current root in the greater region + every_held_title = { + limit = { + tier = tier_county + is_landless_type_title = no + title_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + } + resolve_title_and_vassal_change = scope:change + set_primary_title_to = title:h_eastern_roman_empire + set_realm_capital = title:c_byzantion + } + + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then all the direct vassals who should move over + every_vassal = { + limit = { + highest_held_title_tier >= tier_county + capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_liege = { + liege = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then vassals who are not directly in line + every_vassal_or_below = { + limit = { + highest_held_title_tier >= tier_county + capital_province = { geographical_region = custom_ep3_restore_rome_eastern_empire } + } + change_liege = { + liege = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + # Then change the de_jure for empires that are de jure part of the Roman Empire, but who has mostly broken free + every_empire = { + limit = { + hegemony ?= title:h_roman_empire + any_de_jure_county = { + percent >= 0.51 + title_province = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + } + set_de_jure_liege_title = title:h_eastern_roman_empire + } + + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + # Then every title that aren't county title held by root, but they have a majority of the titles under their rule + every_held_title = { + limit = { + NOR = { + tier = tier_county + tier = tier_hegemony + this = root.primary_title + } + is_landless_type_title = no + any_de_jure_county = { + percent >= 0.51 + title_province = { + geographical_region = custom_ep3_restore_rome_eastern_empire + } + } + } + change_title_holder = { + holder = scope:new_holder + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + + every_empire = { + limit = { + OR = { + any_de_jure_county = { + percent >= 0.75 + holder = { + OR = { + this = scope:new_holder + any_liege_or_above = { this = scope:new_holder } + } + } + } + AND = { + de_jure_liege = title:h_eastern_roman_empire + any_de_jure_county = { + percent >= 0.51 + holder = { + OR = { + this = scope:new_holder + any_liege_or_above = { this = scope:new_holder } + } + } + } + } + } + } + set_de_jure_liege_title = title:h_eastern_roman_empire + } +} + +mend_great_schism_scripted_effect = { + root.faith = { + if = { #If from obscure branch of Christianity, make it official. + limit = { + root.faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + } + add_doctrine = special_doctrine_ecumenical_christian + } + change_fervor = { + value = 25 + desc = fervor_gain_mended_schism + } + hidden_effect = { + religion = { + every_faith = { + limit = { + this != religious_head.faith + } + remove_religious_head_title = yes + } + } + } + } + every_player = { #Notify all players of the same Faith. + limit = { + this != root + faith = root.faith + } + trigger_event = roman_restoration.0103 + } + every_ruler = { #Notify rulers of other Christian branches that they are no longer valid and offer chance at conversion. + limit = { + faith.religion = root.faith.religion + faith != root.faith + NOT = { government_has_flag = government_is_theocracy } + this != this.faith.religious_head + faith = { + has_doctrine = special_doctrine_ecumenical_christian + } + } + trigger_event = roman_restoration.0101 + } + every_player = { #Then notify all infidel players that might be around. + limit = { + OR = { + AND = { #Either filthy heretics... + faith.religion = root.faith.religion + faith = { NOT = { has_doctrine = special_doctrine_ecumenical_christian } } + } + faith.religion != root.faith.religion #...Or Heathens. + } + } + trigger_event = roman_restoration.0102 + } + religion:eastern_orthodox_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + religion:catholic_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + religion:protestant_religion = { + every_faith = { #All main branches of Christianity that were considered Ecumenical are now heresies. + custom = every_ecumenical_christian_faith.tt + limit = { + this.religion = root.faith.religion + has_doctrine = special_doctrine_ecumenical_christian + this != root.faith + } + remove_doctrine = special_doctrine_ecumenical_christian + change_fervor = { + value = -25 + desc = fervor_loss_mended_schism + } + } + } + + set_nickname_effect = { NICKNAME = nick_the_ecumenist } +} restore_papacy_scripted_effect = { save_scope_as = reformer @@ -892,7 +892,7 @@ destroy_papacy_scripted_effect = { } else_if = { limit = { - faith.religion = faith:megalocratic.religion + faith.religion = faith:hellenic_pagan.religion } scope:scoped_pope = { death = { @@ -931,533 +931,533 @@ destroy_papacy_scripted_effect = { } } -#form_switzerland_scripted_effect = { -# save_scope_as = scoped_ruler -# title:e_hre.holder = { save_scope_as = scoped_emperor } -# title:d_savoie = { save_scope_as = savoy } -# title:k_switzerland = { save_scope_as = switzerland } -# #De jure shifts. -# title:d_mittelland = { set_de_jure_liege_title = title:k_switzerland } -# title:d_transjurania = { set_de_jure_liege_title = title:k_switzerland } -# if = { -# limit = { completely_controls = title:d_savoie } -# title:d_savoie = { set_de_jure_liege_title = title:k_switzerland } -# } -# else = { custom_tooltip = form_switzerland_kingdom_decision_effect_tooltip } -# title:k_switzerland = { set_de_jure_liege_title = root.top_liege.primary_title } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:k_switzerland = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# hidden_effect = { set_primary_title_to = title:k_switzerland } -# add_prestige = major_prestige_gain -# if = { -# limit = { -# OR = { -# has_realm_law = crown_authority_0 -# has_realm_law = crown_authority_1 -# has_realm_law = crown_authority_2 -# } -# } -# add_realm_law_skip_effects = crown_authority_3 -# } -#} -# -#form_austria_scripted_effect = { -# #Grab scopes for loc and such. -# save_scope_as = scoped_ruler -# title:e_hre.holder = { save_scope_as = scoped_emperor } -# title:d_carinthia = { save_scope_as = carinthia } -# title:d_slovenia = {save_scope_as = krain } -# title:d_istria = { save_scope_as = istria } -# title:k_austria = { save_scope_as = austria} -# title:d_croatia.de_jure_liege = { save_scope_as = new_controller} -# #Hand over k_austria. -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:k_austria = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# copy_title_history = title:d_lower_austria -# } -# resolve_title_and_vassal_change = scope:change -# #Try to make it the primary title, unless it's the Emperor doing this. -# hidden_effect = { -# if = { -# limit = { primary_title.tier <= tier_kingdom } -# set_primary_title_to = title:k_austria -# } -# } -# #Save d_austria's current de jure liege for future reference. -# title:d_lower_austria.de_jure_liege = { save_scope_as = previous_kingdom } -# #Transfer custom_core_austria (d_austria & d_steyermark) to the new Archduchy. -# hidden_effect = { -# title:k_austria = { -# set_de_jure_liege_title = scope:previous_kingdom.de_jure_liege -# } -# -# every_county_in_region = { -# region = custom_core_austria -# duchy = { add_to_list = austrian_heartlands_list } -# } -# every_in_list = { -# list = austrian_heartlands_list -# limit = { -# NOT = { de_jure_liege = title:k_austria } -# } -# set_de_jure_liege_title = title:k_austria -# } -# -# } -# #Sort Carinthia. -# if = { -# limit = { completely_controls = title:d_carinthia } -# title:d_carinthia = { set_de_jure_liege_title = title:k_austria } -# } -# else = { custom_tooltip = form_austria_kingdom_decision_effect_stretch_goals_tt } -# #Sort d_slovenia, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_istria. -# if = { -# limit = { -# completely_controls = title:d_slovenia -# #d_slovenia must be part of d_lower_austria's former kingdom. -# title:d_slovenia.de_jure_liege = scope:previous_kingdom -# } -# title:d_slovenia = { set_de_jure_liege_title = title:k_austria } -# } -# else_if = { -# limit = { -# #Krain must be part of d_lower_austria's former kingdom. -# title:d_slovenia.de_jure_liege = scope:previous_kingdom -# #Cannot border any other part of the former kingdom other than Istria. -# NOR = { -# title:d_slavonia.de_jure_liege = scope:previous_kingdom -# title:d_croatia.de_jure_liege = scope:previous_kingdom -# title:d_friuli.de_jure_liege = scope:previous_kingdom -# } -# #Check d_carinthia separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. -# completely_controls = title:d_carinthia -# } -# hidden_effect = { -# title:d_slovenia = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } -# save_scope_value_as = { -# name = krain_isolated -# value = yes -# } -# } -# } -# #Sort d_istria, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_slovenia. -# if = { -# limit = { -# completely_controls = title:d_istria -# #d_istria must be part of d_lower_austria's former kingdom. -# title:d_istria.de_jure_liege = scope:previous_kingdom -# } -# title:d_istria = { set_de_jure_liege_title = title:k_austria } -# } -# else_if = { -# limit = { -# #d_istria must be part of d_lower_austria's former kingdom. -# title:d_istria.de_jure_liege = scope:previous_kingdom -# #Cannot border any other part of the former kingdom. -# NOR = { -# title:d_croatia.de_jure_liege = scope:previous_kingdom -# title:d_friuli.de_jure_liege = scope:previous_kingdom -# } -# #Check d_slovenia separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. -# completely_controls = title:d_carinthia -# } -# hidden_effect = { -# title:d_istria = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } -# save_scope_value_as = { -# name = istria_isolated -# value = yes -# } -# } -# } -# #Sort notice of what's happening to Istria/Krain. -# if = { -# limit = { -# exists = scope:krain_isolated -# exists = scope:istria_isolated -# } -# custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_both_tt -# } -# else_if = { -# limit = { exists = scope:krain_isolated } -# custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_krain_tt -# } -# else_if = { -# limit = { exists = scope:istria_isolated} -# custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_istria_tt -# } -# #Sundry other rewards. -# add_prestige = major_prestige_gain -# if = { -# limit = { -# NOT = { has_realm_law = single_heir_succession_law } -# } -# add_realm_law_skip_effects = single_heir_succession_law -# } -# #Check to see if we're using that strong hook! -# if = { -# limit = { -# NOT = { dynasty = title:e_hre.holder.dynasty } -# } -# use_hook = title:e_hre.holder -# } -#} -# -#form_carolingian_empire_scripted_effect = { -# save_scope_as = scoped_ruler -# title:e_hre.holder ?= { save_scope_as = scoped_emperor } -# #De jure shifts. -# hidden_effect = { -# title:k_france = { set_de_jure_liege_title = title:e_france } -# title:k_burgundy = { set_de_jure_liege_title = title:e_france } -# title:k_aquitaine = { set_de_jure_liege_title = title:e_france } -# title:k_brittany = { set_de_jure_liege_title = title:e_france } -# title:k_frisia = { set_de_jure_liege_title = title:e_france } -# title:k_lotharingia = { set_de_jure_liege_title = title:e_france } -# title:k_bavaria = { set_de_jure_liege_title = title:e_france } -# title:k_east_francia = { set_de_jure_liege_title = title:e_france } -# title:k_italy = { set_de_jure_liege_title = title:e_france } -# title:k_navarra = { set_de_jure_liege_title = title:e_france } -# title:k_aragon = { set_de_jure_liege_title = title:e_france } -# if = { -# limit = { -# OR = { -# #exists = title:k_austria.holder -# title:k_austria = { is_titular = yes } -# title:e_hre = { -# any_in_de_jure_hierarchy = { -# continue = { tier >= tier_kingdom } -# this = title:k_austria -# } -# } -# } -# } -# title:k_austria = { set_de_jure_liege_title = title:e_france } -# } -# if = { -# limit = { -# OR = { -# #exists = title:k_switzerland.holder -# title:k_switzerland = { is_titular = yes } -# title:e_hre = { -# any_in_de_jure_hierarchy = { -# continue = { tier >= tier_kingdom } -# this = title:k_switzerland -# } -# } -# } -# } -# title:k_switzerland = { set_de_jure_liege_title = title:e_france } -# } -# } -# # Prestige -# add_prestige = major_prestige_gain -# # Law -# if = { -# limit = { -# NOT = { has_realm_law = single_heir_succession_law } -# } -# add_realm_law_skip_effects = single_heir_succession_law -# } -# # HRE goes bye-bye -# if = { -# limit = { exists = scope:scoped_emperor } -# destroy_title = title:e_hre -# scope:scoped_emperor ?= { -# add_prestige = major_prestige_loss -# add_opinion = { -# target = scope:scoped_ruler -# modifier = pretender_opinion -# } -# } -# } -# # Innovations -# culture:french = { -# if = { -# limit = { -# NOT = { has_innovation = innovation_knighthood } -# } -# add_innovation = innovation_knighthood -# } -# if = { -# limit = { -# NOT = { has_innovation = innovation_royal_prerogative } -# } -# add_innovation = innovation_royal_prerogative -# } -# if = { -# limit = { -# NOT = { has_innovation = innovation_heraldry } -# } -# add_innovation = innovation_heraldry -# } -# } -#} -# -#unite_burgundies_scripted_effect = { -# add_prestige = medium_prestige_gain -# save_scope_as = scoped_ruler -# liege = { save_scope_as = former_liege } -# #De jure shifts. -# hidden_effect = { -# title:d_burgundy = { -# set_de_jure_liege_title = title:k_burgundy -# } -# title:d_provence = { #Just in case they drifted in the meantime. -# set_de_jure_liege_title = title:k_burgundy -# } -# title:d_savoie = { -# set_de_jure_liege_title = title:k_burgundy -# } -# title:d_dauphine = { -# set_de_jure_liege_title = title:k_burgundy -# } -# title:d_upper_burgundy = { -# set_de_jure_liege_title = title:k_burgundy -# } -# } -# if = { -# limit = { -# culture:occitan = { -# NOT = { -# has_innovation = innovation_guilds -# } -# } -# } -# culture:occitan = { -# add_innovation = innovation_guilds -# } -# } -# if = { -# limit = { -# culture:occitan = { -# NOT = { -# has_innovation = innovation_burhs -# } -# } -# } -# culture:occitan = { -# add_innovation = innovation_burhs -# } -# } -# if = { -# limit = { -# culture:occitan = { -# NOT = { -# has_innovation = innovation_baliffs -# } -# } -# } -# culture:occitan = { -# add_innovation = innovation_baliffs -# } -# } -# #Make ruler independent and give Burgundy to him. -# 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 = this -# } -# hidden_effect = { -# add_truce_both_ways = { -# character = scope:former_liege -# days = 1825 -# name = TRUCE_GRANT_INDEPENDENCE_ROOT -# } -# } -# resolve_title_and_vassal_change = scope:change -# create_title_and_vassal_change = { -# type = created -# save_scope_as = new_burgundy -# add_claim_on_loss = no -# } -# title:k_burgundy = { -# change_title_holder = { -# holder = root -# change = scope:new_burgundy -# } -# } -# resolve_title_and_vassal_change = scope:new_burgundy -# scope:former_liege = { -# add_prestige = major_prestige_loss -# add_unpressed_claim = title:k_burgundy #Give chance to retaliate -# add_opinion = { -# target = scope:scoped_ruler -# modifier = pretender_opinion -# } -# } -#} -# -#form_outremer_scripted_effect = { -# add_prestige = medium_prestige_gain -# add_piety = medium_piety_gain -# -# #Saving Scope to refer to it fervor localization -# title:e_outremer = { -# save_scope_as = outremer_title -# } -# faith = { -# change_fervor = { -# value = 15 -# desc = fervor_gain_formed_outremer -# } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:e_outremer = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# hidden_effect = { -# copy_title_history = title:k_jerusalem -# } -# } -# resolve_title_and_vassal_change = scope:change -# hidden_effect = { set_primary_title_to = title:e_outremer } -# if = { #The Sunni Caliphate is dismantled -# limit = { -# faith:aqlani = { exists = religious_head } -# } -# root = { destroy_title = title:d_sunni } -# } -# culture = { save_scope_as = former_culture } -# capital_county.title_province.culture = { save_scope_as = capital_culture } -# -# # If the player's capital is Arabic and the player is not, hybridize with the capital culture -# if = { -# limit = { -# scope:capital_culture != scope:former_culture -# NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } -# scope:capital_culture = { has_cultural_pillar = heritage_arabic } -# culture = { -# OR = { -# is_hybrid_culture = no -# AND = { -# NOT = { has_cultural_pillar = heritage_arabic } -# NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } -# } -# } -# } -# } -# scope:capital_culture = { save_scope_as = hybrid_culture } -# create_hybrid_culture = scope:capital_culture -# } -# -# # If the player has not become Arabic, hybridize with Mashiriqi (Levantine) -# else_if = { -# limit = { -# NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } -# culture = { -# OR = { -# is_hybrid_culture = no -# AND = { -# NOT = { has_cultural_pillar = heritage_arabic } -# NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } -# } -# } -# } -# } -# culture:levantine = { save_scope_as = hybrid_culture } -# create_hybrid_culture = culture:levantine -# } -# -# # If the player has become Arabic, hybridize with Occitan -# else_if = { -# limit = { -# culture = { -# OR = { -# is_hybrid_culture = no -# AND = { -# NOT = { has_cultural_pillar = heritage_arabic } -# NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } -# } -# } -# } -# } -# culture:occitan = { save_scope_as = hybrid_culture } -# create_hybrid_culture = culture:occitan -# } -# #If the player is already a European-Arabic hybrid, just save the existing culture -# else = { -# scope:former_culture = { save_scope_as = new_culture } -# } -# -# if = { -# limit = { exists = scope:new_culture } -# capital_county = { set_county_culture = scope:new_culture } -# scope:new_culture = { -# if = { -# limit = { -# OR = { -# has_cultural_pillar = heritage_frankish -# any_parent_culture = { has_cultural_pillar = heritage_frankish } -# } -# } -# set_name_list = name_list_outremer -# } -# if = { -# limit = { -# NOT = { has_innovation = innovation_men_at_arms } -# } -# add_innovation = innovation_men_at_arms -# } -# if = { -# limit = { -# NOT = { has_innovation = innovation_desert_tactics } -# } -# add_innovation = innovation_desert_tactics -# } -# hidden_effect = { -# if = { -# limit = { -# NOT = { has_same_culture_language = scope:former_culture } -# } -# set_language_from = scope:former_culture -# } -# if = { -# limit = { -# exists = scope:hybrid_culture -# NOT = { has_same_culture_heritage = scope:hybrid_culture } -# } -# set_heritage_from = scope:hybrid_culture -# } -# } -# } -# } -# else = { -# show_as_tooltip = { -# if = { -# limit = { exists = scope:hybrid_culture } -# custom_tooltip = outremer_decision_hybrid_tt -# } -# } -# } -#} +form_switzerland_scripted_effect = { + save_scope_as = scoped_ruler + title:e_hre.holder = { save_scope_as = scoped_emperor } + title:d_savoie = { save_scope_as = savoy } + title:k_switzerland = { save_scope_as = switzerland } + #De jure shifts. + title:d_mittelland = { set_de_jure_liege_title = title:k_switzerland } + title:d_transjurania = { set_de_jure_liege_title = title:k_switzerland } + if = { + limit = { completely_controls = title:d_savoie } + title:d_savoie = { set_de_jure_liege_title = title:k_switzerland } + } + else = { custom_tooltip = form_switzerland_kingdom_decision_effect_tooltip } + title:k_switzerland = { set_de_jure_liege_title = root.top_liege.primary_title } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_switzerland = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_switzerland } + add_prestige = major_prestige_gain + if = { + limit = { + OR = { + has_realm_law = crown_authority_0 + has_realm_law = crown_authority_1 + has_realm_law = crown_authority_2 + } + } + add_realm_law_skip_effects = crown_authority_3 + } +} + +form_austria_scripted_effect = { + #Grab scopes for loc and such. + save_scope_as = scoped_ruler + title:e_hre.holder = { save_scope_as = scoped_emperor } + title:d_carinthia = { save_scope_as = carinthia } + title:d_slovenia = {save_scope_as = krain } + title:d_istria = { save_scope_as = istria } + title:k_austria = { save_scope_as = austria} + title:d_croatia.de_jure_liege = { save_scope_as = new_controller} + #Hand over k_austria. + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_austria = { + change_title_holder = { + holder = root + change = scope:change + } + copy_title_history = title:d_lower_austria + } + resolve_title_and_vassal_change = scope:change + #Try to make it the primary title, unless it's the Emperor doing this. + hidden_effect = { + if = { + limit = { primary_title.tier <= tier_kingdom } + set_primary_title_to = title:k_austria + } + } + #Save d_austria's current de jure liege for future reference. + title:d_lower_austria.de_jure_liege = { save_scope_as = previous_kingdom } + #Transfer custom_core_austria (d_austria & d_steyermark) to the new Archduchy. + hidden_effect = { + title:k_austria = { + set_de_jure_liege_title = scope:previous_kingdom.de_jure_liege + } + + every_county_in_region = { + region = custom_core_austria + duchy = { add_to_list = austrian_heartlands_list } + } + every_in_list = { + list = austrian_heartlands_list + limit = { + NOT = { de_jure_liege = title:k_austria } + } + set_de_jure_liege_title = title:k_austria + } + + } + #Sort Carinthia. + if = { + limit = { completely_controls = title:d_carinthia } + title:d_carinthia = { set_de_jure_liege_title = title:k_austria } + } + else = { custom_tooltip = form_austria_kingdom_decision_effect_stretch_goals_tt } + #Sort d_slovenia, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_istria. + if = { + limit = { + completely_controls = title:d_slovenia + #d_slovenia must be part of d_lower_austria's former kingdom. + title:d_slovenia.de_jure_liege = scope:previous_kingdom + } + title:d_slovenia = { set_de_jure_liege_title = title:k_austria } + } + else_if = { + limit = { + #Krain must be part of d_lower_austria's former kingdom. + title:d_slovenia.de_jure_liege = scope:previous_kingdom + #Cannot border any other part of the former kingdom other than Istria. + NOR = { + title:d_slavonia.de_jure_liege = scope:previous_kingdom + title:d_croatia.de_jure_liege = scope:previous_kingdom + title:d_friuli.de_jure_liege = scope:previous_kingdom + } + #Check d_carinthia separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. + completely_controls = title:d_carinthia + } + hidden_effect = { + title:d_slovenia = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } + save_scope_value_as = { + name = krain_isolated + value = yes + } + } + } + #Sort d_istria, giving it to k_austria, the de jure liege of d_croatia, or leaving it as-is, depending on if it borders any part of scope:previous_kingdom other than d_slovenia. + if = { + limit = { + completely_controls = title:d_istria + #d_istria must be part of d_lower_austria's former kingdom. + title:d_istria.de_jure_liege = scope:previous_kingdom + } + title:d_istria = { set_de_jure_liege_title = title:k_austria } + } + else_if = { + limit = { + #d_istria must be part of d_lower_austria's former kingdom. + title:d_istria.de_jure_liege = scope:previous_kingdom + #Cannot border any other part of the former kingdom. + NOR = { + title:d_croatia.de_jure_liege = scope:previous_kingdom + title:d_friuli.de_jure_liege = scope:previous_kingdom + } + #Check d_slovenia separately, since before the effect is run (i.e., in the decision tooltip) its liege will still be scope:previous_kingdom. + completely_controls = title:d_carinthia + } + hidden_effect = { + title:d_istria = { set_de_jure_liege_title = title:d_croatia.de_jure_liege } + save_scope_value_as = { + name = istria_isolated + value = yes + } + } + } + #Sort notice of what's happening to Istria/Krain. + if = { + limit = { + exists = scope:krain_isolated + exists = scope:istria_isolated + } + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_both_tt + } + else_if = { + limit = { exists = scope:krain_isolated } + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_krain_tt + } + else_if = { + limit = { exists = scope:istria_isolated} + custom_tooltip = form_austria_kingdom_decision_effect_stretch_fail_istria_tt + } + #Sundry other rewards. + add_prestige = major_prestige_gain + if = { + limit = { + NOT = { has_realm_law = single_heir_succession_law } + } + add_realm_law_skip_effects = single_heir_succession_law + } + #Check to see if we're using that strong hook! + if = { + limit = { + NOT = { dynasty = title:e_hre.holder.dynasty } + } + use_hook = title:e_hre.holder + } +} + +form_carolingian_empire_scripted_effect = { + save_scope_as = scoped_ruler + title:e_hre.holder ?= { save_scope_as = scoped_emperor } + #De jure shifts. + hidden_effect = { + title:k_france = { set_de_jure_liege_title = title:e_france } + title:k_burgundy = { set_de_jure_liege_title = title:e_france } + title:k_aquitaine = { set_de_jure_liege_title = title:e_france } + title:k_brittany = { set_de_jure_liege_title = title:e_france } + title:k_frisia = { set_de_jure_liege_title = title:e_france } + title:k_lotharingia = { set_de_jure_liege_title = title:e_france } + title:k_bavaria = { set_de_jure_liege_title = title:e_france } + title:k_east_francia = { set_de_jure_liege_title = title:e_france } + title:k_italy = { set_de_jure_liege_title = title:e_france } + title:k_navarra = { set_de_jure_liege_title = title:e_france } + title:k_aragon = { set_de_jure_liege_title = title:e_france } + if = { + limit = { + OR = { + #exists = title:k_austria.holder + title:k_austria = { is_titular = yes } + title:e_hre = { + any_in_de_jure_hierarchy = { + continue = { tier >= tier_kingdom } + this = title:k_austria + } + } + } + } + title:k_austria = { set_de_jure_liege_title = title:e_france } + } + if = { + limit = { + OR = { + #exists = title:k_switzerland.holder + title:k_switzerland = { is_titular = yes } + title:e_hre = { + any_in_de_jure_hierarchy = { + continue = { tier >= tier_kingdom } + this = title:k_switzerland + } + } + } + } + title:k_switzerland = { set_de_jure_liege_title = title:e_france } + } + } + # Prestige + add_prestige = major_prestige_gain + # Law + if = { + limit = { + NOT = { has_realm_law = single_heir_succession_law } + } + add_realm_law_skip_effects = single_heir_succession_law + } + # HRE goes bye-bye + if = { + limit = { exists = scope:scoped_emperor } + destroy_title = title:e_hre + scope:scoped_emperor ?= { + add_prestige = major_prestige_loss + add_opinion = { + target = scope:scoped_ruler + modifier = pretender_opinion + } + } + } + # Innovations + culture:french = { + if = { + limit = { + NOT = { has_innovation = innovation_knighthood } + } + add_innovation = innovation_knighthood + } + if = { + limit = { + NOT = { has_innovation = innovation_royal_prerogative } + } + add_innovation = innovation_royal_prerogative + } + if = { + limit = { + NOT = { has_innovation = innovation_heraldry } + } + add_innovation = innovation_heraldry + } + } +} + +unite_burgundies_scripted_effect = { + add_prestige = medium_prestige_gain + save_scope_as = scoped_ruler + liege = { save_scope_as = former_liege } + #De jure shifts. + hidden_effect = { + title:d_burgundy = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_provence = { #Just in case they drifted in the meantime. + set_de_jure_liege_title = title:k_burgundy + } + title:d_savoie = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_dauphine = { + set_de_jure_liege_title = title:k_burgundy + } + title:d_upper_burgundy = { + set_de_jure_liege_title = title:k_burgundy + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_guilds + } + } + } + culture:occitan = { + add_innovation = innovation_guilds + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_burhs + } + } + } + culture:occitan = { + add_innovation = innovation_burhs + } + } + if = { + limit = { + culture:occitan = { + NOT = { + has_innovation = innovation_baliffs + } + } + } + culture:occitan = { + add_innovation = innovation_baliffs + } + } + #Make ruler independent and give Burgundy to him. + 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 = this + } + hidden_effect = { + add_truce_both_ways = { + character = scope:former_liege + days = 1825 + name = TRUCE_GRANT_INDEPENDENCE_ROOT + } + } + resolve_title_and_vassal_change = scope:change + create_title_and_vassal_change = { + type = created + save_scope_as = new_burgundy + add_claim_on_loss = no + } + title:k_burgundy = { + change_title_holder = { + holder = root + change = scope:new_burgundy + } + } + resolve_title_and_vassal_change = scope:new_burgundy + scope:former_liege = { + add_prestige = major_prestige_loss + add_unpressed_claim = title:k_burgundy #Give chance to retaliate + add_opinion = { + target = scope:scoped_ruler + modifier = pretender_opinion + } + } +} + +form_outremer_scripted_effect = { + add_prestige = medium_prestige_gain + add_piety = medium_piety_gain + + #Saving Scope to refer to it fervor localization + title:e_outremer = { + save_scope_as = outremer_title + } + faith = { + change_fervor = { + value = 15 + desc = fervor_gain_formed_outremer + } + } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:e_outremer = { + change_title_holder = { + holder = root + change = scope:change + } + hidden_effect = { + copy_title_history = title:k_jerusalem + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:e_outremer } + if = { #The Sunni Caliphate is dismantled + limit = { + faith:aqlani = { exists = religious_head } + } + root = { destroy_title = title:d_sunni } + } + culture = { save_scope_as = former_culture } + capital_county.title_province.culture = { save_scope_as = capital_culture } + + # If the player's capital is Arabic and the player is not, hybridize with the capital culture + if = { + limit = { + scope:capital_culture != scope:former_culture + NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } + scope:capital_culture = { has_cultural_pillar = heritage_arabic } + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + scope:capital_culture = { save_scope_as = hybrid_culture } + create_hybrid_culture = scope:capital_culture + } + + # If the player has not become Arabic, hybridize with Mashiriqi (Levantine) + else_if = { + limit = { + NOT = { scope:former_culture = { has_cultural_pillar = heritage_arabic } } + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + culture:levantine = { save_scope_as = hybrid_culture } + create_hybrid_culture = culture:levantine + } + + # If the player has become Arabic, hybridize with Occitan + else_if = { + limit = { + culture = { + OR = { + is_hybrid_culture = no + AND = { + NOT = { has_cultural_pillar = heritage_arabic } + NOT = { any_parent_culture = { has_cultural_pillar = heritage_arabic } } + } + } + } + } + culture:occitan = { save_scope_as = hybrid_culture } + create_hybrid_culture = culture:occitan + } + #If the player is already a European-Arabic hybrid, just save the existing culture + else = { + scope:former_culture = { save_scope_as = new_culture } + } + + if = { + limit = { exists = scope:new_culture } + capital_county = { set_county_culture = scope:new_culture } + scope:new_culture = { + if = { + limit = { + OR = { + has_cultural_pillar = heritage_frankish + any_parent_culture = { has_cultural_pillar = heritage_frankish } + } + } + set_name_list = name_list_outremer + } + if = { + limit = { + NOT = { has_innovation = innovation_men_at_arms } + } + add_innovation = innovation_men_at_arms + } + if = { + limit = { + NOT = { has_innovation = innovation_desert_tactics } + } + add_innovation = innovation_desert_tactics + } + hidden_effect = { + if = { + limit = { + NOT = { has_same_culture_language = scope:former_culture } + } + set_language_from = scope:former_culture + } + if = { + limit = { + exists = scope:hybrid_culture + NOT = { has_same_culture_heritage = scope:hybrid_culture } + } + set_heritage_from = scope:hybrid_culture + } + } + } + } + else = { + show_as_tooltip = { + if = { + limit = { exists = scope:hybrid_culture } + custom_tooltip = outremer_decision_hybrid_tt + } + } + } +} restore_sunni_caliphate_scripted_effect = { add_piety = major_piety_gain @@ -1482,100 +1482,100 @@ restore_sunni_caliphate_scripted_effect = { } } } -#create_israel_scripted_effect = { -# save_scope_as = scoped_ruler -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# add_claim_on_loss = no -# } -# title:k_israel = { -# change_title_holder = { -# holder = scope:scoped_ruler -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# hidden_effect = { -# set_primary_title_to = title:k_israel -# title:d_palestine = { -# set_de_jure_liege_title = title:k_israel -# } -# title:d_urdunn = { -# set_de_jure_liege_title = title:k_israel -# } -# title:d_oultrejourdain = { -# set_de_jure_liege_title = title:k_israel -# } -# title:k_israel = { -# set_de_jure_liege_title = title:k_jerusalem.de_jure_liege -# } -# } -#} -#create_rum_scripted_effect = { -# add_prestige = medium_prestige_gain -# #If under a liege, make independent. -# if = { -# limit = { -# top_liege != this -# } -# if = { -# limit = { -# NOT = { -# exists = scope:former_liege -# } -# } -# liege = { -# save_scope_as = former_liege -# } -# } -# 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 = this -# } -# hidden_effect = { -# add_truce_both_ways = { -# character = scope:former_liege -# days = 1825 -# name = TRUCE_GRANT_INDEPENDENCE_ROOT -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = new_rum -# add_claim_on_loss = no -# } -# title:k_rum = { -# change_title_holder = { -# holder = root -# change = scope:new_rum -# } -# set_can_be_named_after_dynasty = no -# set_can_use_nomadic_naming = no -# } -# resolve_title_and_vassal_change = scope:new_rum -# if = { -# limit = { -# exists = scope:former_liege -# } -# scope:former_liege = { -# add_prestige = major_prestige_loss -# add_unpressed_claim = title:k_rum #Give chance to retaliate -# add_opinion = { -# target = root -# modifier = pretender_opinion -# } -# } -# } -# hidden_effect = { set_primary_title_to = title:k_rum } -#} +create_israel_scripted_effect = { + save_scope_as = scoped_ruler + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_israel = { + change_title_holder = { + holder = scope:scoped_ruler + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { + set_primary_title_to = title:k_israel + title:d_palestine = { + set_de_jure_liege_title = title:k_israel + } + title:d_urdunn = { + set_de_jure_liege_title = title:k_israel + } + title:d_oultrejourdain = { + set_de_jure_liege_title = title:k_israel + } + title:k_israel = { + set_de_jure_liege_title = title:k_jerusalem.de_jure_liege + } + } +} +create_rum_scripted_effect = { + add_prestige = medium_prestige_gain + #If under a liege, make independent. + if = { + limit = { + top_liege != this + } + if = { + limit = { + NOT = { + exists = scope:former_liege + } + } + liege = { + save_scope_as = former_liege + } + } + 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 = this + } + hidden_effect = { + add_truce_both_ways = { + character = scope:former_liege + days = 1825 + name = TRUCE_GRANT_INDEPENDENCE_ROOT + } + } + resolve_title_and_vassal_change = scope:change + } + create_title_and_vassal_change = { + type = created + save_scope_as = new_rum + add_claim_on_loss = no + } + title:k_rum = { + change_title_holder = { + holder = root + change = scope:new_rum + } + set_can_be_named_after_dynasty = no + set_can_use_nomadic_naming = no + } + resolve_title_and_vassal_change = scope:new_rum + if = { + limit = { + exists = scope:former_liege + } + scope:former_liege = { + add_prestige = major_prestige_loss + add_unpressed_claim = title:k_rum #Give chance to retaliate + add_opinion = { + target = root + modifier = pretender_opinion + } + } + } + hidden_effect = { set_primary_title_to = title:k_rum } +} declare_bloodline_holy_decision_effect = { save_scope_as = progenitor_holy_blood @@ -1861,2009 +1861,2009 @@ promote_gothic_innovations_decision_scripted_effect = { } } } -# -#promote_hungarian_settlement_decision_scripted_effect = { -# if = { -# limit = { -# culture = culture:mogyer -# } -# -# # Convert my culture to Hungarian Culture -# set_culture = culture:hungarian -# culture:hungarian = { -# reset_culture_creation_date = yes -# get_all_innovations_from = culture:mogyer -# } -# -# # Convert my courtiers to Hungarian -# hidden_effect = { -# every_courtier = { -# limit = { -# culture = culture:mogyer -# } -# set_culture = culture:hungarian -# } -# } -# -# # Convert my vassals to Hungarian -# every_vassal_or_below = { -# limit = { -# culture = culture:mogyer -# } -# -# custom = promote_hungarian_settlement_decision_every_vassal_custom -# set_culture = culture:hungarian -# -# # Convert their courtiers as well -# hidden_effect = { -# every_courtier = { -# limit = { -# culture = culture:mogyer -# } -# set_culture = culture:hungarian -# } -# } -# } -# } -# -# title:k_hungary = { -# every_in_de_jure_hierarchy = { -# custom = promote_hungarian_settlement_decision_every_province_custom -# limit = { -# tier = tier_county -# culture = culture:mogyer -# title_province = { geographical_region = custom_hungary } -# holder = { -# OR = { -# this = root -# target_is_liege_or_above = root -# } -# } -# } -# set_county_culture = culture:hungarian -# add_county_modifier = { -# modifier = hungarian_resettlement_modifier -# years = 100 -# } -# custom_tooltip = promote_hungarian_settlement_decision_increased_development -# custom_tooltip = promote_hungarian_settlement_decision_convert_county -# hidden_effect = { -# if = { -# limit = { -# development_level < 5 -# } -# change_development_level = 1 -# } -# random_list = { -# 30 = { -# # Nothing happens -# } -# 30 = { -# trigger = { -# NOT = { -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# } -# set_county_faith = root.faith -# } -# 30 = { -# trigger = { -# NOT = { -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# any_neighboring_county = { -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# } -# random_neighboring_county = { -# limit = { -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# } -# save_scope_as = neighboring_county -# } -# set_county_faith = scope:neighboring_county.faith -# } -# } -# } -# } -# } -#} -# -#revive_magyar_paganism_decision_scripted_effect = { -# #Change yourself, and any willing vassals/family, over to Magyar Paganism. -# set_character_faith_with_conversion = faith:magyar_pagan -# #Gain nickname for your troubles. -# give_nickname = nick_the_apostate -# #Magyar_group counties of your old religion may defect back to the old ways. -# custom_tooltip = revive_magyar_paganism_decision_scripted_effect.county_conversions.tt -# hidden_effect = { -# primary_title = { -# every_in_de_facto_hierarchy = { -# limit = { -# tier = tier_county -# culture = { has_cultural_pillar = heritage_magyar } -# exists = scope:old_faith -# religion = scope:old_faith.religion -# } -# #Mogyers remember the old ways best, and have a high chance to flip. -# if = { -# limit = { culture = culture:mogyer } -# random = { -# chance = 70 -# set_county_faith = faith:magyar_pagan -# } -# } -# #Slightly up the chances for the apostate. -# else_if = { -# limit = { holder = root } -# random = { -# chance = 50 -# set_county_faith = faith:magyar_pagan -# } -# } -# #Other magyar_group cultures still have a moderate chance to flip. -# else = { -# random = { -# chance = 30 -# set_county_faith = faith:magyar_pagan -# } -# } -# } -# } -# } -# #Make flipping counties deliriously happy about the whole affair. -# primary_title = { -# every_in_de_facto_hierarchy = { -# limit = { -# tier = tier_county -# faith = faith:magyar_pagan -# } -# custom = hungarian_resettlement.every_converted_province -# add_county_modifier = { -# modifier = magyar_appreciation_modifier -# years = 25 -# } -# } -# } -# #Finally, give magyar_pagans a hefty fervour boost, just so that they don't immediately convert back. -# hidden_effect = { -# faith:magyar_pagan = { -# save_temporary_scope_as = magyar_faith -# change_fervor = { -# value = 100 -# desc = fervor_gain_magyar_revivalism -# } -# } -# } -#} -# -#restore_dumnonia_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_cornwall = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# hidden_effect = { -# title:d_somerset = { save_scope_as = cornwall_somerset } -# title:d_gloucester = { save_scope_as = cornwall_gloucester } -# title:d_cornwall = { set_de_jure_liege_title = title:k_cornwall } -# if = { #If owned, annex Somerset/Wessex. -# limit = { -# title:d_somerset = { holder = root } -# } -# title:d_somerset = { set_de_jure_liege_title = title:k_cornwall } -# } -# if = { #If owned, annex Gloucestershire/Hwicce. -# limit = { -# title:d_gloucester = { holder = root } -# } -# title:d_gloucester = { set_de_jure_liege_title = title:k_cornwall } -# } -# } -# custom_tooltip = restore_dumnonia_decision_effects_de_jure_tt -#} -# -#revive_armenian_empire_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_armenia = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# hidden_effect = { -# title:k_armenia = { save_scope_as = armenian_armenia } -# title:k_georgia = { save_scope_as = armenian_georgia } -# title:k_daylam = { save_scope_as = armenian_daylam } -# title:k_jazira = { save_scope_as = armenian_jazira } -# title:k_syria = { save_scope_as = armenian_syria } -# title:k_jerusalem = { save_scope_as = armenian_jerusalem } -# title:k_anatolia = { save_scope_as = armenian_anatolia } -# title:k_pontus = { save_scope_as = armenian_pontus } -# title:e_armenia = { save_scope_as = armenian_armenia_empire } -# title:k_armenia = { set_de_jure_liege_title = title:e_armenia } -# if = { -# limit = { -# title:k_armenia = { is_title_created = yes } -# } -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_armenia = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# else_if = { -# limit = { -# title:k_armenia = { is_title_created = no } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_armenia = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. -# limit = { -# title:d_greater_armenia = { -# NOT = { target_is_de_jure_liege_or_above = title:k_armenia } -# } -# } -# title:d_greater_armenia = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. -# limit = { -# title:d_vaspurakan = { -# NOT = { target_is_de_jure_liege_or_above = title:k_armenia } -# } -# } -# title:d_vaspurakan = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. -# limit = { -# title:d_mesopotamia = { -# NOT = { target_is_de_jure_liege_or_above = title:k_armenia } -# } -# } -# title:d_mesopotamia = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Daylam & exempt Azerbaijan from de jure flipping to Armenia. -# limit = { -# title:k_daylam = { holder = root } -# title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } -# } -# title:k_daylam = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Daylam & flip Azerbaijan to Armenia. -# limit = { -# title:k_daylam = { holder = root } -# NOT = { -# title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } -# } -# } -# title:k_daylam = { set_de_jure_liege_title = title:e_armenia } -# title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Daylam & exempt Shirvan from de jure flipping to Armenia. -# limit = { -# title:k_daylam = { holder = root } -# title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } -# } -# title:k_daylam = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Daylam & flip Shirvan to Armenia. -# limit = { -# title:k_daylam = { holder = root } -# NOT = { -# title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } -# } -# } -# title:k_daylam = { set_de_jure_liege_title = title:e_armenia } -# title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Georgia & exempt ducal Georgia from de jure flipping to Armenia. -# limit = { -# title:k_georgia = { holder = root } -# title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } -# } -# title:k_georgia = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Georgia & flip ducal Georgia to Armenia. -# limit = { -# title:k_georgia = { holder = root } -# NOT = { -# title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } -# } -# } -# title:k_georgia = { set_de_jure_liege_title = title:e_armenia } -# title:d_georgia = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_georgia = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Anatolia & exempt Cilicia from de jure flipping to Armenia. -# limit = { -# title:k_anatolia = { holder = root } -# title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } -# } -# title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Anatolia & flip Cilicia to Armenia. -# limit = { -# title:k_anatolia = { holder = root } -# NOT = { -# title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } -# } -# } -# title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } -# title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Jazira & exempt Diyarbakr from de jure flipping to Armenia. -# limit = { -# title:k_jazira = { holder = root } -# title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } -# } -# title:k_jazira = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Jazira & flip Diyarbakr to Armenia. -# limit = { -# title:k_jazira = { holder = root } -# NOT = { -# title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } -# } -# } -# title:k_jazira = { set_de_jure_liege_title = title:e_armenia } -# title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Syria & exempt Edessa from de jure flipping to Armenia. -# limit = { -# title:k_syria = { holder = root } -# title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } -# } -# title:k_syria = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Syria & flip Edessa to Armenia. -# limit = { -# title:k_syria = { holder = root } -# NOT = { -# title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } -# } -# } -# title:k_syria = { set_de_jure_liege_title = title:e_armenia } -# title:d_edessa = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_edessa = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & de jure has not drifted, annex Syria & exempt Antioch from de jure flipping to Armenia. -# limit = { -# title:k_syria = { holder = root } -# title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } -# } -# title:k_syria = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & de jure has drifted, annex Syria & flip Antioch to Armenia. -# limit = { -# title:k_syria = { holder = root } -# NOT = { -# title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } -# } -# } -# title:k_syria = { set_de_jure_liege_title = title:e_armenia } -# title:d_antioch = { set_de_jure_liege_title = title:k_armenia } -# } -# else = { -# title:d_antioch = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned & Kurdistan is already part of Jazira, annex Jazira & exempt Kurdistan from de jure flipping to Armenia. -# limit = { -# title:k_jazira = { holder = root } -# title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } -# } -# title:k_jazira = { set_de_jure_liege_title = title:e_armenia } -# } -# else_if = { #If owned & Kurdistan is not part of Jazira, but Jazira is owned entirely, annex Jazira & flip Kurdistan to Jazira, because bordergore. -# limit = { -# title:k_jazira = { holder = root } -# NOT = { -# title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } -# } -# } -# title:k_jazira = { set_de_jure_liege_title = title:e_armenia } -# title:d_kurdistan = { set_de_jure_liege_title = title:k_jazira } -# } -# else = { -# title:d_kurdistan = { set_de_jure_liege_title = title:k_armenia } -# } -# if = { #If owned, annex Pontus. -# limit = { -# title:k_pontus = { holder = root } -# } -# title:k_pontus = { set_de_jure_liege_title = title:e_armenia } -# } -# if = { #If owned, annex Jerusalem. -# limit = { -# title:k_jerusalem = { holder = root } -# } -# title:k_jerusalem = { set_de_jure_liege_title = title:e_armenia } -# } -# } -# custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_a -# custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_b -#} -# -#form_dai_viet_empire_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_viet = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# root.dynasty = { -# add_dynasty_prestige = major_dynasty_prestige_gain -# } -# -# if = { -# limit = { -# title:k_viet = { -# is_title_created = yes -# NOT = { -# holder = ROOT -# } -# } -# } -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_viet = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# else_if = { -# limit = { -# title:k_viet = { is_title_created = no } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_viet = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# #Viet controls -# if = { #If owned, annex Dai Viet. -# limit = { -# title:k_viet = { holder = root } -# } -# title:k_viet = { set_de_jure_liege_title = title:e_viet } -# } -# if = { #If owned, annex Champa. -# limit = { -# title:k_champa = { holder = root } -# } -# title:k_champa = { set_de_jure_liege_title = title:e_viet } -# } -# if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. -# limit = { -# title:d_hai_dong = { -# NOT = { target_is_de_jure_liege_or_above = title:k_viet } -# } -# } -# title:d_hai_dong = { set_de_jure_liege_title = title:k_viet } -# } -# if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. -# limit = { -# title:d_lam_tay = { -# NOT = { target_is_de_jure_liege_or_above = title:k_viet } -# } -# } -# title:d_lam_tay = { set_de_jure_liege_title = title:k_viet } -# } -# if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. -# limit = { -# title:d_nghe_an = { -# NOT = { target_is_de_jure_liege_or_above = title:k_viet } -# } -# } -# title:d_nghe_an = { set_de_jure_liege_title = title:k_viet } -# } -# if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. -# limit = { -# title:d_hai_dong = { -# NOT = { target_is_de_jure_liege_or_above = title:k_viet } -# } -# } -# title:d_thang_long = { set_de_jure_liege_title = title:k_viet } -# } -# #Champa controls -# if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. -# limit = { -# title:d_indrapura = { -# NOT = { target_is_de_jure_liege_or_above = title:k_champa } -# } -# } -# title:d_indrapura = { set_de_jure_liege_title = title:k_champa } -# } -# if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. -# limit = { -# title:d_vijaya = { -# NOT = { target_is_de_jure_liege_or_above = title:k_champa } -# } -# } -# title:d_vijaya = { set_de_jure_liege_title = title:k_champa } -# } -# if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. -# limit = { -# title:d_baigaur = { -# NOT = { target_is_de_jure_liege_or_above = title:k_champa } -# } -# } -# title:d_baigaur = { set_de_jure_liege_title = title:k_champa } -# } -# -# if = { -# limit = { -# government_has_flag = government_is_meritocratic -# } -# add_realm_law = single_heir_succession_law -# } -#} -# -#form_majapahit_empire_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_majapahit = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# root.dynasty = { -# add_dynasty_modifier = majapahit_empire_founding_modifier -# } -# -# hidden_effect = { -# title:k_yavakadvipa = { save_scope_as = javanese_yavakadvipa } -# title:d_SUM_palembang = { save_scope_as = javanese_palembang } -# title:d_JAV_taruma = { save_scope_as = javanese_taruma } -# title:d_JAV_mataram = { save_scope_as = javanese_mataram } -# title:c_JAV_madura = { save_scope_as = javanese_madura } -# title:e_majapahit = { save_scope_as = javanese_majapahit_empire } -# title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } -# if = { -# limit = { -# title:k_yavakadvipa = { -# is_title_created = yes -# NOT = { -# holder = ROOT -# } -# } -# } -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_yavakadvipa = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# else_if = { -# limit = { -# title:k_yavakadvipa = { is_title_created = no } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_yavakadvipa = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# if = { -# limit = { -# title:d_SUM_palembang = { -# NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } -# } -# } -# title:d_SUM_palembang = { set_de_jure_liege_title = title:k_yavakadvipa } -# } -# if = { -# limit = { -# title:d_JAV_taruma = { -# NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } -# } -# } -# title:d_JAV_taruma = { set_de_jure_liege_title = title:k_yavakadvipa } -# } -# if = { -# limit = { -# title:d_JAV_mataram = { -# NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } -# } -# } -# title:d_JAV_mataram = { set_de_jure_liege_title = title:k_yavakadvipa } -# } -# if = { -# limit = { -# title:c_JAV_madura = { -# NOT = { target_is_de_jure_liege_or_above = title:d_JAV_mataram } -# } -# } -# title:c_JAV_madura = { set_de_jure_liege_title = title:d_JAV_mataram } -# } -# if = { #If owned, annex Champa. -# limit = { -# title:k_yavakadvipa = { holder = root } -# } -# title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } -# } -# } -# custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_a -# custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_b -# custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_c -#} -# -#form_ryukyu_empire_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_ruucuu = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# capital_county = { -# every_county_province = { -# add_province_modifier = ryukyu_empire_founding_province_modifier -# } -# } -# -# hidden_effect = { -# title:k_ruucuu = { save_scope_as = ryukyuan_ruucuu_kingdom } -# title:d_ruucuu = { save_scope_as = ryukyuan_ruucuu_duchy } -# title:e_ruucuu = { save_scope_as = ryukyuan_ruucuu_empire } -# title:k_ruucuu = { set_de_jure_liege_title = title:e_ruucuu } -# if = { -# limit = { -# title:k_ruucuu = { -# is_title_created = yes -# NOT = { -# holder = ROOT -# } -# } -# } -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_ruucuu = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# else_if = { -# limit = { -# title:k_ruucuu = { is_title_created = no } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change_2 -# add_claim_on_loss = no -# } -# title:k_ruucuu = { -# change_title_holder = { -# holder = root -# change = scope:title_change_2 -# } -# } -# resolve_title_and_vassal_change = scope:title_change_2 -# } -# if = { -# limit = { -# title:d_ruucuu = { -# NOT = { target_is_de_jure_liege_or_above = title:k_ruucuu } -# } -# } -# custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_b -# title:d_ruucuu = { set_de_jure_liege_title = title:k_ruucuu } -# } -# if = { -# limit = { -# title:c_ucinaa = { -# NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } -# } -# } -# title:c_ucinaa = { set_de_jure_liege_title = title:d_ruucuu } -# } -# if = { -# limit = { -# title:c_amami = { -# NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } -# } -# } -# title:c_amami = { set_de_jure_liege_title = title:d_ruucuu } -# } -# } -# custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_a -#} -# -#form_siam_kingdom_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_siam = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# add_prestige_experience = major_fame_gain -# -# hidden_effect = { -# title:k_siam = { save_scope_as = siam_kingdom } -# title:d_sukhothai = { save_scope_as = sukhotai_duchy } -# title:d_lop_buri = { save_scope_as = lop_buri } -# title:d_sukhothai = { set_de_jure_liege_title = title:k_siam } -# title:d_lop_buri = { set_de_jure_liege_title = title:k_siam } -# every_held_title = { # add other duchies if I hold any in the region -# limit = { -# tier = tier_duchy -# any_de_jure_county = { -# title_province = { -# OR = { -# geographical_region = world_asia_thailand -# geographical_region = world_asia_malaysia -# } -# } -# } -# NOT = { -# this = title:d_sukhothai -# this = title:d_lop_buri -# } -# } -# set_de_jure_liege_title = title:k_siam -# } -# } -# custom_tooltip = form_siam_kingdom_decision_effects_de_jure_tt_a -#} -# -#restore_holy_roman_empire_decision_scripted_effect = { -# save_scope_as = founder -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:e_hre = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# set_primary_title_to = title:e_hre -# -# #Papal hook management. -# if = { -# limit = { -# faith.religious_head = { -# exists = this -# opinion = { -# target = root -# value < high_positive_opinion -# } -# } -# OR = { -# has_weak_hook = faith.religious_head -# has_strong_usable_hook = faith.religious_head -# } -# } -# use_hook = faith.religious_head -# } -# -# #Sort title laws. -# if = { -# limit = { -# OR = { -# has_title = title:k_east_francia -# any_vassal = { -# has_title = title:k_east_francia -# } -# } -# } -# destroy_title = title:k_east_francia #Make Germany inalienable. -# } -# title:e_hre = { -# add_title_law = princely_elective_succession_law -# if = { #Add Salic law. -# limit = { -# root = { -# OR = { -# has_realm_law = male_preference_law -# has_realm_law = male_only_law -# } -# } -# } -# add_title_law = male_only_law -# } -# if = { #Ignore Salic law. -# limit = { -# root = { has_realm_law = equal_law } -# } -# add_title_law = equal_law -# } -# if = { #Invert Salic law. Take that, Clovis, y'big nerd. -# limit = { -# root = { -# OR = { -# has_realm_law = female_preference_law -# has_realm_law = female_only_law -# } -# } -# } -# add_title_law = female_only_law -# } -# custom_tooltip = hre_elector_list_creation_tt -# } -# -# #Add de jures. -# hidden_effect = { -# if = { #If Germania is nae a thing, merge it into the HRE. -# limit = { -# OR = { -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_lotharingia -# has_title = title:k_frisia -# any_vassal = { -# OR = { -# has_title = title:k_east_francia -# has_title = title:k_bavaria -# has_title = title:k_lotharingia -# has_title = title:k_frisia -# } -# } -# } -# OR = { -# NOT = { exists = title:e_germany.holder } -# title:e_germany.holder ?= root -# } -# } -# title:e_germany = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_kingdom } -# set_de_jure_liege_title = title:e_hre -# } -# } -# } -# every_held_title = { -# title_tier = kingdom -# limit = { -# NOT = { #The Pope retains vague dibs on Italy. -# any_this_title_or_de_jure_above = { this = title:e_italy } -# } -# save_temporary_scope_as = this_title -# #root = { completely_controls = scope:this_title } -# } -# set_de_jure_liege_title = title:e_hre -# } -# every_vassal = { -# every_held_title = { -# title_tier = kingdom -# limit = { -# NOT = { #The Pope retains vague dibs on Italy. -# any_this_title_or_de_jure_above = { this = title:e_italy } -# } -# save_temporary_scope_as = this_title -# #prev = { completely_controls = scope:this_title } -# } -# set_de_jure_liege_title = title:e_hre -# } -# } -# if = { # Merge Francia into the HRE under certain conditions -# limit = { -# OR = { -# NOT = { exists = title:e_france.holder } -# title:e_france.holder ?= root -# } -# OR = { -# title:k_france = { # If core West Francia is part of the HRE -# target_is_de_jure_liege_or_above = title:e_hre -# } -# calc_true_if = { # Or 2+ of the other francian Kingdoms -# amount >= 2 -# title:k_burgundy = { -# target_is_de_jure_liege_or_above = title:e_hre -# } -# title:k_aquitaine = { -# target_is_de_jure_liege_or_above = title:e_hre -# } -# title:k_brittany = { -# target_is_de_jure_liege_or_above = title:e_hre -# } -# } -# } -# } -# title:e_france = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_kingdom } -# set_de_jure_liege_title = title:e_hre -# } -# } -# } -# every_vassal = { -# limit = { -# is_ai = yes -# } -# every_held_title = { -# title_tier = kingdom -# root = { -# destroy_title = prev -# } -# } -# } -# every_held_title = { -# title_tier >= kingdom -# limit = { -# NOT = { -# this = title:e_hre -# } -# save_temporary_scope_as = this_title -# } -# root = { -# destroy_title = prev -# } -# } -# } -# custom_tooltip = restore_holy_roman_empire_decision_effects_de_jure.tt -# -# #And add a bit of prestige for the trouble. -# add_prestige = massive_prestige_value -#} -# -#found_kingdom_of_bosnia_decision_scripted_effect = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_bosnia = { -# change_title_holder = { -# holder = scope:founder -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# title:d_bosna = { set_de_jure_liege_title = title:k_bosnia } -# title:d_lower_bosna = { set_de_jure_liege_title = title:k_bosnia } -# title:d_usora = { set_de_jure_liege_title = title:k_bosnia } -#} -# -#found_kingdom_of_livonia_decision_scripted_effect = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_livonia = { -# change_title_holder = { -# holder = scope:founder -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# title:d_latgalia = { set_de_jure_liege_title = title:k_livonia } -# title:d_courland = { set_de_jure_liege_title = title:k_livonia } -# title:d_livonia = { set_de_jure_liege_title = title:k_livonia } -# if = { -# limit = { -# title:d_esthonia = { holder = root } -# } -# title:d_esthonia = { set_de_jure_liege_title = title:k_livonia } -# } -# if = { -# limit = { -# has_faith = faith:baltic_pagan -# root.culture = { NOT = { has_innovation = innovation_longboats } } -# } -# root.culture = { add_innovation = innovation_longboats } -# } -#} -# -#unite_bene_israel_effect = { -# add_prestige = major_prestige_gain -# add_piety = major_piety_gain -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_bene_israel = { -# change_title_holder = { -# holder = scope:founder -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# -# title:d_chera_nadu = { set_de_jure_liege_title = title:k_bene_israel } -# title:d_konkana = { set_de_jure_liege_title = title:k_bene_israel } -# if = { -# limit = { -# title:d_lata = { holder = root } -# } -# title:d_lata = { set_de_jure_liege_title = title:k_bene_israel } -# } -# if = { -# limit = { -# title:d_nasikya = { holder = root } -# } -# title:d_nasikya = { set_de_jure_liege_title = title:k_bene_israel } -# } -# random_held_title = { -# title_tier = barony -# limit = { -# is_holy_site_of = faith:malabarism -# } -# county = { set_county_culture = culture:kochinim } -# county = { set_county_faith = faith:malabarism } -# } -#} -# -#hre_elector_list_save_effect = { -# ordered_in_global_list = { -# variable = hre_elector_list -# max = 7 -# check_range_bounds = no -# order_by = tier -# save_temporary_scope_as = hre_elector_title -# title:e_hre = { -# if = { -# limit = { NOT = { has_variable = hre_elector_1 } } -# set_variable = { name = hre_elector_1 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_2 } } -# set_variable = { name = hre_elector_2 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_3 } } -# set_variable = { name = hre_elector_3 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_4 } } -# set_variable = { name = hre_elector_4 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_5 } } -# set_variable = { name = hre_elector_5 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_6 } } -# set_variable = { name = hre_elector_6 value = scope:hre_elector_title } -# } -# else_if = { -# limit = { NOT = { has_variable = hre_elector_7 } } -# set_variable = { name = hre_elector_7 value = scope:hre_elector_title } -# } -# } -# } -#} -# -#favour_the_countryside_basques_decision_generic_effects_scripted_effect = { -# scope:religious_leader = { -# # If you weren't Basque, become so. -# if = { -# limit = { favour_the_countryside_basques_counts_as_basque_trigger = no } -# # Now, we need to work out which Basque culture you should be. -# ## First, we gather our candidates. -# ### Going through counties. -# every_sub_realm_county = { -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# ### Plus vassals. -# every_vassal_or_below = { -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# ### And those close to you. -# every_close_or_extended_family_member = { -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# every_consort = { -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# every_relation = { -# type = friend -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# every_relation = { -# type = lover -# limit = { -# favour_the_countryside_basques_counts_as_basque_trigger = yes -# NOT = { -# culture = { is_in_list = realm_basque_cultures_list } -# } -# } -# culture = { add_to_list = realm_basque_cultures_list } -# } -# ## Next, we process the list. -# if = { -# limit = { -# any_in_list = { -# list = realm_basque_cultures_list -# exists = this -# } -# } -# ordered_in_list = { -# list = realm_basque_cultures_list -# order_by = { -# value = 0 -# save_temporary_scope_as = culture_temp -# # Culture counties are added differently depending on whether they're inside or outside the realm -# every_culture_county = { -# # Every culture county in your realm adds 10. -# if = { -# limit = { -# holder = { -# OR = { -# this = scope:religious_leader -# any_liege_or_above = { this = scope:religious_leader } -# } -# } -# } -# add = 10 -# } -# # Every culture county outside your realm adds 5. -# else = { add = 5 } -# } -# scope:religious_leader = { -# # Vassals add weight depending on their rank. -# every_vassal = { -# if = { -# limit = { culture = scope:culture_temp } -# # Every king-tier vassal adds 50. -# if = { -# limit = { highest_held_title_tier = tier_kingdom } -# add = 50 -# } -# # Every duke-tier vassal adds 25. -# else_if = { -# limit = { highest_held_title_tier = tier_duchy } -# add = 25 -# } -# # Every count-tier vassal adds 10. -# else_if = { -# limit = { highest_held_title_tier = tier_county } -# add = 10 -# } -# # Barons are unimportant. -# } -# } -# # Every close family member adds 15. -# every_close_family_member = { -# limit = { culture = scope:culture_temp } -# add = 15 -# } -# # Every extended family members adds 5. -# every_extended_family_member = { -# limit = { culture = scope:culture_temp } -# add = 5 -# } -# # Every soulmate adds 50. -# every_relation = { -# type = soulmate -# limit = { culture = scope:culture_temp } -# add = 50 -# } -# # Every best friend adds 50. -# every_relation = { -# type = best_friend -# limit = { culture = scope:culture_temp } -# add = 50 -# } -# # Every lover adds 15. -# every_relation = { -# type = lover -# limit = { -# culture = scope:culture_temp -# NOT = { has_relation_soulmate = scope:religious_leader } -# } -# add = 15 -# } -# # Every friend adds 15. -# every_relation = { -# type = friend -# limit = { -# culture = scope:culture_temp -# NOT = { has_relation_best_friend = scope:religious_leader } -# } -# add = 15 -# } -# } -# } -# save_scope_as = chosen_basque_culture -# } -# } -# ## Finally, we try to convert. -# if = { -# limit = { exists = scope:chosen_basque_culture } -# convert_family_culture_and_notify_vassals_effect = { -# CONVERTER = scope:religious_leader -# OLD_CULTURE = scope:religious_leader.culture -# NEW_CULTURE = scope:chosen_basque_culture -# } -# } -# # If this hasn't worked at all, and they've got _any_ counties left, we just switch you to the regular Basque. -# else_if = { -# limit = { -# culture:basque = { -# any_culture_county = { exists = this } -# } -# } -# convert_family_culture_and_notify_vassals_effect = { -# CONVERTER = scope:religious_leader -# OLD_CULTURE = scope:religious_leader.culture -# NEW_CULTURE = culture:basque -# } -# } -# # Otherwise, we presume that the Basque presence in the region is extinct or negligible (at least on the macro level), so we leave your culture alone. -# } -# # Assign a new nickname, if appropriate. -# if = { -# limit = { -# OR = { -# has_any_nickname = no -# has_bad_nickname = yes -# } -# } -# # If you're not already a pagan, guess what folks call you? -# if = { -# limit = { -# NOT = { -# faith = { has_doctrine = pagan_hostility_doctrine } -# } -# } -# give_nickname = nick_the_pagan -# } -# # Otherwise, you're probably an invading Viking and you deserve to get memed. -# else = { give_nickname = nick_the_mountain_king } -# } -# # Switch to the new faith. -# add_character_flag = { -# flag = delay_player_faith_conversion_notification_event -# days = 1 -# } -# # Configure Basque paganism's variable set-up. -# faith:basque_pagan = { -# # Remove the restrictions on converting to Basque paganism. -# remove_variable = block_conversion_till_decision_taken -# # And, since you're inherently creating a new priestly structure -# ## This is mostly done here for immersive reasons; we don't want to imply that Basque paganism already had a distinct organised religious hierarchy in 867 by just applying this on game start, even though you'll always have to have it to access the faith. -# set_variable = { name = has_been_reformed } -# remove_doctrine = unreformed_faith_doctrine -# } -# # Finally, convert. -# ## We do this here so that it's reformed by the time you switch (giving you a better chance with vassal conversion rates). -# set_character_faith_with_conversion = faith:basque_pagan -# } -#} -# -#favour_the_countryside_basques_decision_fundamentalist_path_scripted_effect = { -# faith:basque_pagan = { -# # First, we remove Christian Syncretism & replace it with Warmonger. -# remove_doctrine = tenet_christian_syncretism -# add_doctrine = tenet_warmonger -# # Then, we switch on over from Pluralist to Fundamentalist. -# ## We disguise some of these changes for neatness, as there's a lot to process. -# hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } -# add_doctrine = doctrine_pluralism_fundamentalist -# # No HoF becomes a spiritual HoF, so that you can make use of your Warmonger GHWs. -# hidden_effect = { remove_doctrine = doctrine_no_head } -# add_doctrine = doctrine_spiritual_head -# # Plus, set the faith's fervour to a middling/low level, since you've messed with it. -# change_fervor = { -# value = -50 -# desc = fervour_loss_temporal_meddling -# } -# } -# # Create the new HoF. -# hidden_effect = { -# scope:religious_leader = { -# set_up_dynamic_spiritual_hof_title_effect = { CREATOR = scope:religious_leader } -# } -# } -# custom_tooltip = favour_the_countryside_basques_decision.tt.spiritual_hof_acquired -# # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. -# add_character_modifier = fp2_friend_of_the_old_ways_modifier -#} -# -#favour_the_countryside_basques_decision_righteous_path_scripted_effect = { -# faith:basque_pagan = { -# # First, we remove Christian Syncretism & replace it with Sanctity of Nature. -# remove_doctrine = tenet_christian_syncretism -# add_doctrine = tenet_sanctity_of_nature -# # Then, we switch on over from Pluralist to Righteous. -# ## We disguise some of these changes for neatness, as there's a lot to process. -# hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } -# add_doctrine = doctrine_pluralism_righteous -# # No HoF becomes you as the temporal HoF, as you're focusing more on the non-Christian parts of the faith. -# hidden_effect = { -# remove_doctrine = doctrine_no_head -# remove_doctrine = doctrine_theocracy_temporal -# remove_doctrine = doctrine_clerical_succession_spiritual_appointment -# } -# add_doctrine = doctrine_temporal_head -# add_doctrine = doctrine_theocracy_lay_clergy -# add_doctrine = doctrine_clerical_succession_temporal_fixed_appointment -# # Plus, set the faith's fervour to a middling/low level, since you've messed with it. -# change_fervor = { -# value = -50 -# desc = fervour_loss_temporal_meddling -# } -# } -# # Create the new HoF. -# hidden_effect = { -# scope:religious_leader = { -# set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:religious_leader } -# } -# } -# custom_tooltip = favour_the_countryside_basques_decision.tt.temporal_hof_acquired -# # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. -# add_character_modifier = fp2_friend_of_the_old_ways_modifier -#} -# -#favour_the_countryside_basques_decision_pluralist_path_scripted_effect = { -# faith:basque_pagan = { -# # First, we mostly only need to remove Christian Syncretism & replace it with Islamic Syncretism. -# remove_doctrine = tenet_christian_syncretism -# add_doctrine = tenet_islamic_syncretism -# # Then set the faith's fervour to a middling/low level, since you've messed with it. -# change_fervor = { -# value = -50 -# desc = fervour_loss_temporal_meddling -# } -# } -# # Bonus opinion with every neighbouring Islamic ruler & their vassals, who appreciate the direction you're going in. -# ## Compile a list. -# top_liege = { -# if = { -# limit = { religion = religion:islam_religion } -# add_to_list = pleased_rulers -# } -# every_vassal_or_below = { -# limit = { religion = religion:islam_religion } -# add_to_list = pleased_rulers -# } -# } -# every_neighboring_and_across_water_top_liege_realm_owner = { -# if = { -# limit = { religion = religion:islam_religion } -# add_to_list = pleased_rulers -# } -# every_vassal_or_below = { -# limit = { religion = religion:islam_religion } -# add_to_list = pleased_rulers -# } -# } -# ## And apply some opinions. -# every_in_list = { -# list = pleased_rulers -# custom = favour_the_countryside_basques_decision.tt.all_neighbouring_islamic_rulers -# add_opinion = { -# target = scope:religious_leader -# modifier = pleased_opinion -# opinion = 30 -# } -# } -# # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. -# add_character_modifier = fp2_friend_of_the_old_ways_modifier -#} -# -#favour_the_countryside_basques_decision_default_path_scripted_effect = { -# faith:basque_pagan = { -# # Here, we're not fiddling with the faith's traditions at all, so we get a chonky fervour bonus for the sudden limelight. -# change_fervor = { -# value = 100 -# desc = fervour_gain_unexpected_resurgence -# } -# } -# # Plus a massive chunk of piety experience... -# add_piety_experience = 2000 -# # ... and a more powerful clergy-approval modifier. -# add_character_modifier = fp2_champion_of_the_old_ways_modifier -#} -# -#create_kingdom_of_saxony_effect = { -# if = { -# limit = { -# NOR = { -# root = $CHARACTER$ -# exists = scope:new_saxon_king -# } -# } -# # Grant every held title in Saxony to the new holder -# root = { -# every_held_title = { -# limit = { -# OR = { -# title:k_saxony = { is_de_jure_liege_or_above_target = prev } -# title:k_sorbia = { is_de_jure_liege_or_above_target = prev } -# } -# NOT = { -# holder = { capital_county = prev } -# } -# } -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# change_title_holder = { -# holder = $CHARACTER$ -# change = scope:title_change -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# } -# } -# if = { -# limit = { exists = title:k_sorbia.holder } -# destroy_title = title:k_sorbia -# } -# title:k_sorbia = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_saxony -# } -# } -# title:k_saxony = { set_coa = k_saxon_electorate } -# title:k_saxony = { set_de_jure_liege_title = title:e_hre } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# if = { -# limit = { -# has_title = title:e_hre -# } -# hidden_effect = { -# title:k_saxony = { -# change_title_holder = { -# holder = $CHARACTER$ -# change = scope:title_change -# } -# } -# } -# } -# else = { -# title:k_saxony = { -# change_title_holder = { -# holder = $CHARACTER$ -# change = scope:title_change -# } -# } -# } -# every_vassal = { -# limit = { -# primary_title = { -# OR = { -# title:k_saxony = { is_de_jure_liege_or_above_target = prev } -# title:k_sorbia = { is_de_jure_liege_or_above_target = prev } -# } -# } -# NOT = { this = $CHARACTER$ } -# NOT = { any_liege_or_above = { this = $CHARACTER$ } } -# } -# change_liege = { -# liege = $CHARACTER$ -# change = scope:title_change -# } -# } -# hidden_effect = { -# if = { -# limit = { -# NOR = { -# $CHARACTER$ = root -# $CHARACTER$ = { is_vassal_or_below_of = root } -# } -# } -# $CHARACTER$ = { -# change_liege = { -# liege = root -# change = scope:title_change -# } -# } -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# hidden_effect = { -# $CHARACTER$ = { save_scope_as = new_saxon_king } -# every_player = { -# limit = { -# this != prev -# or = { -# is_vassal_or_below_of = title:e_hre.holder -# AND = { -# exists = title:e_west_slavia -# is_vassal_or_below_of = title:e_west_slavia.holder -# } -# title:e_hre = { is_neighbor_to_realm = prev } -# primary_title = { -# title:e_west_slavia = { is_de_jure_liege_or_above_target = prev } -# } -# } -# } -# trigger_event = middle_europe_decisions.0018 -# } -# } -#} -# -#restore_old_vasconia_decision_scripted_effect = { -# save_scope_as = founder -# # Give Navarra if not held -# if = { -# limit = { -# NOT = { has_title = title:k_navarra } -# } -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# title:k_navarra = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# } -# title:k_navarra = { set_title_name = k_vasconia } -# hidden_effect = { -# # Transfer de jure -# every_in_list = { -# list = vasconia_duchies -# limit = { -# save_temporary_scope_as = duchy_temp -# root = { completely_controls = scope:duchy_temp } -# NOT = { de_jure_liege = title:k_navarra } -# } -# add_to_list = vasconia_transfers -# set_de_jure_liege_title = title:k_navarra -# } -# # Destroy held superseded kingdoms (no de jure land left) -# every_in_list = { -# list = vasconia_kingdoms -# limit = { -# holder = root -# any_direct_de_jure_vassal_title = { count < 1 } -# } -# add_to_list = superseded_kingdoms -# save_scope_as = superseded_kingdom -# root = { destroy_title = scope:superseded_kingdom } -# } -# } -#} -# -#restore_old_vasconia_decision_tooltip_scripted_effect = { -# custom_tooltip = restore_old_vasconia_decision_vasconia_past_tt -# show_as_tooltip = { -# every_in_list = { -# list = vasconia_transfers -# set_de_jure_liege_title = title:k_navarra -# } -# every_in_list = { -# list = superseded_kingdoms -# save_scope_as = superseded_kingdom -# root = { destroy_title = scope:superseded_kingdom } -# } -# } -#} -# -#create_beth_nahrain_scripted_effect = { -# #Create Beth Nahrain -# hidden_effect = { -# every_held_title = { -# limit = { -# tier = tier_empire -# } -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# set_de_jure_liege_title = title:e_beth_nahrain -# } -# } -# } -#} -# -#promote_culture_beth_nahrain_scripted_effect = { -# every_sub_realm_county = { -# custom = promote_culture_beth_nahrain_modifier_custom_desc -# limit = { -# NOT = { -# culture = { has_cultural_pillar = heritage_syriac } -# } -# title_province = { geographical_region = custom_beth_nahrain } -# } -# add_county_modifier = { -# modifier = promote_culture_beth_nahrain_modifier -# years = 50 -# } -# } -# if = { -# limit = { -# faith = faith:nestorian -# } -# faith:nestorian = { -# change_fervor = { -# value = 100 -# desc = middle_east_major_decisions.1020_fervor -# } -# } -# } -# else_if = { -# limit = { -# NOT = { -# exists = scope:suppress_tooltips -# } -# } -# custom_tooltip = middle_east_major_decisions.1020.lack_nestorian -# } -#} -# -#learning_beth_nahrain_scripted_effect = { -# house ?= { -# add_house_modifier = { -# modifier = learning_beth_nahrain_house_modifier -# years = 100 -# } -# } -# add_piety_experience = monumental_piety_value -#} -# -#martial_beth_nahrain_scripted_effect = { -# house ?= { -# add_house_modifier = { -# modifier = martial_beth_nahrain_house_modifier -# years = 100 -# } -# } -# add_prestige_experience = monumental_prestige_value -#} -# -#nestorian_faith_beth_nahrain_scripted_effect = { -# add_trait = crusader_king -# add_piety_experience = monumental_piety_value -#} -# -#no_faith_beth_nahrain_scripted_effect = { -# faith:nestorian = { -# change_fervor = { -# value = 100 -# desc = middle_east_major_decisions.1020_fervor -# } -# } -# set_character_faith_with_conversion = faith:nestorian -# add_piety = monumental_piety_gain -#} -# -#found_empire_of_hindustan_scripted_effect = { -# save_scope_as = founder -# -# create_title_and_vassal_change = { -# type = created -# save_scope_as = title_change -# add_claim_on_loss = no -# } -# if = { -# limit = { -# completely_controls = title:k_punjab #This will always be true but it keeps the decision text easier to read before you fulfill the criteria -# NOT = { has_title = title:k_punjab } -# } -# title:k_punjab = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# } -# if = { -# limit = { -# completely_controls = title:k_delhi #This will always be true but it keeps the decision text easier to read before you fulfill the criteria -# NOT = { has_title = title:k_delhi } -# } -# title:k_delhi = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# } -# if = { -# limit = { -# OR = { -# NOT = { title:d_kuru.holder = root } -# AND = { -# exists = title:d_kuru.holder -# title:d_kuru.holder = { -# is_ai = yes -# } -# } -# } -# } -# title:d_kuru = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# } -# if = { -# limit = { -# NOT = { title:c_delhi.holder = root } -# } -# title:c_delhi = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# } -# title:e_hindustan = { -# change_title_holder = { -# holder = root -# change = scope:title_change -# } -# } -# resolve_title_and_vassal_change = scope:title_change -# set_primary_title_to = title:e_hindustan -# -# hidden_effect = { -# title:k_delhi = { -# set_de_jure_liege_title = title:e_hindustan -# } -# title:k_punjab = { -# set_de_jure_liege_title = title:e_hindustan -# } -# every_held_title = { -# limit = { -# tier = tier_kingdom -# OR = { -# de_jure_liege = title:e_bengal -# de_jure_liege = title:e_deccan -# de_jure_liege = title:e_rajastan -# } -# } -# set_de_jure_liege_title = title:e_hindustan -# } -# #Areas that have had more muslim influence wants to avoid border gore and gets added even if not held - unless controlled by an independent Emperor of Rajastan: -# if = { -# limit = { -# NOT = { -# title:k_sindh.holder.liege = { -# has_title = title:e_rajastan -# } -# } -# } -# title:k_sindh = { -# set_de_jure_liege_title = title:e_hindustan -# } -# } -# if = { -# limit = { -# NOT = { -# title:k_kashmir.holder.liege = { -# has_title = title:e_rajastan -# } -# } -# } -# title:k_kashmir = { -# set_de_jure_liege_title = title:e_hindustan -# } -# } -# add_character_flag = e_hindustan #For title flavorization -# } -# #If the new Emperor of Hindustan holds any of the Indian Empires these are destroyed and their kingdoms added to Hindustan too -# #This is not inside the hidden block to not hide that the empires are destroyed. -# if = { -# limit = { -# has_title = title:e_bengal -# } -# hidden_effect = { -# title:e_bengal = { -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# set_de_jure_liege_title = title:e_hindustan -# } -# } -# } -# destroy_title = title:e_bengal -# } -# if = { -# limit = { -# has_title = title:e_deccan -# } -# hidden_effect = { -# title:e_deccan = { -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# set_de_jure_liege_title = title:e_hindustan -# } -# } -# } -# destroy_title = title:e_deccan -# } -# if = { -# limit = { -# has_title = title:e_rajastan -# } -# hidden_effect = { -# title:e_rajastan = { -# every_in_de_jure_hierarchy = { -# limit = { -# tier = tier_kingdom -# } -# set_de_jure_liege_title = title:e_hindustan -# } -# } -# } -# destroy_title = title:e_rajastan -# } -# custom_tooltip = found_empire_of_hindustan_decision_effects_de_jure_tt -# hidden_effect = { -# if = { # Let's see if you have ultimo and save that if so -# limit = { -# has_realm_law = single_heir_succession_law_youngest -# } -# save_scope_as = set_ultimo_temp_scope -# } -# } -# if = { -# limit = { has_dlc_feature = admin_gov } -# convert_to_administrative_from_feudalism_effect = { GOVERNMENT_TO_ADOPT = flag:administrative } -# } -# hidden_effect = { -# if = { # If you had ultimo, you get to keep it. Otherwise, you get primo for free. -# limit = { -# exists = scope:set_ultimo_temp_scope -# } -# add_realm_law = single_heir_succession_law_youngest -# } -# else = { -# add_realm_law = single_heir_succession_law -# } -# } -# add_legitimacy_effect = { LEGITIMACY = massive_legitimacy_gain } -# dynasty ?= { add_dynasty_prestige = massive_dynasty_prestige_value } -#} -# -# + +promote_hungarian_settlement_decision_scripted_effect = { + if = { + limit = { + culture = culture:mogyer + } + + # Convert my culture to Hungarian Culture + set_culture = culture:hungarian + culture:hungarian = { + reset_culture_creation_date = yes + get_all_innovations_from = culture:mogyer + } + + # Convert my courtiers to Hungarian + hidden_effect = { + every_courtier = { + limit = { + culture = culture:mogyer + } + set_culture = culture:hungarian + } + } + + # Convert my vassals to Hungarian + every_vassal_or_below = { + limit = { + culture = culture:mogyer + } + + custom = promote_hungarian_settlement_decision_every_vassal_custom + set_culture = culture:hungarian + + # Convert their courtiers as well + hidden_effect = { + every_courtier = { + limit = { + culture = culture:mogyer + } + set_culture = culture:hungarian + } + } + } + } + + title:k_hungary = { + every_in_de_jure_hierarchy = { + custom = promote_hungarian_settlement_decision_every_province_custom + limit = { + tier = tier_county + culture = culture:mogyer + title_province = { geographical_region = custom_hungary } + holder = { + OR = { + this = root + target_is_liege_or_above = root + } + } + } + set_county_culture = culture:hungarian + add_county_modifier = { + modifier = hungarian_resettlement_modifier + years = 100 + } + custom_tooltip = promote_hungarian_settlement_decision_increased_development + custom_tooltip = promote_hungarian_settlement_decision_convert_county + hidden_effect = { + if = { + limit = { + development_level < 5 + } + change_development_level = 1 + } + random_list = { + 30 = { + # Nothing happens + } + 30 = { + trigger = { + NOT = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + } + set_county_faith = root.faith + } + 30 = { + trigger = { + NOT = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + any_neighboring_county = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + } + random_neighboring_county = { + limit = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + } + save_scope_as = neighboring_county + } + set_county_faith = scope:neighboring_county.faith + } + } + } + } + } +} + +revive_magyar_paganism_decision_scripted_effect = { + #Change yourself, and any willing vassals/family, over to Magyar Paganism. + set_character_faith_with_conversion = faith:magyar_pagan + #Gain nickname for your troubles. + give_nickname = nick_the_apostate + #Magyar_group counties of your old religion may defect back to the old ways. + custom_tooltip = revive_magyar_paganism_decision_scripted_effect.county_conversions.tt + hidden_effect = { + primary_title = { + every_in_de_facto_hierarchy = { + limit = { + tier = tier_county + culture = { has_cultural_pillar = heritage_magyar } + exists = scope:old_faith + religion = scope:old_faith.religion + } + #Mogyers remember the old ways best, and have a high chance to flip. + if = { + limit = { culture = culture:mogyer } + random = { + chance = 70 + set_county_faith = faith:magyar_pagan + } + } + #Slightly up the chances for the apostate. + else_if = { + limit = { holder = root } + random = { + chance = 50 + set_county_faith = faith:magyar_pagan + } + } + #Other magyar_group cultures still have a moderate chance to flip. + else = { + random = { + chance = 30 + set_county_faith = faith:magyar_pagan + } + } + } + } + } + #Make flipping counties deliriously happy about the whole affair. + primary_title = { + every_in_de_facto_hierarchy = { + limit = { + tier = tier_county + faith = faith:magyar_pagan + } + custom = hungarian_resettlement.every_converted_province + add_county_modifier = { + modifier = magyar_appreciation_modifier + years = 25 + } + } + } + #Finally, give magyar_pagans a hefty fervour boost, just so that they don't immediately convert back. + hidden_effect = { + faith:magyar_pagan = { + save_temporary_scope_as = magyar_faith + change_fervor = { + value = 100 + desc = fervor_gain_magyar_revivalism + } + } + } +} + +restore_dumnonia_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_cornwall = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + hidden_effect = { + title:d_somerset = { save_scope_as = cornwall_somerset } + title:d_gloucester = { save_scope_as = cornwall_gloucester } + title:d_cornwall = { set_de_jure_liege_title = title:k_cornwall } + if = { #If owned, annex Somerset/Wessex. + limit = { + title:d_somerset = { holder = root } + } + title:d_somerset = { set_de_jure_liege_title = title:k_cornwall } + } + if = { #If owned, annex Gloucestershire/Hwicce. + limit = { + title:d_gloucester = { holder = root } + } + title:d_gloucester = { set_de_jure_liege_title = title:k_cornwall } + } + } + custom_tooltip = restore_dumnonia_decision_effects_de_jure_tt +} + +revive_armenian_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_armenia = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + hidden_effect = { + title:k_armenia = { save_scope_as = armenian_armenia } + title:k_georgia = { save_scope_as = armenian_georgia } + title:k_daylam = { save_scope_as = armenian_daylam } + title:k_jazira = { save_scope_as = armenian_jazira } + title:k_syria = { save_scope_as = armenian_syria } + title:k_jerusalem = { save_scope_as = armenian_jerusalem } + title:k_anatolia = { save_scope_as = armenian_anatolia } + title:k_pontus = { save_scope_as = armenian_pontus } + title:e_armenia = { save_scope_as = armenian_armenia_empire } + title:k_armenia = { set_de_jure_liege_title = title:e_armenia } + if = { + limit = { + title:k_armenia = { is_title_created = yes } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_armenia = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_armenia = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_armenia = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_greater_armenia = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_greater_armenia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_vaspurakan = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_vaspurakan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If any have drifted out, then k_armenia's constituent duchies are flipped back. + limit = { + title:d_mesopotamia = { + NOT = { target_is_de_jure_liege_or_above = title:k_armenia } + } + } + title:d_mesopotamia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Daylam & exempt Azerbaijan from de jure flipping to Armenia. + limit = { + title:k_daylam = { holder = root } + title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Daylam & flip Azerbaijan to Armenia. + limit = { + title:k_daylam = { holder = root } + NOT = { + title:d_azerbaijan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_azerbaijan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Daylam & exempt Shirvan from de jure flipping to Armenia. + limit = { + title:k_daylam = { holder = root } + title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Daylam & flip Shirvan to Armenia. + limit = { + title:k_daylam = { holder = root } + NOT = { + title:d_shirvan = { target_is_de_jure_liege_or_above = title:k_daylam } + } + } + title:k_daylam = { set_de_jure_liege_title = title:e_armenia } + title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_shirvan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Georgia & exempt ducal Georgia from de jure flipping to Armenia. + limit = { + title:k_georgia = { holder = root } + title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } + } + title:k_georgia = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Georgia & flip ducal Georgia to Armenia. + limit = { + title:k_georgia = { holder = root } + NOT = { + title:d_georgia = { target_is_de_jure_liege_or_above = title:k_georgia } + } + } + title:k_georgia = { set_de_jure_liege_title = title:e_armenia } + title:d_georgia = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_georgia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Anatolia & exempt Cilicia from de jure flipping to Armenia. + limit = { + title:k_anatolia = { holder = root } + title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } + } + title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Anatolia & flip Cilicia to Armenia. + limit = { + title:k_anatolia = { holder = root } + NOT = { + title:d_cilicia = { target_is_de_jure_liege_or_above = title:k_anatolia } + } + } + title:k_anatolia = { set_de_jure_liege_title = title:e_armenia } + title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_cilicia = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Jazira & exempt Diyarbakr from de jure flipping to Armenia. + limit = { + title:k_jazira = { holder = root } + title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Jazira & flip Diyarbakr to Armenia. + limit = { + title:k_jazira = { holder = root } + NOT = { + title:d_diyarbakr = { target_is_de_jure_liege_or_above = title:k_jazira } + } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_diyarbakr = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Syria & exempt Edessa from de jure flipping to Armenia. + limit = { + title:k_syria = { holder = root } + title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Syria & flip Edessa to Armenia. + limit = { + title:k_syria = { holder = root } + NOT = { + title:d_edessa = { target_is_de_jure_liege_or_above = title:k_syria } + } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + title:d_edessa = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_edessa = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & de jure has not drifted, annex Syria & exempt Antioch from de jure flipping to Armenia. + limit = { + title:k_syria = { holder = root } + title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & de jure has drifted, annex Syria & flip Antioch to Armenia. + limit = { + title:k_syria = { holder = root } + NOT = { + title:d_antioch = { target_is_de_jure_liege_or_above = title:k_syria } + } + } + title:k_syria = { set_de_jure_liege_title = title:e_armenia } + title:d_antioch = { set_de_jure_liege_title = title:k_armenia } + } + else = { + title:d_antioch = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned & Kurdistan is already part of Jazira, annex Jazira & exempt Kurdistan from de jure flipping to Armenia. + limit = { + title:k_jazira = { holder = root } + title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + } + else_if = { #If owned & Kurdistan is not part of Jazira, but Jazira is owned entirely, annex Jazira & flip Kurdistan to Jazira, because bordergore. + limit = { + title:k_jazira = { holder = root } + NOT = { + title:d_kurdistan = { target_is_de_jure_liege_or_above = title:k_jazira } + } + } + title:k_jazira = { set_de_jure_liege_title = title:e_armenia } + title:d_kurdistan = { set_de_jure_liege_title = title:k_jazira } + } + else = { + title:d_kurdistan = { set_de_jure_liege_title = title:k_armenia } + } + if = { #If owned, annex Pontus. + limit = { + title:k_pontus = { holder = root } + } + title:k_pontus = { set_de_jure_liege_title = title:e_armenia } + } + if = { #If owned, annex Jerusalem. + limit = { + title:k_jerusalem = { holder = root } + } + title:k_jerusalem = { set_de_jure_liege_title = title:e_armenia } + } + } + custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_a + custom_tooltip = create_armenian_empire_decision_effects_de_jure_tt_b +} + +form_dai_viet_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_viet = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + root.dynasty = { + add_dynasty_prestige = major_dynasty_prestige_gain + } + + if = { + limit = { + title:k_viet = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_viet = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_viet = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_viet = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + #Viet controls + if = { #If owned, annex Dai Viet. + limit = { + title:k_viet = { holder = root } + } + title:k_viet = { set_de_jure_liege_title = title:e_viet } + } + if = { #If owned, annex Champa. + limit = { + title:k_champa = { holder = root } + } + title:k_champa = { set_de_jure_liege_title = title:e_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_hai_dong = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_hai_dong = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_lam_tay = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_lam_tay = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_nghe_an = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_nghe_an = { set_de_jure_liege_title = title:k_viet } + } + if = { #If any have drifted out, then k_viet's constituent duchies are flipped back. + limit = { + title:d_hai_dong = { + NOT = { target_is_de_jure_liege_or_above = title:k_viet } + } + } + title:d_thang_long = { set_de_jure_liege_title = title:k_viet } + } + #Champa controls + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_indrapura = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_indrapura = { set_de_jure_liege_title = title:k_champa } + } + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_vijaya = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_vijaya = { set_de_jure_liege_title = title:k_champa } + } + if = { #If any have drifted out, then k_champa's constituent duchies are flipped back. + limit = { + title:d_baigaur = { + NOT = { target_is_de_jure_liege_or_above = title:k_champa } + } + } + title:d_baigaur = { set_de_jure_liege_title = title:k_champa } + } + + if = { + limit = { + government_has_flag = government_is_meritocratic + } + add_realm_law = single_heir_succession_law + } +} + +form_majapahit_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_majapahit = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + root.dynasty = { + add_dynasty_modifier = majapahit_empire_founding_modifier + } + + hidden_effect = { + title:k_yavakadvipa = { save_scope_as = javanese_yavakadvipa } + title:d_SUM_palembang = { save_scope_as = javanese_palembang } + title:d_JAV_taruma = { save_scope_as = javanese_taruma } + title:d_JAV_mataram = { save_scope_as = javanese_mataram } + title:c_JAV_madura = { save_scope_as = javanese_madura } + title:e_majapahit = { save_scope_as = javanese_majapahit_empire } + title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } + if = { + limit = { + title:k_yavakadvipa = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_yavakadvipa = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_yavakadvipa = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_yavakadvipa = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { + limit = { + title:d_SUM_palembang = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_SUM_palembang = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:d_JAV_taruma = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_JAV_taruma = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:d_JAV_mataram = { + NOT = { target_is_de_jure_liege_or_above = title:k_yavakadvipa } + } + } + title:d_JAV_mataram = { set_de_jure_liege_title = title:k_yavakadvipa } + } + if = { + limit = { + title:c_JAV_madura = { + NOT = { target_is_de_jure_liege_or_above = title:d_JAV_mataram } + } + } + title:c_JAV_madura = { set_de_jure_liege_title = title:d_JAV_mataram } + } + if = { #If owned, annex Champa. + limit = { + title:k_yavakadvipa = { holder = root } + } + title:k_yavakadvipa = { set_de_jure_liege_title = title:e_majapahit } + } + } + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_a + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_b + custom_tooltip = form_majapahit_empire_decision_effects_de_jure_tt_c +} + +form_ryukyu_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + capital_county = { + every_county_province = { + add_province_modifier = ryukyu_empire_founding_province_modifier + } + } + + hidden_effect = { + title:k_ruucuu = { save_scope_as = ryukyuan_ruucuu_kingdom } + title:d_ruucuu = { save_scope_as = ryukyuan_ruucuu_duchy } + title:e_ruucuu = { save_scope_as = ryukyuan_ruucuu_empire } + title:k_ruucuu = { set_de_jure_liege_title = title:e_ruucuu } + if = { + limit = { + title:k_ruucuu = { + is_title_created = yes + NOT = { + holder = ROOT + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + else_if = { + limit = { + title:k_ruucuu = { is_title_created = no } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change_2 + add_claim_on_loss = no + } + title:k_ruucuu = { + change_title_holder = { + holder = root + change = scope:title_change_2 + } + } + resolve_title_and_vassal_change = scope:title_change_2 + } + if = { + limit = { + title:d_ruucuu = { + NOT = { target_is_de_jure_liege_or_above = title:k_ruucuu } + } + } + custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_b + title:d_ruucuu = { set_de_jure_liege_title = title:k_ruucuu } + } + if = { + limit = { + title:c_ucinaa = { + NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } + } + } + title:c_ucinaa = { set_de_jure_liege_title = title:d_ruucuu } + } + if = { + limit = { + title:c_amami = { + NOT = { target_is_de_jure_liege_or_above = title:d_ruucuu } + } + } + title:c_amami = { set_de_jure_liege_title = title:d_ruucuu } + } + } + custom_tooltip = form_ryukyu_empire_decision_effects_de_jure_tt_a +} + +form_siam_kingdom_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_siam = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + add_prestige_experience = major_fame_gain + + hidden_effect = { + title:k_siam = { save_scope_as = siam_kingdom } + title:d_sukhothai = { save_scope_as = sukhotai_duchy } + title:d_lop_buri = { save_scope_as = lop_buri } + title:d_sukhothai = { set_de_jure_liege_title = title:k_siam } + title:d_lop_buri = { set_de_jure_liege_title = title:k_siam } + every_held_title = { # add other duchies if I hold any in the region + limit = { + tier = tier_duchy + any_de_jure_county = { + title_province = { + OR = { + geographical_region = world_asia_thailand + geographical_region = world_asia_malaysia + } + } + } + NOT = { + this = title:d_sukhothai + this = title:d_lop_buri + } + } + set_de_jure_liege_title = title:k_siam + } + } + custom_tooltip = form_siam_kingdom_decision_effects_de_jure_tt_a +} + +restore_holy_roman_empire_decision_scripted_effect = { + save_scope_as = founder + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:e_hre = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + set_primary_title_to = title:e_hre + + #Papal hook management. + if = { + limit = { + faith.religious_head = { + exists = this + opinion = { + target = root + value < high_positive_opinion + } + } + OR = { + has_weak_hook = faith.religious_head + has_strong_usable_hook = faith.religious_head + } + } + use_hook = faith.religious_head + } + + #Sort title laws. + if = { + limit = { + OR = { + has_title = title:k_east_francia + any_vassal = { + has_title = title:k_east_francia + } + } + } + destroy_title = title:k_east_francia #Make Germany inalienable. + } + title:e_hre = { + add_title_law = princely_elective_succession_law + if = { #Add Salic law. + limit = { + root = { + OR = { + has_realm_law = male_preference_law + has_realm_law = male_only_law + } + } + } + add_title_law = male_only_law + } + if = { #Ignore Salic law. + limit = { + root = { has_realm_law = equal_law } + } + add_title_law = equal_law + } + if = { #Invert Salic law. Take that, Clovis, y'big nerd. + limit = { + root = { + OR = { + has_realm_law = female_preference_law + has_realm_law = female_only_law + } + } + } + add_title_law = female_only_law + } + custom_tooltip = hre_elector_list_creation_tt + } + + #Add de jures. + hidden_effect = { + if = { #If Germania is nae a thing, merge it into the HRE. + limit = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_lotharingia + has_title = title:k_frisia + any_vassal = { + OR = { + has_title = title:k_east_francia + has_title = title:k_bavaria + has_title = title:k_lotharingia + has_title = title:k_frisia + } + } + } + OR = { + NOT = { exists = title:e_germany.holder } + title:e_germany.holder ?= root + } + } + title:e_germany = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_kingdom } + set_de_jure_liege_title = title:e_hre + } + } + } + every_held_title = { + title_tier = kingdom + limit = { + NOT = { #The Pope retains vague dibs on Italy. + any_this_title_or_de_jure_above = { this = title:e_italy } + } + save_temporary_scope_as = this_title + #root = { completely_controls = scope:this_title } + } + set_de_jure_liege_title = title:e_hre + } + every_vassal = { + every_held_title = { + title_tier = kingdom + limit = { + NOT = { #The Pope retains vague dibs on Italy. + any_this_title_or_de_jure_above = { this = title:e_italy } + } + save_temporary_scope_as = this_title + #prev = { completely_controls = scope:this_title } + } + set_de_jure_liege_title = title:e_hre + } + } + if = { # Merge Francia into the HRE under certain conditions + limit = { + OR = { + NOT = { exists = title:e_france.holder } + title:e_france.holder ?= root + } + OR = { + title:k_france = { # If core West Francia is part of the HRE + target_is_de_jure_liege_or_above = title:e_hre + } + calc_true_if = { # Or 2+ of the other francian Kingdoms + amount >= 2 + title:k_burgundy = { + target_is_de_jure_liege_or_above = title:e_hre + } + title:k_aquitaine = { + target_is_de_jure_liege_or_above = title:e_hre + } + title:k_brittany = { + target_is_de_jure_liege_or_above = title:e_hre + } + } + } + } + title:e_france = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_kingdom } + set_de_jure_liege_title = title:e_hre + } + } + } + every_vassal = { + limit = { + is_ai = yes + } + every_held_title = { + title_tier = kingdom + root = { + destroy_title = prev + } + } + } + every_held_title = { + title_tier >= kingdom + limit = { + NOT = { + this = title:e_hre + } + save_temporary_scope_as = this_title + } + root = { + destroy_title = prev + } + } + } + custom_tooltip = restore_holy_roman_empire_decision_effects_de_jure.tt + + #And add a bit of prestige for the trouble. + add_prestige = massive_prestige_value +} + +found_kingdom_of_bosnia_decision_scripted_effect = { + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_bosnia = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_bosna = { set_de_jure_liege_title = title:k_bosnia } + title:d_lower_bosna = { set_de_jure_liege_title = title:k_bosnia } + title:d_usora = { set_de_jure_liege_title = title:k_bosnia } +} + +found_kingdom_of_livonia_decision_scripted_effect = { + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_livonia = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_latgalia = { set_de_jure_liege_title = title:k_livonia } + title:d_courland = { set_de_jure_liege_title = title:k_livonia } + title:d_livonia = { set_de_jure_liege_title = title:k_livonia } + if = { + limit = { + title:d_esthonia = { holder = root } + } + title:d_esthonia = { set_de_jure_liege_title = title:k_livonia } + } + if = { + limit = { + has_faith = faith:baltic_pagan + root.culture = { NOT = { has_innovation = innovation_longboats } } + } + root.culture = { add_innovation = innovation_longboats } + } +} + +unite_bene_israel_effect = { + add_prestige = major_prestige_gain + add_piety = major_piety_gain + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_bene_israel = { + change_title_holder = { + holder = scope:founder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + title:d_chera_nadu = { set_de_jure_liege_title = title:k_bene_israel } + title:d_konkana = { set_de_jure_liege_title = title:k_bene_israel } + if = { + limit = { + title:d_lata = { holder = root } + } + title:d_lata = { set_de_jure_liege_title = title:k_bene_israel } + } + if = { + limit = { + title:d_nasikya = { holder = root } + } + title:d_nasikya = { set_de_jure_liege_title = title:k_bene_israel } + } + random_held_title = { + title_tier = barony + limit = { + is_holy_site_of = faith:malabarism + } + county = { set_county_culture = culture:kochinim } + county = { set_county_faith = faith:malabarism } + } +} + +hre_elector_list_save_effect = { + ordered_in_global_list = { + variable = hre_elector_list + max = 7 + check_range_bounds = no + order_by = tier + save_temporary_scope_as = hre_elector_title + title:e_hre = { + if = { + limit = { NOT = { has_variable = hre_elector_1 } } + set_variable = { name = hre_elector_1 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_2 } } + set_variable = { name = hre_elector_2 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_3 } } + set_variable = { name = hre_elector_3 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_4 } } + set_variable = { name = hre_elector_4 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_5 } } + set_variable = { name = hre_elector_5 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_6 } } + set_variable = { name = hre_elector_6 value = scope:hre_elector_title } + } + else_if = { + limit = { NOT = { has_variable = hre_elector_7 } } + set_variable = { name = hre_elector_7 value = scope:hre_elector_title } + } + } + } +} + +favour_the_countryside_basques_decision_generic_effects_scripted_effect = { + scope:religious_leader = { + # If you weren't Basque, become so. + if = { + limit = { favour_the_countryside_basques_counts_as_basque_trigger = no } + # Now, we need to work out which Basque culture you should be. + ## First, we gather our candidates. + ### Going through counties. + every_sub_realm_county = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ### Plus vassals. + every_vassal_or_below = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ### And those close to you. + every_close_or_extended_family_member = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_consort = { + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_relation = { + type = friend + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + every_relation = { + type = lover + limit = { + favour_the_countryside_basques_counts_as_basque_trigger = yes + NOT = { + culture = { is_in_list = realm_basque_cultures_list } + } + } + culture = { add_to_list = realm_basque_cultures_list } + } + ## Next, we process the list. + if = { + limit = { + any_in_list = { + list = realm_basque_cultures_list + exists = this + } + } + ordered_in_list = { + list = realm_basque_cultures_list + order_by = { + value = 0 + save_temporary_scope_as = culture_temp + # Culture counties are added differently depending on whether they're inside or outside the realm + every_culture_county = { + # Every culture county in your realm adds 10. + if = { + limit = { + holder = { + OR = { + this = scope:religious_leader + any_liege_or_above = { this = scope:religious_leader } + } + } + } + add = 10 + } + # Every culture county outside your realm adds 5. + else = { add = 5 } + } + scope:religious_leader = { + # Vassals add weight depending on their rank. + every_vassal = { + if = { + limit = { culture = scope:culture_temp } + # Every king-tier vassal adds 50. + if = { + limit = { highest_held_title_tier = tier_kingdom } + add = 50 + } + # Every duke-tier vassal adds 25. + else_if = { + limit = { highest_held_title_tier = tier_duchy } + add = 25 + } + # Every count-tier vassal adds 10. + else_if = { + limit = { highest_held_title_tier = tier_county } + add = 10 + } + # Barons are unimportant. + } + } + # Every close family member adds 15. + every_close_family_member = { + limit = { culture = scope:culture_temp } + add = 15 + } + # Every extended family members adds 5. + every_extended_family_member = { + limit = { culture = scope:culture_temp } + add = 5 + } + # Every soulmate adds 50. + every_relation = { + type = soulmate + limit = { culture = scope:culture_temp } + add = 50 + } + # Every best friend adds 50. + every_relation = { + type = best_friend + limit = { culture = scope:culture_temp } + add = 50 + } + # Every lover adds 15. + every_relation = { + type = lover + limit = { + culture = scope:culture_temp + NOT = { has_relation_soulmate = scope:religious_leader } + } + add = 15 + } + # Every friend adds 15. + every_relation = { + type = friend + limit = { + culture = scope:culture_temp + NOT = { has_relation_best_friend = scope:religious_leader } + } + add = 15 + } + } + } + save_scope_as = chosen_basque_culture + } + } + ## Finally, we try to convert. + if = { + limit = { exists = scope:chosen_basque_culture } + convert_family_culture_and_notify_vassals_effect = { + CONVERTER = scope:religious_leader + OLD_CULTURE = scope:religious_leader.culture + NEW_CULTURE = scope:chosen_basque_culture + } + } + # If this hasn't worked at all, and they've got _any_ counties left, we just switch you to the regular Basque. + else_if = { + limit = { + culture:basque = { + any_culture_county = { exists = this } + } + } + convert_family_culture_and_notify_vassals_effect = { + CONVERTER = scope:religious_leader + OLD_CULTURE = scope:religious_leader.culture + NEW_CULTURE = culture:basque + } + } + # Otherwise, we presume that the Basque presence in the region is extinct or negligible (at least on the macro level), so we leave your culture alone. + } + # Assign a new nickname, if appropriate. + if = { + limit = { + OR = { + has_any_nickname = no + has_bad_nickname = yes + } + } + # If you're not already a pagan, guess what folks call you? + if = { + limit = { + NOT = { + faith = { has_doctrine = pagan_hostility_doctrine } + } + } + give_nickname = nick_the_pagan + } + # Otherwise, you're probably an invading Viking and you deserve to get memed. + else = { give_nickname = nick_the_mountain_king } + } + # Switch to the new faith. + add_character_flag = { + flag = delay_player_faith_conversion_notification_event + days = 1 + } + # Configure Basque paganism's variable set-up. + faith:basque_pagan = { + # Remove the restrictions on converting to Basque paganism. + remove_variable = block_conversion_till_decision_taken + # And, since you're inherently creating a new priestly structure + ## This is mostly done here for immersive reasons; we don't want to imply that Basque paganism already had a distinct organised religious hierarchy in 867 by just applying this on game start, even though you'll always have to have it to access the faith. + set_variable = { name = has_been_reformed } + remove_doctrine = unreformed_faith_doctrine + } + # Finally, convert. + ## We do this here so that it's reformed by the time you switch (giving you a better chance with vassal conversion rates). + set_character_faith_with_conversion = faith:basque_pagan + } +} + +favour_the_countryside_basques_decision_fundamentalist_path_scripted_effect = { + faith:basque_pagan = { + # First, we remove Christian Syncretism & replace it with Warmonger. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_warmonger + # Then, we switch on over from Pluralist to Fundamentalist. + ## We disguise some of these changes for neatness, as there's a lot to process. + hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } + add_doctrine = doctrine_pluralism_fundamentalist + # No HoF becomes a spiritual HoF, so that you can make use of your Warmonger GHWs. + hidden_effect = { remove_doctrine = doctrine_no_head } + add_doctrine = doctrine_spiritual_head + # Plus, set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Create the new HoF. + hidden_effect = { + scope:religious_leader = { + set_up_dynamic_spiritual_hof_title_effect = { CREATOR = scope:religious_leader } + } + } + custom_tooltip = favour_the_countryside_basques_decision.tt.spiritual_hof_acquired + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_righteous_path_scripted_effect = { + faith:basque_pagan = { + # First, we remove Christian Syncretism & replace it with Sanctity of Nature. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_sanctity_of_nature + # Then, we switch on over from Pluralist to Righteous. + ## We disguise some of these changes for neatness, as there's a lot to process. + hidden_effect = { remove_doctrine = doctrine_pluralism_pluralistic } + add_doctrine = doctrine_pluralism_righteous + # No HoF becomes you as the temporal HoF, as you're focusing more on the non-Christian parts of the faith. + hidden_effect = { + remove_doctrine = doctrine_no_head + remove_doctrine = doctrine_theocracy_temporal + remove_doctrine = doctrine_clerical_succession_spiritual_appointment + } + add_doctrine = doctrine_temporal_head + add_doctrine = doctrine_theocracy_lay_clergy + add_doctrine = doctrine_clerical_succession_temporal_fixed_appointment + # Plus, set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Create the new HoF. + hidden_effect = { + scope:religious_leader = { + set_up_dynamic_temporal_hof_title_effect = { NEW_HOLDER = scope:religious_leader } + } + } + custom_tooltip = favour_the_countryside_basques_decision.tt.temporal_hof_acquired + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_pluralist_path_scripted_effect = { + faith:basque_pagan = { + # First, we mostly only need to remove Christian Syncretism & replace it with Islamic Syncretism. + remove_doctrine = tenet_christian_syncretism + add_doctrine = tenet_islamic_syncretism + # Then set the faith's fervour to a middling/low level, since you've messed with it. + change_fervor = { + value = -50 + desc = fervour_loss_temporal_meddling + } + } + # Bonus opinion with every neighbouring Islamic ruler & their vassals, who appreciate the direction you're going in. + ## Compile a list. + top_liege = { + if = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + every_vassal_or_below = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + } + every_neighboring_and_across_water_top_liege_realm_owner = { + if = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + every_vassal_or_below = { + limit = { religion = religion:islam_religion } + add_to_list = pleased_rulers + } + } + ## And apply some opinions. + every_in_list = { + list = pleased_rulers + custom = favour_the_countryside_basques_decision.tt.all_neighbouring_islamic_rulers + add_opinion = { + target = scope:religious_leader + modifier = pleased_opinion + opinion = 30 + } + } + # We get a small modifier for clergy approval, since they're a bit peeved at the tenet-messing. + add_character_modifier = fp2_friend_of_the_old_ways_modifier +} + +favour_the_countryside_basques_decision_default_path_scripted_effect = { + faith:basque_pagan = { + # Here, we're not fiddling with the faith's traditions at all, so we get a chonky fervour bonus for the sudden limelight. + change_fervor = { + value = 100 + desc = fervour_gain_unexpected_resurgence + } + } + # Plus a massive chunk of piety experience... + add_piety_experience = 2000 + # ... and a more powerful clergy-approval modifier. + add_character_modifier = fp2_champion_of_the_old_ways_modifier +} + +create_kingdom_of_saxony_effect = { + if = { + limit = { + NOR = { + root = $CHARACTER$ + exists = scope:new_saxon_king + } + } + # Grant every held title in Saxony to the new holder + root = { + every_held_title = { + limit = { + OR = { + title:k_saxony = { is_de_jure_liege_or_above_target = prev } + title:k_sorbia = { is_de_jure_liege_or_above_target = prev } + } + NOT = { + holder = { capital_county = prev } + } + } + create_title_and_vassal_change = { + type = granted + save_scope_as = title_change + add_claim_on_loss = no + } + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + resolve_title_and_vassal_change = scope:title_change + } + } + } + if = { + limit = { exists = title:k_sorbia.holder } + destroy_title = title:k_sorbia + } + title:k_sorbia = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_duchy } + set_de_jure_liege_title = title:k_saxony + } + } + title:k_saxony = { set_coa = k_saxon_electorate } + title:k_saxony = { set_de_jure_liege_title = title:e_hre } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + if = { + limit = { + has_title = title:e_hre + } + hidden_effect = { + title:k_saxony = { + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + } + } + } + else = { + title:k_saxony = { + change_title_holder = { + holder = $CHARACTER$ + change = scope:title_change + } + } + } + every_vassal = { + limit = { + primary_title = { + OR = { + title:k_saxony = { is_de_jure_liege_or_above_target = prev } + title:k_sorbia = { is_de_jure_liege_or_above_target = prev } + } + } + NOT = { this = $CHARACTER$ } + NOT = { any_liege_or_above = { this = $CHARACTER$ } } + } + change_liege = { + liege = $CHARACTER$ + change = scope:title_change + } + } + hidden_effect = { + if = { + limit = { + NOR = { + $CHARACTER$ = root + $CHARACTER$ = { is_vassal_or_below_of = root } + } + } + $CHARACTER$ = { + change_liege = { + liege = root + change = scope:title_change + } + } + } + } + resolve_title_and_vassal_change = scope:title_change + hidden_effect = { + $CHARACTER$ = { save_scope_as = new_saxon_king } + every_player = { + limit = { + this != prev + or = { + is_vassal_or_below_of = title:e_hre.holder + AND = { + exists = title:e_west_slavia + is_vassal_or_below_of = title:e_west_slavia.holder + } + title:e_hre = { is_neighbor_to_realm = prev } + primary_title = { + title:e_west_slavia = { is_de_jure_liege_or_above_target = prev } + } + } + } + trigger_event = middle_europe_decisions.0018 + } + } +} + +restore_old_vasconia_decision_scripted_effect = { + save_scope_as = founder + # Give Navarra if not held + if = { + limit = { + NOT = { has_title = title:k_navarra } + } + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + title:k_navarra = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + } + title:k_navarra = { set_title_name = k_vasconia } + hidden_effect = { + # Transfer de jure + every_in_list = { + list = vasconia_duchies + limit = { + save_temporary_scope_as = duchy_temp + root = { completely_controls = scope:duchy_temp } + NOT = { de_jure_liege = title:k_navarra } + } + add_to_list = vasconia_transfers + set_de_jure_liege_title = title:k_navarra + } + # Destroy held superseded kingdoms (no de jure land left) + every_in_list = { + list = vasconia_kingdoms + limit = { + holder = root + any_direct_de_jure_vassal_title = { count < 1 } + } + add_to_list = superseded_kingdoms + save_scope_as = superseded_kingdom + root = { destroy_title = scope:superseded_kingdom } + } + } +} + +restore_old_vasconia_decision_tooltip_scripted_effect = { + custom_tooltip = restore_old_vasconia_decision_vasconia_past_tt + show_as_tooltip = { + every_in_list = { + list = vasconia_transfers + set_de_jure_liege_title = title:k_navarra + } + every_in_list = { + list = superseded_kingdoms + save_scope_as = superseded_kingdom + root = { destroy_title = scope:superseded_kingdom } + } + } +} + +create_beth_nahrain_scripted_effect = { + #Create Beth Nahrain + hidden_effect = { + every_held_title = { + limit = { + tier = tier_empire + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_beth_nahrain + } + } + } +} + +promote_culture_beth_nahrain_scripted_effect = { + every_sub_realm_county = { + custom = promote_culture_beth_nahrain_modifier_custom_desc + limit = { + NOT = { + culture = { has_cultural_pillar = heritage_syriac } + } + title_province = { geographical_region = custom_beth_nahrain } + } + add_county_modifier = { + modifier = promote_culture_beth_nahrain_modifier + years = 50 + } + } + if = { + limit = { + faith = faith:nestorian + } + faith:nestorian = { + change_fervor = { + value = 100 + desc = middle_east_major_decisions.1020_fervor + } + } + } + else_if = { + limit = { + NOT = { + exists = scope:suppress_tooltips + } + } + custom_tooltip = middle_east_major_decisions.1020.lack_nestorian + } +} + +learning_beth_nahrain_scripted_effect = { + house ?= { + add_house_modifier = { + modifier = learning_beth_nahrain_house_modifier + years = 100 + } + } + add_piety_experience = monumental_piety_value +} + +martial_beth_nahrain_scripted_effect = { + house ?= { + add_house_modifier = { + modifier = martial_beth_nahrain_house_modifier + years = 100 + } + } + add_prestige_experience = monumental_prestige_value +} + +nestorian_faith_beth_nahrain_scripted_effect = { + add_trait = crusader_king + add_piety_experience = monumental_piety_value +} + +no_faith_beth_nahrain_scripted_effect = { + faith:nestorian = { + change_fervor = { + value = 100 + desc = middle_east_major_decisions.1020_fervor + } + } + set_character_faith_with_conversion = faith:nestorian + add_piety = monumental_piety_gain +} + +found_empire_of_hindustan_scripted_effect = { + save_scope_as = founder + + create_title_and_vassal_change = { + type = created + save_scope_as = title_change + add_claim_on_loss = no + } + if = { + limit = { + completely_controls = title:k_punjab #This will always be true but it keeps the decision text easier to read before you fulfill the criteria + NOT = { has_title = title:k_punjab } + } + title:k_punjab = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + completely_controls = title:k_delhi #This will always be true but it keeps the decision text easier to read before you fulfill the criteria + NOT = { has_title = title:k_delhi } + } + title:k_delhi = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + OR = { + NOT = { title:d_kuru.holder = root } + AND = { + exists = title:d_kuru.holder + title:d_kuru.holder = { + is_ai = yes + } + } + } + } + title:d_kuru = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + if = { + limit = { + NOT = { title:c_delhi.holder = root } + } + title:c_delhi = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + } + title:e_hindustan = { + change_title_holder = { + holder = root + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + set_primary_title_to = title:e_hindustan + + hidden_effect = { + title:k_delhi = { + set_de_jure_liege_title = title:e_hindustan + } + title:k_punjab = { + set_de_jure_liege_title = title:e_hindustan + } + every_held_title = { + limit = { + tier = tier_kingdom + OR = { + de_jure_liege = title:e_bengal + de_jure_liege = title:e_deccan + de_jure_liege = title:e_rajastan + } + } + set_de_jure_liege_title = title:e_hindustan + } + #Areas that have had more muslim influence wants to avoid border gore and gets added even if not held - unless controlled by an independent Emperor of Rajastan: + if = { + limit = { + NOT = { + title:k_sindh.holder.liege = { + has_title = title:e_rajastan + } + } + } + title:k_sindh = { + set_de_jure_liege_title = title:e_hindustan + } + } + if = { + limit = { + NOT = { + title:k_kashmir.holder.liege = { + has_title = title:e_rajastan + } + } + } + title:k_kashmir = { + set_de_jure_liege_title = title:e_hindustan + } + } + add_character_flag = e_hindustan #For title flavorization + } + #If the new Emperor of Hindustan holds any of the Indian Empires these are destroyed and their kingdoms added to Hindustan too + #This is not inside the hidden block to not hide that the empires are destroyed. + if = { + limit = { + has_title = title:e_bengal + } + hidden_effect = { + title:e_bengal = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_bengal + } + if = { + limit = { + has_title = title:e_deccan + } + hidden_effect = { + title:e_deccan = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_deccan + } + if = { + limit = { + has_title = title:e_rajastan + } + hidden_effect = { + title:e_rajastan = { + every_in_de_jure_hierarchy = { + limit = { + tier = tier_kingdom + } + set_de_jure_liege_title = title:e_hindustan + } + } + } + destroy_title = title:e_rajastan + } + custom_tooltip = found_empire_of_hindustan_decision_effects_de_jure_tt + hidden_effect = { + if = { # Let's see if you have ultimo and save that if so + limit = { + has_realm_law = single_heir_succession_law_youngest + } + save_scope_as = set_ultimo_temp_scope + } + } + if = { + limit = { has_dlc_feature = admin_gov } + convert_to_administrative_from_feudalism_effect = { GOVERNMENT_TO_ADOPT = flag:administrative } + } + hidden_effect = { + if = { # If you had ultimo, you get to keep it. Otherwise, you get primo for free. + limit = { + exists = scope:set_ultimo_temp_scope + } + add_realm_law = single_heir_succession_law_youngest + } + else = { + add_realm_law = single_heir_succession_law + } + } + add_legitimacy_effect = { LEGITIMACY = massive_legitimacy_gain } + dynasty ?= { add_dynasty_prestige = massive_dynasty_prestige_value } +} + + restore_swedish_empire_effect = { add_prestige = massive_prestige_gain diff --git a/common/scripted_effects/06_dlc_ce1_legend_effects.txt b/common/scripted_effects/06_dlc_ce1_legend_effects.txt deleted file mode 100644 index 553e7960..00000000 --- a/common/scripted_effects/06_dlc_ce1_legend_effects.txt +++ /dev/null @@ -1,3024 +0,0 @@ -#grab_appropriate_chronicler_effect -#grab_appropriate_bard_feast_effect - this one doesn't check if they're available, so it can be used in activities -#grab_appropriate_bard_effect - this one checks if they're available -#grab_mythical_founder_effect -#disburse_hunt_legend_seeds -#change_legend_quality_effect - This adjusts the quality of a legend using an invisible progress bar that goes from 0-100. When it hits 100, the legend increases one step in quality, if it dips below 0, the legend loses one step in quality -#legend_completion_quality_flag_effect -#legend_ending_rewards_heroic_effect -#legend_ending_rewards_holy_effect -#legend_ending_rewards_legitimizing_effect -#legend_completion_type_flag_effect -#get_appropriate_ancient_people - this looks for regionally appropriate ancient people for you to lay claim to -# get_appropriate_exotic_location - Atlantis, Vinland, places of dubious historicity -# generate_godly_descent_seed_support_effect - create a godly descent seed based on loc keys -# generate_religion_descent_effect - generate a godly descent seed based on scopes -# balancing_legend_global_var_effect -# send_interface_message_legend_notification_effect -# send_interface_toast_legend_notification_effect -# create_swan_knight_legend_seed_effect - -grab_appropriate_chronicler_effect = { - if = { #If the culture would have relied on poets for this we grab them first - limit = { - OR = { - culture = { - OR = { - has_cultural_tradition = tradition_fp1_northern_stories - has_cultural_parameter = poet_trait_gives_bonuses - has_cultural_tradition = tradition_storytellers - has_cultural_tradition = tradition_chanson_de_geste - } - } - faith = { - trait_is_virtue = lifestyle_poet - } - } - any_court_position_holder = { - type = court_poet_court_position - is_available_ai_adult = yes - } - } - random_court_position_holder = { - type = court_poet_court_position - limit = { - is_available_ai_adult = yes - } - save_scope_as = chronicler - } - } - else_if = { #Otherwise we go for the Chronicler first - limit = { - any_court_position_holder = { - type = chronicler_court_position - is_available_ai_adult = yes - } - } - random_court_position_holder = { - type = chronicler_court_position - limit = { - is_available_ai_adult = yes - } - save_scope_as = chronicler - } - } - else_if = { - limit = { - any_court_position_holder = { - type = court_poet_court_position - is_available_ai_adult = yes - } - } - random_court_position_holder = { - type = court_poet_court_position - limit = { - is_available_ai_adult = yes - } - save_scope_as = chronicler - } - } - else_if = { - limit = { - any_court_position_holder = { - type = court_musician_court_position - is_available_ai_adult = yes - } - } - random_court_position_holder = { - type = court_musician_court_position - limit = { - is_available_ai_adult = yes - } - save_scope_as = chronicler - } - } - else = { - ordered_courtier = { - limit = { - this != root - is_available_ai_adult = yes - } - order_by = { - value = diplomacy - if = { - limit = { - OR = { - has_trait = lifestyle_poet - has_trait = journaller - } - } - add = 10 - } - if = { - limit = { is_spouse_of = root } - add = -2 - } - } - save_scope_as = chronicler - } - } -} - -grab_appropriate_bard_feast_effect = { - if = { - limit = { - employs_court_position = court_musician_court_position - scope:activity = { - any_attending_character = { - employer = root - has_court_position = court_musician_court_position - is_physically_able_ai_adult = yes - } - } - } - scope:activity = { - random_attending_character = { - limit = { - employer = root - has_court_position = court_musician_court_position - is_physically_able_ai_adult = yes - } - save_scope_as = bard - } - } - } - else_if = { - limit = { - employs_court_position = court_poet_court_position - scope:activity = { - any_attending_character = { - employer = root - has_court_position = court_poet_court_position - is_physically_able_ai_adult = yes - } - } - } - scope:activity = { - random_attending_character = { - limit = { - employer = root - has_court_position = court_poet_court_position - is_physically_able_ai_adult = yes - } - save_scope_as = bard - } - } - } - else_if = { - limit = { - scope:activity = { - any_attending_character = { - OR = { - is_vassal_of = root - is_courtier_of = root - } - this != root - NOT = { is_spouse_of = root } - NOT = { is_child_of = root } - NOT = { is_councillor_of = root } - is_physically_able_ai_adult = yes - } - } - } - scope:activity = { - ordered_attending_character = { - limit = { - OR = { - is_vassal_of = root - is_courtier_of = root - } - this != root - NOT = { is_spouse_of = root } - NOT = { is_child_of = root } - is_physically_able_ai_adult = yes - } - order_by = { - value = diplomacy - if = { - limit = { - has_trait = lifestyle_poet - } - add = 10 - } - if = { - limit = { - has_trait = journaller - } - add = 5 - } - } - } - save_scope_as = bard - } - } - else = { - create_character = { - template = bard_template - dynasty = none - location = root.location - gender_female_chance = root_faith_dominant_gender_female_chance - save_scope_as = bard - } - } -} - -grab_appropriate_bard_effect = { - if = { - limit = { - employs_court_position = court_musician_court_position - any_court_position_holder = { - type = court_musician_court_position - is_available_healthy_ai_adult = yes - } - } - random_court_position_holder = { - type = court_musician_court_position - limit = { is_available_healthy_ai_adult = yes } - save_scope_as = bard - } - } - else_if = { - limit = { - employs_court_position = court_poet_court_position - any_court_position_holder = { - type = court_poet_court_position - is_available_healthy_ai_adult = yes - } - } - random_court_position_holder = { - type = court_poet_court_position - limit = { is_available_healthy_ai_adult = yes } - save_scope_as = bard - } - } - else_if = { - limit = { - any_courtier = { - this != root - NOT = { is_spouse_of = root } - NOT = { is_child_of = root } - NOT = { is_councillor_of = root } - is_available_healthy_ai_adult = yes - } - } - ordered_courtier = { - limit = { - this != root - NOT = { is_spouse_of = root } - NOT = { is_child_of = root } - NOT = { is_councillor_of = root } - is_available_healthy_ai_adult = yes - } - order_by = { - value = diplomacy - if = { - limit = { - has_trait = lifestyle_poet - } - add = 10 - } - if = { - limit = { - has_trait = journaller - } - add = 5 - } - } - save_scope_as = bard - } - } - else = { - create_character = { - template = bard_template - dynasty = none - location = root.location - gender_female_chance = root_faith_dominant_gender_female_chance - save_scope_as = bard - } - } -} - -grab_mythical_founder_effect = { - hidden_effect = { - if = { - limit = { - NOT = { exists = var:mythical_ancestor_var } - } - random_list = { - 10 = { # Charles Martell - trigger = { - AND = { - OR = { - root.primary_title = title:k_france - root.primary_title = title:e_france - } - current_date > 1000.1.1 - } - } - set_variable = { name = mythical_ancestor_var value = flag:charles_martell } - } - 10 = { # Alexander the Great - trigger = { - OR = { - root.primary_title = title:k_thessalonika - root.primary_title = title:k_hellas - root.primary_title = title:k_egypt - AND = { - OR = { - root.primary_title = title:k_persia - root.primary_title = title:e_persia - } - NOR = { - root.faith.religion = religion:islam_religion - root.faith.religion = religion:zoroastrianism_religion - } - } - root.primary_title = title:k_anatolia - } - } - set_variable = { name = mythical_ancestor_var value = flag:alexander } - } - 10 = { # Lech - trigger = { - root.primary_title = title:k_poland - } - set_variable = { name = mythical_ancestor_var value = flag:lech } - } - 10 = { # Czech - trigger = { - OR = { - root.primary_title = title:k_bohemia - root.primary_title = title:d_bohemia - } - } - set_variable = { name = mythical_ancestor_var value = flag:czech } - } - 10 = { # Rus - trigger = { - OR = { - root.primary_title = title:k_white_rus - root.primary_title = title:k_ruthenia - root.primary_title = title:e_russia - } - } - set_variable = { name = mythical_ancestor_var value = flag:rus } - } - 10 = { # King Arthur - trigger = { - OR = { - root.primary_title = title:k_wales - root.primary_title = title:k_cornwall - root.primary_title = title:k_england - root.primary_title = title:e_britannia - } - } - set_variable = { name = mythical_ancestor_var value = flag:arthur } - } - 10 = { # Corineus - trigger = { - root.primary_title = title:k_cornwall - } - modifier = { - current_date < 1000.1.1 - factor = 3 - } - set_variable = { name = mythical_ancestor_var value = flag:corineus } - } - 10 = { # Magnus Maximus - trigger = { - root.primary_title = title:k_wales - } - modifier = { - current_date < 1000.1.1 - factor = 3 - } - set_variable = { name = mythical_ancestor_var value = flag:magnus_maximus } - } - 30 = { # Brutus of Troy, we want this to be the default for the Brits - trigger = { - OR = { - root.primary_title = title:k_england - root.primary_title = title:e_britannia - } - } - set_variable = { name = mythical_ancestor_var value = flag:brutus } - } - 10 = { # Aeneas of Troy - trigger = { - OR = { - #Used in the Roman de Brut - root.primary_title = title:k_england - root.primary_title = title:e_britannia - #Also used by the house of Tosny - root.primary_title = title:d_normandy - capital_province = { geographical_region = world_europe_west_britannia } - #And of course used in Rome - root.primary_title = title:k_italy - root.primary_title = title:k_romagna - root.primary_title = title:k_sardinia - root.primary_title = title:e_italy - root = { - is_roman_emperor_primary_title_excluding_byzantium_trigger = yes - } - } - } - set_variable = { name = mythical_ancestor_var value = flag:aeneas } - } - 10 = { # Scota - trigger = { - OR = { # Gaels - root.primary_title = title:k_scotland - root.primary_title = title:k_ireland - } - current_date > 1100.1.1 - } - modifier = { - root.primary_title = title:k_scotland - factor = 3 - } - set_variable = { name = mythical_ancestor_var value = flag:scota } - } - 10 = { # Romulus - trigger = { - OR = { - root.primary_title = title:k_italy - root.primary_title = title:k_romagna - root.primary_title = title:k_sardinia - root.primary_title = title:e_italy - root = { is_roman_emperor_primary_title_excluding_byzantium_trigger = yes } - } - } - set_variable = { name = mythical_ancestor_var value = flag:romulus } - } - 10 = { # Numa Pompilius - trigger = { - OR = { - root.primary_title = title:k_italy - root.primary_title = title:k_romagna - root.primary_title = title:k_sardinia - root.primary_title = title:e_italy - root = { is_roman_emperor_primary_title_excluding_byzantium_trigger = yes } - } - } - set_variable = { name = mythical_ancestor_var value = flag:numa } - } - 10 = { # Belisarius - trigger = { - OR = { - root.primary_title = title:k_italy - root.primary_title = title:k_romagna - root.primary_title = title:k_sardinia - root.primary_title = title:e_italy - root = { is_roman_emperor_primary_title_excluding_byzantium_trigger = yes } - } - } - set_variable = { name = mythical_ancestor_var value = flag:belisarius } - } - 10 = { # Ardashir - trigger = { - OR = { - root.primary_title = title:k_persia - root.primary_title = title:e_persia - } - } - set_variable = { name = mythical_ancestor_var value = flag:ardashir } - } - 10 = { # Pharaohs - trigger = { - root.primary_title = title:k_egypt - NOT = { religion = religion:islam_religion } - } - set_variable = { name = mythical_ancestor_var value = flag:pharaohs } - } - 10 = { # Visigothic Kings - trigger = { - OR = { - root.primary_title = title:k_castille - root.primary_title = title:k_leon - root.primary_title = title:d_galicia - root.primary_title = title:k_aragon - root.primary_title = title:k_navarra - root.primary_title = title:k_andalusia - root.primary_title = title:k_portugal - root.primary_title = title:e_spain - } - NOT = { religion = religion:islam_religion } - } - set_variable = { name = mythical_ancestor_var value = flag:visigothic_kings } - } - 10 = { # Abd al-Rahman - trigger = { - OR = { - root.primary_title = title:k_castille - root.primary_title = title:k_aragon - root.primary_title = title:k_navarra - root.primary_title = title:k_andalusia - root.primary_title = title:k_portugal - root.primary_title = title:e_spain - } - religion = religion:islam_religion - } - set_variable = { name = mythical_ancestor_var value = flag:abd_al_rahman } - } - 10 = { # Zenobia - trigger = { - OR = { - root.primary_title = title:k_syria - root.primary_title = title:k_mesopotamia - } - NOT = { religion = religion:islam_religion } - } - set_variable = { name = mythical_ancestor_var value = flag:zenobia } - } - 10 = { # King Solomon - trigger = { - root.primary_title.title_capital_county.title_province = { - geographical_region = ghw_region_ethiopia - } - root.faith.religion = religion:christianity_religion - } - set_variable = { name = mythical_ancestor_var value = flag:solomon } - } - 10 = { # Conan Meriadoc - trigger = { - root.culture = culture:breton - NOR = { # used to distinguish themselves from the French - root.primary_title = title:k_france - root.primary_title = title:e_france - } - } - set_variable = { name = mythical_ancestor_var value = flag:conan_meriadoc } - } - 10 = { # Pishdadian Dynasty - trigger = { - OR = { - root.primary_title = title:k_persia - root.primary_title = title:e_persia - } - OR = { - root.faith.religion = religion:islam_religion - root.faith.religion = religion:zoroastrianism_religion - } - } - set_variable = { name = mythical_ancestor_var value = flag:pishdadian } - } - 10 = { # Chościsko - trigger = { - OR = { - root.primary_title = title:k_poland - root.primary_title = title:d_lesser_poland - AND = { - root.primary_title.title_capital_county.title_province = { - geographical_region = ghw_region_poland - } - faith.religion = faith:slavic_pagan.religion - } - } - } - set_variable = { name = mythical_ancestor_var value = flag:choscisko } - } - 10 = { # Arsacids - trigger = { - OR = { - root.primary_title = title:k_armenia - root.primary_title = title:k_armenian_principality - root.primary_title = title:e_armenia - } - } - set_variable = { name = mythical_ancestor_var value = flag:arsacids } - } - 10 = { # King David - trigger = { - OR = { - root.primary_title = title:k_georgia - root.primary_title = title:d_georgia - } - root.faith.religion = religion:christianity_religion - } - set_variable = { name = mythical_ancestor_var value = flag:david } - } - 10 = { # Karkota Naga - trigger = { - root.primary_title = title:k_kashmir - } - set_variable = { name = mythical_ancestor_var value = flag:naga } - } - 10 = { # God Brahman - trigger = { - root.culture = culture:tamil - OR = { #Lands held by the Pallavas - root.primary_title = title:d_tondai_nadu - root.primary_title = title:c_kanchipuram - root.primary_title = title:k_tamilakam - root.primary_title = title:c_muluvagil - } - } - set_variable = { name = mythical_ancestor_var value = flag:brahman } - } - 10 = { # Odin - trigger = { - root.faith = faith:norse_pagan - OR = { - root.primary_title = title:k_norway - root.primary_title = title:k_sweden - root.primary_title = title:d_iceland - root.primary_title = title:k_denmark - } - } - set_variable = { name = mythical_ancestor_var value = flag:odin } - } - 10 = { # Ragnar Lodbrok - trigger = { - OR = { - root.primary_title = title:k_norway - root.primary_title = title:k_sweden - root.primary_title = title:d_iceland - root.primary_title = title:k_denmark - } - } - set_variable = { name = mythical_ancestor_var value = flag:ragnar } - } - 10 = { # Brunhild - trigger = { - OR = { - root.primary_title = title:k_norway - root.primary_title = title:k_sweden - root.primary_title = title:d_iceland - root.primary_title = title:k_denmark - } - } - modifier = { - is_female = yes - factor = 5 - } - set_variable = { name = mythical_ancestor_var value = flag:brunhild } - } - 10 = { # Eremon - trigger = { - OR = { - root.primary_title = title:k_ireland - root.primary_title = title:d_connacht - root.primary_title = title:d_ulster - root.primary_title = title:c_ailech - root.primary_title = title:c_oriel - root.primary_title = title:c_breifne - root.primary_title = title:c_athlone - } - } - modifier = { - OR = { - root.primary_title = title:d_connacht - root.primary_title = title:d_ulster - root.primary_title = title:c_ailech - root.primary_title = title:c_oriel - root.primary_title = title:c_breifne - root.primary_title = title:c_athlone - } - factor = 3 - } - set_variable = { name = mythical_ancestor_var value = flag:eremon } - } - 10 = { # Eber - trigger = { - OR = { - root.primary_title = title:k_ireland - root.primary_title = title:d_munster - root.primary_title = title:c_ossory - root.primary_title = title:d_leinster - root.primary_title = title:c_desmond - } - } - modifier = { - OR = { - root.primary_title = title:d_munster - root.primary_title = title:c_ossory - root.primary_title = title:d_leinster - root.primary_title = title:c_desmond - } - factor = 3 - } - set_variable = { name = mythical_ancestor_var value = flag:eber } - } - 10 = { # Genghis Khan - trigger = { - root.culture = { has_cultural_pillar = heritage_mongolic } - current_date > 1228.1.1 - } - set_variable = { name = mythical_ancestor_var value = flag:genghis } - } - 10 = { # Emperor Constantine - trigger = { - OR = { - root.primary_title = title:c_byzantion - root.primary_title = title:e_byzantium - } - } - set_variable = { name = mythical_ancestor_var value = flag:constantine } - } - 10 = { # Emperor Justinian - trigger = { - OR = { - root.primary_title = title:c_byzantion - root.primary_title = title:e_byzantium - } - } - set_variable = { name = mythical_ancestor_var value = flag:justinian } - } - 5 = { # Melusine - trigger = { - OR = { - AND = { - has_trait = eccentric - capital_province = { geographical_region = world_europe_west } - } - #Used by the house of Anjou/Plantagenet - root.primary_title = title:c_anjou - root.primary_title = title:d_anjou - #Started in Lusignan - root.primary_title = title:d_poitou - } - current_date > 1060.1.1 - } - modifier = { #The first Plantagenets go crazy over her - OR = { - root.primary_title = title:c_anjou - root.primary_title = title:d_anjou - root.primary_title = title:d_poitou - } - current_date > 1060.1.1 - current_date < 1200.1.1 - factor = 5 - } - set_variable = { name = mythical_ancestor_var value = flag:melusine } - } - 1 = { # Fallback, only triggered when necessary - set_variable = { name = mythical_ancestor_var value = flag:fallback } - } - } - } - } -} - -disburse_hunt_legend_seeds = { - if = { - limit = { - is_ruler = yes - has_dlc_feature = legends - NOT = { has_game_rule = historical_legends_only } - } - if = { - limit = { - scope:activity.var:animal_type = flag:dragon - } - create_legend_seed = { - type = heroic - quality = famed - chronicle = beast_slayer - properties = { - beast = flag:dragon - location = root.location - } - } - } - else_if = { - limit = { - scope:activity.var:animal_type = flag:unicorn - } - create_legend_seed = { - type = heroic - quality = famed - chronicle = beast_slayer - properties = { - beast = flag:unicorn - location = root.location - } - } - } - else_if = { - limit = { - scope:activity.var:animal_type = flag:bear - } - random = { - chance = 50 - create_legend_seed = { - type = heroic - quality = famed - chronicle = beast_slayer - properties = { - beast = flag:bear - location = root.location - } - } - } - } - else_if = { - limit = { - OR = { - scope:activity.var:animal_type = flag:tiger - scope:activity.var:animal_type = flag:lion - scope:activity.var:animal_type = flag:leopard - } - } - random = { - chance = 30 - create_legend_seed = { - type = heroic - quality = famed - chronicle = beast_slayer - properties = { - beast = flag:ferocious_beast - location = root.location - } - } - } - } - } -} - -# Has to be run on the legend itself -change_legend_quality_effect = { - # Firstly, do I exist and if not, set me - if = { - limit = { - NOT = { exists = var:legend_quality_progress } - } - if = { - limit = { - $VALUE$ <= major_legend_quality_decrease - } - custom_tooltip = major_legend_quality_decrease_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ <= medium_legend_quality_decrease - } - custom_tooltip = medium_legend_quality_decrease_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ < 0 - } - custom_tooltip = minor_legend_quality_decrease_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ >= major_legend_quality_increase - } - custom_tooltip = major_legend_quality_increase_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ >= medium_legend_quality_increase - } - custom_tooltip = medium_legend_quality_increase_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ > 0 - } - custom_tooltip = minor_legend_quality_increase_tt - set_variable = { - name = legend_quality_progress - value = $VALUE$ - } - } - else = { - set_variable = { - name = legend_quality_progress - value = 0 - } - } - } - # Otherwise, check if the progress is going to go over 100 and if so, cap at 100 - else_if = { - limit = { - exists = var:legend_quality_progress - 100 <= { - value = var:legend_quality_progress - add = $VALUE$ - } - } - set_variable = { - name = legend_quality_progress - value = 100 - } - } - # Otherwise, check if the progress is going to go below 0 and if so, cap at 0 - else_if = { - limit = { - exists = var:legend_quality_progress - 0 >= { - value = var:legend_quality_progress - add = $VALUE$ - } - } - set_variable = { - name = legend_quality_progress - value = 0 - } - } - # Otherwise, just apply the mathematics - else = { - if = { - limit = { - $VALUE$ <= major_legend_quality_decrease - } - custom_tooltip = major_legend_quality_decrease_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ <= medium_legend_quality_decrease - } - custom_tooltip = medium_legend_quality_decrease_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ < 0 - } - custom_tooltip = minor_legend_quality_decrease_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ >= major_legend_quality_increase - } - custom_tooltip = major_legend_quality_increase_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ >= medium_legend_quality_increase - } - custom_tooltip = medium_legend_quality_increase_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - else_if = { - limit = { - $VALUE$ > 0 - } - custom_tooltip = minor_legend_quality_increase_tt - change_variable = { - name = legend_quality_progress - add = $VALUE$ - } - } - } -} - -#Rewards for Famed Legends -legend_ending_rewards_famed_heroic_effect = { - add_legitimacy = medium_legitimacy_gain - if = { - limit = { exists = promoted_legend } - set_variable = finished_famed_legend_var - set_variable = finished_heroic_legend_var - } -} - -legend_ending_rewards_famed_holy_effect = { - add_legitimacy = medium_legitimacy_gain - if = { - limit = { exists = promoted_legend } - set_variable = finished_famed_legend_var - set_variable = finished_holy_legend_var - } -} - -legend_ending_rewards_famed_legitimizing_effect = { - add_legitimacy = { - value = medium_legitimacy_gain - multiply = 2 - } - if = { - limit = { exists = promoted_legend } - set_variable = finished_famed_legend_var - set_variable = finished_legitimizing_legend_var - } -} - -#Rewards for Illustrious Legends -legend_ending_rewards_illustrious_heroic_effect = { - add_legitimacy = major_legitimacy_gain - if = { - limit = { exists = promoted_legend } - set_variable = finished_illustrious_legend_var - set_variable = finished_heroic_legend_var - } -} - -legend_ending_rewards_illustrious_holy_effect = { - add_legitimacy = major_legitimacy_gain - if = { - limit = { exists = promoted_legend } - set_variable = finished_illustrious_legend_var - set_variable = finished_holy_legend_var - } -} - -legend_ending_rewards_illustrious_legitimizing_effect = { - add_legitimacy = { - value = major_legitimacy_gain - multiply = 2 - } - if = { - limit = { exists = promoted_legend } - set_variable = finished_illustrious_legend_var - set_variable = finished_legitimizing_legend_var - } -} - -#Rewards for Mythical Legends -legend_ending_rewards_mythical_heroic_effect = { - add_legitimacy = massive_legitimacy_gain - # Chance to become a Living Legend - if = { - limit = { - dynasty ?= { - ce1_heroic_track_perks >= 4 - } - } - add_trait = legend - } - if = { - limit = { exists = promoted_legend } - set_variable = finished_mythical_legend_var - set_variable = finished_heroic_legend_var - } -} - -legend_ending_rewards_mythical_holy_effect = { - add_legitimacy = massive_legitimacy_gain - # Chance to become a Saint - if = { - limit = { - dynasty ?= { - ce1_heroic_track_perks >= 3 - } - } - add_trait = saint - if = { - limit = { NOT = { has_global_variable = num_of_saints_var } } - set_global_variable = { - name = num_of_saints_var - value = 1 - } - } - else = { - change_global_variable = { - name = num_of_saints_var - add = 1 - } - } - if = { - limit = { is_ai = no } - add_achievement_global_variable_effect = { - VARIABLE = ce1_canonized_achievement_unlocked - VALUE = yes - } - } - } - if = { - limit = { exists = promoted_legend } - set_variable = finished_mythical_legend_var - set_variable = finished_holy_legend_var - } -} - -legend_ending_rewards_mythical_legitimizing_effect = { - add_legitimacy = { - value = massive_legitimacy_gain - multiply = 2 - } - if = { - limit = { exists = promoted_legend } - set_variable = finished_mythical_legend_var - set_variable = finished_legitimizing_legend_var - } -} - -#We clean out the notification variables -remove_legend_notification_variables_effect = { - every_player = { - limit = { - exists = var:legend_alerted_var - var:legend_alerted_var = promoted_legend - } - remove_variable = legend_alerted_var - } -} - -#Rewards for all Heroic Legends -legend_ending_rewards_heroic_effect = { - # Legitimacy gain based on Legend Protagonist - disburse_legend_protagonist_legitimacy_effect = yes - # Available decision - custom_tooltip = legend_ending_decision_tt - hidden_effect = { - create_character_memory = { - type = ce1_completed_my_heroic_legend - participants = { - owner = root - protagonist = scope:legend_protagonist - } - } - } -} - -#Rewards for all Legitimizing Legends -legend_ending_rewards_legitimizing_effect = { - # Legitimacy gain based on Legend Protagonist - disburse_legend_protagonist_legitimacy_effect = yes - # We let you diverge if it's an Ancient People legend - if = { - limit = { - exists = scope:legendary_culture - has_dlc_feature = diverge_culture # Don't mislead players who don't have access to divergence - } - custom_tooltip = { - text = can_select_legendary_culture_pillars_tt - set_variable = { - name = legendary_culture - value = scope:legendary_culture - } - } - } - if = { #Roman Heritage legend without a Roman Empire - limit = { - scope:title_claim = title:h_roman_empire - NOT = { - exists = global_var:flag_restored_roman_empire - } - } - title:d_latium.empire = { #Italy - add_to_list = roman_heritage_claims - } - title:d_tunis.kingdom = { #North Africa - add_to_list = roman_heritage_claims - } - title:d_thrace.empire = { #Byz - add_to_list = roman_heritage_claims - } - title:d_alexandria.kingdom = { #Egypt - add_to_list = roman_heritage_claims - } - title:d_antioch.kingdom = { #Syria - add_to_list = roman_heritage_claims - } - title:d_palestine.kingdom = { #Palestine - add_to_list = roman_heritage_claims - } - custom_tooltip = { - text = legend_title_does_not_exist_sub_realm_claims_given_tt - } - hidden_effect = { - every_in_list = { - list = roman_heritage_claims - - if = { - limit = { - exists = this.holder - this.holder != root - } - root = { - add_pressed_claim = prev - add_to_variable_list = { - name = legendary_claims - target = prev - } - } - } - else_if = { - limit = { - this.tier > tier_county - } - hidden_effect = { - legend_distribute_claims_in_de_jure = yes - } - } - } - } - - } - else_if = { - limit = { - exists = scope:title_claim.holder - scope:title_claim.holder != root - } - add_pressed_claim = scope:title_claim - add_to_variable_list = { - name = legendary_claims - target = scope:title_claim - } - } - else_if = { - limit = { - scope:title_claim.tier > tier_county - } - custom_tooltip = { - text = legend_title_does_not_exist_sub_realm_claims_given_tt - } - hidden_effect = { - scope:title_claim = { - legend_distribute_claims_in_de_jure = yes - } - } - } - # Available decision - custom_tooltip = legend_ending_decision_tt - promoted_legend ?= { set_variable = finished_legend_var } - hidden_effect = { - create_character_memory = { - type = ce1_completed_my_legitimizing_legend - participants = { - owner = root - protagonist = scope:legend_protagonist - } - } - } -} - -legend_distribute_claims_in_de_jure = { - every_direct_de_jure_vassal_title = { - if = { - limit = { - exists = holder - } - root = { - add_pressed_claim = prev - add_to_variable_list = { - name = legendary_claims - target = prev - } - } - } - else_if = { - limit = { - this.tier > tier_county - } - every_direct_de_jure_vassal_title = { - if = { - limit = { - exists = holder - } - root = { - add_unpressed_claim = prev - add_to_variable_list = { - name = legendary_claims - target = prev - } - } - } - else_if = { - limit = { - this.tier > tier_county - } - every_direct_de_jure_vassal_title = { - if = { - limit = { - exists = holder - } - root = { - add_unpressed_claim = prev - add_to_variable_list = { - name = legendary_claims - target = prev - } - } - } - } - } - } - } - } -} - -#Rewards for all Holy Legends -legend_ending_rewards_holy_effect = { - # Legitimacy gain based on Legend Protagonist - disburse_legend_protagonist_legitimacy_effect = yes - # Available decision - custom_tooltip = legend_ending_decision_tt - promoted_legend ?= { set_variable = finished_legend_var } - hidden_effect = { - create_character_memory = { - type = ce1_completed_my_holy_legend - participants = { - owner = root - protagonist = scope:legend_protagonist - } - } - } -} - -# Achievements for legends -legend_ending_achievements_effect = { - if = { - limit = { - exists = promoted_legend - } - if = { # If you have the legend of Scota - limit = { - is_ai = no - promoted_legend ?= { - has_legend_chronicle = ancient_people - legend_property:culture ?= culture:ancient_egyptian - legend_property:title ?= title:k_scotland - legend_property:original_region ?= geographical_region:ghw_region_egypt_et_al - } - } - add_achievement_global_variable_effect = { - VARIABLE = ce1_the_pharaoh_islands_achievement_unlocked - VALUE = yes - } - } - if = { - limit = { is_ai = no } - add_achievement_global_variable_effect = { - VARIABLE = ce1_legendary_achievement_unlocked - VALUE = yes - } - } - if = { # If you finish your ancestor's legend - limit = { - is_ai = no - has_variable = ce1_neverending_story_achievement_possible - promoted_legend = { has_variable = ce1_neverending_story_achievement_possible_legend } - } - add_achievement_global_variable_effect = { - VARIABLE = ce1_neverending_story_achievement_unlocked - VALUE = yes - } - } - if = { # If you finish a mythical legend as a count - limit = { - is_ai = no - highest_held_title_tier = tier_county - promoted_legend = { legend_quality = mythical } - } - add_achievement_global_variable_effect = { - VARIABLE = ce1_local_legend_achievement_unlocked - VALUE = yes - } - } - } -} - -get_appropriate_ancient_people = { - random_list = { - 999 = { - trigger = { - religion = { is_in_family = rf_abrahamic } - NOT = { culture = culture:hebrew } - } - set_variable = { - name = original_region - value = geographical_region:israel_region - years = 1 - } - culture:hebrew = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - OR = { - culture_overlaps_geographical_region = world_europe - culture_overlaps_geographical_region = world_africa - culture_overlaps_geographical_region = world_asia_minor - } - } - culture = culture:egyptian - culture = culture:scottish - } - NOT = { culture = culture:ancient_egyptian } - } - set_variable = { - name = original_region - value = geographical_region:ghw_region_egypt_et_al - years = 1 - } - culture:ancient_egyptian = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - OR = { - culture_overlaps_geographical_region = world_steppe - culture_overlaps_geographical_region = custom_carpathia - } - } - culture = { has_cultural_pillar = heritage_turkic } - culture = { has_cultural_pillar = heritage_mongolic } - culture = { has_cultural_pillar = heritage_magyar } - } - NOT = { culture = culture:hunnic } - } - set_variable = { - name = original_region - value = geographical_region:world_steppe_west - years = 1 - } - culture:hunnic = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - culture_overlaps_geographical_region = world_europe - } - culture = { has_cultural_pillar = heritage_iberian } - culture = { has_cultural_pillar = heritage_north_germanic } - } - NOT = { culture = culture:gothic } - } - set_variable = { - name = original_region - value = geographical_region:world_steppe_west - years = 1 - } - culture:gothic = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - OR = { - culture_overlaps_geographical_region = world_asia_minor - culture_overlaps_geographical_region = world_middle_east - } - } - } - NOT = { culture = culture:persian } - } - set_variable = { - name = original_region - value = geographical_region:world_middle_east_persia - years = 1 - } - culture:persian = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - OR = { - culture_overlaps_geographical_region = world_europe - culture_overlaps_geographical_region = world_asia_minor - culture_overlaps_geographical_region = world_middle_east - culture_overlaps_geographical_region = world_africa_north - } - } - } - NOT = { culture = culture:trojan } - } - set_variable = { - name = original_region - value = geographical_region:troy_region - years = 1 - } - culture:trojan = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - OR = { - culture_overlaps_geographical_region = world_europe - culture_overlaps_geographical_region = world_asia_minor - culture_overlaps_geographical_region = world_middle_east - culture_overlaps_geographical_region = world_africa_north - culture_overlaps_geographical_region = world_india - culture_overlaps_geographical_region = world_steppe_tarim - } - } - } - NOT = { culture = culture:macedonian } - } - set_variable = { - name = original_region - value = geographical_region:world_europe_south_east - years = 1 - } - culture:macedonian = { save_scope_as = ancient_culture } - } - 999 = { - trigger = { - OR = { - root.culture = { - culture_overlaps_geographical_region = custom_roman_full_borders - } - religion = religion:hellenism_religion - religion = { - AND = { - is_in_family = rf_abrahamic - NOT = { this = religion:judaism_religion } - } - } - } - NOT = { culture = culture:roman } - } - set_variable = { - name = original_region - value = geographical_region:custom_roman_full_borders - years = 1 - } - culture:roman = { save_scope_as = ancient_culture } - } - 1 = { # Roman (fallback, placeholder) - set_variable = { - name = original_region - value = geographical_region:custom_roman_full_borders - years = 1 - } - culture:roman = { save_scope_as = ancient_culture } - } - } -} - -get_appropriate_exotic_location = { - random_list = { - 999 = { # Atlantis, must care about Greek stuff - trigger = { - OR = { - religion = { is_in_family = rf_abrahamic } - religion = religion:hellenism_religion - culture = { has_cultural_pillar = heritage_byzantine } - culture = { has_cultural_pillar = heritage_ancient_greek } - culture = { has_cultural_pillar = heritage_latin } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:atlantis - } - } - 999 = { # Olympus, must care about Greek stuff - trigger = { - OR = { - religion = { is_in_family = rf_abrahamic } - religion = religion:hellenism_religion - culture = { has_cultural_pillar = heritage_byzantine } - culture = { has_cultural_pillar = heritage_ancient_greek } - culture = { has_cultural_pillar = heritage_latin } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:olympus - } - } - 999 = { # India, must be faraway - trigger = { - NOT = { - any_character_to_title_neighboring_and_across_water_county = { - title_province = { geographical_region = world_india } - } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:hindustan - } - } - 999 = { # Vinland, must be into vikings and adventures and all that - trigger = { - OR = { - religion = religion:germanic_religion - culture = { has_cultural_pillar = heritage_north_germanic } - culture = { has_innovation = innovation_varangian_adventurers } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:vinland - } - } - 999 = { # Sunset invasion memes - trigger = { - OR = { - religion = religion:germanic_religion - culture = { has_cultural_pillar = heritage_north_germanic } - culture = { has_innovation = innovation_varangian_adventurers } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:sunset_empire - } - } - 999 = { # Kingdom of Prester John, must be a Christian who doesn't know about Copts - trigger = { - religion = religion:christianity_religion - NOT = { - any_character_to_title_neighboring_and_across_water_county = { - holder = { faith = faith:coptic } - } - } - NOT = { # Prester John isn't exciting if Egypt is Christian - title:k_egypt = { - holder ?= { religion = religion:christianity_religion } - } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:prester_john_kingdom - } - } - 999 = { # Albion, Christians in Jerusalem were way way into Arthurian myth - trigger = { - religion = religion:christianity_religion - capital_county = { - title_province = { geographical_region = world_middle_east } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:albion - } - } - 999 = { # Himavanta, legendary forest in the himalayas - trigger = { - OR = { - capital_county = { - title_province = { - OR = { - geographical_region = world_india - geographical_region = world_tibet - geographical_region = world_burma - geographical_region = world_asia_china - } - } - } - culture = { culture_overlaps_geographical_region = world_india } - culture = { culture_overlaps_geographical_region = world_tibet } - culture = { culture_overlaps_geographical_region = world_burma } - culture = { culture_overlaps_geographical_region = world_asia_china } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:himavanta - } - } - 999 = { # Mahishmati, lost city - trigger = { - OR = { - capital_county = { - title_province = { geographical_region = world_india } - } - culture = { culture_overlaps_geographical_region = world_india } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:mahishmati - } - } - 999 = { # Kumari Kandam, lost continent - trigger = { - culture = { - has_cultural_pillar = heritage_dravidian - } - } - save_scope_value_as = { - name = exotic_location - value = flag:kumari_kandam - } - } - 999 = { # Beyul, hidden valleys - trigger = { - OR = { - capital_county.title_province = { - OR = { - geographical_region = world_tibet - geographical_region = world_asia_china - } - } - culture = { culture_overlaps_geographical_region = world_tibet } - culture = { culture_overlaps_geographical_region = world_asia_china } - } - } - save_scope_value_as = { - name = exotic_location - value = flag:beyul - } - } - 999 = { # Bald Mountain, slavic witchy mountain - trigger = { - OR = { - culture_has_slavic_heritage_pillar_trigger = yes - religion = religion:slavic_religion - } - } - save_scope_value_as = { - name = exotic_location - value = flag:bald_mountain - } - } - 999 = { # Irum, lost city in the Quran - trigger = { - religion = religion:islam_religion - } - save_scope_value_as = { - name = exotic_location - value = flag:irum - } - } - 1 = { # China (fallback) - save_scope_value_as = { - name = exotic_location - value = flag:china - } - } - } -} - -# Generates a legend seed that just points to a loc key by combining FAITH with GOD (example, FAITH = germanic + GOD = high_god will result in germanic_high_god_name and localise to "Odin") -generate_godly_descent_seed_support_effect = { - create_legend_seed = { - type = holy - quality = famed - chronicle = godly_descent - properties = { - god = flag:$FAITH$_$GOD$_name - title = root.primary_title - } - } -} - -# Runs the above effect based on an actual RELIGION that you feed into it, for example feeding Root.Religion into RELIGION will cause it to generate your religion's god loc keys -generate_religion_descent_effect = { - if = { - limit = { - $RELIGION$ = religion:akom_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = akom - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:baltic_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = baltic - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:basque_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = basque - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:bon_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = bon - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:buddhism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = buddhism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:tani_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = tani - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:dualism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = dualism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:finno_ugric_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = finno_ugric - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:germanic_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = germanic - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:hellenism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = hellenism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:hinduism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = hinduism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:jainism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = jainism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:kushitism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = kushitism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:magyar_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = magyar - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:mundhum_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = mundhumism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:north_african_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = acham - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:qiangic_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = qiangic - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:siberian_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = siberian - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:slavic_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = slavic - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:taoism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = taoism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:tengrism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = tengrism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:waaqism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = waaqism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:west_african_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = west_african - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:west_african_bori_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = west_african_bori - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:west_african_orisha_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = west_african_orisha - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:west_african_roog_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = west_african_roog - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:yazidi_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = yazidi - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:zoroastrianism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = zoroastrianism - GOD = $GOD$ - } - } - else_if = { - limit = { - $RELIGION$ = religion:zunism_religion - } - generate_godly_descent_seed_support_effect = { - FAITH = zunism - GOD = $GOD$ - } - } - else = { # Generic Pagan, fallback - generate_godly_descent_seed_support_effect = { - FAITH = paganism - GOD = $GOD$ - } - } -} - -# Mythical Legends guaranteed access to Legendary Buildings - -give_legendary_building_mythical_holy_tooltip_effect = { - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - give_legendary_building_location_holy_effect = yes - } - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } -} - -give_legendary_building_mythical_heroic_tooltip_effect = { - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - give_legendary_building_location_heroic_effect = yes - } - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } -} - -give_legendary_building_mythical_legitimizing_tooltip_effect = { - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - give_legendary_building_location_legitimizing_effect = yes - } - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } -} - -# Famed/Illustrious have a 50% chance - -give_legendary_building_holy_tooltip_effect = { #50% chance - # Chance to get legendary building - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - random = { - chance = { - value = 50 - } - give_legendary_building_location_holy_effect = yes - } - } - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } -} - -give_legendary_building_heroic_tooltip_effect = { #50% chance - # Chance to get legendary building - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - random = { - chance = { - value = 50 - } - give_legendary_building_location_heroic_effect = yes - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } - } - } -} - -give_legendary_building_legitimizing_tooltip_effect = { #50% chance - # Chance to get legendary building - if = { - limit = { - OR = { - root = { - locale_valid_for_legendary_buildings = yes - } - capital_province = { has_special_building_slot = no } - any_sub_realm_barony = { - title_province = { has_special_building_slot = no } - } - } - } - random = { - chance = { - value = 50 - } - give_legendary_building_location_legitimizing_effect = yes - } - } - set_variable = { - name = legendary_reward_location - value = scope:legendary_locale - } - set_variable = { - name = legendary_figure - value = scope:protagonist - } -} - -give_legendary_building_location_standard_effect = { - if = { # Prioritize the location of the legend if possible - limit = { - root = { - locale_valid_for_legendary_buildings = yes - } - } - scope:location = { save_scope_as = legendary_locale } - } - else_if = { # Otherwise, get the capital - limit = { - capital_province = { has_special_building_slot = no } - } - capital_province = { save_scope_as = legendary_locale } - } - else_if = { # Otherwise, prioritize a title you hold directly - limit = { - any_held_title = { - title_tier = county - title_province = { has_special_building_slot = no } - } - } - random_held_title = { - title_tier = county - limit = { - title_province = { has_special_building_slot = no } - } - title_province = { save_scope_as = legendary_locale } - } - } - else_if = { #Otherwise, prioritize a barony that you hold directly - limit = { - any_held_title = { - title_tier = barony - title_province = { - has_special_building_slot = no - } - } - } - random_held_title = { - title_tier = barony - limit = { - title_province = { - has_special_building_slot = no - } - } - title_province = { - save_scope_as = legendary_locale - } - } - - } - else_if = { # Otherwise, prioritize a barony within a title you hold - limit = { - any_held_title = { - title_tier = county - any_county_province = { has_special_building_slot = no } - } - } - random_held_title = { - title_tier = county - limit = { - any_county_province = { has_special_building_slot = no } - } - random_county_province = { - limit = { - has_special_building_slot = no - } - save_scope_as = legendary_locale - } - } - } - else_if = { # Find a feudal barony... - limit = { - any_sub_realm_barony = { - title_province = { - has_special_building_slot = no - has_holding_type = castle_holding - } - } - } - random_sub_realm_barony = { - limit = { - title_province = { - has_special_building_slot = no - has_holding_type = castle_holding - } - } - title_province = { save_scope_as = legendary_locale } - } - } - else_if = { # Find a province with a holding - limit = { - any_sub_realm_barony = { - title_province = { - has_special_building_slot = no - has_holding = yes - } - } - } - random_sub_realm_barony = { - limit = { - title_province = { - has_special_building_slot = no - has_holding = yes - } - } - title_province = { save_scope_as = legendary_locale } - } - } - else = { # Final fallback, just any barony in your realm - random_sub_realm_barony = { - title_province = { save_scope_as = legendary_locale } - } - } - if = { - limit = { - OR = { - exists = scope:beast - has_trait_xp = { - trait = lifestyle_hunter - track = hunter - value >= 62 - } - has_trait_xp = { - trait = lifestyle_hunter - track = falconer - value >= 62 - } - culture ?= { - has_cultural_parameter = always_unlock_legendary_hunting_lodge - } - } - } - custom_tooltip = { - text = can_build_legendary_hunting_lodge_tt - add_character_flag = legendary_hunting_lodge_flag - } - } - if = { - limit = { - dynasty ?= { ce1_heroic_track_perks >= 5 } - } - custom_tooltip = { - text = can_build_legendary_watchtower_tt - add_character_flag = legendary_watchtower_flag - } - } -} - -give_legendary_building_location_holy_effect = { - give_legendary_building_location_standard_effect = yes - custom_tooltip = { - text = can_build_legendary_shrine_tt - add_character_flag = legendary_shrine_flag - } -} - -give_legendary_building_location_heroic_effect = { - give_legendary_building_location_standard_effect = yes - custom_tooltip = { - text = can_build_legendary_statue_tt - add_character_flag = legendary_statue_flag - } -} - -give_legendary_building_location_legitimizing_effect = { - give_legendary_building_location_standard_effect = yes - custom_tooltip = { - text = can_build_legendary_palace_tt - add_character_flag = legendary_palace_flag - } -} - -legend_seed_new_title_effect = { - if = { - limit = { has_dlc_feature = legends } - create_legend_seed = { - type = heroic - quality = famed - chronicle = new_title - properties = { - title = root.primary_title - founder = root - } - } - } -} - -legend_seed_great_deed_dynasty_effect = { - if = { - limit = { has_dlc_feature = legends } - if = { - limit = { - highest_held_title_tier < tier_hegemony - } - create_legend_seed = { - type = legitimizing - quality = famed - chronicle = great_deed_dynasty - properties = { - dynasty = root.dynasty - founder = root - title = root.primary_title.empire - } - } - } - else = { - create_legend_seed = { - type = legitimizing - quality = famed - chronicle = great_deed_dynasty - properties = { - dynasty = root.dynasty - founder = root - title = root.primary_title - } - } - } - } -} - -legend_seed_great_deed_region_effect = { - if = { - limit = { has_dlc_feature = legends } - create_legend_seed = { - type = heroic - quality = famed - chronicle = great_deed_region - properties = { - legend_region = $REGION$ - founder = root - } - } - } -} - -legend_seed_great_deed_title_effect = { - if = { - limit = { has_dlc_feature = legends } - create_legend_seed = { - type = heroic - quality = famed - chronicle = great_deed_title - properties = { - title = $TITLE$ - founder = root - } - } - } -} - -legend_seed_great_deed_faith_effect = { - if = { - limit = { has_dlc_feature = legends } - create_legend_seed = { - type = holy - quality = famed - chronicle = great_deed_faith - properties = { - founder = root - antagonist = $ANTAGONIST$ - old_faith = $OLD_FAITH$ - new_faith = root.faith - } - } - } -} - -legend_seed_struggle_ended_effect = { - if = { - limit = { has_dlc_feature = legends } - create_legend_seed = { - type = heroic - quality = famed - chronicle = struggle_ended - properties = { - founder = root - culture = root.culture - struggle = $STRUGGLE$ - struggle_ending = $STRUGGLE_ENDING$ - } - } - } -} - -mark_historical_legend_as_done = { - if = { # Dynastic legacy - limit = { - legend_property:founder ?= legend_owner.house.house_founder - legend_property:dynasty ?= legend_owner.dynasty - legend_property:title ?= legend_owner.primary_title - } - legend_owner.dynasty = { - set_variable = { - name = dynasty_legend_used - value = yes - } - } - } -# if = { # Arthur -# limit = { -# legend_property:ancestor ?= character:159835 -# legend_property:title ?= title:k_england -# } -# set_global_variable = { -# name = king_arthur_legend -# value = yes -# } -# } -# else_if = { # Carolingian -# limit = { -# legend_property:ancestor ?= character:6392 -# legend_property:title ?= title:e_france -# } -# set_global_variable = { -# name = carolingian_legend -# value = yes -# } -# } -# else_if = { # the_wheelwright -# limit = { -# legend_property:ancestor ?= character:82233 -# } -# set_global_variable = { -# name = the_wheelwright_legend -# value = yes -# } -# } -# else_if = { # cadell -# limit = { -# legend_property:ancestor ?= character:159058 -# } -# set_global_variable = { -# name = cadell_legend -# value = yes -# } -# } -# else_if = { # sons_of_rurik -# limit = { -# legend_property:ancestor ?= character:40605 -# } -# set_global_variable = { -# name = sons_of_rurik_legend -# value = yes -# } -# } -# else_if = { # el_cid -# limit = { -# legend_property:ancestor ?= character:107590 -# } -# set_global_variable = { -# name = el_cid_legend -# value = yes -# } -# } -# else_if = { # peasant_emperor -# limit = { -# legend_property:ancestor ?= character:1700 -# } -# set_global_variable = { -# name = peasant_emperor_legend -# value = yes -# } -# } -# else_if = { # premysl -# limit = { -# legend_property:ancestor ?= character:168345 -# } -# set_global_variable = { -# name = premysl_legend -# value = yes -# } -# } -# else_if = { # borjigin -# limit = { -# legend_property:ancestor ?= character:303250 -# } -# set_global_variable = { -# name = borjigin_legend -# value = yes -# } -# } -# else_if = { # the_red_hand -# limit = { -# legend_property:ancestor ?= character:7255 -# } -# set_global_variable = { -# name = the_red_hand_legend -# value = yes -# } -# } -# else_if = { # yazdagird_iii -# limit = { -# legend_property:ancestor ?= character:180637 -# } -# set_global_variable = { -# name = yazdagird_iii_legend -# value = yes -# } -# } -# else_if = { # bahram_gur -# limit = { -# legend_property:ancestor ?= character:180645 -# } -# set_global_variable = { -# name = bahram_gur_legend -# value = yes -# } -# } -# else_if = { # saman_khudah -# limit = { -# legend_property:ancestor ?= character:188637 -# } -# set_global_variable = { -# name = saman_khudah_legend -# value = yes -# } -# } -# else_if = { # saman_khudah -# limit = { -# legend_property:ancestor ?= character:163109 -# } -# set_global_variable = { -# name = ragnarr_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor_flag ?= flag:vercingetorix -# } -# set_global_variable = { -# name = vercingetorix_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor_flag ?= flag:afrasiyab -# } -# set_global_variable = { -# name = afrasiyab_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:hebrew -# legend_property:title ?= title:k_georgia -# legend_property:original_region ?= geographical_region:world_middle_east_jerusalem -# } -# set_global_variable = { -# name = sons_of_david_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor_flag ?= flag:magi -# } -# set_global_variable = { -# name = magi_descendant_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:gothic -# legend_property:title ?= title:e_spain -# legend_property:original_region ?= geographical_region:world_steppe_west -# } -# set_global_variable = { -# name = gothic_kings_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:trojan -# legend_property:title ?= title:e_britannia -# legend_property:original_region ?= geographical_region:troy_region -# } -# set_global_variable = { -# name = new_troy_london_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:trojan -# legend_property:title ?= title:c_cornwall -# legend_property:original_region ?= geographical_region:troy_region -# } -# set_global_variable = { -# name = corineus_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:ancient_egyptian -# legend_property:title ?= title:k_scotland -# legend_property:original_region ?= geographical_region:ghw_region_egypt_et_al -# } -# set_global_variable = { -# name = scota_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:hebrew -# legend_property:title ?= title:e_abyssinia -# legend_property:original_region ?= geographical_region:ghw_region_jerusalem -# } -# set_global_variable = { -# name = menelik_i_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:hebrew -# legend_property:title ?= title:e_abyssinia -# legend_property:original_region ?= geographical_region:israel_region -# } -# set_global_variable = { -# name = kings_of_semien_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:roman -# legend_property:original_region ?= geographical_region:custom_roman_full_borders -# } -# set_global_variable = { -# name = roman_heritage_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:culture ?= culture:hunnic -# legend_property:title ?= title:e_caspian-pontic_steppe -# legend_property:original_region ?= geographical_region:world_steppe_west -# } -# set_global_variable = { -# name = hunnic_heritage_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor ?= character:7627 -# } -# set_global_variable = { -# name = alfred_of_wessex_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor ?= character:168130 -# } -# set_global_variable = { -# name = william_gellones_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor ?= character:99 -# } -# set_global_variable = { -# name = edward_the_martyr_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor_flag ?= flag:noah -# } -# set_global_variable = { -# name = sceafa_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:ancestor_flag ?= flag:shibi_chakravarti -# } -# set_global_variable = { -# name = shibi_chakravarti_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:beast ?= flag:naga -# } -# set_global_variable = { -# name = naga_descent_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:beast ?= flag:dragon -# } -# set_global_variable = { -# name = pyusawhti_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:god ?= flag:germanic_high_god_name -# legend_property:title ?= title:k_norway -# } -# set_global_variable = { -# name = hieros_gamos_skirnismal_legend -# value = yes -# } -# } -# else_if = { -# limit = { -# legend_property:god ?= flag:hinduism_high_god_name -# legend_property:title ?= title:e_deccan -# } -# set_global_variable = { -# name = descendants_of_brahman_legend -# value = yes -# } -# } -} - -#legend_seed_struggle_ending_effect = { -# create_legend_seed = { -# type = heroic -# quality = famed -# chronicle = struggle_conclusion -# properties = { -# struggle_ender = $ENDER$ -# struggle = flag:$STRUGGLE$ -# } -# } -#} -# -balancing_legend_global_var_effect = { - if = { - limit = { - NOT = { has_global_variable = legend_count_var } - } - set_global_variable = { - name = legend_count_var - value = 1 - } - } - else = { - change_global_variable = { - name = legend_count_var - add = 1 - } - } -} - -gain_heroic_legend_seed_tooltip_effect = { - if = { - limit = { - has_dlc_feature = legends - } - custom_tooltip = gain_heroic_legend_seed.tt - } -} - -gain_holy_legend_seed_tooltip_effect = { - if = { - limit = { - has_dlc_feature = legends - } - custom_tooltip = gain_holy_legend_seed.tt - } -} - -gain_legitimizing_legend_seed_tooltip_effect = { - if = { - limit = { - has_dlc_feature = legends - } - custom_tooltip = gain_legitimizing_legend_seed.tt - } -} - -send_interface_message_legend_notification_effect = { - county = { save_scope_as = spread_county } - scope:legend = { save_scope_as = spread_legend } - county.holder = { - set_variable = { - name = legend_alerted_var - value = scope:legend - } - send_interface_message = { - type = event_generic_good_text - title = legend_spread_notification_title - desc = legend_spread_notification_desc - - right_icon = scope:spread_county - } - } -} - -send_interface_toast_legend_notification_effect = { - county = { save_scope_as = spread_county } - scope:legend = { save_scope_as = spread_legend } - county.holder = { - set_variable = { - name = legend_alerted_var - value = scope:legend - } - send_interface_toast = { - title = legend_spread_notification_title - custom_tooltip = legend_spread_notification_desc - left_icon = scope:spread_county - } - } -} - -create_swan_knight_legend_seed_effect = { - if = { - limit = { - location = { - geographical_region = world_europe - } - } - create_legend_seed = { - type = heroic - quality = famed - chronicle = swan_knight - properties = { - friendly_animal = flag:swan - } - } - } - else_if = { - limit = { - location = { - OR = { - geographical_region = world_india - geographical_region = world_burma - geographical_region = ghw_region_caucasus - geographical_region = world_asia_china - geographical_region = world_asia_japan - geographical_region = world_asia_korea - geographical_region = world_asia_southeast - } - } - } - create_legend_seed = { - type = heroic - quality = famed - chronicle = swan_knight - properties = { - friendly_animal = flag:tiger - } - } - } - else_if = { - limit = { - location = { - geographical_region = world_africa - } - } - create_legend_seed = { - type = heroic - quality = famed - chronicle = swan_knight - properties = { - friendly_animal = flag:lion - } - } - } - else = { - create_legend_seed = { - type = heroic - quality = famed - chronicle = swan_knight - properties = { - friendly_animal = flag:hart - } - } - } -} diff --git a/common/scripted_effects/NEOW_religion_effects.txt b/common/scripted_effects/NEOW_religion_effects.txt index 470fed49..45773e17 100644 --- a/common/scripted_effects/NEOW_religion_effects.txt +++ b/common/scripted_effects/NEOW_religion_effects.txt @@ -134,33 +134,33 @@ create_head_of_faith_title_effect = { trigger_event = faith_creation.0002 # Creates new dynamic title } else = { trigger_event = faith_creation.0012 } # Re-uses existing title -# if = { -# limit = { -# faith = { -# has_doctrine_parameter = holy_order_head_of_faith -# } -# } -# if = { -# limit = { -# #only create a HoF if none exists -# faith = { -# any_faith_holy_order = { -# count = 0 -# exists = this -# } -# } -# } -# trigger_event = N3OW_holy_order.0003 -# } -# else = { -# faith = { -# random_faith_holy_order = { -# save_scope_as = picked_holy_order -# } -# } -# faith.set_religious_head_title = scope:picked_holy_order.title -# } -# } + if = { + limit = { + faith = { + has_doctrine_parameter = holy_order_head_of_faith + } + } + if = { + limit = { + #only create a HoF if none exists + faith = { + any_faith_holy_order = { + count = 0 + exists = this + } + } + } + trigger_event = N3OW_holy_order.0003 + } + else = { + faith = { + random_faith_holy_order = { + save_scope_as = picked_holy_order + } + } + faith.set_religious_head_title = scope:picked_holy_order.title + } + } } } diff --git a/common/scripted_triggers/00_cultural_triggers.txt b/common/scripted_triggers/00_cultural_triggers.txt deleted file mode 100644 index 7e3d9fbe..00000000 --- a/common/scripted_triggers/00_cultural_triggers.txt +++ /dev/null @@ -1,650 +0,0 @@ - -### Cultural trigger list - -# drinks_alcohol_trigger - Would this person drink alcohol? -# holder_or_above_is_player_of_culture - Is this county's holder or anyone above them in the de facto hierarchy a player with the same culture? - - -###################### -# Cultural triggers # -###################### - -drinks_alcohol_trigger = { - is_adult = yes - custom_tooltip = { - text = drinks_alcohol - OR = { - has_trait = drunkard - faith_forbids_alcohol_trigger = no - } - } -} - -faith_forbids_alcohol_trigger = { - OR = { - religion = religion:islam_religion # Prohibited by khamr, a prohibition against intoxicants - religion = religion:jainism_religion # Prohibited along with the consumption of any fermented food - AND = { - has_trait = zealous - religion = religion:buddhism_religion # Discouraged as it disrupts progress along the eightfold path - } -# faith = faith:mandeaism # Whoever drinks wine in a tavern, he will be torn to pieces with toothed saws - } -} - -# If you need to check if a county drinks alcohol. -faith_only_forbids_alcohol_trigger = { - OR = { - religion = religion:islam_religion # Prohibited by khamr, a prohibition against intoxicants - religion = religion:jainism_religion # Prohibited along with the consumption of any fermented food - religion = religion:buddhism_religion # Discouraged as it disrupts progress along the eightfold path -# faith = faith:mandeaism # Whoever drinks wine in a tavern, he will be torn to pieces with toothed saws - } -} - -holder_or_above_is_player_of_culture = { - culture = { - save_temporary_scope_as = this_culture - } - OR = { - holder = { - AND = { - is_ai = no - culture = scope:this_culture - } - any_liege_or_above = { - is_ai = no - culture = scope:this_culture - } - } - } -} - -culture_in_winter_geographical_region_trigger = { - custom_description = { - text = culture_in_winter_geographical_region_trigger_desc - any_culture_county = { - any_county_province = { - OR = { - geographical_region = world_europe_north - geographical_region = world_europe_west - geographical_region = world_europe_east - geographical_region = world_steppe - geographical_region = world_tibet - geographical_region = world_asia_china - geographical_region = world_asia_japan - geographical_region = world_asia_sakhalin_hokkaido - geographical_region = world_asia_korea - geographical_region = world_asia_north_east - } - } - } - } -} - -culture_in_non_sedentary_geographical_region_trigger = { - custom_description = { - text = culture_in_non_sedentary_geographical_region_trigger_desc - any_culture_county = { - any_county_province = { - geographical_region = world_steppe - } - } - } -} - -culture_not_pacifistic_trigger = { - custom_description = { - text = culture_not_pacifist_trigger_desc - NOT = { - culture_tradition:tradition_pacifism = { is_in_list = traits } - } - } -} - -culture_not_warlike_trigger = { - custom_description = { - text = culture_not_warlike_trigger_desc - NOR = { - culture_tradition:tradition_winter_warriors = { is_in_list = traits } - culture_tradition:tradition_forest_fighters = { is_in_list = traits } - culture_tradition:tradition_mountaineers = { is_in_list = traits } - culture_tradition:tradition_warriors_of_the_dry = { is_in_list = traits } - culture_tradition:tradition_highland_warriors = { is_in_list = traits } - culture_tradition:tradition_jungle_warriors = { is_in_list = traits } - culture_tradition:tradition_quarrelsome = { is_in_list = traits } - culture_tradition:tradition_malleable_invaders = { is_in_list = traits } - culture_tradition:tradition_hunters = { is_in_list = traits } - culture_tradition:tradition_warrior_culture = { is_in_list = traits } - culture_tradition:tradition_martial_admiration = { is_in_list = traits } - culture_tradition:tradition_tgp_bushido = { is_in_list = traits } - culture_tradition:tradition_tgp_defiant_ambushers = { is_in_list = traits } - culture_tradition:tradition_tgp_warrior_monks = { is_in_list = traits } - culture_tradition:tradition_tgp_art_of_war = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_winter_warriors_desc - NOT = { - culture_tradition:tradition_winter_warriors = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_forest_fighter_desc - NOT = { - culture_tradition:tradition_forest_fighters = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_mountaineers_desc - NOT = { - culture_tradition:tradition_mountaineers = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_warriors_of_the_dry_desc - NOT = { - culture_tradition:tradition_warriors_of_the_dry = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_highland_warriors_desc - NOT = { - culture_tradition:tradition_highland_warriors = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_jungle_warriors_desc - NOT = { - culture_tradition:tradition_jungle_warriors = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_quarrelsome_desc - NOT = { - culture_tradition:tradition_quarrelsome = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_malleable_invaders_desc - NOT = { - culture_tradition:tradition_malleable_invaders = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_hunters_desc - NOT = { - culture_tradition:tradition_hunters = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_warrior_culture_desc - NOT = { - culture_tradition:tradition_warrior_culture = { is_in_list = traits } - } - } - custom_description = { - text = culture_has_martial_admiration_desc - NOT = { - culture_tradition:tradition_martial_admiration = { is_in_list = traits } - } - } -} - -should_have_same_faith_succession_trigger = { - culture = { - has_cultural_parameter = same_faith_inheritance_only - } - NOR = { - government_has_flag = government_is_theocracy # Handled separately - government_has_flag = government_is_holy_order # Handled separately - government_has_flag = government_is_mercenary # Irrelevant - } -} - -not_tribal_raid_trigger = { - culture = { - has_cultural_parameter = not_tribal_raiding_malus - } - NOT = { government_has_flag = government_is_tribal } -} - -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:maghrebi - this = culture:gaelic - this = culture:anglo_saxon - this = culture:scottish - this = culture:NEOW_andalusian - this = culture:catalan - this = culture:english - this = culture:sicilian - this = culture:cisalpine - } -} - -# Cultural MAA triggers - Used in various places for triggers, AI weights, etc. -culture_has_skirmisher_maa = { - OR = { - has_cultural_parameter = unlock_maa_horn_warrior - has_cultural_parameter = unlock_maa_shomer - has_cultural_parameter = unlock_maa_abudrar - has_cultural_parameter = unlock_maa_guinea_warrior - has_cultural_parameter = unlock_maa_pesilat - has_innovation = innovation_adaptive_militia #Goedendag - Later Era MAA - has_cultural_parameter = unlock_maa_akritai - } -} - -culture_has_archer_maa = { - OR = { - has_cultural_parameter = unlock_maa_archers_of_the_nile - has_cultural_parameter = unlock_maa_bush_hunter - has_cultural_parameter = unlock_maa_metsanvartija - has_cultural_parameter = unlock_maa_maturkan_warriors - has_cultural_parameter = unlock_maa_longbowmen - has_innovation = innovation_repeating_crossbow #Chu-ko-nu Archers - has_innovation = innovation_bamboo_bows #Paiks - } -} - -culture_has_improved_crossbowmen = { - OR = { - has_innovation = innovation_repeating_crossbow #Chu-ko-nu Archers - } -} - -culture_has_heavy_infantry_maa = { - OR = { - has_cultural_parameter = unlock_maa_ayyar - has_cultural_parameter = unlock_maa_mubarizun - has_cultural_parameter = unlock_maa_druzhina - has_cultural_parameter = unlock_maa_khandayat - has_cultural_parameter = unlock_maa_garudas - has_cultural_parameter = unlock_maa_palace_guards - has_cultural_parameter = unlock_maa_huscarls - has_cultural_parameter = unlock_maa_mountaineer - has_cultural_parameter = unlock_maa_zbrojnosh - has_cultural_parameter = unlock_infantry_samurai_units - has_cultural_parameter = unlock_zhanmadao - has_cultural_parameter = unlock_burenjia - - has_innovation = innovation_sarawit #Sarawit - Later Era MAA - has_innovation = innovation_legionnaires #Praetorian - has_cultural_parameter = unlock_maa_varangian_guards - } -} - -culture_has_pikemen_maa = { #I.e. Spearmen - OR = { - has_cultural_parameter = unlock_maa_zupin_warrior - has_cultural_parameter = unlock_warrior_monk_units - has_innovation = innovation_rectilinear_schiltron #Schiltron - Later Era MAA - has_innovation = innovation_pike_columns #Picchieri - Later Era MAA - has_innovation = innovation_zweihanders #Later Era MAA - has_cultural_parameter = unlock_maa_skoutatoi - } -} - -culture_has_light_cavalry_maa = { - OR = { - has_cultural_parameter = unlock_maa_mulaththamun - has_cultural_parameter = unlock_maa_hussar #Konni - has_cultural_parameter = unlock_maa_tawashi #Tawashi - has_cultural_parameter = unlock_maa_ayrudzi - has_innovation = innovation_desert_tactics #Chasseur - has_innovation = innovation_caballeros #Caballero - has_innovation = innovation_hobbies #Hobelar - has_innovation = innovation_sahel_horsemen #Sahel Horsemen - } -} - -culture_has_heavy_cavalry_maa = { - OR = { - has_cultural_parameter = unlock_maa_cataphract - has_cultural_parameter = unlock_maa_monaspa - has_cultural_parameter = unlock_maa_tarkhan - has_cultural_parameter = unlock_maa_conrois - has_cultural_parameter = unlock_maa_cataphract_archers - has_innovation = innovation_tiefutu - has_cultural_parameter = unlock_maa_black_armor_cavalry - has_innovation = innovation_valets #Gendarme - Later Era MAA - } -} - -culture_has_archer_cavalry_maa = { - OR = { - has_cultural_parameter = unlock_maa_horse_archers - has_cultural_parameter = unlock_maa_mangudai - has_cultural_parameter = unlock_emishi_horse_archers_units - has_cultural_parameter = unlock_mounted_samurai_units - - - culture_head ?= { - mpo_can_recruit_nomad_maa_trigger = yes - } - any_player = { - culture = prev - mpo_can_recruit_nomad_maa_trigger = yes - } - } -} - -#Culture specialized in maa type -culture_specializes_in_skirmisher_maa = { - OR = { - has_cultural_tradition = tradition_forest_folk - has_cultural_tradition = tradition_jungle_dwellers - has_cultural_tradition = tradition_polders - has_cultural_tradition = tradition_adaptive_skirmishing - has_cultural_tradition = tradition_hit_and_run - has_cultural_tradition = tradition_forest_wardens - has_cultural_tradition = tradition_hussar - has_cultural_tradition = tradition_fp3_pragmatic_creed - culture_has_skirmisher_maa = yes - } -} - -culture_specializes_in_archer_maa = { - OR = { - has_cultural_tradition = tradition_forest_folk - has_cultural_tradition = tradition_jungle_dwellers - has_cultural_tradition = tradition_adaptive_skirmishing - has_cultural_tradition = tradition_formation_fighting - culture_has_archer_maa = yes - } -} - -culture_specializes_in_heavy_infantry_maa = { - OR = { - has_cultural_tradition = tradition_roman_legacy - has_cultural_tradition = tradition_metal_craftsmanship - has_cultural_tradition = tradition_mountain_homes - has_cultural_tradition = tradition_stand_and_fight - has_cultural_tradition = tradition_mobile_guards - has_cultural_tradition = tradition_mountaineer_ruralism - has_cultural_tradition = tradition_tgp_art_of_war - has_cultural_tradition = tradition_tgp_bushido - culture_has_heavy_infantry_maa = yes - } -} - -culture_specializes_in_pikemen_maa = { - OR = { - has_cultural_tradition = tradition_mountaineer_ruralism - has_cultural_tradition = tradition_metal_craftsmanship - has_cultural_tradition = tradition_mountain_homes - has_cultural_tradition = tradition_formation_fighting - has_cultural_tradition = tradition_stand_and_fight - has_cultural_tradition = tradition_mobile_guards - has_cultural_tradition = tradition_tgp_warrior_monks - culture_has_pikemen_maa = yes - } -} - -culture_specializes_in_light_cavalry_maa = { - OR = { - has_cultural_tradition = tradition_dryland_dwellers - has_cultural_tradition = tradition_pastoralists - has_cultural_tradition = tradition_hit_and_run - has_cultural_tradition = tradition_horse_breeder - has_cultural_tradition = tradition_saharan_nomads - culture_has_light_cavalry_maa = yes - } -} - -culture_specializes_in_heavy_cavalry_maa = { - OR = { - has_cultural_tradition = tradition_roman_legacy - has_cultural_tradition = tradition_mountain_homes - has_cultural_tradition = tradition_horse_breeder - has_cultural_tradition = tradition_stand_and_fight - has_cultural_tradition = tradition_mobile_guards - has_cultural_tradition = tradition_ep3_indomitable_azatani - has_cultural_tradition = tradition_mountaineer_ruralism - has_cultural_tradition = tradition_tgp_art_of_war - culture_has_heavy_cavalry_maa = yes - } -} - -culture_specializes_in_archer_cavalry_maa = { - OR = { - has_cultural_tradition = tradition_ep3_indomitable_azatani - has_cultural_tradition = tradition_horse_breeder - has_cultural_tradition = tradition_mpo_iron_cavalry - has_cultural_tradition = tradition_devoted_horsemanship - has_cultural_tradition = tradition_tgp_bushido - has_cultural_tradition = tradition_tgp_defiant_ambushers - culture_has_archer_cavalry_maa = yes - } -} - -# Language trigger - Makes languages available when you diverge your culture -language_is_shown_trigger = { - scope:character = { - OR = { - AND = { - exists = var:legendary_culture - var:legendary_culture = { has_cultural_pillar = $LANGUAGE$ } - } - AND = { - # The target language needs to fulfill ALL of the following: - any_sub_realm_county = { # Language needs to be well-represented within your realm - percent >= 0.1 - culture = { has_cultural_pillar = $LANGUAGE$ } - } - any_sub_realm_county = { # Language needs to border your own culture - culture = { has_cultural_pillar = $LANGUAGE$ } - any_neighboring_county = { - culture = { this = scope:character.culture } - } - } - any_sub_realm_county = { # You need a minimum acceptance with any culture speaking the language - culture = { - has_cultural_pillar = $LANGUAGE$ - cultural_acceptance = { - target = scope:character.culture - value >= 25 - } - } - } - } - } - } -} - -# Language trigger - Makes heritages available when you diverge your culture -heritage_is_shown_trigger = { - scope:character = { - OR = { - AND = { - exists = var:legendary_culture - var:legendary_culture = { has_cultural_pillar = $HERITAGE$ } - } - culture = { has_cultural_pillar = $HERITAGE$ } - } - } -} - -# Checks if you could Hybridise with the culture without checking for acceptance -is_valid_for_hybridising_trigger = { - $CHARACTER$ = { - culture = { - NOT = { has_same_culture_heritage = $CULTURE$ } - culture_age >= culture_hybrid_cooldown - } - trigger_if = { - limit = { - NAND = { - exists = var:special_culture - var:special_culture = $CULTURE$ - } - } - custom_description = { - text = culture_present_in_realm_for_hybridization - any_sub_realm_county = { - culture = $CULTURE$ - } - } - } - custom_description = { - text = culture_is_not_parent_culture - culture = { - NOT = { - any_parent_culture = { - this = $CULTURE$ - } - } - } - } - custom_description = { - text = culture_is_not_child_culture - $CULTURE$ = { - NOT = { - any_parent_culture = { - this = $CHARACTER$.culture - } - } - } - } - } -} - -# Checks if you can currently hybridise with the culture -can_hybridize_culture_trigger = { - is_valid_for_hybridising_trigger = { - CHARACTER = $CHARACTER$ - CULTURE = $CULTURE$ - } - $CHARACTER$ = { - culture = { - cultural_acceptance = { target = $CULTURE$ value >= hybridization_threshold_value } - } - } -} - - -# Uses current scope and scope:culture -cultures_share_relevant_region_trigger = { - OR = { - AND = { - culture_overlaps_geographical_region = world_europe - scope:culture = { - culture_overlaps_geographical_region = world_europe - } - } - AND = { - culture_overlaps_geographical_region = world_asia_minor - scope:culture = { - culture_overlaps_geographical_region = world_asia_minor - } - } - AND = { - OR = { - culture_overlaps_geographical_region = world_middle_east - culture_overlaps_geographical_region = world_middle_east_persia - } - scope:culture = { - OR = { - culture_overlaps_geographical_region = world_middle_east - culture_overlaps_geographical_region = world_middle_east_persia - } - } - } - AND = { - culture_overlaps_geographical_region = world_steppe - scope:culture = { - culture_overlaps_geographical_region = world_steppe - } - } - AND = { - culture_overlaps_geographical_region = world_tibet - scope:culture = { - culture_overlaps_geographical_region = world_tibet - } - } - AND = { - OR = { - culture_overlaps_geographical_region = world_india - culture_overlaps_geographical_region = world_burma - } - scope:culture = { - OR = { - culture_overlaps_geographical_region = world_india - culture_overlaps_geographical_region = world_burma - } - } - } - AND = { - culture_overlaps_geographical_region = world_africa - scope:culture = { - culture_overlaps_geographical_region = world_africa - } - } - AND = { - culture_overlaps_geographical_region = world_asia_china - scope:culture = { - culture_overlaps_geographical_region = world_asia_china - } - } - AND = { - culture_overlaps_geographical_region = world_asia_china - scope:culture = { - culture_overlaps_geographical_region = world_asia_korea - } - } - AND = { - culture_overlaps_geographical_region = world_asia_china - scope:culture = { - culture_overlaps_geographical_region = world_asia_southeast - } - } - AND = { - culture_overlaps_geographical_region = world_asia_japan - scope:culture = { - culture_overlaps_geographical_region = world_asia_japan - } - } - } -} - -is_vegetarian_trigger = { - OR = { - culture = { - has_cultural_parameter = cannot_hunt - } - faith_is_vegetarian_trigger = yes - } -} - -faith_is_vegetarian_trigger = { - faith = { - OR = { - religion = religion:buddhism_religion - religion = religion:jainism_religion - religion = religion:bon_religion - this = faith:mazdakism - this = faith:manichean - } - } -} - -culture_tradition_reduction_trigger = { - scope:character = { - has_variable_list = culture_tradition_reduction - is_target_in_variable_list = { - name = culture_tradition_reduction - target = culture_tradition:$TRADITION$ - } - } -} - -culture_is_or_has_ancestor_trigger = { - OR = { - this = $CULTURE$ - any_parent_culture_or_above = { this = $CULTURE$ } - } -} diff --git a/common/scripted_triggers/00_game_rule_triggers.txt b/common/scripted_triggers/00_game_rule_triggers.txt deleted file mode 100644 index ff0259f9..00000000 --- a/common/scripted_triggers/00_game_rule_triggers.txt +++ /dev/null @@ -1,301 +0,0 @@ -#hungarian_migration_valid_ai_mogyer_ruler_trigger = { -# culture = culture:mogyer -# is_ai = yes -# OR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_nomadic -# } -# is_at_war = no -# highest_held_title_tier <= tier_kingdom -# OR = { -# top_liege = this -# liege.culture != culture:mogyer -# } -#} -# -#hungarian_migration_valid_pannonian_target_trigger = { -# NOR = { -# culture = culture:mogyer -# any_liege_or_above = {sre = culture:mogyer } -# } -# is_ai = yes -# any_realm_county = { -# count >= $COUNT$ -# title_province = { geographical_region = custom_hungary } -# } -#} - -exclave_independence_trigger = { - top_liege = this - NOT = { has_title = title:k_papal_state } - exists = root.capital_province - any_sub_realm_title = { - tier = tier_county - NOT = { - is_connected_to = { - target = root.capital_province.county - } - } - } - trigger_if = { - limit = { - exists = primary_heir - } - primary_heir = { - NOR = { - top_liege = this # Disallow this when the heir is independent, lest we risk breaking up realms that should be connected - is_ai = no # Players always inherit everything - } - } - } -} - -# Sometimes we disable these events for specific characters. -harm_game_rule_enablement_trigger = { - # Disable entirely if harm_safe. - trigger_if = { - limit = { has_game_rule = harm_safe } - always = no - } - # harm_target_player_only - trigger_else_if = { - limit = { has_game_rule = harm_target_player_only } - is_ai = no - } - # harm_target_ai_only - trigger_else_if = { - limit = { has_game_rule = harm_target_ai_only } - is_ai = yes - } - # harm_target_all - trigger_else = { always = yes } - # Never just kill the player if it'd utterly game-over them. - trigger_if = { - limit = { is_ai = no } - # Either because they have no heir. - exists = player_heir - # Or because they have an heir they can't survive with. - player_heir.dynasty ?= dynasty - } - # Immortals do not receive harm events, as they would be inevitably killed by them over a long enough period of time. - NOT = { has_trait_with_flag = is_immortal } -} - -# Who do we care about when recording variable logs for harm events? -harm_game_rule_valid_for_logging_trigger = { - OR = { - AND = { - highest_held_title_tier >= tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_theocracy - } - } - any_close_family_member = { - highest_held_title_tier >= tier_duchy - OR = { - government_has_flag = government_is_feudal - government_has_flag = government_is_clan - government_has_flag = government_is_theocracy - } - } - } -} - -rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = { - trigger_if = { - limit = { has_game_rule = title_creation_imperial_power_projection_targeting_ai_only } - is_ai = yes - } - trigger_else_if = { - limit = { has_game_rule = title_creation_imperial_power_projection_targeting_player_only } - is_ai = no - } - trigger_else = { always = yes } -} - -rule_title_creation_imperial_power_projection_title_creation_trigger = { - trigger_if = { - limit = { - has_game_rule = title_creation_imperial_power_projection_any_power_advantage - rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes - highest_held_title_tier <= tier_kingdom - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.any_power_advantage - any_neighboring_top_liege_realm_owner = { - count = all - trigger_if = { - limit = { highest_held_title_tier >= tier_empire } - save_temporary_scope_as = char_temp - OR = { - any_close_family_member = { is_spouse_of = root } - root = { has_strong_hook = scope:char_temp } - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - } - trigger_else = { always = yes } - } - } - } - trigger_else_if = { - limit = { - has_game_rule = title_creation_imperial_power_projection_hard_power_only - rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes - highest_held_title_tier <= tier_kingdom - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.hard_power_only - any_neighboring_top_liege_realm_owner = { - count = all - trigger_if = { - limit = { highest_held_title_tier >= tier_empire } - save_temporary_scope_as = char_temp - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - trigger_else = { always = yes } - } - } - } - trigger_else_if = { - limit = { - has_game_rule = title_creation_imperial_power_projection_soft_power_only - rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes - highest_held_title_tier <= tier_kingdom - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.soft_power_only - any_neighboring_top_liege_realm_owner = { - count = all - trigger_if = { - limit = { highest_held_title_tier >= tier_empire } - save_temporary_scope_as = char_temp - OR = { - any_close_family_member = { is_spouse_of = root } - root = { has_strong_hook = scope:char_temp } - } - } - trigger_else = { always = yes } - } - } - } - trigger_else_if = { - limit = { - has_game_rule = title_creation_imperial_power_projection_hard_power_only_strict - rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes - highest_held_title_tier <= tier_kingdom - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.hard_power_only_strict.neighbours - any_neighboring_top_liege_realm_owner = { - count = all - trigger_if = { - limit = { highest_held_title_tier >= tier_empire } - save_temporary_scope_as = char_temp - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - trigger_else = { always = yes } - } - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.hard_power_only_strict.de_jure_sharers - any_sub_realm_county = { - count = all - empire = { - OR = { - is_title_created = no - holder = { - save_temporary_scope_as = char_temp - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - } - } - } - } - } - trigger_else_if = { - limit = { - has_game_rule = title_creation_imperial_power_projection_any_power_strict - rule_title_creation_imperial_power_projection_title_creation_targeting_trigger = yes - highest_held_title_tier <= tier_kingdom - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.any_power_strict.neighbours - any_neighboring_top_liege_realm_owner = { - count = all - trigger_if = { - limit = { highest_held_title_tier >= tier_empire } - save_temporary_scope_as = char_temp - OR = { - any_close_family_member = { is_spouse_of = root } - root = { has_strong_hook = scope:char_temp } - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - } - trigger_else = { always = yes } - } - } - custom_tooltip = { - text = rule_title_creation_imperial_power_projection_title_creation_trigger.tt.any_power_strict.de_jure_sharers - any_sub_realm_county = { - count = all - empire = { - OR = { - is_title_created = no - holder = { - save_temporary_scope_as = char_temp - OR = { - any_close_family_member = { is_spouse_of = root } - root = { has_strong_hook = scope:char_temp } - root.current_military_strength >= scope:char_temp.fifty_percent_more_of_current_military_strength - } - } - } - } - } - } - } - trigger_else = { always = yes } -} - -game_rule_rig_norman_conquest_for_hereward_trigger = { - OR = { - has_game_rule = historicity_norman_conquest_determined_william - # We also rig it for William if we have a player Hereward and no other input. - AND = { - has_game_rule = historicity_norman_conquest_default_random - character:90028 ?= { is_ai = no } - NOT = { - any_player = { - NOT = { this = character:90028 } - any_character_war = { - OR = { - using_cb = norman_conquest_cb - using_cb = norwegian_invasion_cb - } - } - } - } - } - } -} - -game_rule_can_create_hybird_culture_trigger = { - trigger_if = { - limit = { is_ai = yes } - NOR = { - has_game_rule = none_hybrid_culture_ai_frequency - has_global_variable = has_ai_hybrid_event_cooldown - } - } -} - -game_rule_unrestricted_dynasty_legacies_trigger = { - switch = { - trigger = has_game_rule - unrestricted_dynasty_legacies_all = { always = yes } - unrestricted_dynasty_legacies_player_only = { is_ai = no } - fallback = { always = no } - } -} diff --git a/common/scripted_triggers/00_illustration_triggers.txt b/common/scripted_triggers/00_illustration_triggers.txt index 5a02f869..41adadf3 100644 --- a/common/scripted_triggers/00_illustration_triggers.txt +++ b/common/scripted_triggers/00_illustration_triggers.txt @@ -756,11 +756,12 @@ byzantine_governor_trigger = { government_allows = administrative liege ?= { OR = { -# is_roman_emperor_primary_title_trigger = yes + is_roman_emperor_primary_title_trigger = yes AND = { culture = { OR = { - has_cultural_pillar = heritage_greek + has_cultural_pillar = heritage_byzantine + has_cultural_pillar = heritage_caucasian } } primary_title.tier >= tier_empire @@ -776,11 +777,12 @@ byzantine_governor_close_family_trigger = { exists = top_liege top_liege = { OR = { -# is_roman_emperor_primary_title_trigger = yes + is_roman_emperor_primary_title_trigger = yes AND = { culture = { OR = { - has_cultural_pillar = heritage_greek + has_cultural_pillar = heritage_byzantine + has_cultural_pillar = heritage_caucasian } } primary_title.tier >= tier_empire diff --git a/common/scripted_triggers/00_interaction_triggers.txt b/common/scripted_triggers/00_interaction_triggers.txt deleted file mode 100644 index 2d1ce71f..00000000 --- a/common/scripted_triggers/00_interaction_triggers.txt +++ /dev/null @@ -1,403 +0,0 @@ -remove_guardian_interaction_visible_ward_trigger = { - OR = { - #If I am the child - this = scope:actor - #The ward has actor as its liege - employer ?= scope:actor - #The guardian is actor - any_relation = { - type = guardian - this = scope:actor - } - #The guardian is actor's courtier - any_relation = { - type = guardian - is_courtier_of = scope:actor - } - } -} - -remove_guardian_interaction_available_ward_trigger = { - #is_imprisoned = no -} - -kick_from_court_validity_trigger = { - NOR = { - is_spouse_of = scope:actor - is_concubine_of = scope:actor - is_close_family_of = scope:actor - has_council_position = councillor_court_chaplain - is_diarch = yes - # Marriage major partners of diarchs. - ## Female. - AND = { - is_married = yes - is_female = yes - matrilinear_marriage = yes - any_consort = { is_diarch = yes } - } - ## Male. - AND = { - is_married = yes - is_male = yes - patrilinear_marriage = yes - any_consort = { is_diarch = yes } - } - } -} - -ask_for_pardon_available_trigger = { - $ACTOR$ = { - top_liege != this - any_liege_or_above = { - OR = { - has_imprisonment_reason = $ACTOR$ - has_banish_reason = $ACTOR$ - has_execute_reason = $ACTOR$ - has_revoke_title_reason = $ACTOR$ - } - } - } -} - -has_extra_criminal_reason_against_trigger = { - OR = { - has_banish_reason = $CRIMINAL$ - has_execute_reason = $CRIMINAL$ - has_revoke_title_reason = $CRIMINAL$ - } -} - -title_revocation_standard_valid_showing_failures_only_trigger = { - scope:actor = { - NOR = { - is_at_war_with = scope:recipient - has_truce = scope:recipient - } - custom_description = { - text = "character_interactions_revoke_title_from_ally_without_reason" - object = scope:recipient - OR = { - NOT = { - is_allied_to = scope:recipient - } - has_revoke_title_reason = scope:recipient - } - } - } - scope:recipient = { - NOT = { has_strong_hook = scope:actor } - } -} - -title_revocation_standard_can_pick_title_trigger = { - is_contested = no - custom_description = { - text = "revoke_title_not_noble_family_title" - is_noble_family_title = no - } - NOT = { - recent_history = { - type = granted - years = 1 - } - } - custom_description = { - text = "character_interactions_not_rel_head_title" - is_head_of_faith = no - } -} - -diarch_revocation_has_claim_check_trigger = { - custom_description = { - text = diarch_has_claim_on_revokable_title - object = scope:recipient - scope:actor = { - any_claim = { - holder ?= scope:recipient - } - } - } -} - -title_revocation_is_admin_governor_trigger = { - government_allows = administrative - top_liege = this - save_temporary_scope_as = liege_temp - $VASSAL$ = { - is_landed_or_landless_administrative = yes - target_is_liege_or_above = scope:liege_temp - } -} - -title_revocation_is_tyrannical_trigger = { - NOR = { - exists = scope:administrative_revocation - has_revoke_title_reason = $VASSAL$ - trigger_if = { - limit = { exists = scope:landed_title } - has_claim_on = scope:landed_title - } - title_revocation_is_admin_governor_trigger = { VASSAL = $VASSAL$ } - faith = { - $VASSAL$ = { - NOT = { vassal_contract_has_flag = religiously_protected} - } - OR = { - AND = { - has_doctrine_parameter = pluralism_righteous_revocation_tyranny_reduced - faith_hostility_level = { - target = $VASSAL$.faith - value = faith_evil_level - } - } - AND = { - has_doctrine_parameter = pluralism_fundamentalist_revocation_tyranny_minimal - faith_hostility_level = { - target = $VASSAL$.faith - value >= faith_hostile_level - } - } - } - } - } -} - -vassal_revocation_is_tyrannical_trigger = { - NOR = { - exists = scope:administrative_revocation - AND = { - government_allows = administrative - $VASSAL$ = { - government_allows = administrative - } - } - has_revoke_title_reason = $VASSAL$ - faith = { - OR = { - AND = { - has_doctrine_parameter = pluralism_righteous_revocation_tyranny_reduced - faith_hostility_level = { - target = $VASSAL$.faith - value = faith_evil_level - } - } - AND = { - has_doctrine_parameter = pluralism_fundamentalist_revocation_tyranny_minimal - faith_hostility_level = { - target = $VASSAL$.faith - value >= faith_hostile_level - } - } - } - } - } -} - -vassal_retraction_standard_valid_showing_failures_only_trigger = { - NOT = { - scope:actor = { is_at_war_with = scope:recipient } - } - scope:recipient = { - NOT = { has_strong_hook = scope:actor } - } -} - -diarch_retraction_is_de_jure_liege_trigger = { - custom_description = { - text = "diarch_is_de_jure_liege_of_retractable_vassal" - object = scope:recipient - scope:actor = { - any_held_title = { - any_direct_de_jure_vassal_title = { holder.liege = scope:recipient } - } - } - } -} - -is_de_jure_vassal_of_liege_trigger = { - liege = { - save_temporary_scope_as = my_liege - } - primary_title = { - OR = { - de_jure_liege = { - holder ?= scope:my_liege - } - trigger_if = { - limit = { - tier = tier_duchy - } - de_jure_liege = { - de_jure_liege = { - holder ?= scope:my_liege - } - } - } - } - } -} - -send_poem_positive_poem_lock_trigger = { - OR = { - is_ai = no - NOT = { has_relation_rival = scope:recipient } - NOT = { has_relation_nemesis = scope:recipient } - } -} - -send_poem_negative_poem_lock_trigger = { - OR = { - is_ai = no - has_relation_rival = scope:recipient - has_relation_nemesis = scope:recipient - } -} - -can_any_traveling_family_members_travel_trigger = { - NOR = { - this = scope:recipient - is_in_pool_at = scope:actor.capital_province - } - is_ruler = no - trigger_if = { - limit = { - exists = scope:recipient.host - is_child_of = scope:recipient.host - is_adult = no - } - dynasty != scope:recipient.host.dynasty - } -} - -imprison_neutral_is_valid_showing_failures_only_triggers_trigger = { - scope:actor.liege = { - trigger_if = { - limit = { has_realm_law_flag = imprisonment_toggle_enable } - # TIT-43801 - #has_realm_law_flag = imprisonment_toggle_on - NOT = { has_realm_law = tribal_authority_0 } - } - } - scope:actor = { is_imprisoned = no } - custom_description = { - text = cannot_imprison_almohad_leader - subject = scope:recipient - NOT = { - scope:recipient = { has_character_modifier = almohad_leader_modifier } - } - } -} - -grant_title_rivalry_trigger = { - is_ai = yes - is_playable_character = yes - top_liege = scope:actor - faith = scope:actor.faith - reverse_opinion = { - target = top_liege - value > -50 - } - opinion = { - target = top_liege - value > -50 - } - trigger_if = { - limit = { - is_female = yes - faith_dominant_gender_female_or_equal = no - } - scope:recipient = { is_female = yes } - } - trigger_if = { - limit = { - is_male = yes - faith_dominant_gender_male_or_equal = no - } - scope:recipient = { is_male = yes } - } - has_dread_level_towards = { - target = scope:actor - level < 1 - } - is_eunuch_trigger = no - NOR = { - this = scope:actor - this = scope:recipient - has_trait = content - has_trait = humble - has_trait = blind - has_trait = devoted - is_close_family_of = scope:recipient - has_any_good_relationship_with_character_trigger = { CHARACTER = scope:actor } - has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:actor } - } -} - -should_prioritise_hostile_action_against_due_to_personal_relations_trigger = { - $ACTOR$ = { - OR = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ } - opinion = { - target = $RECIPIENT$ - value <= very_high_negative_opinion - } - } - } -} - -should_avoid_hostile_action_against_due_to_personal_relations_trigger = { - $ACTOR$ = { - OR = { - has_any_good_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ } - is_allied_to = $RECIPIENT$ - opinion = { - target = $RECIPIENT$ - value >= very_high_positive_opinion - } - # Plus filter out heirs & other family, unless we hate 'em. - AND = { - OR = { - is_close_or_extended_family_of = $RECIPIENT$ - any_spouse = { this = $RECIPIENT$ } - is_heir_of = $RECIPIENT$ - } - NOR = { - has_any_bad_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ } - exposed_cheating_on_spouse_trigger = { SPOUSE = $RECIPIENT$ } - AND = { - is_ai = yes - opinion = { - target = $RECIPIENT$ - value <= low_negative_opinion - } - } - } - } - } - } -} - -should_avoid_hostile_action_against_due_to_liege_relations_trigger = { - $ACTOR$ = { - liege ?= { - OR = { - has_any_good_relationship_with_character_trigger = { CHARACTER = $RECIPIENT$ } - is_allied_to = $RECIPIENT$ - opinion = { - target = $RECIPIENT$ - value >= very_high_positive_opinion - } - } - } - } -} - -is_asking_for_gold_in_ransom_trigger = { - OR = { - scope:extortionate_gold ?= yes - scope:extortionate_current_gold ?= yes - scope:gold ?= yes - scope:current_gold ?= yes - } -} diff --git a/common/scripted_triggers/00_laamp_triggers.txt b/common/scripted_triggers/00_laamp_triggers.txt index bf73634b..11aec229 100644 --- a/common/scripted_triggers/00_laamp_triggers.txt +++ b/common/scripted_triggers/00_laamp_triggers.txt @@ -84,31 +84,31 @@ character_is_valid_for_harrying_of_the_north_trigger = { } } -#character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = { -# culture = { -# OR = { -# this = culture:anglo_saxon -# any_parent_culture_or_above = { this = culture:anglo_saxon } -# } -# NOR = { -# this = culture:norman -# any_parent_culture_or_above = { this = culture:norman } -# } -# } -#} +character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = { + culture = { + OR = { + this = culture:anglo_saxon + any_parent_culture_or_above = { this = culture:anglo_saxon } + } + NOR = { + this = culture:norman + any_parent_culture_or_above = { this = culture:norman } + } + } +} -#character_is_valid_norman_for_harrying_of_the_north_trigger = { -# culture = { -# OR = { -# this = culture:norman -# any_parent_culture_or_above = { this = culture:norman } -# } -# NOR = { -# this = culture:anglo_saxon -# any_parent_culture_or_above = { this = culture:anglo_saxon } -# } -# } -#} +character_is_valid_norman_for_harrying_of_the_north_trigger = { + culture = { + OR = { + this = culture:norman + any_parent_culture_or_above = { this = culture:norman } + } + NOR = { + this = culture:anglo_saxon + any_parent_culture_or_above = { this = culture:anglo_saxon } + } + } +} disable_interaction_for_hereward_trigger = { trigger_if = { diff --git a/common/scripted_triggers/00_law_triggers.txt b/common/scripted_triggers/00_law_triggers.txt index 54088594..8a135e03 100644 --- a/common/scripted_triggers/00_law_triggers.txt +++ b/common/scripted_triggers/00_law_triggers.txt @@ -133,19 +133,19 @@ can_keep_partition_succession_law_trigger = { OR = { can_have_partition_succession_law_trigger = yes -# # Mongol Empires -# has_title = title:e_mongol_empire -# has_title = title:e_ilkhanate -# has_title = title:e_golden_horde -# has_title = title:e_chagatai -# has_title = title:e_red_horde -# has_title = title:e_white_horde -# has_title = title:e_aarlud_khanate -# has_title = title:e_togskol_khanate -# has_title = title:e_baruun_khanate -# has_title = title:e_great_yuan -# has_title = title:e_blue_horde -# has_title = title:e_omnod_dalai_khanate + # Mongol Empires + has_title = title:e_mongol_empire + has_title = title:e_ilkhanate + has_title = title:e_golden_horde + has_title = title:e_chagatai + has_title = title:e_red_horde + has_title = title:e_white_horde + has_title = title:e_aarlud_khanate + has_title = title:e_togskol_khanate + has_title = title:e_baruun_khanate + has_title = title:e_great_yuan + has_title = title:e_blue_horde + has_title = title:e_omnod_dalai_khanate } } NOT = { government_has_flag = government_is_clan } @@ -174,19 +174,19 @@ can_keep_high_partition_succession_law_trigger = { OR = { can_have_high_partition_succession_law_trigger = yes -# # Mongol Empires -# has_title = title:e_mongol_empire -# has_title = title:e_ilkhanate -# has_title = title:e_golden_horde -# has_title = title:e_chagatai -# has_title = title:e_red_horde -# has_title = title:e_white_horde -# has_title = title:e_aarlud_khanate -# has_title = title:e_togskol_khanate -# has_title = title:e_baruun_khanate -# has_title = title:e_great_yuan -# has_title = title:e_blue_horde -# has_title = title:e_omnod_dalai_khanate + # Mongol Empires + has_title = title:e_mongol_empire + has_title = title:e_ilkhanate + has_title = title:e_golden_horde + has_title = title:e_chagatai + has_title = title:e_red_horde + has_title = title:e_white_horde + has_title = title:e_aarlud_khanate + has_title = title:e_togskol_khanate + has_title = title:e_baruun_khanate + has_title = title:e_great_yuan + has_title = title:e_blue_horde + has_title = title:e_omnod_dalai_khanate } } NOT = { government_has_flag = government_is_clan} @@ -474,7 +474,6 @@ can_keep_acclamation_succession_law_trigger = { limit = { has_realm_law = acclamation_succession_law } - always = no OR = { can_have_acclamation_succession_law_trigger = yes has_title = title:e_byzantium diff --git a/common/scripted_triggers/00_major_decision_triggers.txt b/common/scripted_triggers/00_major_decision_triggers.txt deleted file mode 100644 index 4daad1b6..00000000 --- a/common/scripted_triggers/00_major_decision_triggers.txt +++ /dev/null @@ -1,245 +0,0 @@ -###Accuse the Krstjani of Heresy -accuse_krstjani_of_heresy_decision_suitable_krstjani_realm_owner_trigger = { - faith = faith:bosnian_church - realm_size >= 8 - primary_title.tier >= tier_duchy -} - -###Launch the Hungarian Migration -launch_hungarian_migration_ducal_processing_trigger = { - #We're currently processing dukes. - highest_held_title_tier = tier_duchy - #Doesn't hold a valid duchy-tier title in Pannonia. - NOT = { - any_held_title = { - title_tier = duchy - title_capital_county.title_province = { geographical_region = custom_hungary } - } - } -} - -launch_hungarian_migration_count_processing_trigger = { - #Doesn't hold a valid county-tier title in Pannonia. - NOT = { - any_held_title = { - title_tier = county - title_province = { geographical_region = custom_hungary } - } - } -} - -launch_hungarian_migration_sub_vassal_liege_pairing_trigger = { - tier = tier_county - #Liege should be a suitable duke within Pannonia. - holder = scope:receiving_vassal.liege - #Double-check that the duke can afford to give a title away. - scope:receiving_vassal.liege = { - any_held_title = { - count >= 2 - title_tier = county - title_province = { geographical_region = custom_hungary } - } - } -} - -launch_hungarian_migration_direct_vassal_requirements_trigger = { - tier = tier_county - holder = $INVADER$ -} - -launch_hungarian_migration_county_is_within_custom_hungary_trigger = { - tier = tier_county - title_province = { geographical_region = custom_hungary } -} - -launch_hungarian_migration_misplaced_count_suitable_liege_trigger = { - launch_hungarian_migration_county_is_within_custom_hungary_trigger = yes - duchy = { - holder ?= { - NOT = { this = $INVADER$ } - liege = $INVADER$ - } - } -} - -################################################### -## Danelaw Triggers -# -### Colonial Sides -#### The decision requires one lowland British party & one colonial Norse party. -#negotiate_the_danelaw_british_side_trigger = { -# OR = { -# culture = { has_cultural_pillar = heritage_west_germanic } -# culture = { has_cultural_pillar = heritage_brythonic } -# } -# NOT = { religion = religion:germanic_religion } -#} -#negotiate_the_danelaw_norse_side_trigger = { -# OR = { -# culture = { has_cultural_pillar = heritage_north_germanic } -# culture = culture:norman -# religion = religion:germanic_religion -# } -#} -# -### Standard Filters -#### Does this character meet the basic eligibility requirements? -#negotiate_the_danelaw_basic_filter_trigger = { -# # Standard filter checks. -# is_playable_character = yes -# exists = dynasty -# OR = { -# government_has_flag = government_is_tribal -# government_has_flag = government_is_feudal -# government_has_flag = government_is_clan -# } -# # Must be one of the two valid sides. -# OR = { -# negotiate_the_danelaw_british_side_trigger = yes -# negotiate_the_danelaw_norse_side_trigger = yes -# } -#} -#negotiate_the_danelaw_additional_filter_trigger = { -# # Independent only, please. -# top_liege = this -# # Kings & Emperors are too high a rank to make concessions. -# highest_held_title_tier <= tier_duchy -# # Plus, a capital inside title:k_england. Not strictly necessary, but removes *so* many edge-cases. -# capital_county.kingdom = title:k_england -#} -#negotiate_the_danelaw_standard_filter_trigger = { -# negotiate_the_danelaw_basic_filter_trigger = yes -# negotiate_the_danelaw_additional_filter_trigger = yes -#} -# -### Valid Opponent -#### Assuming that we have a character who can take the decision (which has stricter requirements), do they have an opponent to negotiate with? -#negotiate_the_danelaw_valid_danelaw_opponent_trigger = { -# # Standard filter checks. -# negotiate_the_danelaw_standard_filter_trigger = yes -# # Ensure they match the opposing side. -# trigger_if = { -# limit = { -# root = { negotiate_the_danelaw_british_side_trigger = yes } -# } -# negotiate_the_danelaw_norse_side_trigger = yes -# } -# trigger_if = { -# limit = { -# root = { negotiate_the_danelaw_norse_side_trigger = yes } -# } -# negotiate_the_danelaw_british_side_trigger = yes -# } -# # Holds a certain amount of de jure counties within k_england. -# save_temporary_scope_as = valid_opponent -# title:k_england = { -# any_in_de_jure_hierarchy = { -# count >= 10 -# tier = tier_county -# holder = { -# OR = { -# this = scope:valid_opponent -# any_liege_or_above = { this = scope:valid_opponent } -# } -# } -# } -# } -#} -# -################################################## -# Favour the Countryside Basques Triggers - -favour_the_countryside_basques_counts_as_basque_trigger = { - culture = { - OR = { - this = culture:basque - any_parent_culture = { this = culture:basque } - } - } -} - -## We keep these isolated so that we can maintain easy parity between the decision rationales & the event desc rationales. -favour_the_countryside_basques_rationale_negative_piety_level_trigger = { - piety_level < low_piety_level -} - -favour_the_countryside_basques_rationale_sinful_traits_trigger = { - num_sinful_traits >= 2 -} - -favour_the_countryside_basques_rationale_virtuous_basque_pagan_traits_trigger = { - num_virtuous_traits = { - value >= favour_the_countryside_basques_decision_basque_pagan_virtues_tally_value - target = faith:basque_pagan - } -} - -favour_the_countryside_basques_rationale_excommunicated_trigger = { - has_trait = excommunicated -} - -favour_the_countryside_basques_rationale_naked_cynicism_trigger = { - trigger_if = { - limit = { is_ai = no } - has_trait = cynical - } -} - -favour_the_countryside_basques_rationale_hof_rivalry_trigger = { - AND = { - exists = faith.religious_head - has_relation_rival = faith.religious_head - } -} - -################################################## -# Rebuke Roman Revanchism Triggers - -rebuke_roman_revanchism_counties_controlled_trigger = { - holder = { - OR = { - this = root - top_liege = root - } - } -} - -rebuke_roman_revanchism_counties_controlled_by_ere_trigger = { - exists = title:e_byzantium.holder - holder = { - OR = { - this = title:e_byzantium.holder - top_liege = title:e_byzantium.holder - } - } -} - -rebuke_roman_revanchism_sicily_controls_unlisted_empire_trigger = { - highest_held_title_tier >= tier_empire - primary_title = { - NOR = { - this = title:e_italy - this = title:e_maghreb - } - } -} - -restore_roman_empire_decision_religion_culture_trigger = { - custom_tooltip = { - text = restore_roman_empire_decision_religion_culture_tt - OR = { - religion = { - OR = { - is_in_family = rf_abrahamic - this = religion:hellenism_religion - } - } - culture = { - OR = { - has_cultural_pillar = heritage_latin - has_cultural_pillar = heritage_byzantine - } - } - } - } -} diff --git a/common/scripted_triggers/00_personality_trait_triggers.txt b/common/scripted_triggers/00_personality_trait_triggers.txt deleted file mode 100644 index cf862749..00000000 --- a/common/scripted_triggers/00_personality_trait_triggers.txt +++ /dev/null @@ -1,192 +0,0 @@ -########################################################################################################################## -# -# These triggers all check for character flags which can be applied by the effects in '00_personality_trait_effects.txt' -# Used to determine if those effects successfully ran, and if they are still valid. - -personality_has_any_trait_flag_trigger = { - OR = { - scope:has_opposing_trait = flag:arrogant - scope:has_opposing_trait = flag:humble - scope:has_opposing_trait = flag:lustful - scope:has_opposing_trait = flag:chaste - scope:has_opposing_trait = flag:gregarious - scope:has_opposing_trait = flag:shy - scope:has_opposing_trait = flag:generous - scope:has_opposing_trait = flag:greedy - scope:has_opposing_trait = flag:ambitious - scope:has_opposing_trait = flag:content - scope:has_opposing_trait = flag:impatient - scope:has_opposing_trait = flag:patient - scope:has_opposing_trait = flag:temperate - scope:has_opposing_trait = flag:gluttonous - scope:has_opposing_trait = flag:diligent - scope:has_opposing_trait = flag:lazy - scope:has_opposing_trait = flag:wrathful - scope:has_opposing_trait = flag:calm - scope:has_opposing_trait = flag:deceitful - scope:has_opposing_trait = flag:honest - scope:has_opposing_trait = flag:craven - scope:has_opposing_trait = flag:brave - scope:has_opposing_trait = flag:arbitrary - scope:has_opposing_trait = flag:just - scope:has_opposing_trait = flag:cynical - scope:has_opposing_trait = flag:zealous - scope:has_opposing_trait = flag:paranoid - scope:has_opposing_trait = flag:trusting - scope:has_opposing_trait = flag:compassionate - scope:has_opposing_trait = flag:callous - scope:has_opposing_trait = flag:sadistic - scope:has_opposing_trait = flag:forgiving - scope:has_opposing_trait = flag:vengeful - scope:has_opposing_trait = flag:stubborn - scope:has_opposing_trait = flag:fickle - } -} - - - -#Checks if we can safely run the -personality_can_trait_shift = { - OR = { - AND = { - scope:has_opposing_trait = flag:arrogant - has_trait = arrogant - } - AND = { - scope:has_opposing_trait = flag:humble - has_trait = humble - } - AND = { - scope:has_opposing_trait = flag:lustful - has_trait = lustful - } - AND = { - scope:has_opposing_trait = flag:chaste - has_trait = chaste - } - AND = { - scope:has_opposing_trait = flag:gregarious - has_trait = gregarious - } - AND = { - scope:has_opposing_trait = flag:shy - has_trait = shy - } - AND = { - scope:has_opposing_trait = flag:generous - has_trait = generous - } - AND = { - scope:has_opposing_trait = flag:greedy - has_trait = greedy - } - AND = { - scope:has_opposing_trait = flag:ambitious - has_trait = ambitious - } - AND = { - scope:has_opposing_trait = flag:content - has_trait = content - } - AND = { - scope:has_opposing_trait = flag:impatient - has_trait = impatient - } - AND = { - scope:has_opposing_trait = flag:patient - has_trait = patient - } - AND = { - scope:has_opposing_trait = flag:temperate - has_trait = temperate - } - AND = { - scope:has_opposing_trait = flag:gluttonous - has_trait = gluttonous - } - AND = { - scope:has_opposing_trait = flag:diligent - has_trait = diligent - } - AND = { - scope:has_opposing_trait = flag:lazy - has_trait = lazy - } - AND = { - scope:has_opposing_trait = flag:wrathful - has_trait = wrathful - } - AND = { - scope:has_opposing_trait = flag:calm - has_trait = calm - } - AND = { - scope:has_opposing_trait = flag:deceitful - has_trait = deceitful - } - AND = { - scope:has_opposing_trait = flag:honest - has_trait = honest - } - AND = { - scope:has_opposing_trait = flag:craven - has_trait = craven - } - AND = { - scope:has_opposing_trait = flag:brave - has_trait = brave - } - AND = { - scope:has_opposing_trait = flag:arbitrary - has_trait = arbitrary - } - AND = { - scope:has_opposing_trait = flag:just - has_trait = just - } - AND = { - scope:has_opposing_trait = flag:cynical - has_trait = cynical - } - AND = { - scope:has_opposing_trait = flag:zealous - has_trait = zealous - } - AND = { - scope:has_opposing_trait = flag:paranoid - has_trait = paranoid - } - AND = { - scope:has_opposing_trait = flag:trusting - has_trait = trusting - } - AND = { - scope:has_opposing_trait = flag:compassionate - has_trait = compassionate - } - AND = { - scope:has_opposing_trait = flag:callous - has_trait = callous - } - AND = { - scope:has_opposing_trait = flag:sadistic - has_trait = sadistic - } - AND = { - scope:has_opposing_trait = flag:forgiving - has_trait = forgiving - } - AND = { - scope:has_opposing_trait = flag:vengeful - has_trait = vengeful - } - AND = { - scope:has_opposing_trait = flag:stubborn - has_trait = stubborn - } - AND = { - scope:has_opposing_trait = flag:fickle - has_trait = fickle - } - } -} diff --git a/common/scripted_triggers/00_succession_triggers.txt b/common/scripted_triggers/00_succession_triggers.txt index 9fa31106..32bb4e8a 100644 --- a/common/scripted_triggers/00_succession_triggers.txt +++ b/common/scripted_triggers/00_succession_triggers.txt @@ -60,10 +60,10 @@ historical_succession_access_single_heir_succession_law_trigger = { historical_succession_access_single_heir_succession_law_youngest_trigger = { NOT = { government_allows = administrative } -# OR = { -# #has_title = title:e_byzantium -# #Add any subsequent exceptions here. -# } + OR = { + #has_title = title:e_byzantium + #Add any subsequent exceptions here. + } } historical_succession_access_single_heir_dynasty_house_trigger = { diff --git a/common/scripted_triggers/00_terrain_triggers.txt b/common/scripted_triggers/00_terrain_triggers.txt deleted file mode 100644 index 2e0e70cf..00000000 --- a/common/scripted_triggers/00_terrain_triggers.txt +++ /dev/null @@ -1,87 +0,0 @@ - -######################### -# Triggers for Province Terrain -######################### -is_wooded_trigger = { - OR = { - terrain = forest - terrain = jungle - terrain = taiga - } -} - -is_mountainous_trigger = { - OR = { - terrain = mountains - terrain = desert_mountains - } -} - -is_mountainous_or_hilly_trigger = { - OR = { - terrain = mountains - terrain = desert_mountains - terrain = hills - } -} - -is_drylands_trigger = { - OR = { - terrain = drylands - terrain = steppe - } -} - -is_desert_trigger = { - OR = { - terrain = desert - terrain = desert_mountains - terrain = oasis - } -} - -is_drylands_or_desert_trigger = { - OR = { - terrain = drylands - terrain = steppe - terrain = desert - terrain = desert_mountains - terrain = oasis - } -} - -is_wetland_trigger = { - OR = { - terrain = wetlands - terrain = floodplains - terrain = oasis - } -} - -is_flatlands_trigger = { - OR = { - terrain = steppe - terrain = plains - terrain = farmlands - } -} - -is_likely_to_contain_trees_trigger = { - OR = { - is_wooded_trigger = yes - is_wetland_trigger = yes - is_flatlands_trigger = yes - terrain = hills - } -} - -holds_county_with_water_trigger = { - any_held_county = { - any_county_province = { - NOR = { - terrain = desert - terrain = desert_mountains - } - } - } -} diff --git a/common/scripted_triggers/00_title_triggers.txt b/common/scripted_triggers/00_title_triggers.txt index 9935ee81..2b284893 100644 --- a/common/scripted_triggers/00_title_triggers.txt +++ b/common/scripted_triggers/00_title_triggers.txt @@ -15,88 +15,88 @@ has_mythical_founder_trigger = { } current_date > 1000.1.1 } -# OR = { # Alexander -# this = title:k_thessalonika -# this = title:k_hellas -# this = title:k_egypt -# AND = { -# OR = { -# this = title:k_persia -# this = title:e_persia -# } -# NOR = { -# root.faith.religion = religion:islam_religion -# root.faith.religion = religion:zoroastrianism_religion -# } -# } -# this = title:k_anatolia -# } -# this = title:k_poland # Lech -# this = title:k_bohemia # Czech -# OR = { # Rus -# this = title:k_white_rus -# this = title:k_ruthenia -# this = title:e_russia -# } -# OR = { # Arthur -# this = title:k_england -# this = title:e_britannia -# } -# AND = { -# OR = { # Belisarius -# this = title:k_italy -# this = title:k_romagna -# this = title:k_sardinia -# this = title:k_naples -# this = title:e_italy -# } -# root.faith = faith:orthodox -# } -# OR = { # Romulus -# this = title:k_italy -# this = title:k_romagna -# this = title:k_sardinia -# this = title:e_italy -# this = title:h_roman_empire -# this = title:h_eastern_roman_empire -# } -# OR = { # Ardashir -# this = title:k_persia -# this = title:e_persia -# } -# AND = { # Pharaohs -# this = title:k_egypt -# NOT = { root.faith.religion = religion:islam_religion } -# } -# AND = { # Visigothic Kings -# OR = { -# this = title:k_castille -# this = title:k_aragon -# this = title:k_navarra -# this = title:k_andalusia -# this = title:k_portugal -# this = title:e_spain -# } -# NOT = { root.faith.religion = religion:islam_religion } -# } -# AND = { # Abd al-Rahman -# OR = { -# this = title:k_castille -# this = title:k_aragon -# this = title:k_navarra -# this = title:k_andalusia -# this = title:k_portugal -# this = title:e_spain -# } -# root.faith.religion = religion:islam_religion -# } -# AND = { # Zenobia -# OR = { -# this = title:k_syria -# this = title:k_mesopotamia -# } -# NOT = { root.faith.religion = religion:islam_religion } -# } + OR = { # Alexander + this = title:k_thessalonika + this = title:k_hellas + this = title:k_egypt + AND = { + OR = { + this = title:k_persia + this = title:e_persia + } + NOR = { + root.faith.religion = religion:islam_religion + root.faith.religion = religion:zoroastrianism_religion + } + } + this = title:k_anatolia + } + this = title:k_poland # Lech + this = title:k_bohemia # Czech + OR = { # Rus + this = title:k_white_rus + this = title:k_ruthenia + this = title:e_russia + } + OR = { # Arthur + this = title:k_england + this = title:e_britannia + } + AND = { + OR = { # Belisarius + this = title:k_italy + this = title:k_romagna + this = title:k_sardinia + this = title:k_naples + this = title:e_italy + } + root.faith = faith:orthodox + } + OR = { # Romulus + this = title:k_italy + this = title:k_romagna + this = title:k_sardinia + this = title:e_italy + this = title:h_roman_empire + this = title:h_eastern_roman_empire + } + OR = { # Ardashir + this = title:k_persia + this = title:e_persia + } + AND = { # Pharaohs + this = title:k_egypt + NOT = { root.faith.religion = religion:islam_religion } + } + AND = { # Visigothic Kings + OR = { + this = title:k_castille + this = title:k_aragon + this = title:k_navarra + this = title:k_andalusia + this = title:k_portugal + this = title:e_spain + } + NOT = { root.faith.religion = religion:islam_religion } + } + AND = { # Abd al-Rahman + OR = { + this = title:k_castille + this = title:k_aragon + this = title:k_navarra + this = title:k_andalusia + this = title:k_portugal + this = title:e_spain + } + root.faith.religion = religion:islam_religion + } + AND = { # Zenobia + OR = { + this = title:k_syria + this = title:k_mesopotamia + } + NOT = { root.faith.religion = religion:islam_religion } + } } } diff --git a/common/scripted_triggers/00_war_and_peace_triggers.txt b/common/scripted_triggers/00_war_and_peace_triggers.txt index 3583a457..869bebb2 100644 --- a/common/scripted_triggers/00_war_and_peace_triggers.txt +++ b/common/scripted_triggers/00_war_and_peace_triggers.txt @@ -517,10 +517,10 @@ using_de_jure_cb_trigger = { using_cb = individual_county_de_jure_cb using_cb = individual_duchy_de_jure_cb using_cb = imperial_reconquest_cb -# using_cb = dismantle_holy_pretender_cb -# using_cb = dismantle_byz_pretender_cb -# using_cb = norman_conquest_cb -# using_cb = norwegian_invasion_cb + using_cb = dismantle_holy_pretender_cb + using_cb = dismantle_byz_pretender_cb + using_cb = norman_conquest_cb + using_cb = norwegian_invasion_cb } } diff --git a/common/scripted_triggers/00_weather_triggers.txt b/common/scripted_triggers/00_weather_triggers.txt deleted file mode 100644 index 57905aa2..00000000 --- a/common/scripted_triggers/00_weather_triggers.txt +++ /dev/null @@ -1,509 +0,0 @@ - -################################################## -# Winter Triggers -county_has_winter_trigger = { - title_province = { - has_winter_trigger = yes - } -} - -character_capital_has_winter_trigger = { - capital_county = { county_has_winter_trigger = yes } -} - -culture_uses_frequent_winter_transportation_trigger = { - culture = { - OR = { - has_cultural_pillar = heritage_balto_finnic - has_cultural_pillar = heritage_north_germanic - # We exclude Normans as being pretty distant from this part of their heritage. - has_cultural_parameter = winter_trait_bonuses - } - } -} - -location_has_harsh_winter_trigger = { - location = { has_province_modifier = winter_harsh_modifier } -} - -location_has_normal_or_worse_winter_trigger = { - location = { - OR = { - has_province_modifier = winter_normal_modifier - has_province_modifier = winter_harsh_modifier - } - } -} - -location_has_winter_trigger = { - location = { - has_winter_trigger = yes - } -} - -has_winter_trigger = { - OR = { - has_province_modifier = winter_mild_modifier - has_province_modifier = winter_normal_modifier - has_province_modifier = winter_harsh_modifier - AND = { - exists = county - county = { save_temporary_scope_as = winter_county } - county.holder = { has_zud_season_in_county_trigger = { COUNTY = scope:winter_county } } - } - } -} - -has_winter_combat_trigger = { - OR = { - has_province_modifier = winter_mild_modifier - has_province_modifier = winter_normal_modifier - has_province_modifier = winter_harsh_modifier - } -} - -################################################## -# Seasonal Triggers - -middle_of_year_season_trigger = { - current_month >= 4 - current_month <= 9 -} - -end_of_year_season_trigger = { - OR = { - current_month >= 10 - current_month <= 3 - } -} - -temperate_seasons_trigger = { - $LOCATION$ = { - OR = { - geographical_region = world_europe - geographical_region = world_asia_minor - geographical_region = world_middle_east - geographical_region = world_india_rajastan - geographical_region = world_india_bengal - geographical_region = world_africa_north - geographical_region = world_steppe - geographical_region = world_tibet - geographical_region = world_asia_china - geographical_region = world_asia_japan - geographical_region = world_asia_korea - } - } -} - -tropical_seasons_trigger = { - $LOCATION$ = { - tropical_seasons_region_trigger = yes - } -} - -tropical_seasons_region_trigger = { - OR = { - geographical_region = world_africa_west - geographical_region = world_africa_east - geographical_region = world_india_deccan - geographical_region = world_burma - geographical_region = world_asia_china - geographical_region = world_asia_southeast - } -} - -is_nice_season_to_be_outside_trigger = { - OR = { - # Temperate zones like to be out in summer. - AND = { - temperate_seasons_trigger = { LOCATION = $LOCATION$ } - middle_of_year_season_trigger = yes - } - # Tropical zones like to be out in winter. - AND = { - tropical_seasons_trigger = { LOCATION = $LOCATION$ } - end_of_year_season_trigger = yes - } - } -} - -is_nice_season_to_be_inside_trigger = { - OR = { - # Temperate zones like to be inside in winter. - AND = { - temperate_seasons_trigger = { LOCATION = $LOCATION$ } - end_of_year_season_trigger = yes - } - # Tropical zones like to be inside in summer. - AND = { - tropical_seasons_trigger = { LOCATION = $LOCATION$ } - middle_of_year_season_trigger = yes - } - } -} - - - -#Season scripted trigger tied into custom loc, can be used for backgrounds and VFX -#Format like current_season_winter = yes - -current_season_trigger = { - current_season_$SEASON$ = yes -} - -current_season_winter = { - #southern region with rainy/dry seasons - trigger_if = { - limit = { - location = { - geographical_region = seasonal_region_deccan - } - } - OR = { - current_month >= 11 - current_month < 3 - } - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_rajasthan - } - } - OR = { - current_month >= 12 - current_month < 4 - } - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - OR = { - current_month >= 11 - current_month < 2 - } - } - trigger_else = { - #Generic Northern Hemisphere - OR = { - current_month >= 12 - current_month < 3 - } - #Not present/has different name in these regions - location = { - NOR = { - geographical_region = seasonal_region_east_africa - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_maritime_southeast_asia - geographical_region = seasonal_region_peninsular_southeast_asia - } - } - } -} - -current_season_autumn = { - #southern region with rainy/dry seasons - trigger_if = { - limit = { - location = { - geographical_region = seasonal_region_rajasthan - } - } - current_month >= 10 - current_month < 12 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - current_month >= 8 - current_month < 11 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_east_africa - } - } - current_month >= 9 - current_month < 11 - } - trigger_else = { - #Generic Northern Hemisphere - current_month >= 9 - current_month < 12 - #Not present/has different name in these regions - location = { - NOR = { - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_deccan - geographical_region = seasonal_region_peninsular_southeast_asia - geographicaL_region = seasonal_region_maritime_southeast_asia - } - } - } -} - -current_season_summer = { - #southern region with rainy/dry seasons - trigger_if = { - limit = { - location = { - geographical_region = seasonal_region_deccan - } - } - current_month >= 3 - current_month < 6 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_rajasthan - } - } - current_month >= 4 - current_month < 7 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - current_month >= 4 - current_month < 6 - } - trigger_else = { - #Generic Northern Hemisphere - current_month >= 6 - current_month < 9 - #Not present/has different name in these regions - location = { - NOR = { - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_east_africa - geographical_region = seasonal_region_peninsular_southeast_asia - geographical_region = seasonal_region_maritime_southeast_asia - } - } - } -} - -current_season_spring = { - #southern region with rainy/dry seasons - trigger_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - current_month >= 2 - current_month < 4 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_east_africa - } - } - current_month >= 3 - current_month < 6 - } - trigger_else = { - #Generic Northern Hemisphere - current_month >= 3 - current_month < 6 - #Not present/has different name in these regions - location = { - NOR = { - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_rajasthan - geographical_region = seasonal_region_deccan - geographical_region = seasonal_region_peninsular_southeast_asia - geographical_region = seasonal_region_maritime_southeast_asia - } - } - } -} - -current_season_dry_season = { - #southern region with rainy/dry seasons - location = { - OR = { - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_east_africa - geographical_region = seasonal_region_peninsular_southeast_asia - geographical_region = seasonal_region_maritime_southeast_asia - geographical_region = seasonal_region_bengal - geographical_region = seasonal_region_deccan - } - } - trigger_if = { - limit = { - location = { geographical_region = seasonal_region_west_africa } - } - OR = { - current_month >= 11 - current_month < 5 - } - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_east_africa - } - } - OR = { - current_month >= 12 - current_month < 3 - } - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_maritime_southeast_asia - }#April to September - } - current_month >= 4 - current_month < 10 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_peninsular_southeast_asia - } - } - OR = { #November to May - current_month >= 11 - current_month < 6 - } - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - OR = { - current_month >= 12 - current_month < 3 - } - } - trigger_else = { - location = { - geographical_region = seasonal_region_deccan - } - OR = { - current_month >= 12 - current_month < 3 - } - } -} - -current_season_rainy_season = { - #Jasons triggers here - location = { - OR = { - geographical_region = seasonal_region_west_africa - geographical_region = seasonal_region_east_africa - geographical_region = seasonal_region_peninsular_southeast_asia - geographical_region = seasonal_region_maritime_southeast_asia - geographical_region = seasonal_region_bengal - geographical_region = seasonal_region_deccan - geographical_region = seasonal_region_rajasthan - } - } - #southern region with rainy/dry seasons - trigger_if = { - limit = { - location = { - geographical_region = seasonal_region_deccan - } - } - current_month >= 6 - current_month < 11 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_rajasthan - } - } - current_month >= 7 - current_month < 10 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_bengal - } - } - current_month >= 6 - current_month < 8 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_peninsular_southeast_asia - } - } #June to October - current_month >= 6 - current_month < 11 - } - trigger_else_if = { - limit = { - location = { - geographical_region = seasonal_region_maritime_southeast_asia - } - } #October to March - OR = { - current_month >= 10 - current_month < 4 - } - } - trigger_else = { - location = { - geographical_region = seasonal_region_east_africa - } - current_month >= 6 - current_month < 9 - } -} - -current_season_hot_season = { - OR = { - AND = { - location = { - OR = { - geographical_region = seasonal_region_east_africa - geographical_region = seasonal_region_west_africa - } - } - current_season_rainy_season = yes - } - current_season_summer = yes - } -} -current_season_cold_season = { - OR = { - current_season_winter = yes - current_season_dry_season = yes - } -} -current_season_wet = { - OR = { - current_season_spring = yes - current_season_rainy_season = yes - } -} -current_season_dry = { - OR = { - current_season_summer = yes - current_season_dry_season = yes - } -} diff --git a/common/scripted_triggers/07_ep3_triggers.txt b/common/scripted_triggers/07_ep3_triggers.txt index 74b1fc3c..10d8df3c 100644 --- a/common/scripted_triggers/07_ep3_triggers.txt +++ b/common/scripted_triggers/07_ep3_triggers.txt @@ -21,19 +21,33 @@ ep3_should_use_byzantine_graphics_trigger = { } is_roman_emperor_trigger = { - always = no + OR = { + has_title = title:e_byzantium + has_title = title:h_roman_empire + has_title = title:h_eastern_roman_empire + } } is_roman_emperor_excluding_byzantium_trigger = { - always = no + OR = { + has_title = title:h_roman_empire + has_title = title:h_eastern_roman_empire + } } is_roman_emperor_primary_title_trigger = { - always = no + OR = { + primary_title ?= title:e_byzantium + primary_title ?= title:h_roman_empire + primary_title ?= title:h_eastern_roman_empire + } } is_roman_emperor_primary_title_excluding_byzantium_trigger = { - always = no + OR = { + primary_title ?= title:h_roman_empire + primary_title ?= title:h_eastern_roman_empire + } } #valid_for_byz_emperor_content_trigger = { @@ -1155,16 +1169,16 @@ has_any_gallowsbait_xp_trigger = { } } -#ep3_restored_rome_hard_mode_trigger = { -# OR = { -# this = title:h_roman_empire.holder -# this = title:h_eastern_roman_empire.holder -# } -# any_owned_story = { -# type = ep3_story_cycle_restoring_rome -# has_variable = roman_empire_hard_mode -# } -#} +ep3_restored_rome_hard_mode_trigger = { + OR = { + this = title:h_roman_empire.holder + this = title:h_eastern_roman_empire.holder + } + any_owned_story = { + type = ep3_story_cycle_restoring_rome + has_variable = roman_empire_hard_mode + } +} faith_is_interesting_heresy_to_state_faith_trigger = { religion = root.top_liege.primary_title.state_faith.religion diff --git a/common/scripted_triggers/10_tgp_japan_triggers.txt b/common/scripted_triggers/10_tgp_japan_triggers.txt deleted file mode 100644 index f5dc38f9..00000000 --- a/common/scripted_triggers/10_tgp_japan_triggers.txt +++ /dev/null @@ -1,854 +0,0 @@ - -tgp_is_japanese_kampaku_trigger = { - has_title = title:e_japan - NOR = { - has_title = title:k_chrysanthemum_throne - has_global_variable = tenno_restored - has_global_variable = shogunate_established - } -} - -tgp_is_japanese_governor_trigger = { - custom_tooltip = { - text = tgp_is_japanese_governor_trigger - government_has_flag = government_is_japan_administrative - is_landed = yes - is_ruler = yes - highest_held_title_tier >= tier_county - is_independent_ruler = no - tgp_is_ceremonial_liege_trigger = no - } -} - -can_have_kampaku_acclamation_succession_law_trigger = { - has_tgp_dlc_trigger = yes - government_allows = administrative - is_independent_ruler = yes -} - -can_keep_kampaku_acclamation_succession_law_trigger = { - has_tgp_dlc_trigger = yes - trigger_if = { - limit = { - has_realm_law = japanese_regency_succession_law - } - OR = { - can_have_kampaku_acclamation_succession_law_trigger = yes - has_title = title:e_japan - } - } -} - -any_descendants_are_governors = { - # A direct descendant is currently a Governor - any_child = { # Children - OR = { - tgp_is_japanese_governor_trigger = yes - any_child = { # Grandchildren - OR = { - tgp_is_japanese_governor_trigger = yes - any_child = { # Great-grandchildren - OR = { - tgp_is_japanese_governor_trigger = yes - any_child = { # Great-great-grandchildren - tgp_is_japanese_governor_trigger = yes - } - } - } - } - } - } - } -} - -any_liege_or_above_is_descendant = { - any_liege_or_above = { - is_liege_or_above_of = root - OR = { - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - } - } -} - -is_a_previous_title_holder_trigger = { - save_temporary_scope_as = previous_holder_compare - $TITLE$ ?= { - # Easy out - trigger_if = { - limit = { previous_holder ?= scope:previous_holder_compare } - always = yes - } - # Hard out - trigger_else = { - any_past_holder = { this = scope:previous_holder_compare } - } - } -} - -# Filter out dynasties of Emperors further away from you -# e.g. your father's brother's son -target_shares_nearest_related_title_holder_trigger = { - trigger_if = { - limit = { - any_parent = { - even_if_dead = yes - is_a_previous_title_holder_trigger = { TITLE = $TITLE$ } - } - } - is_child_of = $COMPARE$ - } - trigger_else_if = { - limit = { - any_parent = { - even_if_dead = yes - any_parent = { - even_if_dead = yes - is_a_previous_title_holder_trigger = { TITLE = $TITLE$ } - } - } - } - is_grandchild_of = $COMPARE$ - } - trigger_else = { is_great_grandchild_of = $COMPARE$ } -} - -is_culture_or_descended_from_trigger = { - culture = { - OR = { - this = $CULTURE$ - any_parent_culture_or_above = { this = $CULTURE$ } - } - } -} - -tgp_japan_offensive_wars_ban_trigger = { - trigger_if = { - limit = { - exists = scope:defender.top_liege - scope:attacker.top_liege ?= { - has_title = title:e_japan - scope:defender.top_liege != this - government_is_japanese_trigger = yes - realm_law_use_imperial_policy_trigger = yes - } - } - custom_tooltip = { - text = japan_offensive_wars_ban_tt - scope:attacker.top_liege = { has_realm_law = imperial_expansion_law } - } - } -} - -tgp_is_ceremonial_liege_or_direct_heir_trigger = { - save_temporary_scope_as = char_temp - top_liege.primary_title.var:administrative_ui_special_title ?= { - OR = { - holder ?= { - OR = { - this = scope:char_temp - is_parent_of = scope:char_temp - } - } - place_in_line_of_succession = { - target = scope:char_temp - value <= 5 - } - } - } -} - -tgp_ceremonial_candidacy_restriction_trigger = { - trigger_if = { - limit = { - exists = scope:target - scope:actor ?= { tgp_realm_has_ceremonial_liege_trigger = yes } - scope:secondary_recipient ?= { tgp_is_in_ceremonial_house_trigger = yes } - } - trigger_if = { # Top title only valid for ceremonial liege - limit = { - exists = scope:target.var:administrative_ui_special_title - scope:target.holder = { - OR = { - has_realm_law = japanese_regency_succession_law - has_realm_law = meritocratic_regency_succession_law - } - } - } - trigger_if = { - limit = { - top_liege.primary_title.var:administrative_ui_special_title.holder = { tgp_has_ceremonial_liege_title_trigger = yes } - } - custom_tooltip = { - text = ceremonial_liege_only_heir_can_be_ruler_trigger - scope:secondary_recipient = { tgp_is_ceremonial_liege_or_direct_heir_trigger = yes } - } - } - trigger_else_if = { - limit = { - scope:actor = { is_independent_ruler = yes } - } - custom_tooltip = { - text = ceremonial_liege_only_heir_can_be_ruler_trigger - scope:secondary_recipient = scope:actor.player_heir - } - } - trigger_else = { - custom_tooltip = { - text = ceremonial_liege_house_can_not_be_ruler_trigger - scope:secondary_recipient = { tgp_is_ceremonial_liege_trigger = yes } - } - } - } - trigger_else = { # Governor titles only valid for non-ceremonial liege - custom_tooltip = { - text = ceremonial_liege_cannot_be_governor_trigger - scope:secondary_recipient = { tgp_is_ceremonial_liege_trigger = no } - } - } - } -} - -tgp_japan_grant_titles_restriction_trigger = { - trigger_if = { - limit = { - $GRANTER$ ?= { tgp_realm_has_ceremonial_liege_trigger = yes } - exists = $GRANTEE$.house - } - custom_tooltip = { - text = ceremonial_liege_cannot_be_governor_trigger - $GRANTEE$ = { tgp_is_ceremonial_liege_trigger = no } - } - } -} - -tgp_ceremonial_title_revoke_restriction_trigger = { - trigger_if = { - limit = { - exists = scope:recipient.house - scope:actor.top_liege.primary_title.var:administrative_ui_special_title.holder ?= scope:recipient - } - custom_tooltip = { - text = tgp_blocked_ceremonial_title_revocation_trigger - NOT = { scope:target ?= scope:actor.top_liege.primary_title.var:administrative_ui_special_title } - } - } -} - -can_have_japanese_regency_succession_law_trigger = { - has_tgp_dlc_trigger = yes - is_independent_ruler = yes - government_has_flag = government_is_japan_administrative - OR = { - has_title = title:k_chrysanthemum_throne - any_vassal_or_below = { has_title = title:k_chrysanthemum_throne } - } - NOT = { - has_global_variable = tenno_restored - } -} - -can_have_japanese_appointment_succession_law_trigger = { - has_tgp_dlc_trigger = yes - government_has_flag = government_is_japan_administrative - is_independent_ruler = no - NOT = { has_title = title:k_chrysanthemum_throne } -} - -can_keep_japanese_appointment_succession_law_trigger = { - has_tgp_dlc_trigger = yes - trigger_if = { - limit = { has_realm_law = japanese_appointment_succession_law } - can_have_japanese_appointment_succession_law_trigger = yes - } -} - -can_change_japanese_appointment_succession_law_trigger = { - has_tgp_dlc_trigger = yes -} - -tgp_japan_single_heir_succession_override_trigger = { - save_temporary_scope_as = holder_temp - OR = { - title:k_chrysanthemum_throne.holder ?= scope:holder_temp - AND = { - has_global_variable = tenno_restored - title:e_japan.holder ?= scope:holder_temp - } - } -} - -tgp_blocked_action_against_tenno_trigger = { - custom_description = { - text = tgp_blocked_ruler_against_ceremonial_action_trigger - NAND = { - $TARGET$ = { has_title = title:k_chrysanthemum_throne } - $TARGET$.top_liege = $ACTOR$.top_liege - } - } -} - -tgp_blocked_ruler_against_ceremonial_action_trigger = { - custom_description = { - text = tgp_blocked_ruler_against_ceremonial_action_trigger - NAND = { - $TENNO$ = { has_title = title:k_chrysanthemum_throne } - $REGENT$ = $TENNO$.liege - } - } -} - -#japan_house_name_county_trigger = { -# exists = $TITLE$ -# save_temporary_scope_as = new_head_temp -# trigger_if = { -# limit = { -# OR = { -# $TITLE$.holder ?= scope:new_head_temp -# scope:new_head_temp.domicile.domicile_location.county ?= $TITLE$ -# } -# } -# always = yes -# } -# trigger_else_if = { -# limit = { exists = scope:old_head } -# OR = { -# $TITLE$.holder ?= scope:old_head -# scope:old_head.domicile.domicile_location.county ?= $TITLE$ -# } -# } -# trigger_else_if = { -# limit = { exists = scope:new_head_temp.house.house_head } -# OR = { -# $TITLE$.holder ?= scope:new_head_temp.house.house_head -# scope:new_head_temp.house.house_head.domicile.domicile_location.county ?= $TITLE$ -# } -# } -# trigger_else_if = { -# limit = { exists = scope:old_head.house.house_head } -# OR = { -# $TITLE$.holder ?= scope:old_head.house.house_head -# scope:old_head.house.house_head.domicile.domicile_location.county ?= $TITLE$ -# } -# } -# trigger_else = { always = yes } -# NOT = { -# is_target_in_variable_list = { name = japanese_house_names target = $FLAG$ } -# } -#} -# -japan_house_name_trigger = { - NOT = { - is_target_in_variable_list = { name = japanese_house_names target = $FLAG$ } - } -} - -tgp_japan_internal_soryo_war_is_crime_trigger = { - scope:defender = { - government_has_flag = government_is_japan_administrative - top_liege = { - government_has_flag = government_is_japan_administrative - this = scope:attacker.top_liege - } - } -} - -japan_imperial_expansion_cb_allowed_for_character_trigger = { - # DLC check - has_tgp_dlc_trigger = yes - # Must have a Japanese government form with policies - realm_law_use_imperial_policy_trigger = yes - # Must be part of Japan with functional imperial family - tgp_realm_has_ceremonial_liege_trigger = yes -} - -government_is_japanese_trigger = { - OR = { - government_has_flag = government_is_japan_administrative - government_has_flag = government_is_japan_feudal - } -} - -japan_imperial_expansion_cb_allowed_against_character_trigger = { - # Cannot also be part of Japan - NOT = { top_liege ?= scope:attacker.top_liege } - # Must own Japanese non-de-jure land - any_sub_realm_county = { - NOT = { empire = title:e_japan } - title_province = { - OR = { - geographical_region = world_asia_japan - geographical_region = world_asia_sakhalin_hokkaido - } - } - } -} - -japan_imperial_reconquest_cb_allowed_for_character_trigger = { - # DLC check - has_tgp_dlc_trigger = yes - # Must have a Japanese government form with policies - realm_law_use_imperial_policy_trigger = yes - # Must be part of Japan with functional imperial family - tgp_realm_has_ceremonial_liege_trigger = yes -} - -japan_imperial_reconquest_cb_allowed_against_character_trigger = { - # Cannot also be part of Japan - scope:defender.top_liege != scope:attacker.top_liege - # Must own Japanese de-jure land - any_sub_realm_county = { empire = title:e_japan } -} - -realm_law_use_imperial_policy_trigger = { - top_liege = { - highest_held_title_tier >= tier_empire - government_is_japanese_trigger = yes - } -} - -tgp_japan_defense_mobilization_valid_trigger = { - custom_tooltip = { - text = defense_mobilization_law_valid_trigger - OR = { - AND = { - is_at_war = yes - save_temporary_scope_as = liege_temp - any_character_war = { - is_civil_war = no - save_temporary_scope_as = war_temp - scope:liege_temp = { - is_leader_in_war = scope:war_temp - is_defender_in_war = scope:war_temp - } - OR = { - # CURRENT ATTACKERS COMBINED ARE A THREAT - war_attacker_total_strength_value > scope:liege_temp.max_strength_fifty_percent_value - # PRIMARY ATTACKER WITH ALLIES IS A THREAT - primary_attacker.max_strength_with_allies_value > scope:liege_temp.max_strength_fifty_percent_value - } - primary_attacker = { - OR = { - capital_county.empire != scope:liege_temp.capital_county.empire - NOT = { government_is_japanese_trigger = yes } - } - } - } - } - capital_county.empire = { - any_de_jure_county = { holder.top_liege != root.top_liege } - } - } - } -} - -tgp_japan_valid_restore_monarchy_scion_trigger = { - is_landed = no - can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:kampaku } - is_healthy = yes -} - -tgp_japan_imperial_expansion_internal_peace_trigger = { - custom_tooltip = { - text = imperial_expansion_internal_peace_trigger - top_liege = { - NOT = { - any_vassal_or_below = { - any_primary_war_enemy = { - top_liege = prev.top_liege - } - } - } - } - } -} - -tgp_install_regent_faction_target_valid_trigger = { - is_independent_ruler = yes - tgp_realm_has_ceremonial_liege_trigger = yes -} - -tgp_install_regent_faction_can_create_trigger = { - has_tgp_dlc_trigger = yes - scope:target ?= { tgp_install_regent_faction_target_valid_trigger = yes } - custom_tooltip = { - text = replace_ceremonial_regent_faction_kampaku_trigger - NOR = { - has_global_variable = shogunate_established - has_global_variable = tenno_restored - } - } - is_adult = yes - custom_tooltip = { - text = is_faith_dominant_gender_tt - is_faith_dominant_gender = yes - } - japan_faction_cohesion_hard_trigger = yes - trigger_if = { - limit = { - scope:target ?= { - government_is_japanese_trigger = yes # am I a compatible government type? - } - } - government_is_japanese_trigger = yes - } - trigger_if = { - limit = { - scope:target ?= { - has_government = meritocratic_government # am I a compatible government type? - } - } - has_government = meritocratic_government - } -} - -japan_faction_cohesion_trigger = { - trigger_if = { - limit = { - government_has_flag = government_has_house_blocs - is_confederation_member = yes - } - custom_tooltip = { - text = house_head_create_faction_cohesion_tt - OR = { - house.house_confederation ?= { cohesion >= 50 } - joined_faction ?= { - OR = { - faction_is_at_war = yes - any_faction_member = { - OR = { - this = root.house.house_confederation.leading_house.house_head - is_ai = no - } - } - } - } - } - } - } -} - -japan_faction_cohesion_hard_trigger = { - trigger_if = { - limit = { - government_has_flag = government_has_house_blocs - is_confederation_member = yes - } - custom_tooltip = { - text = house_head_create_faction_cohesion_hard_tt - OR = { - house.house_confederation ?= { cohesion >= 75 } - joined_faction ?= { - OR = { - faction_is_at_war = yes - any_faction_member = { - OR = { - this = root.house.house_confederation.leading_house.house_head - is_ai = no - } - } - } - } - } - } - } -} - -restore_ceremonial_liege_faction_can_create_trigger = { - tgp_realm_has_ceremonial_liege_trigger = yes - trigger_if = { - limit = { government_is_japanese_trigger = yes } - custom_tooltip = { - text = house_head_create_faction_cohesion_hard_tt - OR = { - house.house_confederation ?= { cohesion >= 75 } - joined_faction ?= { - faction_is_at_war = yes - } - } - } - custom_tooltip = { - text = bloc_leader_unlocks_restore_emperor_faction_tt - OR = { - house.house_confederation ?= { has_cohesion_level_parameter = bloc_leader_unlocks_restore_emperor_faction } - joined_faction ?= { - faction_is_at_war = yes - } - } - } - } - OR = { - custom_tooltip = { - text = is_house_head_of_noble_family_tt - is_house_head = yes - any_held_title = { is_noble_family_title = yes } - } - is_landed = yes - } - scope:target ?= { - is_independent_ruler = yes - tgp_realm_has_ceremonial_liege_trigger = yes - tgp_has_ceremonial_liege_title_trigger = no - } -} - -ceremonial_claimant_faction_can_create_trigger = { - scope:target ?= { - is_independent_ruler = yes - tgp_realm_has_ceremonial_liege_trigger = yes - tgp_has_ceremonial_liege_title_trigger = no - } - japan_faction_cohesion_hard_trigger = yes -} - -imperial_policy_faction_can_create_trigger = { - realm_law_use_imperial_policy_trigger = yes - scope:target = { - is_independent_ruler = yes - this = root.liege - } - japan_faction_cohesion_trigger = yes -} - -tgp_ritsuryo_bloc_house_head_trigger = { - top_liege = root.top_liege - government_has_flag = government_is_japan_administrative -} - -tgp_house_bloc_interaction_valid_trigger = { - is_ruler = yes - tgp_uses_house_blocs_trigger = yes - highest_held_title_tier >= tier_county - top_liege = { tgp_uses_house_blocs_trigger = yes } -} - -tgp_house_bloc_interaction_valid_showing_failures_trigger = { - custom_tooltip = { - text = tgp_house_bloc_house_head_tt - is_house_head = yes - any_held_title = { is_noble_family_title = yes } - } -} - -tgp_has_house_relation_level_trigger = { - exists = $HOUSE_1_MEMBER$.house - exists = $HOUSE_2_MEMBER$.house - $HOUSE_1_MEMBER$.house != $HOUSE_2_MEMBER$.house - $HOUSE_1_MEMBER$.house = { - any_house_relation = { - has_house_relation_level = $LEVEL$ - any_relation_house = { this = $HOUSE_2_MEMBER$.house } - } - } -} - -## Check who can join a House Bloc -# -# TODO_TGP_CD: Remove this? Functionality (if any) would do better on house confederation type). -# -# root: possibly viable character -# -tgp_should_join_house_bloc_trigger = { - # Not in a Bloc - NOT = { exists = confederation } - # Not vassal - TODO_CD_TGP - #NOT = { liege ?= house.house_head } - # Same liege - $BLOC$.leading_house.house_head.liege ?= liege - # General checks - tgp_house_bloc_interaction_valid_trigger = yes - is_landed = yes # TODO_CD_TGP UNLANDED CANNOT JOIN YET - # Government TODO_CD_TGP disabled for now - #trigger_if = { - # limit = { - # $BLOC$.leading_house.house_head ?= { government_has_flag = government_is_japan_administrative } - # } - # government_has_flag = government_is_japan_administrative - #} - #trigger_else = { government_has_flag = government_is_japan_feudal } -} - -tgp_house_bloc_inviter_or_leader_trigger = { - $JOINER$ = { save_temporary_scope_as = joiner_temp } - trigger_if = { - limit = { exists = $INVITER$.confederation.leading_house.house_head } - $INVITER$.confederation.leading_house.house_head = { save_temporary_scope_as = inviter_temp } - } - trigger_else = { $INVITER$ = { save_temporary_scope_as = inviter_temp } } -} - -tgp_japan_cadet_creates_dynasty_trigger = { - NOR = { - this = dynasty.dynast - this = house.house_head - } - dynasty.dynast ?= { government_allows = administrative } -} - -tgp_soryo_or_bushido_trigger = { - custom_tooltip = { - text = soryo_or_bushido_trigger - OR = { - government_has_flag = government_is_japan_feudal - culture = { has_cultural_tradition = tradition_tgp_bushido } - } - } -} - -has_house_aspiration_trigger = { - OR = { - has_house_aspiration_parameter = aspiration_level_1 - has_house_aspiration_parameter = aspiration_level_2 - has_house_aspiration_parameter = aspiration_level_3 - } -} - -should_learn_chinese_trigger = { - save_temporary_scope_as = child_learned_chinese - #Make sure they don't already know Chinese - NOT = { - knows_language = language_chinese - } - num_of_known_languages < language_soft_cap - exists = house - age >= 10 - is_faith_dominant_gender = yes - probably_unintelligent_trigger = no - house.house_head ?= { - OR = { - government_is_japanese_trigger = yes - #This will account for korea and friends - government_allows = merit - } - OR = { - #Cultural acceptance will be our guiding light for teaching young, noblemen (dominate gender) adults Chinese. These values will be set in game_start.txt - culture = { - OR = { - cultural_acceptance = { - target = culture:han - value >= 65 - } - any_parent_culture_or_above = { this = culture:han } - } - } - top_liege = { - highest_held_title_tier >= tier_kingdom - has_dlc_feature = royal_court - has_court_language_of_culture = culture:han - } - } - } -} - -japan_government_japan_kingdom_restriction_trigger = { - trigger_if = { - limit = { - government_is_japanese_trigger = yes - OR = { - is_independent_ruler = no - AND = { - NOT = { highest_held_title_tier = tier_kingdom } - has_title = title:e_japan - } - } - } - custom_tooltip = { - text = japan_government_japan_kingdom_restriction_tt - has_global_variable = tenno_restored - } - } -} - -japan_government_japan_duchy_restriction_trigger = { - trigger_if = { - limit = { - OR = { - government_has_flag = government_is_japan_administrative - AND = { # Soryo can create duchies if they're already a duke - government_has_flag = government_is_japan_feudal - primary_title.tier = tier_county - } - } - NAND = { - is_independent_ruler = yes - government_has_flag = government_is_japan_feudal - } - } - custom_tooltip = { - text = japan_government_japan_duchy_restriction_tt - has_global_variable = tenno_restored - } - } -} - -can_upgrade_house_aspiration_trigger = { - is_house_head = yes - trigger_if = { - limit = { - exists = house.house_confederation.leading_house - house.house_confederation.leading_house != house - } - custom_tooltip = { - text = cannot_upgrade_mismatched_bloc_aspiration_tt - house.house_confederation.leading_house = { has_same_house_aspiration_as = root.house } - } - } -} - -japan_castle_construction_trigger = { - trigger_if = { - limit = { - county.holder ?= { - government_has_flag = government_is_japan_administrative - realm_law_use_imperial_policy_trigger = yes - } - } - custom_tooltip = { - text = japan_castle_construction_trigger_tt - county.holder.top_liege ?= { has_realm_law_flag = disarmament_law } - } - } -} - -tgp_bloc_war_transfer_trigger = { - $BLOC_LEADER$ = { save_temporary_scope_as = leader_temp } - save_temporary_scope_as = member_head_temp - NOR = { - # Not leading house - scope:leader_temp.house.house_confederation.leading_house ?= house - # Not sub vassal - trigger_if = { - limit = { - scope:leader_temp = { is_independent_ruler = no } - } - is_vassal_or_below_of = scope:leader_temp - } - # Not friend - has_relation_friend = scope:leader_temp - # Not ally - is_allied_to = scope:leader_temp - # Not hooked - scope:leader_temp = { has_hook = scope:member_head_temp } - # Not terrified - has_dread_level_towards = { - target = scope:leader_temp - level >= 2 - } - # Not loyal - has_trait = loyal - } -} - -has_japanese_house_aspiration_trigger = { - house ?= { - OR = { - has_house_aspiration_parameter = aspiration_ceremony - has_house_aspiration_parameter = aspiration_determination - has_house_aspiration_parameter = aspiration_humility - has_house_aspiration_parameter = aspiration_prosperity - has_house_aspiration_parameter = aspiration_service - has_house_aspiration_parameter = aspiration_strength - } - } -} diff --git a/common/traits/00_traits.txt b/common/traits/00_traits.txt index f1baaa30..3a6a3ecd 100644 --- a/common/traits/00_traits.txt +++ b/common/traits/00_traits.txt @@ -8693,7 +8693,7 @@ devoted = { triggered_desc = { trigger = { faith ?= { - faith:osvicenist.religion ?= religion + faith:theravada.religion ?= religion } culture ?= { has_cultural_pillar = language_japonic } is_female = no @@ -8703,7 +8703,7 @@ devoted = { triggered_desc = { trigger = { faith ?= { - faith:osvicenist.religion ?= religion + faith:theravada.religion ?= religion } culture ?= { has_cultural_pillar = language_japonic } is_female = yes @@ -8713,7 +8713,7 @@ devoted = { triggered_desc = { trigger = { exists = faith.religion - faith.religion = faith:osvicenist.religion + faith.religion = faith:theravada.religion is_female = no } desc = trait_devoted_buddhism_male @@ -8721,7 +8721,7 @@ devoted = { triggered_desc = { trigger = { exists = faith.religion - faith.religion = faith:osvicenist.religion + faith.religion = faith:theravada.religion is_female = yes } desc = trait_devoted_buddhism_female @@ -8993,26 +8993,26 @@ faith_warrior = { trigger = { faith = { religion_tag = islam_religion } } desc = trait_mujahid } -# # triggered_desc = { + # triggered_desc = { # trigger = { faith = { religion_tag = bon_religion } } # desc = trait_crusader_bon -# # } + # } triggered_desc = { trigger = { faith = { religion_tag = buddhism_religion } } desc = trait_crusader_buddhism } -# triggered_desc = { -# trigger = { faith = { religion_tag = dualism_religion } } -# desc = trait_crusader_dualism -# } + triggered_desc = { + trigger = { faith = { religion_tag = dualism_religion } } + desc = trait_crusader_dualism + } triggered_desc = { trigger = { faith = { religion_tag = folkgerman_religion } } desc = trait_crusader_germanic } -# triggered_desc = { -# trigger = { faith = { religion_tag = hellenism_religion } } -# desc = trait_crusader_hellenism -# } + triggered_desc = { + trigger = { faith = { religion_tag = hellenism_religion } } + desc = trait_crusader_hellenism + } triggered_desc = { trigger = { faith = { religion_tag = hinduism_religion } } desc = trait_crusader_hinduism @@ -9041,34 +9041,34 @@ faith_warrior = { trigger = { faith = { religion_tag = finnic_religion } } desc = trait_crusader_finno_ugric } -## triggered_desc = { -## trigger = { faith = { religion_tag = siberian_religion } } -# desc = trait_crusader_siberian -# } -# triggered_desc = { -# trigger = { faith = { religion_tag = tengrism_religion } } -# desc = trait_crusader_tengrism -# } -# triggered_desc = { -# trigger = { faith = { religion_tag = west_african_religion } } -# desc = trait_crusader_west_african -# } -# triggered_desc = { -# trigger = { faith = { religion_tag = west_african_bori_religion } } -# desc = trait_crusader_west_african_bori -# } -# triggered_desc = { -# trigger = { faith = { religion_tag = west_african_roog_religion } } -# desc = trait_crusader_west_african_roog -# } + triggered_desc = { + trigger = { faith = { religion_tag = siberian_religion } } + desc = trait_crusader_siberian + } + triggered_desc = { + trigger = { faith = { religion_tag = tengrism_religion } } + desc = trait_crusader_tengrism + } + triggered_desc = { + trigger = { faith = { religion_tag = west_african_religion } } + desc = trait_crusader_west_african + } + triggered_desc = { + trigger = { faith = { religion_tag = west_african_bori_religion } } + desc = trait_crusader_west_african_bori + } + triggered_desc = { + trigger = { faith = { religion_tag = west_african_roog_religion } } + desc = trait_crusader_west_african_roog + } triggered_desc = { trigger = { faith = { religion_tag = zoroastrianism_religion } } desc = trait_crusader_zoroastrianism } -# triggered_desc = { -# trigger = { faith = { religion_tag = zunism_religion } } -# desc = trait_crusader_zunism -# } + triggered_desc = { + trigger = { faith = { religion_tag = zunism_religion } } + desc = trait_crusader_zunism + } desc = trait_faith_warrior } @@ -15358,71 +15358,71 @@ lifestyle_traveler = { } ############### FP3 TRAITS ############## -# -#fp3_struggle_detractor = { -# icon = "fp3_struggle_detractor.dds" -# opposites = { -# fp3_struggle_supporter -# } -# -# shown_in_ruler_designer = no -# -# same_opinion = 10 -# opposite_opinion = -30 -# -# ai_war_cooldown = -0.5 -# ai_war_chance = 5 -# -# flag = can_foment_revolt_interaction -# flag = can_request_incursion_interaction -# flag = can_change_to_iranian_faith_decision -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# NOT = { exists = this } -# } -# desc = trait_fp3_struggle_detractor_desc -# } -# triggered_desc = { -# trigger = { faith.religious_head_title ?= title:d_sunni } -# desc = trait_fp3_struggle_detractor_character_desc -# } -# desc = trait_fp3_struggle_detractor_non_orthodox_sunni_character_desc -# } -# } -#} -# -#fp3_struggle_supporter = { -# icon = "fp3_struggle_supporter.dds" -# opposites = { -# fp3_struggle_detractor -# } -# -# shown_in_ruler_designer = no -# -# flag = can_use_install_loyalist_cb -# -# same_opinion = 10 -# opposite_opinion = -30 -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# NOT = { exists = this } -# } -# desc = trait_fp3_struggle_supporter_desc -# } -# triggered_desc = { -# trigger = { has_title = title:d_sunni } -# desc = trait_fp3_struggle_supporter_character_is_caliph_desc -# } -# desc = trait_fp3_struggle_supporter_character_desc -# } -# } -#} + +fp3_struggle_detractor = { + icon = "fp3_struggle_detractor.dds" + opposites = { + fp3_struggle_supporter + } + + shown_in_ruler_designer = no + + same_opinion = 10 + opposite_opinion = -30 + + ai_war_cooldown = -0.5 + ai_war_chance = 5 + + flag = can_foment_revolt_interaction + flag = can_request_incursion_interaction + flag = can_change_to_iranian_faith_decision + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_detractor_desc + } + triggered_desc = { + trigger = { faith.religious_head_title ?= title:d_sunni } + desc = trait_fp3_struggle_detractor_character_desc + } + desc = trait_fp3_struggle_detractor_non_orthodox_sunni_character_desc + } + } +} + +fp3_struggle_supporter = { + icon = "fp3_struggle_supporter.dds" + opposites = { + fp3_struggle_detractor + } + + shown_in_ruler_designer = no + + flag = can_use_install_loyalist_cb + + same_opinion = 10 + opposite_opinion = -30 + + desc = { + first_valid = { + triggered_desc = { + trigger = { + NOT = { exists = this } + } + desc = trait_fp3_struggle_supporter_desc + } + triggered_desc = { + trigger = { has_title = title:d_sunni } + desc = trait_fp3_struggle_supporter_character_is_caliph_desc + } + desc = trait_fp3_struggle_supporter_character_desc + } + } +} ############### EP3 TRAITS ############## @@ -15832,6 +15832,7 @@ despoiler_of_byzantium = { siege_phase_time = -0.25 men_at_arms_maintenance_per_dread_mult = -0.0025 knight_effectiveness_per_dread = 0.002 + greek_opinion = -50 county_opinion_add = -10 clergy_opinion = -15 @@ -16035,148 +16036,148 @@ knight_errant = { } } } -# -#the_wake = { -# category = lifestyle -# icon = "the_wake.dds" -# -# shown_in_ruler_designer = no -# -# opinion_of_different_culture = -10 -# wetlands_travel_danger = -100 -# character_travel_speed = 15 -# -# # AI Values -# ai_vengefulness = 100 -# -# name = { -# first_valid = { -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value = 100 -# } -# } -# desc = the_wake_5 -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 75 -# } -# } -# desc = the_wake_4 -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 50 -# } -# } -# desc = the_wake_3 -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 25 -# } -# } -# desc = the_wake_2 -# } -# desc = the_wake_1 -# } -# } -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value = 100 -# } -# } -# desc = the_wake_5_desc -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 75 -# } -# } -# desc = the_wake_4_desc -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 50 -# } -# } -# desc = the_wake_3_desc -# } -# triggered_desc = { -# trigger = { -# exists = this -# has_trait_xp = { -# trait = the_wake -# value >= 25 -# } -# } -# desc = the_wake_2_desc -# } -# desc = the_wake_1_desc -# } -# } -# -# track = { -# 25 = { -# martial = 1 -# wetlands_attrition_mult = -0.1 -# wetlands_advantage = 2 -# wetlands_supply_limit_mult = 0.1 -# norman_opinion = -5 -# } -# 50 = { -# martial = 1 -# wetlands_attrition_mult = -0.2 -# wetlands_advantage = 3 -# wetlands_supply_limit_mult = 0.2 -# norman_opinion = -5 -# } -# 75 = { -# martial = 1 -# prowess = 1 -# wetlands_attrition_mult = -0.2 -# wetlands_advantage = 1 -# max_combat_roll = 2 -# wetlands_supply_limit_mult = 0.2 -# norman_opinion = -10 -# dread_baseline_add = 5 -# } -# 100 = { -# martial = 2 -# prowess = 2 -# wetlands_supply_limit_mult = 0.1 -# norman_opinion = -15 -# uncontrolled_province_advantage = 5 -# raid_speed = 0.5 -# dread_baseline_add = 15 -# } -# } -#} + +the_wake = { + category = lifestyle + icon = "the_wake.dds" + + shown_in_ruler_designer = no + + opinion_of_different_culture = -10 + wetlands_travel_danger = -100 + character_travel_speed = 15 + + # AI Values + ai_vengefulness = 100 + + name = { + first_valid = { + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value = 100 + } + } + desc = the_wake_5 + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 75 + } + } + desc = the_wake_4 + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 50 + } + } + desc = the_wake_3 + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 25 + } + } + desc = the_wake_2 + } + desc = the_wake_1 + } + } + + desc = { + first_valid = { + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value = 100 + } + } + desc = the_wake_5_desc + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 75 + } + } + desc = the_wake_4_desc + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 50 + } + } + desc = the_wake_3_desc + } + triggered_desc = { + trigger = { + exists = this + has_trait_xp = { + trait = the_wake + value >= 25 + } + } + desc = the_wake_2_desc + } + desc = the_wake_1_desc + } + } + + track = { + 25 = { + martial = 1 + wetlands_attrition_mult = -0.1 + wetlands_advantage = 2 + wetlands_supply_limit_mult = 0.1 + norman_opinion = -5 + } + 50 = { + martial = 1 + wetlands_attrition_mult = -0.2 + wetlands_advantage = 3 + wetlands_supply_limit_mult = 0.2 + norman_opinion = -5 + } + 75 = { + martial = 1 + prowess = 1 + wetlands_attrition_mult = -0.2 + wetlands_advantage = 1 + max_combat_roll = 2 + wetlands_supply_limit_mult = 0.2 + norman_opinion = -10 + dread_baseline_add = 5 + } + 100 = { + martial = 2 + prowess = 2 + wetlands_supply_limit_mult = 0.1 + norman_opinion = -15 + uncontrolled_province_advantage = 5 + raid_speed = 0.5 + dread_baseline_add = 15 + } + } +} immortal = { icon = "immortal.dds" diff --git a/events/activities/coronation_activity/coronation_events_6.txt b/events/activities/coronation_activity/coronation_events_6.txt index e0745fc0..ed9c341b 100644 --- a/events/activities/coronation_activity/coronation_events_6.txt +++ b/events/activities/coronation_activity/coronation_events_6.txt @@ -8472,25 +8472,25 @@ coronation_events.6121 = { OR = { government_has_flag = government_is_nomadic has_trait = nomadic_philosophy -# primary_title = title:e_mongol_empire + primary_title = title:e_mongol_empire } } desc = coronation_events.6121.desc_kurultai } -# triggered_desc = { -# trigger = { -# OR = { -# is_roman_emperor_primary_title_trigger = yes -# culture = { -# has_cultural_tradition = tradition_ep3_roman_ceremonies -# } -# culture = { -# has_cultural_tradition = tradition_roman_legacy -# } -# } -# } -# desc = coronation_events.6121.desc_byzantine -# } + triggered_desc = { + trigger = { + OR = { + is_roman_emperor_primary_title_trigger = yes + culture = { + has_cultural_tradition = tradition_ep3_roman_ceremonies + } + culture = { + has_cultural_tradition = tradition_roman_legacy + } + } + } + desc = coronation_events.6121.desc_byzantine + } desc = coronation_events.6121.desc_generic_intro } #Are the nobles compliant? diff --git a/events/artifacts/historical_artifacts_events.txt b/events/artifacts/historical_artifacts_events.txt index 7443702e..bd9ce047 100644 --- a/events/artifacts/historical_artifacts_events.txt +++ b/events/artifacts/historical_artifacts_events.txt @@ -123,13 +123,13 @@ historical_artifacts.0023 = { } } } -# # Court Artifacts: Roog Sene -# faith:west_african_roog_pagan = { -# random_faith_ruler = { -# limit = { highest_held_title_tier >= tier_county } -# create_artifact_pedestal_branch_relic_boog_effect = { OWNER = this } -# } -# } + # Court Artifacts: Roog Sene + faith:west_african_roog_pagan = { + random_faith_ruler = { + limit = { highest_held_title_tier >= tier_county } + create_artifact_pedestal_branch_relic_boog_effect = { OWNER = this } + } + } # Court Artifacts: Slavic faith:chernobozhye = { random_faith_ruler = { @@ -138,301 +138,301 @@ historical_artifacts.0023 = { } } } -# # Historical Artifacts -# ## We do these per-artefact rather than per-title so that they can be easily reshuffled if desired. -# ## Crowns -# ### Iron Crown of Lombardy -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_hre.holder -# } -# title:e_hre.holder = { -# create_artifact_pedestal_crown_iron_effect = { OWNER = this } -# } -# } -# ### Reichskrone -# if = { -# limit = { -# current_date > 1000.1.1 -# exists = title:e_hre.holder -# } -# title:e_hre.holder = { -# create_artifact_reichskrone_effect = { OWNER = this } -# } -# } -# ### Essen Crown -# if = { -# limit = { -# current_date > 1000.1.1 -# exists = title:e_hre.holder -# } -# title:e_hre.holder = { -# create_artifact_essen_crown_effect = { OWNER = this } -# } -# } -# ### Nikephoros' Crown -# if = { -# limit = { -# current_date >= 1000.1.1 -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_nikephoros_crown_effect = { OWNER = this } -# } -# } -# ### Monomachus Crown -# if = { -# limit = { -# has_dlc_feature = royal_court -# current_date >= 1000.1.1 -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_monomachus_crown_effect = { OWNER = this } -# } -# } -# ### Crown of Justinian -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_pedestal_justinian_effect = { OWNER = this } -# } -# } -# ### al-Taj -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_taj_crown_effect = { OWNER = this } -# } -# } -# ### Papal Tiara -# if = { -# limit = { exists = title:k_papal_state.holder } -# title:k_papal_state.holder = { -# create_artifact_papal_tiara_effect = { OWNER = this } -# } -# } -# ### Visigothic Votive Crowns -# if = { -# limit = { has_fp2_dlc_trigger = yes } -# every_county_in_region = { -# region = world_europe_west_iberia -# holder = { add_to_list = potential_votive_crown_holders_list } -# } -# while = { -# count = 5 -# random_in_list = { -# list = potential_votive_crown_holders_list -# limit = { -# NOT = { has_character_flag = seeded_relic } -# } -# create_artifact_fp2_votive_crowns_effect = { OWNER = this } -# add_character_flag = { -# flag = seeded_relic -# days = 1 -# } -# } -# } -# } -# ## Clothes -# ### Robe of Kassapa -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:k_pagan.holder -# } -# title:k_pagan.holder = { -# create_artifact_robe_kassapa_effect = { OWNER = this } -# } -# } -# ### Mantle of the Prophet -# if = { -# limit = { exists = title:d_sunni.holder } -# title:d_sunni.holder = { -# create_artifact_mantle_of_the_prophet_effect = { OWNER = this } -# } -# } -# ## Other Regalia -# ### Qadib al-Mulk -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_qadib_al_mulk_effect = { OWNER = this } -# } -# } -# ### Chalice of Dona Urraca -# if = { -# limit = { -# # It's likely that Urraca paid for her eponymous chalice using money she earnt from the titles her father pre-bequeathed to her, so it was probably made some time *after* 1066 (since she only got the lands in 1065, shortly before her father died), buuuuuut it's really mean to not let her have it at game start, so we give it to her in 1066. -# current_date >= 1066.1.1 -# has_fp2_dlc_trigger = yes -# exists = character:108501 -# character:108501 = { is_alive = yes } -# } -# create_artifact_goblet_chalice_of_dona_urraca = { OWNER = character:108501 } -# } -# ## Thrones -# ### Throne of Scone (featuring Stone) -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:k_scotland.holder -# } -# title:k_scotland.holder = { -# create_artifact_throne_scone_effect = { OWNER = this } -# } -# } -# ### Throne of Charlemagne -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_hre.holder -# } -# title:e_hre.holder = { -# create_artifact_throne_charlemagne_effect = { OWNER = this } -# } -# } -# ### Throne of Solomon (the Byzantine one) -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# exists = title:e_byzantium.holder -# current_date >= 940.1.1 -# } -# title:e_byzantium.holder = { -# create_artifact_byz_throne_effect = { OWNER = this } -# } -# } -# ## Furniture -# ### Pentapyrgion -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_sculpture_cabinet_pentapyrgion_effect = { OWNER = this } -# } -# } -# ### Bells of Santiago -# if = { -# # If we're before Almanzor's raid, then the bells go to c_santiago's holder. -# limit = { -# has_fp2_dlc_trigger = yes -# current_date < 997.1.1 -# } -# title:c_santiago.holder = { -# create_artifact_various_bells_santiago = { OWNER = this } -# # The bells haven't been changed at all. -# scope:newly_created_artifact = { -# set_variable = { -# name = artefact_santiago_bells -# value = 0 -# } -# } -# } -# } -# ### (Former) Bells of Santiago -# #### These aren't actually furniture, but we keep 'em here so they're next to the regular bells, which *are*. -# if = { -# # If we're after Almanzor's raid, then the bells go to c_toledo's holder. -# limit = { -# has_fp2_dlc_trigger = yes -# current_date >= 997.1.1 -# current_date <= 1178.1.1 -# } -# title:c_toledo.holder = { -# create_artifact_various_aquamanile_santiago = { OWNER = this } -# # The bells have been morphed once. -# scope:newly_created_artifact = { -# set_variable = { -# name = artefact_santiago_bells -# value = 1 -# } -# } -# } -# } -# if = { -# # If we're after Almanzor's raid, then the bells go to c_toledo's holder. -# limit = { -# has_fp2_dlc_trigger = yes -# current_date >= 1178.1.1 -# } -# title:c_cordoba.holder = { -# create_artifact_various_aquamanile_santiago = { OWNER = this } -# # The bells have been morphed once. -# scope:newly_created_artifact = { -# set_variable = { -# name = artefact_santiago_bells -# value = 1 -# } -# } -# } -# } -# ## Weapons (including decoratives) -# ### Curtana -# #### Not the *actual* Curtana, but at least occasionally traced as Edward the Confessor's sword (and then ascribed an even more mythic origin from there). -# if = { -# limit = { -# has_dlc_feature = royal_court -# current_date >= 1042.8.6 -# exists = title:k_england.holder -# } -# title:k_england.holder = { -# create_artifact_curtana_effect = { OWNER = this } -# } -# } -# ### Sword of Atilla -# #### Associated with the Arpads, but "discovered"/passed out of their possession around or after 1063. They maintain a house claim on it. -# if = { -# limit = { -# has_dlc_feature = royal_court -# current_date >= 1064.1.1 -# exists = title:d_bavaria.holder -# } -# title:d_bavaria.holder = { -# create_artifact_wall_sword_attila_effect = { OWNER = this } -# dynasty:708 = { -# random_dynasty_member = { -# house = { add_house_artifact_claim = scope:newly_created_artifact } -# } -# } -# } -# } -# ### al-Sayf al-Khass -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_sayf_al_khass_effect = { OWNER = this } -# } -# } -# ### Staff of Kakusandha -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:k_pagan.holder -# } -# title:k_pagan.holder = { -# create_artifact_staff_kakusandha_effect = { OWNER = this } -# } -# } + # Historical Artifacts + ## We do these per-artefact rather than per-title so that they can be easily reshuffled if desired. + ## Crowns + ### Iron Crown of Lombardy + if = { + limit = { + has_dlc_feature = royal_court + exists = title:e_hre.holder + } + title:e_hre.holder = { + create_artifact_pedestal_crown_iron_effect = { OWNER = this } + } + } + ### Reichskrone + if = { + limit = { + current_date > 1000.1.1 + exists = title:e_hre.holder + } + title:e_hre.holder = { + create_artifact_reichskrone_effect = { OWNER = this } + } + } + ### Essen Crown + if = { + limit = { + current_date > 1000.1.1 + exists = title:e_hre.holder + } + title:e_hre.holder = { + create_artifact_essen_crown_effect = { OWNER = this } + } + } + ### Nikephoros' Crown + if = { + limit = { + current_date >= 1000.1.1 + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_nikephoros_crown_effect = { OWNER = this } + } + } + ### Monomachus Crown + if = { + limit = { + has_dlc_feature = royal_court + current_date >= 1000.1.1 + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_monomachus_crown_effect = { OWNER = this } + } + } + ### Crown of Justinian + if = { + limit = { + has_dlc_feature = royal_court + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_pedestal_justinian_effect = { OWNER = this } + } + } + ### al-Taj + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_al_taj_crown_effect = { OWNER = this } + } + } + ### Papal Tiara + if = { + limit = { exists = title:k_papal_state.holder } + title:k_papal_state.holder = { + create_artifact_papal_tiara_effect = { OWNER = this } + } + } + ### Visigothic Votive Crowns + if = { + limit = { has_fp2_dlc_trigger = yes } + every_county_in_region = { + region = world_europe_west_iberia + holder = { add_to_list = potential_votive_crown_holders_list } + } + while = { + count = 5 + random_in_list = { + list = potential_votive_crown_holders_list + limit = { + NOT = { has_character_flag = seeded_relic } + } + create_artifact_fp2_votive_crowns_effect = { OWNER = this } + add_character_flag = { + flag = seeded_relic + days = 1 + } + } + } + } + ## Clothes + ### Robe of Kassapa + if = { + limit = { + has_dlc_feature = royal_court + exists = title:k_pagan.holder + } + title:k_pagan.holder = { + create_artifact_robe_kassapa_effect = { OWNER = this } + } + } + ### Mantle of the Prophet + if = { + limit = { exists = title:d_sunni.holder } + title:d_sunni.holder = { + create_artifact_mantle_of_the_prophet_effect = { OWNER = this } + } + } + ## Other Regalia + ### Qadib al-Mulk + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_qadib_al_mulk_effect = { OWNER = this } + } + } + ### Chalice of Dona Urraca + if = { + limit = { + # It's likely that Urraca paid for her eponymous chalice using money she earnt from the titles her father pre-bequeathed to her, so it was probably made some time *after* 1066 (since she only got the lands in 1065, shortly before her father died), buuuuuut it's really mean to not let her have it at game start, so we give it to her in 1066. + current_date >= 1066.1.1 + has_fp2_dlc_trigger = yes + exists = character:108501 + character:108501 = { is_alive = yes } + } + create_artifact_goblet_chalice_of_dona_urraca = { OWNER = character:108501 } + } + ## Thrones + ### Throne of Scone (featuring Stone) + if = { + limit = { + has_dlc_feature = royal_court + exists = title:k_scotland.holder + } + title:k_scotland.holder = { + create_artifact_throne_scone_effect = { OWNER = this } + } + } + ### Throne of Charlemagne + if = { + limit = { + has_dlc_feature = royal_court + exists = title:e_hre.holder + } + title:e_hre.holder = { + create_artifact_throne_charlemagne_effect = { OWNER = this } + } + } + ### Throne of Solomon (the Byzantine one) + if = { + limit = { + has_ep3_dlc_trigger = yes + exists = title:e_byzantium.holder + current_date >= 940.1.1 + } + title:e_byzantium.holder = { + create_artifact_byz_throne_effect = { OWNER = this } + } + } + ## Furniture + ### Pentapyrgion + if = { + limit = { + has_dlc_feature = royal_court + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_sculpture_cabinet_pentapyrgion_effect = { OWNER = this } + } + } + ### Bells of Santiago + if = { + # If we're before Almanzor's raid, then the bells go to c_santiago's holder. + limit = { + has_fp2_dlc_trigger = yes + current_date < 997.1.1 + } + title:c_santiago.holder = { + create_artifact_various_bells_santiago = { OWNER = this } + # The bells haven't been changed at all. + scope:newly_created_artifact = { + set_variable = { + name = artefact_santiago_bells + value = 0 + } + } + } + } + ### (Former) Bells of Santiago + #### These aren't actually furniture, but we keep 'em here so they're next to the regular bells, which *are*. + if = { + # If we're after Almanzor's raid, then the bells go to c_toledo's holder. + limit = { + has_fp2_dlc_trigger = yes + current_date >= 997.1.1 + current_date <= 1178.1.1 + } + title:c_toledo.holder = { + create_artifact_various_aquamanile_santiago = { OWNER = this } + # The bells have been morphed once. + scope:newly_created_artifact = { + set_variable = { + name = artefact_santiago_bells + value = 1 + } + } + } + } + if = { + # If we're after Almanzor's raid, then the bells go to c_toledo's holder. + limit = { + has_fp2_dlc_trigger = yes + current_date >= 1178.1.1 + } + title:c_cordoba.holder = { + create_artifact_various_aquamanile_santiago = { OWNER = this } + # The bells have been morphed once. + scope:newly_created_artifact = { + set_variable = { + name = artefact_santiago_bells + value = 1 + } + } + } + } + ## Weapons (including decoratives) + ### Curtana + #### Not the *actual* Curtana, but at least occasionally traced as Edward the Confessor's sword (and then ascribed an even more mythic origin from there). + if = { + limit = { + has_dlc_feature = royal_court + current_date >= 1042.8.6 + exists = title:k_england.holder + } + title:k_england.holder = { + create_artifact_curtana_effect = { OWNER = this } + } + } + ### Sword of Atilla + #### Associated with the Arpads, but "discovered"/passed out of their possession around or after 1063. They maintain a house claim on it. + if = { + limit = { + has_dlc_feature = royal_court + current_date >= 1064.1.1 + exists = title:d_bavaria.holder + } + title:d_bavaria.holder = { + create_artifact_wall_sword_attila_effect = { OWNER = this } + dynasty:708 = { + random_dynasty_member = { + house = { add_house_artifact_claim = scope:newly_created_artifact } + } + } + } + } + ### al-Sayf al-Khass + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + has_dlc_feature = royal_court + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_al_sayf_al_khass_effect = { OWNER = this } + } + } + ### Staff of Kakusandha + if = { + limit = { + has_dlc_feature = royal_court + exists = title:k_pagan.holder + } + title:k_pagan.holder = { + create_artifact_staff_kakusandha_effect = { OWNER = this } + } + } ### "Excalibur" every_county_in_region = { region = world_europe_west_britannia @@ -495,557 +495,282 @@ historical_artifacts.0023 = { } } } -# if = { #this isn't working for some reason, need to fix later -# limit = { -# has_dlc_feature = royal_court -# exists = title:d_nf_solomonid -# } -# title:d_nf_solomonid = { -# create_artifact_excalibur_effect = { OWNER = this } -# } -# } -# ### Spear of the Prophet -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:d_sunni.holder -# } -# title:d_sunni.holder = { -# create_artifact_spear_of_the_prophet_effect = { OWNER = this } -# } -# } -# ### Banke no Hoken ~785 -# if = { # Chrysanthemum Throne -# limit = { -# has_dlc_feature = royal_court -# current_date >= 867.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_sakanoue_sword_effect = { OWNER = this } -# } -# } -# ### Higekiri ~950 -# if = { # Seiwa -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_minamoto_seiwa.holder -# } -# title:c_nf_minamoto_seiwa.holder = { -# create_artifact_higekiri_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Kawachi -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_minamoto_kawachi.holder -# } -# title:c_nf_minamoto_kawachi.holder = { -# create_artifact_higekiri_sword_effect = { OWNER = this } -# } -# } -# ### Hizamaru ~950 -# if = { # Kawachi -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_minamoto_kawachi.holder -# } -# title:c_nf_minamoto_kawachi.holder = { -# create_artifact_hizamaru_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Yoshitsune -# limit = { -# current_date >= 1178.10.1 -# exists = title:d_laamp_yoshitsune.holder -# } -# title:d_laamp_yoshitsune.holder = { -# create_artifact_hizamaru_sword_effect = { OWNER = this } -# } -# } -# ### Dojigiri ~880 -# if = { # Uona -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_fujiwara_uona.holder -# } -# title:c_nf_fujiwara_uona.holder = { -# create_artifact_dojigiri_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Oshu -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_fujiwara_oshu.holder -# } -# title:c_nf_fujiwara_oshu.holder = { -# create_artifact_dojigiri_sword_effect = { OWNER = this } -# } -# } -# ### Mikazuki Munechika ~980 -# if = { # Kan'in -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_fujiwara_kanin.holder -# } -# title:c_nf_fujiwara_kanin.holder = { -# create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Tokudaiji -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_fujiwara_ashikaga.holder -# } -# title:c_nf_fujiwara_ashikaga.holder = { -# create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } -# } -# } -# ### Ōtenta ~1082 -# if = { # Kiso -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_minamoto_kiso.holder -# } -# title:c_nf_minamoto_kiso.holder = { -# create_artifact_odenta_sword_effect = { OWNER = this } -# } -# } -# ### Hamayumi ~1145 -# if = { # Chrysanthemum Throne -# limit = { -# has_dlc_feature = royal_court -# current_date >= 1178.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_hamayumi_bow_effect = { OWNER = this } -# } -# } -# ### Shichishitō <500 -# if = { # Chrysanthemum Throne -# limit = { -# current_date >= 867.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_seven_branched_sword_effect = { OWNER = this } -# } -# } -# ### Gyerim-ro dagger ~867 -# if = { # Silla -# limit = { -# current_date = 867.1.1 # Only 867 -# exists = title:k_silla.holder -# } -# title:k_silla.holder = { -# create_artifact_pedestal_gyerimro_dagger_effect = { OWNER = this } -# } -# } -# ### Nukemaru ~1120 -# if = { # Taira -# limit = { -# current_date >= 1178.1.1 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_nukemaru_sword_effect = { OWNER = this } -# } -# } -# ### Kogarasumaru ~945 -# if = { # Taira -# limit = { -# current_date >= 1066.9.15 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_kogarasumaru_sword_effect = { OWNER = this } -# } -# } -# ## Armor -# ### Karakawa ~800 -# if = { # Taira -# limit = { -# current_date >= 867.1.1 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_karakawa_armor_effect = { OWNER = this } -# } -# } -# ## Books, Scrolls, & Other Recorded Nerdery -# ### Konagamana -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:k_pagan.holder -# } -# title:k_pagan.holder = { -# create_artifact_konagamana_effect = { OWNER = this } -# } -# } -# ### Vinaya Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_vinaya_pitaka_effect = { OWNER = this } -# } -# ### Sutta Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_sutta_pitaka_effect = { OWNER = this } -# } -# ### Abhidhamma Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_abhidhamma_pitaka_effect = { OWNER = this } -# } -# ## Banners -# ### Banner of Kaviani -# if = { -# limit = { -# has_dlc_feature = royal_court -# # Only generated in the earlier bookmarks. -# current_date < 1000.1.1 -# exists = title:k_makran.holder -# } -# title:k_makran.holder = { -# create_artifact_wall_banner_kaviani_effect = { OWNER = this } -# } -# } -# ### Banner of Edessa -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_wall_banner_edessa_effect = { OWNER = this } -# } -# } -# ### Banner of Thankfulness -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_wall_banner_thankfulness_effect = { OWNER = this } -# } -# } -# ## Misc -# ### Head of St. Edmund -# if = { -# limit = { -# has_dlc_feature = royal_court -# # Date of earliest likely canonisation. -# current_date >= 924.1.1 -# exists = title:k_england.holder -# } -# title:k_england.holder = { -# create_artifact_edmund_head_effect = { OWNER = this } -# } -# } -# ### al-Dawat -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_dawat_effect = { OWNER = this } -# } -# } -# ### al-Hafir -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_hafir_effect = { OWNER = this } -# } -# } if = { #this isn't working for some reason, need to fix later -# limit = { -# has_dlc_feature = royal_court -# exists = title:d_nf_solomonid -# } -# title:d_nf_solomonid = { -# create_artifact_excalibur_effect = { OWNER = this } -# } -# } -# ### Spear of the Prophet -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:d_sunni.holder -# } -# title:d_sunni.holder = { -# create_artifact_spear_of_the_prophet_effect = { OWNER = this } -# } -# } -# ### Banke no Hoken ~785 -# if = { # Chrysanthemum Throne -# limit = { -# has_dlc_feature = royal_court -# current_date >= 867.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_sakanoue_sword_effect = { OWNER = this } -# } -# } -# ### Higekiri ~950 -# if = { # Seiwa -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_minamoto_seiwa.holder -# } -# title:c_nf_minamoto_seiwa.holder = { -# create_artifact_higekiri_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Kawachi -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_minamoto_kawachi.holder -# } -# title:c_nf_minamoto_kawachi.holder = { -# create_artifact_higekiri_sword_effect = { OWNER = this } -# } -# } -# ### Hizamaru ~950 -# if = { # Kawachi -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_minamoto_kawachi.holder -# } -# title:c_nf_minamoto_kawachi.holder = { -# create_artifact_hizamaru_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Yoshitsune -# limit = { -# current_date >= 1178.10.1 -# exists = title:d_laamp_yoshitsune.holder -# } -# title:d_laamp_yoshitsune.holder = { -# create_artifact_hizamaru_sword_effect = { OWNER = this } -# } -# } -# ### Dojigiri ~880 -# if = { # Uona -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_fujiwara_uona.holder -# } -# title:c_nf_fujiwara_uona.holder = { -# create_artifact_dojigiri_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Oshu -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_fujiwara_oshu.holder -# } -# title:c_nf_fujiwara_oshu.holder = { -# create_artifact_dojigiri_sword_effect = { OWNER = this } -# } -# } -# ### Mikazuki Munechika ~980 -# if = { # Kan'in -# limit = { -# current_date = 1066.9.15 -# exists = title:c_nf_fujiwara_kanin.holder -# } -# title:c_nf_fujiwara_kanin.holder = { -# create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } -# } -# } -# else_if = { # Tokudaiji -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_fujiwara_ashikaga.holder -# } -# title:c_nf_fujiwara_ashikaga.holder = { -# create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } -# } -# } -# ### Ōtenta ~1082 -# if = { # Kiso -# limit = { -# current_date >= 1178.10.1 -# exists = title:c_nf_minamoto_kiso.holder -# } -# title:c_nf_minamoto_kiso.holder = { -# create_artifact_odenta_sword_effect = { OWNER = this } -# } -# } -# ### Hamayumi ~1145 -# if = { # Chrysanthemum Throne -# limit = { -# has_dlc_feature = royal_court -# current_date >= 1178.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_hamayumi_bow_effect = { OWNER = this } -# } -# } -# ### Shichishitō <500 -# if = { # Chrysanthemum Throne -# limit = { -# current_date >= 867.1.1 -# exists = title:k_chrysanthemum_throne.holder -# } -# title:k_chrysanthemum_throne.holder = { -# create_artifact_pedestal_seven_branched_sword_effect = { OWNER = this } -# } -# } -# ### Gyerim-ro dagger ~867 -# if = { # Silla -# limit = { -# current_date = 867.1.1 # Only 867 -# exists = title:k_silla.holder -# } -# title:k_silla.holder = { -# create_artifact_pedestal_gyerimro_dagger_effect = { OWNER = this } -# } -# } -# ### Nukemaru ~1120 -# if = { # Taira -# limit = { -# current_date >= 1178.1.1 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_nukemaru_sword_effect = { OWNER = this } -# } -# } -# ### Kogarasumaru ~945 -# if = { # Taira -# limit = { -# current_date >= 1066.9.15 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_kogarasumaru_sword_effect = { OWNER = this } -# } -# } -# ## Armor -# ### Karakawa ~800 -# if = { # Taira -# limit = { -# current_date >= 867.1.1 -# exists = title:c_nf_taira_kanmu.holder -# } -# title:c_nf_taira_kanmu.holder = { -# create_artifact_karakawa_armor_effect = { OWNER = this } -# } -# } -# ## Books, Scrolls, & Other Recorded Nerdery -# ### Konagamana -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:k_pagan.holder -# } -# title:k_pagan.holder = { -# create_artifact_konagamana_effect = { OWNER = this } -# } -# } -# ### Vinaya Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_vinaya_pitaka_effect = { OWNER = this } -# } -# ### Sutta Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_sutta_pitaka_effect = { OWNER = this } -# } -# ### Abhidhamma Pitaka -# random_character_with_royal_court = { -# limit = { faith = faith:theravada } -# create_artifact_abhidhamma_pitaka_effect = { OWNER = this } -# } -# ## Banners -# ### Banner of Kaviani -# if = { -# limit = { -# has_dlc_feature = royal_court -# # Only generated in the earlier bookmarks. -# current_date < 1000.1.1 -# exists = title:k_makran.holder -# } -# title:k_makran.holder = { -# create_artifact_wall_banner_kaviani_effect = { OWNER = this } -# } -# } -# ### Banner of Edessa -# if = { -# limit = { -# has_dlc_feature = royal_court -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_wall_banner_edessa_effect = { OWNER = this } -# } -# } -# ### Banner of Thankfulness -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_wall_banner_thankfulness_effect = { OWNER = this } -# } -# } -# ## Misc -# ### Head of St. Edmund -# if = { -# limit = { -# has_dlc_feature = royal_court -# # Date of earliest likely canonisation. -# current_date >= 924.1.1 -# exists = title:k_england.holder -# } -# title:k_england.holder = { -# create_artifact_edmund_head_effect = { OWNER = this } -# } -# } -# ### al-Dawat -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_dawat_effect = { OWNER = this } -# } -# } -# ### al-Hafir -# if = { -# limit = { -# # Establishment of the Fatimid Caliphate. -# current_date >= 910.1.15 -# has_dlc_feature = royal_court -# exists = title:d_shiite.holder -# } -# title:d_shiite.holder = { -# create_artifact_al_hafir_effect = { OWNER = this } -# } -# } + if = { #this isn't working for some reason, need to fix later + limit = { + has_dlc_feature = royal_court + exists = title:d_nf_solomonid + } + title:d_nf_solomonid = { + create_artifact_excalibur_effect = { OWNER = this } + } + } + ### Spear of the Prophet + if = { + limit = { + has_dlc_feature = royal_court + exists = title:d_sunni.holder + } + title:d_sunni.holder = { + create_artifact_spear_of_the_prophet_effect = { OWNER = this } + } + } + ### Banke no Hoken ~785 + if = { # Chrysanthemum Throne + limit = { + has_dlc_feature = royal_court + current_date >= 867.1.1 + exists = title:k_chrysanthemum_throne.holder + } + title:k_chrysanthemum_throne.holder = { + create_artifact_pedestal_sakanoue_sword_effect = { OWNER = this } + } + } + ### Higekiri ~950 + if = { # Seiwa + limit = { + current_date = 1066.9.15 + exists = title:c_nf_minamoto_seiwa.holder + } + title:c_nf_minamoto_seiwa.holder = { + create_artifact_higekiri_sword_effect = { OWNER = this } + } + } + else_if = { # Kawachi + limit = { + current_date >= 1178.10.1 + exists = title:c_nf_minamoto_kawachi.holder + } + title:c_nf_minamoto_kawachi.holder = { + create_artifact_higekiri_sword_effect = { OWNER = this } + } + } + ### Hizamaru ~950 + if = { # Kawachi + limit = { + current_date = 1066.9.15 + exists = title:c_nf_minamoto_kawachi.holder + } + title:c_nf_minamoto_kawachi.holder = { + create_artifact_hizamaru_sword_effect = { OWNER = this } + } + } + else_if = { # Yoshitsune + limit = { + current_date >= 1178.10.1 + exists = title:d_laamp_yoshitsune.holder + } + title:d_laamp_yoshitsune.holder = { + create_artifact_hizamaru_sword_effect = { OWNER = this } + } + } + ### Dojigiri ~880 + if = { # Uona + limit = { + current_date = 1066.9.15 + exists = title:c_nf_fujiwara_uona.holder + } + title:c_nf_fujiwara_uona.holder = { + create_artifact_dojigiri_sword_effect = { OWNER = this } + } + } + else_if = { # Oshu + limit = { + current_date >= 1178.10.1 + exists = title:c_nf_fujiwara_oshu.holder + } + title:c_nf_fujiwara_oshu.holder = { + create_artifact_dojigiri_sword_effect = { OWNER = this } + } + } + ### Mikazuki Munechika ~980 + if = { # Kan'in + limit = { + current_date = 1066.9.15 + exists = title:c_nf_fujiwara_kanin.holder + } + title:c_nf_fujiwara_kanin.holder = { + create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } + } + } + else_if = { # Tokudaiji + limit = { + current_date >= 1178.10.1 + exists = title:c_nf_fujiwara_ashikaga.holder + } + title:c_nf_fujiwara_ashikaga.holder = { + create_artifact_mikazuki_munechika_sword_effect = { OWNER = this } + } + } + ### Ōtenta ~1082 + if = { # Kiso + limit = { + current_date >= 1178.10.1 + exists = title:c_nf_minamoto_kiso.holder + } + title:c_nf_minamoto_kiso.holder = { + create_artifact_odenta_sword_effect = { OWNER = this } + } + } + ### Hamayumi ~1145 + if = { # Chrysanthemum Throne + limit = { + has_dlc_feature = royal_court + current_date >= 1178.1.1 + exists = title:k_chrysanthemum_throne.holder + } + title:k_chrysanthemum_throne.holder = { + create_artifact_pedestal_hamayumi_bow_effect = { OWNER = this } + } + } + ### Shichishitō <500 + if = { # Chrysanthemum Throne + limit = { + current_date >= 867.1.1 + exists = title:k_chrysanthemum_throne.holder + } + title:k_chrysanthemum_throne.holder = { + create_artifact_pedestal_seven_branched_sword_effect = { OWNER = this } + } + } + ### Gyerim-ro dagger ~867 + if = { # Silla + limit = { + current_date = 867.1.1 # Only 867 + exists = title:k_silla.holder + } + title:k_silla.holder = { + create_artifact_pedestal_gyerimro_dagger_effect = { OWNER = this } + } + } + ### Nukemaru ~1120 + if = { # Taira + limit = { + current_date >= 1178.1.1 + exists = title:c_nf_taira_kanmu.holder + } + title:c_nf_taira_kanmu.holder = { + create_artifact_nukemaru_sword_effect = { OWNER = this } + } + } + ### Kogarasumaru ~945 + if = { # Taira + limit = { + current_date >= 1066.9.15 + exists = title:c_nf_taira_kanmu.holder + } + title:c_nf_taira_kanmu.holder = { + create_artifact_kogarasumaru_sword_effect = { OWNER = this } + } + } + ## Armor + ### Karakawa ~800 + if = { # Taira + limit = { + current_date >= 867.1.1 + exists = title:c_nf_taira_kanmu.holder + } + title:c_nf_taira_kanmu.holder = { + create_artifact_karakawa_armor_effect = { OWNER = this } + } + } + ## Books, Scrolls, & Other Recorded Nerdery + ### Konagamana + if = { + limit = { + has_dlc_feature = royal_court + exists = title:k_pagan.holder + } + title:k_pagan.holder = { + create_artifact_konagamana_effect = { OWNER = this } + } + } + ### Vinaya Pitaka + random_character_with_royal_court = { + limit = { faith = faith:theravada } + create_artifact_vinaya_pitaka_effect = { OWNER = this } + } + ### Sutta Pitaka + random_character_with_royal_court = { + limit = { faith = faith:theravada } + create_artifact_sutta_pitaka_effect = { OWNER = this } + } + ### Abhidhamma Pitaka + random_character_with_royal_court = { + limit = { faith = faith:theravada } + create_artifact_abhidhamma_pitaka_effect = { OWNER = this } + } + ## Banners + ### Banner of Kaviani + if = { + limit = { + has_dlc_feature = royal_court + # Only generated in the earlier bookmarks. + current_date < 1000.1.1 + exists = title:k_makran.holder + } + title:k_makran.holder = { + create_artifact_wall_banner_kaviani_effect = { OWNER = this } + } + } + ### Banner of Edessa + if = { + limit = { + has_dlc_feature = royal_court + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_wall_banner_edessa_effect = { OWNER = this } + } + } + ### Banner of Thankfulness + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + has_dlc_feature = royal_court + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_wall_banner_thankfulness_effect = { OWNER = this } + } + } + ## Misc + ### Head of St. Edmund + if = { + limit = { + has_dlc_feature = royal_court + # Date of earliest likely canonisation. + current_date >= 924.1.1 + exists = title:k_england.holder + } + title:k_england.holder = { + create_artifact_edmund_head_effect = { OWNER = this } + } + } + ### al-Dawat + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + has_dlc_feature = royal_court + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_al_dawat_effect = { OWNER = this } + } + } + ### al-Hafir + if = { + limit = { + # Establishment of the Fatimid Caliphate. + current_date >= 910.1.15 + has_dlc_feature = royal_court + exists = title:d_shiite.holder + } + title:d_shiite.holder = { + create_artifact_al_hafir_effect = { OWNER = this } + } + } ### Skull Cap of Charlemagne if = { limit = { @@ -1056,113 +781,113 @@ historical_artifacts.0023 = { create_artifact_skull_cap_charlemagne_effect = { OWNER = this } } } -# ### Sassanian Sword -# if = { -# limit = { -# # Only generated in the earlier bookmarks. -# current_date < 900.1.1 -# has_dlc_feature = legacy_of_persia -# exists = title:c_mazandaran -# } -# title:c_mazandaran.holder = { -# create_artifact_illustrious_sassanian_sword_effect = { OWNER = this } -# } -# } -# ### Incense Burner Sculpture -# if = { -# limit = { -# # Only generated in the earlier bookmarks. -# current_date < 900.1.1 -# has_dlc_feature = legacy_of_persia -# exists = title:k_khorasan -# } -# title:k_khorasan.holder = { -# create_artifact = { -# name = fp3_incense_burner_sculpture -# description = fp3_incense_burner_sculpture_desc -# visuals = fp3_incense_burner_sculpture -# type = sculpture -# wealth = 80 -# quality = 80 -# modifier = artifact_negate_health_penalty_add_2_modifier -# modifier = artifact_stress_gain_3_modifier -# modifier = artifact_attraction_opinion_2_modifier -# modifier = artifact_court_grandeur_baseline_add_3_modifier -# history = { type = created_before_history } -# } -# } -# } -# ### Oxus Bracelet -# if = { -# limit = { -# # Only generated in the earlier bookmarks. -# current_date < 900.1.1 -# has_dlc_feature = legacy_of_persia -# exists = title:k_transoxiana -# } -# title:k_transoxiana.holder = { -# create_artifact_oxus_bracelet_effect = { -# OWNER = this -# } -# } -# } -# ### Persian Drinking Vessel -# if = { -# limit = { -# # Only generated in the earlier bookmarks. -# current_date < 900.1.1 -# has_dlc_feature = legacy_of_persia -# exists = title:k_makran -# } -# title:k_makran.holder = { -# create_artifact = { -# name = fp3_ancient_drinking_vessel -# description = fp3_ancient_drinking_vessel_desc -# visuals = persian_drinking_vessel -# type = goblet -# wealth = 80 -# quality = 80 -# modifier = artifact_negate_health_penalty_add_2_modifier -# modifier = artifact_stress_gain_3_modifier -# modifier = artifact_monthly_prestige_5_modifier -# modifier = artifact_court_grandeur_baseline_add_3_modifier -# } -# } -# } -# ### Statue of Constantine the Great -# ### Statue of Roman Woman -# ### Four Tetrarchs Statue -# ### Hydraulic Organ -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# exists = title:e_byzantium.holder -# } -# title:e_byzantium.holder = { -# create_artifact_statue_constantine_effect = { OWNER = this } -# create_artifact_statue_roman_woman_effect = { OWNER = this } -# create_artifact_statue_four_tetrarchs_effect = { OWNER = this } -# create_artifact_hydraulic_organ_effect = { OWNER = this } -# } -# } -# ### Tree automa -# if = { -# limit = { -# has_ep3_dlc_trigger = yes -# exists = title:e_byzantium.holder -# current_date >= 940.1.1 -# } -# title:e_byzantium.holder = { -# create_artifact_tree_automa_effect = { OWNER = this } -# } -# } + ### Sassanian Sword + if = { + limit = { + # Only generated in the earlier bookmarks. + current_date < 900.1.1 + has_dlc_feature = legacy_of_persia + exists = title:c_mazandaran + } + title:c_mazandaran.holder = { + create_artifact_illustrious_sassanian_sword_effect = { OWNER = this } + } + } + ### Incense Burner Sculpture + if = { + limit = { + # Only generated in the earlier bookmarks. + current_date < 900.1.1 + has_dlc_feature = legacy_of_persia + exists = title:k_khorasan + } + title:k_khorasan.holder = { + create_artifact = { + name = fp3_incense_burner_sculpture + description = fp3_incense_burner_sculpture_desc + visuals = fp3_incense_burner_sculpture + type = sculpture + wealth = 80 + quality = 80 + modifier = artifact_negate_health_penalty_add_2_modifier + modifier = artifact_stress_gain_3_modifier + modifier = artifact_attraction_opinion_2_modifier + modifier = artifact_court_grandeur_baseline_add_3_modifier + history = { type = created_before_history } + } + } + } + ### Oxus Bracelet + if = { + limit = { + # Only generated in the earlier bookmarks. + current_date < 900.1.1 + has_dlc_feature = legacy_of_persia + exists = title:k_transoxiana + } + title:k_transoxiana.holder = { + create_artifact_oxus_bracelet_effect = { + OWNER = this + } + } + } + ### Persian Drinking Vessel + if = { + limit = { + # Only generated in the earlier bookmarks. + current_date < 900.1.1 + has_dlc_feature = legacy_of_persia + exists = title:k_makran + } + title:k_makran.holder = { + create_artifact = { + name = fp3_ancient_drinking_vessel + description = fp3_ancient_drinking_vessel_desc + visuals = persian_drinking_vessel + type = goblet + wealth = 80 + quality = 80 + modifier = artifact_negate_health_penalty_add_2_modifier + modifier = artifact_stress_gain_3_modifier + modifier = artifact_monthly_prestige_5_modifier + modifier = artifact_court_grandeur_baseline_add_3_modifier + } + } + } + ### Statue of Constantine the Great + ### Statue of Roman Woman + ### Four Tetrarchs Statue + ### Hydraulic Organ + if = { + limit = { + has_ep3_dlc_trigger = yes + exists = title:e_byzantium.holder + } + title:e_byzantium.holder = { + create_artifact_statue_constantine_effect = { OWNER = this } + create_artifact_statue_roman_woman_effect = { OWNER = this } + create_artifact_statue_four_tetrarchs_effect = { OWNER = this } + create_artifact_hydraulic_organ_effect = { OWNER = this } + } + } + ### Tree automa + if = { + limit = { + has_ep3_dlc_trigger = yes + exists = title:e_byzantium.holder + current_date >= 940.1.1 + } + title:e_byzantium.holder = { + create_artifact_tree_automa_effect = { OWNER = this } + } + } ### Spread some Orthodox icons every_county_in_region = { region = world_europe_east holder = { if = { limit = { - faith.religion = religion:eastern_orthodox_religion + faith = faith:orthodox } add_to_list = potential_icons_holders_list } @@ -1173,7 +898,7 @@ historical_artifacts.0023 = { holder = { if = { limit = { - faith.religion = religion:eastern_orthodox_religion + faith = faith:orthodox } add_to_list = potential_icons_holders_list } @@ -1184,7 +909,7 @@ historical_artifacts.0023 = { holder = { if = { limit = { - faith.religion = religion:eastern_orthodox_religion + faith = faith:orthodox } add_to_list = potential_icons_holders_list } @@ -1195,7 +920,7 @@ historical_artifacts.0023 = { holder = { if = { limit = { - faith.religion = religion:eastern_orthodox_religion + faith = faith:orthodox } add_to_list = potential_icons_holders_list } @@ -1220,84 +945,84 @@ historical_artifacts.0023 = { } } } -# #Imperial Seals -# every_character_with_royal_court = { -# limit = { -# has_tgp_dlc_trigger = yes -# is_independent_ruler = yes -# government_allows = merit -# } -# create_artifact_dynastic_imperial_seal_effect = { -# OWNER = this -# SMITH = this -# } -# } -# title:k_chrysanthemum_throne.holder ?= { -# create_artifact_dynastic_imperial_seal_effect = { -# OWNER = this -# SMITH = this -# } -# } -# #Heirloom Seal -# #Only in 867 -# if = { -# limit = { -# has_tgp_dlc_trigger = yes -# exists = title:h_china.holder -# current_date <= 940.1.1 -# } -# title:h_china.holder = { -# create_artifact_heirloom_seal_effect = { -# OWNER = this -# } -# } -# } -# #Armillary Sphere -# if = { -# limit = { -# has_tgp_dlc_trigger = yes -# } -# title:h_china.holder = { -# create_artifact_chinese_armillary_sphere_effect = { -# OWNER = this -# } -# } -# } -# #Eight-Fold Chest -# if = { -# limit = { -# has_tgp_dlc_trigger = yes -# } -# title:h_china.holder = { -# create_artifact_eight_fold_chest_effect = { -# OWNER = this -# } -# } -# } -# #Complete Military Classics -# if = { -# limit = { -# has_tgp_dlc_trigger = yes -# current_date > 1150.1.1 #Needs to be long past creation date for this to make sense -# } -# title:h_china.holder = { -# create_artifact_military_classics_effect = { -# OWNER = this -# } -# } -# } -# #Green Stone Amitabha Buddha Statue -# if = { -# limit = { -# has_tgp_dlc_trigger = yes -# current_date >= 1066.5.1 -# } -# title:k_viet.holder = { -# create_artifact_statue_viet_green_amitabha_buddha_effect = { -# OWNER = this -# } -# } -# } + #Imperial Seals + every_character_with_royal_court = { + limit = { + has_tgp_dlc_trigger = yes + is_independent_ruler = yes + government_allows = merit + } + create_artifact_dynastic_imperial_seal_effect = { + OWNER = this + SMITH = this + } + } + title:k_chrysanthemum_throne.holder ?= { + create_artifact_dynastic_imperial_seal_effect = { + OWNER = this + SMITH = this + } + } + #Heirloom Seal + #Only in 867 + if = { + limit = { + has_tgp_dlc_trigger = yes + exists = title:h_china.holder + current_date <= 940.1.1 + } + title:h_china.holder = { + create_artifact_heirloom_seal_effect = { + OWNER = this + } + } + } + #Armillary Sphere + if = { + limit = { + has_tgp_dlc_trigger = yes + } + title:h_china.holder = { + create_artifact_chinese_armillary_sphere_effect = { + OWNER = this + } + } + } + #Eight-Fold Chest + if = { + limit = { + has_tgp_dlc_trigger = yes + } + title:h_china.holder = { + create_artifact_eight_fold_chest_effect = { + OWNER = this + } + } + } + #Complete Military Classics + if = { + limit = { + has_tgp_dlc_trigger = yes + current_date > 1150.1.1 #Needs to be long past creation date for this to make sense + } + title:h_china.holder = { + create_artifact_military_classics_effect = { + OWNER = this + } + } + } + #Green Stone Amitabha Buddha Statue + if = { + limit = { + has_tgp_dlc_trigger = yes + current_date >= 1066.5.1 + } + title:k_viet.holder = { + create_artifact_statue_viet_green_amitabha_buddha_effect = { + OWNER = this + } + } + } } } diff --git a/events/decisions_events/major_decisions_events.txt b/events/decisions_events/major_decisions_events.txt deleted file mode 100644 index f739f47e..00000000 --- a/events/decisions_events/major_decisions_events.txt +++ /dev/null @@ -1,1733 +0,0 @@ -namespace = major_decisions - -#Decisions: -# decision_convert_to_feudalism, by Mathilda Bjarnehed -# 0001 - I converted to feudalism - -# decision_strenghten_bloodline -# 0500 - I have strengthened my bloodline - -# decision_dynasty_of_many_crowns -# 0501 - I have completed dynasty of many crowns - -# decision_declare_bloodline_holy, by Flavio Verna -# 0100 - I have completed Consecrate Bloodline -# 0101 - Paragon/Savior traits inheritance - -#convert_to_feudalism_decision -major_decisions.0001 = { #by Mathilda Bjarnehed - type = character_event - title = major_decisions.0001.t - desc = major_decisions.0001.desc - theme = realm - override_background = { reference = courtyard } - left_portrait = { - character = root - animation = storyteller - } - - immediate = { - show_as_tooltip = { - convert_whole_realm_to_feudalism_effect = yes - } - if = { - limit = { - has_character_flag = ready_to_receive_seed - } - legend_seed_great_deed_dynasty_effect = yes - remove_character_flag = ready_to_receive_seed - } - hidden_effect = { - every_liege_or_above = { - limit = { - NOT = { top_liege = this } - } - send_interface_message = { - type = event_stewardship_neutral_with_text - title = msg_vassal_feudalised - desc = msg_vassal_feudalised_desc - right_icon = root - } - } - } - } - - option = { - name = major_decisions.0001.a - } -} - -major_decisions.0002 = { #by Linnéa Thimrén - type = letter_event - opening = major_decisions.0002.opening - desc = major_decisions.0001.desc - sender = { - character = scope:actor - animation = personality_rational - } - - immediate = { - show_as_tooltip = { - if = { - limit = { government_has_flag = government_is_japan_feudal } - change_government = japan_feudal_government - } - else_if = { - limit = { government_has_flag = government_is_clan } - change_government = clan_government - } - else = { change_government = feudal_government } - } - } - - option = { - name = major_decisions.0001.a - } -} - -##################################### - -#Consecrating Family Decision, by Flavio Verna & Bianca Savazzi - -major_decisions.0100 = { - type = character_event - title = major_decisions.0100.t - desc = { - first_valid = { - # Divine Blood if Temporal Head. - triggered_desc = { - trigger = { - OR = { - root.faith.religious_head = root - root.faith = { has_doctrine = doctrine_no_head } - } - } - desc = major_decisions.0100.desc.temporal - } - # Regular. - desc = major_decisions.0100.desc.spiritual - } - } - theme = faith - left_portrait = { - character = root - animation = personality_zealous - } - right_portrait = { - character = scope:scoped_pope - animation = admiration - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - hidden_effect = { - save_scope_as = scoped_ruler - if = { - limit = { - exists = root.faith.religious_head - root != root.faith.religious_head - } - root.faith.religious_head = { save_scope_as = scoped_pope } - } - dynasty = { - set_variable = { - name = variable_made_bloodline_holy - value = yes - } - } - } - } - option = { - #Pick what text to display - name = { #Temporal. - trigger = { - root.faith.religious_head = root - } - text = major_decisions.0100.a - } - name = { #Spiritual. - trigger = { - root.faith.religious_head != root - } - text = major_decisions.0100.b - } - - #Next, what nickname is given - if = { - limit = { - root.faith.religious_head = root - } - set_nickname_effect = { NICKNAME = nick_the_divine } - } - if = { #Spiritual. - limit = { - root.faith.religious_head != root - has_ach_dlc_trigger = no - } - set_nickname_effect = { NICKNAME = nick_the_anointed } - } - #All live descendants get the descendant trait - declare_bloodline_holy_decision_effect = yes - #Notifications - every_player = { - limit = { - faith = root.faith - NOR = { - this = root - this.dynasty = root.dynasty - } - } - trigger_event = major_decisions.0102 #Notify players of same faith. - } - every_player = { - limit = { - this.dynasty = root.dynasty - this != root - } - trigger_event = major_decisions.0103 #Notify dynasty members. - } - } -} - -#On_birth:Child of Paragon/Savior gains proper trait at birth. -major_decisions.0101 = { - type = character_event - hidden = yes - - trigger = { - OR = { - AND = { - mother ?= { - OR = { - has_trait = savior - has_trait = paragon - has_trait = divine_blood - has_trait = consecrated_blood - } - } - } - AND = { - father ?= { - OR = { - has_trait = savior - has_trait = paragon - has_trait = divine_blood - has_trait = consecrated_blood - } - } - } - AND = { - exists = scope:progenitor_holy_blood - OR = { - is_grandchild_of = scope:progenitor_holy_blood - is_great_grandchild_of = scope:progenitor_holy_blood - } - } - } - NOR = { - has_trait = savior - has_trait = paragon - has_trait = divine_blood - has_trait = consecrated_blood - } - } - - immediate = { - if = { - limit = { - OR = { - AND = { - mother ?= { - OR = { - has_trait = savior - has_trait = divine_blood - } - } - } - AND = { - father ?= { - OR = { - has_trait = savior - has_trait = divine_blood - } - } - } - } - } - add_trait = divine_blood - } - else = { - add_trait = consecrated_blood - } - every_child = { - trigger_event = major_decisions.0101 - } - } -} - -major_decisions.0102 = { - type = character_event - title = major_decisions.0100.t - desc = { - first_valid = { - # Divine Blood if Temporal Head. - triggered_desc = { - trigger = { - scope:scoped_ruler.faith.religious_head = scope:scoped_ruler - } - desc = major_decisions.0102.desc.temporal - } - # Regular. - desc = major_decisions.0102.desc.spiritual - } - } - theme = faith - left_portrait = { - character = scope:scoped_ruler - animation = personality_zealous - } - right_portrait = { - character = scope:scoped_pope - animation = admiration - } - - immediate = { play_music_cue = "mx_cue_sacredrite" } - - option = { - name = { #Temporal. - trigger = { - scope:scoped_ruler.faith.religious_head = scope:scoped_ruler - } - text = major_decisions.0102.a - } - name = { #Spiritual. - trigger = { - scope:scoped_ruler.faith.religious_head != scope:scoped_ruler - } - text = major_decisions.0102.b - } - } -} - -major_decisions.0103 = { - type = character_event - title = major_decisions.0100.t - desc = { - first_valid = { - # Divine Blood if Temporal Head. - triggered_desc = { - trigger = { - scope:scoped_ruler.faith.religious_head = scope:scoped_ruler - } - desc = major_decisions.0103.desc.temporal - } - # Regular. - desc = major_decisions.0103.desc.spiritual - } - } - theme = faith - left_portrait = { - character = scope:scoped_ruler - animation = personality_zealous - } - right_portrait = { - character = scope:scoped_pope - animation = admiration - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - show_as_tooltip = { - if = { - limit = { - faith = scope:scoped_ruler.faith - } - if = { - limit = { - scope:scoped_ruler = { - has_trait = savior - } - } - add_trait = divine_blood - } - if = { - limit = { - scope:scoped_ruler = { - has_trait = paragon - } - } - add_trait = consecrated_blood - } - } - } - } - option = { - name = { #Same Faith. - trigger = { - faith = scope:scoped_ruler.faith - } - text = major_decisions.0103.a - } - name = { #Other Faith. - trigger = { - faith != scope:scoped_ruler.faith - } - text = major_decisions.0103.b - } - } -} - -################################################## -# Convert to Tribalims -################################################## - -major_decisions.0200 = { - type = character_event - title = major_decisions.0200.t - desc = major_decisions.0200.desc - theme = realm - left_portrait = { - character = root - animation = personality_honorable - } - - option = { - name = major_decisions.0200.a - ai_chance = { #The AI should always do this. - base = 100 - } - } -} - -#I have strengthened our bloodline -major_decisions.0500 = { #by Mathilda Bjarnehed - type = character_event - title = major_decisions.0500.t - desc = major_decisions.0500.desc - theme = physical_health - left_portrait = { - character = root - animation = personality_bold - } - override_background = { reference = throne_room } - - immediate = { - play_music_cue = "mx_cue_positive_effect" - strengthen_bloodline_decision_effects = yes - legend_seed_great_deed_dynasty_effect = yes - } - - option = { - name = major_decisions.0500.a - - give_nickname = nick_the_blood_motherfather - } -} - - -#Dynasty of Many Crowns -major_decisions.0501 = { #by Mathilda Bjarnehed - type = character_event - title = dynasty_of_many_crowns - desc = major_decisions.0501.desc - theme = dynasty - left_portrait = { - character = root - animation = personality_bold - } - - immediate = { - play_music_cue = "mx_cue_positive_effect" - dynasty_of_many_crowns_effects = yes - - #For desc - hidden_effect = { - primary_title = { save_scope_as = realm_1 } - - dynasty = { - every_dynasty_member = { - limit = { - this != root - top_liege = this - highest_held_title_tier >= tier_kingdom - } - primary_title = { add_to_list = dynasty_realms } - } - } - - random_in_list = { - list = dynasty_realms - limit = { tier = tier_empire } - alternative_limit = { always = yes } - save_scope_as = realm_2 - } - - random_in_list = { - list = dynasty_realms - limit = { - tier = tier_empire - this != scope:realm_2 - } - alternative_limit = { - this != scope:realm_2 - } - save_scope_as = realm_3 - } - - random_in_list = { - list = dynasty_realms - limit = { - tier = tier_empire - NOR = { - this = scope:realm_2 - this = scope:realm_3 - } - } - alternative_limit = { - NOR = { - this = scope:realm_2 - this = scope:realm_3 - } - } - save_scope_as = realm_4 - } - } - - legend_seed_great_deed_dynasty_effect = yes - - } - - option = { - name = major_decisions.0501.a - } -} - - -################ -# Accept cannibalism -# by Linnéa Thimrén -################ -major_decisions.1001 = { - type = character_event - title = major_decisions.1001.t - desc = { - first_valid = { - triggered_desc = { - trigger = { has_government = landless_adventurer_government } - desc = major_decisions.1001.desc_landless - } - desc = major_decisions.1001.desc - } - desc = major_decisions.1001.desc_outro - } - theme = skull - left_portrait = { - character = scope:cannibal - animation = personality_greedy - } - right_portrait = { - trigger = { exists = scope:court_chaplain } - character = scope:court_chaplain - animation = admiration - } - override_background = { - trigger = { is_landless_adventurer = no } - reference = feast - } - override_background = { - trigger = { has_government = landless_adventurer_government } - reference = bp1_bonfire - } - immediate = { - play_music_cue = "mx_cue_meadandwine" - accept_cannibalism_decision_effect = yes - } - option = { - name = major_decisions.1001.a - } -} - - -#Players informed -major_decisions.1002 = { - type = character_event - title = { - first_valid = { - triggered_desc = { - trigger = { is_cannibal_trigger = yes } - desc = major_decisions.1001.t - } - desc = major_decisions.1002.t - } - } - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:cannibal = { has_government = landless_adventurer_government } - is_cannibal_trigger = yes - } - desc = major_decisions.1002.desc_cannibal_landless - } - triggered_desc = { - trigger = { - scope:cannibal = { has_government = landless_adventurer_government } - } - desc = major_decisions.1002.desc_landless - } - triggered_desc = { - trigger = { - is_cannibal_trigger = yes - } - desc = major_decisions.1002.desc_cannibal - } - desc = major_decisions.1002.desc - } - } - theme = skull - left_portrait = { - character = scope:cannibal - animation = personality_greedy - } - override_background = { - trigger = { - scope:cannibal = { is_landed_or_landless_administrative = yes } - } - reference = feast - } - override_background = { - trigger = { - scope:cannibal = { has_government = landless_adventurer_government } - } - reference = army_camp - } - option = { - name = { - text = { - first_valid = { - #Noyce! - triggered_desc = { - trigger = { is_cannibal_trigger = yes } - desc = major_decisions.1002.a - } - #Oh dear... - desc = major_decisions.1002.b - } - } - } - } -} - - -################# -#Found a custom Kingdom/Empire -# #by Petter Vilberg -################# - -#I have founded a Kingdom -major_decisions.1101 = { - type = character_event - title = major_decisions.1101.t - desc = { - triggered_desc = { - trigger = { exists = scope:three_duchies } - desc = { - desc = major_decisions.1101.opening_duchies - desc = double_line_break - } - } - desc = major_decisions.1101.desc - } - theme = realm - left_portrait = { - character = root - animation = personality_greedy - } - - immediate = { - play_music_cue = "mx_cue_positive_effect" - # If Kingdom is formed from three Duchies, specifically shout that out - if = { - limit = { - any_held_title = { - title_tier = duchy - count >= 3 - } - } - scope:old_title = { # Carried over from the decision - save_scope_as = duchy_1 - } - random_held_title = { - title_tier = duchy - limit = { - this != scope:duchy_1 - } - save_scope_as = duchy_2 - } - random_held_title = { - title_tier = duchy - limit = { - NOR = { - this = scope:duchy_1 - this = scope:duchy_2 - } - } - save_scope_as = duchy_3 - } - if = { # Safeguarding against loc-breaking here - limit = { - exists = scope:duchy_1 - exists = scope:duchy_2 - exists = scope:duchy_3 - } - save_scope_value_as = { - name = three_duchies - value = yes - } - } - } - show_as_tooltip = { - set_primary_title_to = scope:new_title - } - } - - option = { - name = major_decisions.1101.a - custom_tooltip = major_decisions.1101.i_have_become_royal - } -} - -#My liege has founded a Kingdom -major_decisions.1102 = { - type = character_event - title = major_decisions.1101.t - desc = major_decisions.1102.desc - theme = realm - left_portrait = { - character = root - animation = personality_greedy - } - - immediate = { play_music_cue = "mx_cue_succession" } - - option = { - name = { - text = major_decisions.1102.a - trigger = { - reverse_opinion = { - target = scope:founder - value >= 0 - } - } - } - name = { - text = major_decisions.1102.a.dislike - trigger = { - reverse_opinion = { - target = scope:founder - value < 0 - } - } - } - custom_tooltip = major_decisions.1102.has_become_royal - } -} - - -#I have founded an Empire -major_decisions.1103 = { - type = character_event - title = major_decisions.1101.t - desc = { - triggered_desc = { - trigger = { exists = scope:three_kingdoms } - desc = { - desc = major_decisions.1103.opening_kingdoms - desc = double_line_break - } - } - desc = major_decisions.1103.opening - first_valid = { - triggered_desc = { - trigger = { - exists = faith.religious_head - faith.religious_head = root - } - desc = major_decisions.1103.i_am_religious_head - } - triggered_desc = { - trigger = { - exists = faith.religious_head - } - desc = major_decisions.1103.blessed_by_religious_head - } - desc = major_decisions.1103.i_am_religious_head - } - } - theme = realm - left_portrait = { - character = root - animation = personality_greedy - } - - immediate = { - play_music_cue = "mx_cue_positive_effect" - # If Empire is formed from three Kingdoms, specifically shout that out - if = { - limit = { - any_held_title = { - title_tier = kingdom - count >= 3 - } - } - scope:old_title = { # Carried over from the decision - save_scope_as = kingdom_1 - } - random_held_title = { - title_tier = kingdom - limit = { - this != scope:kingdom_1 - } - save_scope_as = kingdom_2 - } - random_held_title = { - title_tier = kingdom - limit = { - NOR = { - this = scope:kingdom_1 - this = scope:kingdom_2 - } - } - save_scope_as = kingdom_3 - } - if = { # Safeguarding against loc-breaking here - limit = { - exists = scope:kingdom_1 - exists = scope:kingdom_2 - exists = scope:kingdom_3 - } - save_scope_value_as = { - name = three_kingdoms - value = yes - } - } - } - if = { - limit = { - exists = faith.religious_head - } - faith.religious_head = { - save_scope_as = religious_figure - } - } - show_as_tooltip = { - set_primary_title_to = scope:new_title - } - } - - option = { - name = major_decisions.1103.a - custom_tooltip = major_decisions.1101.i_have_become_royal - } -} - -#My liege has founded an Empire -major_decisions.1104 = { - type = character_event - title = major_decisions.1101.t - desc = { - desc = major_decisions.1104.opening - first_valid = { - triggered_desc = { - trigger = { - exists = faith.religious_head - faith.religious_head = root - } - desc = major_decisions.1104.i_am_religious_head - } - triggered_desc = { - trigger = { - exists = faith.religious_head - faith.religious_head = scope:founder - } - desc = major_decisions.1104.religious_head_empire - } - triggered_desc = { - trigger = { - exists = faith.religious_head - } - desc = major_decisions.1104.blessed_by_religious_head - } - desc = major_decisions.1104.religious_head_empire - } - desc = major_decisions.1104.end - } - theme = realm - left_portrait = { - character = root - animation = personality_greedy - } - - immediate = { - play_music_cue = "mx_cue_succession" - if = { - limit = { - exists = scope:founder.faith.religious_head - } - scope:founder.faith.religious_head = { - save_scope_as = religious_figure - } - } - show_as_tooltip = { - set_primary_title_to = scope:new_title - } - } - - option = { - name = major_decisions.1104.a - custom_tooltip = major_decisions.1102.has_become_royal - } -} - - -#I have lost de jure territory to a new Kingdom -major_decisions.1105 = { - type = character_event - title = major_decisions.1105.t - desc = major_decisions.1105.desc - theme = realm - left_portrait = { - character = scope:founder - animation = personality_greedy - } - - option = { - name = major_decisions.1105.a - show_as_tooltip = { - every_in_list = { - list = notification_titles - set_de_jure_liege_title = scope:new_title - } - } - } -} - - -################ -# Found University -# by Linnéa Thimrén -################ -major_decisions.2001 = { - type = character_event - title = major_decisions.2001.t - desc = { - desc = major_decisions.2001.desc_first - first_valid = { - triggered_desc = { - trigger = { - any_sub_realm_barony = { - count >= 2 - title_province = { - OR = { - has_building = generic_university - has_building = al_azhar_university - has_building = sankore_university - has_building = nalanda_university - } - } - } - } - desc = major_decisions.2001.desc_more - } - desc = major_decisions.2001.desc - } - } - theme = learning - left_portrait = { - character = scope:founder - animation = personality_rational - } - - immediate = { - found_university_decision_event_effect = yes - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_fes } - title:b_fes = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_fes.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_fes = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_fes - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_cairo } - title:b_cairo = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_cairo.title_province = { - add_special_building_slot = al_azhar_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_cairo = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_cairo - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_bologna } - title:b_bologna = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_bologna.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_bologna = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_bologna - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_salamanca } - title:b_salamanca = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_salamanca.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_salamanca = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_salamanca - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_madrid } - title:b_madrid = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_madrid.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_madrid = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_madrid - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_oxford } - title:b_oxford = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_oxford.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_oxford = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_oxford - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_cambridge } - title:b_cambridge = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_cambridge.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_cambridge = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_cambridge - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_padua } - title:b_padua = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_padua.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_padua = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_padua - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_siena } - title:b_siena = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_siena.title_province = { - add_special_building_slot = siena_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_siena = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_siena - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_coimbra } - title:b_coimbra = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_coimbra.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_coimbra = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_coimbra - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_napoli } - title:b_napoli = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_napoli.title_province = { - add_special_building_slot = generic_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_napoli = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_napoli - } - - option = { - trigger = { - any_sub_realm_barony = { this = title:b_tirakka } - title:b_tirakka = { - county = { development_level >= 30 } - title_province = { has_special_building_slot = no } - } - } - title:b_tirakka.title_province = { - add_special_building_slot = sankore_university - set_variable = { #To unlock the building - name = university - value = yes - } - title:b_tirakka = { - if = { - limit = { holder != root } - holder = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 30 - } - } - } - } - } - name = major_decisions.2001.b_tirakka - } - - option = { # fallback in case development somehow tumbles - trigger = { always = no } - fallback = yes - name = major_decisions.2001.fallback - custom_tooltip = major_decisions.2001.fallback.tt - } -} - -#Other players informed -major_decisions.2002 = { - type = character_event - title = major_decisions.2001.t - desc = major_decisions.2002.desc - left_portrait = { - character = scope:founder - animation = personality_rational - } - theme = learning - - option = { - name = major_decisions.2002.a - } -} - -#A skilled courtier turns up at your court -major_decisions.2011 = { - type = character_event - title = major_decisions.2011.t - desc = major_decisions.2011.desc - theme = learning - left_portrait = { - character = scope:new_courtier - animation = thinking - } - override_background = { reference = throne_room } - trigger = { - any_sub_realm_barony = { - title_province = { - OR = { - has_building = generic_university - has_building = al_azhar_university - has_building = sankore_university - has_building = nalanda_university - } - } - } - } - - immediate = { - create_character = { - employer = root - template = scholar_character - save_scope_as = new_courtier - } - } - - option = { #Welcome! - name = major_decisions.2011.a - scope:new_courtier = { - add_opinion = { - target = root - modifier = friendliness_opinion - opinion = 15 - } - } - } - - option = { #Send away - name = major_decisions.2011.b - scope:new_courtier = { - move_to_pool = yes - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -10 - } - } - } -} - -#You've built a greenhouse! -major_decisions.3001 = { - type = character_event - title = major_decisions.3001.t - desc = major_decisions.3001.desc - theme = stewardship - left_portrait = { - character = scope:builder - animation = personality_irrational - } - override_background = { reference = garden } - - immediate = { - lunatic_building_decision_effect = yes - play_music_cue = "mx_cue_low_key_positive" - } - - option = { - name = major_decisions.3001.a - } -} - - -#Other players informed -major_decisions.3002 = { - type = character_event - title = major_decisions.3001.t - desc = major_decisions.3002.desc - theme = stewardship - left_portrait = { - character = scope:builder - animation = personality_irrational - } - override_background = { reference = garden } - - option = { - name = major_decisions.3002.a - } -} - -################################################## -# Special Succession Acquisition -# by Ewan Cowhig Croft -################################################## - -major_decisions.3100 = { - type = character_event - title = major_decisions.3100.t - desc = major_decisions.3100.desc - theme = realm - left_portrait = { - character = root - animation = personality_rational - } - - #Change based on my culture. Or, occasionally, dynasty. - option = { - name = major_decisions.3100.a - trigger = { - OR = { - special_succession_witengamot_trigger = yes - special_succession_thing_trigger = yes - special_succession_tanistry_trigger = yes - special_succession_jirga_trigger = yes - } - } - if = { - limit = { special_succession_witengamot_trigger = yes } - special_succession_witengamot_effect = yes - } - else_if = { - limit = { special_succession_thing_trigger = yes } - special_succession_thing_effect = yes - } - else_if = { - limit = { special_succession_tanistry_trigger = yes } - special_succession_tanistry_effect = yes - } - else_if = { - limit = { special_succession_jirga_trigger = yes } - special_succession_jirga_effect = yes - } - ai_chance = { #The AI should always do this. - base = 100 - } - } - - #Change based on my faith; not currently used, but can be set up in future if needed. - #option = { - #name = major_decisions.3100.b - #ai_chance = { #Stay away, robots. - #base = 0 - #} - #} - - #Actually, no thanks. - option = { - name = major_decisions.3100.d - ai_chance = { #Seriously, stay away. - base = 0 - } - hidden_effect = { # Reimburse cost. - add_prestige_no_experience = 300 - } - } -} - -################### -# Merge Aquitaine # -################### -major_decisions.3200 = { - type = character_event - title = major_decisions.3200.t - desc = major_decisions.3200.desc - theme = realm - left_portrait = { - trigger = { - this != scope:rightful_liege - } - character = root - triggered_animation = { - trigger = { - NOR = { - opinion = { - target = scope:rightful_liege - value >= 25 - } - root.culture = scope:rightful_liege.culture - culture = { any_parent_culture_or_above = { this = scope:rightful_liege.culture } } - } - } - animation = disapproval - } - animation = obsequious_bow - } - - right_portrait = { - character = scope:rightful_liege - animation = personality_honorable - } - - immediate = { - show_as_tooltip = { - destroy_title = scope:destroyed_title - scope:rightful_title = { - if = { - limit = { - this = title:k_aquitaine - } - every_in_de_jure_hierarchy = { - custom = merge_aquitaine_decision_tooltip_alt - custom_tooltip = merge_aquitaine_decision_tooltip_2_alt - } - } - else = { - every_in_de_jure_hierarchy = { - custom = merge_aquitaine_decision_tooltip_original - custom_tooltip = merge_aquitaine_decision_tooltip_2_original - } - } - } - } - } - - option = { - name = major_decisions.3200.a - trigger = { - NOR = { - opinion = { - target = scope:rightful_liege - value >= 25 - } - root.culture = scope:rightful_liege.culture - culture = { any_parent_culture_or_above = { this = scope:rightful_liege.culture } } - } - } - } - - option = { - name = major_decisions.3200.b - trigger = { - OR = { - opinion = { - target = scope:rightful_liege - value >= 25 - } - root.culture = scope:rightful_liege.culture - culture = { any_parent_culture_or_above = { this = scope:rightful_liege.culture } } - } - } - } -} -#Restore Carthage -major_decisions.3300 = { - type = character_event - title = major_decisions.3300.t - desc = major_decisions.3300.desc - theme = crown - - override_effect_2d = { reference = legend_glow } - - left_portrait = { - character = root - animation = sword_coup_degrace - camera = camera_torso_scheme_right_look_right - } - - immediate = { - restore_carthage_scripted_effect = yes - - culture = { save_scope_as = founder_culture } - } - - option = { - name = major_decisions.3300.a - - hidden_effect = { - culture:carthaginian = { - get_all_innovations_from = scope:founder_culture - } - } - - #convert people to your new culture - convert_family_culture_and_notify_vassals_effect = { - OLD_CULTURE = root.culture - NEW_CULTURE = culture:carthaginian - CONVERTER = root - } - - #convert capital counties to carthaginian - title:c_tunis = { - set_county_culture = culture:carthaginian - } - title:c_tripolitana = { - set_county_culture = culture:carthaginian - } - title:c_algier = { - set_county_culture = culture:carthaginian - } - title:c_murcia = { - set_county_culture = culture:carthaginian - } - } - - option = { - name = major_decisions.3300.b - } -} - -############## -# Carantania # -############## -major_decisions.3400 = { - type = character_event - title = major_decisions.3400.t - desc = major_decisions.3400.desc - theme = crown - override_background = ce1_legendary_spring - left_portrait = { - character = root - animation = pondering - } - window = big_event_window - - widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container } - - immediate = { - decision_restore_carantania_effect = yes - } - - option = { - name = major_decisions.3400.a - } -} - -########### -# Cumbria # -########### -major_decisions.3500 = { - type = character_event - title = major_decisions.3500.t - desc = major_decisions.3500.desc - theme = crown - override_background = council_chamber - left_portrait = { - character = root - animation = pondering - } - window = big_event_window - - widget = { gui = event_window_widget_vfx_godray container = foreground_shader_vfx_container } - - immediate = { - form_cumbria_decision_scripted_effect = yes - } - - option = { - name = major_decisions.3500.a - } -} - -################### -# Cossack Kingdom # -################### - -#Create Cossack Kingdom -major_decisions.3600 = { - type = character_event - title = major_decisions.3600.t - desc = major_decisions.3600.desc - theme = crown - override_background = council_chamber - - window = big_event_window - - override_effect_2d = { reference = legend_glow } - - left_portrait = { - character = root - animation = sword_coup_degrace - camera = camera_torso_scheme_right_look_right - } - - immediate = { - create_cossack_scripted_effect = yes - } - - option = { - name = major_decisions.3600.a - convert_family_culture_and_notify_vassals_effect = { - OLD_CULTURE = scope:founder_culture - NEW_CULTURE = scope:new_culture - CONVERTER = root - } - } - option = { - name = major_decisions.3600.b - } -} diff --git a/events/dlc/ep1/ep1_fund_inspiration_events.txt b/events/dlc/ep1/ep1_fund_inspiration_events.txt index 01aa6491..2d65ccfb 100644 --- a/events/dlc/ep1/ep1_fund_inspiration_events.txt +++ b/events/dlc/ep1/ep1_fund_inspiration_events.txt @@ -946,138 +946,138 @@ fund_inspiration.0022 = { scripted_trigger fund_inspiration_0031_title_based_option_trigger = { OR = { -# AND = { -# exists = global_var:flag_restored_roman_empire -# global_var:flag_restored_roman_empire = root -# NOT = { exists = scope:book_topic_restoration } -# } -# AND = { -# exists = global_var:flag_restored_dumnonia -# global_var:flag_restored_dumnonia = root -# NOT = { exists = scope:book_topic_restoration } -# } -# AND = { -# exists = global_var:flag_reformed_carolingian_empire -# global_var:flag_reformed_carolingian_empire = root -# NOT = { exists = scope:book_topic_restoration } -# } -# AND = { -# exists = global_var:restore_holy_roman_empire_decision -# global_var:restore_holy_roman_empire_decision = root -# NOT = { exists = scope:book_topic_restoration } -# } -# AND = { -# exists = global_var:unite_the_spanish_thrones_decision -# global_var:unite_the_spanish_thrones_decision = root -# exists = global_var:unite_the_spanish_thrones_decision_title -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:unite_the_slavs_decision -# global_var:unite_the_slavs_decision = root -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:unite_the_southern_slavs_decision -# global_var:unite_the_southern_slavs_decision = root -# exists = global_var:unite_the_southern_slavs_decision_title -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:unite_the_western_slavs_decision -# global_var:unite_the_western_slavs_decision = root -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:flag_unified_burgundy_kingdom -# global_var:flag_unified_burgundy_kingdom = root -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:flag_unified_italian_empire -# global_var:flag_unified_italian_empire = root -# NOT = { exists = scope:book_topic_unification } -# } -# AND = { -# exists = global_var:form_portugal_decision -# global_var:form_portugal_decision = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_founded_kingdom_of_bosnia -# global_var:flag_founded_kingdom_of_bosnia = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_armenian_empire -# global_var:flag_created_armenian_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_dai_viet_empire -# global_var:flag_created_dai_viet_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_majapahit_empire -# global_var:flag_created_majapahit_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_ryukyu_empire -# global_var:flag_created_ryukyu_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_siam_kingdom -# global_var:flag_created_siam_kingdom = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_brunei_kingdom -# global_var:flag_created_brunei_kingdom = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_brunei_empire -# global_var:flag_created_brunei_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_formed_rum_sultanate -# global_var:flag_formed_rum_sultanate = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:create_israel_kingdom -# global_var:create_israel_kingdom = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_created_outremer_empire -# global_var:flag_created_outremer_empire = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_formed_switzerland_kingdom -# global_var:flag_formed_switzerland_kingdom = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_formed_austria_kingdom -# global_var:flag_formed_austria_kingdom = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:flag_formed_kingdom_of_aragon -# global_var:flag_formed_kingdom_of_aragon = root -# NOT = { exists = scope:book_topic_creation } -# } -# AND = { -# exists = global_var:form_toledo_decision -# global_var:form_toledo_decision = root -# NOT = { exists = scope:book_topic_creation } -# } + AND = { + exists = global_var:flag_restored_roman_empire + global_var:flag_restored_roman_empire = root + NOT = { exists = scope:book_topic_restoration } + } + AND = { + exists = global_var:flag_restored_dumnonia + global_var:flag_restored_dumnonia = root + NOT = { exists = scope:book_topic_restoration } + } + AND = { + exists = global_var:flag_reformed_carolingian_empire + global_var:flag_reformed_carolingian_empire = root + NOT = { exists = scope:book_topic_restoration } + } + AND = { + exists = global_var:restore_holy_roman_empire_decision + global_var:restore_holy_roman_empire_decision = root + NOT = { exists = scope:book_topic_restoration } + } + AND = { + exists = global_var:unite_the_spanish_thrones_decision + global_var:unite_the_spanish_thrones_decision = root + exists = global_var:unite_the_spanish_thrones_decision_title + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:unite_the_slavs_decision + global_var:unite_the_slavs_decision = root + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:unite_the_southern_slavs_decision + global_var:unite_the_southern_slavs_decision = root + exists = global_var:unite_the_southern_slavs_decision_title + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:unite_the_western_slavs_decision + global_var:unite_the_western_slavs_decision = root + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:flag_unified_burgundy_kingdom + global_var:flag_unified_burgundy_kingdom = root + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:flag_unified_italian_empire + global_var:flag_unified_italian_empire = root + NOT = { exists = scope:book_topic_unification } + } + AND = { + exists = global_var:form_portugal_decision + global_var:form_portugal_decision = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_founded_kingdom_of_bosnia + global_var:flag_founded_kingdom_of_bosnia = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_armenian_empire + global_var:flag_created_armenian_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_dai_viet_empire + global_var:flag_created_dai_viet_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_majapahit_empire + global_var:flag_created_majapahit_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_ryukyu_empire + global_var:flag_created_ryukyu_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_siam_kingdom + global_var:flag_created_siam_kingdom = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_brunei_kingdom + global_var:flag_created_brunei_kingdom = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_brunei_empire + global_var:flag_created_brunei_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_formed_rum_sultanate + global_var:flag_formed_rum_sultanate = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:create_israel_kingdom + global_var:create_israel_kingdom = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_created_outremer_empire + global_var:flag_created_outremer_empire = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_formed_switzerland_kingdom + global_var:flag_formed_switzerland_kingdom = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_formed_austria_kingdom + global_var:flag_formed_austria_kingdom = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:flag_formed_kingdom_of_aragon + global_var:flag_formed_kingdom_of_aragon = root + NOT = { exists = scope:book_topic_creation } + } + AND = { + exists = global_var:form_toledo_decision + global_var:form_toledo_decision = root + NOT = { exists = scope:book_topic_creation } + } AND = { exists = global_var:found_kingdom_decision global_var:found_kingdom_decision = root @@ -1090,11 +1090,11 @@ scripted_trigger fund_inspiration_0031_title_based_option_trigger = { exists = global_var:found_empire_decision_empire NOT = { exists = scope:book_topic_creation } } -# AND = { -# exists = global_var:flag_restored_old_vasconia -# global_var:flag_restored_old_vasconia = root -# NOT = { exists = scope:book_topic_restoration } -# } + AND = { + exists = global_var:flag_restored_old_vasconia + global_var:flag_restored_old_vasconia = root + NOT = { exists = scope:book_topic_restoration } + } } } @@ -1207,330 +1207,330 @@ scripted_effect fund_inspiration_0031_pick_options_to_show_effect = { trigger = { fund_inspiration_0031_title_based_option_trigger = yes } -# if = { -# limit = { -# AND = { -# exists = global_var:flag_restored_roman_empire -# global_var:flag_restored_roman_empire = root -# } -# NOT = { exists = scope:book_topic_restoration } -# } -# save_scope_value_as = { -# name = book_topic_restoration -# value = yes -# } -# title:h_roman_empire = { -# save_scope_as = restored_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_restored_dumnonia -# global_var:flag_restored_dumnonia = root -# } -# NOT = { exists = scope:book_topic_restoration } -# } -# save_scope_value_as = { -# name = book_topic_restoration -# value = yes -# } -# title:k_cornwall = { -# save_scope_as = restored_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_reformed_carolingian_empire -# global_var:flag_reformed_carolingian_empire = root -# } -# NOT = { exists = scope:book_topic_restoration } -# } -# save_scope_value_as = { -# name = book_topic_restoration -# value = yes -# } -# title:e_france = { -# save_scope_as = restored_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:restore_holy_roman_empire_decision -# global_var:restore_holy_roman_empire_decision = root -# } -# NOT = { exists = scope:book_topic_restoration } -# } -# save_scope_value_as = { -# name = book_topic_restoration -# value = yes -# } -# title:e_hre = { -# save_scope_as = restored_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:unite_the_spanish_thrones_decision -# global_var:unite_the_spanish_thrones_decision = root -# exists = global_var:unite_the_spanish_thrones_decision_title -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# global_var:unite_the_spanish_thrones_decision_title = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:unite_the_slavs_decision -# global_var:unite_the_slavs_decision = root -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# title:e_slavia = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:unite_the_southern_slavs_decision -# global_var:unite_the_southern_slavs_decision = root -# exists = global_var:unite_the_southern_slavs_decision_title -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# global_var:unite_the_southern_slavs_decision_title = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:unite_the_western_slavs_decision -# global_var:unite_the_western_slavs_decision = root -# exists = global_var:unite_the_western_slavs_decision_title -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# global_var:unite_the_western_slavs_decision_title = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_unified_burgundy_kingdom -# global_var:flag_unified_burgundy_kingdom = root -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# title:k_burgundy = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_unified_italian_empire -# global_var:flag_unified_italian_empire = root -# } -# NOT = { exists = scope:book_topic_unification } -# } -# save_scope_value_as = { -# name = book_topic_unification -# value = yes -# } -# title:e_italy = { -# save_scope_as = united_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:form_portugal_decision -# global_var:form_portugal_decision = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_portugal = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_founded_kingdom_of_bosnia -# global_var:flag_founded_kingdom_of_bosnia = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_bosnia = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_created_armenian_empire -# global_var:flag_created_armenian_empire = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:e_armenia = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_created_dai_viet_empire -# global_var:flag_created_dai_viet_empire = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:e_viet = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_formed_rum_sultanate -# global_var:flag_formed_rum_sultanate = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_rum = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:create_israel_kingdom -# global_var:create_israel_kingdom = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_israel = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_created_outremer_empire -# global_var:flag_created_outremer_empire = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:e_outremer = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_formed_switzerland_kingdom -# global_var:flag_formed_switzerland_kingdom = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_switzerland = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_formed_austria_kingdom -# global_var:flag_formed_austria_kingdom = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_austria = { -# save_scope_as = created_title -# } -# } -# else_if = { -# limit = { -# AND = { -# exists = global_var:flag_formed_kingdom_of_aragon -# global_var:flag_formed_kingdom_of_aragon = root -# } -# NOT = { exists = scope:book_topic_creation } -# } -# save_scope_value_as = { -# name = book_topic_creation -# value = yes -# } -# title:k_aragon = { -# save_scope_as = created_title -# } -# } if = { + limit = { + AND = { + exists = global_var:flag_restored_roman_empire + global_var:flag_restored_roman_empire = root + } + NOT = { exists = scope:book_topic_restoration } + } + save_scope_value_as = { + name = book_topic_restoration + value = yes + } + title:h_roman_empire = { + save_scope_as = restored_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_restored_dumnonia + global_var:flag_restored_dumnonia = root + } + NOT = { exists = scope:book_topic_restoration } + } + save_scope_value_as = { + name = book_topic_restoration + value = yes + } + title:k_cornwall = { + save_scope_as = restored_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_reformed_carolingian_empire + global_var:flag_reformed_carolingian_empire = root + } + NOT = { exists = scope:book_topic_restoration } + } + save_scope_value_as = { + name = book_topic_restoration + value = yes + } + title:e_france = { + save_scope_as = restored_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:restore_holy_roman_empire_decision + global_var:restore_holy_roman_empire_decision = root + } + NOT = { exists = scope:book_topic_restoration } + } + save_scope_value_as = { + name = book_topic_restoration + value = yes + } + title:e_hre = { + save_scope_as = restored_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:unite_the_spanish_thrones_decision + global_var:unite_the_spanish_thrones_decision = root + exists = global_var:unite_the_spanish_thrones_decision_title + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + global_var:unite_the_spanish_thrones_decision_title = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:unite_the_slavs_decision + global_var:unite_the_slavs_decision = root + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + title:e_slavia = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:unite_the_southern_slavs_decision + global_var:unite_the_southern_slavs_decision = root + exists = global_var:unite_the_southern_slavs_decision_title + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + global_var:unite_the_southern_slavs_decision_title = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:unite_the_western_slavs_decision + global_var:unite_the_western_slavs_decision = root + exists = global_var:unite_the_western_slavs_decision_title + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + global_var:unite_the_western_slavs_decision_title = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_unified_burgundy_kingdom + global_var:flag_unified_burgundy_kingdom = root + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + title:k_burgundy = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_unified_italian_empire + global_var:flag_unified_italian_empire = root + } + NOT = { exists = scope:book_topic_unification } + } + save_scope_value_as = { + name = book_topic_unification + value = yes + } + title:e_italy = { + save_scope_as = united_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:form_portugal_decision + global_var:form_portugal_decision = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_portugal = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_founded_kingdom_of_bosnia + global_var:flag_founded_kingdom_of_bosnia = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_bosnia = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_created_armenian_empire + global_var:flag_created_armenian_empire = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:e_armenia = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_created_dai_viet_empire + global_var:flag_created_dai_viet_empire = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:e_viet = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_formed_rum_sultanate + global_var:flag_formed_rum_sultanate = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_rum = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:create_israel_kingdom + global_var:create_israel_kingdom = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_israel = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_created_outremer_empire + global_var:flag_created_outremer_empire = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:e_outremer = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_formed_switzerland_kingdom + global_var:flag_formed_switzerland_kingdom = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_switzerland = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_formed_austria_kingdom + global_var:flag_formed_austria_kingdom = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_austria = { + save_scope_as = created_title + } + } + else_if = { + limit = { + AND = { + exists = global_var:flag_formed_kingdom_of_aragon + global_var:flag_formed_kingdom_of_aragon = root + } + NOT = { exists = scope:book_topic_creation } + } + save_scope_value_as = { + name = book_topic_creation + value = yes + } + title:k_aragon = { + save_scope_as = created_title + } + } + else_if = { limit = { AND = { exists = global_var:found_kingdom_decision diff --git a/events/dlc/ep3/ep3_decisions_events.txt b/events/dlc/ep3/ep3_decisions_events.txt index ca6e888e..bf0b2a7a 100644 --- a/events/dlc/ep3/ep3_decisions_events.txt +++ b/events/dlc/ep3/ep3_decisions_events.txt @@ -2664,360 +2664,360 @@ ep3_decisions_event.2090 = { } -########################################################## -#### Restore Backwater Greek Counties Decision Events -#### by Chad Uhl -# -## Event for the Governor when they've completely removed the backwater modifiers -#ep3_decisions_event.3000 = { -# type = letter_event -# opening = ep3_decisions_event.3001.opening -# desc = ep3_decisions_event.3000.desc -# sender = top_liege -# -# immediate = { -# show_as_tooltip = { -# every_sub_realm_county = { -# limit = { -# title_province = { -# geographical_region = greek_backwater_modifier_region -# } -# } -# remove_county_modifier = backwater_county_modifier -# } -# } -# } -# -# option = { -# name = ep3_decisions_event.3000.a -# # Big influence gain -# change_influence = massive_influence_gain -# # Modifier to improve Stewardship, which in turn improves Governor Efficiency -# add_character_modifier = { -# modifier = restored_greek_theme_modifier -# } -# # Let the player know that they are getting boosted governor efficiency -# custom_tooltip = restored_greek_theme_gov_efficiency_tt -# # Improve relationship with the emperor -# reverse_add_opinion = { -# target = liege -# modifier = impressed_opinion -# opinion = 20 -# } -# } -#} -# -## Event for the emperor when all the counties of Greece have been rid of the backwater modifier -#ep3_decisions_event.3001 = { -# type = character_event -# title = ep3_decisions_event.3001.t -# desc = ep3_decisions_event.3001.desc -# theme = emperor -# override_background = { reference = council_chamber } -# -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# right_portrait = { -# character = scope:interlocutor -# triggered_animation = { -# trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } -# animation = scepter # anim uses crucifix scepter -# } -# animation = war_over_tie -# } -# -# trigger = { -# any_sub_realm_county = { -# title_province = { geographical_region = greek_backwater_modifier_region } -# } -# any_sub_realm_county = { -# count = 0 -# title_province = { -# geographical_region = greek_backwater_modifier_region -# } -# has_county_modifier = backwater_county_modifier -# } -# } -# -# # If the emperor isn't valid for this event yet, check next year -# on_trigger_fail = { -# if = { # If the emperor no longer holds any county in this region, then we remove all the modifiers and just call it quits -# limit = { -# any_sub_realm_county = { -# count = 0 -# title_province = { -# geographical_region = greek_backwater_modifier_region -# } -# } -# } -# every_county_in_region = { -# region = greek_backwater_modifier_region -# limit = { -# has_county_modifier = backwater_county_modifier -# } -# remove_county_modifier = backwater_county_modifier -# } -# } -# else = { # If the emperor still holds counties in Greece, we will check all this again in a year to see the status -# trigger_event = { -# id = ep3_decisions_event.3001 -# years = 1 -# } -# } -# } -# -# immediate = { -# # Find an interlocutor -# if = { -# limit = { exists = cp:councillor_steward } -# cp:councillor_steward = { save_scope_as = interlocutor } -# } -# else_if = { -# limit = { exists = cp:councillor_chancellor } -# cp:councillor_chancellor = { save_scope_as = interlocutor } -# } -# else_if = { -# limit = { -# any_councillor = { } -# } -# random_councillor = { -# save_scope_as = interlocutor -# } -# } -# else = { -# ordered_vassal = { -# order_by = stewardship -# save_scope_as = interlocutor -# } -# } -# -# # Create the tooltip showing that all the modifiers have been removed -# show_as_tooltip = { -# custom_tooltip = { -# text = every_county_in_greece_tt -# every_county_in_region = { -# region = greek_backwater_modifier_region -# limit = { -# holder = { -# OR = { -# this = root -# any_liege_or_above = { -# this = root -# } -# } -# } -# } -# remove_county_modifier = backwater_county_modifier -# } -# } -# } -# } -# -# option = { # Celebrate the Empire's wealth and abundance -# name = ep3_decisions_event.3001.a -# add_legitimacy = minor_legitimacy_gain -# change_influence = major_influence_gain -# } -#} -# -# -########################################################## -#### Prepare Greek Fire Dromons -#### by Jason Cantalini -# -## Event for the holder of constantinople when they opt into the decision -#ep3_decisions_event.3100 = { -# type = character_event -# title = ep3_decisions_event.3100.t -# desc = ep3_decisions_event.3100.desc -# theme = war -# override_background = { reference = docks } -# -# left_portrait = { -# character = root -# animation = debating -# } -# right_portrait = { -# character = scope:aide -# triggered_animation = { -# trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } -# animation = scepter # anim uses crucifix scepter -# } -# animation = war_over_tie -# } -# -# immediate = { -# # Find an interlocutor -# if = { -# limit = { exists = cp:councillor_marshal } -# cp:councillor_steward = { save_scope_as = aide } -# } -# else_if = { -# limit = { exists = cp:councillor_steward } -# cp:councillor_chancellor = { save_scope_as = aide } -# } -# else_if = { -# limit = { -# any_councillor = { } -# } -# random_councillor = { -# save_scope_as = aide -# } -# } -# else_if = { -# limit = { -# vassal_count >= 1 -# } -# ordered_vassal = { -# order_by = martial -# save_scope_as = aide -# } -# } -# else_if = { -# limit = { -# any_courtier = { -# is_alive = yes -# } -# } -# ordered_courtier = { -# order_by = martial -# save_scope_as = aide -# } -# } -# else = { -# random_pool_character = { -# province = root.capital_province -# limit = { -# is_adult = yes -# } -# save_scope_as = aide -# } -# } -# } -# -# option = { #Use the city's native capabilities to produce what's needed -# name = ep3_decisions_event.3100.a -# trigger = { -# influence >= major_influence_value -# } -# show_as_unavailable = { influence < massive_influence_value } -# save_scope_as = actor -# add_character_flag = { -# flag = took_greek_fire_decision_flag -# years = 10 -# } -# begin_scheme_with_agents_effect = { -# SCHEME_TYPE = prepare_fire_dromons_scheme -# TARGET_TYPE = target_title -# TARGET_SCOPE = root.capital_county -# # Success. -# AGENT_1 = agent_alchemist -# AGENT_2 = agent_draughtsman -# # Speed. -# AGENT_3 = agent_drillmaster -# AGENT_4 = agent_supplier -# AGENT_5 = agent_bureaucrat_title -# } -# custom_tooltip = defensive_fire_dromons_success_tooltip -# custom_tooltip = defensive_fire_dromons_custom_desc -# custom_tooltip = defensive_fire_dromons_buildings_desc -# change_influence = major_influence_loss -# -# stress_impact = { -# compassionate = medium_stress_impact_gain -# calm = miniscule_stress_impact_gain -# content = miniscule_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 0.5 -# } -# modifier = { -# factor = 0 -# influence < massive_influence_value -# } -# modifier = { -# factor = 0 -# } -# } -# } -# option = { #Have the latins manufacture ships -# name = ep3_decisions_event.3100.b -# trigger = { -# treasury >= major_gold_value_static_max -# } -# show_as_unavailable = { treasury < massive_gold_value_static_max } -# save_scope_as = actor -# add_character_flag = { -# flag = took_greek_fire_decision_flag -# years = 10 -# } -# begin_scheme_with_agents_effect = { -# SCHEME_TYPE = prepare_fire_dromons_scheme -# TARGET_TYPE = target_title -# TARGET_SCOPE = root.capital_county -# # Success. -# AGENT_1 = agent_alchemist -# AGENT_2 = agent_draughtsman -# # Speed. -# AGENT_3 = agent_drillmaster -# AGENT_4 = agent_supplier -# AGENT_5 = agent_bureaucrat_title -# } -# custom_tooltip = defensive_fire_dromons_success_tooltip -# custom_tooltip = defensive_fire_dromons_custom_desc -# custom_tooltip = defensive_fire_dromons_buildings_desc -# remove_treasury_or_gold = major_gold_value_static_max -# -# stress_impact = { -# compassionate = medium_stress_impact_gain -# paranoid = minor_stress_impact_gain -# calm = miniscule_stress_impact_gain -# content = miniscule_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -0.5 -# } -# modifier = { -# factor = 0 -# treasury < massive_gold_value_static_max -# } -# modifier = { -# factor = 0 -# OR = { -# has_trait = compassionate -# has_trait = paranoid -# } -# } -# } -# } -# option = { #Actually... never mind -# name = ep3_decisions_event.3100.c -# remove_decision_cooldown = prepare_greek_fire_dromons_decision -# stress_impact = { -# sadistic = minor_stress_impact_gain -# callous = miniscule_stress_impact_gain -# ambitious = miniscule_stress_impact_gain -# } -# ai_chance = { -# base = 0 -# modifier = { -# add = 100 -# OR = { -# has_trait = compassionate -# has_trait = calm -# has_trait = content -# } -# } -# } -# } -#} -# +######################################################### +### Restore Backwater Greek Counties Decision Events +### by Chad Uhl + +# Event for the Governor when they've completely removed the backwater modifiers +ep3_decisions_event.3000 = { + type = letter_event + opening = ep3_decisions_event.3001.opening + desc = ep3_decisions_event.3000.desc + sender = top_liege + + immediate = { + show_as_tooltip = { + every_sub_realm_county = { + limit = { + title_province = { + geographical_region = greek_backwater_modifier_region + } + } + remove_county_modifier = backwater_county_modifier + } + } + } + + option = { + name = ep3_decisions_event.3000.a + # Big influence gain + change_influence = massive_influence_gain + # Modifier to improve Stewardship, which in turn improves Governor Efficiency + add_character_modifier = { + modifier = restored_greek_theme_modifier + } + # Let the player know that they are getting boosted governor efficiency + custom_tooltip = restored_greek_theme_gov_efficiency_tt + # Improve relationship with the emperor + reverse_add_opinion = { + target = liege + modifier = impressed_opinion + opinion = 20 + } + } +} + +# Event for the emperor when all the counties of Greece have been rid of the backwater modifier +ep3_decisions_event.3001 = { + type = character_event + title = ep3_decisions_event.3001.t + desc = ep3_decisions_event.3001.desc + theme = emperor + override_background = { reference = council_chamber } + + left_portrait = { + character = root + animation = personality_honorable + } + right_portrait = { + character = scope:interlocutor + triggered_animation = { + trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } + animation = scepter # anim uses crucifix scepter + } + animation = war_over_tie + } + + trigger = { + any_sub_realm_county = { + title_province = { geographical_region = greek_backwater_modifier_region } + } + any_sub_realm_county = { + count = 0 + title_province = { + geographical_region = greek_backwater_modifier_region + } + has_county_modifier = backwater_county_modifier + } + } + + # If the emperor isn't valid for this event yet, check next year + on_trigger_fail = { + if = { # If the emperor no longer holds any county in this region, then we remove all the modifiers and just call it quits + limit = { + any_sub_realm_county = { + count = 0 + title_province = { + geographical_region = greek_backwater_modifier_region + } + } + } + every_county_in_region = { + region = greek_backwater_modifier_region + limit = { + has_county_modifier = backwater_county_modifier + } + remove_county_modifier = backwater_county_modifier + } + } + else = { # If the emperor still holds counties in Greece, we will check all this again in a year to see the status + trigger_event = { + id = ep3_decisions_event.3001 + years = 1 + } + } + } + + immediate = { + # Find an interlocutor + if = { + limit = { exists = cp:councillor_steward } + cp:councillor_steward = { save_scope_as = interlocutor } + } + else_if = { + limit = { exists = cp:councillor_chancellor } + cp:councillor_chancellor = { save_scope_as = interlocutor } + } + else_if = { + limit = { + any_councillor = { } + } + random_councillor = { + save_scope_as = interlocutor + } + } + else = { + ordered_vassal = { + order_by = stewardship + save_scope_as = interlocutor + } + } + + # Create the tooltip showing that all the modifiers have been removed + show_as_tooltip = { + custom_tooltip = { + text = every_county_in_greece_tt + every_county_in_region = { + region = greek_backwater_modifier_region + limit = { + holder = { + OR = { + this = root + any_liege_or_above = { + this = root + } + } + } + } + remove_county_modifier = backwater_county_modifier + } + } + } + } + + option = { # Celebrate the Empire's wealth and abundance + name = ep3_decisions_event.3001.a + add_legitimacy = minor_legitimacy_gain + change_influence = major_influence_gain + } +} + + +######################################################### +### Prepare Greek Fire Dromons +### by Jason Cantalini + +# Event for the holder of constantinople when they opt into the decision +ep3_decisions_event.3100 = { + type = character_event + title = ep3_decisions_event.3100.t + desc = ep3_decisions_event.3100.desc + theme = war + override_background = { reference = docks } + + left_portrait = { + character = root + animation = debating + } + right_portrait = { + character = scope:aide + triggered_animation = { + trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } + animation = scepter # anim uses crucifix scepter + } + animation = war_over_tie + } + + immediate = { + # Find an interlocutor + if = { + limit = { exists = cp:councillor_marshal } + cp:councillor_steward = { save_scope_as = aide } + } + else_if = { + limit = { exists = cp:councillor_steward } + cp:councillor_chancellor = { save_scope_as = aide } + } + else_if = { + limit = { + any_councillor = { } + } + random_councillor = { + save_scope_as = aide + } + } + else_if = { + limit = { + vassal_count >= 1 + } + ordered_vassal = { + order_by = martial + save_scope_as = aide + } + } + else_if = { + limit = { + any_courtier = { + is_alive = yes + } + } + ordered_courtier = { + order_by = martial + save_scope_as = aide + } + } + else = { + random_pool_character = { + province = root.capital_province + limit = { + is_adult = yes + } + save_scope_as = aide + } + } + } + + option = { #Use the city's native capabilities to produce what's needed + name = ep3_decisions_event.3100.a + trigger = { + influence >= major_influence_value + } + show_as_unavailable = { influence < massive_influence_value } + save_scope_as = actor + add_character_flag = { + flag = took_greek_fire_decision_flag + years = 10 + } + begin_scheme_with_agents_effect = { + SCHEME_TYPE = prepare_fire_dromons_scheme + TARGET_TYPE = target_title + TARGET_SCOPE = root.capital_county + # Success. + AGENT_1 = agent_alchemist + AGENT_2 = agent_draughtsman + # Speed. + AGENT_3 = agent_drillmaster + AGENT_4 = agent_supplier + AGENT_5 = agent_bureaucrat_title + } + custom_tooltip = defensive_fire_dromons_success_tooltip + custom_tooltip = defensive_fire_dromons_custom_desc + custom_tooltip = defensive_fire_dromons_buildings_desc + change_influence = major_influence_loss + + stress_impact = { + compassionate = medium_stress_impact_gain + calm = miniscule_stress_impact_gain + content = miniscule_stress_impact_gain + } + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 0.5 + } + modifier = { + factor = 0 + influence < massive_influence_value + } + modifier = { + factor = 0 + } + } + } + option = { #Have the latins manufacture ships + name = ep3_decisions_event.3100.b + trigger = { + treasury >= major_gold_value_static_max + } + show_as_unavailable = { treasury < massive_gold_value_static_max } + save_scope_as = actor + add_character_flag = { + flag = took_greek_fire_decision_flag + years = 10 + } + begin_scheme_with_agents_effect = { + SCHEME_TYPE = prepare_fire_dromons_scheme + TARGET_TYPE = target_title + TARGET_SCOPE = root.capital_county + # Success. + AGENT_1 = agent_alchemist + AGENT_2 = agent_draughtsman + # Speed. + AGENT_3 = agent_drillmaster + AGENT_4 = agent_supplier + AGENT_5 = agent_bureaucrat_title + } + custom_tooltip = defensive_fire_dromons_success_tooltip + custom_tooltip = defensive_fire_dromons_custom_desc + custom_tooltip = defensive_fire_dromons_buildings_desc + remove_treasury_or_gold = major_gold_value_static_max + + stress_impact = { + compassionate = medium_stress_impact_gain + paranoid = minor_stress_impact_gain + calm = miniscule_stress_impact_gain + content = miniscule_stress_impact_gain + } + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -0.5 + } + modifier = { + factor = 0 + treasury < massive_gold_value_static_max + } + modifier = { + factor = 0 + OR = { + has_trait = compassionate + has_trait = paranoid + } + } + } + } + option = { #Actually... never mind + name = ep3_decisions_event.3100.c + remove_decision_cooldown = prepare_greek_fire_dromons_decision + stress_impact = { + sadistic = minor_stress_impact_gain + callous = miniscule_stress_impact_gain + ambitious = miniscule_stress_impact_gain + } + ai_chance = { + base = 0 + modifier = { + add = 100 + OR = { + has_trait = compassionate + has_trait = calm + has_trait = content + } + } + } + } +} + ######################################################### ### Mass Arrests Decision Events diff --git a/events/dlc/ep3/ep3_laamp_events.txt b/events/dlc/ep3/ep3_laamp_events.txt index 9cba5160..6813ea2f 100644 --- a/events/dlc/ep3/ep3_laamp_events.txt +++ b/events/dlc/ep3/ep3_laamp_events.txt @@ -7225,814 +7225,814 @@ ep3_laamps.6000 = { } } } -# -## Hereward arrives, finds his brother dead -#ep3_laamps.6001 = { -# type = character_event -# title = ep3_laamps.6001.t -# desc = ep3_laamps.6001.desc -# theme = death -# left_portrait = { -# character = root -# animation = random_weapon_aggressive -# } -# right_portrait = { -# character = scope:frederick -# animation = inspect_weapon -# } -# lower_center_portrait = scope:brother -# override_effect_2d = { -# reference = fog -# } -# override_effect_2d = { -# reference = fog -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# random_sibling = { #Hereweard only has one sibling -# limit = { -# is_alive = yes -# } -# save_scope_as = brother -# } -# province:1537 = { -# save_scope_as = ely -# } -# if = { #Either grab Frederick de Warenne, real-life killer of Hereward's brother... -# limit = { -# character:175 = { -# is_alive = yes -# is_available_healthy_ai_adult = yes -# } -# } -# character:175 = { -# save_scope_as = frederick -# } -# } -# else = { #...or make another Frederick -# create_character = { -# location = scope:ely -# template = knight -# culture = culture:norman -# faith = faith:catholic -# save_scope_as = frederick -# } -# } -# hidden_effect = { #Finally, kill Oslac -# scope:brother = { -# death = { -# death_reason = death_murder -# killer = scope:frederick -# } -# } -# } -# } -# -# option = { #Initiate the duel -# name = ep3_laamps.6001.a -# -# custom_tooltip = ep3_laamps.6001.b.two.tt -# -# configure_start_single_combat_effect = { -# SC_INITIATOR = root -# SC_ATTACKER = root -# SC_DEFENDER = scope:frederick -# FATALITY = always -# FIXED = sc_attacker #Hereward should _always_ win -# LOCALE = wilderness_scope -# OUTPUT_EVENT = ep3_laamps.6002 -# INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate -# } -# -# stress_impact = { -# vengeful = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -# -# option = { #Give them a chance to run -# name = ep3_laamps.6001.b -# -# random_list = { -# 1 = { -# desc = ep3_laamps.6001.b.one -# show_chance = no -# -# custom_tooltip = ep3_laamps.6001.b.one.tt -# -# configure_start_single_combat_effect = { -# SC_INITIATOR = root -# SC_ATTACKER = root -# SC_DEFENDER = scope:frederick -# FATALITY = always -# FIXED = sc_attacker #We win these, boys -# LOCALE = wilderness_scope -# OUTPUT_EVENT = ep3_laamps.6002 -# INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate -# } -# } -# 1 = { -# desc = ep3_laamps.6001.b.two -# show_chance = no -# -# custom_tooltip = ep3_laamps.6001.b.two.tt -# -# configure_start_single_combat_effect = { #Ah, the illusion of choice! -# SC_INITIATOR = root -# SC_ATTACKER = root -# SC_DEFENDER = scope:frederick -# FATALITY = always -# FIXED = sc_attacker #We win these, boys -# LOCALE = wilderness_scope -# OUTPUT_EVENT = ep3_laamps.6002 -# INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate -# } -# } -# } -# -# stress_impact = { -# wrathful = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 25 -# ai_value_modifier = { -# ai_boldness = -1 -# ai_energy = -1 -# } -# } -# } -# -# after = { trigger_event = ep3_laamps.9983 } -#} -# -#ep3_laamps.6002 = { -# type = character_event -# hidden = yes -# -# immediate = { -# trigger_event = { id = ep3_laamps.6003 days = 1 } -# } -#} -# -## Hereward swears revenge -#ep3_laamps.6003 = { -# type = character_event -# title = ep3_laamps.6003.t -# desc = ep3_laamps.6003.desc -# theme = death -# left_portrait = { -# character = root -# animation = grief -# } -# lower_right_portrait = { -# trigger = { -# character:172 = { -# is_alive = yes -# } -# } -# character = character:172 -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# if = { #If Frederick's brother still exists, Nemesis'em -# limit = { -# character:172 = { -# is_alive = yes -# } -# } -# character:172 = { -# set_relation_nemesis = { -# target = root -# reason = nemesis_killed_brother -# } -# } -# } -# } -# -# option = { #Swear vengeance -# name = ep3_laamps.6003.a -# -# add_trait_xp = { -# trait = the_wake -# value = 15 -# } -# -# stress_impact = { -# base = medium_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -# -# option = { #Rifle through Fred's pockets -# name = ep3_laamps.6003.b -# -# flavor = ep3_laamps.6003.b.flavor -# -# add_gold = minor_gold_value -# -# random = { -# chance = 50 -# -# create_artifact = { -# name = warenne_coin -# description = warenne_coin_description -# history = { -# type = created_before_history -# } -# type = miscellaneous -# visuals = brooch -# modifier = artifact_knight_effectiveness_2_modifier -# modifier = artifact_raid_speed_4_modifier -# modifier = artifact_pursue_efficiency_1_modifier -# save_scope_as = new_trinket -# } -# -# -# send_interface_toast = { -# title = stewardship_general.2001.tt #Re-using this -# left_icon = root -# right_icon = scope:new_trinket -# show_as_tooltip = { -# scope:new_trinket = { set_owner = root } -# } -# } -# } -# -# ai_chance = { -# base = 25 -# ai_value_modifier = { -# ai_boldness = -1 -# ai_energy = -1 -# } -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_laamps.6005 -# days = { 25 45 } -# } -# } -#} -# -## Hereward sets up a camp in the fens near Ely -#ep3_laamps.6005 = { -# type = character_event -# title = ep3_laamps.6005.t -# desc = ep3_laamps.6005.desc -# theme = realm -# override_background = { reference = wilderness_wetlands } -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# #Save William -# character:140 = { -# save_scope_as = william -# } -# -# #Save our location; should be Ely -# location = { save_scope_as = location } -# -# #Set up The Fens -# ep3_the_fens_list_effect = yes -# -# every_in_list = { -# list = the_fens -# custom = every_fenland_holding -# add_province_modifier = { -# modifier = ep3_dangerous_fenland_modifier -# years = 15 -# } -# } -# -# #Create the character here -# create_character = { -# location = root.capital_province -# template = wetlands_commander_character -# culture = root.culture -# faith = root.faith -# save_scope_as = wetlands_commander -# } -# -# ## Used in the after: -# # Make a list of every Anglo-Saxon lord -# scope:william = { -# every_vassal = { -# limit = { -# has_culture = culture:anglo_saxon -# } -# add_to_list = aethelings -# } -# } -# -# # Pick the most powerful Anglo-Saxon lord -# # Most likely Eadwin Aelfgarson -# ordered_in_list = { -# list = aethelings -# order_by = max_military_strength -# save_scope_as = powerful_vassal -# } -# -# domicile = { -# change_provisions = minor_provisions_gain -# } -# } -# -# option = { #Raid to acquire wealth -# name = ep3_laamps.6005.a -# -# flavor = ep3_laamps.6005.a.tt -# -# add_gold = medium_gold_value -# -# scope:ely = { -# add_province_modifier = { -# modifier = ep3_plundered_modifier -# years = 5 -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = -1 -# ai_energy = -1 -# } -# } -# } -# -# option = { #Recruit a local knight -# name = ep3_laamps.6005.b -# -# flavor = ep3_laamps.6005.b.tt -# -# add_courtier = scope:wetlands_commander -# -# ai_chance = { -# base = 25 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -# -# after = { -# if = { -# limit = { -# exists = scope:powerful_vassal -# } -# trigger_event = { -# id = ep3_laamps.6010 -# days = { 60 120 } -# } -# } -# } -#} -# -## The Aethelings are disgruntled; go to visit the most powerful one? -#ep3_laamps.6010 = { -# type = letter_event -# opening = ep3_laamps.6010.t -# desc = ep3_laamps.6010.desc -# sender = scope:powerful_vassal -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# # Make a list of every Anglo-Saxon lord -# scope:william = { -# every_vassal = { -# limit = { -# has_culture = culture:anglo_saxon -# } -# add_to_list = aethelings -# } -# } -# -# # Pick the most powerful Anglo-Saxon lord -# # Most likely Eadwin Aelfgarson -# ordered_in_list = { -# list = aethelings -# order_by = max_military_strength -# save_scope_as = powerful_vassal -# } -# -# scope:powerful_vassal.capital_province = { -# save_scope_as = powerful_vassal_capital -# } -# } -# -# option = { #Yes! -# name = ep3_laamps.6010.a -# -# flavor = ep3_laamps.6010.a.flavor -# -# custom_tooltip = ep3_laamps.6010.a.tt -# -# every_character_active_contract = { invalidate_contract = yes } -# -# start_travel_plan = { -# destination = scope:powerful_vassal_capital -# players_use_planner = no -# on_arrival_event = ep3_laamps.6015 -# on_arrival_destinations = last -# return_trip = no -# } -# -# #Just to ensure we get the right one -# scope:powerful_vassal = { -# add_character_flag = temp_powerful_vassal_flag -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #...no. -# name = ep3_laamps.6010.b -# -# reverse_add_opinion = { -# target = scope:powerful_vassal -# modifier = annoyed_opinion -# opinion = -35 -# } -# -# ai_chance = { -# base = 0 -# } -# } -#} -# -## You meet with the Aetheling -#ep3_laamps.6015 = { -# type = character_event -# title = ep3_laamps.6015.t -# desc = ep3_laamps.6015.desc -# theme = realm -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:powerful_vassal -# animation = worry -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# character:140 = { -# save_scope_as = william -# } -# -# scope:william = { -# random_vassal = { -# limit = { -# has_character_flag = temp_powerful_vassal_flag -# } -# save_scope_as = powerful_vassal -# } -# } -# } -# -# option = { #You have my support -# name = ep3_laamps.6015.a -# -# scope:william = { -# every_vassal = { -# limit = { -# culture = culture:norman -# } -# custom = every_direct_vassal_william -# add_opinion = { -# target = root -# modifier = revanchist_opinion -# opinion = -35 -# } -# } -# every_vassal_or_below = { -# limit = { -# culture = culture:anglo_saxon -# } -# custom = every_anglo_noble -# add_opinion = { -# target = root -# modifier = revanchist_opinion -# opinion = 35 -# } -# } -# } -# -# scope:powerful_vassal = { -# add_character_flag = happy_flag -# } -# -# add_diplomacy_skill = 1 -# -# reverse_add_opinion = { -# target = scope:powerful_vassal -# modifier = pleased_opinion -# opinion = 50 -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -# -# option = { #I need time to decide -# name = ep3_laamps.6015.b -# -# scope:powerful_vassal = { -# add_character_flag = annoyed_flag -# } -# -# add_character_modifier = { -# modifier = ep3_hereward_caution_modifier -# years = 5 -# } -# -# reverse_add_opinion = { -# target = scope:powerful_vassal -# modifier = annoyed_opinion -# opinion = -5 -# } -# -# ai_chance = { -# base = 50 -# ai_value_modifier = { -# ai_boldness = -1 -# ai_rationality = 0.5 -# } -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_laamps.6016 -# days = 1 -# } -# } -#} -# -## Bad news arrives -#ep3_laamps.6016 = { -# type = character_event -# title = ep3_laamps.6016.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:powerful_vassal = { -# has_character_flag = annoyed_flag -# } -# } -# desc = ep3_laamps.6016.frustrated -# } -# triggered_desc = { -# trigger = { -# scope:powerful_vassal = { -# has_character_flag = happy_flag -# } -# } -# desc = ep3_laamps.6016.happy -# } -# } -# desc = ep3_laamps.6016.ending -# } -# theme = realm -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:powerful_vassal -# animation = worry -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# character:140 = { -# save_scope_as = william -# } -# } -# -# option = { #You have my support -# name = ep3_laamps.6016.a -# -# custom_tooltip = ep3_laamps.6016.a.tt -# -# ai_chance = { -# base = 100 -# } -# } -# -# after = { -# trigger_event = ep3_laamps.6020 #Start the Harrying of the North -# -# if = { -# limit = { -# scope:william = { -# is_ai = no -# } -# } -# scope:william = { -# trigger_event = ep3_laamps.6021 -# } -# } -# if = { -# limit = { -# exists = domicile -# location != domicile.domicile_location -# } -# start_travel_plan = { -# destination = root.domicile.domicile_location -# players_use_planner = no -# on_start_on_action = on_travel_relocation_start -# on_arrival_on_action = on_travel_relocation_end -# on_arrival_destinations = last -# return_trip = no # One way -# } -# } -# } -#} -# -## The Harrying of the North begins -#ep3_laamps.6020 = { -# type = character_event -# window = fullscreen_event -# title = ep3_laamps.6020.t -# desc = ep3_laamps.6020.desc -# theme = realm -# override_background = { reference = ep3_fullscreen_harrying_of_the_north } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# play_music_cue = mx_cue_war_declared -# -# character:140 = { -# save_scope_as = william -# } -# -# # Make a list of every Anglo-Saxon lord -# scope:william = { -# every_vassal = { -# limit = { -# has_culture = culture:anglo_saxon -# } -# add_to_list = aethelings -# } -# } -# } -# -# option = { #Oh lort here we go -# name = ep3_laamps.6020.a -# -# every_in_list = { -# list = aethelings -# custom = every_aetheling -# every_realm_county = { -# custom = every_county -# change_county_control = 25 -# add_county_modifier = { -# modifier = ep3_harried_modifier -# years = 15 -# } -# } -# } -# -# scope:william = { -# add_character_modifier = { -# modifier = ep3_the_conqueror_modifier -# years = 15 -# } -# create_story = story_cycle_harrying_of_the_north -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -#} -# -## The Harrying of the North begins - William perspective -## This one doesn't trigger the harrying story cycle, that's held within .6020 -#ep3_laamps.6021 = { -# type = character_event -# window = fullscreen_event -# title = ep3_laamps.6020.t -# desc = ep3_laamps.6021.desc -# theme = realm -# override_background = { reference = ep3_fullscreen_harrying_of_the_north } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# play_music_cue = mx_cue_war_declared -# -# character:140 = { -# save_scope_as = william -# } -# -# # Make a list of every Anglo-Saxon lord -# scope:william = { -# every_vassal = { -# limit = { -# has_culture = culture:anglo_saxon -# } -# add_to_list = aethelings -# } -# } -# } -# -# option = { #Oh lort here we go -# name = ep3_laamps.6020.a -# -# show_as_tooltip = { -# every_in_list = { -# list = aethelings -# custom = every_aetheling -# every_realm_county = { -# custom = every_county -# change_county_control = 25 -# add_county_modifier = { -# modifier = ep3_harried_modifier -# years = 15 -# } -# } -# } -# } -# -# show_as_tooltip = { -# scope:william = { -# add_character_modifier = { -# modifier = ep3_the_conqueror_modifier -# years = 15 -# } -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -#} + +# Hereward arrives, finds his brother dead +ep3_laamps.6001 = { + type = character_event + title = ep3_laamps.6001.t + desc = ep3_laamps.6001.desc + theme = death + left_portrait = { + character = root + animation = random_weapon_aggressive + } + right_portrait = { + character = scope:frederick + animation = inspect_weapon + } + lower_center_portrait = scope:brother + override_effect_2d = { + reference = fog + } + override_effect_2d = { + reference = fog + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + random_sibling = { #Hereweard only has one sibling + limit = { + is_alive = yes + } + save_scope_as = brother + } + province:1537 = { + save_scope_as = ely + } + if = { #Either grab Frederick de Warenne, real-life killer of Hereward's brother... + limit = { + character:175 = { + is_alive = yes + is_available_healthy_ai_adult = yes + } + } + character:175 = { + save_scope_as = frederick + } + } + else = { #...or make another Frederick + create_character = { + location = scope:ely + template = knight + culture = culture:norman + faith = faith:catholic + save_scope_as = frederick + } + } + hidden_effect = { #Finally, kill Oslac + scope:brother = { + death = { + death_reason = death_murder + killer = scope:frederick + } + } + } + } + + option = { #Initiate the duel + name = ep3_laamps.6001.a + + custom_tooltip = ep3_laamps.6001.b.two.tt + + configure_start_single_combat_effect = { + SC_INITIATOR = root + SC_ATTACKER = root + SC_DEFENDER = scope:frederick + FATALITY = always + FIXED = sc_attacker #Hereward should _always_ win + LOCALE = wilderness_scope + OUTPUT_EVENT = ep3_laamps.6002 + INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate + } + + stress_impact = { + vengeful = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } + + option = { #Give them a chance to run + name = ep3_laamps.6001.b + + random_list = { + 1 = { + desc = ep3_laamps.6001.b.one + show_chance = no + + custom_tooltip = ep3_laamps.6001.b.one.tt + + configure_start_single_combat_effect = { + SC_INITIATOR = root + SC_ATTACKER = root + SC_DEFENDER = scope:frederick + FATALITY = always + FIXED = sc_attacker #We win these, boys + LOCALE = wilderness_scope + OUTPUT_EVENT = ep3_laamps.6002 + INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate + } + } + 1 = { + desc = ep3_laamps.6001.b.two + show_chance = no + + custom_tooltip = ep3_laamps.6001.b.two.tt + + configure_start_single_combat_effect = { #Ah, the illusion of choice! + SC_INITIATOR = root + SC_ATTACKER = root + SC_DEFENDER = scope:frederick + FATALITY = always + FIXED = sc_attacker #We win these, boys + LOCALE = wilderness_scope + OUTPUT_EVENT = ep3_laamps.6002 + INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this, though SHOULD never invalidate + } + } + } + + stress_impact = { + wrathful = minor_stress_impact_gain + } + + ai_chance = { + base = 25 + ai_value_modifier = { + ai_boldness = -1 + ai_energy = -1 + } + } + } + + after = { trigger_event = ep3_laamps.9983 } +} + +ep3_laamps.6002 = { + type = character_event + hidden = yes + + immediate = { + trigger_event = { id = ep3_laamps.6003 days = 1 } + } +} + +# Hereward swears revenge +ep3_laamps.6003 = { + type = character_event + title = ep3_laamps.6003.t + desc = ep3_laamps.6003.desc + theme = death + left_portrait = { + character = root + animation = grief + } + lower_right_portrait = { + trigger = { + character:172 = { + is_alive = yes + } + } + character = character:172 + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + if = { #If Frederick's brother still exists, Nemesis'em + limit = { + character:172 = { + is_alive = yes + } + } + character:172 = { + set_relation_nemesis = { + target = root + reason = nemesis_killed_brother + } + } + } + } + + option = { #Swear vengeance + name = ep3_laamps.6003.a + + add_trait_xp = { + trait = the_wake + value = 15 + } + + stress_impact = { + base = medium_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } + + option = { #Rifle through Fred's pockets + name = ep3_laamps.6003.b + + flavor = ep3_laamps.6003.b.flavor + + add_gold = minor_gold_value + + random = { + chance = 50 + + create_artifact = { + name = warenne_coin + description = warenne_coin_description + history = { + type = created_before_history + } + type = miscellaneous + visuals = brooch + modifier = artifact_knight_effectiveness_2_modifier + modifier = artifact_raid_speed_4_modifier + modifier = artifact_pursue_efficiency_1_modifier + save_scope_as = new_trinket + } + + + send_interface_toast = { + title = stewardship_general.2001.tt #Re-using this + left_icon = root + right_icon = scope:new_trinket + show_as_tooltip = { + scope:new_trinket = { set_owner = root } + } + } + } + + ai_chance = { + base = 25 + ai_value_modifier = { + ai_boldness = -1 + ai_energy = -1 + } + } + } + + after = { + trigger_event = { + id = ep3_laamps.6005 + days = { 25 45 } + } + } +} + +# Hereward sets up a camp in the fens near Ely +ep3_laamps.6005 = { + type = character_event + title = ep3_laamps.6005.t + desc = ep3_laamps.6005.desc + theme = realm + override_background = { reference = wilderness_wetlands } + left_portrait = { + character = root + animation = personality_honorable + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + #Save William + character:140 = { + save_scope_as = william + } + + #Save our location; should be Ely + location = { save_scope_as = location } + + #Set up The Fens + ep3_the_fens_list_effect = yes + + every_in_list = { + list = the_fens + custom = every_fenland_holding + add_province_modifier = { + modifier = ep3_dangerous_fenland_modifier + years = 15 + } + } + + #Create the character here + create_character = { + location = root.capital_province + template = wetlands_commander_character + culture = root.culture + faith = root.faith + save_scope_as = wetlands_commander + } + + ## Used in the after: + # Make a list of every Anglo-Saxon lord + scope:william = { + every_vassal = { + limit = { + has_culture = culture:anglo_saxon + } + add_to_list = aethelings + } + } + + # Pick the most powerful Anglo-Saxon lord + # Most likely Eadwin Aelfgarson + ordered_in_list = { + list = aethelings + order_by = max_military_strength + save_scope_as = powerful_vassal + } + + domicile = { + change_provisions = minor_provisions_gain + } + } + + option = { #Raid to acquire wealth + name = ep3_laamps.6005.a + + flavor = ep3_laamps.6005.a.tt + + add_gold = medium_gold_value + + scope:ely = { + add_province_modifier = { + modifier = ep3_plundered_modifier + years = 5 + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = -1 + ai_energy = -1 + } + } + } + + option = { #Recruit a local knight + name = ep3_laamps.6005.b + + flavor = ep3_laamps.6005.b.tt + + add_courtier = scope:wetlands_commander + + ai_chance = { + base = 25 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } + + after = { + if = { + limit = { + exists = scope:powerful_vassal + } + trigger_event = { + id = ep3_laamps.6010 + days = { 60 120 } + } + } + } +} + +# The Aethelings are disgruntled; go to visit the most powerful one? +ep3_laamps.6010 = { + type = letter_event + opening = ep3_laamps.6010.t + desc = ep3_laamps.6010.desc + sender = scope:powerful_vassal + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + # Make a list of every Anglo-Saxon lord + scope:william = { + every_vassal = { + limit = { + has_culture = culture:anglo_saxon + } + add_to_list = aethelings + } + } + + # Pick the most powerful Anglo-Saxon lord + # Most likely Eadwin Aelfgarson + ordered_in_list = { + list = aethelings + order_by = max_military_strength + save_scope_as = powerful_vassal + } + + scope:powerful_vassal.capital_province = { + save_scope_as = powerful_vassal_capital + } + } + + option = { #Yes! + name = ep3_laamps.6010.a + + flavor = ep3_laamps.6010.a.flavor + + custom_tooltip = ep3_laamps.6010.a.tt + + every_character_active_contract = { invalidate_contract = yes } + + start_travel_plan = { + destination = scope:powerful_vassal_capital + players_use_planner = no + on_arrival_event = ep3_laamps.6015 + on_arrival_destinations = last + return_trip = no + } + + #Just to ensure we get the right one + scope:powerful_vassal = { + add_character_flag = temp_powerful_vassal_flag + } + + ai_chance = { + base = 100 + } + } + + option = { #...no. + name = ep3_laamps.6010.b + + reverse_add_opinion = { + target = scope:powerful_vassal + modifier = annoyed_opinion + opinion = -35 + } + + ai_chance = { + base = 0 + } + } +} + +# You meet with the Aetheling +ep3_laamps.6015 = { + type = character_event + title = ep3_laamps.6015.t + desc = ep3_laamps.6015.desc + theme = realm + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:powerful_vassal + animation = worry + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + character:140 = { + save_scope_as = william + } + + scope:william = { + random_vassal = { + limit = { + has_character_flag = temp_powerful_vassal_flag + } + save_scope_as = powerful_vassal + } + } + } + + option = { #You have my support + name = ep3_laamps.6015.a + + scope:william = { + every_vassal = { + limit = { + culture = culture:norman + } + custom = every_direct_vassal_william + add_opinion = { + target = root + modifier = revanchist_opinion + opinion = -35 + } + } + every_vassal_or_below = { + limit = { + culture = culture:anglo_saxon + } + custom = every_anglo_noble + add_opinion = { + target = root + modifier = revanchist_opinion + opinion = 35 + } + } + } + + scope:powerful_vassal = { + add_character_flag = happy_flag + } + + add_diplomacy_skill = 1 + + reverse_add_opinion = { + target = scope:powerful_vassal + modifier = pleased_opinion + opinion = 50 + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } + + option = { #I need time to decide + name = ep3_laamps.6015.b + + scope:powerful_vassal = { + add_character_flag = annoyed_flag + } + + add_character_modifier = { + modifier = ep3_hereward_caution_modifier + years = 5 + } + + reverse_add_opinion = { + target = scope:powerful_vassal + modifier = annoyed_opinion + opinion = -5 + } + + ai_chance = { + base = 50 + ai_value_modifier = { + ai_boldness = -1 + ai_rationality = 0.5 + } + } + } + + after = { + trigger_event = { + id = ep3_laamps.6016 + days = 1 + } + } +} + +# Bad news arrives +ep3_laamps.6016 = { + type = character_event + title = ep3_laamps.6016.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:powerful_vassal = { + has_character_flag = annoyed_flag + } + } + desc = ep3_laamps.6016.frustrated + } + triggered_desc = { + trigger = { + scope:powerful_vassal = { + has_character_flag = happy_flag + } + } + desc = ep3_laamps.6016.happy + } + } + desc = ep3_laamps.6016.ending + } + theme = realm + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:powerful_vassal + animation = worry + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + character:140 = { + save_scope_as = william + } + } + + option = { #You have my support + name = ep3_laamps.6016.a + + custom_tooltip = ep3_laamps.6016.a.tt + + ai_chance = { + base = 100 + } + } + + after = { + trigger_event = ep3_laamps.6020 #Start the Harrying of the North + + if = { + limit = { + scope:william = { + is_ai = no + } + } + scope:william = { + trigger_event = ep3_laamps.6021 + } + } + if = { + limit = { + exists = domicile + location != domicile.domicile_location + } + start_travel_plan = { + destination = root.domicile.domicile_location + players_use_planner = no + on_start_on_action = on_travel_relocation_start + on_arrival_on_action = on_travel_relocation_end + on_arrival_destinations = last + return_trip = no # One way + } + } + } +} + +# The Harrying of the North begins +ep3_laamps.6020 = { + type = character_event + window = fullscreen_event + title = ep3_laamps.6020.t + desc = ep3_laamps.6020.desc + theme = realm + override_background = { reference = ep3_fullscreen_harrying_of_the_north } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + play_music_cue = mx_cue_war_declared + + character:140 = { + save_scope_as = william + } + + # Make a list of every Anglo-Saxon lord + scope:william = { + every_vassal = { + limit = { + has_culture = culture:anglo_saxon + } + add_to_list = aethelings + } + } + } + + option = { #Oh lort here we go + name = ep3_laamps.6020.a + + every_in_list = { + list = aethelings + custom = every_aetheling + every_realm_county = { + custom = every_county + change_county_control = 25 + add_county_modifier = { + modifier = ep3_harried_modifier + years = 15 + } + } + } + + scope:william = { + add_character_modifier = { + modifier = ep3_the_conqueror_modifier + years = 15 + } + create_story = story_cycle_harrying_of_the_north + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } +} + +# The Harrying of the North begins - William perspective +# This one doesn't trigger the harrying story cycle, that's held within .6020 +ep3_laamps.6021 = { + type = character_event + window = fullscreen_event + title = ep3_laamps.6020.t + desc = ep3_laamps.6021.desc + theme = realm + override_background = { reference = ep3_fullscreen_harrying_of_the_north } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + play_music_cue = mx_cue_war_declared + + character:140 = { + save_scope_as = william + } + + # Make a list of every Anglo-Saxon lord + scope:william = { + every_vassal = { + limit = { + has_culture = culture:anglo_saxon + } + add_to_list = aethelings + } + } + } + + option = { #Oh lort here we go + name = ep3_laamps.6020.a + + show_as_tooltip = { + every_in_list = { + list = aethelings + custom = every_aetheling + every_realm_county = { + custom = every_county + change_county_control = 25 + add_county_modifier = { + modifier = ep3_harried_modifier + years = 15 + } + } + } + } + + show_as_tooltip = { + scope:william = { + add_character_modifier = { + modifier = ep3_the_conqueror_modifier + years = 15 + } + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } +} ################################################## # Unique LAAMP Events @@ -8040,150 +8040,150 @@ ep3_laamps.6000 = { # 7000 - 7999 ################################################## -## Eadgar becomes a LAAMP -#ep3_laamps.7000 = { -# type = character_event -# title = ep3_laamps.7000.t -# desc = ep3_laamps.7000.desc -# theme = realm -# left_portrait = { -# character = root -# animation = thinking -# } -# lower_center_portrait = scope:william -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# title:k_england = { -# save_scope_as = england -# holder = { save_scope_as = william } -# } -# location = { -# save_scope_as = location -# } -# primary_heir = { -# save_scope_as = heir -# } -# } -# -# option = { #I'll go to Scotland -# name = ep3_laamps.7000.a -# -# hidden_effect = { -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# add_claim_on_loss = no -# } -# every_held_title = { -# change_title_holder_include_vassals = { -# holder = scope:heir -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# -# create_landless_adventurer_title_effect = { -# REASON = flag:voluntary -# FLAVOR_CHAR = scope:heir -# } -# -# add_trait = gallivanter -# -# start_travel_plan = { -# destination = province:1741 #St Johnston -# players_use_planner = no -# on_start_on_action = on_travel_relocation_start -# on_arrival_on_action = on_travel_relocation_end -# on_arrival_destinations = last -# travel_with_domicile = yes -# return_trip = no # One way -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Norman Italy sounds like fun -# name = ep3_laamps.7000.b -# -# hidden_effect = { -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# add_claim_on_loss = no -# } -# every_held_title = { -# change_title_holder_include_vassals = { -# holder = scope:heir -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -# -# create_landless_adventurer_title_effect = { -# REASON = flag:voluntary -# FLAVOR_CHAR = scope:heir -# } -# -# add_trait = gallivanter -# -# start_travel_plan = { -# destination = province:2619 #Trani -# players_use_planner = no -# on_start_on_action = on_travel_relocation_start -# on_arrival_on_action = on_travel_relocation_end -# on_arrival_destinations = last -# travel_with_domicile = yes -# return_trip = no # One way -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 75 -# ai_value_modifier = { -# ai_boldness = 1 -# ai_energy = 1 -# } -# } -# } -# -# option = { #Maybe I'll stay -# name = ep3_laamps.7000.c -# -# add_prestige = major_prestige_gain -# -# stress_impact = { -# ambitious = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 25 -# ai_value_modifier = { -# ai_boldness = -1 -# ai_energy = -1 -# } -# } -# } -#} -# +# Eadgar becomes a LAAMP +ep3_laamps.7000 = { + type = character_event + title = ep3_laamps.7000.t + desc = ep3_laamps.7000.desc + theme = realm + left_portrait = { + character = root + animation = thinking + } + lower_center_portrait = scope:william + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + title:k_england = { + save_scope_as = england + holder = { save_scope_as = william } + } + location = { + save_scope_as = location + } + primary_heir = { + save_scope_as = heir + } + } + + option = { #I'll go to Scotland + name = ep3_laamps.7000.a + + hidden_effect = { + create_title_and_vassal_change = { + type = granted + save_scope_as = change + add_claim_on_loss = no + } + every_held_title = { + change_title_holder_include_vassals = { + holder = scope:heir + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + + create_landless_adventurer_title_effect = { + REASON = flag:voluntary + FLAVOR_CHAR = scope:heir + } + + add_trait = gallivanter + + start_travel_plan = { + destination = province:1741 #St Johnston + players_use_planner = no + on_start_on_action = on_travel_relocation_start + on_arrival_on_action = on_travel_relocation_end + on_arrival_destinations = last + travel_with_domicile = yes + return_trip = no # One way + } + + stress_impact = { + ambitious = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 0.5 + } + } + } + + option = { #Norman Italy sounds like fun + name = ep3_laamps.7000.b + + hidden_effect = { + create_title_and_vassal_change = { + type = granted + save_scope_as = change + add_claim_on_loss = no + } + every_held_title = { + change_title_holder_include_vassals = { + holder = scope:heir + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + + create_landless_adventurer_title_effect = { + REASON = flag:voluntary + FLAVOR_CHAR = scope:heir + } + + add_trait = gallivanter + + start_travel_plan = { + destination = province:2619 #Trani + players_use_planner = no + on_start_on_action = on_travel_relocation_start + on_arrival_on_action = on_travel_relocation_end + on_arrival_destinations = last + travel_with_domicile = yes + return_trip = no # One way + } + + stress_impact = { + ambitious = minor_stress_impact_loss + } + + ai_chance = { + base = 75 + ai_value_modifier = { + ai_boldness = 1 + ai_energy = 1 + } + } + } + + option = { #Maybe I'll stay + name = ep3_laamps.7000.c + + add_prestige = major_prestige_gain + + stress_impact = { + ambitious = minor_stress_impact_gain + } + + ai_chance = { + base = 25 + ai_value_modifier = { + ai_boldness = -1 + ai_energy = -1 + } + } + } +} + # Siward Barn turns up at Hereward's camp # From Hereward's perspective ep3_laamps.7001 = { diff --git a/events/dlc/ep3/ep3_roman_restoration_events.txt b/events/dlc/ep3/ep3_roman_restoration_events.txt index ed469f58..1da11a6f 100644 --- a/events/dlc/ep3/ep3_roman_restoration_events.txt +++ b/events/dlc/ep3/ep3_roman_restoration_events.txt @@ -44,152 +44,152 @@ ep3_roman_restoration.0001 = { } } } -# -## Should I LARP or nah? -#ep3_roman_restoration.0100 = { -# type = character_event -# window = fullscreen_event -# title = ep3_roman_restoration.0100.t -# desc = ep3_roman_restoration.0100.desc -# theme = emperor -# override_background = { reference = ep3_fullscreen_restore_rome } -# -# immediate = { -# save_scope_as = scoped_emperor -# } -# -# option = { # LARP (Hard Mode) -# name = ep3_roman_restoration.0100.a -# custom_tooltip = ep3_roman_restoration.hard_mode -# custom_tooltip = ep3_roman_restoration.end_hard_mode -# custom_tooltip = ep3_roman_restoration.invasion_cb -# every_held_title = { -# limit = { -# is_head_of_faith = yes -# } -# root = { -# destroy_title = prev -# } -# } -# set_character_faith = faith:hellenic_pagan -# if = { -# limit = { -# faith:hellenic_pagan = { has_doctrine = doctrine_monotheist } -# } -# custom_description_no_bullet = { text = mandala_monotheist_warning_tt } -# } -# primary_title = { set_state_faith = faith:hellenic_pagan } -# every_held_title = { -# custom = custom.every_held_county -# title_tier = county -# set_county_faith = faith:hellenic_pagan -# } -# every_vassal = { -# custom = custom.every_vassal -# limit = { -# NOT = { -# any_held_title = { -# is_head_of_faith = yes # you cannot convert the Ecumenical Patriarch, sorry -# } -# } -# } -# custom_tooltip = { -# text = may_choose_to_convert_hellenic_desc -# run_interaction = { # We use the same interaction as when creating a new faith to keep a consistent behaviour, since that is essentially what you're doing here -# interaction = ask_for_conversion_interaction -# actor = root -# recipient = this -# execute_threshold = accept -# } -# } -# } -# custom_tooltip = { -# text = ep3_roman_restoration.household_gods_tenet -# set_global_variable = household_gods_tenet_unlocked -# } -# custom_tooltip = { -# text = uses_custom_caesar_flavourization_tt -# set_variable = uses_custom_caesar_flavourization -# } -# if = { -# limit = { -# any_owned_story = { type = ep3_story_cycle_restoring_rome } -# } -# random_owned_story = { -# type = ep3_story_cycle_restoring_rome -# set_variable = roman_empire_hard_mode -# } -# } -# } -# -# option = { # Roleplay option (become Hellenic without Hard Mode) -# name = ep3_roman_restoration.0100.c -# custom_tooltip = ep3_roman_restoration.easy_mode -# every_held_title = { -# limit = { -# is_head_of_faith = yes -# } -# root = { -# destroy_title = prev -# } -# } -# set_character_faith = faith:hellenic_pagan -# if = { -# limit = { -# faith:hellenic_pagan = { has_doctrine = doctrine_monotheist } -# } -# custom_description_no_bullet = { text = mandala_monotheist_warning_tt } -# } -# primary_title = { set_state_faith = faith:hellenic_pagan } -# every_held_title = { -# custom = custom.every_held_county -# title_tier = county -# set_county_faith = faith:hellenic_pagan -# } -# every_vassal = { -# custom = custom.every_vassal -# limit = { -# NOT = { -# any_held_title = { -# is_head_of_faith = yes # you cannot convert the Ecumenical Patriarch, sorry -# } -# } -# } -# custom_tooltip = { -# text = may_choose_to_convert_hellenic_desc -# run_interaction = { # We use the same interaction as when creating a new faith to keep a consistent behaviour, since that is essentially what you're doing here -# interaction = ask_for_conversion_interaction -# actor = root -# recipient = this -# execute_threshold = accept -# } -# } -# } -# custom_tooltip = { -# text = ep3_roman_restoration.household_gods_tenet -# set_global_variable = household_gods_tenet_unlocked -# } -# custom_tooltip = { -# text = uses_custom_caesar_flavourization_tt -# set_variable = uses_custom_caesar_flavourization -# } -# } -# -# option = { # Easy Mode -# name = ep3_roman_restoration.0100.b -# custom_tooltip = ep3_roman_restoration.easy_mode -# } -# -# after = { -# create_roman_empire_scripted_effect = yes -# set_nickname_effect = { NICKNAME = nick_the_glorious } -# # Send narrative fluff to other players (if any). -# every_player = { -# limit = { this != root } -# trigger_event = ep3_roman_restoration.0101 -# } -# } -#} + +# Should I LARP or nah? +ep3_roman_restoration.0100 = { + type = character_event + window = fullscreen_event + title = ep3_roman_restoration.0100.t + desc = ep3_roman_restoration.0100.desc + theme = emperor + override_background = { reference = ep3_fullscreen_restore_rome } + + immediate = { + save_scope_as = scoped_emperor + } + + option = { # LARP (Hard Mode) + name = ep3_roman_restoration.0100.a + custom_tooltip = ep3_roman_restoration.hard_mode + custom_tooltip = ep3_roman_restoration.end_hard_mode + custom_tooltip = ep3_roman_restoration.invasion_cb + every_held_title = { + limit = { + is_head_of_faith = yes + } + root = { + destroy_title = prev + } + } + set_character_faith = faith:hellenic_pagan + if = { + limit = { + faith:hellenic_pagan = { has_doctrine = doctrine_monotheist } + } + custom_description_no_bullet = { text = mandala_monotheist_warning_tt } + } + primary_title = { set_state_faith = faith:hellenic_pagan } + every_held_title = { + custom = custom.every_held_county + title_tier = county + set_county_faith = faith:hellenic_pagan + } + every_vassal = { + custom = custom.every_vassal + limit = { + NOT = { + any_held_title = { + is_head_of_faith = yes # you cannot convert the Ecumenical Patriarch, sorry + } + } + } + custom_tooltip = { + text = may_choose_to_convert_hellenic_desc + run_interaction = { # We use the same interaction as when creating a new faith to keep a consistent behaviour, since that is essentially what you're doing here + interaction = ask_for_conversion_interaction + actor = root + recipient = this + execute_threshold = accept + } + } + } + custom_tooltip = { + text = ep3_roman_restoration.household_gods_tenet + set_global_variable = household_gods_tenet_unlocked + } + custom_tooltip = { + text = uses_custom_caesar_flavourization_tt + set_variable = uses_custom_caesar_flavourization + } + if = { + limit = { + any_owned_story = { type = ep3_story_cycle_restoring_rome } + } + random_owned_story = { + type = ep3_story_cycle_restoring_rome + set_variable = roman_empire_hard_mode + } + } + } + + option = { # Roleplay option (become Hellenic without Hard Mode) + name = ep3_roman_restoration.0100.c + custom_tooltip = ep3_roman_restoration.easy_mode + every_held_title = { + limit = { + is_head_of_faith = yes + } + root = { + destroy_title = prev + } + } + set_character_faith = faith:hellenic_pagan + if = { + limit = { + faith:hellenic_pagan = { has_doctrine = doctrine_monotheist } + } + custom_description_no_bullet = { text = mandala_monotheist_warning_tt } + } + primary_title = { set_state_faith = faith:hellenic_pagan } + every_held_title = { + custom = custom.every_held_county + title_tier = county + set_county_faith = faith:hellenic_pagan + } + every_vassal = { + custom = custom.every_vassal + limit = { + NOT = { + any_held_title = { + is_head_of_faith = yes # you cannot convert the Ecumenical Patriarch, sorry + } + } + } + custom_tooltip = { + text = may_choose_to_convert_hellenic_desc + run_interaction = { # We use the same interaction as when creating a new faith to keep a consistent behaviour, since that is essentially what you're doing here + interaction = ask_for_conversion_interaction + actor = root + recipient = this + execute_threshold = accept + } + } + } + custom_tooltip = { + text = ep3_roman_restoration.household_gods_tenet + set_global_variable = household_gods_tenet_unlocked + } + custom_tooltip = { + text = uses_custom_caesar_flavourization_tt + set_variable = uses_custom_caesar_flavourization + } + } + + option = { # Easy Mode + name = ep3_roman_restoration.0100.b + custom_tooltip = ep3_roman_restoration.easy_mode + } + + after = { + create_roman_empire_scripted_effect = yes + set_nickname_effect = { NICKNAME = nick_the_glorious } + # Send narrative fluff to other players (if any). + every_player = { + limit = { this != root } + trigger_event = ep3_roman_restoration.0101 + } + } +} # Some chucklefuck restored Rome ep3_roman_restoration.0101 = { diff --git a/events/dlc/ep3/ep3_story_cycle_harrying_of_the_north_events.txt b/events/dlc/ep3/ep3_story_cycle_harrying_of_the_north_events.txt index 3ef2f61b..1473fd4d 100644 --- a/events/dlc/ep3/ep3_story_cycle_harrying_of_the_north_events.txt +++ b/events/dlc/ep3/ep3_story_cycle_harrying_of_the_north_events.txt @@ -1,4667 +1,4666 @@ -#namespace = ep3_story_cycle_harrying -# -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣀⣀⣤⣴⡞⠀⠀⣀⣴⣿⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⠿⣿⣿⢿⣿⣷⣶⣿⣿⣿⡟⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡏⠀⠈⠁⠘⠿⠟⠛⢉⣽⣿⠃⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡘⠃⠀⠀⠀⠀⠀⠀⢰⣿⣿⣋⣀⡄⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣦⠀⠀⠀⠀⠀⣀⣬⣿⣿⡿⠋⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣷⣄⠀⣀⣀⣻⣿⣏⣉⠀⠀⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣦⡙⢿⣿⣿⣿⣿⣿⡷⠈⠙⠛⠛⠋⠁⠀⠀⠀⠀ -##⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣄⠙⢿⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -##⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⡿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -##⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -##⠀⠀⢀⣴⣿⣿⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -##⠀⠠⣿⣿⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -##⠀⠀⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ -# -#### Maintenance events -### 0001-0999 -## by Nick Meredith -# -## Harrying ends - the Aethelings are no more -#ep3_story_cycle_harrying.0001 = { -# type = character_event -# title = ep3_story_cycle_harrying.0001.t -# desc = { -# desc = ep3_story_cycle_harrying.0001.desc -# first_valid = { -# triggered_desc = { -# trigger = { -# this = scope:ruler_england -# } -# desc = ep3_story_cycle_harrying.0001.desc.william -# } -# triggered_desc = { -# trigger = { -# this = character:90028 -# } -# desc = ep3_story_cycle_harrying.0001.desc.hereward -# } -# desc = ep3_story_cycle_harrying.0001.desc.therest -# } -# } -# -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# trigger = { root != this } -# character = scope:ruler_england -# animation = personality_honorable -# } -# -# immediate = { -# title:k_england.holder = { -# save_scope_as = ruler_england -# } -# title:k_england = { -# save_scope_as = england -# } -# custom_tooltip = harrying_end -# } -# -# option = { # Hereward -# name = ep3_story_cycle_harrying.0001.a -# -# trigger = { -# this = character:90028 -# } -# -# stress_impact = { -# base = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #William -# name = ep3_story_cycle_harrying.0001.b -# -# trigger = { -# this = scope:ruler_england -# } -# -# stress_impact = { -# base = major_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #All others -# name = ep3_story_cycle_harrying.0001.b -# -# trigger = { -# NOR = { -# this = scope:ruler_england -# this = character:90028 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Harrying ends - an Aetheling rules -#ep3_story_cycle_harrying.0002 = { -# type = character_event -# title = ep3_story_cycle_harrying.0002.t -# desc = { -# desc = ep3_story_cycle_harrying.0002.desc -# first_valid = { -# triggered_desc = { -# trigger = { -# this = scope:ruler_england -# } -# desc = ep3_story_cycle_harrying.0002.desc.ruler -# } -# triggered_desc = { -# trigger = { -# this = character:90028 -# } -# desc = ep3_story_cycle_harrying.0002.desc.hereward -# } -# desc = ep3_story_cycle_harrying.0002.desc.therest -# } -# } -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# trigger = { root != this } -# character = scope:ruler_england -# animation = personality_honorable -# } -# -# immediate = { -# title:k_england.holder = { -# save_scope_as = ruler_england -# } -# title:k_england = { -# save_scope_as = england -# } -# custom_tooltip = harrying_end -# } -# -# option = { # Hereward -# name = ep3_story_cycle_harrying.0002.a -# -# trigger = { -# this = character:90028 -# } -# -# stress_impact = { -# base = medium_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Ruler -# name = ep3_story_cycle_harrying.0002.b -# -# trigger = { -# this = scope:ruler_england -# } -# -# stress_impact = { -# base = major_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #All others -# name = ep3_story_cycle_harrying.0002.b -# -# trigger = { -# NOR = { -# this = scope:ruler_england -# this = character:90028 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Harrying ends - neither Normans nor Aethelings rule -#ep3_story_cycle_harrying.0003 = { -# type = character_event -# title = ep3_story_cycle_harrying.0003.t -# desc = ep3_story_cycle_harrying.0003.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# trigger = { root != this } -# character = scope:ruler_england -# animation = personality_honorable -# } -# -# immediate = { -# title:k_england.holder = { -# save_scope_as = ruler_england -# } -# title:k_england = { -# save_scope_as = england -# } -# custom_tooltip = harrying_end -# } -# -# option = { # Hereward -# name = ep3_story_cycle_harrying.0003.a -# -# trigger = { -# this = character:90028 -# } -# -# stress_impact = { -# base = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Ruler -# name = ep3_story_cycle_harrying.0003.b -# -# trigger = { -# this = scope:ruler_england -# } -# -# stress_impact = { -# base = major_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #All others -# name = ep3_story_cycle_harrying.0003.b -# -# trigger = { -# NOR = { -# this = scope:ruler_england -# this = character:90028 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Harrying ends - 100 years have passed -#ep3_story_cycle_harrying.0004 = { -# type = character_event -# title = ep3_story_cycle_harrying.0004.t -# desc = { -# desc = ep3_story_cycle_harrying.0004.desc -# first_valid = { -# triggered_desc = { -# trigger = { -# this = scope:ruler_england -# } -# desc = ep3_story_cycle_harrying.0004.desc.ruler -# } -# triggered_desc = { -# trigger = { -# this.culture = culture:anglo_saxon -# } -# desc = ep3_story_cycle_harrying.0004.desc.anglo_saxon -# } -# desc = ep3_story_cycle_harrying.0004.desc.therest -# } -# } -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# trigger = { root != this } -# character = scope:ruler_england -# animation = personality_honorable -# } -# -# immediate = { -# title:k_england.holder = { -# save_scope_as = ruler_england -# } -# title:k_england = { -# save_scope_as = england -# } -# custom_tooltip = harrying_end -# } -# -# option = { # Anglo-Saxons -# name = ep3_story_cycle_harrying.0004.a -# -# trigger = { -# this.culture = culture:anglo_saxon -# } -# -# stress_impact = { -# base = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Ruler -# name = ep3_story_cycle_harrying.0004.b -# -# trigger = { -# this = scope:ruler_england -# } -# -# stress_impact = { -# base = major_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #All others -# name = ep3_story_cycle_harrying.0004.b -# -# trigger = { -# NOR = { -# this = scope:ruler_england -# this.culture = culture:anglo_saxon -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -################################################### -## William Events -## by Nick Meredith -## 1000-1999 -################################################### -# -##Burn crops -##Burn down villages -##Construct castles -##Improve infrastructure North/South -##Revoke titles -##Slaughter supposed conspirators -##Build spy network -##Rebuild villages in grids -##Decide the fate of a captive Aetheling -##Receive a desperate northerner -##Mutilate a captive -# -## Burn crops -#ep3_story_cycle_harrying.1000 = { -# type = character_event -# title = ep3_story_cycle_harrying.1000.t -# desc = ep3_story_cycle_harrying.1000.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = scheme -# } -# right_portrait = { -# character = scope:aetheling -# animation = anger -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# any_vassal = { -# culture = culture:anglo_saxon -# highest_held_title_tier > tier_county -# } -# } -# -# immediate = { -# random_vassal = { -# limit = { -# culture = culture:anglo_saxon -# highest_held_title_tier > tier_county -# } -# save_scope_as = aetheling -# } -# scope:aetheling.primary_title = { -# save_scope_as = crop_duchy -# } -# ep3_harrying_widget_setup_effect = yes -# -# save_scope_as = root_scope -# } -# -# option = { #Burn all the crops -# name = ep3_story_cycle_harrying.1000.a -# -# add_dread = medium_dread_gain -# -# add_tyranny = minor_tyranny_gain -# -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# -# scope:crop_duchy = { -# change_county_control = 15 -# every_direct_de_jure_vassal_title = { -# custom = every_county_in_duchy_aetheling -# add_county_modifier = { -# modifier = all_crops_burned -# years = 5 -# } -# } -# } -# -# culture = { -# change_cultural_acceptance = { -# target = scope:aetheling.culture -# value = minor_cultural_acceptance_loss -# desc = harrying_of_the_north_tt -# } -# } -# -# stress_impact = { -# wrathful = miniscule_stress_impact_loss -# sadistic = miniscule_stress_impact_loss -# vengeful = minor_stress_impact_loss -# compassionate = major_stress_impact_gain -# forgiving = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 1 -# ai_compassion = -1 -# } -# } -# } -# -# option = { #Burn most of them, leaving enough for subsistence -# name = ep3_story_cycle_harrying.1000.b -# -# add_dread = minor_dread_gain -# -# scope:crop_duchy = { -# change_county_control = 5 -# every_direct_de_jure_vassal_title = { -# custom = every_county_in_duchy_aetheling -# add_county_modifier = { -# modifier = crops_burned -# years = 5 -# } -# } -# } -# -# culture = { -# change_cultural_acceptance = { -# target = scope:aetheling.culture -# value = miniscule_cultural_acceptance_loss -# desc = harrying_of_the_north_tt -# } -# } -# -# stress_impact = { -# calm = miniscule_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# wrathful = minor_stress_impact_gain -# forgiving = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 0.5 -# ai_compassion = -0.5 -# } -# } -# } -# -# option = { #Exact a levy of crops -# name = ep3_story_cycle_harrying.1000.c -# -# add_treasury_or_gold = medium_treasury_or_gold_value -# -# scope:crop_duchy = { -# change_county_control = -10 -# every_direct_de_jure_vassal_title = { -# custom = every_county_in_duchy_aetheling -# add_county_modifier = { -# modifier = crop_levy -# years = 5 -# } -# } -# } -# -# every_vassal = { -# custom = every_minority_vassal -# vassal_stance = minority -# add_opinion = { -# target = root -# modifier = annoyed_opinion -# opinion = -15 -# } -# } -# -# stress_impact = { -# sadistic = medium_stress_impact_gain -# vengeful = major_stress_impact_gain -# compassionate = miniscule_stress_impact_loss -# forgiving = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = -1 -# ai_compassion = 1 -# } -# } -# } -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -## Build on the Great North Road -#ep3_story_cycle_harrying.1005 = { -# type = character_event -# title = ep3_story_cycle_harrying.1005.t -# desc = ep3_story_cycle_harrying.1005.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:marshal -# animation = chancellor -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# any_vassal = { -# culture = culture:anglo_saxon -# } -# OR = { #Ensure owns at least one county on the route -# has_title = title:c_middlesex -# has_title = title:c_hertfordshire -# has_title = title:c_bedford -# has_title = title:c_northamptonshire -# has_title = title:c_leicestershire -# has_title = title:c_nottinghamshire -# has_title = title:c_west_riding -# } -# exists = cp:councillor_marshal -# } -# -# immediate = { -# every_county_in_region = { -# region = world_europe_west_britannia -# limit = { # All counties along the Great North Road...ish -# OR = { -# this = title:c_middlesex -# this = title:c_hertfordshire -# this = title:c_bedford -# this = title:c_northamptonshire -# this = title:c_leicestershire -# this = title:c_nottinghamshire -# this = title:c_west_riding -# } -# OR = { -# holder = root -# holder.top_liege = root -# } -# } -# add_to_list = great_north_road -# } -# cp:councillor_marshal = { -# save_scope_as = marshal -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Rebuild and stock the road with armed guards -# name = ep3_story_cycle_harrying.1005.a -# -# remove_treasury_or_gold = major_treasury_or_gold_value -# -# every_in_list = { -# list = great_north_road -# custom = ep3_story_cycle_harrying.1005.a.tt -# add_county_modifier = { -# modifier = ep3_gnr_guards_modifier -# years = 15 -# } -# } -# -# stress_impact = { -# craven = miniscule_stress_impact_loss -# diligent = miniscule_stress_impact_loss -# lazy = minor_stress_impact_gain -# greedy = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_rationality = 1 -# ai_greed = -1 -# } -# } -# } -# -# option = { #Rebuild the road -# name = ep3_story_cycle_harrying.1005.b -# -# remove_treasury_or_gold = major_treasury_or_gold_value -# -# every_in_list = { -# list = great_north_road -# custom = ep3_story_cycle_harrying.1005.a.tt -# add_county_modifier = { -# modifier = ep3_gnr_modifier -# years = 10 -# } -# } -# -# stress_impact = { -# diligent = miniscule_stress_impact_loss -# lazy = miniscule_stress_impact_gain -# greedy = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -0.5 -# } -# } -# } -# -# option = { #Destroy the northern parts of the road; deny them the passage -# name = ep3_story_cycle_harrying.1005.c -# -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# -# every_in_list = { -# list = great_north_road -# custom = ep3_story_cycle_harrying.1005.c.tt1 -# limit = { -# holder.culture = culture:anglo_saxon -# } -# add_county_modifier = { -# modifier = ep3_gnr_negative_modifier -# years = 10 -# } -# } -# -# stress_impact = { -# callous = miniscule_stress_impact_loss -# sadistic = miniscule_stress_impact_loss -# greedy = miniscule_stress_impact_loss -# vengeful = minor_stress_impact_loss -# compassionate = medium_stress_impact_gain -# just = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 1 -# ai_compassion = -1 -# } -# } -# } -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -## Decide the fate of a captive Aetheling -#ep3_story_cycle_harrying.1010 = { -# type = character_event -# title = ep3_story_cycle_harrying.1010.t -# desc = ep3_story_cycle_harrying.1010.desc -# theme = harrying -# override_background = { reference = dungeon } -# left_portrait = { -# character = root -# animation = spymaster -# } -# right_portrait = { -# character = scope:captured -# animation = prisondungeon -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# any_prisoner = { -# is_ai = yes -# is_adult = yes -# culture = culture:anglo_saxon -# is_lowborn = no -# } -# } -# -# immediate = { -# save_scope_as = actor -# random_prisoner = { -# limit = { -# is_ai = yes -# is_adult = yes -# culture = culture:anglo_saxon -# is_lowborn = no -# } -# save_scope_as = captured -# save_scope_as = recipient -# } -# save_scope_as = root_scope #for tooltip -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Kill him -# name = ep3_story_cycle_harrying.1010.a -# -# execute_prisoner_effect = { -# VICTIM = scope:captured -# EXECUTIONER = root -# } -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# -# stress_impact = { -# callous = miniscule_stress_impact_loss -# sadistic = miniscule_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# compassionate = major_stress_impact_gain -# just = major_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 1 -# ai_honor = -1 -# } -# } -# } -# -# option = { #Mutilate and release him -# name = ep3_story_cycle_harrying.1010.b -# -# add_dread = miniscule_dread_gain -# -# disfigure_recipient_effect = yes -# torture_blind_castrate_disfigure_opinion_effect = { VERB = disfigured } -# -# stress_impact = { -# sadistic = minor_stress_impact_loss -# compassionate = medium_stress_impact_gain -# just = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 0.5 -# ai_honor = -0.5 -# } -# } -# } -# -# option = { #You will be a Norman, now -# name = ep3_story_cycle_harrying.1010.c -# -# duel = { -# skills = { diplomacy intrigue } -# target = scope:captured -# 50 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.1010.c.success -# -# show_as_tooltip = { #To resolve in follow-up, due to learn language scheme -# scope:captured = { -# set_culture = culture:norman -# } -# } -# -# trigger_event = { -# id = ep3_story_cycle_harrying.1011 -# days = { 1 2 } -# } -# } -# 50 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.1010.c.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.1010.c.failure -# -# add_prestige = medium_prestige_loss -# every_vassal = { -# vassal_stance = glory_hound -# custom = every_glory_hound_vassal -# add_opinion = { -# modifier = tournament_mocked_opinion #Re-using -# target = root -# opinion = -15 -# } -# } -# } -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = -1 -# ai_compassion = 1 -# } -# } -# } -# -# option = { #Let them rot -# name = ep3_story_cycle_harrying.1010.d -# -# add_character_modifier = { -# modifier = ep3_honourable_jailor_modifier -# years = 15 -# } -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# sadistic = major_stress_impact_gain -# compassionate = miniscule_stress_impact_loss -# just = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = -1 -# ai_compassion = 1 -# } -# } -# } -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Follow-up on acceptance -#ep3_story_cycle_harrying.1011 = { -# type = character_event -# title = ep3_story_cycle_harrying.1011.t -# desc = { -# desc = ep3_story_cycle_harrying.1011.desc -# triggered_desc = { -# trigger = { -# scope:spouse_courtier = { -# exists = this -# } -# } -# desc = ep3_story_cycle_harrying.1011.desc.spouse -# } -# } -# theme = harrying -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:captured -# animation = happiness -# } -# lower_center_portrait = { -# trigger = { -# scope:spouse_courtier = { -# exists = this -# } -# } -# character = scope:spouse_courtier -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# immediate = { -# if = { #Ugly if/else block starts here! -# limit = { -# scope:captured = { -# can_marry_common_trigger = yes -# is_betrothed = no -# } -# } -# if = { #Grab a courtier -# limit = { -# any_courtier = { -# can_marry_character_trigger = { CHARACTER = scope:captured } -# sex_opposite_of = scope:captured -# culture = culture:norman -# age > scope:captured.age_plus_10 -# age < scope:captured.age_minus_10 -# } -# } -# random_courtier = { -# limit = { -# sex_opposite_of = scope:captured -# can_marry_character_trigger = { CHARACTER = scope:captured } -# culture = culture:norman -# age > scope:captured.age_plus_10 -# age < scope:captured.age_minus_10 -# } -# weight = { -# base = 1 -# modifier = { -# factor = 10 -# is_lowborn = no #Always good to do noble marriages where possible -# } -# modifier = { -# factor = 5 -# is_close_or_extended_family_of = root #And what nobler than the king? -# } -# } -# save_scope_as = spouse_courtier -# } -# } -# else = { #Just in case -# hidden_effect = { -# create_character = { -# location = root.location -# random_traits = yes -# faith = root.faith -# culture = culture:norman -# age = scope:captured.age -# gender_female_chance = { -# if = { -# limit = { scope:captured = { is_female = yes } } -# add = 0 -# } -# else = { add = 100 } -# } -# save_scope_as = spouse_courtier -# } -# } -# } -# } -# -# if = { #Just to ensure she's actually part of your court, if generated -# limit = { -# scope:spouse_courtier = { -# exists = this -# NOT = { -# is_courtier_of = root -# } -# } -# } -# hidden_effect = { -# add_courtier = scope:spouse_courtier -# } -# } -# -# ep3_harrying_widget_setup_effect = yes -# -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# } -# -# option = { #You'll get married to a nice Norman lad/lass! Also learn the language -# name = { -# text = { -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:spouse_courtier = { -# exists = this -# } -# } -# desc = ep3_story_cycle_harrying.1011.a.spouselanguage -# } -# desc = ep3_story_cycle_harrying.1011.a.language -# } -# } -# } -# -# scope:captured = { -# if = { -# limit = { -# scope:spouse_courtier = { -# exists = this -# } -# } -# marry = scope:spouse_courtier -# } -# if = { -# limit = { -# can_start_scheme = { -# type = learn_language -# target_character = root -# } -# } -# start_scheme = { -# type = learn_language -# target_character = root -# } -# } -# release_from_prison = yes -# if = { -# limit = { -# highest_held_title_tier = tier_unlanded -# } -# change_liege = { -# liege = root -# change = scope:change -# } -# add_courtier = scope:captured -# } -# } -# -# reverse_add_opinion = { -# modifier = grateful_opinion -# target = scope:captured -# opinion = 35 -# } -# -# stress_impact = { -# diligent = miniscule_stress_impact_loss -# patient = miniscule_stress_impact_loss -# lazy = miniscule_stress_impact_gain -# impatient = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = -1 -# ai_compassion = 1 -# } -# } -# } -# -# option = { #Go now, and be free -# name = ep3_story_cycle_harrying.1011.b -# -# scope:captured = { -# release_from_prison = yes -# if = { -# limit = { -# highest_held_title_tier = tier_unlanded -# } -# change_liege = { -# liege = root -# change = scope:change -# } -# } -# } -# -# stress_impact = { -# diligent = miniscule_stress_impact_loss -# patient = miniscule_stress_impact_loss -# lazy = miniscule_stress_impact_gain -# impatient = miniscule_stress_impact_gain -# } -# -# reverse_add_opinion = { -# modifier = grateful_opinion -# target = scope:captured -# opinion = 50 -# } -# -# ai_chance = { -# base = 75 -# ai_value_modifier = { -# ai_compassion = 0.5 -# ai_honor = 1 -# } -# } -# } -# -# after = { -# hidden_effect = { -# scope:captured = { -# set_culture = culture:norman -# } -# } -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -#scripted_trigger harrying_1015_trigger = { -# culture = culture:anglo_saxon -# highest_held_title_tier > tier_county -# any_held_title = { -# tier = tier_county -# is_landless_type_title = no -# any_county_province = { -# has_holding = yes -# num_buildings > 0 -# } -# } -#} -# -## Punish a village -#ep3_story_cycle_harrying.1015 = { -# type = character_event -# title = ep3_story_cycle_harrying.1015.t -# desc = ep3_story_cycle_harrying.1015.desc -# theme = harrying -# override_background = { reference = burning_building } -# override_effect_2d = smoke -# left_portrait = { -# character = root -# animation = rage -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# any_vassal = { -# harrying_1015_trigger = yes -# } -# } -# -# immediate = { -# random_vassal = { -# limit = { -# harrying_1015_trigger = yes -# } -# save_scope_as = vassal -# random_held_title = { -# limit = { -# tier = tier_county -# is_landless_type_title = no -# any_county_province = { -# has_holding = yes -# num_buildings > 0 -# } -# } -# random_county_province = { -# limit = { -# has_holding = yes -# num_buildings > 0 -# } -# save_scope_as = offending_village -# every_neighboring_province = { add_to_list = resettlement_villages } -# hidden_effect = { destroy_random_building_variable_effect = yes } -# } -# } -# } -# save_scope_as = root_scope #for tooltip -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Burn it to cinders -# name = ep3_story_cycle_harrying.1015.a -# -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# -# scope:offending_village = { -# destroy_random_building_effect = yes -# add_province_modifier = { -# modifier = ep3_smouldering_village -# years = 15 -# } -# } -# -# stress_impact = { -# callous = minor_stress_impact_loss -# sadistic = minor_stress_impact_loss -# vengeful = minor_stress_impact_loss -# compassionate = major_stress_impact_gain -# just = major_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 1 -# ai_honor = -1 -# } -# } -# } -# -# option = { #Resettle the residents -# name = ep3_story_cycle_harrying.1015.b -# trigger = { -# any_in_list = { -# list = resettlement_villages -# count >= 1 -# } -# } -# -# scope:offending_village = { -# add_province_modifier = { -# modifier = ep3_resettled_village -# years = 15 -# } -# } -# -# every_in_list = { -# list = resettlement_villages -# custom = all_neighbouring_villages -# add_province_modifier = { -# modifier = ep3_population_boost -# years = 15 -# } -# } -# -# stress_impact = { -# sadistic = minor_stress_impact_loss -# compassionate = medium_stress_impact_gain -# just = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 0.5 -# ai_honor = -0.5 -# } -# } -# } -# -# option = { #Leave it be -# name = ep3_story_cycle_harrying.1015.c -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# -# add_tyranny = minor_tyranny_loss -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = -1 -# ai_compassion = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -################################################### -## Aetheling Events -## by Nick Meredith -## 2000-2999 -################################################### -# -##Appeal for Scottish help -##Bleddyn allies with Anglo-Saxons -##Welsh raids into Herefordshire -##Send messages to Europe for knights -##Stoke flames across the country -# -## Recruit levies from starving men -#ep3_story_cycle_harrying.2000 = { -# type = character_event -# title = ep3_story_cycle_harrying.2000.t -# desc = { -# desc = ep3_story_cycle_harrying.2000.desc -# triggered_desc = { -# trigger = { -# NOR = { -# has_trait = callous -# has_trait = sadistic -# } -# } -# desc = ep3_story_cycle_harrying.2000.notcallous -# } -# } -# theme = harrying -# override_background = { reference = alley_day } -# left_portrait = { -# character = root -# animation = sadness -# } -# right_portrait = { -# character = scope:starving_man -# animation = beg -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# location = root.capital_province -# exists = root.cp:councillor_marshal -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# top_liege = { -# save_scope_as = william -# } -# hidden_effect = { -# random_dummy_gender_effect = yes -# create_character = { -# template = new_warrior_character -# location = root.location -# culture = culture:anglo_saxon -# faith = root.location.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = starving_man -# } -# scope:starving_man = { -# change_current_weight = -50 -# } -# } -# root.cp:councillor_marshal = { -# save_scope_as = marshal -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #All of you; you're all hired. -# name = ep3_story_cycle_harrying.2000.a -# -# remove_short_term_gold = major_gold_value -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# -# add_prestige = medium_prestige_gain -# -# scope:location.county = { -# add_county_modifier = { -# modifier = ep3_paid_grains -# years = 10 -# } -# } -# -# trigger_event = { -# id = ep3_story_cycle_harrying.2001 -# days = { 3 6 } -# } -# -# stress_impact = { -# greedy = medium_stress_impact_gain -# callous = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# generous = medium_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_compassion = 1 -# } -# } -# } -# -# option = { #I'll hire you, fine gentleman -# name = ep3_story_cycle_harrying.2000.b -# -# remove_short_term_gold = minor_gold_value -# -# add_courtier = scope:starving_man -# -# stress_impact = { -# greedy = minor_stress_impact_gain -# callous = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# generous = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -0.5 -# ai_compassion = 1 -# } -# } -# } -# -# option = { #Maybe I can try intervening myself? -# name = ep3_story_cycle_harrying.2000.c -# -# duel = { -# skill = stewardship -# value = decent_skill_rating -# 60 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2000.c.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2000.c.success -# -# ep3_decrease_pacification_effect = yes -# -# scope:location.county = { -# add_county_modifier = { -# modifier = ep3_innovative_farming_techniques -# years = 10 -# } -# } -# } -# } -# 40 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2000.c.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2000.c.failure -# -# add_prestige = minor_prestige_loss -# ep3_decrease_resistance_effect = yes -# } -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_loss -# generous = minor_stress_impact_gain -# lazy = minor_stress_impact_gain -# diligent = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_compassion = -0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##You gain event troops! -#ep3_story_cycle_harrying.2001 = { -# type = letter_event -# opening = ep3_story_cycle_harrying.2001.opening -# desc = ep3_story_cycle_harrying.2001.desc -# sender = scope:marshal -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# add_stress = minor_stress_loss -# } -# -# option = { # Wooo! -# name = ep3_story_cycle_harrying.2001.a -# -# spawn_army = { -# name = event_troop_default_name -# levies = 1000 -# location = scope:location -# origin = scope:location -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Reject them for now -# name = ep3_story_cycle_harrying.2001.b -# -# flavor = ep3_story_cycle_harrying.2001.b.tt -# -# scope:location.county = { -# add_county_modifier = { -# modifier = ep3_surplus_manpower -# years = 10 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Recruit murderers to kill Normans -#ep3_story_cycle_harrying.2005 = { -# type = character_event -# title = ep3_story_cycle_harrying.2005.t -# desc = ep3_story_cycle_harrying.2005.desc -# theme = harrying -# override_background = { reference = armory } -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:murderer -# animation = spymaster -# } -# lower_center_portrait = { -# character = scope:spymaster -# } -# cooldown = { years = 20 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# exists = root.cp:councillor_spymaster -# title:k_england.holder = { -# culture = culture:norman -# any_vassal = { -# culture = culture:norman -# capital_province = { -# geographical_region = world_europe_west_britannia -# } -# } -# } -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# top_liege = { -# save_scope_as = william -# } -# scope:william = { -# random_vassal = { -# limit = { -# culture = culture:norman -# capital_province = { -# geographical_region = world_europe_west_britannia -# } -# } -# capital_province.county = { -# save_scope_as = willy_vassal -# } -# } -# } -# hidden_effect = { -# create_character = { -# template = ep3_murderer_template -# location = root.location -# culture = culture:anglo_saxon -# faith = root.location.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = murderer -# } -# } -# root.cp:councillor_spymaster = { -# save_scope_as = spymaster -# } -# scope:william = { -# random_close_family_member = { -# limit = { -# location = { geographical_region = world_europe_west_britannia } -# } -# save_scope_as = willy_family -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Perhaps we need to aim higher... -# name = ep3_story_cycle_harrying.2005.a -# -# trigger = { -# scope:william = { -# any_close_family_member = { -# location = { geographical_region = world_europe_west_britannia } -# } -# } -# } -# -# add_internal_flag = special -# -# pay_short_term_gold = { -# target = scope:murderer -# gold = medium_gold_value -# } -# -# start_scheme = { type = murder target_character = scope:willy_family } -# -# custom_tooltip = diplomacy_family.2250.b.tt -# hidden_effect = { -# random_scheme = { -# type = murder -# limit = { -# scheme_target_character = scope:willy_family -# } -# add_scheme_modifier = { -# type = extra_success_chance_modifier -# } -# } -# } -# -# hidden_effect = { -# scope:murderer = { -# silent_disappearance_effect = yes -# } -# } -# -# stress_impact = { -# vengeful = medium_stress_impact_loss -# sadistic = minor_stress_impact_loss -# forgiving = medium_stress_impact_gain -# greedy = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_compassion = -1 -# } -# } -# } -# -# option = { #Go off and murder some Normans, wouldja? -# name = ep3_story_cycle_harrying.2005.b -# -# flavor = ep3_story_cycle_harrying.2005.b.tt -# -# pay_short_term_gold = { -# target = scope:murderer -# gold = medium_gold_value -# } -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# -# scope:willy_vassal = { -# add_county_modifier = { -# modifier = ep3_murderers_loose -# years = 20 -# } -# } -# -# hidden_effect = { -# scope:murderer = { -# silent_disappearance_effect = yes -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_gain -# callous = minor_stress_impact_loss -# compassionate = minor_stress_impact_gain -# generous = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -0.5 -# } -# } -# } -# -# option = { #Well, you might be handy to have around... -# name = ep3_story_cycle_harrying.2005.c -# -# add_courtier = scope:murderer -# -# stress_impact = { -# lazy = minor_stress_impact_loss -# diligent = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -## Gather support amongst the minor nobles -#ep3_story_cycle_harrying.2010 = { -# type = character_event -# title = ep3_story_cycle_harrying.2010.t -# desc = ep3_story_cycle_harrying.2010.desc -# theme = harrying -# override_background = { reference = throne_room } -# left_portrait = { -# character = root -# animation = chancellor -# } -# cooldown = { years = 15 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# title:k_england.holder = { -# culture = culture:norman -# any_duchy = { -# count > 1 -# } -# } -# } -# -# immediate = { -# top_liege = { -# save_scope_as = william -# } -# scope:william = { -# every_sub_realm_county = { #Choose first one of two random counties -# limit = { -# holder = { -# culture = culture:norman -# } -# } -# add_to_list = county_list -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Rally general support -# name = ep3_story_cycle_harrying.2010.a -# -# duel = { -# skill = diplomacy -# value = decent_skill_rating -# -# 10 = { #It really works -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2010.a.critsuccess -# send_interface_toast = { -# type = event_toast_effect_good -# title = ep3_story_cycle_harrying.2010.a.critsuccess -# left_icon = root -# -# ep3_increase_resistance_large_effect = yes -# } -# } -# -# 50 = { #It works -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# -# desc = ep3_story_cycle_harrying.2010.a.success -# send_interface_toast = { -# type = event_toast_effect_good -# title = ep3_story_cycle_harrying.2010.a.success -# left_icon = root -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# } -# } -# -# 50 = { #It doesn't work -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# -# desc = ep3_story_cycle_harrying.2010.a.failure -# send_interface_toast = { -# type = event_toast_effect_bad -# title = ep3_story_cycle_harrying.2010.a.failure -# left_icon = root -# -# add_prestige = medium_prestige_loss -# } -# } -# -# 10 = { #Message is intercepted and more troops sent -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2010.a.critfailure -# send_interface_toast = { -# type = event_toast_effect_bad -# title = ep3_story_cycle_harrying.2010.a.critfailure -# left_icon = root -# -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# add_prestige = medium_prestige_loss -# } -# } -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# content = medium_stress_impact_gain -# greedy = miniscule_stress_impact_gain -# brave = miniscule_stress_impact_loss -# craven = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# } -# } -# } -# -# option = { #Appeal for extra tax revenue -# name = ep3_story_cycle_harrying.2010.b -# -# duel = { -# skills = { stewardship diplomacy } -# value = decent_skill_rating -# -# 50 = { #Yes! -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2010.b.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2010.b.success -# left_icon = root -# -# add_gold = medium_gold_value -# } -# } -# 50 = { #...no -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2010.b.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2010.b.failure -# left_icon = root -# -# add_prestige = minor_prestige_loss -# ep3_decrease_resistance_effect = yes -# } -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_loss -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# } -# } -# } -# -# option = { #Tell them to save their strength -# name = ep3_story_cycle_harrying.2010.c -# -# -# scope:william = { -# every_sub_realm_county = { -# limit = { -# is_in_list = county_list -# } -# custom = county_list_tt -# random = { -# chance = 5 -# add_county_modifier = { -# modifier = ep3_counties_restless_modifier -# years = 15 -# } -# } -# } -# } -# -# stress_impact = { -# lazy = minor_stress_impact_loss -# diligent = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Forge documents strengthening Aetheling positions -#ep3_story_cycle_harrying.2015 = { -# type = character_event -# title = ep3_story_cycle_harrying.2015.t -# desc = ep3_story_cycle_harrying.2015.desc -# theme = harrying -# override_background = { reference = study } -# left_portrait = { -# character = root -# animation = scheme -# } -# right_portrait = { -# character = scope:chancellor -# animation = chancellor -# } -# lower_center_portrait = { -# trigger = { -# scope:other_vassal = { -# is_alive = yes -# } -# } -# character = scope:other_vassal -# } -# cooldown = { years = 15 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# primary_title.tier >= tier_duchy -# } -# -# immediate = { -# top_liege = { -# save_scope_as = william -# } -# primary_title = { -# save_scope_as = primary_title -# } -# if = { -# limit = { -# scope:william = { -# any_vassal = { -# this != root -# culture = culture:anglo_saxon -# } -# } -# } -# scope:william = { -# random_vassal = { -# limit = { -# this != root -# culture = culture:anglo_saxon -# } -# save_scope_as = other_vassal -# primary_title = { -# save_scope_as = other_vassal_primary_title -# } -# } -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Ensure your titles cannot be revoked -# name = ep3_story_cycle_harrying.2015.a -# -# duel = { -# skills = { diplomacy intrigue } -# target = scope:william -# -# 60 = { #Yes! -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2015.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2015.a.success -# left_icon = root -# right_icon = scope:william -# -# if = { -# limit = { -# vassal_contract_obligation_level_can_be_decreased = title_revocation_rights -# } -# vassal_contract_set_obligation_level = { -# type = title_revocation_rights -# level = 1 -# } -# } -# else = { -# if = { -# limit = { -# can_add_hook = { -# target = scope:william -# type = fabrication_hook -# } -# } -# add_hook = { -# target = scope:william -# type = fabrication_hook -# } -# } -# } -# -# if = { -# limit = { -# scope:other_vassal = { -# is_alive = yes -# vassal_contract_obligation_level_can_be_decreased = title_revocation_rights -# } -# } -# scope:other_vassal = { -# vassal_contract_set_obligation_level = { -# type = title_revocation_rights -# level = 1 -# } -# } -# } -# } -# } -# 40 = { #...no -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.2015.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.2015.a.failure -# left_icon = root -# right_icon = scope:william -# -# if = { -# limit = { -# can_add_hook = { -# target = scope:william -# type = favor_hook -# } -# } -# add_hook = { -# target = scope:william -# type = favor_hook -# } -# } -# if = { -# limit = { -# scope:other_vassal = { -# is_alive = yes -# } -# } -# scope:other_vassal = { -# add_hook = { -# target = scope:william -# type = favor_hook -# } -# } -# } -# } -# } -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# content = medium_stress_impact_gain -# deceitful = miniscule_stress_impact_loss -# brave = miniscule_stress_impact_loss -# craven = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# } -# } -# } -# -# option = { #Reduce Feudal Levies/Taxes -# name = ep3_story_cycle_harrying.2015.b -# -# if = { -# limit = { -# vassal_contract_obligation_level_can_be_decreased = feudal_government_taxes -# } -# vassal_contract_decrease_obligation_level = feudal_government_taxes -# } -# if = { -# limit = { -# vassal_contract_obligation_level_can_be_decreased = feudal_government_levies -# } -# vassal_contract_decrease_obligation_level = feudal_government_levies -# } -# if = { -# limit = { -# scope:other_vassal = { -# is_alive = yes -# } -# } -# scope:other_vassal = { -# if = { -# limit = { -# vassal_contract_obligation_level_can_be_decreased = feudal_government_taxes -# } -# vassal_contract_decrease_obligation_level = feudal_government_taxes -# } -# if = { -# limit = { -# vassal_contract_obligation_level_can_be_decreased = feudal_government_levies -# } -# vassal_contract_decrease_obligation_level = feudal_government_levies -# } -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_loss -# generous = medium_stress_impact_gain -# just = miniscule_stress_impact_gain -# arbitrary = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# } -# } -# } -# -# option = { #Gain Marcher Lord status -# name = ep3_story_cycle_harrying.2015.c -# -# vassal_contract_set_obligation_level = { -# type = special_contract -# level = 2 -# } -# -# scope:other_vassal = { -# vassal_contract_set_obligation_level = { -# type = special_contract -# level = 2 -# } -# } -# -# stress_impact = { -# lazy = minor_stress_impact_loss -# diligent = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -################################################### -## Hereward Events -## by Nick Meredith -## 3000-3999 -################################################### -# -##Rob local church -##William offers to parcel out Cambridgeshire to you -##Call in Danish help -##Heist an artifact from a local noble -##Downgrade local building -##Travel to other areas of the country to gather support -# -## Rob local church -#ep3_story_cycle_harrying.3000 = { -# type = character_event -# title = ep3_story_cycle_harrying.3000.t -# desc = ep3_story_cycle_harrying.3000.desc -# theme = harrying -# override_background = { reference = temple } -# left_portrait = { -# character = root -# animation = scheme -# } -# right_portrait = { -# character = scope:bishop -# animation = beg -# } -# artifact = { -# target = scope:newly_created_artifact -# position = lower_center_portrait -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# location = { save_temporary_scope_as = current_temp } -# scope:current_temp = { -# any_neighboring_province = { -# has_holding_type = church_holding -# } -# } -# } -# -# immediate = { -# location = { -# random_neighboring_province = { -# limit = { -# has_holding_type = church_holding -# } -# save_scope_as = neighboring_church -# } -# } -# hidden_effect = { -# create_character = { -# template = priest_character_template -# location = scope:neighboring_church -# save_scope_as = bishop -# } -# random_dummy_gender_effect = yes -# scope:bishop = { -# create_artifact_brooch_effect = { -# OWNER = scope:bishop -# SMITH = scope:dummy_gender -# } -# } -# scope:newly_created_artifact = { -# set_artifact_name = artifact_church_saint_brooch_name -# set_artifact_description = artifact_church_saint_brooch_description -# add_artifact_modifier = artifact_monthly_piety_4_modifier -# add_artifact_modifier = artifact_same_faith_opinion_4_modifier -# add_artifact_modifier = artifact_clergy_opinion_penalty_5_modifier -# set_artifact_rarity = famed -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Relics, you say? -# name = ep3_story_cycle_harrying.3000.a -# -# add_piety = medium_piety_loss -# -# add_prestige = minor_prestige_loss -# -# scope:newly_created_artifact = { -# set_owner = root -# } -# -# scope:neighboring_church = { -# add_province_modifier = { -# modifier = ep3_church_bereft -# years = 15 -# } -# } -# -# stress_impact = { -# greedy = medium_stress_impact_loss -# callous = miniscule_stress_impact_loss -# compassionate = medium_stress_impact_gain -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_compassion = -1 -# } -# } -# } -# -# option = { #This gold is needed for the war effort, but we'll leave any relics -# name = ep3_story_cycle_harrying.3000.b -# -# flavor = ep3_story_cycle_harrying.3000.b.tt -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# -# add_gold = medium_gold_value -# -# stress_impact = { -# calm = miniscule_stress_impact_loss -# greedy = miniscule_stress_impact_loss -# generous = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 0.5 -# ai_compassion = -0.5 -# } -# } -# } -# -# option = { #I am a man of god, I would never. -# name = ep3_story_cycle_harrying.3000.c -# -# add_piety = medium_piety_gain -# -# add_character_modifier = { -# modifier = ep3_man_of_god -# years = 10 -# } -# -# stress_impact = { -# greedy = medium_stress_impact_gain -# generous = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_compassion = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -## Interdict supply lines -#ep3_story_cycle_harrying.3005 = { -# type = character_event -# title = ep3_story_cycle_harrying.3005.t -# desc = ep3_story_cycle_harrying.3005.desc -# theme = harrying -# override_background = { reference = ep2_hunt_foggy_forest } -# override_effect_2d = fog -# left_portrait = { -# character = root -# animation = inspect_weapon -# } -# right_portrait = { -# character = scope:norman_soldier -# animation = survey -# } -# artifact = { -# target = scope:newly_created_artifact -# position = lower_right_portrait -# } -# -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# random_dummy_gender_effect = yes -# create_character = { -# template = new_warrior_character -# location = root.location -# culture = culture:norman -# faith = root.location.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = norman_soldier -# } -# hidden_effect = { -# scope:norman_soldier = { -# create_artifact = { #Scripted effect didn't like this, so custom weapon it is -# name = norman_sword_name -# description = stolen_norman_sword_description -# type = sword -# visuals = sword -# modifier = artifact_prowess_4_modifier -# modifier = artifact_knight_effectiveness_3_modifier -# modifier = artifact_hard_casualty_modifier_4_modifier -# rarity = masterwork -# save_scope_as = newly_created_artifact -# } -# } -# } -# global_var:harrying_of_the_north.story_owner = { -# save_scope_as = william -# random_vassal = { -# limit = { -# location = { geographical_region = world_europe_west_britannia } #To ensure they're not getting sent to Normandy -# } -# primary_title = { -# save_scope_as = vassal_county -# } -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Grab the equipment for yourself -# name = ep3_story_cycle_harrying.3005.a -# -# duel = { -# skills = { martial prowess } -# target = scope:norman_soldier -# 60 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3005.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3005.a.success -# -# ep3_decrease_pacification_effect = yes -# -# add_character_modifier = { -# modifier = ep3_stolen_equipment -# years = 5 -# } -# -# scope:newly_created_artifact = { -# set_owner = root -# set_artifact_name = stolen_norman_sword_name -# } -# -# scope:vassal_county = { -# add_county_modifier = { -# modifier = ep3_missing_supplies -# years = 15 -# } -# } -# } -# } -# 40 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3005.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3005.a.failure -# -# add_prestige = medium_prestige_loss -# increase_wounds_no_death_effect = { REASON = battle } -# every_knight = { -# custom = every_knight -# add_opinion = { -# modifier = botched_ambush_opinion -# target = root -# opinion = -15 -# } -# } -# } -# } -# } -# -# stress_impact = { -# greedy = medium_stress_impact_loss -# callous = miniscule_stress_impact_loss -# compassionate = miniscule_stress_impact_gain -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Take the equipment for allies -# name = ep3_story_cycle_harrying.3005.b -# -# flavor = ep3_story_cycle_harrying.3005.b.tt -# -# duel = { -# skills = { martial prowess } -# target = scope:norman_soldier -# 60 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3005.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3005.a.success -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# ep3_decrease_pacification_effect = yes -# -# scope:vassal_county = { -# add_county_modifier = { -# modifier = ep3_missing_supplies -# years = 15 -# } -# } -# global_var:harrying_of_the_north.story_owner = { -# every_vassal = { -# limit = { -# culture = culture:anglo_saxon -# } -# custom = every_anglo_vassal -# add_character_modifier = { -# modifier = ep3_redistributed_equipment -# years = 5 -# } -# } -# } -# } -# } -# 40 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3005.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3005.a.failure -# -# add_prestige = medium_prestige_loss -# increase_wounds_no_death_effect = { REASON = battle } -# every_knight = { -# custom = every_knight -# add_opinion = { -# modifier = botched_ambush_opinion -# target = root -# opinion = -15 -# } -# } -# } -# } -# } -# -# stress_impact = { -# arrogant = minor_stress_impact_gain -# greedy = minor_stress_impact_gain -# generous = medium_stress_impact_loss -# humble = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Sabotage the road ahead -# name = ep3_story_cycle_harrying.3005.c -# -# flavor = ep3_story_cycle_harrying.3005.c.tt -# -# scope:location = { -# add_province_modifier = { -# modifier = ep3_sabotaged_roads -# years = 10 -# } -# } -# -# scope:vassal_county = { -# add_county_modifier = { -# modifier = ep3_delayed_supplies -# years = 10 -# } -# } -# -# stress_impact = { -# craven = medium_stress_impact_loss -# brave = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_honor = -0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# scope:norman_soldier = { -# silent_disappearance_effect = yes -# } -# } -#} -# -#scripted_trigger ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { -# location = { -# geographical_region = world_europe_west_britannia -# duchy = root.location.duchy #Same duchy as Hereward -# } -# culture = culture:norman -# is_theocratic_lessee = no #No dueling priests! -# is_adult = yes -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $WILLIAM$ } -# NOT = { has_character_flag = hereward_ambushed } -#} -# -##Ambush Norman noble -#ep3_story_cycle_harrying.3010 = { -# type = character_event -# title = ep3_story_cycle_harrying.3010.t -# desc = ep3_story_cycle_harrying.3010.desc -# theme = harrying -# override_background = { reference = ep2_travel_bridge } -# left_portrait = { -# character = root -# animation = marshal -# } -# right_portrait = { -# character = scope:norman_noble -# animation = aggressive_sword -# } -# artifact = { -# target = scope:newly_created_artifact -# position = lower_right_portrait -# } -# -# cooldown = { years = 5 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# is_healthy = yes -# global_var:harrying_of_the_north.story_owner = { -# save_temporary_scope_as = william_temp -# any_vassal_or_below = { -# ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { WILLIAM = scope:william_temp } -# } -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# global_var:harrying_of_the_north.story_owner = { -# save_scope_as = william -# random_vassal_or_below = { -# limit = { -# ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { WILLIAM = scope:william } -# } -# primary_title = { save_scope_as = noble_county } -# save_scope_as = norman_noble -# add_character_flag = hereward_ambushed -# } -# } -# hidden_effect = { -# random_dummy_gender_effect = yes -# scope:norman_noble = { -# create_artifact_ring_effect = { -# OWNER = scope:norman_noble -# SMITH = scope:dummy_gender -# } -# } -# } -# root = { save_scope_as = root_for_loc } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Fight them -# name = ep3_story_cycle_harrying.3010.a -# -# custom_tooltip = ep3_story_cycle_harrying.3010.a.tt -# -# configure_start_single_combat_effect = { -# SC_INITIATOR = root -# SC_ATTACKER = root -# SC_DEFENDER = scope:norman_noble -# FIXED = no -# FATALITY = always -# LOCALE = ep2_travel_bridge -# OUTPUT_EVENT = ep3_story_cycle_harrying.3011 -# INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this -# } -# -# stress_impact = { -# brave = medium_stress_impact_loss -# wrathful = miniscule_stress_impact_loss -# calm = miniscule_stress_impact_gain -# craven = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 1 -# } -# } -# } -# -# option = { #Simply rob them -# name = ep3_story_cycle_harrying.3010.b -# -# add_short_term_gold = medium_gold_value -# -# scope:newly_created_artifact = { -# set_owner = root -# } -# -# ep3_decrease_pacification_effect = yes -# -# stress_impact = { -# brave = medium_stress_impact_gain -# wrathful = miniscule_stress_impact_gain -# calm = miniscule_stress_impact_loss -# craven = medium_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_energy = -0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Followup, post-duel -#ep3_story_cycle_harrying.3011 = { -# type = character_event -# title = ep3_story_cycle_harrying.3011.t -# desc = ep3_story_cycle_harrying.3011.desc -# theme = harrying -# override_background = { reference = ep2_travel_bridge } -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# right_portrait = { -# character = scope:saxon_soldier_1 -# animation = thinking -# } -# lower_center_portrait = { -# character = scope:saxon_soldier_2 -# } -# -# cooldown = { years = 5 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# is_healthy = yes -# } -# -# immediate = { -# ep3_harrying_widget_setup_effect = yes -# ep3_decrease_pacification_effect = yes -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# scope:newly_created_artifact = { -# set_owner = root -# } -# hidden_effect = { -# random_dummy_gender_effect = yes -# create_character = { -# template = new_warrior_character -# location = root.location -# culture = culture:anglo_saxon -# faith = root.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = saxon_soldier_1 -# } -# create_character = { -# template = new_warrior_character -# location = root.location -# culture = culture:anglo_saxon -# faith = root.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = saxon_soldier_2 -# } -# } -# } -# -# option = { #Would you boys like a job? -# name = ep3_story_cycle_harrying.3011.a -# -# add_courtier = scope:saxon_soldier_1 -# add_courtier = scope:saxon_soldier_2 -# -# stress_impact = { -# forgiving = medium_stress_impact_loss -# vengeful = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_rationality = 1 -# ai_vengefulness = -1 -# } -# } -# } -# -# option = { #Let them return to their families -# name = ep3_story_cycle_harrying.3011.b -# -# hidden_effect = { -# scope:saxon_soldier_1 = { -# silent_disappearance_effect = yes -# } -# scope:saxon_soldier_2 = { -# silent_disappearance_effect = yes -# } -# } -# -# add_character_modifier = { -# modifier = ep3_defender_of_families -# years = 10 -# } -# -# stress_impact = { -# generous = miniscule_stress_impact_loss -# greedy = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Call in Danish help -#ep3_story_cycle_harrying.3015 = { -# type = character_event -# title = ep3_story_cycle_harrying.3015.t -# desc = ep3_story_cycle_harrying.3015.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = writing -# } -# right_portrait = { -# character = scope:danish_king -# animation = thinking -# } -# cooldown = { years = 50 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# is_healthy = yes -# title:k_denmark.holder = { -# is_at_war = no -# is_available_healthy_ai_adult = yes -# } -# title:k_england.holder = { -# is_ai = yes #Just to ensure we don't screw players over -# } -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# title:k_denmark.holder = { -# save_scope_as = danish_king -# } -# hidden_effect = { -# create_character = { -# location = scope:danish_king.location -# template = new_warrior_character -# faith = scope:danish_king.faith -# culture = scope:danish_king.culture -# gender_female_chance = root_soldier_female_chance -# save_scope_as = knight_1 -# } -# create_character = { -# location = scope:danish_king.location -# template = new_berserker_character -# faith = scope:danish_king.faith -# culture = scope:danish_king.culture -# gender_female_chance = root_soldier_female_chance -# save_scope_as = knight_2 -# } -# create_character = { -# location = scope:danish_king.location -# template = new_commander_character -# faith = scope:danish_king.faith -# culture = scope:danish_king.culture -# gender_female_chance = root_soldier_female_chance -# save_scope_as = knight_3 -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Send them a letter begging for them to be your new liege -# name = ep3_story_cycle_harrying.3015.a -# -# duel = { -# skill = diplomacy -# value = decent_skill_rating -# -# 50 = { #He agrees -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3015.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3015.a.success -# left_icon = root -# right_icon = scope:danish_king -# -# scope:danish_king = { -# add_unpressed_claim = title:k_england -# } -# create_alliance = { -# target = scope:danish_king -# allied_through_owner = root -# allied_through_target = scope:danish_king -# } -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# ep3_decrease_pacification_effect = yes -# add_stress = medium_stress_loss -# } -# } -# -# 50 = { #He disagrees -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3015.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3015.a.failure -# -# add_prestige = miniscule_prestige_loss -# ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } -# } -# } -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# brave = miniscule_stress_impact_loss -# content = medium_stress_impact_gain -# craven = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 25 -# ai_value_modifier = { -# ai_energy = 1 -# } -# } -# } -# -# option = { #Send them a letter begging for soldiers -# name = ep3_story_cycle_harrying.3015.b -# -# duel = { -# skills = { diplomacy martial } -# value = decent_skill_rating -# -# 75 = { #He agrees -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3015.b.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3015.b.success -# left_icon = root -# right_icon = scope:danish_king -# -# add_character_flag = soldiers_accepted_flag -# -# add_courtier = scope:knight_1 -# add_courtier = scope:knight_2 -# add_courtier = scope:knight_3 -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# } -# } -# -# 25 = { #He disagrees -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3015.b.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3015.b.failure -# -# add_prestige = miniscule_prestige_loss -# add_stress = minor_stress_gain -# } -# } -# } -# -# stress_impact = { -# patient = miniscule_stress_impact_loss -# impatient = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #We fight this battle alone -# name = ep3_story_cycle_harrying.3015.c -# -# add_character_modifier = { -# modifier = ep3_standing_alone_modifier -# years = 10 -# } -# -# every_courtier_or_guest = { -# custom = every_follower_custom -# add_opinion = { -# target = root -# modifier = impressed_opinion -# opinion = 25 -# } -# } -# -# stress_impact = { -# arrogant = miniscule_stress_impact_loss -# humble = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 50 -# ai_value_modifier = { -# ai_greed = -1 -# ai_energy = -0.5 -# } -# } -# } -# -# after = { -# if = { -# limit = { -# NOT = { -# has_character_flag = soldiers_accepted_flag -# } -# } -# scope:knight_1 = { silent_disappearance_effect = yes } -# scope:knight_2 = { silent_disappearance_effect = yes } -# scope:knight_3 = { silent_disappearance_effect = yes } -# } -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Travel to another area of the country to intimidate a Norman sympathiser -#ep3_story_cycle_harrying.3020 = { -# type = character_event -# title = ep3_story_cycle_harrying.3020.t -# desc = ep3_story_cycle_harrying.3020.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = inspect_weapon -# } -# right_portrait = { -# character = scope:willy_vassal -# animation = dismissal -# } -# cooldown = { years = 10 } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# is_healthy = yes -# title:k_england.holder = { -# save_temporary_scope_as = willy_temp -# any_vassal = { -# culture = culture:anglo_saxon -# capital_province = { geographical_region = world_europe_west_britannia } -# highest_held_title_tier > tier_barony -# opinion = { -# target = scope:willy_temp -# value >= neutral_opinion -# } -# any_courtier = { -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } -# culture = culture:anglo_saxon -# } -# } -# } -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# title:k_england.holder = { -# save_scope_as = willy -# random_vassal = { -# limit = { -# culture = culture:anglo_saxon -# capital_province = { geographical_region = world_europe_west_britannia } -# highest_held_title_tier > tier_barony -# opinion = { -# target = scope:willy -# value >= neutral_opinion -# } -# any_courtier = { -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } -# culture = culture:anglo_saxon -# } -# } -# save_scope_as = willy_vassal -# location = { -# save_scope_as = willy_vassal_capital -# } -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Travel there, raise hell -# name = ep3_story_cycle_harrying.3020.a -# -# custom_tooltip = ep3_story_cycle_harrying.3020.a.tt -# -# start_travel_plan = { -# destination = scope:willy_vassal_capital -# players_use_planner = no -# on_arrival_destinations = last -# on_arrival_event = ep3_story_cycle_harrying.3021 -# return_trip = no -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# brave = miniscule_stress_impact_loss -# content = medium_stress_impact_gain -# craven = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 1 -# } -# } -# } -# -# option = { #Leave it -# name = ep3_story_cycle_harrying.3020.b -# -# ep3_decrease_resistance_effect = yes -# -# stress_impact = { -# patient = miniscule_stress_impact_loss -# impatient = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 50 -# ai_value_modifier = { -# ai_energy = 0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##You arrive and ambush him -#ep3_story_cycle_harrying.3021 = { -# type = character_event -# title = ep3_story_cycle_harrying.3021.t -# desc = ep3_story_cycle_harrying.3021.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = marshal -# } -# right_portrait = { -# character = scope:willy_vassal -# animation = beg -# } -# cooldown = { years = 5 } -# override_background = { reference = alley_night } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_available = yes -# is_healthy = yes -# title:k_england.holder = { -# save_temporary_scope_as = willy_temp -# any_vassal = { -# culture = culture:anglo_saxon -# capital_province = { geographical_region = world_europe_west_britannia } -# highest_held_title_tier > tier_barony -# opinion = { -# target = scope:willy_temp -# value >= neutral_opinion -# } -# location = root.location -# any_courtier = { -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } -# culture = culture:anglo_saxon -# } -# } -# } -# } -# -# immediate = { -# save_scope_as = root_for_loc -# title:k_england.holder = { -# save_scope_as = willy -# random_vassal = { -# limit = { -# culture = culture:anglo_saxon -# capital_province = { geographical_region = world_europe_west_britannia } -# highest_held_title_tier > tier_barony -# opinion = { -# target = scope:willy -# value >= neutral_opinion -# } -# location = root.location -# any_courtier = { -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } -# culture = culture:anglo_saxon -# } -# } -# save_scope_as = willy_vassal -# } -# } -# scope:willy_vassal = { -# random_courtier = { -# limit = { -# can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } -# culture = culture:anglo_saxon -# } -# save_scope_as = knight_1 -# } -# } -# hidden_effect = { -# create_character = { -# template = new_warrior_character -# location = scope:willy_vassal.location -# culture = scope:willy_vassal.culture -# faith = scope:willy_vassal.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = knight_2 -# } -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Kill him and steal his stuff -# name = ep3_story_cycle_harrying.3021.a -# -# custom_tooltip = ep3_story_cycle_harrying.3021.a.tt -# -# configure_start_single_combat_effect = { -# SC_INITIATOR = root -# SC_ATTACKER = root -# SC_DEFENDER = scope:willy_vassal -# FIXED = no -# FATALITY = always -# LOCALE = ep2_travel_bridge -# OUTPUT_EVENT = ep3_story_cycle_harrying.3022 -# INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this -# } -# -# stress_impact = { -# calm = medium_stress_impact_gain -# just = minor_stress_impact_gain -# wrathful = minor_stress_impact_loss -# arbitrary = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 50 -# ai_value_modifier = { -# ai_energy = 1 -# ai_compassion = -1 -# } -# } -# } -# -# option = { #Reason with him -# name = ep3_story_cycle_harrying.3021.b -# -# duel = { -# skill = diplomacy -# target = scope:willy_vassal -# -# 50 = { #You reason successfully -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3021.b.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3021.b.success -# left_icon = root -# right_icon = scope:willy_vassal -# -# scope:willy_vassal = { -# add_opinion = { -# target = scope:willy -# modifier = revanchist_opinion -# opinion = -120 -# } -# } -# scope:willy = { -# add_character_modifier = { -# modifier = ep3_disgruntled_vassals_modifier -# years = 10 -# } -# } -# ep3_decrease_pacification_effect = yes -# } -# } -# -# 50 = { #You are unable to reason with him -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3021.b.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3021.b.failure -# -# add_stress = miniscule_stress_gain -# ep3_decrease_resistance_effect = yes -# } -# } -# } -# -# stress_impact = { -# calm = minor_stress_impact_loss -# just = miniscule_stress_impact_loss -# wrathful = medium_stress_impact_gain -# arbitrary = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_compassion = 1 -# } -# } -# } -# -# option = { #Threaten him -# name = ep3_story_cycle_harrying.3021.c -# -# duel = { -# skill = prowess -# target = scope:willy_vassal -# -# 60 = { #Your threats work -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3021.c.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3021.c.success -# left_icon = root -# right_icon = scope:willy_vassal -# -# scope:willy_vassal = { -# add_opinion = { -# target = scope:willy -# modifier = revanchist_opinion -# opinion = -120 -# } -# } -# scope:willy = { -# add_dread = major_dread_loss -# add_character_modifier = { -# modifier = ep3_disgruntled_vassals_modifier -# years = 10 -# } -# } -# ep3_decrease_pacification_effect = yes -# } -# } -# -# 40 = { #Your threats don't work -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3021.c.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3021.c.failure -# -# add_dread = minor_dread_loss -# add_prestige = minor_prestige_loss -# ep3_decrease_resistance_effect = yes -# } -# } -# } -# -# stress_impact = { -# ambitious = miniscule_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# content = minor_stress_impact_gain -# forgiving = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_compassion = -0.5 -# } -# } -# } -# -# option = { #Take some loyalists and leave him to it -# name = ep3_story_cycle_harrying.3021.d -# -# flavor = ep3_story_cycle_harrying.3021.d.flavour -# -# add_courtier = scope:knight_1 -# add_courtier = scope:knight_2 -# -# ep3_decrease_resistance_effect = yes -# -# stress_impact = { -# patient = miniscule_stress_impact_loss -# impatient = minor_stress_impact_gain -# just = miniscule_stress_impact_loss -# arbitrary = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -##Duel resolution -#ep3_story_cycle_harrying.3022 = { -# type = character_event -# title = ep3_story_cycle_harrying.3022.t -# desc = ep3_story_cycle_harrying.3022.desc -# theme = harrying -# left_portrait = { -# character = root -# animation = marshal -# } -# right_portrait = { -# character = scope:willy_vassal -# animation = dead -# } -# artifact = { -# target = scope:newly_created_artifact -# position = lower_left_portrait -# } -# artifact = { -# target = scope:traitors_head_artifact -# position = lower_right_portrait -# } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# ep3_harrying_widget_setup_effect = yes -# capital_province = { save_scope_as = domicile } -# -# random_dummy_gender_effect = yes -# -# add_gold = { 50 100 } -# -# hidden_effect = { -# scope:willy_vassal = { -# create_artifact_brooch_effect = { -# OWNER = scope:willy_vassal -# SMITH = scope:dummy_gender -# } -# } -# create_artifact = { -# name = traitors_head -# description = traitors_head_description -# type = miscellaneous -# visuals = small_box -# durability = 10 -# max_durability = 10 -# decaying = yes -# modifier = artifact_health_penalty_1_modifier -# modifier = artifact_stress_gain_1_penalty_modifier -# modifier = artifact_attraction_opinion_negative_2_modifier -# creator = root -# rarity = famed -# save_scope_as = traitors_head_artifact -# } -# } -# -# scope:newly_created_artifact = { -# set_owner = root -# } -# } -# -# option = { #Send his head to William -# name = ep3_story_cycle_harrying.3022.a -# -# scope:traitors_head_artifact = { -# set_owner = scope:willy -# } -# -# scope:willy = { -# add_character_modifier = { -# modifier = ep3_life_threatened_modifier -# years = 10 -# } -# } -# -# stress_impact = { -# calm = minor_stress_impact_gain -# just = minor_stress_impact_gain -# wrathful = miniscule_stress_impact_loss -# arbitrary = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 50 -# ai_value_modifier = { -# ai_energy = 1 -# ai_compassion = -1 -# } -# } -# } -# -# option = { #Let everyone know what happens to turncoats -# name = ep3_story_cycle_harrying.3022.b -# -# ep3_increase_resistance_large_effect = yes -# -# if = { -# limit = { -# scope:willy = { -# any_sub_realm_duchy = { -# count > 1 -# holder.culture = culture:norman -# } -# } -# } -# scope:willy = { -# random_sub_realm_duchy = { -# limit = { -# holder.culture = culture:norman -# } -# show_as_tooltip = { -# add_county_modifier = { -# modifier = ep3_impassioned_populace_modifier -# years = 10 -# } -# } -# hidden_effect = { -# every_de_jure_county = { -# add_county_modifier = { -# modifier = ep3_impassioned_populace_modifier -# years = 10 -# } -# } -# } -# save_scope_as = saved_duchy -# } -# random_sub_realm_duchy = { -# limit = { -# holder.culture = culture:norman -# this != scope:saved_duchy -# } -# show_as_tooltip = { -# add_county_modifier = { -# modifier = ep3_impassioned_populace_modifier -# years = 10 -# } -# } -# hidden_effect = { -# every_de_jure_county = { -# add_county_modifier = { -# modifier = ep3_impassioned_populace_modifier -# years = 10 -# } -# } -# } -# } -# } -# } -# -# hidden_effect = { -# destroy_artifact = scope:traitors_head_artifact -# } -# -# stress_impact = { -# calm = minor_stress_impact_loss -# just = miniscule_stress_impact_loss -# wrathful = minor_stress_impact_gain -# arbitrary = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_vengefulness = 1 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# start_travel_plan = { -# destination = scope:domicile -# players_use_planner = no -# on_arrival_destinations = last -# return_trip = no -# } -# } -#} -# -#### EVENT CHAIN: -### Dealing with the Devil -# -##William sends you a letter -#ep3_story_cycle_harrying.3050 = { -# type = letter_event -# opening = ep3_story_cycle_harrying.3050.opening -# desc = ep3_story_cycle_harrying.3050.desc -# sender = scope:william -# cooldown = { years = 100 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_ai = no #Don't even trigger this for AI -# is_imprisoned = no -# is_incapable = no -# global_var:harrying_of_the_north.story_owner = { #King of England -# is_ai = yes -# OR = { #But needs to either have Cambridgeshire or be able to take it off a Norman vassal -# has_title = title:c_cambridgeshire -# any_vassal = { -# culture = culture:norman -# has_title = title:c_cambridgeshire -# } -# } -# } -# } -# -# immediate = { -# global_var:harrying_of_the_north.story_owner = { -# save_scope_as = william -# capital_province.barony = { save_scope_as = london } -# } -# } -# -# option = { # Grimly accept -# name = ep3_story_cycle_harrying.3050.a -# -# custom_tooltip = ep3_story_cycle_harrying.3050.a.tt -# -# every_character_active_contract = { invalidate_contract = yes } -# -# start_travel_plan = { -# destination = scope:william.capital_province -# players_use_planner = no -# on_arrival_event = ep3_story_cycle_harrying.3051 -# on_arrival_destinations = last -# return_trip = no -# } -# -# ai_chance = { #Just in case -# base = 0 -# } -# } -# -# option = { # Refuse -# name = ep3_story_cycle_harrying.3050.b -# -# reverse_add_opinion = { -# target = scope:william -# modifier = disrespect_opinion -# opinion = -40 -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -##You meet William -#ep3_story_cycle_harrying.3051 = { -# type = character_event -# title = ep3_story_cycle_harrying.3051.t -# desc = ep3_story_cycle_harrying.3051.desc -# theme = harrying -# override_background = { reference = throne_room } -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# right_portrait = { -# character = scope:william -# animation = thinking -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# } -# -# option = { #Greet him cheekily -# name = ep3_story_cycle_harrying.3051.a -# -# duel = { -# skill = diplomacy -# value = decent_skill_rating -# -# 70 = { #He's lets it slide -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3051.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3051.a.success -# left_icon = root -# right_icon = scope:william -# -# if = { -# limit = { -# scope:william = { -# this = character:140 -# } -# } -# scope:william = { -# add_legitimacy = miniscule_legitimacy_loss -# every_vassal = { -# limit = { -# culture = culture:anglo_saxon -# } -# custom = every_anglo_vassal -# add_opinion = { -# modifier = bantered_with_the_bastard_opinion -# target = root -# opinion = 10 -# } -# } -# } -# } -# else = { -# scope:william = { -# add_legitimacy = miniscule_legitimacy_loss -# every_vassal = { -# limit = { -# culture = culture:anglo_saxon -# } -# custom = every_anglo_vassal -# add_opinion = { -# modifier = bantered_with_the_devil_opinion -# target = root -# opinion = 10 -# } -# } -# } -# } -# } -# } -# -# 30 = { #He's annoyed by your levity -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3051.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3051.a.failure -# -# add_prestige = miniscule_prestige_loss -# } -# } -# } -# -# stress_impact = { -# greedy = medium_stress_impact_loss -# callous = miniscule_stress_impact_loss -# compassionate = miniscule_stress_impact_gain -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Stay silent -# name = ep3_story_cycle_harrying.3051.b -# -# flavor = ep3_story_cycle_harrying.3051.b.tt -# -# stress_impact = { -# arrogant = minor_stress_impact_gain -# greedy = minor_stress_impact_gain -# generous = medium_stress_impact_loss -# humble = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_energy = 0.5 -# } -# } -# } -# -# -# after = { -# trigger_event = { -# id = ep3_story_cycle_harrying.3052 -# days = 1 -# } -# } -#} -# -##William offers to give you Cambridgeshire -#ep3_story_cycle_harrying.3052 = { -# type = character_event -# title = ep3_story_cycle_harrying.3052.t -# desc = ep3_story_cycle_harrying.3052.desc -# theme = harrying -# override_background = { reference = throne_room } -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:william -# animation = disapproval -# } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# cooldown = { years = 10 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# title:c_cambridgeshire = { save_scope_as = cambridgeshire } -# father = { -# save_scope_as = father -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Take his offer -# name = ep3_story_cycle_harrying.3052.a -# -# flavor = ep3_story_cycle_harrying.3052.a.flavor -# custom_tooltip = ep3_story_cycle_harrying.3052.a.tt -# -# add_prestige = medium_prestige_loss -# -# if = { -# limit = { -# scope:cambridgeshire.holder = { -# this != scope:william -# } -# } -# scope:cambridgeshire.holder = { -# add_opinion = { -# target = scope:william -# modifier = angry_opinion -# opinion = -40 -# } -# } -# } -# -# trigger_event = { -# id = ep3_story_cycle_harrying.3053 -# days = 1 -# } -# -# stress_impact = { -# greedy = medium_stress_impact_loss -# callous = miniscule_stress_impact_loss -# compassionate = miniscule_stress_impact_gain -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Turn down his offer -# name = ep3_story_cycle_harrying.3052.b -# -# ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } -# -# reverse_add_opinion = { -# target = scope:william -# modifier = angry_opinion -# opinion = -65 -# } -# -# trigger_event = { -# id = ep3_story_cycle_harrying.3054 -# days = 1 -# } -# -# stress_impact = { -# arrogant = minor_stress_impact_gain -# greedy = minor_stress_impact_gain -# generous = medium_stress_impact_loss -# humble = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_energy = 0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# } -#} -# -#scripted_effect ep3_story_cycle_harrying_3053_process_vassalisation_effect = { -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# } -# if = { -# limit = { -# scope:duke_norfolk ?= { is_vassal_of = scope:william } -# } -# change_liege = { -# liege = scope:duke_norfolk -# change = scope:change -# } -# add_truce_both_ways = { -# character = scope:william -# years = 100 -# name = fp3_landed_zanj_reason #Re-using this -# } -# add_truce_both_ways = { -# character = scope:duke_norfolk -# years = 100 -# name = fp3_landed_zanj_reason #Re-using this -# } -# } -# else = { -# change_liege = { -# liege = scope:william -# change = scope:change -# } -# add_truce_both_ways = { -# character = scope:william -# years = 100 -# name = fp3_landed_zanj_reason #Re-using this -# } -# } -# resolve_title_and_vassal_change = scope:change -#} -# -##You accept his offer -#ep3_story_cycle_harrying.3053 = { -# type = character_event -# title = ep3_story_cycle_harrying.3053.t -# desc = ep3_story_cycle_harrying.3053.desc -# theme = harrying -# override_background = { reference = throne_room } -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:william -# animation = disapproval -# } -# lower_right_portrait = scope:duke_norfolk -# cooldown = { years = 10 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# scope:cambridgeshire.duchy.holder ?= { save_scope_as = duke_norfolk } -# } -# -# option = { #Recant your decision -# name = ep3_story_cycle_harrying.3053.a -# -# add_prestige = medium_prestige_gain -# -# trigger_event = { -# id = ep3_story_cycle_harrying.3054 -# days = 1 -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #Accept -# name = ep3_story_cycle_harrying.3053.b -# -# custom_tooltip = ep3_story_cycle_harrying.3053.b.tt -# -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# } -# scope:cambridgeshire = { -# change_title_holder_include_vassals = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# # We need to do this here to account for you already being duke tier. -# show_as_tooltip = { ep3_story_cycle_harrying_3053_process_vassalisation_effect = yes } -# save_scope_value_as = { -# name = settled_option -# value = yes -# } -# add_character_flag = hereward_settled_flag -# -# ep3_decrease_resistance_effect = yes -# ep3_increase_pacification_large_effect = yes -# -# if = { -# limit = { -# has_nickname = nick_the_wake -# } -# remove_nickname = yes -# } -# -# give_nickname = nick_iscariot -# -# remove_trait = the_wake -# -# start_travel_plan = { -# destination = root.capital_province -# players_use_planner = no -# on_arrival_destinations = last -# return_trip = no -# } -# -# scope:william = { -# add_stress = major_stress_loss -# } -# -# ai_chance = { -# base = 0 -# } -# } -# -# after = { -# # We need to do this here to account for you already being duke tier. -# hidden_effect = { -# if = { -# limit = { exists = scope:settled_option } -# ep3_story_cycle_harrying_3053_process_vassalisation_effect = yes -# } -# } -# } -#} -# -##You decline his offer -#ep3_story_cycle_harrying.3054 = { -# type = character_event -# title = ep3_story_cycle_harrying.3054.t -# desc = ep3_story_cycle_harrying.3054.desc -# theme = harrying -# override_background = { reference = throne_room } -# left_portrait = { -# character = root -# animation = dismissal -# } -# right_portrait = { -# character = scope:william -# animation = rage -# } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# location = { -# save_scope_as = location -# } -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Try to fight your way out -# name = ep3_story_cycle_harrying.3054.a -# -# duel = { -# skill = prowess -# value = very_high_skill_rating -# -# 25 = { #You escape! -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3054.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3054.a.success -# left_icon = root -# -# add_prestige = major_prestige_gain -# -# scope:william = { -# add_prestige = major_prestige_loss -# } -# } -# -# start_travel_plan = { -# destination = root.domicile.domicile_location -# players_use_planner = no -# on_arrival_destinations = last -# return_trip = no -# } -# } -# 75 = { #You are caught, beaten, and carted down to the cells -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3054.a.failure -# -# trigger_event = { -# id = ep3_story_cycle_harrying.3055 -# days = 1 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3054.a.failure -# -# ep3_decrease_resistance_effect = yes -# -# add_prestige = medium_prestige_loss -# -# increase_wounds_no_death_effect = { REASON = fight } -# -# scope:william = { -# imprison = { -# target = root -# type = dungeon -# } -# } -# } -# } -# } -# -# stress_impact = { -# greedy = medium_stress_impact_loss -# callous = miniscule_stress_impact_loss -# compassionate = miniscule_stress_impact_gain -# generous = medium_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = 1 -# ai_energy = 0.5 -# } -# } -# } -# -# option = { #Allow yourself to be taken to the dungeons -# name = ep3_story_cycle_harrying.3054.b -# -# flavor = ep3_story_cycle_harrying.3054.b.tt -# -# ep3_decrease_resistance_effect = yes -# -# add_prestige = minor_prestige_loss -# -# scope:william = { -# imprison = { -# target = root -# type = dungeon -# } -# } -# -# trigger_event = { -# id = ep3_story_cycle_harrying.3055 -# days = 1 -# } -# -# stress_impact = { -# arrogant = minor_stress_impact_gain -# greedy = minor_stress_impact_gain -# generous = medium_stress_impact_loss -# humble = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# ai_energy = 0.5 -# } -# } -# } -# -# after = { -# ep3_harrying_widget_clear_effect = yes -# # Since we sent custom imprisonment events, we want to block the default ones. -# hidden_effect = { -# add_character_flag = { -# flag = block_imprisonment_event -# days = 2 -# } -# } -# } -#} -# -##You are thrown in the dungeon -#ep3_story_cycle_harrying.3055 = { -# type = character_event -# title = ep3_story_cycle_harrying.3055.t -# desc = ep3_story_cycle_harrying.3055.desc -# theme = harrying -# override_background = { reference = dungeon } -# left_portrait = { -# character = root -# animation = prisondungeon -# outfit_tags = { beggar_rags } -# } -# right_portrait = { -# character = scope:william -# animation = schadenfreude -# } -# lower_center_portrait = { -# character = scope:sympathetic_courtier -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_imprisoned = yes -# imprisoner = scope:william -# } -# -# immediate = { -# if = { -# limit = { -# scope:william = { -# any_courtier = { -# culture = culture:anglo_saxon -# } -# } -# } -# scope:william = { -# random_courtier = { -# limit = { -# culture = culture:anglo_saxon -# } -# save_scope_as = sympathetic_courtier -# } -# } -# } -# else = { -# hidden_effect = { -# create_character = { -# employer = scope:william -# template = servant_character -# gender_female_chance = 50 -# culture = culture:anglo_saxon -# faith = root.faith -# save_scope_as = sympathetic_courtier -# } -# scope:william = { -# add_courtier = scope:sympathetic_courtier -# } -# } -# } -# add_character_flag = harrying_imprisoned_flag -# } -# -# option = { #You look around your cell -# name = ep3_story_cycle_harrying.3055.a -# -# stress_impact = { -# base = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_story_cycle_harrying.3056 -# days = { 30 40 } -# } -# } -#} -# -## A mysterious letter appears -#ep3_story_cycle_harrying.3056 = { -# type = character_event -# window = anonymous_letter_event -# title = debug.0002.t -# desc = ep3_story_cycle_harrying.3056.desc -# theme = harrying -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_imprisoned = yes -# imprisoner = scope:william -# } -# -# option = { # A lifeline! -# name = ep3_story_cycle_harrying.3056.a -# -# stress_impact = { -# base = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_story_cycle_harrying.3057 -# days = { 2 4 } -# } -# } -#} -# -##You are sprung free! -#ep3_story_cycle_harrying.3057 = { -# type = character_event -# title = ep3_story_cycle_harrying.3057.t -# desc = ep3_story_cycle_harrying.3057.desc -# theme = harrying -# override_background = { reference = alley_night } -# -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# right_portrait = { -# character = scope:sympathetic_courtier -# animation = survey -# outfit_tags = { western_stealth_hood } -# } -# widget = { -# gui = "event_window_widget_harrying" -# container = "custom_widgets_container" -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_imprisoned = yes -# imprisoner = scope:william -# } -# -# immediate = { -# ep3_harrying_widget_setup_effect = yes -# } -# -# option = { #Come with me! -# name = ep3_story_cycle_harrying.3057.a -# -# duel = { -# skill = diplomacy -# value = decent_skill_rating -# 50 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3057.a.success -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3057.a.success -# left_icon = root -# right_icon = scope:sympathetic_courtier -# -# add_courtier = scope:sympathetic_courtier -# -# reverse_add_opinion = { -# target = scope:sympathetic_courtier -# modifier = pleased_opinion -# opinion = 15 -# } -# -# hidden_effect = { -# start_travel_plan = { -# destination = root.domicile.domicile_location -# players_use_planner = no -# on_arrival_destinations = last -# return_trip = no -# } -# } -# } -# } -# 50 = { -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# min = -49 -# } -# desc = ep3_story_cycle_harrying.3057.a.failure -# -# send_interface_toast = { -# title = ep3_story_cycle_harrying.3057.a.failure -# left_icon = root -# right_icon = scope:sympathetic_courtier -# -# add_stress = miniscule_stress_gain -# } -# } -# } -# -# release_from_prison = yes #Used here for event order reasons -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #I will always remember you. -# name = ep3_story_cycle_harrying.3057.b -# -# #scope:sympathetic_courtier = { #In case we ever wanna use him for something -# # add_character_flag = sympathetic_courtier_flag -# #} -# -# stress_impact = { -# base = minor_stress_impact_loss -# } -# -# release_from_prison = yes #Used here for event order reasons -# -# ai_chance = { -# base = 100 -# } -# } -# -# after = { -# start_travel_plan = { -# destination = root.domicile.domicile_location -# players_use_planner = no -# on_arrival_destinations = last -# return_trip = no -# } -# scope:sympathetic_courtier = { -# add_stress = medium_stress_loss #Prevent errors -# } -# ep3_harrying_widget_clear_effect = yes -# remove_character_flag = harrying_imprisoned_flag -# } -#} -# \ No newline at end of file +namespace = ep3_story_cycle_harrying + +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⣿⣀⣀⣤⣴⡞⠀⠀⣀⣴⣿⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⠿⣿⣿⢿⣿⣷⣶⣿⣿⣿⡟⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡏⠀⠈⠁⠘⠿⠟⠛⢉⣽⣿⠃⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡘⠃⠀⠀⠀⠀⠀⠀⢰⣿⣿⣋⣀⡄⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣾⣿⣿⣦⠀⠀⠀⠀⠀⣀⣬⣿⣿⡿⠋⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣷⣄⠀⣀⣀⣻⣿⣏⣉⠀⠀⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣦⡙⢿⣿⣿⣿⣿⣿⡷⠈⠙⠛⠛⠋⠁⠀⠀⠀⠀ +#⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⣿⣿⣿⣄⠙⢿⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +#⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⣿⣿⡿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +#⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +#⠀⠀⢀⣴⣿⣿⣿⠿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +#⠀⠠⣿⣿⠟⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ +#⠀⠀⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ + +### Maintenance events +## 0001-0999 +# by Nick Meredith + +# Harrying ends - the Aethelings are no more +ep3_story_cycle_harrying.0001 = { + type = character_event + title = ep3_story_cycle_harrying.0001.t + desc = { + desc = ep3_story_cycle_harrying.0001.desc + first_valid = { + triggered_desc = { + trigger = { + this = scope:ruler_england + } + desc = ep3_story_cycle_harrying.0001.desc.william + } + triggered_desc = { + trigger = { + this = character:90028 + } + desc = ep3_story_cycle_harrying.0001.desc.hereward + } + desc = ep3_story_cycle_harrying.0001.desc.therest + } + } + + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + trigger = { root != this } + character = scope:ruler_england + animation = personality_honorable + } + + immediate = { + title:k_england.holder = { + save_scope_as = ruler_england + } + title:k_england = { + save_scope_as = england + } + custom_tooltip = harrying_end + } + + option = { # Hereward + name = ep3_story_cycle_harrying.0001.a + + trigger = { + this = character:90028 + } + + stress_impact = { + base = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + } + } + + option = { #William + name = ep3_story_cycle_harrying.0001.b + + trigger = { + this = scope:ruler_england + } + + stress_impact = { + base = major_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #All others + name = ep3_story_cycle_harrying.0001.b + + trigger = { + NOR = { + this = scope:ruler_england + this = character:90028 + } + } + + ai_chance = { + base = 100 + } + } +} + +# Harrying ends - an Aetheling rules +ep3_story_cycle_harrying.0002 = { + type = character_event + title = ep3_story_cycle_harrying.0002.t + desc = { + desc = ep3_story_cycle_harrying.0002.desc + first_valid = { + triggered_desc = { + trigger = { + this = scope:ruler_england + } + desc = ep3_story_cycle_harrying.0002.desc.ruler + } + triggered_desc = { + trigger = { + this = character:90028 + } + desc = ep3_story_cycle_harrying.0002.desc.hereward + } + desc = ep3_story_cycle_harrying.0002.desc.therest + } + } + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + trigger = { root != this } + character = scope:ruler_england + animation = personality_honorable + } + + immediate = { + title:k_england.holder = { + save_scope_as = ruler_england + } + title:k_england = { + save_scope_as = england + } + custom_tooltip = harrying_end + } + + option = { # Hereward + name = ep3_story_cycle_harrying.0002.a + + trigger = { + this = character:90028 + } + + stress_impact = { + base = medium_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { # Ruler + name = ep3_story_cycle_harrying.0002.b + + trigger = { + this = scope:ruler_england + } + + stress_impact = { + base = major_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #All others + name = ep3_story_cycle_harrying.0002.b + + trigger = { + NOR = { + this = scope:ruler_england + this = character:90028 + } + } + + ai_chance = { + base = 100 + } + } +} + +# Harrying ends - neither Normans nor Aethelings rule +ep3_story_cycle_harrying.0003 = { + type = character_event + title = ep3_story_cycle_harrying.0003.t + desc = ep3_story_cycle_harrying.0003.desc + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + trigger = { root != this } + character = scope:ruler_england + animation = personality_honorable + } + + immediate = { + title:k_england.holder = { + save_scope_as = ruler_england + } + title:k_england = { + save_scope_as = england + } + custom_tooltip = harrying_end + } + + option = { # Hereward + name = ep3_story_cycle_harrying.0003.a + + trigger = { + this = character:90028 + } + + stress_impact = { + base = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { # Ruler + name = ep3_story_cycle_harrying.0003.b + + trigger = { + this = scope:ruler_england + } + + stress_impact = { + base = major_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #All others + name = ep3_story_cycle_harrying.0003.b + + trigger = { + NOR = { + this = scope:ruler_england + this = character:90028 + } + } + + ai_chance = { + base = 100 + } + } +} + +# Harrying ends - 100 years have passed +ep3_story_cycle_harrying.0004 = { + type = character_event + title = ep3_story_cycle_harrying.0004.t + desc = { + desc = ep3_story_cycle_harrying.0004.desc + first_valid = { + triggered_desc = { + trigger = { + this = scope:ruler_england + } + desc = ep3_story_cycle_harrying.0004.desc.ruler + } + triggered_desc = { + trigger = { + this.culture = culture:anglo_saxon + } + desc = ep3_story_cycle_harrying.0004.desc.anglo_saxon + } + desc = ep3_story_cycle_harrying.0004.desc.therest + } + } + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + trigger = { root != this } + character = scope:ruler_england + animation = personality_honorable + } + + immediate = { + title:k_england.holder = { + save_scope_as = ruler_england + } + title:k_england = { + save_scope_as = england + } + custom_tooltip = harrying_end + } + + option = { # Anglo-Saxons + name = ep3_story_cycle_harrying.0004.a + + trigger = { + this.culture = culture:anglo_saxon + } + + stress_impact = { + base = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { # Ruler + name = ep3_story_cycle_harrying.0004.b + + trigger = { + this = scope:ruler_england + } + + stress_impact = { + base = major_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #All others + name = ep3_story_cycle_harrying.0004.b + + trigger = { + NOR = { + this = scope:ruler_england + this.culture = culture:anglo_saxon + } + } + + ai_chance = { + base = 100 + } + } +} + +################################################## +# William Events +# by Nick Meredith +# 1000-1999 +################################################## + +#Burn crops +#Burn down villages +#Construct castles +#Improve infrastructure North/South +#Revoke titles +#Slaughter supposed conspirators +#Build spy network +#Rebuild villages in grids +#Decide the fate of a captive Aetheling +#Receive a desperate northerner +#Mutilate a captive + +# Burn crops +ep3_story_cycle_harrying.1000 = { + type = character_event + title = ep3_story_cycle_harrying.1000.t + desc = ep3_story_cycle_harrying.1000.desc + theme = harrying + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:aetheling + animation = anger + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + any_vassal = { + culture = culture:anglo_saxon + highest_held_title_tier > tier_county + } + } + + immediate = { + random_vassal = { + limit = { + culture = culture:anglo_saxon + highest_held_title_tier > tier_county + } + save_scope_as = aetheling + } + scope:aetheling.primary_title = { + save_scope_as = crop_duchy + } + ep3_harrying_widget_setup_effect = yes + + save_scope_as = root_scope + } + + option = { #Burn all the crops + name = ep3_story_cycle_harrying.1000.a + + add_dread = medium_dread_gain + + add_tyranny = minor_tyranny_gain + + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + + scope:crop_duchy = { + change_county_control = 15 + every_direct_de_jure_vassal_title = { + custom = every_county_in_duchy_aetheling + add_county_modifier = { + modifier = all_crops_burned + years = 5 + } + } + } + + culture = { + change_cultural_acceptance = { + target = scope:aetheling.culture + value = minor_cultural_acceptance_loss + desc = harrying_of_the_north_tt + } + } + + stress_impact = { + wrathful = miniscule_stress_impact_loss + sadistic = miniscule_stress_impact_loss + vengeful = minor_stress_impact_loss + compassionate = major_stress_impact_gain + forgiving = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 1 + ai_compassion = -1 + } + } + } + + option = { #Burn most of them, leaving enough for subsistence + name = ep3_story_cycle_harrying.1000.b + + add_dread = minor_dread_gain + + scope:crop_duchy = { + change_county_control = 5 + every_direct_de_jure_vassal_title = { + custom = every_county_in_duchy_aetheling + add_county_modifier = { + modifier = crops_burned + years = 5 + } + } + } + + culture = { + change_cultural_acceptance = { + target = scope:aetheling.culture + value = miniscule_cultural_acceptance_loss + desc = harrying_of_the_north_tt + } + } + + stress_impact = { + calm = miniscule_stress_impact_loss + vengeful = miniscule_stress_impact_loss + wrathful = minor_stress_impact_gain + forgiving = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 0.5 + ai_compassion = -0.5 + } + } + } + + option = { #Exact a levy of crops + name = ep3_story_cycle_harrying.1000.c + + add_treasury_or_gold = medium_treasury_or_gold_value + + scope:crop_duchy = { + change_county_control = -10 + every_direct_de_jure_vassal_title = { + custom = every_county_in_duchy_aetheling + add_county_modifier = { + modifier = crop_levy + years = 5 + } + } + } + + every_vassal = { + custom = every_minority_vassal + vassal_stance = minority + add_opinion = { + target = root + modifier = annoyed_opinion + opinion = -15 + } + } + + stress_impact = { + sadistic = medium_stress_impact_gain + vengeful = major_stress_impact_gain + compassionate = miniscule_stress_impact_loss + forgiving = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = -1 + ai_compassion = 1 + } + } + } + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +# Build on the Great North Road +ep3_story_cycle_harrying.1005 = { + type = character_event + title = ep3_story_cycle_harrying.1005.t + desc = ep3_story_cycle_harrying.1005.desc + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:marshal + animation = chancellor + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + any_vassal = { + culture = culture:anglo_saxon + } + OR = { #Ensure owns at least one county on the route + has_title = title:c_middlesex + has_title = title:c_hertfordshire + has_title = title:c_bedford + has_title = title:c_northamptonshire + has_title = title:c_leicestershire + has_title = title:c_nottinghamshire + has_title = title:c_west_riding + } + exists = cp:councillor_marshal + } + + immediate = { + every_county_in_region = { + region = world_europe_west_britannia + limit = { # All counties along the Great North Road...ish + OR = { + this = title:c_middlesex + this = title:c_hertfordshire + this = title:c_bedford + this = title:c_northamptonshire + this = title:c_leicestershire + this = title:c_nottinghamshire + this = title:c_west_riding + } + OR = { + holder = root + holder.top_liege = root + } + } + add_to_list = great_north_road + } + cp:councillor_marshal = { + save_scope_as = marshal + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Rebuild and stock the road with armed guards + name = ep3_story_cycle_harrying.1005.a + + remove_treasury_or_gold = major_treasury_or_gold_value + + every_in_list = { + list = great_north_road + custom = ep3_story_cycle_harrying.1005.a.tt + add_county_modifier = { + modifier = ep3_gnr_guards_modifier + years = 15 + } + } + + stress_impact = { + craven = miniscule_stress_impact_loss + diligent = miniscule_stress_impact_loss + lazy = minor_stress_impact_gain + greedy = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_rationality = 1 + ai_greed = -1 + } + } + } + + option = { #Rebuild the road + name = ep3_story_cycle_harrying.1005.b + + remove_treasury_or_gold = major_treasury_or_gold_value + + every_in_list = { + list = great_north_road + custom = ep3_story_cycle_harrying.1005.a.tt + add_county_modifier = { + modifier = ep3_gnr_modifier + years = 10 + } + } + + stress_impact = { + diligent = miniscule_stress_impact_loss + lazy = miniscule_stress_impact_gain + greedy = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -0.5 + } + } + } + + option = { #Destroy the northern parts of the road; deny them the passage + name = ep3_story_cycle_harrying.1005.c + + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + + every_in_list = { + list = great_north_road + custom = ep3_story_cycle_harrying.1005.c.tt1 + limit = { + holder.culture = culture:anglo_saxon + } + add_county_modifier = { + modifier = ep3_gnr_negative_modifier + years = 10 + } + } + + stress_impact = { + callous = miniscule_stress_impact_loss + sadistic = miniscule_stress_impact_loss + greedy = miniscule_stress_impact_loss + vengeful = minor_stress_impact_loss + compassionate = medium_stress_impact_gain + just = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 1 + ai_compassion = -1 + } + } + } + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +# Decide the fate of a captive Aetheling +ep3_story_cycle_harrying.1010 = { + type = character_event + title = ep3_story_cycle_harrying.1010.t + desc = ep3_story_cycle_harrying.1010.desc + theme = harrying + override_background = { reference = dungeon } + left_portrait = { + character = root + animation = spymaster + } + right_portrait = { + character = scope:captured + animation = prisondungeon + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + any_prisoner = { + is_ai = yes + is_adult = yes + culture = culture:anglo_saxon + is_lowborn = no + } + } + + immediate = { + save_scope_as = actor + random_prisoner = { + limit = { + is_ai = yes + is_adult = yes + culture = culture:anglo_saxon + is_lowborn = no + } + save_scope_as = captured + save_scope_as = recipient + } + save_scope_as = root_scope #for tooltip + ep3_harrying_widget_setup_effect = yes + } + + option = { #Kill him + name = ep3_story_cycle_harrying.1010.a + + execute_prisoner_effect = { + VICTIM = scope:captured + EXECUTIONER = root + } + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + + stress_impact = { + callous = miniscule_stress_impact_loss + sadistic = miniscule_stress_impact_loss + vengeful = miniscule_stress_impact_loss + compassionate = major_stress_impact_gain + just = major_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 1 + ai_honor = -1 + } + } + } + + option = { #Mutilate and release him + name = ep3_story_cycle_harrying.1010.b + + add_dread = miniscule_dread_gain + + disfigure_recipient_effect = yes + torture_blind_castrate_disfigure_opinion_effect = { VERB = disfigured } + + stress_impact = { + sadistic = minor_stress_impact_loss + compassionate = medium_stress_impact_gain + just = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 0.5 + ai_honor = -0.5 + } + } + } + + option = { #You will be a Norman, now + name = ep3_story_cycle_harrying.1010.c + + duel = { + skills = { diplomacy intrigue } + target = scope:captured + 50 = { + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.1010.c.success + + show_as_tooltip = { #To resolve in follow-up, due to learn language scheme + scope:captured = { + set_culture = culture:norman + } + } + + trigger_event = { + id = ep3_story_cycle_harrying.1011 + days = { 1 2 } + } + } + 50 = { + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.1010.c.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.1010.c.failure + + add_prestige = medium_prestige_loss + every_vassal = { + vassal_stance = glory_hound + custom = every_glory_hound_vassal + add_opinion = { + modifier = tournament_mocked_opinion #Re-using + target = root + opinion = -15 + } + } + } + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = -1 + ai_compassion = 1 + } + } + } + + option = { #Let them rot + name = ep3_story_cycle_harrying.1010.d + + add_character_modifier = { + modifier = ep3_honourable_jailor_modifier + years = 15 + } + + stress_impact = { + base = miniscule_stress_impact_loss + sadistic = major_stress_impact_gain + compassionate = miniscule_stress_impact_loss + just = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = -1 + ai_compassion = 1 + } + } + } + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#Follow-up on acceptance +ep3_story_cycle_harrying.1011 = { + type = character_event + title = ep3_story_cycle_harrying.1011.t + desc = { + desc = ep3_story_cycle_harrying.1011.desc + triggered_desc = { + trigger = { + scope:spouse_courtier = { + exists = this + } + } + desc = ep3_story_cycle_harrying.1011.desc.spouse + } + } + theme = harrying + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:captured + animation = happiness + } + lower_center_portrait = { + trigger = { + scope:spouse_courtier = { + exists = this + } + } + character = scope:spouse_courtier + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + immediate = { + if = { #Ugly if/else block starts here! + limit = { + scope:captured = { + can_marry_common_trigger = yes + is_betrothed = no + } + } + if = { #Grab a courtier + limit = { + any_courtier = { + can_marry_character_trigger = { CHARACTER = scope:captured } + sex_opposite_of = scope:captured + culture = culture:norman + age > scope:captured.age_plus_10 + age < scope:captured.age_minus_10 + } + } + random_courtier = { + limit = { + sex_opposite_of = scope:captured + can_marry_character_trigger = { CHARACTER = scope:captured } + culture = culture:norman + age > scope:captured.age_plus_10 + age < scope:captured.age_minus_10 + } + weight = { + base = 1 + modifier = { + factor = 10 + is_lowborn = no #Always good to do noble marriages where possible + } + modifier = { + factor = 5 + is_close_or_extended_family_of = root #And what nobler than the king? + } + } + save_scope_as = spouse_courtier + } + } + else = { #Just in case + hidden_effect = { + create_character = { + location = root.location + random_traits = yes + faith = root.faith + culture = culture:norman + age = scope:captured.age + gender_female_chance = { + if = { + limit = { scope:captured = { is_female = yes } } + add = 0 + } + else = { add = 100 } + } + save_scope_as = spouse_courtier + } + } + } + } + + if = { #Just to ensure she's actually part of your court, if generated + limit = { + scope:spouse_courtier = { + exists = this + NOT = { + is_courtier_of = root + } + } + } + hidden_effect = { + add_courtier = scope:spouse_courtier + } + } + + ep3_harrying_widget_setup_effect = yes + + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + } + + option = { #You'll get married to a nice Norman lad/lass! Also learn the language + name = { + text = { + first_valid = { + triggered_desc = { + trigger = { + scope:spouse_courtier = { + exists = this + } + } + desc = ep3_story_cycle_harrying.1011.a.spouselanguage + } + desc = ep3_story_cycle_harrying.1011.a.language + } + } + } + + scope:captured = { + if = { + limit = { + scope:spouse_courtier = { + exists = this + } + } + marry = scope:spouse_courtier + } + if = { + limit = { + can_start_scheme = { + type = learn_language + target_character = root + } + } + start_scheme = { + type = learn_language + target_character = root + } + } + release_from_prison = yes + if = { + limit = { + highest_held_title_tier = tier_unlanded + } + change_liege = { + liege = root + change = scope:change + } + add_courtier = scope:captured + } + } + + reverse_add_opinion = { + modifier = grateful_opinion + target = scope:captured + opinion = 35 + } + + stress_impact = { + diligent = miniscule_stress_impact_loss + patient = miniscule_stress_impact_loss + lazy = miniscule_stress_impact_gain + impatient = miniscule_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = -1 + ai_compassion = 1 + } + } + } + + option = { #Go now, and be free + name = ep3_story_cycle_harrying.1011.b + + scope:captured = { + release_from_prison = yes + if = { + limit = { + highest_held_title_tier = tier_unlanded + } + change_liege = { + liege = root + change = scope:change + } + } + } + + stress_impact = { + diligent = miniscule_stress_impact_loss + patient = miniscule_stress_impact_loss + lazy = miniscule_stress_impact_gain + impatient = miniscule_stress_impact_gain + } + + reverse_add_opinion = { + modifier = grateful_opinion + target = scope:captured + opinion = 50 + } + + ai_chance = { + base = 75 + ai_value_modifier = { + ai_compassion = 0.5 + ai_honor = 1 + } + } + } + + after = { + hidden_effect = { + scope:captured = { + set_culture = culture:norman + } + } + ep3_harrying_widget_clear_effect = yes + } +} + +scripted_trigger harrying_1015_trigger = { + culture = culture:anglo_saxon + highest_held_title_tier > tier_county + any_held_title = { + tier = tier_county + is_landless_type_title = no + any_county_province = { + has_holding = yes + num_buildings > 0 + } + } +} + +# Punish a village +ep3_story_cycle_harrying.1015 = { + type = character_event + title = ep3_story_cycle_harrying.1015.t + desc = ep3_story_cycle_harrying.1015.desc + theme = harrying + override_background = { reference = burning_building } + override_effect_2d = smoke + left_portrait = { + character = root + animation = rage + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + any_vassal = { + harrying_1015_trigger = yes + } + } + + immediate = { + random_vassal = { + limit = { + harrying_1015_trigger = yes + } + save_scope_as = vassal + random_held_title = { + limit = { + tier = tier_county + is_landless_type_title = no + any_county_province = { + has_holding = yes + num_buildings > 0 + } + } + random_county_province = { + limit = { + has_holding = yes + num_buildings > 0 + } + save_scope_as = offending_village + every_neighboring_province = { add_to_list = resettlement_villages } + hidden_effect = { destroy_random_building_variable_effect = yes } + } + } + } + save_scope_as = root_scope #for tooltip + ep3_harrying_widget_setup_effect = yes + } + + option = { #Burn it to cinders + name = ep3_story_cycle_harrying.1015.a + + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + + scope:offending_village = { + destroy_random_building_effect = yes + add_province_modifier = { + modifier = ep3_smouldering_village + years = 15 + } + } + + stress_impact = { + callous = minor_stress_impact_loss + sadistic = minor_stress_impact_loss + vengeful = minor_stress_impact_loss + compassionate = major_stress_impact_gain + just = major_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 1 + ai_honor = -1 + } + } + } + + option = { #Resettle the residents + name = ep3_story_cycle_harrying.1015.b + trigger = { + any_in_list = { + list = resettlement_villages + count >= 1 + } + } + + scope:offending_village = { + add_province_modifier = { + modifier = ep3_resettled_village + years = 15 + } + } + + every_in_list = { + list = resettlement_villages + custom = all_neighbouring_villages + add_province_modifier = { + modifier = ep3_population_boost + years = 15 + } + } + + stress_impact = { + sadistic = minor_stress_impact_loss + compassionate = medium_stress_impact_gain + just = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 0.5 + ai_honor = -0.5 + } + } + } + + option = { #Leave it be + name = ep3_story_cycle_harrying.1015.c + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + + add_tyranny = minor_tyranny_loss + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = -1 + ai_compassion = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +################################################## +# Aetheling Events +# by Nick Meredith +# 2000-2999 +################################################## + +#Appeal for Scottish help +#Bleddyn allies with Anglo-Saxons +#Welsh raids into Herefordshire +#Send messages to Europe for knights +#Stoke flames across the country + +# Recruit levies from starving men +ep3_story_cycle_harrying.2000 = { + type = character_event + title = ep3_story_cycle_harrying.2000.t + desc = { + desc = ep3_story_cycle_harrying.2000.desc + triggered_desc = { + trigger = { + NOR = { + has_trait = callous + has_trait = sadistic + } + } + desc = ep3_story_cycle_harrying.2000.notcallous + } + } + theme = harrying + override_background = { reference = alley_day } + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:starving_man + animation = beg + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + location = root.capital_province + exists = root.cp:councillor_marshal + } + + immediate = { + location = { + save_scope_as = location + } + top_liege = { + save_scope_as = william + } + hidden_effect = { + random_dummy_gender_effect = yes + create_character = { + template = new_warrior_character + location = root.location + culture = culture:anglo_saxon + faith = root.location.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = starving_man + } + scope:starving_man = { + change_current_weight = -50 + } + } + root.cp:councillor_marshal = { + save_scope_as = marshal + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #All of you; you're all hired. + name = ep3_story_cycle_harrying.2000.a + + remove_short_term_gold = major_gold_value + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + + add_prestige = medium_prestige_gain + + scope:location.county = { + add_county_modifier = { + modifier = ep3_paid_grains + years = 10 + } + } + + trigger_event = { + id = ep3_story_cycle_harrying.2001 + days = { 3 6 } + } + + stress_impact = { + greedy = medium_stress_impact_gain + callous = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + generous = medium_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_compassion = 1 + } + } + } + + option = { #I'll hire you, fine gentleman + name = ep3_story_cycle_harrying.2000.b + + remove_short_term_gold = minor_gold_value + + add_courtier = scope:starving_man + + stress_impact = { + greedy = minor_stress_impact_gain + callous = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + generous = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -0.5 + ai_compassion = 1 + } + } + } + + option = { #Maybe I can try intervening myself? + name = ep3_story_cycle_harrying.2000.c + + duel = { + skill = stewardship + value = decent_skill_rating + 60 = { + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2000.c.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.2000.c.success + + ep3_decrease_pacification_effect = yes + + scope:location.county = { + add_county_modifier = { + modifier = ep3_innovative_farming_techniques + years = 10 + } + } + } + } + 40 = { + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2000.c.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.2000.c.failure + + add_prestige = minor_prestige_loss + ep3_decrease_resistance_effect = yes + } + } + } + + stress_impact = { + greedy = minor_stress_impact_loss + generous = minor_stress_impact_gain + lazy = minor_stress_impact_gain + diligent = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_compassion = -0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#You gain event troops! +ep3_story_cycle_harrying.2001 = { + type = letter_event + opening = ep3_story_cycle_harrying.2001.opening + desc = ep3_story_cycle_harrying.2001.desc + sender = scope:marshal + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + add_stress = minor_stress_loss + } + + option = { # Wooo! + name = ep3_story_cycle_harrying.2001.a + + spawn_army = { + name = event_troop_default_name + levies = 1000 + location = scope:location + origin = scope:location + } + + ai_chance = { + base = 100 + } + } + + option = { # Reject them for now + name = ep3_story_cycle_harrying.2001.b + + flavor = ep3_story_cycle_harrying.2001.b.tt + + scope:location.county = { + add_county_modifier = { + modifier = ep3_surplus_manpower + years = 10 + } + } + + ai_chance = { + base = 100 + } + } +} + +# Recruit murderers to kill Normans +ep3_story_cycle_harrying.2005 = { + type = character_event + title = ep3_story_cycle_harrying.2005.t + desc = ep3_story_cycle_harrying.2005.desc + theme = harrying + override_background = { reference = armory } + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:murderer + animation = spymaster + } + lower_center_portrait = { + character = scope:spymaster + } + cooldown = { years = 20 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + exists = root.cp:councillor_spymaster + title:k_england.holder = { + culture = culture:norman + any_vassal = { + culture = culture:norman + capital_province = { + geographical_region = world_europe_west_britannia + } + } + } + } + + immediate = { + location = { + save_scope_as = location + } + top_liege = { + save_scope_as = william + } + scope:william = { + random_vassal = { + limit = { + culture = culture:norman + capital_province = { + geographical_region = world_europe_west_britannia + } + } + capital_province.county = { + save_scope_as = willy_vassal + } + } + } + hidden_effect = { + create_character = { + template = ep3_murderer_template + location = root.location + culture = culture:anglo_saxon + faith = root.location.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = murderer + } + } + root.cp:councillor_spymaster = { + save_scope_as = spymaster + } + scope:william = { + random_close_family_member = { + limit = { + location = { geographical_region = world_europe_west_britannia } + } + save_scope_as = willy_family + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Perhaps we need to aim higher... + name = ep3_story_cycle_harrying.2005.a + + trigger = { + scope:william = { + any_close_family_member = { + location = { geographical_region = world_europe_west_britannia } + } + } + } + + add_internal_flag = special + + pay_short_term_gold = { + target = scope:murderer + gold = medium_gold_value + } + + start_scheme = { type = murder target_character = scope:willy_family } + + custom_tooltip = diplomacy_family.2250.b.tt + hidden_effect = { + random_scheme = { + type = murder + limit = { + scheme_target_character = scope:willy_family + } + add_scheme_modifier = { + type = extra_success_chance_modifier + } + } + } + + hidden_effect = { + scope:murderer = { + silent_disappearance_effect = yes + } + } + + stress_impact = { + vengeful = medium_stress_impact_loss + sadistic = minor_stress_impact_loss + forgiving = medium_stress_impact_gain + greedy = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_compassion = -1 + } + } + } + + option = { #Go off and murder some Normans, wouldja? + name = ep3_story_cycle_harrying.2005.b + + flavor = ep3_story_cycle_harrying.2005.b.tt + + pay_short_term_gold = { + target = scope:murderer + gold = medium_gold_value + } + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + + scope:willy_vassal = { + add_county_modifier = { + modifier = ep3_murderers_loose + years = 20 + } + } + + hidden_effect = { + scope:murderer = { + silent_disappearance_effect = yes + } + } + + stress_impact = { + greedy = minor_stress_impact_gain + callous = minor_stress_impact_loss + compassionate = minor_stress_impact_gain + generous = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -0.5 + } + } + } + + option = { #Well, you might be handy to have around... + name = ep3_story_cycle_harrying.2005.c + + add_courtier = scope:murderer + + stress_impact = { + lazy = minor_stress_impact_loss + diligent = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +# Gather support amongst the minor nobles +ep3_story_cycle_harrying.2010 = { + type = character_event + title = ep3_story_cycle_harrying.2010.t + desc = ep3_story_cycle_harrying.2010.desc + theme = harrying + override_background = { reference = throne_room } + left_portrait = { + character = root + animation = chancellor + } + cooldown = { years = 15 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + title:k_england.holder = { + culture = culture:norman + any_duchy = { + count > 1 + } + } + } + + immediate = { + top_liege = { + save_scope_as = william + } + scope:william = { + every_sub_realm_county = { #Choose first one of two random counties + limit = { + holder = { + culture = culture:norman + } + } + add_to_list = county_list + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Rally general support + name = ep3_story_cycle_harrying.2010.a + + duel = { + skill = diplomacy + value = decent_skill_rating + + 10 = { #It really works + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2010.a.critsuccess + send_interface_toast = { + type = event_toast_effect_good + title = ep3_story_cycle_harrying.2010.a.critsuccess + left_icon = root + + ep3_increase_resistance_large_effect = yes + } + } + + 50 = { #It works + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + + desc = ep3_story_cycle_harrying.2010.a.success + send_interface_toast = { + type = event_toast_effect_good + title = ep3_story_cycle_harrying.2010.a.success + left_icon = root + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + } + } + + 50 = { #It doesn't work + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + + desc = ep3_story_cycle_harrying.2010.a.failure + send_interface_toast = { + type = event_toast_effect_bad + title = ep3_story_cycle_harrying.2010.a.failure + left_icon = root + + add_prestige = medium_prestige_loss + } + } + + 10 = { #Message is intercepted and more troops sent + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2010.a.critfailure + send_interface_toast = { + type = event_toast_effect_bad + title = ep3_story_cycle_harrying.2010.a.critfailure + left_icon = root + + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + add_prestige = medium_prestige_loss + } + } + } + + stress_impact = { + ambitious = minor_stress_impact_loss + content = medium_stress_impact_gain + greedy = miniscule_stress_impact_gain + brave = miniscule_stress_impact_loss + craven = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + } + } + } + + option = { #Appeal for extra tax revenue + name = ep3_story_cycle_harrying.2010.b + + duel = { + skills = { stewardship diplomacy } + value = decent_skill_rating + + 50 = { #Yes! + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2010.b.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.2010.b.success + left_icon = root + + add_gold = medium_gold_value + } + } + 50 = { #...no + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2010.b.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.2010.b.failure + left_icon = root + + add_prestige = minor_prestige_loss + ep3_decrease_resistance_effect = yes + } + } + } + + stress_impact = { + greedy = minor_stress_impact_loss + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + } + } + } + + option = { #Tell them to save their strength + name = ep3_story_cycle_harrying.2010.c + + + scope:william = { + every_sub_realm_county = { + limit = { + is_in_list = county_list + } + custom = county_list_tt + random = { + chance = 5 + add_county_modifier = { + modifier = ep3_counties_restless_modifier + years = 15 + } + } + } + } + + stress_impact = { + lazy = minor_stress_impact_loss + diligent = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#Forge documents strengthening Aetheling positions +ep3_story_cycle_harrying.2015 = { + type = character_event + title = ep3_story_cycle_harrying.2015.t + desc = ep3_story_cycle_harrying.2015.desc + theme = harrying + override_background = { reference = study } + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:chancellor + animation = chancellor + } + lower_center_portrait = { + trigger = { + scope:other_vassal = { + is_alive = yes + } + } + character = scope:other_vassal + } + cooldown = { years = 15 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + primary_title.tier >= tier_duchy + } + + immediate = { + top_liege = { + save_scope_as = william + } + primary_title = { + save_scope_as = primary_title + } + if = { + limit = { + scope:william = { + any_vassal = { + this != root + culture = culture:anglo_saxon + } + } + } + scope:william = { + random_vassal = { + limit = { + this != root + culture = culture:anglo_saxon + } + save_scope_as = other_vassal + primary_title = { + save_scope_as = other_vassal_primary_title + } + } + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Ensure your titles cannot be revoked + name = ep3_story_cycle_harrying.2015.a + + duel = { + skills = { diplomacy intrigue } + target = scope:william + + 60 = { #Yes! + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2015.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.2015.a.success + left_icon = root + right_icon = scope:william + + if = { + limit = { + vassal_contract_obligation_level_can_be_decreased = title_revocation_rights + } + vassal_contract_set_obligation_level = { + type = title_revocation_rights + level = 1 + } + } + else = { + if = { + limit = { + can_add_hook = { + target = scope:william + type = fabrication_hook + } + } + add_hook = { + target = scope:william + type = fabrication_hook + } + } + } + + if = { + limit = { + scope:other_vassal = { + is_alive = yes + vassal_contract_obligation_level_can_be_decreased = title_revocation_rights + } + } + scope:other_vassal = { + vassal_contract_set_obligation_level = { + type = title_revocation_rights + level = 1 + } + } + } + } + } + 40 = { #...no + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.2015.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.2015.a.failure + left_icon = root + right_icon = scope:william + + if = { + limit = { + can_add_hook = { + target = scope:william + type = favor_hook + } + } + add_hook = { + target = scope:william + type = favor_hook + } + } + if = { + limit = { + scope:other_vassal = { + is_alive = yes + } + } + scope:other_vassal = { + add_hook = { + target = scope:william + type = favor_hook + } + } + } + } + } + } + + stress_impact = { + ambitious = minor_stress_impact_loss + content = medium_stress_impact_gain + deceitful = miniscule_stress_impact_loss + brave = miniscule_stress_impact_loss + craven = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + } + } + } + + option = { #Reduce Feudal Levies/Taxes + name = ep3_story_cycle_harrying.2015.b + + if = { + limit = { + vassal_contract_obligation_level_can_be_decreased = feudal_government_taxes + } + vassal_contract_decrease_obligation_level = feudal_government_taxes + } + if = { + limit = { + vassal_contract_obligation_level_can_be_decreased = feudal_government_levies + } + vassal_contract_decrease_obligation_level = feudal_government_levies + } + if = { + limit = { + scope:other_vassal = { + is_alive = yes + } + } + scope:other_vassal = { + if = { + limit = { + vassal_contract_obligation_level_can_be_decreased = feudal_government_taxes + } + vassal_contract_decrease_obligation_level = feudal_government_taxes + } + if = { + limit = { + vassal_contract_obligation_level_can_be_decreased = feudal_government_levies + } + vassal_contract_decrease_obligation_level = feudal_government_levies + } + } + } + + stress_impact = { + greedy = minor_stress_impact_loss + generous = medium_stress_impact_gain + just = miniscule_stress_impact_gain + arbitrary = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + } + } + } + + option = { #Gain Marcher Lord status + name = ep3_story_cycle_harrying.2015.c + + vassal_contract_set_obligation_level = { + type = special_contract + level = 2 + } + + scope:other_vassal = { + vassal_contract_set_obligation_level = { + type = special_contract + level = 2 + } + } + + stress_impact = { + lazy = minor_stress_impact_loss + diligent = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +################################################## +# Hereward Events +# by Nick Meredith +# 3000-3999 +################################################## + +#Rob local church +#William offers to parcel out Cambridgeshire to you +#Call in Danish help +#Heist an artifact from a local noble +#Downgrade local building +#Travel to other areas of the country to gather support + +# Rob local church +ep3_story_cycle_harrying.3000 = { + type = character_event + title = ep3_story_cycle_harrying.3000.t + desc = ep3_story_cycle_harrying.3000.desc + theme = harrying + override_background = { reference = temple } + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:bishop + animation = beg + } + artifact = { + target = scope:newly_created_artifact + position = lower_center_portrait + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + location = { save_temporary_scope_as = current_temp } + scope:current_temp = { + any_neighboring_province = { + has_holding_type = church_holding + } + } + } + + immediate = { + location = { + random_neighboring_province = { + limit = { + has_holding_type = church_holding + } + save_scope_as = neighboring_church + } + } + hidden_effect = { + create_character = { + template = priest_character_template + location = scope:neighboring_church + save_scope_as = bishop + } + random_dummy_gender_effect = yes + scope:bishop = { + create_artifact_brooch_effect = { + OWNER = scope:bishop + SMITH = scope:dummy_gender + } + } + scope:newly_created_artifact = { + set_artifact_name = artifact_church_saint_brooch_name + set_artifact_description = artifact_church_saint_brooch_description + add_artifact_modifier = artifact_monthly_piety_4_modifier + add_artifact_modifier = artifact_same_faith_opinion_4_modifier + add_artifact_modifier = artifact_clergy_opinion_penalty_5_modifier + set_artifact_rarity = famed + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Relics, you say? + name = ep3_story_cycle_harrying.3000.a + + add_piety = medium_piety_loss + + add_prestige = minor_prestige_loss + + scope:newly_created_artifact = { + set_owner = root + } + + scope:neighboring_church = { + add_province_modifier = { + modifier = ep3_church_bereft + years = 15 + } + } + + stress_impact = { + greedy = medium_stress_impact_loss + callous = miniscule_stress_impact_loss + compassionate = medium_stress_impact_gain + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_compassion = -1 + } + } + } + + option = { #This gold is needed for the war effort, but we'll leave any relics + name = ep3_story_cycle_harrying.3000.b + + flavor = ep3_story_cycle_harrying.3000.b.tt + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + + add_gold = medium_gold_value + + stress_impact = { + calm = miniscule_stress_impact_loss + greedy = miniscule_stress_impact_loss + generous = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 0.5 + ai_compassion = -0.5 + } + } + } + + option = { #I am a man of god, I would never. + name = ep3_story_cycle_harrying.3000.c + + add_piety = medium_piety_gain + + add_character_modifier = { + modifier = ep3_man_of_god + years = 10 + } + + stress_impact = { + greedy = medium_stress_impact_gain + generous = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_compassion = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +# Interdict supply lines +ep3_story_cycle_harrying.3005 = { + type = character_event + title = ep3_story_cycle_harrying.3005.t + desc = ep3_story_cycle_harrying.3005.desc + theme = harrying + override_background = { reference = ep2_hunt_foggy_forest } + override_effect_2d = fog + left_portrait = { + character = root + animation = inspect_weapon + } + right_portrait = { + character = scope:norman_soldier + animation = survey + } + artifact = { + target = scope:newly_created_artifact + position = lower_right_portrait + } + + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + } + + immediate = { + location = { + save_scope_as = location + } + random_dummy_gender_effect = yes + create_character = { + template = new_warrior_character + location = root.location + culture = culture:norman + faith = root.location.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = norman_soldier + } + hidden_effect = { + scope:norman_soldier = { + create_artifact = { #Scripted effect didn't like this, so custom weapon it is + name = norman_sword_name + description = stolen_norman_sword_description + type = sword + visuals = sword + modifier = artifact_prowess_4_modifier + modifier = artifact_knight_effectiveness_3_modifier + modifier = artifact_hard_casualty_modifier_4_modifier + rarity = masterwork + save_scope_as = newly_created_artifact + } + } + } + global_var:harrying_of_the_north.story_owner = { + save_scope_as = william + random_vassal = { + limit = { + location = { geographical_region = world_europe_west_britannia } #To ensure they're not getting sent to Normandy + } + primary_title = { + save_scope_as = vassal_county + } + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Grab the equipment for yourself + name = ep3_story_cycle_harrying.3005.a + + duel = { + skills = { martial prowess } + target = scope:norman_soldier + 60 = { + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3005.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3005.a.success + + ep3_decrease_pacification_effect = yes + + add_character_modifier = { + modifier = ep3_stolen_equipment + years = 5 + } + + scope:newly_created_artifact = { + set_owner = root + set_artifact_name = stolen_norman_sword_name + } + + scope:vassal_county = { + add_county_modifier = { + modifier = ep3_missing_supplies + years = 15 + } + } + } + } + 40 = { + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3005.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3005.a.failure + + add_prestige = medium_prestige_loss + increase_wounds_no_death_effect = { REASON = battle } + every_knight = { + custom = every_knight + add_opinion = { + modifier = botched_ambush_opinion + target = root + opinion = -15 + } + } + } + } + } + + stress_impact = { + greedy = medium_stress_impact_loss + callous = miniscule_stress_impact_loss + compassionate = miniscule_stress_impact_gain + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_energy = 0.5 + } + } + } + + option = { #Take the equipment for allies + name = ep3_story_cycle_harrying.3005.b + + flavor = ep3_story_cycle_harrying.3005.b.tt + + duel = { + skills = { martial prowess } + target = scope:norman_soldier + 60 = { + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3005.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3005.a.success + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + ep3_decrease_pacification_effect = yes + + scope:vassal_county = { + add_county_modifier = { + modifier = ep3_missing_supplies + years = 15 + } + } + global_var:harrying_of_the_north.story_owner = { + every_vassal = { + limit = { + culture = culture:anglo_saxon + } + custom = every_anglo_vassal + add_character_modifier = { + modifier = ep3_redistributed_equipment + years = 5 + } + } + } + } + } + 40 = { + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3005.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3005.a.failure + + add_prestige = medium_prestige_loss + increase_wounds_no_death_effect = { REASON = battle } + every_knight = { + custom = every_knight + add_opinion = { + modifier = botched_ambush_opinion + target = root + opinion = -15 + } + } + } + } + } + + stress_impact = { + arrogant = minor_stress_impact_gain + greedy = minor_stress_impact_gain + generous = medium_stress_impact_loss + humble = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_energy = 0.5 + } + } + } + + option = { #Sabotage the road ahead + name = ep3_story_cycle_harrying.3005.c + + flavor = ep3_story_cycle_harrying.3005.c.tt + + scope:location = { + add_province_modifier = { + modifier = ep3_sabotaged_roads + years = 10 + } + } + + scope:vassal_county = { + add_county_modifier = { + modifier = ep3_delayed_supplies + years = 10 + } + } + + stress_impact = { + craven = medium_stress_impact_loss + brave = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_honor = -0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + scope:norman_soldier = { + silent_disappearance_effect = yes + } + } +} + +scripted_trigger ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { + location = { + geographical_region = world_europe_west_britannia + duchy = root.location.duchy #Same duchy as Hereward + } + culture = culture:norman + is_theocratic_lessee = no #No dueling priests! + is_adult = yes + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = $WILLIAM$ } + NOT = { has_character_flag = hereward_ambushed } +} + +#Ambush Norman noble +ep3_story_cycle_harrying.3010 = { + type = character_event + title = ep3_story_cycle_harrying.3010.t + desc = ep3_story_cycle_harrying.3010.desc + theme = harrying + override_background = { reference = ep2_travel_bridge } + left_portrait = { + character = root + animation = marshal + } + right_portrait = { + character = scope:norman_noble + animation = aggressive_sword + } + artifact = { + target = scope:newly_created_artifact + position = lower_right_portrait + } + + cooldown = { years = 5 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + is_healthy = yes + global_var:harrying_of_the_north.story_owner = { + save_temporary_scope_as = william_temp + any_vassal_or_below = { + ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { WILLIAM = scope:william_temp } + } + } + } + + immediate = { + location = { save_scope_as = location } + global_var:harrying_of_the_north.story_owner = { + save_scope_as = william + random_vassal_or_below = { + limit = { + ep3_story_cycle_harrying_3010_ambushable_noble_trigger = { WILLIAM = scope:william } + } + primary_title = { save_scope_as = noble_county } + save_scope_as = norman_noble + add_character_flag = hereward_ambushed + } + } + hidden_effect = { + random_dummy_gender_effect = yes + scope:norman_noble = { + create_artifact_ring_effect = { + OWNER = scope:norman_noble + SMITH = scope:dummy_gender + } + } + } + root = { save_scope_as = root_for_loc } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Fight them + name = ep3_story_cycle_harrying.3010.a + + custom_tooltip = ep3_story_cycle_harrying.3010.a.tt + + configure_start_single_combat_effect = { + SC_INITIATOR = root + SC_ATTACKER = root + SC_DEFENDER = scope:norman_noble + FIXED = no + FATALITY = always + LOCALE = ep2_travel_bridge + OUTPUT_EVENT = ep3_story_cycle_harrying.3011 + INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this + } + + stress_impact = { + brave = medium_stress_impact_loss + wrathful = miniscule_stress_impact_loss + calm = miniscule_stress_impact_gain + craven = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 1 + } + } + } + + option = { #Simply rob them + name = ep3_story_cycle_harrying.3010.b + + add_short_term_gold = medium_gold_value + + scope:newly_created_artifact = { + set_owner = root + } + + ep3_decrease_pacification_effect = yes + + stress_impact = { + brave = medium_stress_impact_gain + wrathful = miniscule_stress_impact_gain + calm = miniscule_stress_impact_loss + craven = medium_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_energy = -0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#Followup, post-duel +ep3_story_cycle_harrying.3011 = { + type = character_event + title = ep3_story_cycle_harrying.3011.t + desc = ep3_story_cycle_harrying.3011.desc + theme = harrying + override_background = { reference = ep2_travel_bridge } + left_portrait = { + character = root + animation = personality_honorable + } + right_portrait = { + character = scope:saxon_soldier_1 + animation = thinking + } + lower_center_portrait = { + character = scope:saxon_soldier_2 + } + + cooldown = { years = 5 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + is_healthy = yes + } + + immediate = { + ep3_harrying_widget_setup_effect = yes + ep3_decrease_pacification_effect = yes + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + scope:newly_created_artifact = { + set_owner = root + } + hidden_effect = { + random_dummy_gender_effect = yes + create_character = { + template = new_warrior_character + location = root.location + culture = culture:anglo_saxon + faith = root.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = saxon_soldier_1 + } + create_character = { + template = new_warrior_character + location = root.location + culture = culture:anglo_saxon + faith = root.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = saxon_soldier_2 + } + } + } + + option = { #Would you boys like a job? + name = ep3_story_cycle_harrying.3011.a + + add_courtier = scope:saxon_soldier_1 + add_courtier = scope:saxon_soldier_2 + + stress_impact = { + forgiving = medium_stress_impact_loss + vengeful = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_rationality = 1 + ai_vengefulness = -1 + } + } + } + + option = { #Let them return to their families + name = ep3_story_cycle_harrying.3011.b + + hidden_effect = { + scope:saxon_soldier_1 = { + silent_disappearance_effect = yes + } + scope:saxon_soldier_2 = { + silent_disappearance_effect = yes + } + } + + add_character_modifier = { + modifier = ep3_defender_of_families + years = 10 + } + + stress_impact = { + generous = miniscule_stress_impact_loss + greedy = miniscule_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#Call in Danish help +ep3_story_cycle_harrying.3015 = { + type = character_event + title = ep3_story_cycle_harrying.3015.t + desc = ep3_story_cycle_harrying.3015.desc + theme = harrying + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:danish_king + animation = thinking + } + cooldown = { years = 50 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + is_healthy = yes + title:k_denmark.holder = { + is_at_war = no + is_available_healthy_ai_adult = yes + } + title:k_england.holder = { + is_ai = yes #Just to ensure we don't screw players over + } + } + + immediate = { + location = { + save_scope_as = location + } + title:k_denmark.holder = { + save_scope_as = danish_king + } + hidden_effect = { + create_character = { + location = scope:danish_king.location + template = new_warrior_character + faith = scope:danish_king.faith + culture = scope:danish_king.culture + gender_female_chance = root_soldier_female_chance + save_scope_as = knight_1 + } + create_character = { + location = scope:danish_king.location + template = new_berserker_character + faith = scope:danish_king.faith + culture = scope:danish_king.culture + gender_female_chance = root_soldier_female_chance + save_scope_as = knight_2 + } + create_character = { + location = scope:danish_king.location + template = new_commander_character + faith = scope:danish_king.faith + culture = scope:danish_king.culture + gender_female_chance = root_soldier_female_chance + save_scope_as = knight_3 + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Send them a letter begging for them to be your new liege + name = ep3_story_cycle_harrying.3015.a + + duel = { + skill = diplomacy + value = decent_skill_rating + + 50 = { #He agrees + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3015.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3015.a.success + left_icon = root + right_icon = scope:danish_king + + scope:danish_king = { + add_unpressed_claim = title:k_england + } + create_alliance = { + target = scope:danish_king + allied_through_owner = root + allied_through_target = scope:danish_king + } + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + ep3_decrease_pacification_effect = yes + add_stress = medium_stress_loss + } + } + + 50 = { #He disagrees + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3015.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3015.a.failure + + add_prestige = miniscule_prestige_loss + ep3_increase_pacification_effect = { AMOUNT = harrying_medium_increase_value } + } + } + } + + stress_impact = { + ambitious = minor_stress_impact_loss + brave = miniscule_stress_impact_loss + content = medium_stress_impact_gain + craven = minor_stress_impact_gain + } + + ai_chance = { + base = 25 + ai_value_modifier = { + ai_energy = 1 + } + } + } + + option = { #Send them a letter begging for soldiers + name = ep3_story_cycle_harrying.3015.b + + duel = { + skills = { diplomacy martial } + value = decent_skill_rating + + 75 = { #He agrees + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3015.b.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3015.b.success + left_icon = root + right_icon = scope:danish_king + + add_character_flag = soldiers_accepted_flag + + add_courtier = scope:knight_1 + add_courtier = scope:knight_2 + add_courtier = scope:knight_3 + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + } + } + + 25 = { #He disagrees + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3015.b.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3015.b.failure + + add_prestige = miniscule_prestige_loss + add_stress = minor_stress_gain + } + } + } + + stress_impact = { + patient = miniscule_stress_impact_loss + impatient = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 0.5 + } + } + } + + option = { #We fight this battle alone + name = ep3_story_cycle_harrying.3015.c + + add_character_modifier = { + modifier = ep3_standing_alone_modifier + years = 10 + } + + every_courtier_or_guest = { + custom = every_follower_custom + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 25 + } + } + + stress_impact = { + arrogant = miniscule_stress_impact_loss + humble = medium_stress_impact_gain + } + + ai_chance = { + base = 50 + ai_value_modifier = { + ai_greed = -1 + ai_energy = -0.5 + } + } + } + + after = { + if = { + limit = { + NOT = { + has_character_flag = soldiers_accepted_flag + } + } + scope:knight_1 = { silent_disappearance_effect = yes } + scope:knight_2 = { silent_disappearance_effect = yes } + scope:knight_3 = { silent_disappearance_effect = yes } + } + ep3_harrying_widget_clear_effect = yes + } +} + +#Travel to another area of the country to intimidate a Norman sympathiser +ep3_story_cycle_harrying.3020 = { + type = character_event + title = ep3_story_cycle_harrying.3020.t + desc = ep3_story_cycle_harrying.3020.desc + theme = harrying + left_portrait = { + character = root + animation = inspect_weapon + } + right_portrait = { + character = scope:willy_vassal + animation = dismissal + } + cooldown = { years = 10 } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + is_healthy = yes + title:k_england.holder = { + save_temporary_scope_as = willy_temp + any_vassal = { + culture = culture:anglo_saxon + capital_province = { geographical_region = world_europe_west_britannia } + highest_held_title_tier > tier_barony + opinion = { + target = scope:willy_temp + value >= neutral_opinion + } + any_courtier = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + culture = culture:anglo_saxon + } + } + } + } + + immediate = { + location = { + save_scope_as = location + } + title:k_england.holder = { + save_scope_as = willy + random_vassal = { + limit = { + culture = culture:anglo_saxon + capital_province = { geographical_region = world_europe_west_britannia } + highest_held_title_tier > tier_barony + opinion = { + target = scope:willy + value >= neutral_opinion + } + any_courtier = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + culture = culture:anglo_saxon + } + } + save_scope_as = willy_vassal + location = { + save_scope_as = willy_vassal_capital + } + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Travel there, raise hell + name = ep3_story_cycle_harrying.3020.a + + custom_tooltip = ep3_story_cycle_harrying.3020.a.tt + + start_travel_plan = { + destination = scope:willy_vassal_capital + players_use_planner = no + on_arrival_destinations = last + on_arrival_event = ep3_story_cycle_harrying.3021 + return_trip = no + } + + stress_impact = { + ambitious = minor_stress_impact_loss + brave = miniscule_stress_impact_loss + content = medium_stress_impact_gain + craven = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 1 + } + } + } + + option = { #Leave it + name = ep3_story_cycle_harrying.3020.b + + ep3_decrease_resistance_effect = yes + + stress_impact = { + patient = miniscule_stress_impact_loss + impatient = minor_stress_impact_gain + } + + ai_chance = { + base = 50 + ai_value_modifier = { + ai_energy = 0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#You arrive and ambush him +ep3_story_cycle_harrying.3021 = { + type = character_event + title = ep3_story_cycle_harrying.3021.t + desc = ep3_story_cycle_harrying.3021.desc + theme = harrying + left_portrait = { + character = root + animation = marshal + } + right_portrait = { + character = scope:willy_vassal + animation = beg + } + cooldown = { years = 5 } + override_background = { reference = alley_night } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_available = yes + is_healthy = yes + title:k_england.holder = { + save_temporary_scope_as = willy_temp + any_vassal = { + culture = culture:anglo_saxon + capital_province = { geographical_region = world_europe_west_britannia } + highest_held_title_tier > tier_barony + opinion = { + target = scope:willy_temp + value >= neutral_opinion + } + location = root.location + any_courtier = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + culture = culture:anglo_saxon + } + } + } + } + + immediate = { + save_scope_as = root_for_loc + title:k_england.holder = { + save_scope_as = willy + random_vassal = { + limit = { + culture = culture:anglo_saxon + capital_province = { geographical_region = world_europe_west_britannia } + highest_held_title_tier > tier_barony + opinion = { + target = scope:willy + value >= neutral_opinion + } + location = root.location + any_courtier = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + culture = culture:anglo_saxon + } + } + save_scope_as = willy_vassal + } + } + scope:willy_vassal = { + random_courtier = { + limit = { + can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = root } + culture = culture:anglo_saxon + } + save_scope_as = knight_1 + } + } + hidden_effect = { + create_character = { + template = new_warrior_character + location = scope:willy_vassal.location + culture = scope:willy_vassal.culture + faith = scope:willy_vassal.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = knight_2 + } + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Kill him and steal his stuff + name = ep3_story_cycle_harrying.3021.a + + custom_tooltip = ep3_story_cycle_harrying.3021.a.tt + + configure_start_single_combat_effect = { + SC_INITIATOR = root + SC_ATTACKER = root + SC_DEFENDER = scope:willy_vassal + FIXED = no + FATALITY = always + LOCALE = ep2_travel_bridge + OUTPUT_EVENT = ep3_story_cycle_harrying.3022 + INVALIDATION_EVENT = fp1_yearly.2002 #Re-use this + } + + stress_impact = { + calm = medium_stress_impact_gain + just = minor_stress_impact_gain + wrathful = minor_stress_impact_loss + arbitrary = miniscule_stress_impact_loss + } + + ai_chance = { + base = 50 + ai_value_modifier = { + ai_energy = 1 + ai_compassion = -1 + } + } + } + + option = { #Reason with him + name = ep3_story_cycle_harrying.3021.b + + duel = { + skill = diplomacy + target = scope:willy_vassal + + 50 = { #You reason successfully + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3021.b.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3021.b.success + left_icon = root + right_icon = scope:willy_vassal + + scope:willy_vassal = { + add_opinion = { + target = scope:willy + modifier = revanchist_opinion + opinion = -120 + } + } + scope:willy = { + add_character_modifier = { + modifier = ep3_disgruntled_vassals_modifier + years = 10 + } + } + ep3_decrease_pacification_effect = yes + } + } + + 50 = { #You are unable to reason with him + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3021.b.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3021.b.failure + + add_stress = miniscule_stress_gain + ep3_decrease_resistance_effect = yes + } + } + } + + stress_impact = { + calm = minor_stress_impact_loss + just = miniscule_stress_impact_loss + wrathful = medium_stress_impact_gain + arbitrary = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_compassion = 1 + } + } + } + + option = { #Threaten him + name = ep3_story_cycle_harrying.3021.c + + duel = { + skill = prowess + target = scope:willy_vassal + + 60 = { #Your threats work + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3021.c.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3021.c.success + left_icon = root + right_icon = scope:willy_vassal + + scope:willy_vassal = { + add_opinion = { + target = scope:willy + modifier = revanchist_opinion + opinion = -120 + } + } + scope:willy = { + add_dread = major_dread_loss + add_character_modifier = { + modifier = ep3_disgruntled_vassals_modifier + years = 10 + } + } + ep3_decrease_pacification_effect = yes + } + } + + 40 = { #Your threats don't work + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3021.c.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3021.c.failure + + add_dread = minor_dread_loss + add_prestige = minor_prestige_loss + ep3_decrease_resistance_effect = yes + } + } + } + + stress_impact = { + ambitious = miniscule_stress_impact_loss + vengeful = miniscule_stress_impact_loss + content = minor_stress_impact_gain + forgiving = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_compassion = -0.5 + } + } + } + + option = { #Take some loyalists and leave him to it + name = ep3_story_cycle_harrying.3021.d + + flavor = ep3_story_cycle_harrying.3021.d.flavour + + add_courtier = scope:knight_1 + add_courtier = scope:knight_2 + + ep3_decrease_resistance_effect = yes + + stress_impact = { + patient = miniscule_stress_impact_loss + impatient = minor_stress_impact_gain + just = miniscule_stress_impact_loss + arbitrary = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +#Duel resolution +ep3_story_cycle_harrying.3022 = { + type = character_event + title = ep3_story_cycle_harrying.3022.t + desc = ep3_story_cycle_harrying.3022.desc + theme = harrying + left_portrait = { + character = root + animation = marshal + } + right_portrait = { + character = scope:willy_vassal + animation = dead + } + artifact = { + target = scope:newly_created_artifact + position = lower_left_portrait + } + artifact = { + target = scope:traitors_head_artifact + position = lower_right_portrait + } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + ep3_harrying_widget_setup_effect = yes + capital_province = { save_scope_as = domicile } + + random_dummy_gender_effect = yes + + add_gold = { 50 100 } + + hidden_effect = { + scope:willy_vassal = { + create_artifact_brooch_effect = { + OWNER = scope:willy_vassal + SMITH = scope:dummy_gender + } + } + create_artifact = { + name = traitors_head + description = traitors_head_description + type = miscellaneous + visuals = small_box + durability = 10 + max_durability = 10 + decaying = yes + modifier = artifact_health_penalty_1_modifier + modifier = artifact_stress_gain_1_penalty_modifier + modifier = artifact_attraction_opinion_negative_2_modifier + creator = root + rarity = famed + save_scope_as = traitors_head_artifact + } + } + + scope:newly_created_artifact = { + set_owner = root + } + } + + option = { #Send his head to William + name = ep3_story_cycle_harrying.3022.a + + scope:traitors_head_artifact = { + set_owner = scope:willy + } + + scope:willy = { + add_character_modifier = { + modifier = ep3_life_threatened_modifier + years = 10 + } + } + + stress_impact = { + calm = minor_stress_impact_gain + just = minor_stress_impact_gain + wrathful = miniscule_stress_impact_loss + arbitrary = miniscule_stress_impact_loss + } + + ai_chance = { + base = 50 + ai_value_modifier = { + ai_energy = 1 + ai_compassion = -1 + } + } + } + + option = { #Let everyone know what happens to turncoats + name = ep3_story_cycle_harrying.3022.b + + ep3_increase_resistance_large_effect = yes + + if = { + limit = { + scope:willy = { + any_sub_realm_duchy = { + count > 1 + holder.culture = culture:norman + } + } + } + scope:willy = { + random_sub_realm_duchy = { + limit = { + holder.culture = culture:norman + } + show_as_tooltip = { + add_county_modifier = { + modifier = ep3_impassioned_populace_modifier + years = 10 + } + } + hidden_effect = { + every_de_jure_county = { + add_county_modifier = { + modifier = ep3_impassioned_populace_modifier + years = 10 + } + } + } + save_scope_as = saved_duchy + } + random_sub_realm_duchy = { + limit = { + holder.culture = culture:norman + this != scope:saved_duchy + } + show_as_tooltip = { + add_county_modifier = { + modifier = ep3_impassioned_populace_modifier + years = 10 + } + } + hidden_effect = { + every_de_jure_county = { + add_county_modifier = { + modifier = ep3_impassioned_populace_modifier + years = 10 + } + } + } + } + } + } + + hidden_effect = { + destroy_artifact = scope:traitors_head_artifact + } + + stress_impact = { + calm = minor_stress_impact_loss + just = miniscule_stress_impact_loss + wrathful = minor_stress_impact_gain + arbitrary = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_vengefulness = 1 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + start_travel_plan = { + destination = scope:domicile + players_use_planner = no + on_arrival_destinations = last + return_trip = no + } + } +} + +### EVENT CHAIN: +## Dealing with the Devil + +#William sends you a letter +ep3_story_cycle_harrying.3050 = { + type = letter_event + opening = ep3_story_cycle_harrying.3050.opening + desc = ep3_story_cycle_harrying.3050.desc + sender = scope:william + cooldown = { years = 100 } + + trigger = { + has_ep3_dlc_trigger = yes + is_ai = no #Don't even trigger this for AI + is_imprisoned = no + is_incapable = no + global_var:harrying_of_the_north.story_owner = { #King of England + is_ai = yes + OR = { #But needs to either have Cambridgeshire or be able to take it off a Norman vassal + has_title = title:c_cambridgeshire + any_vassal = { + culture = culture:norman + has_title = title:c_cambridgeshire + } + } + } + } + + immediate = { + global_var:harrying_of_the_north.story_owner = { + save_scope_as = william + capital_province.barony = { save_scope_as = london } + } + } + + option = { # Grimly accept + name = ep3_story_cycle_harrying.3050.a + + custom_tooltip = ep3_story_cycle_harrying.3050.a.tt + + every_character_active_contract = { invalidate_contract = yes } + + start_travel_plan = { + destination = scope:william.capital_province + players_use_planner = no + on_arrival_event = ep3_story_cycle_harrying.3051 + on_arrival_destinations = last + return_trip = no + } + + ai_chance = { #Just in case + base = 0 + } + } + + option = { # Refuse + name = ep3_story_cycle_harrying.3050.b + + reverse_add_opinion = { + target = scope:william + modifier = disrespect_opinion + opinion = -40 + } + + ai_chance = { + base = 100 + } + } +} + +#You meet William +ep3_story_cycle_harrying.3051 = { + type = character_event + title = ep3_story_cycle_harrying.3051.t + desc = ep3_story_cycle_harrying.3051.desc + theme = harrying + override_background = { reference = throne_room } + left_portrait = { + character = root + animation = personality_honorable + } + right_portrait = { + character = scope:william + animation = thinking + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + location = { + save_scope_as = location + } + } + + option = { #Greet him cheekily + name = ep3_story_cycle_harrying.3051.a + + duel = { + skill = diplomacy + value = decent_skill_rating + + 70 = { #He's lets it slide + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3051.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3051.a.success + left_icon = root + right_icon = scope:william + + if = { + limit = { + scope:william = { + this = character:140 + } + } + scope:william = { + add_legitimacy = miniscule_legitimacy_loss + every_vassal = { + limit = { + culture = culture:anglo_saxon + } + custom = every_anglo_vassal + add_opinion = { + modifier = bantered_with_the_bastard_opinion + target = root + opinion = 10 + } + } + } + } + else = { + scope:william = { + add_legitimacy = miniscule_legitimacy_loss + every_vassal = { + limit = { + culture = culture:anglo_saxon + } + custom = every_anglo_vassal + add_opinion = { + modifier = bantered_with_the_devil_opinion + target = root + opinion = 10 + } + } + } + } + } + } + + 30 = { #He's annoyed by your levity + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3051.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3051.a.failure + + add_prestige = miniscule_prestige_loss + } + } + } + + stress_impact = { + greedy = medium_stress_impact_loss + callous = miniscule_stress_impact_loss + compassionate = miniscule_stress_impact_gain + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_energy = 0.5 + } + } + } + + option = { #Stay silent + name = ep3_story_cycle_harrying.3051.b + + flavor = ep3_story_cycle_harrying.3051.b.tt + + stress_impact = { + arrogant = minor_stress_impact_gain + greedy = minor_stress_impact_gain + generous = medium_stress_impact_loss + humble = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_energy = 0.5 + } + } + } + + + after = { + trigger_event = { + id = ep3_story_cycle_harrying.3052 + days = 1 + } + } +} + +#William offers to give you Cambridgeshire +ep3_story_cycle_harrying.3052 = { + type = character_event + title = ep3_story_cycle_harrying.3052.t + desc = ep3_story_cycle_harrying.3052.desc + theme = harrying + override_background = { reference = throne_room } + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:william + animation = disapproval + } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + cooldown = { years = 10 } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + location = { + save_scope_as = location + } + title:c_cambridgeshire = { save_scope_as = cambridgeshire } + father = { + save_scope_as = father + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Take his offer + name = ep3_story_cycle_harrying.3052.a + + flavor = ep3_story_cycle_harrying.3052.a.flavor + custom_tooltip = ep3_story_cycle_harrying.3052.a.tt + + add_prestige = medium_prestige_loss + + if = { + limit = { + scope:cambridgeshire.holder = { + this != scope:william + } + } + scope:cambridgeshire.holder = { + add_opinion = { + target = scope:william + modifier = angry_opinion + opinion = -40 + } + } + } + + trigger_event = { + id = ep3_story_cycle_harrying.3053 + days = 1 + } + + stress_impact = { + greedy = medium_stress_impact_loss + callous = miniscule_stress_impact_loss + compassionate = miniscule_stress_impact_gain + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_energy = 0.5 + } + } + } + + option = { #Turn down his offer + name = ep3_story_cycle_harrying.3052.b + + ep3_increase_resistance_effect = { AMOUNT = harrying_medium_increase_value } + + reverse_add_opinion = { + target = scope:william + modifier = angry_opinion + opinion = -65 + } + + trigger_event = { + id = ep3_story_cycle_harrying.3054 + days = 1 + } + + stress_impact = { + arrogant = minor_stress_impact_gain + greedy = minor_stress_impact_gain + generous = medium_stress_impact_loss + humble = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_energy = 0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + } +} + +scripted_effect ep3_story_cycle_harrying_3053_process_vassalisation_effect = { + create_title_and_vassal_change = { + type = granted + save_scope_as = change + } + if = { + limit = { + scope:duke_norfolk ?= { is_vassal_of = scope:william } + } + change_liege = { + liege = scope:duke_norfolk + change = scope:change + } + add_truce_both_ways = { + character = scope:william + years = 100 + name = fp3_landed_zanj_reason #Re-using this + } + add_truce_both_ways = { + character = scope:duke_norfolk + years = 100 + name = fp3_landed_zanj_reason #Re-using this + } + } + else = { + change_liege = { + liege = scope:william + change = scope:change + } + add_truce_both_ways = { + character = scope:william + years = 100 + name = fp3_landed_zanj_reason #Re-using this + } + } + resolve_title_and_vassal_change = scope:change +} + +#You accept his offer +ep3_story_cycle_harrying.3053 = { + type = character_event + title = ep3_story_cycle_harrying.3053.t + desc = ep3_story_cycle_harrying.3053.desc + theme = harrying + override_background = { reference = throne_room } + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:william + animation = disapproval + } + lower_right_portrait = scope:duke_norfolk + cooldown = { years = 10 } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + scope:cambridgeshire.duchy.holder ?= { save_scope_as = duke_norfolk } + } + + option = { #Recant your decision + name = ep3_story_cycle_harrying.3053.a + + add_prestige = medium_prestige_gain + + trigger_event = { + id = ep3_story_cycle_harrying.3054 + days = 1 + } + + ai_chance = { + base = 100 + } + } + + option = { #Accept + name = ep3_story_cycle_harrying.3053.b + + custom_tooltip = ep3_story_cycle_harrying.3053.b.tt + + create_title_and_vassal_change = { + type = granted + save_scope_as = change + } + scope:cambridgeshire = { + change_title_holder_include_vassals = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + # We need to do this here to account for you already being duke tier. + show_as_tooltip = { ep3_story_cycle_harrying_3053_process_vassalisation_effect = yes } + save_scope_value_as = { + name = settled_option + value = yes + } + add_character_flag = hereward_settled_flag + + ep3_decrease_resistance_effect = yes + ep3_increase_pacification_large_effect = yes + + if = { + limit = { + has_nickname = nick_the_wake + } + remove_nickname = yes + } + + give_nickname = nick_iscariot + + remove_trait = the_wake + + start_travel_plan = { + destination = root.capital_province + players_use_planner = no + on_arrival_destinations = last + return_trip = no + } + + scope:william = { + add_stress = major_stress_loss + } + + ai_chance = { + base = 0 + } + } + + after = { + # We need to do this here to account for you already being duke tier. + hidden_effect = { + if = { + limit = { exists = scope:settled_option } + ep3_story_cycle_harrying_3053_process_vassalisation_effect = yes + } + } + } +} + +#You decline his offer +ep3_story_cycle_harrying.3054 = { + type = character_event + title = ep3_story_cycle_harrying.3054.t + desc = ep3_story_cycle_harrying.3054.desc + theme = harrying + override_background = { reference = throne_room } + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:william + animation = rage + } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + location = { + save_scope_as = location + } + ep3_harrying_widget_setup_effect = yes + } + + option = { #Try to fight your way out + name = ep3_story_cycle_harrying.3054.a + + duel = { + skill = prowess + value = very_high_skill_rating + + 25 = { #You escape! + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3054.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3054.a.success + left_icon = root + + add_prestige = major_prestige_gain + + scope:william = { + add_prestige = major_prestige_loss + } + } + + start_travel_plan = { + destination = root.domicile.domicile_location + players_use_planner = no + on_arrival_destinations = last + return_trip = no + } + } + 75 = { #You are caught, beaten, and carted down to the cells + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3054.a.failure + + trigger_event = { + id = ep3_story_cycle_harrying.3055 + days = 1 + } + + send_interface_toast = { + title = ep3_story_cycle_harrying.3054.a.failure + + ep3_decrease_resistance_effect = yes + + add_prestige = medium_prestige_loss + + increase_wounds_no_death_effect = { REASON = fight } + + scope:william = { + imprison = { + target = root + type = dungeon + } + } + } + } + } + + stress_impact = { + greedy = medium_stress_impact_loss + callous = miniscule_stress_impact_loss + compassionate = miniscule_stress_impact_gain + generous = medium_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = 1 + ai_energy = 0.5 + } + } + } + + option = { #Allow yourself to be taken to the dungeons + name = ep3_story_cycle_harrying.3054.b + + flavor = ep3_story_cycle_harrying.3054.b.tt + + ep3_decrease_resistance_effect = yes + + add_prestige = minor_prestige_loss + + scope:william = { + imprison = { + target = root + type = dungeon + } + } + + trigger_event = { + id = ep3_story_cycle_harrying.3055 + days = 1 + } + + stress_impact = { + arrogant = minor_stress_impact_gain + greedy = minor_stress_impact_gain + generous = medium_stress_impact_loss + humble = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + ai_energy = 0.5 + } + } + } + + after = { + ep3_harrying_widget_clear_effect = yes + # Since we sent custom imprisonment events, we want to block the default ones. + hidden_effect = { + add_character_flag = { + flag = block_imprisonment_event + days = 2 + } + } + } +} + +#You are thrown in the dungeon +ep3_story_cycle_harrying.3055 = { + type = character_event + title = ep3_story_cycle_harrying.3055.t + desc = ep3_story_cycle_harrying.3055.desc + theme = harrying + override_background = { reference = dungeon } + left_portrait = { + character = root + animation = prisondungeon + outfit_tags = { beggar_rags } + } + right_portrait = { + character = scope:william + animation = schadenfreude + } + lower_center_portrait = { + character = scope:sympathetic_courtier + } + + trigger = { + has_ep3_dlc_trigger = yes + is_imprisoned = yes + imprisoner = scope:william + } + + immediate = { + if = { + limit = { + scope:william = { + any_courtier = { + culture = culture:anglo_saxon + } + } + } + scope:william = { + random_courtier = { + limit = { + culture = culture:anglo_saxon + } + save_scope_as = sympathetic_courtier + } + } + } + else = { + hidden_effect = { + create_character = { + employer = scope:william + template = servant_character + gender_female_chance = 50 + culture = culture:anglo_saxon + faith = root.faith + save_scope_as = sympathetic_courtier + } + scope:william = { + add_courtier = scope:sympathetic_courtier + } + } + } + add_character_flag = harrying_imprisoned_flag + } + + option = { #You look around your cell + name = ep3_story_cycle_harrying.3055.a + + stress_impact = { + base = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + } + } + + after = { + trigger_event = { + id = ep3_story_cycle_harrying.3056 + days = { 30 40 } + } + } +} + +# A mysterious letter appears +ep3_story_cycle_harrying.3056 = { + type = character_event + window = anonymous_letter_event + title = debug.0002.t + desc = ep3_story_cycle_harrying.3056.desc + theme = harrying + + trigger = { + has_ep3_dlc_trigger = yes + is_imprisoned = yes + imprisoner = scope:william + } + + option = { # A lifeline! + name = ep3_story_cycle_harrying.3056.a + + stress_impact = { + base = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + after = { + trigger_event = { + id = ep3_story_cycle_harrying.3057 + days = { 2 4 } + } + } +} + +#You are sprung free! +ep3_story_cycle_harrying.3057 = { + type = character_event + title = ep3_story_cycle_harrying.3057.t + desc = ep3_story_cycle_harrying.3057.desc + theme = harrying + override_background = { reference = alley_night } + + left_portrait = { + character = root + animation = personality_honorable + } + right_portrait = { + character = scope:sympathetic_courtier + animation = survey + outfit_tags = { western_stealth_hood } + } + widget = { + gui = "event_window_widget_harrying" + container = "custom_widgets_container" + } + + trigger = { + has_ep3_dlc_trigger = yes + is_imprisoned = yes + imprisoner = scope:william + } + + immediate = { + ep3_harrying_widget_setup_effect = yes + } + + option = { #Come with me! + name = ep3_story_cycle_harrying.3057.a + + duel = { + skill = diplomacy + value = decent_skill_rating + 50 = { + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3057.a.success + + send_interface_toast = { + title = ep3_story_cycle_harrying.3057.a.success + left_icon = root + right_icon = scope:sympathetic_courtier + + add_courtier = scope:sympathetic_courtier + + reverse_add_opinion = { + target = scope:sympathetic_courtier + modifier = pleased_opinion + opinion = 15 + } + + hidden_effect = { + start_travel_plan = { + destination = root.domicile.domicile_location + players_use_planner = no + on_arrival_destinations = last + return_trip = no + } + } + } + } + 50 = { + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + min = -49 + } + desc = ep3_story_cycle_harrying.3057.a.failure + + send_interface_toast = { + title = ep3_story_cycle_harrying.3057.a.failure + left_icon = root + right_icon = scope:sympathetic_courtier + + add_stress = miniscule_stress_gain + } + } + } + + release_from_prison = yes #Used here for event order reasons + + ai_chance = { + base = 100 + } + } + + option = { #I will always remember you. + name = ep3_story_cycle_harrying.3057.b + + #scope:sympathetic_courtier = { #In case we ever wanna use him for something + # add_character_flag = sympathetic_courtier_flag + #} + + stress_impact = { + base = minor_stress_impact_loss + } + + release_from_prison = yes #Used here for event order reasons + + ai_chance = { + base = 100 + } + } + + after = { + start_travel_plan = { + destination = root.domicile.domicile_location + players_use_planner = no + on_arrival_destinations = last + return_trip = no + } + scope:sympathetic_courtier = { + add_stress = medium_stress_loss #Prevent errors + } + ep3_harrying_widget_clear_effect = yes + remove_character_flag = harrying_imprisoned_flag + } +} diff --git a/events/dlc/ep3/ep3_story_cycle_violet_poet_events.txt b/events/dlc/ep3/ep3_story_cycle_violet_poet_events.txt index 45702612..e7bb3e32 100644 --- a/events/dlc/ep3/ep3_story_cycle_violet_poet_events.txt +++ b/events/dlc/ep3/ep3_story_cycle_violet_poet_events.txt @@ -1,2644 +1,2643 @@ -#namespace = ep3_story_cycle_violet_poet -# -################################################### -## Maintenance events -## 0001-0999 -################################################### -# -##andalusian_0003 -##Visit Orphanage -# -##Lead-in event -#ep3_story_cycle_violet_poet.0001 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.0001.t -# desc = ep3_story_cycle_violet_poet.0001.desc -# theme = violet_poet -# left_portrait = { -# character = root -# animation = thinking -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# cooldown = { years = 100 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# title:c_toledo.holder = { -# save_scope_as = toledo_owner -# } -# title:c_toledo = { -# save_scope_as = toledo -# } -# location = { -# save_scope_as = cordoba -# } -# create_story = story_cycle_violet_poet -# create_artifact = { -# name = artifact_double_moon_book -# description = artifact_double_moon_book_description -# type = journal -# visuals = book -# modifier = double_moon_modifier -# save_scope_as = double_moon_book -# } -# random_owned_story = { -# type = story_cycle_violet_poet -# set_variable = { name = artifact value = scope:double_moon_book } -# } -# hidden_effect = { -# scope:double_moon_book = { -# set_artifact_rarity = illustrious -# } -# #Error log suppression, the variable is set in the 01_laamp_titles.txt and checked in 00_succession_laws.txt -# if = { -# limit = { always = no } -# primary_title = { -# set_variable = { -# name = can_keep_realm_law -# value = flag:equal_law -# } -# } -# } -# } -# } -# -# option = { #Stay in Cordoba -# name = ep3_story_cycle_violet_poet.0001.a -# -# flavor = ep3_story_cycle_violet_poet.0001.a.tt -# -# stress_impact = { -# content = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #Leave for pastures new -# name = ep3_story_cycle_violet_poet.0001.b -# -# flavor = ep3_story_cycle_violet_poet.0001.b.tt -# -# custom_tooltip = ep3_story_cycle_violet_poet.0001.b.travel -# -# start_travel_plan = { -# destination = scope:toledo_owner.capital_province -# travel_with_domicile = yes -# players_use_planner = no -# return_trip = no -# } -# -# stress_impact = { -# diligent = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 0 #Prioritise her staying in Cordoba for AI -# } -# } -# -# after = { -# hidden_effect = { -# scope:double_moon_book = { -# set_artifact_description = artifact_double_moon_book_description_append -# } -# } -# if = { -# limit = { -# NOT = { -# has_character_flag = violet_poet_designated_heir -# } -# } -# trigger_event = { -# id = ep3_story_cycle_violet_poet.0002 -# years = { 4 5 } -# } -# } -# } -#} -# -##Heir designation event two-parter -##Triggered within the first five years of violet_poet's life -#ep3_story_cycle_violet_poet.0002 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.0002.t -# desc = ep3_story_cycle_violet_poet.0002.desc -# theme = violet_poet -# left_portrait = { -# character = root -# animation = worry -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# any_courtier = { -# count > 1 -# } -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# -# option = { #Go for it -# name = ep3_story_cycle_violet_poet.0002.a -# -# flavor = ep3_story_cycle_violet_poet.0002.a.tt -# -# trigger_event = { -# id = ep3_story_cycle_violet_poet.0003 -# days = { 1 2 } -# } -# -# add_character_flag = violet_poet_designated_heir -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #Do not designate an heir -# name = ep3_story_cycle_violet_poet.0002.b -# -# flavor = ep3_story_cycle_violet_poet.0002.b.flavor -# custom_tooltip = ep3_story_cycle_violet_poet.0002.b.tt -# -# if = { -# limit = { -# NOT = { -# has_character_flag = violet_poet_designated_heir -# } -# } -# trigger_event = { -# id = ep3_story_cycle_violet_poet.0002 -# years = 5 -# } -# } -# -# stress_impact = { -# base = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 0 #We want her to designate an heir -# } -# } -#} -# -##Heir designation event -#ep3_story_cycle_violet_poet.0003 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.0003.t -# desc = { -# desc = ep3_story_cycle_violet_poet.0003.opening -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:heir1 = { -# has_trait = lifestyle_poet -# } -# } -# desc = ep3_story_cycle_violet_poet.0003.poet -# } -# desc = ep3_story_cycle_violet_poet.0003.diplomat -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:heir2 = { -# is_female = yes -# } -# } -# desc = ep3_story_cycle_violet_poet.0003.woman -# } -# desc = ep3_story_cycle_violet_poet.0003.young -# } -# desc = ep3_story_cycle_violet_poet.0003.heir3 -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:heir3 = { -# has_trait = intellect_good -# } -# } -# desc = ep3_story_cycle_violet_poet.0003.intelligent -# } -# triggered_desc = { -# trigger = { -# scope:heir3 = { -# has_trait = beauty_good -# } -# } -# desc = ep3_story_cycle_violet_poet.0003.beautiful -# } -# } -# desc = ep3_story_cycle_violet_poet.0003.ending -# } -# -# theme = violet_poet -# left_portrait = { -# character = root -# animation = thinking -# } -# lower_left_portrait = { -# character = scope:heir1 -# } -# lower_center_portrait = { -# character = scope:heir2 -# } -# lower_right_portrait = { -# character = scope:heir3 -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# this = character:andalusian_0003 -# any_courtier = { -# count > 1 -# } -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# -# #Heir 1 -# #Prefers poets and high diplo, fallback is created -# if = { -# limit = { -# any_courtier = { -# OR = { -# has_trait = lifestyle_poet -# diplomacy > 20 -# } -# } -# } -# random_courtier = { -# limit = { -# OR = { -# has_trait = lifestyle_poet -# diplomacy > 20 -# } -# } -# weight = { -# base = 1 -# modifier = { -# factor = 4 -# has_trait = lifestyle_poet -# } -# modifier = { -# factor = 2 -# diplomacy > 20 -# } -# } -# save_scope_as = heir1 -# } -# } -# else = { -# hidden_effect = { -# create_character = { -# template = generic_peasant_character -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 50 -# location = root.location -# save_scope_as = heir1 -# } -# } -# } -# -# #Heir 2 -# #Prefers women and also young people, fallback is created -# if = { -# limit = { -# any_courtier = { -# OR = { -# is_female = yes -# age < 25 -# } -# } -# } -# random_courtier = { -# limit = { -# OR = { -# is_female = yes -# age < 25 -# } -# } -# weight = { -# base = 1 -# modifier = { -# factor = 4 -# is_female = yes -# } -# modifier = { -# factor = 2 -# age < 25 -# } -# } -# save_scope_as = heir2 -# } -# } -# else = { -# hidden_effect = { -# create_character = { -# template = generic_peasant_character -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 100 -# location = root.location -# save_scope_as = heir2 -# } -# } -# } -# -# hidden_effect = { -# create_character = { -# template = ep3_wallada_heir_template -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 100 -# location = root.location -# save_scope_as = heir3 -# } -# } -# } -# -# option = { #Choose heir 1 -# name = ep3_story_cycle_violet_poet.0003.a -# -# set_designated_heir = scope:heir1 -# if = { -# limit = { -# scope:heir1 = { -# NOT = { is_courtier_of = root } -# } -# } -# add_courtier = scope:heir1 -# } -# -# adopt_effect = { -# CHILD = scope:heir1 -# ADOPTER = root -# } -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# } -# -# ai_chance = { -# base = 25 -# } -# } -# -# option = { #Choose heir 2 -# name = ep3_story_cycle_violet_poet.0003.b -# -# set_designated_heir = scope:heir2 -# if = { -# limit = { -# scope:heir2 = { -# NOT = { is_courtier_of = root } -# } -# } -# add_courtier = scope:heir2 -# } -# -# adopt_effect = { -# CHILD = scope:heir2 -# ADOPTER = root -# } -# -# stress_impact = { -# base = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 25 -# } -# } -# -# option = { #Choose heir 3 -# name = ep3_story_cycle_violet_poet.0003.c -# -# set_designated_heir = scope:heir3 -# if = { -# limit = { -# scope:heir3 = { -# NOT = { is_courtier_of = root } -# } -# } -# add_courtier = scope:heir3 -# } -# -# adopt_effect = { -# CHILD = scope:heir3 -# ADOPTER = root -# } -# -# stress_impact = { -# base = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 #Prefer the cool one -# } -# } -#} -# -##Passing over things -#ep3_story_cycle_violet_poet.0004 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.0004.t -# desc = ep3_story_cycle_violet_poet.0004.desc -# theme = violet_poet -# left_portrait = { -# character = root -# animation = grief -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# } -# -# immediate = { -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# -# option = { #Pass over things -# name = ep3_story_cycle_violet_poet.0004.a -# -# add_trait = violet_poet -# -# hidden_effect = { #To avoid redundancy -# if = { -# limit = { -# has_trait = lifestyle_poet -# } -# remove_trait = lifestyle_poet -# } -# -# ###Give them XP in the trait based off a few factors -# #If they're, you know, living up to her standards -# if = { -# limit = { -# any_memory = { -# memory_type = had_sex -# count > 4 -# } -# } -# add_trait_xp = { -# trait = violet_poet -# value = { 4 8 } -# } -# } -# #If they're bi -# if = { -# limit = { -# has_sexuality = bisexual -# } -# add_trait_xp = { -# trait = violet_poet -# value = { 6 10 } -# } -# } -# #If they're not tied down -# if = { -# limit = { -# is_married = no -# } -# add_trait_xp = { -# trait = violet_poet -# value = { 2 4 } -# } -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -### Maintenance events for Write Muwashshah Poem -## Sell Poem -#ep3_story_cycle_violet_poet.0010 = { -# hidden = yes -# -# immediate = { -# send_interface_message = { -# type = event_title_good -# title = ep3_story_cycle_violet_poet.0010.title -# left_icon = root -# -# if = { -# limit = { -# has_character_modifier = ep3_quality_control_modifier -# } -# add_gold = { medium_gold_laamps_value major_gold_laamps_value } -# } -# else = { -# add_gold = { minor_gold_laamps_value medium_gold_laamps_value } -# } -# } -# } -#} -# -## Keep Poem -#ep3_story_cycle_violet_poet.0011 = { -# hidden = yes -# -# immediate = { -# if = { -# limit = { -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# send_interface_message = { -# type = msg_poem_kept -# title = ep3_story_cycle_violet_poet.0011.title -# desc = ep3_story_cycle_violet_poet.0011.message -# left_icon = root -# right_icon = scope:double_moon_book -# -# add_randomised_double_moon_modifier_effect = yes -# } -# } -#} -# -## Distribute Poem -#ep3_story_cycle_violet_poet.0012 = { -# hidden = yes -# -# immediate = { -# send_interface_message = { -# type = event_title_good -# title = ep3_story_cycle_violet_poet.0012.title -# left_icon = root -# -# if = { -# limit = { -# has_character_modifier = ep3_focused_on_studies_modifier -# } -# add_prestige = { minor_prestige_gain medium_prestige_gain } -# } -# else = { -# add_prestige = { minor_prestige_gain major_prestige_gain } -# } -# } -# } -#} -# -################################################### -## Violet poet Events -## by Nick Meredith & Eilidh MacRuaidhri -################################################### -# -## Nature's Bounty -## Travel event -#ep3_story_cycle_violet_poet.1000 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1000.t -# desc = ep3_story_cycle_violet_poet.1000.desc -# theme = travel -# override_background = { reference = wilderness } -# left_portrait = { -# character = root -# animation = thinking -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# is_landless_ruler = yes -# is_available_travelling = yes -# has_trait = violet_poet -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# province:1995 = { save_scope_as = cordoba } # b_cordoba -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# -# option = { #Write a poem -# name = ep3_story_cycle_violet_poet.1000.a -# -# add_learning_lifestyle_xp = minor_lifestyle_experience -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1000.a.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_independent_ruler_opinion_2_modifier -# } -# } -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# greedy = minor_stress_impact_gain -# content = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { #Forage for wild plants -# name = ep3_story_cycle_violet_poet.1000.b -# -# add_character_modifier = { -# modifier = ep3_foraged_plants -# years = 10 -# } -# -# if = { -# limit = { -# NOT = { -# has_trait = lifestyle_herbalist -# } -# } -# random = { -# chance = 30 -# add_trait = lifestyle_herbalist -# } -# } -# -# stress_impact = { -# diligent = miniscule_stress_impact_loss -# greedy = miniscule_stress_impact_loss -# brave = miniscule_stress_impact_loss -# craven = miniscule_stress_impact_gain -# lazy = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## A Fine Apprentice -#ep3_story_cycle_violet_poet.1005 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1005.t -# desc = ep3_story_cycle_violet_poet.1005.desc -# theme = violet_poet -# override_background = { reference = corridor_day } -# left_portrait = { -# character = root -# animation = eavesdrop -# } -# right_portrait = { -# character = scope:child -# animation = throne_room_conversation_1 -# } -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# hidden_effect = { -# create_character = { -# template = peasant_child_character -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 100 -# learning = 14 -# diplomacy = 16 -# age = { 12 14 } -# location = root.location -# save_scope_as = child -# } -# } -# } -# -# option = { #Take them in -# name = ep3_story_cycle_violet_poet.1005.a -# -# flavor = ep3_story_cycle_violet_poet.1005.a.tt -# -# remove_short_term_gold = minor_gold_value -# -# add_courtier = scope:child -# -# stress_impact = { -# greedy = minor_stress_impact_gain -# generous = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# callous = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_compassion = 1 -# ai_boldness = 1 -# } -# } -# } -# -# option = { #Write a poem about it -# name = ep3_story_cycle_violet_poet.1005.b -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1005.b.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_child_opinion_2_modifier -# } -# } -# -# hidden_effect = { -# scope:child = { -# move_to_pool = yes -# } -# } -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# diligent = miniscule_stress_impact_loss -# greedy = miniscule_stress_impact_loss -# lazy = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 1 -# ai_sociability = 1 -# } -# } -# } -# -# option = { #Pay for their tuition -# name = ep3_story_cycle_violet_poet.1005.c -# -# flavor = ep3_story_cycle_violet_poet.1005.c.tt -# -# remove_short_term_gold = medium_gold_value -# -# add_character_modifier = { -# modifier = ep3_tuition_paid -# years = 10 -# } -# -# hidden_effect = { -# scope:child = { -# move_to_pool = yes -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_gain -# generous = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# callous = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_greed = -1 -# } -# } -# } -#} -# -## The Romance of Poetry -#ep3_story_cycle_violet_poet.1010 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1010.t -# desc = ep3_story_cycle_violet_poet.1010.desc -# theme = violet_poet -# override_background = { reference = corridor_day } -# left_portrait = { -# character = root -# animation = flirtation_left -# } -# right_portrait = { -# character = scope:ruler_spouse -# animation = admiration -# } -# lower_center_portrait = { -# character = scope:ruler -# } -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# location.barony.holder = { -# any_spouse = { -# is_attracted_to_gender_of = root -# } -# } -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# location.barony.holder = { -# random_spouse = { -# limit = { -# is_attracted_to_gender_of = root -# } -# save_scope_as = ruler_spouse -# } -# save_scope_as = ruler -# } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# -# option = { #Offer 'private poetry reading' -# name = ep3_story_cycle_violet_poet.1010.a -# -# duel = { -# skill = intrigue -# value = decent_skill_rating -# -# 50 = { #She's down -# desc = ep3_story_cycle_violet_poet.1010.a.success -# compare_modifier = { -# value = scope:duel_value -# multiplier = 2.5 -# } -# -# modifier = { -# attraction >= low_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= medium_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= high_positive_attraction -# factor = 1.2 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1010.a.success -# left_icon = root -# right_icon = scope:ruler_spouse -# -# had_sex_with_effect = { -# CHARACTER = scope:ruler_spouse -# PREGNANCY_CHANCE = pregnancy_chance -# } -# } -# } -# -# 50 = { #She ain't down -# desc = ep3_story_cycle_violet_poet.1010.a.failure -# compare_modifier = { -# value = scope:duel_value -# multiplier = -2.5 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1010.a.failure -# left_icon = root -# right_icon = scope:ruler_spouse -# -# add_stress = medium_stress_gain -# -# reverse_add_opinion = { -# target = scope:ruler -# modifier = suspicious_opinion -# opinion = -5 -# } -# } -# } -# } -# -# stress_impact = { -# lustful = minor_stress_impact_loss -# gregarious = miniscule_stress_impact_loss -# shy = minor_stress_impact_gain -# seducer = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# } -# } -# } -# -# option = { #Write about it -# name = ep3_story_cycle_violet_poet.1010.b -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1010.b.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_seduce_scheme_phase_duration_add_2_modifier -# } -# } -# -# add_prestige = minor_prestige_gain -# -# stress_impact = { -# base = miniscule_stress_impact_loss -# shy = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# ai_sociability = -1 -# } -# } -# } -# -# option = { #Start romance scheme -# name = ep3_story_cycle_violet_poet.1010.c -# -# trigger = { -# can_start_scheme = { -# type = courting -# target_character = scope:ruler_spouse -# } -# } -# -# start_scheme = { -# type = courting -# target_character = scope:ruler_spouse -# } -# -# custom_tooltip = ep3_story_cycle_violet_poet.1010.c.tt -# -# hidden_effect = { -# random_scheme = { -# type = courting -# limit = { -# scheme_target_character = scope:ruler_spouse -# } -# add_scheme_modifier = { -# type = extra_success_chance_modifier -# } -# } -# } -# -# stress_impact = { -# greedy = minor_stress_impact_gain -# generous = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# callous = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 1 -# ai_sociability = 1 -# } -# } -# } -#} -# -## A Follower, Enamored -#ep3_story_cycle_violet_poet.1015 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1015.t -# desc = ep3_story_cycle_violet_poet.1015.desc -# theme = violet_poet -# override_background = { reference = bp1_bonfire } -# left_portrait = { -# character = root -# animation = happiness -# } -# right_portrait = { -# character = scope:stranger -# animation = admiration -# } -# -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# } -# -# immediate = { -# location = { save_scope_as = location } -# create_character = { -# template = beautiful_peasant_character #Make 'em pretty, just for fun -# age = { 30 70 } -# gender_female_chance = root_attraction_based_female_chance -# location = root.location -# faith = root.faith -# culture = root.culture -# -# after_creation = { -# set_sexuality = bisexual #Screw it -# } -# -# save_scope_as = stranger -# } -# } -# -# option = { #Dang, you sit with that ass? -# name = ep3_story_cycle_violet_poet.1015.a -# -# trigger = { -# has_trait = lustful -# } -# -# duel = { -# skill = intrigue -# value = decent_skill_rating -# -# 50 = { #They're down -# desc = ep3_story_cycle_violet_poet.1015.a.success -# compare_modifier = { -# value = scope:duel_value -# multiplier = 2.5 -# } -# -# modifier = { -# attraction >= low_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= medium_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= high_positive_attraction -# factor = 1.2 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1015.a.success -# left_icon = root -# right_icon = scope:stranger -# -# had_sex_with_effect = { -# CHARACTER = scope:stranger -# PREGNANCY_CHANCE = pregnancy_chance -# } -# } -# } -# -# 50 = { #They ain't down -# desc = ep3_story_cycle_violet_poet.1015.a.failure -# compare_modifier = { -# value = scope:duel_value -# multiplier = -2.5 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1015.a.failure -# left_icon = root -# right_icon = scope:stranger -# -# hidden_effect = { -# scope:stranger = { -# move_to_pool = yes -# } -# } -# -# add_stress = minor_stress_gain -# } -# } -# } -# -# stress_impact = { -# lustful = minor_stress_impact_loss -# gregarious = miniscule_stress_impact_loss -# shy = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_boldness = 1 -# } -# } -# } -# -# option = { #Offer them a place in your camp -# name = ep3_story_cycle_violet_poet.1015.b -# -# reverse_add_opinion = { -# target = scope:stranger -# modifier = grateful_opinion -# opinion = 35 -# } -# -# add_courtier = scope:stranger -# -# if = { -# limit = { -# NOT = { -# employs_court_position = travel_leader_court_position -# } -# } -# court_position_grant_effect = { -# CANDIDATE = scope:stranger -# POS = travel_leader -# EMPLOYER = root -# } -# } -# -# stress_impact = { -# lustful = minor_stress_impact_gain -# gregarious = miniscule_stress_impact_loss -# trusting = miniscule_stress_impact_loss -# paranoid = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -0.5 -# ai_sociability = 1 -# } -# } -# } -# -# option = { #Take the compliment -# name = ep3_story_cycle_violet_poet.1015.c -# -# add_character_modifier = { -# modifier = ep3_from_far_and_wide -# years = 10 -# } -# -# scope:stranger = { -# silent_disappearance_effect = yes -# } -# -# stress_impact = { -# base = minor_stress_impact_loss -# humble = miniscule_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# ai_sociability = 1 -# } -# } -# } -#} -# -## The Fog that Clouds All -#ep3_story_cycle_violet_poet.1020 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1020.t -# desc = ep3_story_cycle_violet_poet.1020.desc -# theme = violet_poet -# left_portrait = { -# character = root -# animation = stress -# } -# lower_right_portrait = { -# trigger = { scope:poet = { is_alive = yes } } -# character = scope:poet -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# if = { -# limit = { -# any_courtier = { -# diplomacy > 20 -# } -# } -# random_courtier = { -# limit = { -# diplomacy > 20 -# } -# save_scope_as = poet -# } -# } -# } -# -# option = { #Ask another poet to help -# name = ep3_story_cycle_violet_poet.1020.a -# reason = skilled_follower -# -# trigger = { -# custom_description = { -# text = followers_over_diplomacy -# any_courtier = { -# diplomacy > 20 -# } -# } -# } -# show_as_unavailable = { -# custom_description = { -# text = followers_over_diplomacy -# NOT = { -# any_courtier = { -# diplomacy > 20 -# } -# } -# } -# } -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_personal_scheme_phase_duration_add_2_modifier -# } -# } -# -# progress_towards_friend_effect = { -# REASON = friend_helped_poetry -# CHARACTER = scope:poet -# OPINION = default_friend_opinion -# } -# -# stress_impact = { -# base = minor_stress_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# option = { #Try and persevere -# name = ep3_story_cycle_violet_poet.1020.b -# -# duel = { -# skill = learning -# value = decent_skill_rating -# -# 50 = { #It works -# desc = ep3_story_cycle_violet_poet.1020.b.success -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# } -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_personal_scheme_phase_duration_add_2_modifier -# } -# } -# } -# -# 50 = { #She ain't down -# desc = ep3_story_cycle_violet_poet.1020.b.failure -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1020.b.failure -# left_icon = root -# -# add_character_modifier = { -# modifier = ep3_pushed_too_hard -# years = 5 -# } -# } -# } -# } -# -# stress_impact = { -# lazy = medium_stress_impact_gain -# diligent = miniscule_stress_impact_loss -# ambitious = miniscule_stress_impact_loss -# content = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 1 -# } -# } -# } -# -# option = { #Take a break and enjoy life -# name = ep3_story_cycle_violet_poet.1020.c -# -# random_list = { -# 10 = { #It works -# desc = ep3_story_cycle_violet_poet.1020.c.success -# modifier = { -# trigger = { -# has_trait = lazy -# } -# add = 5 -# } -# modifier = { -# trigger = { -# has_trait = content -# } -# add = 3 -# } -# modifier = { -# trigger = { -# has_trait = calm -# } -# add = 2 -# } -# send_interface_toast = { -# type = event_toast_effect_good -# title = ep3_story_cycle_violet_poet.1020.c.success -# left_icon = root -# -# add_character_modifier = ep3_refreshed_and_relaxed -# } -# } -# -# 10 = { #Didn't work -# desc = ep3_story_cycle_violet_poet.1020.c.failure -# modifier = { -# trigger = { -# has_trait = diligent -# } -# add = 5 -# } -# modifier = { -# trigger = { -# has_trait = ambitious -# } -# add = 3 -# } -# modifier = { -# trigger = { -# has_trait = wrathful -# } -# add = 2 -# } -# send_interface_toast = { -# type = event_toast_effect_bad -# title = ep3_story_cycle_violet_poet.1020.c.failure -# left_icon = root -# -# add_stress = medium_stress_gain -# } -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# } -# } -# } -#} -# -#scripted_effect save_the_orphans_effect = { -# add_to_list = list_of_orphans -# if = { -# limit = { exists = scope:orphan3 } -# save_scope_as = orphan4 -# } -# else_if = { -# limit = { exists = scope:orphan2 } -# save_scope_as = orphan3 -# } -# else = { save_scope_as = orphan2 } -#} -# -##Adopt orphans -#ep3_story_cycle_violet_poet.1025 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1025.t -# desc = ep3_story_cycle_violet_poet.1025.desc -# theme = violet_poet -# override_background = { reference = courtyard } -# left_portrait = { -# character = root -# animation = worry -# } -# right_portrait = { -# character = scope:orphan -# animation = clutching_toy -# } -# lower_center_portrait = { -# character = scope:orphan2 -# } -# lower_left_portrait = { -# character = scope:orphan3 -# } -# lower_right_portrait = { -# character = scope:orphan4 -# } -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# } -# -# immediate = { -# location = { save_scope_as = location } -# scope:location.county.holder = { save_scope_as = holder } -# # Orphan 1 -# create_character = { -# template = fp1_capital_county_orphan_character -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 100 #For protege purposes -# location = root.location -# save_scope_as = orphan -# } -# hidden_effect = { -# scope:orphan = { -# add_learning_skill = 5 #Make her an interesting choice -# add_to_list = list_of_orphans -# } -# } -# # Orphans 2-4 -# ordered_pool_character = { -# province = root.location -# limit = { -# age < 11 -# location = root.location -# is_lowborn = yes -# NOT = { is_in_list = list_of_orphans } -# } -# order_by = age -# max = 3 -# check_range_bounds = no -# save_the_orphans_effect = yes -# } -# while = { -# limit = { -# any_in_list = { -# list = list_of_orphans -# count < 4 -# } -# } -# create_character = { -# template = fp1_capital_county_orphan_character -# culture = location.county.culture -# faith = location.county.faith -# gender_female_chance = 50 -# location = root.location -# save_scope_as = new_orphan -# } -# scope:new_orphan = { save_the_orphans_effect = yes } -# } -# } -# -# option = { #I'll take them all! -# name = ep3_story_cycle_violet_poet.1025.a -# -# flavor = ep3_story_cycle_violet_poet.1025.a.tt -# -# remove_short_term_gold = major_gold_value -# -# add_courtier = scope:orphan -# add_courtier = scope:orphan2 -# add_courtier = scope:orphan3 -# add_courtier = scope:orphan4 -# -# every_in_list = { -# list = list_of_orphans -# custom = 1025_every_orphan -# add_opinion = { -# target = root -# modifier = grateful_opinion -# opinion = 35 -# } -# random = { -# chance = 50 -# add_trait = loyal -# } -# } -# -# add_character_modifier = { -# modifier = ep3_friend_to_orphans -# years = 30 -# } -# -# stress_impact = { -# generous = minor_stress_loss -# compassionate = minor_stress_loss -# greedy = medium_stress_gain -# callous = medium_stress_gain -# sadistic = medium_stress_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# ai_greed = -1 -# } -# } -# } -# -# option = { #Take the actually talented one lol -# name = ep3_story_cycle_violet_poet.1025.b -# -# flavor = ep3_story_cycle_violet_poet.1025.b.tt -# -# remove_short_term_gold = minor_gold_value -# -# add_character_flag = one_orphan_taken_flag -# -# add_courtier = scope:orphan -# -# reverse_add_opinion = { -# target = scope:orphan -# modifier = grateful_opinion -# opinion = 45 -# } -# -# random = { -# chance = 50 -# send_interface_toast = { -# type = event_toast_effect_good -# title = ep3_story_cycle_violet_poet.1025.b.success -# left_icon = root -# right_icon = scope:orphan -# scope:orphan = { -# add_diplomacy_skill = { 1 3 } -# } -# } -# } -# -# stress_impact = { -# generous = medium_stress_gain -# compassionate = medium_stress_gain -# greedy = minor_stress_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 0.5 -# ai_greed = -0.5 -# } -# } -# } -# -# option = { #Try to shame the local lord into paying -# name = ep3_story_cycle_violet_poet.1025.c -# -# trigger = { -# scope:holder = { -# is_ai = yes -# } -# } -# -# flavor = ep3_story_cycle_violet_poet.1025.c.tt -# -# add_character_flag = no_orphans_taken_flag -# -# duel = { -# skill = diplomacy -# target = scope:holder -# -# 50 = { #He accepts -# desc = ep3_story_cycle_violet_poet.1025.c.success -# compare_modifier = { -# value = scope:duel_value -# multiplier = 3.5 -# } -# min = 10 -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1025.c.success -# left_icon = root -# right_icon = scope:holder -# -# scope:holder = { -# remove_short_term_gold = minor_gold_value -# } -# -# scope:location.county = { -# add_county_modifier = { -# modifier = ep3_healthy_orphanages_modifier -# years = 20 -# } -# } -# } -# } -# -# 50 = { #He declines -# desc = ep3_story_cycle_violet_poet.1025.c.failure -# compare_modifier = { -# value = scope:duel_value -# multiplier = -3.5 -# } -# min = 10 -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.1025.c.failure -# left_icon = root -# right_icon = scope:holder -# -# add_stress = medium_stress_gain -# } -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# } -# } -# } -# -# after = { -# if = { -# limit = { -# OR = { -# has_character_flag = one_orphan_taken_flag -# has_character_flag = no_orphans_taken_flag -# } -# } -# every_in_list = { -# list = list_of_orphans -# limit = { -# trigger_if = { -# limit = { -# root = { has_character_flag = one_orphan_taken_flag } -# } -# NOT = { scope:orphan ?= this } -# } -# } -# silent_disappearance_effect = yes -# } -# } -# remove_character_flag = one_orphan_taken_flag -# remove_character_flag = no_orphans_taken_flag -# } -#} -# -##Tutor a local noblewoman -#ep3_story_cycle_violet_poet.1030 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.1030.t -# desc = ep3_story_cycle_violet_poet.1030.desc -# theme = violet_poet -# override_background = { reference = relaxing_room } -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:noblewoman -# animation = ecstasy -# } -# lower_center_portrait = { -# trigger = { scope:courtier_poet = { is_alive = yes} } -# character = scope:courtier_poet -# } -# cooldown = { years = 30 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# location.county = { #Take the county you're in -# any_neighboring_county = { #Now scope to a neighbouring county -# holder = { #and their holder -# OR = { -# any_courtier_or_guest = { #and finally their noble courtiers/guests -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# any_close_family_member = { #in case there are none, take their family member -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# } -# } -# } -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# location.county.holder = { save_scope_as = holder } -# location.county = { #Take the county you're in -# random_neighboring_county = { #Now scope to a neighbouring county -# limit = { -# holder = { -# OR = { -# any_courtier_or_guest = { #and finally their noble courtiers/guests -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# any_close_family_member = { #in case there are none, take their family member -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# } -# } -# } -# save_scope_as = neighbouring_county -# holder = { #and their holder -# if = { -# limit = { -# any_courtier_or_guest = { -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# } -# random_courtier_or_guest = { #and finally their noble courtiers/guests -# limit = { -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# save_scope_as = noblewoman -# } -# } -# else = { -# random_close_family_member = { #in case there are none, take their family member -# limit = { -# is_lowborn = no -# is_available = yes -# is_healthy = yes -# is_female = yes -# is_physically_able_ai_adult = yes -# } -# save_scope_as = noblewoman -# } -# } -# } -# } -# } -# if = { -# limit = { -# any_courtier = { -# is_physically_able_ai_adult = yes -# has_trait = lifestyle_poet -# } -# } -# random_courtier = { -# limit = { -# is_physically_able_ai_adult = yes -# has_trait = lifestyle_poet -# } -# save_scope_as = courtier_poet -# } -# } -# } -# -# option = { #I'll do it! -# name = ep3_story_cycle_violet_poet.1030.a -# -# scope:noblewoman = { -# pay_short_term_gold = { -# target = root -# gold = major_gold_value -# } -# } -# -# add_character_modifier = { -# modifier = ep3_tutoring_noblewoman_modifier -# years = 5 -# } -# -# reverse_add_opinion = { -# target = scope:noblewoman -# modifier = pleased_opinion -# opinion = 25 -# } -# -# stress_impact = { -# compassionate = minor_stress_loss -# greedy = minor_stress_loss -# callous = medium_stress_gain -# sadistic = medium_stress_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 0.5 -# ai_greed = 1 -# } -# } -# } -# -# option = { #I cannot spare the time -# name = ep3_story_cycle_violet_poet.1030.b -# -# add_character_modifier = { -# modifier = ep3_focused_on_studies_modifier -# years = 5 -# } -# -# reverse_add_opinion = { -# target = scope:noblewoman -# modifier = disappointed_opinion -# opinion = -10 -# } -# -# stress_impact = { -# compassionate = medium_stress_gain -# greedy = medium_stress_gain -# callous = minor_stress_loss -# sadistic = minor_stress_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# ai_greed = -1 -# } -# } -# } -# -# option = { #Perhaps I can offer you a replacement? -# name = ep3_story_cycle_violet_poet.1030.c -# -# trigger = { -# exists = scope:courtier_poet -# } -# -# flavor = ep3_story_cycle_violet_poet.1030.c.tt -# -# scope:noblewoman = { -# pay_short_term_gold = { -# target = root -# gold = minor_gold_value -# } -# pay_short_term_gold = { -# target = scope:courtier_poet -# gold = minor_gold_value -# } -# } -# -# reverse_add_opinion = { -# target = scope:noblewoman -# modifier = pleased_opinion -# opinion = 10 -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# } -# } -# } -#} -# -#### Ibn Zaydun chain -## Whenever darkness falls -#ep3_story_cycle_violet_poet.2000 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.2000.t -# desc = ep3_story_cycle_violet_poet.2000.desc -# theme = violet_poet -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:zaydun -# animation = love -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# -# cooldown = { years = 100 } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# has_trait = violet_poet -# character:andalusian_0003 = this -# character:andalusian_0004 = { #Ibn Zaydun -# is_alive = yes -# is_available_ai_adult = yes -# } -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# character:andalusian_0004 = { -# save_scope_as = zaydun -# } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# scope:zaydun.location = { -# save_scope_as = zaydun_original_location -# } -# } -# -# option = { #Perhaps I should write him a letter... -# name = ep3_story_cycle_violet_poet.2000.a -# -# custom_tooltip = ep3_story_cycle_violet_poet.2000.a.tt -# -# trigger_event = { #Since Ibn Zaydun is AI, just fake the interaction -# id = ep3_story_cycle_violet_poet.2001 -# days = { 11 15 } -# } -# -# stress_impact = { -# brave = minor_stress_impact_loss -# craven = medium_stress_impact_gain -# lustful = miniscule_stress_impact_loss -# chaste = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# option = { #Write a poem in memory of a lost love -# name = ep3_story_cycle_violet_poet.2000.b -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.2000.a.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_courting_scheme_phase_duration_add_3_modifier -# } -# } -# -# stress_impact = { -# content = miniscule_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# forgiving = minor_stress_impact_gain -# ambitious = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = 0.5 -# ai_sociability = -1 -# } -# } -# } -# -# option = { #The time has passed -# name = ep3_story_cycle_violet_poet.2000.c -# -# add_character_modifier = { -# modifier = ep3_star_crossed_modifier -# years = 5 -# } -# -# scope:zaydun = { -# add_character_modifier = { -# modifier = ep3_star_crossed_modifier -# years = 5 -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_energy = -1 -# } -# } -# } -#} -# -#ep3_story_cycle_violet_poet.2001 = { -# type = letter_event -# opening = ep3_story_cycle_violet_poet.2001.t -# desc = ep3_story_cycle_violet_poet.2001.desc -# sender = scope:zaydun -# -# trigger = { -# character:andalusian_0003 = this -# character:andalusian_0004 = { #Ibn Zaydun -# is_alive = yes -# is_available_ai_adult = yes -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# character:andalusian_0004 = { -# save_scope_as = zaydun -# } -# } -# -# option = { -# name = ep3_story_cycle_violet_poet.2001.a -# flavor = ep3_story_cycle_violet_poet.2001.a.flavor -# custom_tooltip = ep3_story_cycle_violet_poet.2001.a.tt -# -# -# hidden_effect = { -# scope:zaydun = { -# trigger_event = { -# id = ep3_story_cycle_violet_poet.2002 -# days = { 7 14 } -# } -# } -# } -# } -# -# option = { -# name = ep3_story_cycle_violet_poet.2001.b -# scope:zaydun = { -# add_stress = major_stress_gain -# } -# } -#} -# -#ep3_story_cycle_violet_poet.2002 = { -# type = character_event -# hidden = yes -# -# immediate = { -# character:andalusian_0003 = { -# add_courtier = scope:zaydun -# trigger_event = ep3_story_cycle_violet_poet.2005 -# } -# } -#} -# -##He arrives -#ep3_story_cycle_violet_poet.2005 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.2005.t -# desc = ep3_story_cycle_violet_poet.2005.desc -# theme = love -# override_background = { reference = relaxing_room } -# left_portrait = { -# character = root -# animation = love -# } -# right_portrait = { -# character = scope:zaydun -# animation = flirtation -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# character:andalusian_0003 = this -# character:andalusian_0004 = { #Ibn Zaydun -# is_alive = yes -# is_available_ai_adult = yes -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# character:andalusian_0004 = { -# save_scope_as = zaydun -# } -# } -# -# option = { #It's him! -# name = ep3_story_cycle_violet_poet.2005.a -# -# flavor = ep3_story_cycle_violet_poet.2005.a.tt -# -# add_character_modifier = { -# modifier = ep3_reunited_modifier -# years = 3 -# } -# -# scope:zaydun = { -# add_character_modifier = { -# modifier = ep3_reunited_modifier -# years = 3 -# } -# } -# -# stress_impact = { -# lustful = minor_stress_impact_loss -# chaste = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# } -# } -# } -# -# option = { #How useful to me! -# name = ep3_story_cycle_violet_poet.2005.b -# -# add_character_modifier = { -# modifier = ep3_famous_connections_modifier -# years = 5 -# } -# -# reverse_add_opinion = { -# target = scope:zaydun -# modifier = annoyed_opinion -# opinion = -25 -# } -# -# stress_impact = { -# ambitious = minor_stress_impact_loss -# content = medium_stress_impact_gain -# lustful = minor_stress_impact_gain -# chaste = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_compassion = -1 -# } -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_story_cycle_violet_poet.2010 -# days = { 12 18 } -# } -# } -#} -# -##He offers to collaborate on some poetry with you -#ep3_story_cycle_violet_poet.2010 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.2010.t -# desc = ep3_story_cycle_violet_poet.2010.desc -# theme = violet_poet -# override_background = { reference = relaxing_room } -# left_portrait = { -# character = root -# animation = thinking -# } -# right_portrait = { -# character = scope:zaydun -# animation = flirtation -# } -# artifact = { -# target = scope:double_moon_book -# position = lower_center_portrait -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# any_character_artifact = { -# has_artifact_modifier = double_moon_modifier -# } -# character:andalusian_0003 = this -# character:andalusian_0004 = { #Ibn Zaydun -# is_alive = yes -# is_available_ai_adult = yes -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# random_character_artifact = { -# limit = { -# has_artifact_modifier = double_moon_modifier -# } -# save_scope_as = double_moon_book -# } -# } -# -# option = { #Agree -# name = ep3_story_cycle_violet_poet.2010.a -# -# scope:double_moon_book = { -# set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book -# custom_tooltip = ep3_story_cycle_violet_poet.book.tt -# hidden_effect = { -# add_artifact_modifier = artifact_learning_per_prestige_level_modifier -# } -# } -# -# reverse_add_opinion = { -# target = scope:zaydun -# modifier = pleased_opinion -# opinion = 10 -# } -# -# stress_impact = { -# callous = minor_stress_impact_gain -# vengeful = minor_stress_impact_gain -# compassionate = minor_stress_impact_loss -# forgiving = minor_stress_impact_loss -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 0.5 -# } -# } -# } -# -# option = { #Disagree -# name = ep3_story_cycle_violet_poet.2010.b -# -# add_character_modifier = { -# modifier = ep3_quality_control_modifier -# years = 10 -# } -# -# reverse_add_opinion = { -# target = scope:zaydun -# modifier = disappointed_opinion -# opinion = -10 -# } -# -# stress_impact = { -# callous = minor_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# compassionate = minor_stress_impact_gain -# forgiving = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = -1 -# } -# } -# } -# -# after = { -# trigger_event = { -# id = ep3_story_cycle_violet_poet.2015 -# days = { 12 18 } -# } -# } -#} -# -##Ibn Zaydun is about to leave -#ep3_story_cycle_violet_poet.2015 = { -# type = character_event -# title = ep3_story_cycle_violet_poet.2015.t -# desc = ep3_story_cycle_violet_poet.2015.desc -# theme = violet_poet -# override_background = { reference = garden } -# left_portrait = { -# character = root -# animation = stress -# } -# right_portrait = { -# character = scope:zaydun -# triggered_animation = { -# trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } -# animation = acknowledging # anim uses crucifix scepter -# } -# animation = war_over_tie -# } -# artifact = { -# target = scope:newly_created_artifact -# position = lower_center_portrait -# } -# -# trigger = { -# has_ep3_dlc_trigger = yes -# character:andalusian_0003 = this -# character:andalusian_0004 = { #Ibn Zaydun -# is_alive = yes -# is_available_ai_adult = yes -# } -# } -# -# immediate = { -# location = { save_scope_as = location } -# -# hidden_effect = { -# random_dummy_gender_effect = yes -# create_artifact_ring_effect = { -# OWNER = scope:zaydun -# SMITH = scope:dummy_gender -# } -# scope:newly_created_artifact = { -# set_artifact_description = ep3_story_cycle_violet_poet.2015.artifact -# set_artifact_rarity = famed -# add_artifact_modifier = artifact_learn_language_scheme_phase_duration_add_2_modifier -# add_artifact_modifier = artifact_health_gain_1_modifier -# add_artifact_modifier = artifact_stress_gain_3_modifier -# set_owner = root -# } -# } -# } -# -# option = { #Beg him to stay -# name = ep3_story_cycle_violet_poet.2015.a -# -# duel = { -# skill = intrigue -# value = decent_skill_rating -# -# 75 = { #He accepts -# desc = ep3_story_cycle_violet_poet.2015.a.success -# compare_modifier = { -# value = scope:duel_value -# multiplier = 2.5 -# } -# -# modifier = { -# add = 5 -# opinion = { -# target = root -# value >= 25 -# } -# } -# modifier = { -# add = 10 -# opinion = { -# target = root -# value >= 45 -# } -# } -# modifier = { -# add = 15 -# opinion = { -# target = root -# value >= 65 -# } -# } -# -# modifier = { -# attraction >= low_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= medium_positive_attraction -# factor = 1.2 -# } -# modifier = { -# attraction >= high_positive_attraction -# factor = 1.2 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.2015.a.success -# left_icon = root -# right_icon = scope:zaydun -# -# add_character_modifier = { -# modifier = ep3_power_couple_modifier -# } -# -# set_relation_lover = { -# target = scope:zaydun -# reason = lover_old_flame -# } -# -# scope:zaydun = { -# remove_trait = depressed_1 -# } -# -# add_courtier = scope:zaydun -# } -# } -# -# 25 = { #He declines -# desc = ep3_story_cycle_violet_poet.2015.a.failure -# compare_modifier = { -# value = scope:duel_value -# multiplier = -2.5 -# } -# -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.2015.a.failure -# left_icon = root -# right_icon = scope:zaydun -# -# scope:zaydun = { -# start_travel_plan = { -# destination = scope:zaydun_original_location -# players_use_planner = no -# return_trip = no -# } -# } -# -# add_stress = major_stress_gain -# } -# } -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = 1 -# ai_vengefulness = -1 -# } -# } -# } -# -# option = { #Wish him a fond farewell -# name = ep3_story_cycle_violet_poet.2015.b -# -# flavor = ep3_story_cycle_violet_poet.2015.b.tt -# -# scope:zaydun = { -# start_travel_plan = { -# destination = scope:zaydun_original_location -# players_use_planner = no -# return_trip = no -# } -# } -# -# reverse_add_opinion = { -# target = scope:zaydun -# modifier = disappointed_opinion -# opinion = -10 -# } -# -# stress_impact = { -# callous = minor_stress_impact_loss -# vengeful = miniscule_stress_impact_loss -# compassionate = minor_stress_impact_gain -# forgiving = minor_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = -0.5 -# } -# } -# } -# -# option = { #Wish him an unfond farewell -# name = ep3_story_cycle_violet_poet.2015.c -# -# scope:zaydun = { -# start_travel_plan = { -# destination = scope:zaydun_original_location -# players_use_planner = no -# return_trip = no -# } -# add_trait = reclusive -# add_stress = major_stress_gain -# } -# -# random = { -# chance = 20 -# send_interface_toast = { -# title = ep3_story_cycle_violet_poet.2015.c.tt -# left_icon = root -# right_icon = scope:zaydun -# -# add_trait = contrite -# } -# } -# -# reverse_add_opinion = { -# target = scope:zaydun -# modifier = emotionally_devastated_opinion -# opinion = -70 -# } -# -# stress_impact = { -# callous = medium_stress_impact_loss -# vengeful = medium_stress_impact_loss -# compassionate = major_stress_impact_gain -# forgiving = major_stress_impact_gain -# } -# -# ai_chance = { -# base = 100 -# ai_value_modifier = { -# ai_sociability = -1 -# } -# } -# } -#} -# \ No newline at end of file +namespace = ep3_story_cycle_violet_poet + +################################################## +# Maintenance events +# 0001-0999 +################################################## + +#andalusian_0003 +#Visit Orphanage + +#Lead-in event +ep3_story_cycle_violet_poet.0001 = { + type = character_event + title = ep3_story_cycle_violet_poet.0001.t + desc = ep3_story_cycle_violet_poet.0001.desc + theme = violet_poet + left_portrait = { + character = root + animation = thinking + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + cooldown = { years = 100 } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + title:c_toledo.holder = { + save_scope_as = toledo_owner + } + title:c_toledo = { + save_scope_as = toledo + } + location = { + save_scope_as = cordoba + } + create_story = story_cycle_violet_poet + create_artifact = { + name = artifact_double_moon_book + description = artifact_double_moon_book_description + type = journal + visuals = book + modifier = double_moon_modifier + save_scope_as = double_moon_book + } + random_owned_story = { + type = story_cycle_violet_poet + set_variable = { name = artifact value = scope:double_moon_book } + } + hidden_effect = { + scope:double_moon_book = { + set_artifact_rarity = illustrious + } + #Error log suppression, the variable is set in the 01_laamp_titles.txt and checked in 00_succession_laws.txt + if = { + limit = { always = no } + primary_title = { + set_variable = { + name = can_keep_realm_law + value = flag:equal_law + } + } + } + } + } + + option = { #Stay in Cordoba + name = ep3_story_cycle_violet_poet.0001.a + + flavor = ep3_story_cycle_violet_poet.0001.a.tt + + stress_impact = { + content = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #Leave for pastures new + name = ep3_story_cycle_violet_poet.0001.b + + flavor = ep3_story_cycle_violet_poet.0001.b.tt + + custom_tooltip = ep3_story_cycle_violet_poet.0001.b.travel + + start_travel_plan = { + destination = scope:toledo_owner.capital_province + travel_with_domicile = yes + players_use_planner = no + return_trip = no + } + + stress_impact = { + diligent = miniscule_stress_impact_loss + } + + ai_chance = { + base = 0 #Prioritise her staying in Cordoba for AI + } + } + + after = { + hidden_effect = { + scope:double_moon_book = { + set_artifact_description = artifact_double_moon_book_description_append + } + } + if = { + limit = { + NOT = { + has_character_flag = violet_poet_designated_heir + } + } + trigger_event = { + id = ep3_story_cycle_violet_poet.0002 + years = { 4 5 } + } + } + } +} + +#Heir designation event two-parter +#Triggered within the first five years of violet_poet's life +ep3_story_cycle_violet_poet.0002 = { + type = character_event + title = ep3_story_cycle_violet_poet.0002.t + desc = ep3_story_cycle_violet_poet.0002.desc + theme = violet_poet + left_portrait = { + character = root + animation = worry + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + + trigger = { + has_ep3_dlc_trigger = yes + any_courtier = { + count > 1 + } + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + + option = { #Go for it + name = ep3_story_cycle_violet_poet.0002.a + + flavor = ep3_story_cycle_violet_poet.0002.a.tt + + trigger_event = { + id = ep3_story_cycle_violet_poet.0003 + days = { 1 2 } + } + + add_character_flag = violet_poet_designated_heir + + stress_impact = { + base = miniscule_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #Do not designate an heir + name = ep3_story_cycle_violet_poet.0002.b + + flavor = ep3_story_cycle_violet_poet.0002.b.flavor + custom_tooltip = ep3_story_cycle_violet_poet.0002.b.tt + + if = { + limit = { + NOT = { + has_character_flag = violet_poet_designated_heir + } + } + trigger_event = { + id = ep3_story_cycle_violet_poet.0002 + years = 5 + } + } + + stress_impact = { + base = miniscule_stress_impact_gain + } + + ai_chance = { + base = 0 #We want her to designate an heir + } + } +} + +#Heir designation event +ep3_story_cycle_violet_poet.0003 = { + type = character_event + title = ep3_story_cycle_violet_poet.0003.t + desc = { + desc = ep3_story_cycle_violet_poet.0003.opening + first_valid = { + triggered_desc = { + trigger = { + scope:heir1 = { + has_trait = lifestyle_poet + } + } + desc = ep3_story_cycle_violet_poet.0003.poet + } + desc = ep3_story_cycle_violet_poet.0003.diplomat + } + first_valid = { + triggered_desc = { + trigger = { + scope:heir2 = { + is_female = yes + } + } + desc = ep3_story_cycle_violet_poet.0003.woman + } + desc = ep3_story_cycle_violet_poet.0003.young + } + desc = ep3_story_cycle_violet_poet.0003.heir3 + first_valid = { + triggered_desc = { + trigger = { + scope:heir3 = { + has_trait = intellect_good + } + } + desc = ep3_story_cycle_violet_poet.0003.intelligent + } + triggered_desc = { + trigger = { + scope:heir3 = { + has_trait = beauty_good + } + } + desc = ep3_story_cycle_violet_poet.0003.beautiful + } + } + desc = ep3_story_cycle_violet_poet.0003.ending + } + + theme = violet_poet + left_portrait = { + character = root + animation = thinking + } + lower_left_portrait = { + character = scope:heir1 + } + lower_center_portrait = { + character = scope:heir2 + } + lower_right_portrait = { + character = scope:heir3 + } + + trigger = { + has_ep3_dlc_trigger = yes + this = character:andalusian_0003 + any_courtier = { + count > 1 + } + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + + #Heir 1 + #Prefers poets and high diplo, fallback is created + if = { + limit = { + any_courtier = { + OR = { + has_trait = lifestyle_poet + diplomacy > 20 + } + } + } + random_courtier = { + limit = { + OR = { + has_trait = lifestyle_poet + diplomacy > 20 + } + } + weight = { + base = 1 + modifier = { + factor = 4 + has_trait = lifestyle_poet + } + modifier = { + factor = 2 + diplomacy > 20 + } + } + save_scope_as = heir1 + } + } + else = { + hidden_effect = { + create_character = { + template = generic_peasant_character + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 50 + location = root.location + save_scope_as = heir1 + } + } + } + + #Heir 2 + #Prefers women and also young people, fallback is created + if = { + limit = { + any_courtier = { + OR = { + is_female = yes + age < 25 + } + } + } + random_courtier = { + limit = { + OR = { + is_female = yes + age < 25 + } + } + weight = { + base = 1 + modifier = { + factor = 4 + is_female = yes + } + modifier = { + factor = 2 + age < 25 + } + } + save_scope_as = heir2 + } + } + else = { + hidden_effect = { + create_character = { + template = generic_peasant_character + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 100 + location = root.location + save_scope_as = heir2 + } + } + } + + hidden_effect = { + create_character = { + template = ep3_wallada_heir_template + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 100 + location = root.location + save_scope_as = heir3 + } + } + } + + option = { #Choose heir 1 + name = ep3_story_cycle_violet_poet.0003.a + + set_designated_heir = scope:heir1 + if = { + limit = { + scope:heir1 = { + NOT = { is_courtier_of = root } + } + } + add_courtier = scope:heir1 + } + + adopt_effect = { + CHILD = scope:heir1 + ADOPTER = root + } + + stress_impact = { + base = miniscule_stress_impact_loss + } + + ai_chance = { + base = 25 + } + } + + option = { #Choose heir 2 + name = ep3_story_cycle_violet_poet.0003.b + + set_designated_heir = scope:heir2 + if = { + limit = { + scope:heir2 = { + NOT = { is_courtier_of = root } + } + } + add_courtier = scope:heir2 + } + + adopt_effect = { + CHILD = scope:heir2 + ADOPTER = root + } + + stress_impact = { + base = miniscule_stress_impact_gain + } + + ai_chance = { + base = 25 + } + } + + option = { #Choose heir 3 + name = ep3_story_cycle_violet_poet.0003.c + + set_designated_heir = scope:heir3 + if = { + limit = { + scope:heir3 = { + NOT = { is_courtier_of = root } + } + } + add_courtier = scope:heir3 + } + + adopt_effect = { + CHILD = scope:heir3 + ADOPTER = root + } + + stress_impact = { + base = miniscule_stress_impact_gain + } + + ai_chance = { + base = 100 #Prefer the cool one + } + } +} + +#Passing over things +ep3_story_cycle_violet_poet.0004 = { + type = character_event + title = ep3_story_cycle_violet_poet.0004.t + desc = ep3_story_cycle_violet_poet.0004.desc + theme = violet_poet + left_portrait = { + character = root + animation = grief + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + + trigger = { + has_ep3_dlc_trigger = yes + } + + immediate = { + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + + option = { #Pass over things + name = ep3_story_cycle_violet_poet.0004.a + + add_trait = violet_poet + + hidden_effect = { #To avoid redundancy + if = { + limit = { + has_trait = lifestyle_poet + } + remove_trait = lifestyle_poet + } + + ###Give them XP in the trait based off a few factors + #If they're, you know, living up to her standards + if = { + limit = { + any_memory = { + memory_type = had_sex + count > 4 + } + } + add_trait_xp = { + trait = violet_poet + value = { 4 8 } + } + } + #If they're bi + if = { + limit = { + has_sexuality = bisexual + } + add_trait_xp = { + trait = violet_poet + value = { 6 10 } + } + } + #If they're not tied down + if = { + limit = { + is_married = no + } + add_trait_xp = { + trait = violet_poet + value = { 2 4 } + } + } + } + + ai_chance = { + base = 100 + } + } +} + +## Maintenance events for Write Muwashshah Poem +# Sell Poem +ep3_story_cycle_violet_poet.0010 = { + hidden = yes + + immediate = { + send_interface_message = { + type = event_title_good + title = ep3_story_cycle_violet_poet.0010.title + left_icon = root + + if = { + limit = { + has_character_modifier = ep3_quality_control_modifier + } + add_gold = { medium_gold_laamps_value major_gold_laamps_value } + } + else = { + add_gold = { minor_gold_laamps_value medium_gold_laamps_value } + } + } + } +} + +# Keep Poem +ep3_story_cycle_violet_poet.0011 = { + hidden = yes + + immediate = { + if = { + limit = { + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + send_interface_message = { + type = msg_poem_kept + title = ep3_story_cycle_violet_poet.0011.title + desc = ep3_story_cycle_violet_poet.0011.message + left_icon = root + right_icon = scope:double_moon_book + + add_randomised_double_moon_modifier_effect = yes + } + } +} + +# Distribute Poem +ep3_story_cycle_violet_poet.0012 = { + hidden = yes + + immediate = { + send_interface_message = { + type = event_title_good + title = ep3_story_cycle_violet_poet.0012.title + left_icon = root + + if = { + limit = { + has_character_modifier = ep3_focused_on_studies_modifier + } + add_prestige = { minor_prestige_gain medium_prestige_gain } + } + else = { + add_prestige = { minor_prestige_gain major_prestige_gain } + } + } + } +} + +################################################## +# Violet poet Events +# by Nick Meredith & Eilidh MacRuaidhri +################################################## + +# Nature's Bounty +# Travel event +ep3_story_cycle_violet_poet.1000 = { + type = character_event + title = ep3_story_cycle_violet_poet.1000.t + desc = ep3_story_cycle_violet_poet.1000.desc + theme = travel + override_background = { reference = wilderness } + left_portrait = { + character = root + animation = thinking + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + is_landless_ruler = yes + is_available_travelling = yes + has_trait = violet_poet + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + location = { save_scope_as = location } + province:1995 = { save_scope_as = cordoba } # b_cordoba + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + + option = { #Write a poem + name = ep3_story_cycle_violet_poet.1000.a + + add_learning_lifestyle_xp = minor_lifestyle_experience + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1000.a.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_independent_ruler_opinion_2_modifier + } + } + + stress_impact = { + base = miniscule_stress_impact_loss + greedy = minor_stress_impact_gain + content = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + } + } + + option = { #Forage for wild plants + name = ep3_story_cycle_violet_poet.1000.b + + add_character_modifier = { + modifier = ep3_foraged_plants + years = 10 + } + + if = { + limit = { + NOT = { + has_trait = lifestyle_herbalist + } + } + random = { + chance = 30 + add_trait = lifestyle_herbalist + } + } + + stress_impact = { + diligent = miniscule_stress_impact_loss + greedy = miniscule_stress_impact_loss + brave = miniscule_stress_impact_loss + craven = miniscule_stress_impact_gain + lazy = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + } + } +} + +# A Fine Apprentice +ep3_story_cycle_violet_poet.1005 = { + type = character_event + title = ep3_story_cycle_violet_poet.1005.t + desc = ep3_story_cycle_violet_poet.1005.desc + theme = violet_poet + override_background = { reference = corridor_day } + left_portrait = { + character = root + animation = eavesdrop + } + right_portrait = { + character = scope:child + animation = throne_room_conversation_1 + } + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + location = { save_scope_as = location } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + hidden_effect = { + create_character = { + template = peasant_child_character + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 100 + learning = 14 + diplomacy = 16 + age = { 12 14 } + location = root.location + save_scope_as = child + } + } + } + + option = { #Take them in + name = ep3_story_cycle_violet_poet.1005.a + + flavor = ep3_story_cycle_violet_poet.1005.a.tt + + remove_short_term_gold = minor_gold_value + + add_courtier = scope:child + + stress_impact = { + greedy = minor_stress_impact_gain + generous = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + callous = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_compassion = 1 + ai_boldness = 1 + } + } + } + + option = { #Write a poem about it + name = ep3_story_cycle_violet_poet.1005.b + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1005.b.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_child_opinion_2_modifier + } + } + + hidden_effect = { + scope:child = { + move_to_pool = yes + } + } + + stress_impact = { + base = miniscule_stress_impact_loss + diligent = miniscule_stress_impact_loss + greedy = miniscule_stress_impact_loss + lazy = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 1 + ai_sociability = 1 + } + } + } + + option = { #Pay for their tuition + name = ep3_story_cycle_violet_poet.1005.c + + flavor = ep3_story_cycle_violet_poet.1005.c.tt + + remove_short_term_gold = medium_gold_value + + add_character_modifier = { + modifier = ep3_tuition_paid + years = 10 + } + + hidden_effect = { + scope:child = { + move_to_pool = yes + } + } + + stress_impact = { + greedy = minor_stress_impact_gain + generous = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + callous = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_greed = -1 + } + } + } +} + +# The Romance of Poetry +ep3_story_cycle_violet_poet.1010 = { + type = character_event + title = ep3_story_cycle_violet_poet.1010.t + desc = ep3_story_cycle_violet_poet.1010.desc + theme = violet_poet + override_background = { reference = corridor_day } + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:ruler_spouse + animation = admiration + } + lower_center_portrait = { + character = scope:ruler + } + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + location.barony.holder = { + any_spouse = { + is_attracted_to_gender_of = root + } + } + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + location = { save_scope_as = location } + location.barony.holder = { + random_spouse = { + limit = { + is_attracted_to_gender_of = root + } + save_scope_as = ruler_spouse + } + save_scope_as = ruler + } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + + option = { #Offer 'private poetry reading' + name = ep3_story_cycle_violet_poet.1010.a + + duel = { + skill = intrigue + value = decent_skill_rating + + 50 = { #She's down + desc = ep3_story_cycle_violet_poet.1010.a.success + compare_modifier = { + value = scope:duel_value + multiplier = 2.5 + } + + modifier = { + attraction >= low_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= medium_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= high_positive_attraction + factor = 1.2 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1010.a.success + left_icon = root + right_icon = scope:ruler_spouse + + had_sex_with_effect = { + CHARACTER = scope:ruler_spouse + PREGNANCY_CHANCE = pregnancy_chance + } + } + } + + 50 = { #She ain't down + desc = ep3_story_cycle_violet_poet.1010.a.failure + compare_modifier = { + value = scope:duel_value + multiplier = -2.5 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1010.a.failure + left_icon = root + right_icon = scope:ruler_spouse + + add_stress = medium_stress_gain + + reverse_add_opinion = { + target = scope:ruler + modifier = suspicious_opinion + opinion = -5 + } + } + } + } + + stress_impact = { + lustful = minor_stress_impact_loss + gregarious = miniscule_stress_impact_loss + shy = minor_stress_impact_gain + seducer = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + } + } + } + + option = { #Write about it + name = ep3_story_cycle_violet_poet.1010.b + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1010.b.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_seduce_scheme_phase_duration_add_2_modifier + } + } + + add_prestige = minor_prestige_gain + + stress_impact = { + base = miniscule_stress_impact_loss + shy = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + ai_sociability = -1 + } + } + } + + option = { #Start romance scheme + name = ep3_story_cycle_violet_poet.1010.c + + trigger = { + can_start_scheme = { + type = courting + target_character = scope:ruler_spouse + } + } + + start_scheme = { + type = courting + target_character = scope:ruler_spouse + } + + custom_tooltip = ep3_story_cycle_violet_poet.1010.c.tt + + hidden_effect = { + random_scheme = { + type = courting + limit = { + scheme_target_character = scope:ruler_spouse + } + add_scheme_modifier = { + type = extra_success_chance_modifier + } + } + } + + stress_impact = { + greedy = minor_stress_impact_gain + generous = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + callous = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 1 + ai_sociability = 1 + } + } + } +} + +# A Follower, Enamored +ep3_story_cycle_violet_poet.1015 = { + type = character_event + title = ep3_story_cycle_violet_poet.1015.t + desc = ep3_story_cycle_violet_poet.1015.desc + theme = violet_poet + override_background = { reference = bp1_bonfire } + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:stranger + animation = admiration + } + + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + } + + immediate = { + location = { save_scope_as = location } + create_character = { + template = beautiful_peasant_character #Make 'em pretty, just for fun + age = { 30 70 } + gender_female_chance = root_attraction_based_female_chance + location = root.location + faith = root.faith + culture = root.culture + + after_creation = { + set_sexuality = bisexual #Screw it + } + + save_scope_as = stranger + } + } + + option = { #Dang, you sit with that ass? + name = ep3_story_cycle_violet_poet.1015.a + + trigger = { + has_trait = lustful + } + + duel = { + skill = intrigue + value = decent_skill_rating + + 50 = { #They're down + desc = ep3_story_cycle_violet_poet.1015.a.success + compare_modifier = { + value = scope:duel_value + multiplier = 2.5 + } + + modifier = { + attraction >= low_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= medium_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= high_positive_attraction + factor = 1.2 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1015.a.success + left_icon = root + right_icon = scope:stranger + + had_sex_with_effect = { + CHARACTER = scope:stranger + PREGNANCY_CHANCE = pregnancy_chance + } + } + } + + 50 = { #They ain't down + desc = ep3_story_cycle_violet_poet.1015.a.failure + compare_modifier = { + value = scope:duel_value + multiplier = -2.5 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1015.a.failure + left_icon = root + right_icon = scope:stranger + + hidden_effect = { + scope:stranger = { + move_to_pool = yes + } + } + + add_stress = minor_stress_gain + } + } + } + + stress_impact = { + lustful = minor_stress_impact_loss + gregarious = miniscule_stress_impact_loss + shy = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_boldness = 1 + } + } + } + + option = { #Offer them a place in your camp + name = ep3_story_cycle_violet_poet.1015.b + + reverse_add_opinion = { + target = scope:stranger + modifier = grateful_opinion + opinion = 35 + } + + add_courtier = scope:stranger + + if = { + limit = { + NOT = { + employs_court_position = travel_leader_court_position + } + } + court_position_grant_effect = { + CANDIDATE = scope:stranger + POS = travel_leader + EMPLOYER = root + } + } + + stress_impact = { + lustful = minor_stress_impact_gain + gregarious = miniscule_stress_impact_loss + trusting = miniscule_stress_impact_loss + paranoid = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -0.5 + ai_sociability = 1 + } + } + } + + option = { #Take the compliment + name = ep3_story_cycle_violet_poet.1015.c + + add_character_modifier = { + modifier = ep3_from_far_and_wide + years = 10 + } + + scope:stranger = { + silent_disappearance_effect = yes + } + + stress_impact = { + base = minor_stress_impact_loss + humble = miniscule_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + ai_sociability = 1 + } + } + } +} + +# The Fog that Clouds All +ep3_story_cycle_violet_poet.1020 = { + type = character_event + title = ep3_story_cycle_violet_poet.1020.t + desc = ep3_story_cycle_violet_poet.1020.desc + theme = violet_poet + left_portrait = { + character = root + animation = stress + } + lower_right_portrait = { + trigger = { scope:poet = { is_alive = yes } } + character = scope:poet + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + location = { save_scope_as = location } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + if = { + limit = { + any_courtier = { + diplomacy > 20 + } + } + random_courtier = { + limit = { + diplomacy > 20 + } + save_scope_as = poet + } + } + } + + option = { #Ask another poet to help + name = ep3_story_cycle_violet_poet.1020.a + reason = skilled_follower + + trigger = { + custom_description = { + text = followers_over_diplomacy + any_courtier = { + diplomacy > 20 + } + } + } + show_as_unavailable = { + custom_description = { + text = followers_over_diplomacy + NOT = { + any_courtier = { + diplomacy > 20 + } + } + } + } + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_personal_scheme_phase_duration_add_2_modifier + } + } + + progress_towards_friend_effect = { + REASON = friend_helped_poetry + CHARACTER = scope:poet + OPINION = default_friend_opinion + } + + stress_impact = { + base = minor_stress_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + option = { #Try and persevere + name = ep3_story_cycle_violet_poet.1020.b + + duel = { + skill = learning + value = decent_skill_rating + + 50 = { #It works + desc = ep3_story_cycle_violet_poet.1020.b.success + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + } + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_personal_scheme_phase_duration_add_2_modifier + } + } + } + + 50 = { #She ain't down + desc = ep3_story_cycle_violet_poet.1020.b.failure + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1020.b.failure + left_icon = root + + add_character_modifier = { + modifier = ep3_pushed_too_hard + years = 5 + } + } + } + } + + stress_impact = { + lazy = medium_stress_impact_gain + diligent = miniscule_stress_impact_loss + ambitious = miniscule_stress_impact_loss + content = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 1 + } + } + } + + option = { #Take a break and enjoy life + name = ep3_story_cycle_violet_poet.1020.c + + random_list = { + 10 = { #It works + desc = ep3_story_cycle_violet_poet.1020.c.success + modifier = { + trigger = { + has_trait = lazy + } + add = 5 + } + modifier = { + trigger = { + has_trait = content + } + add = 3 + } + modifier = { + trigger = { + has_trait = calm + } + add = 2 + } + send_interface_toast = { + type = event_toast_effect_good + title = ep3_story_cycle_violet_poet.1020.c.success + left_icon = root + + add_character_modifier = ep3_refreshed_and_relaxed + } + } + + 10 = { #Didn't work + desc = ep3_story_cycle_violet_poet.1020.c.failure + modifier = { + trigger = { + has_trait = diligent + } + add = 5 + } + modifier = { + trigger = { + has_trait = ambitious + } + add = 3 + } + modifier = { + trigger = { + has_trait = wrathful + } + add = 2 + } + send_interface_toast = { + type = event_toast_effect_bad + title = ep3_story_cycle_violet_poet.1020.c.failure + left_icon = root + + add_stress = medium_stress_gain + } + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + } + } + } +} + +scripted_effect save_the_orphans_effect = { + add_to_list = list_of_orphans + if = { + limit = { exists = scope:orphan3 } + save_scope_as = orphan4 + } + else_if = { + limit = { exists = scope:orphan2 } + save_scope_as = orphan3 + } + else = { save_scope_as = orphan2 } +} + +#Adopt orphans +ep3_story_cycle_violet_poet.1025 = { + type = character_event + title = ep3_story_cycle_violet_poet.1025.t + desc = ep3_story_cycle_violet_poet.1025.desc + theme = violet_poet + override_background = { reference = courtyard } + left_portrait = { + character = root + animation = worry + } + right_portrait = { + character = scope:orphan + animation = clutching_toy + } + lower_center_portrait = { + character = scope:orphan2 + } + lower_left_portrait = { + character = scope:orphan3 + } + lower_right_portrait = { + character = scope:orphan4 + } + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + } + + immediate = { + location = { save_scope_as = location } + scope:location.county.holder = { save_scope_as = holder } + # Orphan 1 + create_character = { + template = fp1_capital_county_orphan_character + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 100 #For protege purposes + location = root.location + save_scope_as = orphan + } + hidden_effect = { + scope:orphan = { + add_learning_skill = 5 #Make her an interesting choice + add_to_list = list_of_orphans + } + } + # Orphans 2-4 + ordered_pool_character = { + province = root.location + limit = { + age < 11 + location = root.location + is_lowborn = yes + NOT = { is_in_list = list_of_orphans } + } + order_by = age + max = 3 + check_range_bounds = no + save_the_orphans_effect = yes + } + while = { + limit = { + any_in_list = { + list = list_of_orphans + count < 4 + } + } + create_character = { + template = fp1_capital_county_orphan_character + culture = location.county.culture + faith = location.county.faith + gender_female_chance = 50 + location = root.location + save_scope_as = new_orphan + } + scope:new_orphan = { save_the_orphans_effect = yes } + } + } + + option = { #I'll take them all! + name = ep3_story_cycle_violet_poet.1025.a + + flavor = ep3_story_cycle_violet_poet.1025.a.tt + + remove_short_term_gold = major_gold_value + + add_courtier = scope:orphan + add_courtier = scope:orphan2 + add_courtier = scope:orphan3 + add_courtier = scope:orphan4 + + every_in_list = { + list = list_of_orphans + custom = 1025_every_orphan + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 35 + } + random = { + chance = 50 + add_trait = loyal + } + } + + add_character_modifier = { + modifier = ep3_friend_to_orphans + years = 30 + } + + stress_impact = { + generous = minor_stress_loss + compassionate = minor_stress_loss + greedy = medium_stress_gain + callous = medium_stress_gain + sadistic = medium_stress_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + ai_greed = -1 + } + } + } + + option = { #Take the actually talented one lol + name = ep3_story_cycle_violet_poet.1025.b + + flavor = ep3_story_cycle_violet_poet.1025.b.tt + + remove_short_term_gold = minor_gold_value + + add_character_flag = one_orphan_taken_flag + + add_courtier = scope:orphan + + reverse_add_opinion = { + target = scope:orphan + modifier = grateful_opinion + opinion = 45 + } + + random = { + chance = 50 + send_interface_toast = { + type = event_toast_effect_good + title = ep3_story_cycle_violet_poet.1025.b.success + left_icon = root + right_icon = scope:orphan + scope:orphan = { + add_diplomacy_skill = { 1 3 } + } + } + } + + stress_impact = { + generous = medium_stress_gain + compassionate = medium_stress_gain + greedy = minor_stress_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 0.5 + ai_greed = -0.5 + } + } + } + + option = { #Try to shame the local lord into paying + name = ep3_story_cycle_violet_poet.1025.c + + trigger = { + scope:holder = { + is_ai = yes + } + } + + flavor = ep3_story_cycle_violet_poet.1025.c.tt + + add_character_flag = no_orphans_taken_flag + + duel = { + skill = diplomacy + target = scope:holder + + 50 = { #He accepts + desc = ep3_story_cycle_violet_poet.1025.c.success + compare_modifier = { + value = scope:duel_value + multiplier = 3.5 + } + min = 10 + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1025.c.success + left_icon = root + right_icon = scope:holder + + scope:holder = { + remove_short_term_gold = minor_gold_value + } + + scope:location.county = { + add_county_modifier = { + modifier = ep3_healthy_orphanages_modifier + years = 20 + } + } + } + } + + 50 = { #He declines + desc = ep3_story_cycle_violet_poet.1025.c.failure + compare_modifier = { + value = scope:duel_value + multiplier = -3.5 + } + min = 10 + send_interface_toast = { + title = ep3_story_cycle_violet_poet.1025.c.failure + left_icon = root + right_icon = scope:holder + + add_stress = medium_stress_gain + } + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + } + } + } + + after = { + if = { + limit = { + OR = { + has_character_flag = one_orphan_taken_flag + has_character_flag = no_orphans_taken_flag + } + } + every_in_list = { + list = list_of_orphans + limit = { + trigger_if = { + limit = { + root = { has_character_flag = one_orphan_taken_flag } + } + NOT = { scope:orphan ?= this } + } + } + silent_disappearance_effect = yes + } + } + remove_character_flag = one_orphan_taken_flag + remove_character_flag = no_orphans_taken_flag + } +} + +#Tutor a local noblewoman +ep3_story_cycle_violet_poet.1030 = { + type = character_event + title = ep3_story_cycle_violet_poet.1030.t + desc = ep3_story_cycle_violet_poet.1030.desc + theme = violet_poet + override_background = { reference = relaxing_room } + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:noblewoman + animation = ecstasy + } + lower_center_portrait = { + trigger = { scope:courtier_poet = { is_alive = yes} } + character = scope:courtier_poet + } + cooldown = { years = 30 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + location.county = { #Take the county you're in + any_neighboring_county = { #Now scope to a neighbouring county + holder = { #and their holder + OR = { + any_courtier_or_guest = { #and finally their noble courtiers/guests + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + any_close_family_member = { #in case there are none, take their family member + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + } + } + } + } + } + + immediate = { + location = { save_scope_as = location } + location.county.holder = { save_scope_as = holder } + location.county = { #Take the county you're in + random_neighboring_county = { #Now scope to a neighbouring county + limit = { + holder = { + OR = { + any_courtier_or_guest = { #and finally their noble courtiers/guests + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + any_close_family_member = { #in case there are none, take their family member + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + } + } + } + save_scope_as = neighbouring_county + holder = { #and their holder + if = { + limit = { + any_courtier_or_guest = { + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + } + random_courtier_or_guest = { #and finally their noble courtiers/guests + limit = { + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + save_scope_as = noblewoman + } + } + else = { + random_close_family_member = { #in case there are none, take their family member + limit = { + is_lowborn = no + is_available = yes + is_healthy = yes + is_female = yes + is_physically_able_ai_adult = yes + } + save_scope_as = noblewoman + } + } + } + } + } + if = { + limit = { + any_courtier = { + is_physically_able_ai_adult = yes + has_trait = lifestyle_poet + } + } + random_courtier = { + limit = { + is_physically_able_ai_adult = yes + has_trait = lifestyle_poet + } + save_scope_as = courtier_poet + } + } + } + + option = { #I'll do it! + name = ep3_story_cycle_violet_poet.1030.a + + scope:noblewoman = { + pay_short_term_gold = { + target = root + gold = major_gold_value + } + } + + add_character_modifier = { + modifier = ep3_tutoring_noblewoman_modifier + years = 5 + } + + reverse_add_opinion = { + target = scope:noblewoman + modifier = pleased_opinion + opinion = 25 + } + + stress_impact = { + compassionate = minor_stress_loss + greedy = minor_stress_loss + callous = medium_stress_gain + sadistic = medium_stress_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 0.5 + ai_greed = 1 + } + } + } + + option = { #I cannot spare the time + name = ep3_story_cycle_violet_poet.1030.b + + add_character_modifier = { + modifier = ep3_focused_on_studies_modifier + years = 5 + } + + reverse_add_opinion = { + target = scope:noblewoman + modifier = disappointed_opinion + opinion = -10 + } + + stress_impact = { + compassionate = medium_stress_gain + greedy = medium_stress_gain + callous = minor_stress_loss + sadistic = minor_stress_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + ai_greed = -1 + } + } + } + + option = { #Perhaps I can offer you a replacement? + name = ep3_story_cycle_violet_poet.1030.c + + trigger = { + exists = scope:courtier_poet + } + + flavor = ep3_story_cycle_violet_poet.1030.c.tt + + scope:noblewoman = { + pay_short_term_gold = { + target = root + gold = minor_gold_value + } + pay_short_term_gold = { + target = scope:courtier_poet + gold = minor_gold_value + } + } + + reverse_add_opinion = { + target = scope:noblewoman + modifier = pleased_opinion + opinion = 10 + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + } + } + } +} + +### Ibn Zaydun chain +# Whenever darkness falls +ep3_story_cycle_violet_poet.2000 = { + type = character_event + title = ep3_story_cycle_violet_poet.2000.t + desc = ep3_story_cycle_violet_poet.2000.desc + theme = violet_poet + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:zaydun + animation = love + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + + cooldown = { years = 100 } + + trigger = { + has_ep3_dlc_trigger = yes + has_trait = violet_poet + character:andalusian_0003 = this + character:andalusian_0004 = { #Ibn Zaydun + is_alive = yes + is_available_ai_adult = yes + } + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + } + + immediate = { + location = { save_scope_as = location } + character:andalusian_0004 = { + save_scope_as = zaydun + } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + scope:zaydun.location = { + save_scope_as = zaydun_original_location + } + } + + option = { #Perhaps I should write him a letter... + name = ep3_story_cycle_violet_poet.2000.a + + custom_tooltip = ep3_story_cycle_violet_poet.2000.a.tt + + trigger_event = { #Since Ibn Zaydun is AI, just fake the interaction + id = ep3_story_cycle_violet_poet.2001 + days = { 11 15 } + } + + stress_impact = { + brave = minor_stress_impact_loss + craven = medium_stress_impact_gain + lustful = miniscule_stress_impact_loss + chaste = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + option = { #Write a poem in memory of a lost love + name = ep3_story_cycle_violet_poet.2000.b + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.2000.a.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_courting_scheme_phase_duration_add_3_modifier + } + } + + stress_impact = { + content = miniscule_stress_impact_loss + vengeful = miniscule_stress_impact_loss + forgiving = minor_stress_impact_gain + ambitious = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = 0.5 + ai_sociability = -1 + } + } + } + + option = { #The time has passed + name = ep3_story_cycle_violet_poet.2000.c + + add_character_modifier = { + modifier = ep3_star_crossed_modifier + years = 5 + } + + scope:zaydun = { + add_character_modifier = { + modifier = ep3_star_crossed_modifier + years = 5 + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_energy = -1 + } + } + } +} + +ep3_story_cycle_violet_poet.2001 = { + type = letter_event + opening = ep3_story_cycle_violet_poet.2001.t + desc = ep3_story_cycle_violet_poet.2001.desc + sender = scope:zaydun + + trigger = { + character:andalusian_0003 = this + character:andalusian_0004 = { #Ibn Zaydun + is_alive = yes + is_available_ai_adult = yes + } + } + + immediate = { + location = { save_scope_as = location } + character:andalusian_0004 = { + save_scope_as = zaydun + } + } + + option = { + name = ep3_story_cycle_violet_poet.2001.a + flavor = ep3_story_cycle_violet_poet.2001.a.flavor + custom_tooltip = ep3_story_cycle_violet_poet.2001.a.tt + + + hidden_effect = { + scope:zaydun = { + trigger_event = { + id = ep3_story_cycle_violet_poet.2002 + days = { 7 14 } + } + } + } + } + + option = { + name = ep3_story_cycle_violet_poet.2001.b + scope:zaydun = { + add_stress = major_stress_gain + } + } +} + +ep3_story_cycle_violet_poet.2002 = { + type = character_event + hidden = yes + + immediate = { + character:andalusian_0003 = { + add_courtier = scope:zaydun + trigger_event = ep3_story_cycle_violet_poet.2005 + } + } +} + +#He arrives +ep3_story_cycle_violet_poet.2005 = { + type = character_event + title = ep3_story_cycle_violet_poet.2005.t + desc = ep3_story_cycle_violet_poet.2005.desc + theme = love + override_background = { reference = relaxing_room } + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:zaydun + animation = flirtation + } + + trigger = { + has_ep3_dlc_trigger = yes + character:andalusian_0003 = this + character:andalusian_0004 = { #Ibn Zaydun + is_alive = yes + is_available_ai_adult = yes + } + } + + immediate = { + location = { save_scope_as = location } + character:andalusian_0004 = { + save_scope_as = zaydun + } + } + + option = { #It's him! + name = ep3_story_cycle_violet_poet.2005.a + + flavor = ep3_story_cycle_violet_poet.2005.a.tt + + add_character_modifier = { + modifier = ep3_reunited_modifier + years = 3 + } + + scope:zaydun = { + add_character_modifier = { + modifier = ep3_reunited_modifier + years = 3 + } + } + + stress_impact = { + lustful = minor_stress_impact_loss + chaste = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + } + } + } + + option = { #How useful to me! + name = ep3_story_cycle_violet_poet.2005.b + + add_character_modifier = { + modifier = ep3_famous_connections_modifier + years = 5 + } + + reverse_add_opinion = { + target = scope:zaydun + modifier = annoyed_opinion + opinion = -25 + } + + stress_impact = { + ambitious = minor_stress_impact_loss + content = medium_stress_impact_gain + lustful = minor_stress_impact_gain + chaste = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_compassion = -1 + } + } + } + + after = { + trigger_event = { + id = ep3_story_cycle_violet_poet.2010 + days = { 12 18 } + } + } +} + +#He offers to collaborate on some poetry with you +ep3_story_cycle_violet_poet.2010 = { + type = character_event + title = ep3_story_cycle_violet_poet.2010.t + desc = ep3_story_cycle_violet_poet.2010.desc + theme = violet_poet + override_background = { reference = relaxing_room } + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:zaydun + animation = flirtation + } + artifact = { + target = scope:double_moon_book + position = lower_center_portrait + } + + trigger = { + has_ep3_dlc_trigger = yes + any_character_artifact = { + has_artifact_modifier = double_moon_modifier + } + character:andalusian_0003 = this + character:andalusian_0004 = { #Ibn Zaydun + is_alive = yes + is_available_ai_adult = yes + } + } + + immediate = { + location = { save_scope_as = location } + random_character_artifact = { + limit = { + has_artifact_modifier = double_moon_modifier + } + save_scope_as = double_moon_book + } + } + + option = { #Agree + name = ep3_story_cycle_violet_poet.2010.a + + scope:double_moon_book = { + set_artifact_description = ep3_story_cycle_violet_poet.1020.a.book + custom_tooltip = ep3_story_cycle_violet_poet.book.tt + hidden_effect = { + add_artifact_modifier = artifact_learning_per_prestige_level_modifier + } + } + + reverse_add_opinion = { + target = scope:zaydun + modifier = pleased_opinion + opinion = 10 + } + + stress_impact = { + callous = minor_stress_impact_gain + vengeful = minor_stress_impact_gain + compassionate = minor_stress_impact_loss + forgiving = minor_stress_impact_loss + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 0.5 + } + } + } + + option = { #Disagree + name = ep3_story_cycle_violet_poet.2010.b + + add_character_modifier = { + modifier = ep3_quality_control_modifier + years = 10 + } + + reverse_add_opinion = { + target = scope:zaydun + modifier = disappointed_opinion + opinion = -10 + } + + stress_impact = { + callous = minor_stress_impact_loss + vengeful = miniscule_stress_impact_loss + compassionate = minor_stress_impact_gain + forgiving = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = -1 + } + } + } + + after = { + trigger_event = { + id = ep3_story_cycle_violet_poet.2015 + days = { 12 18 } + } + } +} + +#Ibn Zaydun is about to leave +ep3_story_cycle_violet_poet.2015 = { + type = character_event + title = ep3_story_cycle_violet_poet.2015.t + desc = ep3_story_cycle_violet_poet.2015.desc + theme = violet_poet + override_background = { reference = garden } + left_portrait = { + character = root + animation = stress + } + right_portrait = { + character = scope:zaydun + triggered_animation = { + trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } + animation = acknowledging # anim uses crucifix scepter + } + animation = war_over_tie + } + artifact = { + target = scope:newly_created_artifact + position = lower_center_portrait + } + + trigger = { + has_ep3_dlc_trigger = yes + character:andalusian_0003 = this + character:andalusian_0004 = { #Ibn Zaydun + is_alive = yes + is_available_ai_adult = yes + } + } + + immediate = { + location = { save_scope_as = location } + + hidden_effect = { + random_dummy_gender_effect = yes + create_artifact_ring_effect = { + OWNER = scope:zaydun + SMITH = scope:dummy_gender + } + scope:newly_created_artifact = { + set_artifact_description = ep3_story_cycle_violet_poet.2015.artifact + set_artifact_rarity = famed + add_artifact_modifier = artifact_learn_language_scheme_phase_duration_add_2_modifier + add_artifact_modifier = artifact_health_gain_1_modifier + add_artifact_modifier = artifact_stress_gain_3_modifier + set_owner = root + } + } + } + + option = { #Beg him to stay + name = ep3_story_cycle_violet_poet.2015.a + + duel = { + skill = intrigue + value = decent_skill_rating + + 75 = { #He accepts + desc = ep3_story_cycle_violet_poet.2015.a.success + compare_modifier = { + value = scope:duel_value + multiplier = 2.5 + } + + modifier = { + add = 5 + opinion = { + target = root + value >= 25 + } + } + modifier = { + add = 10 + opinion = { + target = root + value >= 45 + } + } + modifier = { + add = 15 + opinion = { + target = root + value >= 65 + } + } + + modifier = { + attraction >= low_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= medium_positive_attraction + factor = 1.2 + } + modifier = { + attraction >= high_positive_attraction + factor = 1.2 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.2015.a.success + left_icon = root + right_icon = scope:zaydun + + add_character_modifier = { + modifier = ep3_power_couple_modifier + } + + set_relation_lover = { + target = scope:zaydun + reason = lover_old_flame + } + + scope:zaydun = { + remove_trait = depressed_1 + } + + add_courtier = scope:zaydun + } + } + + 25 = { #He declines + desc = ep3_story_cycle_violet_poet.2015.a.failure + compare_modifier = { + value = scope:duel_value + multiplier = -2.5 + } + + send_interface_toast = { + title = ep3_story_cycle_violet_poet.2015.a.failure + left_icon = root + right_icon = scope:zaydun + + scope:zaydun = { + start_travel_plan = { + destination = scope:zaydun_original_location + players_use_planner = no + return_trip = no + } + } + + add_stress = major_stress_gain + } + } + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = 1 + ai_vengefulness = -1 + } + } + } + + option = { #Wish him a fond farewell + name = ep3_story_cycle_violet_poet.2015.b + + flavor = ep3_story_cycle_violet_poet.2015.b.tt + + scope:zaydun = { + start_travel_plan = { + destination = scope:zaydun_original_location + players_use_planner = no + return_trip = no + } + } + + reverse_add_opinion = { + target = scope:zaydun + modifier = disappointed_opinion + opinion = -10 + } + + stress_impact = { + callous = minor_stress_impact_loss + vengeful = miniscule_stress_impact_loss + compassionate = minor_stress_impact_gain + forgiving = minor_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = -0.5 + } + } + } + + option = { #Wish him an unfond farewell + name = ep3_story_cycle_violet_poet.2015.c + + scope:zaydun = { + start_travel_plan = { + destination = scope:zaydun_original_location + players_use_planner = no + return_trip = no + } + add_trait = reclusive + add_stress = major_stress_gain + } + + random = { + chance = 20 + send_interface_toast = { + title = ep3_story_cycle_violet_poet.2015.c.tt + left_icon = root + right_icon = scope:zaydun + + add_trait = contrite + } + } + + reverse_add_opinion = { + target = scope:zaydun + modifier = emotionally_devastated_opinion + opinion = -70 + } + + stress_impact = { + callous = medium_stress_impact_loss + vengeful = medium_stress_impact_loss + compassionate = major_stress_impact_gain + forgiving = major_stress_impact_gain + } + + ai_chance = { + base = 100 + ai_value_modifier = { + ai_sociability = -1 + } + } + } +} diff --git a/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt b/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt index 64b021c5..7c2ab436 100644 --- a/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt +++ b/events/dlc/fp1/fp1_scandinavian_adventurer_events.txt @@ -17,7 +17,7 @@ scripted_trigger significant_north_germanic_presence_trigger = { holder = { OR = { culture = { has_cultural_pillar = heritage_north_germanic } -# has_culture = culture:norman + has_culture = culture:norman has_character_modifier = embraced_local_traditions_modifier dynasty ?= { has_dynasty_modifier = settled_norse_dynasty_modifier @@ -43,7 +43,7 @@ scripted_trigger scattered_north_germanic_presence_trigger = { holder = { OR = { culture = { has_cultural_pillar = heritage_north_germanic } -# has_culture = culture:norman + has_culture = culture:norman has_character_modifier = embraced_local_traditions_modifier dynasty ?= { has_dynasty_modifier = settled_norse_dynasty_modifier @@ -57,7 +57,7 @@ scripted_trigger valid_adventurer_target_trigger = { NOR = { #Filter out North Germanics & Normans. culture = { has_cultural_pillar = heritage_north_germanic } -# has_culture = culture:norman + has_culture = culture:norman has_character_modifier = embraced_local_traditions_modifier dynasty ?= { has_dynasty_modifier = settled_norse_dynasty_modifier diff --git a/events/dlc/fp1/fp1_yearly_events.txt b/events/dlc/fp1/fp1_yearly_events.txt index 61918f7c..63d14221 100644 --- a/events/dlc/fp1/fp1_yearly_events.txt +++ b/events/dlc/fp1/fp1_yearly_events.txt @@ -16677,7 +16677,10 @@ fp1_yearly.1081 = { #If Portugal exists, then obviously they were time-travelling Portuguese. if = { limit = { - always = yes + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:form_portugal_decision + } } culture:portuguese = { save_scope_as = antilia_culture } } diff --git a/events/dlc/fp2/fp2_other_decision_events.txt b/events/dlc/fp2/fp2_other_decision_events.txt index 92d5e001..e29b674b 100644 --- a/events/dlc/fp2/fp2_other_decision_events.txt +++ b/events/dlc/fp2/fp2_other_decision_events.txt @@ -508,2063 +508,2062 @@ fp2_other_decisions.0001 = { } } -################################################### -## Council of Toledo - Organization -## by Joe Parkin and Ola Jentzsch -## 0700 Decide who to invite -################################################### -# -#scripted_effect fetch_council_toledo_priest_effect = { -# if = { -# limit = { exists = cp:councillor_court_chaplain } -# cp:councillor_court_chaplain = { save_scope_as = council_priest } -# } -# else = { -# random_vassal_or_below = { -# limit = { -# NOR = { -# government_has_flag = government_is_republic -# government_has_flag = government_is_feudal -# } -# OR = { -# has_trait = devoted -# has_education_learning_trigger = yes -# } -# } -# save_scope_as = council_priest -# } -# } -#} -# -#scripted_effect fp2_struggle_council_toledo_attendee_effect = { -# hidden_effect = { -# if = { -# limit = { government_has_flag = government_is_theocracy } -# random = { -# chance = 25 -# fp2_council_toledo_attendee_modifier = yes -# add_to_list = $LIST$ -# } -# } -# if = { -# limit = { -# exists = cp:councillor_court_chaplain -# cp:councillor_court_chaplain = { fp2_struggle_council_toledo_attendee_trigger = yes } -# } -# cp:councillor_court_chaplain = { -# random = { -# chance = 25 -# fp2_council_toledo_attendee_modifier = yes -# add_to_list = $LIST$ -# } -# } -# } -# } -#} -# -#scripted_effect fp2_council_toledo_guest_populate_effect = { -# while = { -# limit = { -# any_in_list = { -# list = $LIST$ -# NOT = { is_in_list = council_toledo_guest_list } -# } -# any_in_list = { -# list = $LIST$ -# count < 10 -# is_in_list = council_toledo_guest_list -# } -# } -# random_in_list = { -# list = $LIST$ -# limit = { -# NOT = { is_in_list = council_toledo_guest_list } -# } -# weight = { -# modifier = { factor = learning } -# modifier = { -# factor = 10 -# is_landed = yes -# } -# modifier = { -# factor = 10 -# has_trait = theologian -# } -# } -# add_to_list = council_toledo_guest_list -# } -# } -#} -# -#fp2_other_decisions.0700 = { -# type = character_event -# title = fp2_other_decisions.0700.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# exists = global_var:council_of_toledo_counter -# global_var:council_of_toledo_counter = 19 -# } -# desc = fp2_other_decisions.0700.19 -# } -# desc = fp2_other_decisions.0700.desc -# } -# } -# theme = faith -# override_background = { reference = temple_church } -# left_portrait = { -# character = scope:council_priest -# animation = chaplain -# } -# lower_right_portrait = { -# trigger = { -# exists = faith.religious_head -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# religious_head != root -# } -# } -# character = faith.religious_head -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# # Decision triggers -# fp2_struggle_council_toledo_decision_trigger = yes -# -# } -# -# immediate = { -# save_scope_as = council_toledo_host -# fetch_council_toledo_priest_effect = yes -# scope:council_priest = { add_to_list = council_toledo_guest_list } -# hidden_effect = { -# religion = { -# every_faith = { -# limit = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# every_faith_ruler = { -# limit = { -# primary_title.tier >= tier_county -# exists = capital_county -# capital_county.title_province = { geographical_region = world_europe_west_iberia } -# } -# fp2_struggle_council_toledo_attendee_effect = { LIST = council_toledo_mozarab_list } -# } -# } -# every_faith = { -# limit = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# every_faith_ruler = { -# limit = { -# in_diplomatic_range = root -# primary_title.tier >= tier_county -# faith = { -# OR = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:catholic } -# } -# } -# } -# fp2_struggle_council_toledo_attendee_effect = { LIST = council_toledo_regional_list } -# } -# } -# } -# } -# custom_tooltip = fp2_other_decisions.0700.tt -# } -# -# # Default option: Local council -# option = { -# name = fp2_other_decisions.0700.a -# # Attendees -# show_as_tooltip = { -# title:c_toledo = { -# add_county_modifier = { -# modifier = fp2_small_council_modifier -# years = 5 -# } -# } -# } -# religion = { -# every_faith = { -# limit = { -# this != root.faith -# religious_head ?= { in_diplomatic_range = root } -# } -# religious_head = { add_to_list = hof_list } -# } -# } -# every_in_list = { -# list = hof_list -# custom = excluded_from_council_toledo_tt -# add_opinion = { -# target = root -# modifier = fp2_excluded_from_council_toledo_opinion -# opinion = -10 -# } -# } -# ai_chance = { -# base = 100 -# } -# } -# -# # Default option: Regional council -# option = { -# name = fp2_other_decisions.0700.b -# add_character_flag = { -# flag = regional_toledo_council -# months = 2 -# } -# remove_treasury_or_gold = medium_treasury_or_gold_value -# hidden_effect = { -# while = { -# count = 10 -# random_in_list = { -# list = council_toledo_regional_list -# limit = { -# NOT = { is_in_list = council_toledo_guest_list } -# } -# weight = { -# modifier = { factor = learning } -# modifier = { -# factor = 10 -# is_landed = yes -# } -# modifier = { -# factor = 10 -# has_trait = theologian -# } -# } -# add_to_list = council_toledo_guest_list -# } -# } -# } -# show_as_tooltip = { -# title:c_toledo = { -# random_list = { -# 1 = { -# desc = fp2_other_decisions.0700.b.success -# show_chance = no -# add_county_modifier = { -# modifier = fp2_big_council_modifier -# years = 5 -# } -# } -# 1 = { -# desc = fp2_other_decisions.0700.b.failure -# show_chance = no -# add_county_modifier = { -# modifier = fp2_disappointing_council_modifier -# years = 5 -# } -# } -# } -# } -# } -# stress_impact = { -# zealous = medium_stress_impact_gain -# greedy = medium_stress_impact_gain -# arrogant = medium_stress_impact_gain -# } -# ai_chance = { -# base = 50 -# } -# } -# -# after = { -# # Attendees -# # Populate guest list -# hidden_effect = { -# while = { -# count = 10 -# random_in_list = { -# list = council_toledo_mozarab_list -# limit = { -# NOT = { is_in_list = council_toledo_guest_list } -# } -# weight = { -# modifier = { factor = learning } -# modifier = { -# factor = 10 -# is_landed = yes -# } -# modifier = { -# factor = 10 -# has_trait = theologian -# } -# } -# add_to_list = council_toledo_guest_list -# } -# } -# if = { -# limit = { -# any_in_list = { list = council_toledo_mozarab_list } -# } -# every_in_list = { -# list = council_toledo_mozarab_list -# remove_from_list = council_toledo_mozarab_list -# } -# } -# if = { -# limit = { -# any_in_list = { list = council_toledo_regional_list } -# } -# every_in_list = { -# list = council_toledo_regional_list -# remove_from_list = council_toledo_regional_list -# } -# } -# } -# trigger_event = { -# on_action = fp2_struggle_council_toledo_attend -# days = { 14 21 } -# } -# } -#} -# -################################################### -## Council of Toledo - Arrival -## by Joe Parkin and Ola Jentzsch -## 0701 See who turned up -################################################### -# -#scripted_trigger fp2_council_toledo_successful_regional_trigger = { -# has_character_flag = regional_toledo_council -# any_in_list = { -# list = council_toledo_guest_list -# count > council_toledo_success_guest_value -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -#} -# -#scripted_trigger fp2_council_toledo_failure_regional_trigger = { -# has_character_flag = regional_toledo_council -# any_in_list = { -# list = council_toledo_guest_list -# count <= council_toledo_success_guest_value -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -#} -# -#scripted_trigger fp2_council_toledo_flavor_bishop_trigger = { -# exists = scope:portrait_bishop -# exists = scope:$TYPE$_bishop -# scope:portrait_bishop = scope:$TYPE$_bishop -#} -# -#fp2_other_decisions.0701 = { -# type = character_event -# title = fp2_other_decisions.0701.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { fp2_council_toledo_successful_regional_trigger = yes } -# desc = fp2_other_decisions.0701.opening.success -# } -# triggered_desc = { -# trigger = { fp2_council_toledo_failure_regional_trigger = yes } -# desc = fp2_other_decisions.0701.opening.failure -# } -# triggered_desc = { -# trigger = { has_character_flag = regional_toledo_council } -# desc = fp2_other_decisions.0701.opening.catastrophe -# } -# desc = fp2_other_decisions.0701.opening -# } -# # Attendee flavor -# random_valid = { -# triggered_desc = { -# trigger = { -# exists = scope:portrait_bishop -# scope:portrait_bishop = root.faith.religious_head -# } -# desc = fp2_other_decisions.0701.religious_head_bishop -# } -# triggered_desc = { -# trigger = { -# fp2_council_toledo_flavor_bishop_trigger = { TYPE = powerful } -# } -# desc = fp2_other_decisions.0701.powerful_bishop -# } -# triggered_desc = { -# trigger = { -# fp2_council_toledo_flavor_bishop_trigger = { TYPE = saint } -# } -# desc = fp2_other_decisions.0701.saint_bishop -# } -# triggered_desc = { -# trigger = { -# fp2_council_toledo_flavor_bishop_trigger = { TYPE = theologian } -# } -# desc = fp2_other_decisions.0701.theologian_bishop -# } -# triggered_desc = { -# trigger = { -# fp2_council_toledo_flavor_bishop_trigger = { TYPE = bad } -# } -# desc = fp2_other_decisions.0701.bad_bishop -# } -# triggered_desc = { -# trigger = { -# fp2_council_toledo_flavor_bishop_trigger = { TYPE = senior } -# } -# desc = fp2_other_decisions.0701.senior_bishop -# } -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# has_character_flag = regional_toledo_council -# any_in_list = { -# list = council_toledo_guest_list -# count < council_toledo_success_guest_value -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# } -# desc = fp2_other_decisions.0701.failure -# } -# desc = fp2_other_decisions.0701.desc -# } -# } -# theme = faith -# override_background = { reference = temple_church } -# left_portrait = scope:portrait_bishop -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# # Decision triggers -# fp2_struggle_council_toledo_decision_trigger = yes -# } -# -# immediate = { -# # Attendee flavor -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# this = root.faith.religious_head -# } -# } -# random_in_list = { -# list = council_toledo_guest_list -# limit = { this = root.faith.religious_head } -# save_scope_as = religious_head_bishop -# } -# } -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# primary_title.tier > tier_county -# } -# } -# ordered_in_list = { -# list = council_toledo_guest_list -# limit = { primary_title.tier > tier_county } -# order_by = primary_title.tier -# save_scope_as = powerful_bishop -# } -# } -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# has_trait = saint -# } -# } -# ordered_in_list = { -# list = council_toledo_guest_list -# limit = { has_trait = saint } -# order_by = piety_level -# save_scope_as = saint_bishop -# } -# } -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# has_trait = theologian -# } -# } -# ordered_in_list = { -# list = council_toledo_guest_list -# limit = { has_trait = theologian } -# order_by = learning -# save_scope_as = theologian_bishop -# } -# } -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# num_sinful_traits > 0 -# } -# } -# ordered_in_list = { -# list = council_toledo_guest_list -# limit = { num_sinful_traits > 1 } -# order_by = num_sinful_traits -# save_scope_as = bad_bishop -# } -# } -# if = { -# limit = { -# OR = { -# exists = scope:powerful_bishop -# exists = scope:saint_bishop -# exists = scope:theologian_bishop -# exists = scope:bad_bishop -# } -# } -# hidden_effect = { -# random_list = { -# 10 = { -# trigger = { exists = scope:religious_head_bishop } -# scope:religious_head_bishop = { save_scope_as = portrait_bishop } -# } -# 1 = { -# trigger = { exists = scope:powerful_bishop } -# modifier = { -# add = 4 -# scope:powerful_bishop.primary_title.tier >= tier_kingdom -# } -# scope:powerful_bishop = { save_scope_as = portrait_bishop } -# } -# 5 = { -# trigger = { exists = scope:saint_bishop } -# scope:saint_bishop = { save_scope_as = portrait_bishop } -# } -# 5 = { -# trigger = { exists = scope:theologian_bishop } -# scope:theologian_bishop = { save_scope_as = portrait_bishop } -# } -# 1 = { -# trigger = { exists = scope:bad_bishop } -# scope:bad_bishop = { save_scope_as = portrait_bishop } -# } -# } -# } -# } -# else = { -# ordered_in_list = { -# list = council_toledo_guest_list -# order_by = age -# save_scope_as = senior_bishop -# save_scope_as = portrait_bishop -# } -# } -# } -# -# # Default option: Local council -# option = { -# name = { -# trigger = { fp2_council_toledo_successful_regional_trigger = yes } -# text = fp2_other_decisions.0701.a -# } -# name = { -# trigger = { fp2_council_toledo_failure_regional_trigger = yes } -# text = fp2_other_decisions.0701.b -# } -# name = { -# trigger = { -# NOT = { has_character_flag = regional_toledo_council } -# } -# text = fp2_other_decisions.0701.c -# } -# if = { -# limit = { fp2_council_toledo_successful_regional_trigger = yes } -# title:c_toledo = { -# add_county_modifier = { -# modifier = fp2_big_council_modifier -# years = 5 -# } -# } -# } -# else_if = { -# limit = { has_character_flag = regional_toledo_council } -# title:c_toledo = { -# add_county_modifier = { -# modifier = fp2_disappointing_council_modifier -# years = 5 -# } -# } -# } -# else = { -# title:c_toledo = { -# add_county_modifier = { -# modifier = fp2_small_council_modifier -# years = 5 -# } -# } -# } -# } -# -# after = { -# custom_tooltip = fp2_other_decisions.0701.tt -# trigger_event = { -# on_action = fp2_struggle_council_toledo_debate -# days = { 3 6 } -# } -# } -#} -# -################################################### -## Council of Toledo - Debate -## by Joe Parkin and Ola Jentzsch -## 0702 Bicker with them -################################################### -# -#scripted_effect fp2_council_toledo_debate_bishop_effect = { -# save_scope_value_as = { -# name = mozarabic -# value = flag:$MOZARABIC$ -# } -# random_in_list = { -# list = council_toledo_guest_list -# limit = { -# this != scope:council_priest -# faith = { -# trigger_if = { -# limit = { scope:mozarabic = flag:yes } -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# trigger_else = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# } -# weight = { -# modifier = { -# factor = 4 -# has_trait = theologian -# } -# } -# save_scope_as = debate_bishop -# } -# if = { -# limit = { -# NOT = { -# exists = scope:debate_bishop -# } -# } -# create_character = { -# age = { 35 75 } -# location = root.capital_province -# gender_female_chance = root_faith_dominant_gender_female_chance -# trait = zealous -# faith = faith:mozarabic_church -# culture = root.culture -# learning = { -# min_template_high_skill -# max_template_high_skill -# } -# -# save_scope_as = debate_bishop -# -# after_creation = { -# add_character_flag = { -# flag = need_priest_outfit -# } -# add_character_flag = { -# flag = need_a_ruler -# } -# } -# } -# } -# random_in_list = { -# list = council_toledo_guest_list -# limit = { -# trigger_if = { -# limit = { -# exists = scope:debate_bishop -# } -# this != scope:debate_bishop -# trigger_if = { -# limit = { -# scope:debate_bishop.faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# NOT = { -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# trigger_else = { -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# } -# alternative_limit = { -# NOR = { -# this = scope:council_priest -# trigger_if = { -# limit = { -# exists = scope:debate_bishop -# } -# this = scope:debate_bishop -# } -# } -# } -# weight = { -# modifier = { -# factor = 4 -# has_trait = theologian -# } -# } -# save_scope_as = counter_bishop -# } -#} -# -#scripted_effect fp2_council_opinion_mozarabic_effect = { -# hidden_effect = { -# every_in_list = { -# list = council_toledo_guest_list -# limit = { -# NOR = { -# this = scope:debate_bishop -# this = scope:counter_bishop -# } -# liege = root -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = $VALUE$ -# } -# } -# every_in_list = { -# list = council_toledo_guest_list -# limit = { -# NOR = { -# this = scope:debate_bishop -# this = scope:counter_bishop -# liege = root -# } -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# custom = fp2_council_opinion_mozarabic_effect_tt -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = $VALUE$ -# } -# } -# } -#} -# -#scripted_effect fp2_council_opinion_other_effect = { -# if = { -# limit = { -# any_in_list = { -# list = council_toledo_guest_list -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# } -# hidden_effect = { -# every_in_list = { -# list = council_toledo_guest_list -# limit = { -# NOR = { -# this = scope:debate_bishop -# this = scope:counter_bishop -# } -# liege = root -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = $VALUE$ -# } -# } -# every_in_list = { -# list = council_toledo_guest_list -# limit = { -# NOR = { -# this = scope:debate_bishop -# this = scope:counter_bishop -# liege = root -# } -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# custom = fp2_council_opinion_other_effect_tt -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = $VALUE$ -# } -# } -# } -# } -#} -# -#scripted_effect fp2_council_modifier_effect = { -# scope:council_toledo_faith = { -# every_faith_ruler = { -# limit = { primary_title.tier >= tier_county } -# custom = council_of_toledo_ruler_effect_tt -# add_character_modifier = { -# modifier = $MODIFIER$ -# years = council_toledo_modifier_duration_value -# } -# if = { -# limit = { -# is_ai = no -# this != root -# } -# trigger_event = fp2_other_decisions.0704 -# } -# } -# } -#} -# -#scripted_effect fp2_council_strife_catalyst_effect = { -# struggle:iberian_struggle = { -# if = { -# limit = { is_struggle_phase = struggle_iberia_phase_compromise } -# change_struggle_phase = struggle_iberia_phase_opportunity -# } -# else_if = { -# limit = { -# is_struggle_phase = struggle_iberia_phase_opportunity -# -# } -# change_struggle_phase = struggle_iberia_phase_hostility -# } -# } -#} -# -#scripted_effect fp2_council_peace_catalyst_effect = { -# struggle:iberian_struggle = { -# if = { -# limit = { is_struggle_phase = struggle_iberia_phase_compromise } -# change_struggle_phase = struggle_iberia_phase_conciliation -# } -# else_if = { -# limit = { -# is_struggle_phase = struggle_iberia_phase_hostility -# -# } -# change_struggle_phase = struggle_iberia_phase_compromise -# } -# } -#} -# -#fp2_other_decisions.0702 = { -# type = character_event -# title = fp2_other_decisions.0702.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# exists = global_var:council_of_toledo_counter -# global_var:council_of_toledo_counter = 19 -# } -# desc = fp2_other_decisions.0702.19 -# } -# desc = fp2_other_decisions.0702.opening -# } -# first_valid = { # Conversion -# triggered_desc = { -# trigger = { var:council_toledo_issue = 1 } -# desc = fp2_other_decisions.0702.conversion -# } -# triggered_desc = { # Reform -# trigger = { var:council_toledo_issue = 2 } -# desc = fp2_other_decisions.0702.reform -# } -# triggered_desc = { # Tolerance -# trigger = { var:council_toledo_issue = 3 } -# desc = fp2_other_decisions.0702.tolerance -# } -# triggered_desc = { # Clergy Rights -# trigger = { var:council_toledo_issue = 4 } -# desc = fp2_other_decisions.0702.rights -# } -# triggered_desc = { # New HoF -# trigger = { var:council_toledo_issue = 5 } -# desc = fp2_other_decisions.0702.hof -# } -# triggered_desc = { # Closer to Pope -# trigger = { var:council_toledo_issue = 6 } -# desc = fp2_other_decisions.0702.pope -# } -# triggered_desc = { # Target Heresy -# trigger = { var:council_toledo_issue = 7 } -# desc = fp2_other_decisions.0702.heresy -# } -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# faith = { has_doctrine = doctrine_theocracy_lay_clergy } -# } -# desc = fp2_other_decisions.0702.present -# } -# desc = fp2_other_decisions.0702.second_hand -# } -# } -# theme = faith -# override_background = { reference = temple_church } -# left_portrait = scope:debate_bishop -# right_portrait = scope:counter_bishop -# lower_right_portrait = scope:rival_scope -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# # Decision triggers -# fp2_struggle_council_toledo_decision_trigger = yes -# } -# -# immediate = { -# fetch_council_toledo_priest_effect = yes -# faith = { save_scope_as = council_toledo_faith } -# hidden_effect = { -# random_list = { -# 10 = { # Conversion -# trigger = { -# NOT = { -# faith = { has_doctrine = doctrine_pluralism_pluralistic } -# } -# root = { -# any_realm_county = { -# religion != root.religion -# } -# } -# } -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# set_variable = { -# name = council_toledo_issue -# value = 1 -# } -# } -# 5 = { # Reform -# trigger = { -# NOT = { exists = faith.var:foundational_faith } # set on reform -# } -# modifier = { -# factor = 2 -# has_perk = prophet_perk -# } -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# set_variable = { -# name = council_toledo_issue -# value = 2 -# } -# } -# 10 = { # Tolerance -# trigger = { -# NOT = { -# faith = { has_doctrine = doctrine_pluralism_fundamentalist } -# } -# } -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# every_culture_global = { -# limit = { -# this != root.culture -# NOT = { has_same_culture_heritage = root.culture } -# save_temporary_scope_as = this_culture -# trigger_if = { -# limit = { -# struggle:iberian_struggle = { is_culture_involved_in_struggle = scope:this_culture } -# } -# struggle:iberian_struggle = { is_culture_involved_in_struggle = scope:this_culture } -# } -# trigger_else = { -# any_culture_duchy = { -# title_province ?= { geographical_region = world_europe_west_iberia } -# } -# } -# culture_number_of_counties > 0 -# } -# add_to_list = fp2_council_culture_list -# } -# set_variable = { -# name = council_toledo_issue -# value = 3 -# } -# } -# 5 = { # Clergy Opinion -# modifier = { -# factor = 2 -# any_vassal = { -# count >= 2 -# government_has_flag = government_is_theocracy -# } -# } -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# set_variable = { -# name = council_toledo_issue -# value = 4 -# } -# } -# 5 = { # New HoF -# trigger = { -# any_in_list = { -# list = council_toledo_guest_list -# percent >= 0.5 -# is_in_list = council_toledo_mozarab_list -# } -# faith != faith.religious_head.faith -# } -# modifier = { -# factor = 2 -# faith.religious_head.faith.num_county_followers < root.faith.num_county_followers -# } -# modifier = { -# factor = 2 -# has_trait = excommunicated -# } -# modifier = { -# factor = 2 -# reverse_opinion = { -# target = faith.religious_head -# value < -25 -# } -# } -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# set_variable = { -# name = council_toledo_issue -# value = 5 -# } -# } -# 5 = { # Closer to Pope -# trigger = { -# faith = { has_doctrine = special_doctrine_ecumenical_christian } -# NOT = { has_trait = excommunicated } -# faith != faith.religious_head.faith -# } -# modifier = { -# factor = 2 -# reverse_opinion = { -# target = title:k_papal_state.holder -# value > 25 -# } -# } -# modifier = { -# factor = 2 -# faith.religious_head.faith.num_county_followers > root.faith.num_county_followers -# } -# random_list = { -# 1 = { -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# } -# 50 = { -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = no } -# } -# } -# # if the priest is in no court -# if = { -# limit = { -# exists = scope:debate_bishop -# scope:debate_bishop = { -# has_character_flag = need_a_ruler -# } -# } -# root = { add_courtier = scope:debate_bishop } -# } -# set_variable = { -# name = council_toledo_issue -# value = 6 -# } -# } -# 10 = { # Target Heresy -# trigger = { -# any_county_in_region = { -# region = world_europe_west_iberia -# faith = { -# religion = root.faith.religion -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# NOT = { exists = religious_head } -# } -# } -# } -# random_county_in_region = { -# region = world_europe_west_iberia -# limit = { -# faith = { -# religion = root.faith.religion -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# NOT = { exists = religious_head } -# } -# } -# faith = { save_scope_as = heretic_faith } -# } -# random_list = { -# 1 = { -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } -# } -# 1 = { -# fp2_council_toledo_debate_bishop_effect = { MOZARABIC = no } -# } -# } -# set_variable = { -# name = council_toledo_issue -# value = 7 -# } -# } -# } -# } -# if = { -# limit = { -# any_relation = { -# type = rival -# faith = root.faith -# } -# } -# save_scope_as = rival_scope -# } -# custom_tooltip = fp2_council_end_tt -# } -# -# option = { # Accept -# name = fp2_other_decisions.0702.a -# add_piety = medium_piety_value -# scope:debate_bishop = { -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = { -# value = 10 -# multiply = 2 -# } -# } -# } -# scope:counter_bishop = { -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = { -# value = -10 -# multiply = 2 -# } -# } -# } -# switch = { -# trigger = var:council_toledo_issue -# 1 = { # Conversion -# fp2_council_modifier_effect = { MODIFIER = fp2_council_conversion_modifier } -# custom_tooltip = fp2_council_conversion_modifier_tt -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = 5 } -# fp2_council_strife_catalyst_effect = yes -# stress_impact = { -# cynical = minor_stress_impact_gain -# } -# } -# 2 = { # Reform -# fp2_council_modifier_effect = { MODIFIER = fp2_council_reform_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = -10 } -# stress_impact = { -# zealous = minor_stress_impact_gain -# } -# } -# 3 = { # Tolerance -# fp2_council_modifier_effect = { MODIFIER = fp2_council_tolerance_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = 10 } -# hidden_effect = { -# every_in_list = { -# list = fp2_council_culture_list -# root.culture = { -# change_cultural_acceptance = { -# target = prev -# value = council_toledo_culture_acceptance_value -# desc = fp2_council_toledo_culture_acceptance_desc -# } -# } -# } -# } -# custom_tooltip = fp2_council_culture_tt -# fp2_council_peace_catalyst_effect = yes -# stress_impact = { -# arrogant = minor_stress_impact_gain -# } -# } -# 4 = { # Clergy Rights -# fp2_council_modifier_effect = { MODIFIER = fp2_council_rights_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = 5 } -# stress_impact = { -# greedy = minor_stress_impact_gain -# cynical = minor_stress_impact_gain -# } -# } -# 5 = { # New HoF -# reverse_add_opinion = { -# target = faith.religious_head -# modifier = fp2_council_toledo_new_hof_opinion -# } -# fp2_council_modifier_effect = { MODIFIER = fp2_council_hof_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = -10 } -# stress_impact = { -# humble = minor_stress_impact_gain -# } -# } -# 6 = { # Closer to Pope -# reverse_add_opinion = { -# target = faith.religious_head -# modifier = fp2_council_toledo_pope_opinion -# } -# fp2_council_modifier_effect = { MODIFIER = fp2_council_pope_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = 10 } -# stress_impact = { -# arrogant = minor_stress_impact_gain -# } -# } -# 7 = { # Target Heresy -# custom_tooltip = fp2_council_heresies_modifier_tt -# fp2_council_modifier_effect = { MODIFIER = fp2_council_heresy_modifier } -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = 10 } -# stress_impact = { -# cynical = minor_stress_impact_gain -# } -# } -# } -# ai_chance = { -# base = 100 -# modifier = { -# factor = 0.5 -# OR = { -# var:council_toledo_issue = 1 -# var:council_toledo_issue = 4 -# var:council_toledo_issue = 7 -# } -# has_trait = cynical -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 2 -# has_trait = zealous -# } -# modifier = { -# factor = 0.5 -# OR = { -# var:council_toledo_issue = 3 -# var:council_toledo_issue = 6 -# } -# has_trait = arrogant -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 4 -# has_trait = greedy -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 5 -# has_trait = humble -# } -# } -# } -# -# option = { # Veto -# name = { -# trigger = { faith.religious_head = root } -# text = fp2_other_decisions.0702.b.hof -# } -# name = { -# trigger = { -# faith.religious_head != root -# } -# text = fp2_other_decisions.0702.b -# } -# add_piety = minor_piety_loss -# add_character_modifier = { -# modifier = fp2_stifled_council_modifier -# years = 5 -# } -# scope:debate_bishop = { -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = { -# value = -10 -# multiply = 2 -# } -# } -# } -# scope:counter_bishop = { -# add_opinion = { -# target = root -# modifier = fp2_council_toledo_opinion -# opinion = { -# value = 10 -# multiply = 2 -# } -# } -# } -# switch = { -# trigger = var:council_toledo_issue -# 1 = { # Conversion -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = -5 } -# fp2_council_peace_catalyst_effect = yes -# stress_impact = { -# zealous = minor_stress_impact_gain -# } -# } -# 2 = { # Reform -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = 10 } -# stress_impact = { -# cynical = minor_stress_impact_gain -# } -# } -# 3 = { # Tolerance -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = -10 } -# fp2_council_strife_catalyst_effect = yes -# stress_impact = { -# humble = minor_stress_impact_gain -# } -# } -# 4 = { # Clergy Rights -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = -5 } -# stress_impact = { -# zealous = minor_stress_impact_gain -# generous = minor_stress_impact_gain -# } -# } -# 5 = { # New HoF -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = 10 } -# stress_impact = { -# arrogant = minor_stress_impact_gain -# } -# } -# 6 = { # Closer to Pope -# fp2_council_opinion_mozarabic_effect = { VALUE = 10 } -# fp2_council_opinion_other_effect = { VALUE = -10 } -# stress_impact = { -# humble = minor_stress_impact_gain -# } -# } -# 7 = { # Target Heresy -# fp2_council_opinion_mozarabic_effect = { VALUE = -10 } -# fp2_council_opinion_other_effect = { VALUE = -10 } -# stress_impact = { -# zealous = minor_stress_impact_gain -# } -# } -# } -# stress_impact = { -# just = medium_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# factor = 0.5 -# OR = { -# var:council_toledo_issue = 1 -# var:council_toledo_issue = 4 -# var:council_toledo_issue = 7 -# } -# has_trait = zealous -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 2 -# has_trait = cynical -# } -# modifier = { -# factor = 0.5 -# OR = { -# var:council_toledo_issue = 3 -# var:council_toledo_issue = 6 -# } -# has_trait = humble -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 4 -# has_trait = generous -# } -# modifier = { -# factor = 0.5 -# var:council_toledo_issue = 5 -# has_trait = arrogant -# } -# } -# } -# -# after = { remove_variable = council_toledo_issue } -#} -# -## Cancellation due to loss of control or war -#fp2_other_decisions.0703 = { -# type = character_event -# title = fp2_other_decisions.0703.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { is_at_war = yes } -# desc = fp2_other_decisions.0703.war -# } -# desc = fp2_other_decisions.0703.control -# } -# desc = fp2_other_decisions.0703.desc -# } -# theme = learning_theology_focus -# override_background = { reference = temple_church } -# left_portrait = { -# character = root -# animation = personality_zealous -# } -# right_portrait = { -# character = scope:council_priest -# animation = chaplain -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# # Decision triggers -# fp2_struggle_council_toledo_decision_trigger = no -# } -# -# immediate = { -# fetch_council_toledo_priest_effect = yes -# change_global_variable = { -# name = council_of_toledo_counter -# add = -1 -# } -# if = { -# limit = { is_at_war = yes } -# ordered_character_war = { -# order_by = { -# value = 0 -# subtract = war_days -# } -# save_scope_as = council_war -# } -# } -# title:c_toledo = { -# if = { -# limit = { has_county_modifier = fp2_small_council_modifier } -# remove_county_modifier = fp2_small_council_modifier -# } -# else_if = { -# limit = { has_county_modifier = fp2_big_council_modifier } -# remove_county_modifier = fp2_big_council_modifier -# } -# else_if = { -# limit = { has_county_modifier = fp2_disappointing_council_modifier } -# remove_county_modifier = fp2_disappointing_council_modifier -# } -# } -# add_gold = council_of_toledo_gold_cost_value -# add_piety = council_of_toledo_piety_cost_value -# } -# -# option = { -# name = fp2_other_decisions.0703.a -# remove_decision_cooldown = council_of_toledo_decision -# } -#} -# -#fp2_other_decisions.0704 = { -# type = character_event -# title = fp2_other_decisions.0704.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# exists = global_var:council_of_toledo_counter -# global_var:council_of_toledo_counter = 19 -# } -# desc = fp2_other_decisions.0702.19 -# } -# desc = fp2_other_decisions.0702.opening -# } -# first_valid = { -# triggered_desc = { # Conversion -# trigger = { has_character_modifier = fp2_council_conversion_modifier } -# desc = fp2_other_decisions.0702.conversion -# } -# triggered_desc = { # Reform -# trigger = { has_character_modifier = fp2_council_tolerance_modifier } -# desc = fp2_other_decisions.0702.reform -# } -# triggered_desc = { # Tolerance -# trigger = { has_character_modifier = fp2_council_reform_modifier } -# desc = fp2_other_decisions.0702.tolerance -# } -# triggered_desc = { # Clergy Rights -# trigger = { has_character_modifier = fp2_council_rights_modifier } -# desc = fp2_other_decisions.0702.rights -# } -# triggered_desc = { # Ecumenical dialogue -# trigger = { has_character_modifier = fp2_council_pope_modifier } -# desc = fp2_other_decisions.0702.pope -# } -# triggered_desc = { # New HoF -# trigger = { has_character_modifier = fp2_council_hof_modifier } -# desc = fp2_other_decisions.0702.hof -# } -# triggered_desc = { # Target Heresy -# trigger = { has_character_modifier = fp2_council_heresy_modifier } -# desc = fp2_other_decisions.0702.heresy -# } -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# OR = { -# has_character_modifier = fp2_council_conversion_modifier -# has_character_modifier = fp2_council_tolerance_modifier -# has_character_modifier = fp2_council_reform_modifier -# has_character_modifier = fp2_council_rights_modifier -# has_character_modifier = fp2_council_hof_modifier -# has_character_modifier = fp2_council_pope_modifier -# has_character_modifier = fp2_council_heresy_modifier -# } -# } -# desc = fp2_other_decisions.0704.success -# } -# desc = fp2_other_decisions.0704.failure -# } -# } -# theme = learning_theology_focus -# override_background = { reference = temple_church } -# left_portrait = { -# character = scope:council_toledo_host -# triggered_animation = { -# trigger = { -# NOT = { has_character_modifier = fp2_stifled_council_modifier } -# } -# animation = personality_zealous -# } -# triggered_animation = { -# trigger = { has_character_modifier = fp2_stifled_council_modifier } -# animation = anger -# } -# } -# right_portrait = { -# character = scope:council_priest -# animation = chaplain -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# } -# -# option = { -# name = fp2_other_decisions.0704.a -# show_as_tooltip = { -# if = { -# limit = { -# OR = { -# has_character_modifier = fp2_council_conversion_modifier -# has_character_modifier = fp2_council_tolerance_modifier -# has_character_modifier = fp2_council_reform_modifier -# has_character_modifier = fp2_council_rights_modifier -# has_character_modifier = fp2_council_hof_modifier -# has_character_modifier = fp2_council_pope_modifier -# has_character_modifier = fp2_council_heresy_modifier -# } -# } -# switch = { -# trigger = has_character_modifier -# fp2_council_conversion_modifier = { -# custom_tooltip = fp2_council_conversion_modifier_tt -# add_character_modifier = { -# modifier = fp2_council_conversion_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_tolerance_modifier = { -# add_character_modifier = { -# modifier = fp2_council_tolerance_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_reform_modifier = { -# add_character_modifier = { -# modifier = fp2_council_reform_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_rights_modifier = { -# add_character_modifier = { -# modifier = fp2_council_rights_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_pope_modifier = { -# add_character_modifier = { -# modifier = fp2_council_pope_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_hof_modifier = { -# add_character_modifier = { -# modifier = fp2_council_hof_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_pope_modifier = { -# add_character_modifier = { -# modifier = fp2_council_pope_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# fp2_council_heresy_modifier = { -# custom_tooltip = fp2_council_heresies_modifier_tt -# add_character_modifier = { -# modifier = fp2_council_heresy_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# } -# } -# else = { -# scope:council_toledo_host = { -# add_character_modifier = { -# modifier = fp2_stifled_council_modifier -# years = council_toledo_modifier_duration_value -# } -# } -# } -# } -# } -#} -################################################### -## Secure Iberian Foothold - Notification -## by Joe Parkin and Ola Jentzsch -## 1000 Decision taker event -################################################### -# -#fp2_other_decisions.1000 = { -# type = character_event -# title = fp2_other_decisions.1000.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# religion = { -# any_faith = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } -# } -# } -# } -# desc = fp2_other_decisions.1000.involved_religion -# } -# desc = fp2_other_decisions.1000.desc -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = root.faith } -# } -# desc = fp2_other_decisions.1000.involved_faith -# } -# triggered_desc = { -# trigger = { -# religion = { -# any_faith = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } -# } -# } -# } -# desc = fp2_other_decisions.1000.uninvolved_faith -# } -# desc = fp2_other_decisions.1000.closing -# } -# } -# theme = realm -# left_portrait = { -# character = root -# animation = war_over_win -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# } -# -# immediate = { -# save_scope_as = iberian_footholder -# every_held_title = { -# limit = { -# # Any de jure kingdom of Iberia is completely controlled -# fp2_struggle_secure_iberian_foothold_iberian_kingdom_trigger = yes -# # That kingdom is mostly my faith -# fp2_struggle_secure_iberian_foothold_faith_trigger = yes -# scope:iberian_kingdom_temp = { title_held_years >= fp2_struggle_secure_iberian_foothold_years_value } -# } -# add_to_list = iberian_footholder_list -# } -# hidden_effect = { -# while = { -# limit = { -# any_in_list = { -# list = iberian_footholder_list -# # Borders held lands in a non-Iberian kingdom you hold -# any_de_jure_county = { -# any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } -# } -# NOT = { is_in_list = iberian_footholder_transfer_list } -# } -# } -# random_in_list = { -# list = iberian_footholder_list -# limit = { -# # Borders held lands in a non-Iberian kingdom you hold -# any_de_jure_county = { -# any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } -# } -# NOT = { is_in_list = iberian_footholder_transfer_list } -# } -# random_de_jure_county = { -# limit = { -# any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } -# } -# random_title_to_title_neighboring_and_across_water_county = { -# limit = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } -# empire = { save_scope_as = transfer_empire } -# } -# } -# add_to_list = iberian_footholder_transfer_list -# set_de_jure_liege_title = scope:transfer_empire -# custom_tooltip = iberian_footholder_transfer_tt -# } -# } -# } -# show_as_tooltip = { -# every_in_list = { -# list = iberian_footholder_transfer_list -# set_de_jure_liege_title = scope:transfer_empire -# } -# } -# } -# -# option = { -# name = fp2_other_decisions.1000.a -# } -# -# after = { -# struggle:iberian_struggle = { -# every_involved_ruler = { -# limit = { is_ai = no } -# trigger_event = fp2_other_decisions.1001 -# } -# } -# # End Struggle -# struggle:iberian_struggle = { -# end_struggle = secure_iberian_foothold_decision_title -# } -# } -#} -# -################################################### -## Secure Iberian Foothold - Notification -## by Joe Parkin and Ola Jentzsch -## 1001 Info event -################################################### -# -#fp2_other_decisions.1001 = { -# type = character_event -# title = fp2_other_decisions.1000.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:iberian_footholder.religion = { -# any_faith = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } -# } -# } -# } -# desc = fp2_other_decisions.1001.involved_religion -# } -# desc = fp2_other_decisions.1001.desc -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = scope:iberian_footholder.faith } -# } -# desc = fp2_other_decisions.1001.involved_faith -# } -# triggered_desc = { -# trigger = { -# scope:iberian_footholder.religion = { -# any_faith = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } -# } -# } -# religion = scope:iberian_footholder.religion -# } -# desc = fp2_other_decisions.1001.same_uninvolved_faith -# } -# triggered_desc = { -# trigger = { -# scope:iberian_footholder.religion = { -# any_faith = { -# struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } -# } -# } -# } -# desc = fp2_other_decisions.1001.uninvolved_faith -# } -# desc = fp2_other_decisions.1001.closing -# } -# } -# theme = realm -# left_portrait = { -# character = scope:iberian_footholder -# animation = war_over_win -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# } -# -# immediate = { -# show_as_tooltip = { -# every_in_list = { -# list = iberian_footholder_transfer_list -# set_de_jure_liege_title = scope:transfer_empire -# } -# } -# } -# -# option = { -# name = fp2_other_decisions.1001.a -# -# } -#} -# -# -################################################### -## Found Kingdom of Toledo -## by Joe Parkin -## 1100 Decision taker event -################################################### -# -#fp2_other_decisions.1100 = { -# type = character_event -# title = fp2_other_decisions.1100.t -# desc = fp2_other_decisions.1100.desc -# theme = realm -# left_portrait = { -# character = root -# animation = war_over_win -# } -# lower_right_portrait = scope:de_jure_anger_1 -# lower_center_portrait = scope:de_jure_anger_2 -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# } -# -# immediate = { -# show_as_tooltip = { fp2_struggle_found_kingdom_toledo_empire_effect = yes } -# hidden_effect = { -# if = { -# limit = { -# any_in_list = { list = kingdom_toledo_opinion_list } -# } -# while = { -# count = 2 -# ordered_in_list = { -# list = kingdom_toledo_opinion_list -# limit = { -# trigger_if = { -# limit = { exists = scope:de_jure_anger_1 } -# this != scope:de_jure_anger_1 -# } -# } -# if = { -# limit = { -# NOT = { exists = scope:de_jure_anger_1 } -# } -# save_scope_as = de_jure_anger_1 -# } -# else = { save_scope_as = de_jure_anger_2 } -# } -# } -# } -# } -# legend_seed_new_title_effect = yes -# } -# -# option = { -# name = fp2_other_decisions.1100.a -# } -# -# after = { -# every_player = { -# limit = { -# this != scope:toledo_former -# is_within_diplo_range = { CHARACTER = scope:toledo_former } -# } -# trigger_event = fp2_other_decisions.1101 -# } -# } -#} -# -#fp2_other_decisions.1101 = { -# type = character_event -# title = fp2_other_decisions.1100.t -# desc = { -# desc = fp2_other_decisions.1101.desc -# first_valid = { -# triggered_desc = { -# trigger = { -# trigger_if = { -# limit = { exists = scope:de_jure_anger_1 } -# this = scope:de_jure_anger_1 -# } -# trigger_else_if = { -# limit = { exists = scope:de_jure_anger_2 } -# this = scope:de_jure_anger_2 -# } -# trigger_else = { always = no } -# } -# desc = fp2_other_decisions.1101.stolen -# } -# triggered_desc = { -# trigger = { -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# desc = fp2_other_decisions.1101.mozarab -# } -# } -# } -# theme = realm -# override_background = { reference = throne_room_scope } -# left_portrait = { -# character = scope:toledo_former -# animation = war_over_win -# } -# -# trigger = { -# # DLC checking -# has_fp2_dlc_trigger = yes -# } -# -# immediate = { -# scope:toledo_former = { save_scope_as = background_throne_room_scope } -# show_as_tooltip = { -# scope:toledo_former = { get_title = title:k_toledo } -# title:k_toledo = { -# every_in_de_jure_hierarchy = { -# limit = { tier = tier_duchy } -# set_de_jure_liege_title = title:k_toledo -# } -# } -# } -# } -# -# option = { -# name = { -# trigger = { -# trigger_if = { -# limit = { exists = scope:de_jure_anger_1 } -# this = scope:de_jure_anger_1 -# } -# trigger_else_if = { -# limit = { exists = scope:de_jure_anger_2 } -# this = scope:de_jure_anger_2 -# } -# trigger_else = { always = no } -# } -# text = fp2_other_decisions.1101.a -# } -# name = { -# trigger = { -# trigger_if = { -# limit = { exists = scope:de_jure_anger_1 } -# this != scope:de_jure_anger_1 -# } -# trigger_if = { -# limit = { exists = scope:de_jure_anger_2 } -# this != scope:de_jure_anger_2 -# } -# faith = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# text = fp2_other_decisions.1101.b -# } -# name = { -# trigger = { -# trigger_if = { -# limit = { exists = scope:de_jure_anger_1 } -# this != scope:de_jure_anger_1 -# } -# trigger_if = { -# limit = { exists = scope:de_jure_anger_2 } -# this != scope:de_jure_anger_2 -# } -# faith = { -# NOT = { -# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } -# } -# } -# } -# text = fp2_other_decisions.1101.c -# } -# } -#} -# \ No newline at end of file +################################################## +# Council of Toledo - Organization +# by Joe Parkin and Ola Jentzsch +# 0700 Decide who to invite +################################################## + +scripted_effect fetch_council_toledo_priest_effect = { + if = { + limit = { exists = cp:councillor_court_chaplain } + cp:councillor_court_chaplain = { save_scope_as = council_priest } + } + else = { + random_vassal_or_below = { + limit = { + NOR = { + government_has_flag = government_is_republic + government_has_flag = government_is_feudal + } + OR = { + has_trait = devoted + has_education_learning_trigger = yes + } + } + save_scope_as = council_priest + } + } +} + +scripted_effect fp2_struggle_council_toledo_attendee_effect = { + hidden_effect = { + if = { + limit = { government_has_flag = government_is_theocracy } + random = { + chance = 25 + fp2_council_toledo_attendee_modifier = yes + add_to_list = $LIST$ + } + } + if = { + limit = { + exists = cp:councillor_court_chaplain + cp:councillor_court_chaplain = { fp2_struggle_council_toledo_attendee_trigger = yes } + } + cp:councillor_court_chaplain = { + random = { + chance = 25 + fp2_council_toledo_attendee_modifier = yes + add_to_list = $LIST$ + } + } + } + } +} + +scripted_effect fp2_council_toledo_guest_populate_effect = { + while = { + limit = { + any_in_list = { + list = $LIST$ + NOT = { is_in_list = council_toledo_guest_list } + } + any_in_list = { + list = $LIST$ + count < 10 + is_in_list = council_toledo_guest_list + } + } + random_in_list = { + list = $LIST$ + limit = { + NOT = { is_in_list = council_toledo_guest_list } + } + weight = { + modifier = { factor = learning } + modifier = { + factor = 10 + is_landed = yes + } + modifier = { + factor = 10 + has_trait = theologian + } + } + add_to_list = council_toledo_guest_list + } + } +} + +fp2_other_decisions.0700 = { + type = character_event + title = fp2_other_decisions.0700.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + exists = global_var:council_of_toledo_counter + global_var:council_of_toledo_counter = 19 + } + desc = fp2_other_decisions.0700.19 + } + desc = fp2_other_decisions.0700.desc + } + } + theme = faith + override_background = { reference = temple_church } + left_portrait = { + character = scope:council_priest + animation = chaplain + } + lower_right_portrait = { + trigger = { + exists = faith.religious_head + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + religious_head != root + } + } + character = faith.religious_head + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + # Decision triggers + fp2_struggle_council_toledo_decision_trigger = yes + + } + + immediate = { + save_scope_as = council_toledo_host + fetch_council_toledo_priest_effect = yes + scope:council_priest = { add_to_list = council_toledo_guest_list } + hidden_effect = { + religion = { + every_faith = { + limit = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + every_faith_ruler = { + limit = { + primary_title.tier >= tier_county + exists = capital_county + capital_county.title_province = { geographical_region = world_europe_west_iberia } + } + fp2_struggle_council_toledo_attendee_effect = { LIST = council_toledo_mozarab_list } + } + } + every_faith = { + limit = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + every_faith_ruler = { + limit = { + in_diplomatic_range = root + primary_title.tier >= tier_county + faith = { + OR = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:catholic } + } + } + } + fp2_struggle_council_toledo_attendee_effect = { LIST = council_toledo_regional_list } + } + } + } + } + custom_tooltip = fp2_other_decisions.0700.tt + } + + # Default option: Local council + option = { + name = fp2_other_decisions.0700.a + # Attendees + show_as_tooltip = { + title:c_toledo = { + add_county_modifier = { + modifier = fp2_small_council_modifier + years = 5 + } + } + } + religion = { + every_faith = { + limit = { + this != root.faith + religious_head ?= { in_diplomatic_range = root } + } + religious_head = { add_to_list = hof_list } + } + } + every_in_list = { + list = hof_list + custom = excluded_from_council_toledo_tt + add_opinion = { + target = root + modifier = fp2_excluded_from_council_toledo_opinion + opinion = -10 + } + } + ai_chance = { + base = 100 + } + } + + # Default option: Regional council + option = { + name = fp2_other_decisions.0700.b + add_character_flag = { + flag = regional_toledo_council + months = 2 + } + remove_treasury_or_gold = medium_treasury_or_gold_value + hidden_effect = { + while = { + count = 10 + random_in_list = { + list = council_toledo_regional_list + limit = { + NOT = { is_in_list = council_toledo_guest_list } + } + weight = { + modifier = { factor = learning } + modifier = { + factor = 10 + is_landed = yes + } + modifier = { + factor = 10 + has_trait = theologian + } + } + add_to_list = council_toledo_guest_list + } + } + } + show_as_tooltip = { + title:c_toledo = { + random_list = { + 1 = { + desc = fp2_other_decisions.0700.b.success + show_chance = no + add_county_modifier = { + modifier = fp2_big_council_modifier + years = 5 + } + } + 1 = { + desc = fp2_other_decisions.0700.b.failure + show_chance = no + add_county_modifier = { + modifier = fp2_disappointing_council_modifier + years = 5 + } + } + } + } + } + stress_impact = { + zealous = medium_stress_impact_gain + greedy = medium_stress_impact_gain + arrogant = medium_stress_impact_gain + } + ai_chance = { + base = 50 + } + } + + after = { + # Attendees + # Populate guest list + hidden_effect = { + while = { + count = 10 + random_in_list = { + list = council_toledo_mozarab_list + limit = { + NOT = { is_in_list = council_toledo_guest_list } + } + weight = { + modifier = { factor = learning } + modifier = { + factor = 10 + is_landed = yes + } + modifier = { + factor = 10 + has_trait = theologian + } + } + add_to_list = council_toledo_guest_list + } + } + if = { + limit = { + any_in_list = { list = council_toledo_mozarab_list } + } + every_in_list = { + list = council_toledo_mozarab_list + remove_from_list = council_toledo_mozarab_list + } + } + if = { + limit = { + any_in_list = { list = council_toledo_regional_list } + } + every_in_list = { + list = council_toledo_regional_list + remove_from_list = council_toledo_regional_list + } + } + } + trigger_event = { + on_action = fp2_struggle_council_toledo_attend + days = { 14 21 } + } + } +} + +################################################## +# Council of Toledo - Arrival +# by Joe Parkin and Ola Jentzsch +# 0701 See who turned up +################################################## + +scripted_trigger fp2_council_toledo_successful_regional_trigger = { + has_character_flag = regional_toledo_council + any_in_list = { + list = council_toledo_guest_list + count > council_toledo_success_guest_value + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } +} + +scripted_trigger fp2_council_toledo_failure_regional_trigger = { + has_character_flag = regional_toledo_council + any_in_list = { + list = council_toledo_guest_list + count <= council_toledo_success_guest_value + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } +} + +scripted_trigger fp2_council_toledo_flavor_bishop_trigger = { + exists = scope:portrait_bishop + exists = scope:$TYPE$_bishop + scope:portrait_bishop = scope:$TYPE$_bishop +} + +fp2_other_decisions.0701 = { + type = character_event + title = fp2_other_decisions.0701.t + desc = { + first_valid = { + triggered_desc = { + trigger = { fp2_council_toledo_successful_regional_trigger = yes } + desc = fp2_other_decisions.0701.opening.success + } + triggered_desc = { + trigger = { fp2_council_toledo_failure_regional_trigger = yes } + desc = fp2_other_decisions.0701.opening.failure + } + triggered_desc = { + trigger = { has_character_flag = regional_toledo_council } + desc = fp2_other_decisions.0701.opening.catastrophe + } + desc = fp2_other_decisions.0701.opening + } + # Attendee flavor + random_valid = { + triggered_desc = { + trigger = { + exists = scope:portrait_bishop + scope:portrait_bishop = root.faith.religious_head + } + desc = fp2_other_decisions.0701.religious_head_bishop + } + triggered_desc = { + trigger = { + fp2_council_toledo_flavor_bishop_trigger = { TYPE = powerful } + } + desc = fp2_other_decisions.0701.powerful_bishop + } + triggered_desc = { + trigger = { + fp2_council_toledo_flavor_bishop_trigger = { TYPE = saint } + } + desc = fp2_other_decisions.0701.saint_bishop + } + triggered_desc = { + trigger = { + fp2_council_toledo_flavor_bishop_trigger = { TYPE = theologian } + } + desc = fp2_other_decisions.0701.theologian_bishop + } + triggered_desc = { + trigger = { + fp2_council_toledo_flavor_bishop_trigger = { TYPE = bad } + } + desc = fp2_other_decisions.0701.bad_bishop + } + triggered_desc = { + trigger = { + fp2_council_toledo_flavor_bishop_trigger = { TYPE = senior } + } + desc = fp2_other_decisions.0701.senior_bishop + } + } + first_valid = { + triggered_desc = { + trigger = { + has_character_flag = regional_toledo_council + any_in_list = { + list = council_toledo_guest_list + count < council_toledo_success_guest_value + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + } + desc = fp2_other_decisions.0701.failure + } + desc = fp2_other_decisions.0701.desc + } + } + theme = faith + override_background = { reference = temple_church } + left_portrait = scope:portrait_bishop + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + # Decision triggers + fp2_struggle_council_toledo_decision_trigger = yes + } + + immediate = { + # Attendee flavor + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + this = root.faith.religious_head + } + } + random_in_list = { + list = council_toledo_guest_list + limit = { this = root.faith.religious_head } + save_scope_as = religious_head_bishop + } + } + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + primary_title.tier > tier_county + } + } + ordered_in_list = { + list = council_toledo_guest_list + limit = { primary_title.tier > tier_county } + order_by = primary_title.tier + save_scope_as = powerful_bishop + } + } + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + has_trait = saint + } + } + ordered_in_list = { + list = council_toledo_guest_list + limit = { has_trait = saint } + order_by = piety_level + save_scope_as = saint_bishop + } + } + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + has_trait = theologian + } + } + ordered_in_list = { + list = council_toledo_guest_list + limit = { has_trait = theologian } + order_by = learning + save_scope_as = theologian_bishop + } + } + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + num_sinful_traits > 0 + } + } + ordered_in_list = { + list = council_toledo_guest_list + limit = { num_sinful_traits > 1 } + order_by = num_sinful_traits + save_scope_as = bad_bishop + } + } + if = { + limit = { + OR = { + exists = scope:powerful_bishop + exists = scope:saint_bishop + exists = scope:theologian_bishop + exists = scope:bad_bishop + } + } + hidden_effect = { + random_list = { + 10 = { + trigger = { exists = scope:religious_head_bishop } + scope:religious_head_bishop = { save_scope_as = portrait_bishop } + } + 1 = { + trigger = { exists = scope:powerful_bishop } + modifier = { + add = 4 + scope:powerful_bishop.primary_title.tier >= tier_kingdom + } + scope:powerful_bishop = { save_scope_as = portrait_bishop } + } + 5 = { + trigger = { exists = scope:saint_bishop } + scope:saint_bishop = { save_scope_as = portrait_bishop } + } + 5 = { + trigger = { exists = scope:theologian_bishop } + scope:theologian_bishop = { save_scope_as = portrait_bishop } + } + 1 = { + trigger = { exists = scope:bad_bishop } + scope:bad_bishop = { save_scope_as = portrait_bishop } + } + } + } + } + else = { + ordered_in_list = { + list = council_toledo_guest_list + order_by = age + save_scope_as = senior_bishop + save_scope_as = portrait_bishop + } + } + } + + # Default option: Local council + option = { + name = { + trigger = { fp2_council_toledo_successful_regional_trigger = yes } + text = fp2_other_decisions.0701.a + } + name = { + trigger = { fp2_council_toledo_failure_regional_trigger = yes } + text = fp2_other_decisions.0701.b + } + name = { + trigger = { + NOT = { has_character_flag = regional_toledo_council } + } + text = fp2_other_decisions.0701.c + } + if = { + limit = { fp2_council_toledo_successful_regional_trigger = yes } + title:c_toledo = { + add_county_modifier = { + modifier = fp2_big_council_modifier + years = 5 + } + } + } + else_if = { + limit = { has_character_flag = regional_toledo_council } + title:c_toledo = { + add_county_modifier = { + modifier = fp2_disappointing_council_modifier + years = 5 + } + } + } + else = { + title:c_toledo = { + add_county_modifier = { + modifier = fp2_small_council_modifier + years = 5 + } + } + } + } + + after = { + custom_tooltip = fp2_other_decisions.0701.tt + trigger_event = { + on_action = fp2_struggle_council_toledo_debate + days = { 3 6 } + } + } +} + +################################################## +# Council of Toledo - Debate +# by Joe Parkin and Ola Jentzsch +# 0702 Bicker with them +################################################## + +scripted_effect fp2_council_toledo_debate_bishop_effect = { + save_scope_value_as = { + name = mozarabic + value = flag:$MOZARABIC$ + } + random_in_list = { + list = council_toledo_guest_list + limit = { + this != scope:council_priest + faith = { + trigger_if = { + limit = { scope:mozarabic = flag:yes } + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + trigger_else = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + } + weight = { + modifier = { + factor = 4 + has_trait = theologian + } + } + save_scope_as = debate_bishop + } + if = { + limit = { + NOT = { + exists = scope:debate_bishop + } + } + create_character = { + age = { 35 75 } + location = root.capital_province + gender_female_chance = root_faith_dominant_gender_female_chance + trait = zealous + faith = faith:mozarabic_church + culture = root.culture + learning = { + min_template_high_skill + max_template_high_skill + } + + save_scope_as = debate_bishop + + after_creation = { + add_character_flag = { + flag = need_priest_outfit + } + add_character_flag = { + flag = need_a_ruler + } + } + } + } + random_in_list = { + list = council_toledo_guest_list + limit = { + trigger_if = { + limit = { + exists = scope:debate_bishop + } + this != scope:debate_bishop + trigger_if = { + limit = { + scope:debate_bishop.faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + NOT = { + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + trigger_else = { + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + } + alternative_limit = { + NOR = { + this = scope:council_priest + trigger_if = { + limit = { + exists = scope:debate_bishop + } + this = scope:debate_bishop + } + } + } + weight = { + modifier = { + factor = 4 + has_trait = theologian + } + } + save_scope_as = counter_bishop + } +} + +scripted_effect fp2_council_opinion_mozarabic_effect = { + hidden_effect = { + every_in_list = { + list = council_toledo_guest_list + limit = { + NOR = { + this = scope:debate_bishop + this = scope:counter_bishop + } + liege = root + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = $VALUE$ + } + } + every_in_list = { + list = council_toledo_guest_list + limit = { + NOR = { + this = scope:debate_bishop + this = scope:counter_bishop + liege = root + } + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + custom = fp2_council_opinion_mozarabic_effect_tt + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = $VALUE$ + } + } + } +} + +scripted_effect fp2_council_opinion_other_effect = { + if = { + limit = { + any_in_list = { + list = council_toledo_guest_list + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + } + hidden_effect = { + every_in_list = { + list = council_toledo_guest_list + limit = { + NOR = { + this = scope:debate_bishop + this = scope:counter_bishop + } + liege = root + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = $VALUE$ + } + } + every_in_list = { + list = council_toledo_guest_list + limit = { + NOR = { + this = scope:debate_bishop + this = scope:counter_bishop + liege = root + } + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + custom = fp2_council_opinion_other_effect_tt + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = $VALUE$ + } + } + } + } +} + +scripted_effect fp2_council_modifier_effect = { + scope:council_toledo_faith = { + every_faith_ruler = { + limit = { primary_title.tier >= tier_county } + custom = council_of_toledo_ruler_effect_tt + add_character_modifier = { + modifier = $MODIFIER$ + years = council_toledo_modifier_duration_value + } + if = { + limit = { + is_ai = no + this != root + } + trigger_event = fp2_other_decisions.0704 + } + } + } +} + +scripted_effect fp2_council_strife_catalyst_effect = { + struggle:iberian_struggle = { + if = { + limit = { is_struggle_phase = struggle_iberia_phase_compromise } + change_struggle_phase = struggle_iberia_phase_opportunity + } + else_if = { + limit = { + is_struggle_phase = struggle_iberia_phase_opportunity + + } + change_struggle_phase = struggle_iberia_phase_hostility + } + } +} + +scripted_effect fp2_council_peace_catalyst_effect = { + struggle:iberian_struggle = { + if = { + limit = { is_struggle_phase = struggle_iberia_phase_compromise } + change_struggle_phase = struggle_iberia_phase_conciliation + } + else_if = { + limit = { + is_struggle_phase = struggle_iberia_phase_hostility + + } + change_struggle_phase = struggle_iberia_phase_compromise + } + } +} + +fp2_other_decisions.0702 = { + type = character_event + title = fp2_other_decisions.0702.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + exists = global_var:council_of_toledo_counter + global_var:council_of_toledo_counter = 19 + } + desc = fp2_other_decisions.0702.19 + } + desc = fp2_other_decisions.0702.opening + } + first_valid = { # Conversion + triggered_desc = { + trigger = { var:council_toledo_issue = 1 } + desc = fp2_other_decisions.0702.conversion + } + triggered_desc = { # Reform + trigger = { var:council_toledo_issue = 2 } + desc = fp2_other_decisions.0702.reform + } + triggered_desc = { # Tolerance + trigger = { var:council_toledo_issue = 3 } + desc = fp2_other_decisions.0702.tolerance + } + triggered_desc = { # Clergy Rights + trigger = { var:council_toledo_issue = 4 } + desc = fp2_other_decisions.0702.rights + } + triggered_desc = { # New HoF + trigger = { var:council_toledo_issue = 5 } + desc = fp2_other_decisions.0702.hof + } + triggered_desc = { # Closer to Pope + trigger = { var:council_toledo_issue = 6 } + desc = fp2_other_decisions.0702.pope + } + triggered_desc = { # Target Heresy + trigger = { var:council_toledo_issue = 7 } + desc = fp2_other_decisions.0702.heresy + } + } + first_valid = { + triggered_desc = { + trigger = { + faith = { has_doctrine = doctrine_theocracy_lay_clergy } + } + desc = fp2_other_decisions.0702.present + } + desc = fp2_other_decisions.0702.second_hand + } + } + theme = faith + override_background = { reference = temple_church } + left_portrait = scope:debate_bishop + right_portrait = scope:counter_bishop + lower_right_portrait = scope:rival_scope + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + # Decision triggers + fp2_struggle_council_toledo_decision_trigger = yes + } + + immediate = { + fetch_council_toledo_priest_effect = yes + faith = { save_scope_as = council_toledo_faith } + hidden_effect = { + random_list = { + 10 = { # Conversion + trigger = { + NOT = { + faith = { has_doctrine = doctrine_pluralism_pluralistic } + } + root = { + any_realm_county = { + religion != root.religion + } + } + } + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + set_variable = { + name = council_toledo_issue + value = 1 + } + } + 5 = { # Reform + trigger = { + NOT = { exists = faith.var:foundational_faith } # set on reform + } + modifier = { + factor = 2 + has_perk = prophet_perk + } + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + set_variable = { + name = council_toledo_issue + value = 2 + } + } + 10 = { # Tolerance + trigger = { + NOT = { + faith = { has_doctrine = doctrine_pluralism_fundamentalist } + } + } + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + every_culture_global = { + limit = { + this != root.culture + NOT = { has_same_culture_heritage = root.culture } + save_temporary_scope_as = this_culture + trigger_if = { + limit = { + struggle:iberian_struggle = { is_culture_involved_in_struggle = scope:this_culture } + } + struggle:iberian_struggle = { is_culture_involved_in_struggle = scope:this_culture } + } + trigger_else = { + any_culture_duchy = { + title_province ?= { geographical_region = world_europe_west_iberia } + } + } + culture_number_of_counties > 0 + } + add_to_list = fp2_council_culture_list + } + set_variable = { + name = council_toledo_issue + value = 3 + } + } + 5 = { # Clergy Opinion + modifier = { + factor = 2 + any_vassal = { + count >= 2 + government_has_flag = government_is_theocracy + } + } + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + set_variable = { + name = council_toledo_issue + value = 4 + } + } + 5 = { # New HoF + trigger = { + any_in_list = { + list = council_toledo_guest_list + percent >= 0.5 + is_in_list = council_toledo_mozarab_list + } + faith != faith.religious_head.faith + } + modifier = { + factor = 2 + faith.religious_head.faith.num_county_followers < root.faith.num_county_followers + } + modifier = { + factor = 2 + has_trait = excommunicated + } + modifier = { + factor = 2 + reverse_opinion = { + target = faith.religious_head + value < -25 + } + } + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + set_variable = { + name = council_toledo_issue + value = 5 + } + } + 5 = { # Closer to Pope + trigger = { + faith = { has_doctrine = special_doctrine_ecumenical_christian } + NOT = { has_trait = excommunicated } + faith != faith.religious_head.faith + } + modifier = { + factor = 2 + reverse_opinion = { + target = title:k_papal_state.holder + value > 25 + } + } + modifier = { + factor = 2 + faith.religious_head.faith.num_county_followers > root.faith.num_county_followers + } + random_list = { + 1 = { + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + } + 50 = { + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = no } + } + } + # if the priest is in no court + if = { + limit = { + exists = scope:debate_bishop + scope:debate_bishop = { + has_character_flag = need_a_ruler + } + } + root = { add_courtier = scope:debate_bishop } + } + set_variable = { + name = council_toledo_issue + value = 6 + } + } + 10 = { # Target Heresy + trigger = { + any_county_in_region = { + region = world_europe_west_iberia + faith = { + religion = root.faith.religion + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + NOT = { exists = religious_head } + } + } + } + random_county_in_region = { + region = world_europe_west_iberia + limit = { + faith = { + religion = root.faith.religion + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + NOT = { exists = religious_head } + } + } + faith = { save_scope_as = heretic_faith } + } + random_list = { + 1 = { + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = yes } + } + 1 = { + fp2_council_toledo_debate_bishop_effect = { MOZARABIC = no } + } + } + set_variable = { + name = council_toledo_issue + value = 7 + } + } + } + } + if = { + limit = { + any_relation = { + type = rival + faith = root.faith + } + } + save_scope_as = rival_scope + } + custom_tooltip = fp2_council_end_tt + } + + option = { # Accept + name = fp2_other_decisions.0702.a + add_piety = medium_piety_value + scope:debate_bishop = { + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = { + value = 10 + multiply = 2 + } + } + } + scope:counter_bishop = { + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = { + value = -10 + multiply = 2 + } + } + } + switch = { + trigger = var:council_toledo_issue + 1 = { # Conversion + fp2_council_modifier_effect = { MODIFIER = fp2_council_conversion_modifier } + custom_tooltip = fp2_council_conversion_modifier_tt + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = 5 } + fp2_council_strife_catalyst_effect = yes + stress_impact = { + cynical = minor_stress_impact_gain + } + } + 2 = { # Reform + fp2_council_modifier_effect = { MODIFIER = fp2_council_reform_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = -10 } + stress_impact = { + zealous = minor_stress_impact_gain + } + } + 3 = { # Tolerance + fp2_council_modifier_effect = { MODIFIER = fp2_council_tolerance_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = 10 } + hidden_effect = { + every_in_list = { + list = fp2_council_culture_list + root.culture = { + change_cultural_acceptance = { + target = prev + value = council_toledo_culture_acceptance_value + desc = fp2_council_toledo_culture_acceptance_desc + } + } + } + } + custom_tooltip = fp2_council_culture_tt + fp2_council_peace_catalyst_effect = yes + stress_impact = { + arrogant = minor_stress_impact_gain + } + } + 4 = { # Clergy Rights + fp2_council_modifier_effect = { MODIFIER = fp2_council_rights_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = 5 } + stress_impact = { + greedy = minor_stress_impact_gain + cynical = minor_stress_impact_gain + } + } + 5 = { # New HoF + reverse_add_opinion = { + target = faith.religious_head + modifier = fp2_council_toledo_new_hof_opinion + } + fp2_council_modifier_effect = { MODIFIER = fp2_council_hof_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = -10 } + stress_impact = { + humble = minor_stress_impact_gain + } + } + 6 = { # Closer to Pope + reverse_add_opinion = { + target = faith.religious_head + modifier = fp2_council_toledo_pope_opinion + } + fp2_council_modifier_effect = { MODIFIER = fp2_council_pope_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = 10 } + stress_impact = { + arrogant = minor_stress_impact_gain + } + } + 7 = { # Target Heresy + custom_tooltip = fp2_council_heresies_modifier_tt + fp2_council_modifier_effect = { MODIFIER = fp2_council_heresy_modifier } + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = 10 } + stress_impact = { + cynical = minor_stress_impact_gain + } + } + } + ai_chance = { + base = 100 + modifier = { + factor = 0.5 + OR = { + var:council_toledo_issue = 1 + var:council_toledo_issue = 4 + var:council_toledo_issue = 7 + } + has_trait = cynical + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 2 + has_trait = zealous + } + modifier = { + factor = 0.5 + OR = { + var:council_toledo_issue = 3 + var:council_toledo_issue = 6 + } + has_trait = arrogant + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 4 + has_trait = greedy + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 5 + has_trait = humble + } + } + } + + option = { # Veto + name = { + trigger = { faith.religious_head = root } + text = fp2_other_decisions.0702.b.hof + } + name = { + trigger = { + faith.religious_head != root + } + text = fp2_other_decisions.0702.b + } + add_piety = minor_piety_loss + add_character_modifier = { + modifier = fp2_stifled_council_modifier + years = 5 + } + scope:debate_bishop = { + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = { + value = -10 + multiply = 2 + } + } + } + scope:counter_bishop = { + add_opinion = { + target = root + modifier = fp2_council_toledo_opinion + opinion = { + value = 10 + multiply = 2 + } + } + } + switch = { + trigger = var:council_toledo_issue + 1 = { # Conversion + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = -5 } + fp2_council_peace_catalyst_effect = yes + stress_impact = { + zealous = minor_stress_impact_gain + } + } + 2 = { # Reform + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = 10 } + stress_impact = { + cynical = minor_stress_impact_gain + } + } + 3 = { # Tolerance + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = -10 } + fp2_council_strife_catalyst_effect = yes + stress_impact = { + humble = minor_stress_impact_gain + } + } + 4 = { # Clergy Rights + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = -5 } + stress_impact = { + zealous = minor_stress_impact_gain + generous = minor_stress_impact_gain + } + } + 5 = { # New HoF + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = 10 } + stress_impact = { + arrogant = minor_stress_impact_gain + } + } + 6 = { # Closer to Pope + fp2_council_opinion_mozarabic_effect = { VALUE = 10 } + fp2_council_opinion_other_effect = { VALUE = -10 } + stress_impact = { + humble = minor_stress_impact_gain + } + } + 7 = { # Target Heresy + fp2_council_opinion_mozarabic_effect = { VALUE = -10 } + fp2_council_opinion_other_effect = { VALUE = -10 } + stress_impact = { + zealous = minor_stress_impact_gain + } + } + } + stress_impact = { + just = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + factor = 0.5 + OR = { + var:council_toledo_issue = 1 + var:council_toledo_issue = 4 + var:council_toledo_issue = 7 + } + has_trait = zealous + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 2 + has_trait = cynical + } + modifier = { + factor = 0.5 + OR = { + var:council_toledo_issue = 3 + var:council_toledo_issue = 6 + } + has_trait = humble + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 4 + has_trait = generous + } + modifier = { + factor = 0.5 + var:council_toledo_issue = 5 + has_trait = arrogant + } + } + } + + after = { remove_variable = council_toledo_issue } +} + +# Cancellation due to loss of control or war +fp2_other_decisions.0703 = { + type = character_event + title = fp2_other_decisions.0703.t + desc = { + first_valid = { + triggered_desc = { + trigger = { is_at_war = yes } + desc = fp2_other_decisions.0703.war + } + desc = fp2_other_decisions.0703.control + } + desc = fp2_other_decisions.0703.desc + } + theme = learning_theology_focus + override_background = { reference = temple_church } + left_portrait = { + character = root + animation = personality_zealous + } + right_portrait = { + character = scope:council_priest + animation = chaplain + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + # Decision triggers + fp2_struggle_council_toledo_decision_trigger = no + } + + immediate = { + fetch_council_toledo_priest_effect = yes + change_global_variable = { + name = council_of_toledo_counter + add = -1 + } + if = { + limit = { is_at_war = yes } + ordered_character_war = { + order_by = { + value = 0 + subtract = war_days + } + save_scope_as = council_war + } + } + title:c_toledo = { + if = { + limit = { has_county_modifier = fp2_small_council_modifier } + remove_county_modifier = fp2_small_council_modifier + } + else_if = { + limit = { has_county_modifier = fp2_big_council_modifier } + remove_county_modifier = fp2_big_council_modifier + } + else_if = { + limit = { has_county_modifier = fp2_disappointing_council_modifier } + remove_county_modifier = fp2_disappointing_council_modifier + } + } + add_gold = council_of_toledo_gold_cost_value + add_piety = council_of_toledo_piety_cost_value + } + + option = { + name = fp2_other_decisions.0703.a + remove_decision_cooldown = council_of_toledo_decision + } +} + +fp2_other_decisions.0704 = { + type = character_event + title = fp2_other_decisions.0704.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + exists = global_var:council_of_toledo_counter + global_var:council_of_toledo_counter = 19 + } + desc = fp2_other_decisions.0702.19 + } + desc = fp2_other_decisions.0702.opening + } + first_valid = { + triggered_desc = { # Conversion + trigger = { has_character_modifier = fp2_council_conversion_modifier } + desc = fp2_other_decisions.0702.conversion + } + triggered_desc = { # Reform + trigger = { has_character_modifier = fp2_council_tolerance_modifier } + desc = fp2_other_decisions.0702.reform + } + triggered_desc = { # Tolerance + trigger = { has_character_modifier = fp2_council_reform_modifier } + desc = fp2_other_decisions.0702.tolerance + } + triggered_desc = { # Clergy Rights + trigger = { has_character_modifier = fp2_council_rights_modifier } + desc = fp2_other_decisions.0702.rights + } + triggered_desc = { # Ecumenical dialogue + trigger = { has_character_modifier = fp2_council_pope_modifier } + desc = fp2_other_decisions.0702.pope + } + triggered_desc = { # New HoF + trigger = { has_character_modifier = fp2_council_hof_modifier } + desc = fp2_other_decisions.0702.hof + } + triggered_desc = { # Target Heresy + trigger = { has_character_modifier = fp2_council_heresy_modifier } + desc = fp2_other_decisions.0702.heresy + } + } + first_valid = { + triggered_desc = { + trigger = { + OR = { + has_character_modifier = fp2_council_conversion_modifier + has_character_modifier = fp2_council_tolerance_modifier + has_character_modifier = fp2_council_reform_modifier + has_character_modifier = fp2_council_rights_modifier + has_character_modifier = fp2_council_hof_modifier + has_character_modifier = fp2_council_pope_modifier + has_character_modifier = fp2_council_heresy_modifier + } + } + desc = fp2_other_decisions.0704.success + } + desc = fp2_other_decisions.0704.failure + } + } + theme = learning_theology_focus + override_background = { reference = temple_church } + left_portrait = { + character = scope:council_toledo_host + triggered_animation = { + trigger = { + NOT = { has_character_modifier = fp2_stifled_council_modifier } + } + animation = personality_zealous + } + triggered_animation = { + trigger = { has_character_modifier = fp2_stifled_council_modifier } + animation = anger + } + } + right_portrait = { + character = scope:council_priest + animation = chaplain + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + } + + option = { + name = fp2_other_decisions.0704.a + show_as_tooltip = { + if = { + limit = { + OR = { + has_character_modifier = fp2_council_conversion_modifier + has_character_modifier = fp2_council_tolerance_modifier + has_character_modifier = fp2_council_reform_modifier + has_character_modifier = fp2_council_rights_modifier + has_character_modifier = fp2_council_hof_modifier + has_character_modifier = fp2_council_pope_modifier + has_character_modifier = fp2_council_heresy_modifier + } + } + switch = { + trigger = has_character_modifier + fp2_council_conversion_modifier = { + custom_tooltip = fp2_council_conversion_modifier_tt + add_character_modifier = { + modifier = fp2_council_conversion_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_tolerance_modifier = { + add_character_modifier = { + modifier = fp2_council_tolerance_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_reform_modifier = { + add_character_modifier = { + modifier = fp2_council_reform_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_rights_modifier = { + add_character_modifier = { + modifier = fp2_council_rights_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_pope_modifier = { + add_character_modifier = { + modifier = fp2_council_pope_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_hof_modifier = { + add_character_modifier = { + modifier = fp2_council_hof_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_pope_modifier = { + add_character_modifier = { + modifier = fp2_council_pope_modifier + years = council_toledo_modifier_duration_value + } + } + fp2_council_heresy_modifier = { + custom_tooltip = fp2_council_heresies_modifier_tt + add_character_modifier = { + modifier = fp2_council_heresy_modifier + years = council_toledo_modifier_duration_value + } + } + } + } + else = { + scope:council_toledo_host = { + add_character_modifier = { + modifier = fp2_stifled_council_modifier + years = council_toledo_modifier_duration_value + } + } + } + } + } +} +################################################## +# Secure Iberian Foothold - Notification +# by Joe Parkin and Ola Jentzsch +# 1000 Decision taker event +################################################## + +fp2_other_decisions.1000 = { + type = character_event + title = fp2_other_decisions.1000.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + religion = { + any_faith = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } + } + } + } + desc = fp2_other_decisions.1000.involved_religion + } + desc = fp2_other_decisions.1000.desc + } + first_valid = { + triggered_desc = { + trigger = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = root.faith } + } + desc = fp2_other_decisions.1000.involved_faith + } + triggered_desc = { + trigger = { + religion = { + any_faith = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } + } + } + } + desc = fp2_other_decisions.1000.uninvolved_faith + } + desc = fp2_other_decisions.1000.closing + } + } + theme = realm + left_portrait = { + character = root + animation = war_over_win + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + } + + immediate = { + save_scope_as = iberian_footholder + every_held_title = { + limit = { + # Any de jure kingdom of Iberia is completely controlled + fp2_struggle_secure_iberian_foothold_iberian_kingdom_trigger = yes + # That kingdom is mostly my faith + fp2_struggle_secure_iberian_foothold_faith_trigger = yes + scope:iberian_kingdom_temp = { title_held_years >= fp2_struggle_secure_iberian_foothold_years_value } + } + add_to_list = iberian_footholder_list + } + hidden_effect = { + while = { + limit = { + any_in_list = { + list = iberian_footholder_list + # Borders held lands in a non-Iberian kingdom you hold + any_de_jure_county = { + any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } + } + NOT = { is_in_list = iberian_footholder_transfer_list } + } + } + random_in_list = { + list = iberian_footholder_list + limit = { + # Borders held lands in a non-Iberian kingdom you hold + any_de_jure_county = { + any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } + } + NOT = { is_in_list = iberian_footholder_transfer_list } + } + random_de_jure_county = { + limit = { + any_title_to_title_neighboring_and_across_water_county = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } + } + random_title_to_title_neighboring_and_across_water_county = { + limit = { fp2_struggle_secure_iberian_foothold_outsider_kingdom_trigger = yes } + empire = { save_scope_as = transfer_empire } + } + } + add_to_list = iberian_footholder_transfer_list + set_de_jure_liege_title = scope:transfer_empire + custom_tooltip = iberian_footholder_transfer_tt + } + } + } + show_as_tooltip = { + every_in_list = { + list = iberian_footholder_transfer_list + set_de_jure_liege_title = scope:transfer_empire + } + } + } + + option = { + name = fp2_other_decisions.1000.a + } + + after = { + struggle:iberian_struggle = { + every_involved_ruler = { + limit = { is_ai = no } + trigger_event = fp2_other_decisions.1001 + } + } + # End Struggle + struggle:iberian_struggle = { + end_struggle = secure_iberian_foothold_decision_title + } + } +} + +################################################## +# Secure Iberian Foothold - Notification +# by Joe Parkin and Ola Jentzsch +# 1001 Info event +################################################## + +fp2_other_decisions.1001 = { + type = character_event + title = fp2_other_decisions.1000.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:iberian_footholder.religion = { + any_faith = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } + } + } + } + desc = fp2_other_decisions.1001.involved_religion + } + desc = fp2_other_decisions.1001.desc + } + first_valid = { + triggered_desc = { + trigger = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = scope:iberian_footholder.faith } + } + desc = fp2_other_decisions.1001.involved_faith + } + triggered_desc = { + trigger = { + scope:iberian_footholder.religion = { + any_faith = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } + } + } + religion = scope:iberian_footholder.religion + } + desc = fp2_other_decisions.1001.same_uninvolved_faith + } + triggered_desc = { + trigger = { + scope:iberian_footholder.religion = { + any_faith = { + struggle:iberian_struggle = { is_faith_involved_in_struggle = prev } + } + } + } + desc = fp2_other_decisions.1001.uninvolved_faith + } + desc = fp2_other_decisions.1001.closing + } + } + theme = realm + left_portrait = { + character = scope:iberian_footholder + animation = war_over_win + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + } + + immediate = { + show_as_tooltip = { + every_in_list = { + list = iberian_footholder_transfer_list + set_de_jure_liege_title = scope:transfer_empire + } + } + } + + option = { + name = fp2_other_decisions.1001.a + + } +} + + +################################################## +# Found Kingdom of Toledo +# by Joe Parkin +# 1100 Decision taker event +################################################## + +fp2_other_decisions.1100 = { + type = character_event + title = fp2_other_decisions.1100.t + desc = fp2_other_decisions.1100.desc + theme = realm + left_portrait = { + character = root + animation = war_over_win + } + lower_right_portrait = scope:de_jure_anger_1 + lower_center_portrait = scope:de_jure_anger_2 + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + } + + immediate = { + show_as_tooltip = { fp2_struggle_found_kingdom_toledo_empire_effect = yes } + hidden_effect = { + if = { + limit = { + any_in_list = { list = kingdom_toledo_opinion_list } + } + while = { + count = 2 + ordered_in_list = { + list = kingdom_toledo_opinion_list + limit = { + trigger_if = { + limit = { exists = scope:de_jure_anger_1 } + this != scope:de_jure_anger_1 + } + } + if = { + limit = { + NOT = { exists = scope:de_jure_anger_1 } + } + save_scope_as = de_jure_anger_1 + } + else = { save_scope_as = de_jure_anger_2 } + } + } + } + } + legend_seed_new_title_effect = yes + } + + option = { + name = fp2_other_decisions.1100.a + } + + after = { + every_player = { + limit = { + this != scope:toledo_former + is_within_diplo_range = { CHARACTER = scope:toledo_former } + } + trigger_event = fp2_other_decisions.1101 + } + } +} + +fp2_other_decisions.1101 = { + type = character_event + title = fp2_other_decisions.1100.t + desc = { + desc = fp2_other_decisions.1101.desc + first_valid = { + triggered_desc = { + trigger = { + trigger_if = { + limit = { exists = scope:de_jure_anger_1 } + this = scope:de_jure_anger_1 + } + trigger_else_if = { + limit = { exists = scope:de_jure_anger_2 } + this = scope:de_jure_anger_2 + } + trigger_else = { always = no } + } + desc = fp2_other_decisions.1101.stolen + } + triggered_desc = { + trigger = { + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + desc = fp2_other_decisions.1101.mozarab + } + } + } + theme = realm + override_background = { reference = throne_room_scope } + left_portrait = { + character = scope:toledo_former + animation = war_over_win + } + + trigger = { + # DLC checking + has_fp2_dlc_trigger = yes + } + + immediate = { + scope:toledo_former = { save_scope_as = background_throne_room_scope } + show_as_tooltip = { + scope:toledo_former = { get_title = title:k_toledo } + title:k_toledo = { + every_in_de_jure_hierarchy = { + limit = { tier = tier_duchy } + set_de_jure_liege_title = title:k_toledo + } + } + } + } + + option = { + name = { + trigger = { + trigger_if = { + limit = { exists = scope:de_jure_anger_1 } + this = scope:de_jure_anger_1 + } + trigger_else_if = { + limit = { exists = scope:de_jure_anger_2 } + this = scope:de_jure_anger_2 + } + trigger_else = { always = no } + } + text = fp2_other_decisions.1101.a + } + name = { + trigger = { + trigger_if = { + limit = { exists = scope:de_jure_anger_1 } + this != scope:de_jure_anger_1 + } + trigger_if = { + limit = { exists = scope:de_jure_anger_2 } + this != scope:de_jure_anger_2 + } + faith = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + text = fp2_other_decisions.1101.b + } + name = { + trigger = { + trigger_if = { + limit = { exists = scope:de_jure_anger_1 } + this != scope:de_jure_anger_1 + } + trigger_if = { + limit = { exists = scope:de_jure_anger_2 } + this != scope:de_jure_anger_2 + } + faith = { + NOT = { + portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church } + } + } + } + text = fp2_other_decisions.1101.c + } + } +} diff --git a/events/dlc/fp3/fp3_heritage_events.txt b/events/dlc/fp3/fp3_heritage_events.txt index 8eaf2ba0..8c01bb47 100644 --- a/events/dlc/fp3/fp3_heritage_events.txt +++ b/events/dlc/fp3/fp3_heritage_events.txt @@ -385,12 +385,12 @@ scripted_trigger fp3_assertive_female_believer_trigger = { scripted_trigger fp3_zoroastrian_holy_sites_province_trigger = { OR = { is_holy_site_of = faith:mazdayasna -# is_holy_site_of = faith:zurvanism -# is_holy_site_of = faith:gayomarthianism -# is_holy_site_of = faith:khurmazta -# is_holy_site_of = faith:khurramism -# is_holy_site_of = faith:mazdakism -# is_holy_site_of = faith:urartuism + is_holy_site_of = faith:zurvanism + is_holy_site_of = faith:gayomarthianism + is_holy_site_of = faith:khurmazta + is_holy_site_of = faith:khurramism + is_holy_site_of = faith:mazdakism + is_holy_site_of = faith:urartuism } } diff --git a/events/dlc/fp3/fp3_struggle_events.txt b/events/dlc/fp3/fp3_struggle_events.txt index c1ca3173..3a9cd0f8 100644 --- a/events/dlc/fp3/fp3_struggle_events.txt +++ b/events/dlc/fp3/fp3_struggle_events.txt @@ -56,1285 +56,1284 @@ scripted_trigger fp3_struggle_0001_valid_ai_struggle_char_trigger = { } } } -# -#fp3_struggle.0001 = { -# hidden = yes -# scope = none -# scope = struggle -# -# # If the struggle ends, break the loop. -# trigger = { exists = struggle:persian_struggle } -# -# immediate = { -# if = { -# # If there isn't a caliph at present, then stop trying to make people talk about them. -# limit = { exists = title:d_sunni.holder } -# struggle:persian_struggle = { -# every_involved_ruler = { -# limit = { fp3_struggle_0001_valid_ai_struggle_char_trigger = yes } -# random = { -# chance = fp3_struggle_switch_sides_value -# execute_decision = fp3_name_read_in_friday_prayer_decision -# } -# } -# every_interloper_ruler = { -# limit = { fp3_struggle_0001_valid_ai_struggle_char_trigger = yes } -# random = { -# chance = fp3_struggle_switch_sides_value -# execute_decision = fp3_name_read_in_friday_prayer_decision -# } -# } -# } -# } -# -# # Cue this event up again for the next time around. -# trigger_event = { -# id = fp3_struggle.0001 -# years = { 3 5 } -# } -# } -#} -# -#################################### -## FP3 Intro Events -## By Hugo Cortell, reworked by Ewan Cowhig Croft -#################################### -#fp3_struggle.0051 = { # BOOKMARK EVENT -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0051.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# is_struggle_phase = struggle_persia_phase_unrest -# } -# } -# desc = fp3_struggle.0051.desc.unrest -# } -# desc = fp3_struggle.0051.desc.stabilization -# } -# first_valid = { -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# is_struggle_phase = struggle_persia_phase_stabilisation -# } -# } -# desc = fp3_struggle.0051.desc.stabilization_actor -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0051.desc.supporter -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0051.desc.detractor -# } -# triggered_desc = { -# trigger = { -# fp3_struggle_is_the_caliph = yes -# } -# desc = fp3_struggle.0051.desc.caliph -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0051.desc.involved -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0051.desc.interloper -# } -# } -# } -# theme = realm -# trigger = { # we need to prevent this from firing for all players when a new player joins in MP -# is_ai = no -# NOT = { has_character_flag = fp3_struggle_intro_event_flag } -# any_character_struggle = { is_struggle_type = persian_struggle } -# } -# override_background = { reference = fp3_fullscreen_intro } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# cooldown = { years = 100 } -# -# widgets = { -# widget = { -# gui = "event_window_widget_struggle_info" -# container = "dynamic_content_widget" -# controller = struggle_info -# setup_scope = { struggle:persian_struggle = { save_scope_as = struggle } } -# } -# } -# immediate = { -# play_music_cue = strugglestart_cue -# add_character_flag = fp3_struggle_intro_event_flag -# add_to_global_variable_list = { # List is only checked for removal, comparing it in the trigger would be needlessly expensive -# name = fp3_intro_flag_character_list -# target = root -# } -# save_scope_value_as = { -# name = start -# value = yes -# } -# -# # LOC SCOPES -# character:34010 = { save_scope_as = Mutawakkil } # Stabbed by guards -# character:34012 = { save_scope_as = Muntasir } # Poisoned probably -# character:34013 = { save_scope_as = Mustain } # Betrayed by bookmark character (?) (Note: this char is listed as 3933 in some other files for some reason) -# character:34014 = { save_scope_as = Mostaza } # Bookmark ruler -# } -# option = { -# name = { -# text = { -# first_valid = { -# triggered_desc = { -# trigger = { -# any_character_struggle = { is_struggle_type = persian_struggle } -# has_title = character:34014.primary_title -# } -# desc = fp3_struggle.0051.b -# } -# desc = fp3_struggle.0051.a -# } -# } -# } -# clicksound = "event:/DLC/FP2/SFX/UI/fp2_struggle_start_select" -# } -#} -# -################################################## -## Struggle Endings # -## By Hugo Cortell, Maxence Voleau, Ola Jentzsch & Eren Humphrey # -#################################################################### -## Script is set up in this way to prevent out of order executions # -#################################################################### -# -#### STRENGTHEN CALIPHATE ENDING ### 0071 = 0080 ### -#fp3_struggle.0071 = { # Strengthen the Caliphate Ending -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0071.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# fp3_struggle_is_the_caliph = yes -# } -# desc = fp3_struggle.0071.desc.caliph -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0071.desc.supporter -# } -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_strength } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# fp3_ending_effects_assertion = yes -# character:34014 = { save_scope_as = Mostaza } # Bookmark ruler -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0071.a -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# -# ai_chance = { -# base = 75 -# -# modifier = { -# factor = 0.1 -# realm_size >= 250 -# } -# } -# } -# -# option = { -# trigger = { -# has_dlc_feature = roads_to_power -# fp3_struggle_is_the_caliph = yes -# NOT = { government_has_flag = government_is_administrative } -# } -# name = fp3_struggle.0071.b -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# -# convert_to_administrative_from_feudalism_effect = { GOVERNMENT_TO_ADOPT = flag:administrative } -# add_legitimacy_effect = { LEGITIMACY = admin_convert_legitimacy_value } #One Time Legitimacy Boost -# -# ai_chance = { -# base = 0 -# -# modifier = { -# add = 25 -# realm_size >= 75 -# } -# modifier = { -# add = 25 -# realm_size >= 100 -# } -# modifier = { -# add = 25 -# realm_size >= 125 -# } -# modifier = { -# add = 25 -# realm_size >= 150 -# } -# modifier = { -# add = 50 -# realm_size >= 200 -# } -# } -# } -# -# after = { -# fp3_end_persian_struggle_effect = { -# ENDING = struggle_persia_ending_assertion_decision -# EVENT = fp3_struggle.0072 -# FLAG = flag:fp3_struggle_strengthen_caliphate_ending -# } -# } -#} -# -#fp3_struggle.0072 = { # Notification for relevant people -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0071.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# fp3_struggle_is_the_caliph = yes -# } -# desc = fp3_struggle.0072.desc.caliph -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0072.desc.supporter -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0072.desc.detractor -# } -# -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0072.desc.involved -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0072.desc.interloper -# } -# desc = fp3_struggle.0072.desc.uninvolved -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_strength } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# trigger = { -# NOT = { has_character_flag = struggle_end_notification } -# } -# -# immediate = { -# show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } -# add_character_flag = struggle_end_notification -# -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0072.a -# trigger = { -# OR = { -# fp3_struggle_is_the_caliph = yes -# has_trait = fp3_struggle_supporter -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { -# name = fp3_struggle.0072.a -# trigger = { -# NOR = { -# fp3_struggle_is_the_caliph = yes -# has_trait = fp3_struggle_supporter -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -# after = { -# remove_character_flag = struggle_end_notification -# } -#} -# -#### CONCESSION ENDING ### 0081 = 0090 ### -# -#fp3_struggle.0081 = { # -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0082.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_supporter } -# desc = fp3_struggle.0082.desc.supporter -# } -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_detractor } -# desc = fp3_struggle.0082.desc.detractor -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# desc = { -# desc = fp3_struggle.0082.desc.intro -# desc = fp3_struggle.0082.desc.involved -# } -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# desc = { -# desc = fp3_struggle.0082.desc.intro -# desc = fp3_struggle.0082.desc.interloper -# } -# } -# desc = fp3_struggle.0082.desc.uninvolved -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_concession } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0082.a -# show_as_tooltip = { -# struggle:persian_struggle = { end_struggle = yes } -# fp3_struggle_ending_concession_effects = yes -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -# -# after = { -# fp3_end_persian_struggle_effect = { -# ENDING = yes -# EVENT = fp3_struggle.0082 -# FLAG = flag:fp3_struggle_concession_ending -# } -# } -#} -# -#fp3_struggle.0082 = { # Notification for relevant people -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0082.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_supporter } -# desc = fp3_struggle.0082.desc.supporter -# } -# triggered_desc = { -# trigger = { has_trait = fp3_struggle_detractor } -# desc = fp3_struggle.0082.desc.detractor -# } -# triggered_desc = { -# trigger = { exists = scope:involved } -# desc = { -# desc = fp3_struggle.0082.desc.intro -# desc = fp3_struggle.0082.desc.involved -# } -# } -# triggered_desc = { -# trigger = { exists = scope:interloper } -# desc = { -# desc = fp3_struggle.0082.desc.intro -# desc = fp3_struggle.0082.desc.interloper -# } -# } -# desc = fp3_struggle.0082.desc.uninvolved -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_concession } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# # There could, and should, be a event_window_widget_struggle_info widget here -# -# immediate = { -# if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# save_scope_as = involved -# } -# else_if = { -# limit = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# save_scope_as = interloper -# } -# show_as_tooltip = { -# struggle:persian_struggle ?= { end_struggle = yes } -# fp3_struggle_ending_concession_effects = yes -# } -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0082.b -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -#} -# -#### FOUNDATION ENDINGS ### 0091 = 0180 ### -#fp3_struggle.0091 = { # Rekindle Iran -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0091.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0091.desc.supporter -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0091.desc.detractor -# } -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_rekindle } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# save_scope_as = struggle_ender -# # Save Sunni caliph or previous one as scope:struggle_liege -# fp3_save_sunni_caliph_or_previous_effect = yes -# title:e_persia = { save_scope_as = persia_loc } # Persia gets renamed under clan govs -# -# fp3_struggle_rekindle_iran_effects = yes -# -# play_music_cue = struggleend_cue -# -# dynasty:1029100 = { save_scope_as = sassanid_dynasty } -# } -# -# option = { -# name = fp3_struggle.0091.a -# -# show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# after = { -# fp3_end_persian_struggle_effect = { -# ENDING = struggle_persia_ending_rekindle_iran_decision -# EVENT = fp3_struggle.0092 -# FLAG = flag:fp3_struggle_rekindle_iran_ending -# } -# } -#} -# -#fp3_struggle.0092 = { # Notification for relevant people -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0091.t -# desc = { -# desc = fp3_struggle.0092.intro -# first_valid = { -# triggered_desc = { -# trigger = { -# culture = { has_cultural_pillar = heritage_iranian } -# } -# desc = fp3_struggle.0092.desc.iranian -# } -# desc = fp3_struggle.0092.desc.non-iranian -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_rekindle } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# # There could, and should, be a event_window_widget_struggle_info widget here -# -# immediate = { -# show_as_tooltip = { -# struggle:persian_struggle = { end_struggle = yes } -# fp3_struggle_rekindle_iran_effects = yes -# } -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0092.a -# trigger = { -# culture = { has_cultural_pillar = heritage_iranian } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { -# name = fp3_struggle.0092.a -# trigger = { -# NOT = { -# culture = { has_cultural_pillar = heritage_iranian } -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -#} -# -#fp3_struggle.0095 = { # Temper the Caliphate, Shia Ending -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0095.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# faith = { -# OR = { -# has_doctrine = muhammad_succession_shia_doctrine -# has_doctrine = muhammad_succession_zandaqa_doctrine -# } -# } -# } -# desc = fp3_struggle.0095.desc.shia_and_zandaqa -# } -# triggered_desc = { -# trigger = { -# faith = { -# has_doctrine = muhammad_succession_muhakkima_doctrine -# } -# } -# desc = fp3_struggle.0095.desc.muhakkima -# } -# desc = fp3_struggle.0095.desc.fallback -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_temper } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# root = { save_scope_as = struggle_ender } -# # Save Sunni caliph or previous one as scope:struggle_liege -# fp3_save_sunni_caliph_or_previous_effect = yes -# character:34005 = { save_scope_as = harun_the_rightly_guided } -# -# fp3_struggle_ending_shia_caliphate_effects = yes -# -# play_music_cue = struggleend_cue -# -# character:33911 = { save_scope_as = ali } -# -# } -# -# option = { -# name = fp3_struggle.0095.a -# show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# after = { -# fp3_end_persian_struggle_effect = { -# ENDING = struggle_persia_ending_foundation_decision -# EVENT = fp3_struggle.0096 -# FLAG = flag:fp3_struggle_shia_caliphate_ending -# } -# } -#} -# -#fp3_struggle.0096 = { # Notification for relevant people -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0095.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0096.desc.supporter -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0096.desc.detractor -# } -# -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0096.desc.involved -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0096.desc.interloper -# } -# desc = fp3_struggle.0096.desc.uninvolved -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_temper } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# # There could, and should, be a event_window_widget_struggle_info widget here -# -# immediate = { -# play_music_cue = struggleend_cue -# show_as_tooltip = { -# fp3_struggle_ending_shia_caliphate_effects = yes -# struggle:persian_struggle = { end_struggle = yes } -# } -# } -# -# option = { -# name = fp3_struggle.0096.a -# trigger = { -# NOR = { -# has_trait = fp3_struggle_supporter -# faith = { has_doctrine = muhammad_succession_sunni_doctrine } -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { -# name = fp3_struggle.0096.a -# trigger = { -# OR = { -# has_trait = fp3_struggle_supporter -# faith = { has_doctrine = muhammad_succession_sunni_doctrine } -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -#} -# -#fp3_struggle.0100 = { # Temper the Caliphate, Vassalize Caliphate Ending -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0100.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# faith = { -# OR = { -# has_doctrine = muhammad_succession_shia_doctrine -# has_doctrine = muhammad_succession_zandaqa_doctrine -# } -# } -# } -# desc = fp3_struggle.0100.desc.shia_and_zandaqa -# } -# triggered_desc = { -# trigger = { -# faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } -# } -# desc = fp3_struggle.0100.desc.muhakkima -# } -# desc = fp3_struggle.0100.desc -# } -# } -# -# theme = court -# override_background = { reference = fp3_fullscreen_temper } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# root = { save_scope_as = struggle_ender } -# title:d_sunni.holder = { save_scope_as = struggle_liege } -# fp3_struggle_ending_vassalize_caliph_effects = yes -# -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0100.a -# show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# after = { -# fp3_end_persian_struggle_effect = { -# ENDING = struggle_persia_ending_foundation_decision -# EVENT = fp3_struggle.0101 -# FLAG = flag:fp3_struggle_vassalize_caliph_ending -# } -# } -#} -# -#fp3_struggle.0101 = { # Notification for relevant people -# type = character_event -# window = fullscreen_event -# title = fp3_struggle.0100.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_supporter -# } -# desc = fp3_struggle.0101.desc.supporter -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0101.desc.detractor -# } -# -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0101.desc.involved -# } -# triggered_desc = { -# trigger = { -# any_character_struggle = { -# involvement = interloper -# is_struggle_type = persian_struggle -# } -# } -# desc = fp3_struggle.0101.desc.interloper -# } -# desc = fp3_struggle.0101.desc.uninvolved -# } -# } -# theme = court -# override_background = { reference = fp3_fullscreen_temper } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# immediate = { -# show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } -# -# play_music_cue = struggleend_cue -# } -# -# option = { -# name = fp3_struggle.0101.a -# trigger = { -# NOR = { -# has_trait = fp3_struggle_supporter -# faith = { has_doctrine = muhammad_succession_sunni_doctrine } -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { -# name = fp3_struggle.0101.a -# trigger = { -# OR = { -# has_trait = fp3_struggle_supporter -# faith = { has_doctrine = muhammad_succession_sunni_doctrine } -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -#} -# -#### SUNDERING THE CALIPHATE ### 0191 = 0200 ### -#fp3_struggle.0191 = { # Sunder the Caliphate -# type = character_event -# title = fp3_struggle.0191.t -# desc = fp3_struggle.0191.desc -# theme = court -# left_portrait = { -# character = scope:sunderer -# animation = war_over_win -# } -# lower_right_portrait = scope:struggle_liege -# -# immediate = { -# # Select the caliph and destroy their title -# fp3_sundered_caliphate_effects = yes -# } -# -# option = { -# name = fp3_struggle.0191.a -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -#} -# -#fp3_struggle.0192 = { # Notification for relevant people -# type = character_event -# title = fp3_struggle.0192.t -# -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# fp3_struggle_is_the_caliph = yes -# } -# desc = fp3_struggle.0192.desc.caliph -# } -# triggered_desc = { -# trigger = { -# OR = { -# has_trait = fp3_struggle_supporter -# is_vassal_of = scope:struggle_liege -# } -# } -# desc = fp3_struggle.0192.desc.supporter_or_vassal -# } -# triggered_desc = { -# trigger = { -# has_trait = fp3_struggle_detractor -# } -# desc = fp3_struggle.0192.desc.detractor -# } -# } -# } -# -# -# theme = court -# override_background = { reference = fp3_fullscreen_sunder } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# left_portrait = { -# character = scope:sunderer -# animation = war_over_win -# } -# lower_right_portrait = scope:struggle_liege -# -# option = { -# name = fp3_struggle.0192.c -# trigger = { -# NOR = { -# fp3_struggle_is_the_caliph = yes -# has_trait = fp3_struggle_supporter -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { -# name = fp3_struggle.0192.b -# trigger = { -# OR = { -# fp3_struggle_is_the_caliph = yes -# has_trait = fp3_struggle_supporter -# } -# } -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" -# } -#} -# -#################################### -## FP3 casus belli events -## By Joe Parkin -#################################### -# -## Install loyal puppet - declared puppet ping -#fp3_struggle.8000 = { -# type = letter_event -# opening = fp3_struggle.8000.t -# desc = { -# desc = fp3_struggle.8000.desc -# } -# sender = scope:attacker -# -# immediate = { -# send_interface_message = { -# type = event_struggle_neutral -# title = install_loyalist_puppet_declared_puppet -# left_icon = scope:attacker -# right_icon = scope:defender -# show_as_tooltip = { -# scope:attacker = { -# start_war = { -# casus_belli = "fp3_install_loyalist_cb" -# target = scope:defender -# } -# } -# } -# } -# } -# -# # Indeed? -# option = { -# name = fp3_struggle.8000.a -# } -#} -# -## Install loyal puppet - declared defender ping -#fp3_struggle.8001 = { -# type = letter_event -# opening = fp3_struggle.8000.t -# desc = { -# desc = fp3_struggle.8001.desc -# } -# sender = scope:attacker -# -# immediate = { -# send_interface_message = { -# type = event_struggle_bad -# title = install_loyalist_puppet_declared_defender -# left_icon = scope:attacker -# right_icon = scope:loyalist_puppet -# show_as_tooltip = { -# scope:attacker = { -# start_war = { -# casus_belli = "fp3_install_loyalist_cb" -# target = scope:defender -# } -# } -# } -# } -# } -# -# # Outrageous! -# option = { -# name = fp3_struggle.8001.a -# } -#} -# -## Install loyal puppet - won puppet ping -#fp3_struggle.8002 = { -# type = letter_event -# opening = fp3_struggle.8000.t -# desc = { -# desc = fp3_struggle.8002.desc -# } -# sender = scope:attacker -# -# immediate = { -# send_interface_message = { -# type = event_struggle_good -# title = install_loyalist_puppet_won_puppet -# left_icon = scope:attacker -# right_icon = scope:defender -# show_as_tooltip = { -# every_in_list = { -# list = title_to_steal -# save_scope_as = stolen_title -# root = { get_title = scope:stolen_title } -# } -# custom_tooltip = fp3_struggle.8002.alliance_tt -# if = { -# limit = { scope:defender.imprisoner ?= root } -# imprison = { -# target = scope:defender -# type = house_arrest -# } -# } -# } -# } -# } -# -# # Ok! -# option = { -# name = fp3_struggle.8002.a -# } -#} -# -#################################### -## Integrity Validation Events -## By Hugo Cortell -#################################### -#fp3_struggle.9980 = { # Validation of title -# type = character_event -# orphan = yes -# title = { -# desc = Hugo -# desc = game_concept_struggle_struggles -# desc = number_two -# desc = debug -# } -# desc = { -# desc = historical_commander_trait.0003.d -# desc = stress_threshold.3201.depressed.effect -# } -# -# theme = mental_break -# left_portrait = title:e_arabia.holder -# -# immediate = { title:e_arabia.holder = { add_piety = 30000 } } # Hard title validation -# -# option = { -# name = { -# text = { -# desc = martial_chivalry.2015.a -# desc = rivalry.1016.a.exposed -# } -# } -# } -#} -# -#fp3_struggle.9981 = { # Destroy e_arabia (used mostly for checking invalidations) -# hidden = yes -# orphan = yes -# immediate = { destroy_title = title:e_arabia } -#} -# -#fp3_struggle.9982 = { # Revision 2 nav event, to make QA's life easier and avoid unecessary crashes -# type = character_event -# title = { -# desc = Hugo -# desc = CHARACTER_POSS -# desc = intrigue_broken_modifier -# desc = game_concept_struggle -# desc = MENU -# } -# desc = { -# desc = bp1_yearly.9018.c -# desc = double_line_break -# desc = childhood.7400_mother_dead -# desc = double_line_break -# desc = yearly.7021.b -# } -# -# orphan = yes -# theme = mental_break -# -# option = { # Dynamically start a struggle -# trigger = { NOT = { exists = struggle:persian_struggle } } -# name = FRONTEND_MP_GAME_SETUP_HOST_NEW_GAME -# -# random_ruler = { -# limit = { -# top_liege = this -# location ?= { geographical_region = world_persian_empire } -# } -# primary_title = { save_scope_as = debug_caliph } -# } -# start_struggle = { -# struggle_type = persian_struggle -# start_phase = struggle_persia_phase_stabilisation -# } -# -# send_interface_message = { # Informs you of who the "debug caliph" is -# type = event_martial_bad -# title = trait_beauty_bad_1_desc -# left_icon = scope:debug_caliph -# right_icon = scope:debug_caliph.holder -# } -# } -# option = { # Go forward in the struggle flow -# name = dynn_Daflos_motto -# trigger = { exists = struggle:persian_struggle } -# -# if = { -# limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_unrest } } -# struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_ending_phase_concession } } -# } -# else_if = { -# limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_stabilisation } } -# struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_phase_unrest with_transition = yes } } -# } -# } -# option = { # Go backwards in the struggle flow -# name = default_retreat -# trigger = { exists = struggle:persian_struggle } -# -# if = { -# limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_unrest } } -# struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_phase_stabilisation } } -# } -# } -# option = { name = EXIT_TO_DESKTOP } # Exit event without doing anything -#} -# -#fp3_struggle.9983 = { # Create Persian Empire Test -# hidden = yes -# orphan = yes -# immediate = { -# create_title_and_vassal_change = { -# type = created -# save_scope_as = change -# } -# title:e_persia = { -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# } -#} -# -#fp3_struggle.9984 = { # Ending simulator - Allows you to end the struggle in a clean way, works better/is safer than commands -# type = character_event -# window = fullscreen_event -# title = ENDING_DECISION_AVAILABLE -# desc = ENDING_DECISION_BUTTON_LABEL_MULTIPLE -# orphan = yes -# theme = realm -# override_background = { reference = fp3_fullscreen_strength } -# override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } -# -# widgets = { -# widget = { -# gui = "event_window_widget_struggle_info" -# container = "dynamic_content_widget" -# controller = struggle_info -# setup_scope = { struggle:persian_struggle = { save_scope_as = struggle } } -# } -# } -# -# immediate = { -# # Save Sunni caliph or previous one as scope:struggle_liege -# fp3_save_sunni_caliph_or_previous_effect = yes -# } -# -# option = { # Concession -# name = struggle_persia_ending_phase_concession -# save_scope_value_as = { -# name = ending_to_simulate -# value = flag:concession -# } -# trigger_event = fp3_struggle.9985 -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# -# option = { # Assertion (Strengthen) -# name = struggle_persia_ending_assertion -# save_scope_value_as = { -# name = ending_to_simulate -# value = flag:strength -# } -# trigger_event = fp3_struggle.9985 -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { # Sunni Caliphate -# name = struggle_persia_ending_foundation_decision_option_shia -# save_scope_value_as = { -# name = ending_to_simulate -# value = flag:sunni -# } -# trigger_event = fp3_struggle.9985 -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { # Consume/Vassalize -# name = struggle_persia_ending_foundation_decision_option_vassalize -# save_scope_value_as = { -# name = ending_to_simulate -# value = flag:vassal -# } -# trigger_event = fp3_struggle.9985 -# clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" -# } -# -# option = { name = EXIT_TO_DESKTOP } -#} -# -#fp3_struggle.9985 = { # Simulator Follow-up (keeps it hidden and clean to prevent QA panic) -# hidden = yes -# immediate = { -# struggle:persian_struggle = { -# # Ensure we are in the correct position to fire the ending -# if = { -# limit = { -# scope:ending_to_simulate = flag:strength -# is_struggle_phase = struggle_persia_phase_unrest -# } -# change_struggle_phase = { struggle_phase = struggle_persia_phase_stabilisation } -# } -# else_if = { -# limit = { -# OR = { -# scope:ending_to_simulate = flag:sunni -# scope:ending_to_simulate = flag:vassal -# } -# is_struggle_phase = struggle_persia_phase_stabilisation -# } -# change_struggle_phase = { struggle_phase = struggle_persia_phase_unrest } -# } -# } -# # Cases for firing the correct phase -# switch = { -# trigger = scope:ending_to_simulate -# flag:concession = { trigger_event = fp3_struggle.0081 } -# flag:sunni = { trigger_event = fp3_struggle.0095 } -# flag:vassal = { trigger_event = fp3_struggle.0100 } -# flag:strength = { trigger_event = fp3_struggle.0071 } -# -# fallback = { -# assert_if = { -# limit = { always = yes } -# text = "FP3 ENDING SIMULATION DEBUG TOOL ERROR: NO VALID scope:ending_to_simulate STATE!" -# } -# } -# } -# } -#} -# \ No newline at end of file +fp3_struggle.0001 = { + hidden = yes + scope = none + scope = struggle + + # If the struggle ends, break the loop. + trigger = { exists = struggle:persian_struggle } + + immediate = { + if = { + # If there isn't a caliph at present, then stop trying to make people talk about them. + limit = { exists = title:d_sunni.holder } + struggle:persian_struggle = { + every_involved_ruler = { + limit = { fp3_struggle_0001_valid_ai_struggle_char_trigger = yes } + random = { + chance = fp3_struggle_switch_sides_value + execute_decision = fp3_name_read_in_friday_prayer_decision + } + } + every_interloper_ruler = { + limit = { fp3_struggle_0001_valid_ai_struggle_char_trigger = yes } + random = { + chance = fp3_struggle_switch_sides_value + execute_decision = fp3_name_read_in_friday_prayer_decision + } + } + } + } + + # Cue this event up again for the next time around. + trigger_event = { + id = fp3_struggle.0001 + years = { 3 5 } + } + } +} + +################################### +# FP3 Intro Events +# By Hugo Cortell, reworked by Ewan Cowhig Croft +################################### +fp3_struggle.0051 = { # BOOKMARK EVENT + type = character_event + window = fullscreen_event + title = fp3_struggle.0051.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + any_character_struggle = { + is_struggle_type = persian_struggle + is_struggle_phase = struggle_persia_phase_unrest + } + } + desc = fp3_struggle.0051.desc.unrest + } + desc = fp3_struggle.0051.desc.stabilization + } + first_valid = { + triggered_desc = { + trigger = { + any_character_struggle = { + is_struggle_type = persian_struggle + is_struggle_phase = struggle_persia_phase_stabilisation + } + } + desc = fp3_struggle.0051.desc.stabilization_actor + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0051.desc.supporter + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0051.desc.detractor + } + triggered_desc = { + trigger = { + fp3_struggle_is_the_caliph = yes + } + desc = fp3_struggle.0051.desc.caliph + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0051.desc.involved + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0051.desc.interloper + } + } + } + theme = realm + trigger = { # we need to prevent this from firing for all players when a new player joins in MP + is_ai = no + NOT = { has_character_flag = fp3_struggle_intro_event_flag } + any_character_struggle = { is_struggle_type = persian_struggle } + } + override_background = { reference = fp3_fullscreen_intro } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + cooldown = { years = 100 } + + widgets = { + widget = { + gui = "event_window_widget_struggle_info" + container = "dynamic_content_widget" + controller = struggle_info + setup_scope = { struggle:persian_struggle = { save_scope_as = struggle } } + } + } + immediate = { + play_music_cue = strugglestart_cue + add_character_flag = fp3_struggle_intro_event_flag + add_to_global_variable_list = { # List is only checked for removal, comparing it in the trigger would be needlessly expensive + name = fp3_intro_flag_character_list + target = root + } + save_scope_value_as = { + name = start + value = yes + } + + # LOC SCOPES + character:34010 = { save_scope_as = Mutawakkil } # Stabbed by guards + character:34012 = { save_scope_as = Muntasir } # Poisoned probably + character:34013 = { save_scope_as = Mustain } # Betrayed by bookmark character (?) (Note: this char is listed as 3933 in some other files for some reason) + character:34014 = { save_scope_as = Mostaza } # Bookmark ruler + } + option = { + name = { + text = { + first_valid = { + triggered_desc = { + trigger = { + any_character_struggle = { is_struggle_type = persian_struggle } + has_title = character:34014.primary_title + } + desc = fp3_struggle.0051.b + } + desc = fp3_struggle.0051.a + } + } + } + clicksound = "event:/DLC/FP2/SFX/UI/fp2_struggle_start_select" + } +} + +################################################# +# Struggle Endings # +# By Hugo Cortell, Maxence Voleau, Ola Jentzsch & Eren Humphrey # +################################################################### +# Script is set up in this way to prevent out of order executions # +################################################################### + +### STRENGTHEN CALIPHATE ENDING ### 0071 = 0080 ### +fp3_struggle.0071 = { # Strengthen the Caliphate Ending + type = character_event + window = fullscreen_event + title = fp3_struggle.0071.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + fp3_struggle_is_the_caliph = yes + } + desc = fp3_struggle.0071.desc.caliph + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0071.desc.supporter + } + } + } + theme = court + override_background = { reference = fp3_fullscreen_strength } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + fp3_ending_effects_assertion = yes + character:34014 = { save_scope_as = Mostaza } # Bookmark ruler + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0071.a + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + + ai_chance = { + base = 75 + + modifier = { + factor = 0.1 + realm_size >= 250 + } + } + } + + option = { + trigger = { + has_dlc_feature = roads_to_power + fp3_struggle_is_the_caliph = yes + NOT = { government_has_flag = government_is_administrative } + } + name = fp3_struggle.0071.b + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + + convert_to_administrative_from_feudalism_effect = { GOVERNMENT_TO_ADOPT = flag:administrative } + add_legitimacy_effect = { LEGITIMACY = admin_convert_legitimacy_value } #One Time Legitimacy Boost + + ai_chance = { + base = 0 + + modifier = { + add = 25 + realm_size >= 75 + } + modifier = { + add = 25 + realm_size >= 100 + } + modifier = { + add = 25 + realm_size >= 125 + } + modifier = { + add = 25 + realm_size >= 150 + } + modifier = { + add = 50 + realm_size >= 200 + } + } + } + + after = { + fp3_end_persian_struggle_effect = { + ENDING = struggle_persia_ending_assertion_decision + EVENT = fp3_struggle.0072 + FLAG = flag:fp3_struggle_strengthen_caliphate_ending + } + } +} + +fp3_struggle.0072 = { # Notification for relevant people + type = character_event + window = fullscreen_event + title = fp3_struggle.0071.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + fp3_struggle_is_the_caliph = yes + } + desc = fp3_struggle.0072.desc.caliph + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0072.desc.supporter + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0072.desc.detractor + } + + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0072.desc.involved + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0072.desc.interloper + } + desc = fp3_struggle.0072.desc.uninvolved + } + } + theme = court + override_background = { reference = fp3_fullscreen_strength } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + trigger = { + NOT = { has_character_flag = struggle_end_notification } + } + + immediate = { + show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } + add_character_flag = struggle_end_notification + + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0072.a + trigger = { + OR = { + fp3_struggle_is_the_caliph = yes + has_trait = fp3_struggle_supporter + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { + name = fp3_struggle.0072.a + trigger = { + NOR = { + fp3_struggle_is_the_caliph = yes + has_trait = fp3_struggle_supporter + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } + after = { + remove_character_flag = struggle_end_notification + } +} + +### CONCESSION ENDING ### 0081 = 0090 ### + +fp3_struggle.0081 = { # + type = character_event + window = fullscreen_event + title = fp3_struggle.0082.t + desc = { + first_valid = { + triggered_desc = { + trigger = { has_trait = fp3_struggle_supporter } + desc = fp3_struggle.0082.desc.supporter + } + triggered_desc = { + trigger = { has_trait = fp3_struggle_detractor } + desc = fp3_struggle.0082.desc.detractor + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + desc = { + desc = fp3_struggle.0082.desc.intro + desc = fp3_struggle.0082.desc.involved + } + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + desc = { + desc = fp3_struggle.0082.desc.intro + desc = fp3_struggle.0082.desc.interloper + } + } + desc = fp3_struggle.0082.desc.uninvolved + } + } + theme = court + override_background = { reference = fp3_fullscreen_concession } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0082.a + show_as_tooltip = { + struggle:persian_struggle = { end_struggle = yes } + fp3_struggle_ending_concession_effects = yes + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } + + after = { + fp3_end_persian_struggle_effect = { + ENDING = yes + EVENT = fp3_struggle.0082 + FLAG = flag:fp3_struggle_concession_ending + } + } +} + +fp3_struggle.0082 = { # Notification for relevant people + type = character_event + window = fullscreen_event + title = fp3_struggle.0082.t + desc = { + first_valid = { + triggered_desc = { + trigger = { has_trait = fp3_struggle_supporter } + desc = fp3_struggle.0082.desc.supporter + } + triggered_desc = { + trigger = { has_trait = fp3_struggle_detractor } + desc = fp3_struggle.0082.desc.detractor + } + triggered_desc = { + trigger = { exists = scope:involved } + desc = { + desc = fp3_struggle.0082.desc.intro + desc = fp3_struggle.0082.desc.involved + } + } + triggered_desc = { + trigger = { exists = scope:interloper } + desc = { + desc = fp3_struggle.0082.desc.intro + desc = fp3_struggle.0082.desc.interloper + } + } + desc = fp3_struggle.0082.desc.uninvolved + } + } + theme = court + override_background = { reference = fp3_fullscreen_concession } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + # There could, and should, be a event_window_widget_struggle_info widget here + + immediate = { + if = { + limit = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + save_scope_as = involved + } + else_if = { + limit = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + save_scope_as = interloper + } + show_as_tooltip = { + struggle:persian_struggle ?= { end_struggle = yes } + fp3_struggle_ending_concession_effects = yes + } + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0082.b + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } +} + +### FOUNDATION ENDINGS ### 0091 = 0180 ### +fp3_struggle.0091 = { # Rekindle Iran + type = character_event + window = fullscreen_event + title = fp3_struggle.0091.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0091.desc.supporter + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0091.desc.detractor + } + } + } + theme = court + override_background = { reference = fp3_fullscreen_rekindle } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + save_scope_as = struggle_ender + # Save Sunni caliph or previous one as scope:struggle_liege + fp3_save_sunni_caliph_or_previous_effect = yes + title:e_persia = { save_scope_as = persia_loc } # Persia gets renamed under clan govs + + fp3_struggle_rekindle_iran_effects = yes + + play_music_cue = struggleend_cue + + dynasty:1029100 = { save_scope_as = sassanid_dynasty } + } + + option = { + name = fp3_struggle.0091.a + + show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + after = { + fp3_end_persian_struggle_effect = { + ENDING = struggle_persia_ending_rekindle_iran_decision + EVENT = fp3_struggle.0092 + FLAG = flag:fp3_struggle_rekindle_iran_ending + } + } +} + +fp3_struggle.0092 = { # Notification for relevant people + type = character_event + window = fullscreen_event + title = fp3_struggle.0091.t + desc = { + desc = fp3_struggle.0092.intro + first_valid = { + triggered_desc = { + trigger = { + culture = { has_cultural_pillar = heritage_iranian } + } + desc = fp3_struggle.0092.desc.iranian + } + desc = fp3_struggle.0092.desc.non-iranian + } + } + theme = court + override_background = { reference = fp3_fullscreen_rekindle } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + # There could, and should, be a event_window_widget_struggle_info widget here + + immediate = { + show_as_tooltip = { + struggle:persian_struggle = { end_struggle = yes } + fp3_struggle_rekindle_iran_effects = yes + } + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0092.a + trigger = { + culture = { has_cultural_pillar = heritage_iranian } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { + name = fp3_struggle.0092.a + trigger = { + NOT = { + culture = { has_cultural_pillar = heritage_iranian } + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } +} + +fp3_struggle.0095 = { # Temper the Caliphate, Shia Ending + type = character_event + window = fullscreen_event + title = fp3_struggle.0095.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + faith = { + OR = { + has_doctrine = muhammad_succession_shia_doctrine + has_doctrine = muhammad_succession_zandaqa_doctrine + } + } + } + desc = fp3_struggle.0095.desc.shia_and_zandaqa + } + triggered_desc = { + trigger = { + faith = { + has_doctrine = muhammad_succession_muhakkima_doctrine + } + } + desc = fp3_struggle.0095.desc.muhakkima + } + desc = fp3_struggle.0095.desc.fallback + } + } + theme = court + override_background = { reference = fp3_fullscreen_temper } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + root = { save_scope_as = struggle_ender } + # Save Sunni caliph or previous one as scope:struggle_liege + fp3_save_sunni_caliph_or_previous_effect = yes + character:34005 = { save_scope_as = harun_the_rightly_guided } + + fp3_struggle_ending_shia_caliphate_effects = yes + + play_music_cue = struggleend_cue + + character:33911 = { save_scope_as = ali } + + } + + option = { + name = fp3_struggle.0095.a + show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + after = { + fp3_end_persian_struggle_effect = { + ENDING = struggle_persia_ending_foundation_decision + EVENT = fp3_struggle.0096 + FLAG = flag:fp3_struggle_shia_caliphate_ending + } + } +} + +fp3_struggle.0096 = { # Notification for relevant people + type = character_event + window = fullscreen_event + title = fp3_struggle.0095.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0096.desc.supporter + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0096.desc.detractor + } + + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0096.desc.involved + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0096.desc.interloper + } + desc = fp3_struggle.0096.desc.uninvolved + } + } + theme = court + override_background = { reference = fp3_fullscreen_temper } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + # There could, and should, be a event_window_widget_struggle_info widget here + + immediate = { + play_music_cue = struggleend_cue + show_as_tooltip = { + fp3_struggle_ending_shia_caliphate_effects = yes + struggle:persian_struggle = { end_struggle = yes } + } + } + + option = { + name = fp3_struggle.0096.a + trigger = { + NOR = { + has_trait = fp3_struggle_supporter + faith = { has_doctrine = muhammad_succession_sunni_doctrine } + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { + name = fp3_struggle.0096.a + trigger = { + OR = { + has_trait = fp3_struggle_supporter + faith = { has_doctrine = muhammad_succession_sunni_doctrine } + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } +} + +fp3_struggle.0100 = { # Temper the Caliphate, Vassalize Caliphate Ending + type = character_event + window = fullscreen_event + title = fp3_struggle.0100.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + faith = { + OR = { + has_doctrine = muhammad_succession_shia_doctrine + has_doctrine = muhammad_succession_zandaqa_doctrine + } + } + } + desc = fp3_struggle.0100.desc.shia_and_zandaqa + } + triggered_desc = { + trigger = { + faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } + } + desc = fp3_struggle.0100.desc.muhakkima + } + desc = fp3_struggle.0100.desc + } + } + + theme = court + override_background = { reference = fp3_fullscreen_temper } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + root = { save_scope_as = struggle_ender } + title:d_sunni.holder = { save_scope_as = struggle_liege } + fp3_struggle_ending_vassalize_caliph_effects = yes + + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0100.a + show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + after = { + fp3_end_persian_struggle_effect = { + ENDING = struggle_persia_ending_foundation_decision + EVENT = fp3_struggle.0101 + FLAG = flag:fp3_struggle_vassalize_caliph_ending + } + } +} + +fp3_struggle.0101 = { # Notification for relevant people + type = character_event + window = fullscreen_event + title = fp3_struggle.0100.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + has_trait = fp3_struggle_supporter + } + desc = fp3_struggle.0101.desc.supporter + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0101.desc.detractor + } + + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = involved + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0101.desc.involved + } + triggered_desc = { + trigger = { + any_character_struggle = { + involvement = interloper + is_struggle_type = persian_struggle + } + } + desc = fp3_struggle.0101.desc.interloper + } + desc = fp3_struggle.0101.desc.uninvolved + } + } + theme = court + override_background = { reference = fp3_fullscreen_temper } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + immediate = { + show_as_tooltip = { struggle:persian_struggle = { end_struggle = yes } } + + play_music_cue = struggleend_cue + } + + option = { + name = fp3_struggle.0101.a + trigger = { + NOR = { + has_trait = fp3_struggle_supporter + faith = { has_doctrine = muhammad_succession_sunni_doctrine } + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { + name = fp3_struggle.0101.a + trigger = { + OR = { + has_trait = fp3_struggle_supporter + faith = { has_doctrine = muhammad_succession_sunni_doctrine } + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } +} + +### SUNDERING THE CALIPHATE ### 0191 = 0200 ### +fp3_struggle.0191 = { # Sunder the Caliphate + type = character_event + title = fp3_struggle.0191.t + desc = fp3_struggle.0191.desc + theme = court + left_portrait = { + character = scope:sunderer + animation = war_over_win + } + lower_right_portrait = scope:struggle_liege + + immediate = { + # Select the caliph and destroy their title + fp3_sundered_caliphate_effects = yes + } + + option = { + name = fp3_struggle.0191.a + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } +} + +fp3_struggle.0192 = { # Notification for relevant people + type = character_event + title = fp3_struggle.0192.t + + desc = { + first_valid = { + triggered_desc = { + trigger = { + fp3_struggle_is_the_caliph = yes + } + desc = fp3_struggle.0192.desc.caliph + } + triggered_desc = { + trigger = { + OR = { + has_trait = fp3_struggle_supporter + is_vassal_of = scope:struggle_liege + } + } + desc = fp3_struggle.0192.desc.supporter_or_vassal + } + triggered_desc = { + trigger = { + has_trait = fp3_struggle_detractor + } + desc = fp3_struggle.0192.desc.detractor + } + } + } + + + theme = court + override_background = { reference = fp3_fullscreen_sunder } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + left_portrait = { + character = scope:sunderer + animation = war_over_win + } + lower_right_portrait = scope:struggle_liege + + option = { + name = fp3_struggle.0192.c + trigger = { + NOR = { + fp3_struggle_is_the_caliph = yes + has_trait = fp3_struggle_supporter + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { + name = fp3_struggle.0192.b + trigger = { + OR = { + fp3_struggle_is_the_caliph = yes + has_trait = fp3_struggle_supporter + } + } + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_negative" + } +} + +################################### +# FP3 casus belli events +# By Joe Parkin +################################### + +# Install loyal puppet - declared puppet ping +fp3_struggle.8000 = { + type = letter_event + opening = fp3_struggle.8000.t + desc = { + desc = fp3_struggle.8000.desc + } + sender = scope:attacker + + immediate = { + send_interface_message = { + type = event_struggle_neutral + title = install_loyalist_puppet_declared_puppet + left_icon = scope:attacker + right_icon = scope:defender + show_as_tooltip = { + scope:attacker = { + start_war = { + casus_belli = "fp3_install_loyalist_cb" + target = scope:defender + } + } + } + } + } + + # Indeed? + option = { + name = fp3_struggle.8000.a + } +} + +# Install loyal puppet - declared defender ping +fp3_struggle.8001 = { + type = letter_event + opening = fp3_struggle.8000.t + desc = { + desc = fp3_struggle.8001.desc + } + sender = scope:attacker + + immediate = { + send_interface_message = { + type = event_struggle_bad + title = install_loyalist_puppet_declared_defender + left_icon = scope:attacker + right_icon = scope:loyalist_puppet + show_as_tooltip = { + scope:attacker = { + start_war = { + casus_belli = "fp3_install_loyalist_cb" + target = scope:defender + } + } + } + } + } + + # Outrageous! + option = { + name = fp3_struggle.8001.a + } +} + +# Install loyal puppet - won puppet ping +fp3_struggle.8002 = { + type = letter_event + opening = fp3_struggle.8000.t + desc = { + desc = fp3_struggle.8002.desc + } + sender = scope:attacker + + immediate = { + send_interface_message = { + type = event_struggle_good + title = install_loyalist_puppet_won_puppet + left_icon = scope:attacker + right_icon = scope:defender + show_as_tooltip = { + every_in_list = { + list = title_to_steal + save_scope_as = stolen_title + root = { get_title = scope:stolen_title } + } + custom_tooltip = fp3_struggle.8002.alliance_tt + if = { + limit = { scope:defender.imprisoner ?= root } + imprison = { + target = scope:defender + type = house_arrest + } + } + } + } + } + + # Ok! + option = { + name = fp3_struggle.8002.a + } +} + + +################################### +# Integrity Validation Events +# By Hugo Cortell +################################### +fp3_struggle.9980 = { # Validation of title + type = character_event + orphan = yes + title = { + desc = Hugo + desc = game_concept_struggle_struggles + desc = number_two + desc = debug + } + desc = { + desc = historical_commander_trait.0003.d + desc = stress_threshold.3201.depressed.effect + } + + theme = mental_break + left_portrait = title:e_arabia.holder + + immediate = { title:e_arabia.holder = { add_piety = 30000 } } # Hard title validation + + option = { + name = { + text = { + desc = martial_chivalry.2015.a + desc = rivalry.1016.a.exposed + } + } + } +} + +fp3_struggle.9981 = { # Destroy e_arabia (used mostly for checking invalidations) + hidden = yes + orphan = yes + immediate = { destroy_title = title:e_arabia } +} + +fp3_struggle.9982 = { # Revision 2 nav event, to make QA's life easier and avoid unecessary crashes + type = character_event + title = { + desc = Hugo + desc = CHARACTER_POSS + desc = intrigue_broken_modifier + desc = game_concept_struggle + desc = MENU + } + desc = { + desc = bp1_yearly.9018.c + desc = double_line_break + desc = childhood.7400_mother_dead + desc = double_line_break + desc = yearly.7021.b + } + + orphan = yes + theme = mental_break + + option = { # Dynamically start a struggle + trigger = { NOT = { exists = struggle:persian_struggle } } + name = FRONTEND_MP_GAME_SETUP_HOST_NEW_GAME + + random_ruler = { + limit = { + top_liege = this + location ?= { geographical_region = world_persian_empire } + } + primary_title = { save_scope_as = debug_caliph } + } + start_struggle = { + struggle_type = persian_struggle + start_phase = struggle_persia_phase_stabilisation + } + + send_interface_message = { # Informs you of who the "debug caliph" is + type = event_martial_bad + title = trait_beauty_bad_1_desc + left_icon = scope:debug_caliph + right_icon = scope:debug_caliph.holder + } + } + option = { # Go forward in the struggle flow + name = dynn_Daflos_motto + trigger = { exists = struggle:persian_struggle } + + if = { + limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_unrest } } + struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_ending_phase_concession } } + } + else_if = { + limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_stabilisation } } + struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_phase_unrest with_transition = yes } } + } + } + option = { # Go backwards in the struggle flow + name = default_retreat + trigger = { exists = struggle:persian_struggle } + + if = { + limit = { struggle:persian_struggle = { is_struggle_phase = struggle_persia_phase_unrest } } + struggle:persian_struggle = { change_struggle_phase = { struggle_phase = struggle_persia_phase_stabilisation } } + } + } + option = { name = EXIT_TO_DESKTOP } # Exit event without doing anything +} + +fp3_struggle.9983 = { # Create Persian Empire Test + hidden = yes + orphan = yes + immediate = { + create_title_and_vassal_change = { + type = created + save_scope_as = change + } + title:e_persia = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } +} + +fp3_struggle.9984 = { # Ending simulator - Allows you to end the struggle in a clean way, works better/is safer than commands + type = character_event + window = fullscreen_event + title = ENDING_DECISION_AVAILABLE + desc = ENDING_DECISION_BUTTON_LABEL_MULTIPLE + orphan = yes + theme = realm + override_background = { reference = fp3_fullscreen_strength } + override_sound = { reference = "event:/DLC/FP2/SFX/UI/fp2_struggle_ui_intro_animate" } + + widgets = { + widget = { + gui = "event_window_widget_struggle_info" + container = "dynamic_content_widget" + controller = struggle_info + setup_scope = { struggle:persian_struggle = { save_scope_as = struggle } } + } + } + + immediate = { + # Save Sunni caliph or previous one as scope:struggle_liege + fp3_save_sunni_caliph_or_previous_effect = yes + } + + option = { # Concession + name = struggle_persia_ending_phase_concession + save_scope_value_as = { + name = ending_to_simulate + value = flag:concession + } + trigger_event = fp3_struggle.9985 + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + + option = { # Assertion (Strengthen) + name = struggle_persia_ending_assertion + save_scope_value_as = { + name = ending_to_simulate + value = flag:strength + } + trigger_event = fp3_struggle.9985 + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { # Sunni Caliphate + name = struggle_persia_ending_foundation_decision_option_shia + save_scope_value_as = { + name = ending_to_simulate + value = flag:sunni + } + trigger_event = fp3_struggle.9985 + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { # Consume/Vassalize + name = struggle_persia_ending_foundation_decision_option_vassalize + save_scope_value_as = { + name = ending_to_simulate + value = flag:vassal + } + trigger_event = fp3_struggle.9985 + clicksound = "event:/DLC/FP3/SFX/UI/Notifications/Toasts/struggle_end_positive" + } + + option = { name = EXIT_TO_DESKTOP } +} + +fp3_struggle.9985 = { # Simulator Follow-up (keeps it hidden and clean to prevent QA panic) + hidden = yes + immediate = { + struggle:persian_struggle = { + # Ensure we are in the correct position to fire the ending + if = { + limit = { + scope:ending_to_simulate = flag:strength + is_struggle_phase = struggle_persia_phase_unrest + } + change_struggle_phase = { struggle_phase = struggle_persia_phase_stabilisation } + } + else_if = { + limit = { + OR = { + scope:ending_to_simulate = flag:sunni + scope:ending_to_simulate = flag:vassal + } + is_struggle_phase = struggle_persia_phase_stabilisation + } + change_struggle_phase = { struggle_phase = struggle_persia_phase_unrest } + } + } + # Cases for firing the correct phase + switch = { + trigger = scope:ending_to_simulate + flag:concession = { trigger_event = fp3_struggle.0081 } + flag:sunni = { trigger_event = fp3_struggle.0095 } + flag:vassal = { trigger_event = fp3_struggle.0100 } + flag:strength = { trigger_event = fp3_struggle.0071 } + + fallback = { + assert_if = { + limit = { always = yes } + text = "FP3 ENDING SIMULATION DEBUG TOOL ERROR: NO VALID scope:ending_to_simulate STATE!" + } + } + } + } +} diff --git a/events/dlc/tgp/tgp_dynastic_cycle_flavor_events.txt b/events/dlc/tgp/tgp_dynastic_cycle_flavor_events.txt index 06ee1720..f4415077 100644 --- a/events/dlc/tgp/tgp_dynastic_cycle_flavor_events.txt +++ b/events/dlc/tgp/tgp_dynastic_cycle_flavor_events.txt @@ -1,954 +1,953 @@ -#namespace = tgp_dynastic_cycle_events -# -#################################################################################### -### By Veronica Pazos -### tgp_dynastic_cycle_events.0001 - Tilt the scales towards Advancement -### tgp_dynastic_cycle_events.0010 - Disciple has a mental breakdown in Instability -### tgp_dynastic_cycle_events.0020 - Rowdy peasants steal food during Instability -### tgp_dynastic_cycle_events.0030 - In this time of Expansion you should become a Military Governor -### tgp_dynastic_cycle_events.0040 - Steward is interested in the Silk Road -### tgp_dynastic_cycle_events.0050 - Debate the Favoured Movement and get ahead of them -#################################################################################### -# -## Tilt the scales towards Advancement -#scripted_trigger tgp_dynastic_cycle_events_0001_valid_servant = { -# is_available_ai_adult = yes -# is_lowborn = yes -# has_any_court_position = no -# is_councillor = no -#} -# -#tgp_dynastic_cycle_events.0001 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0001.t -# desc = tgp_dynastic_cycle_events.0001.desc -# left_portrait = { -# character = root -# animation = thinking -# camera = camera_event_right_fully_away -# } -# right_portrait = { -# character = scope:servant -# animation = serving_tray -# camera = camera_event_right_to_the_right -# } -# theme = dynastic_cycle -# override_background = { reference = garden } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# NOT = { -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_stability_advancement -# } -# } -# } -# -# immediate = { -# situation:dynastic_cycle = { save_scope_as = my_situation } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# random_courtier = { -# limit = { tgp_dynastic_cycle_events_0001_valid_servant = yes } -# save_scope_as = servant -# } -# if = { -# limit = { NOT = { exists = scope:servant } } -# hidden_effect_new_object = { -# create_character = { -# template = servant_character -# dynasty = none -# location = root.location -# culture = root.location.culture -# faith = root.location.faith -# gender_female_chance = 50 -# save_scope_as = servant -# } -# add_courtier = scope:servant -# scope:servant = { assign_quirk_effect = yes } -# } -# } -# if = { -# limit = { -# any_relation = { -# type = potential_friend -# is_available_ai_adult = yes -# count >= 1 -# } -# } -# random_relation = { -# type = potential_friend -# limit = { is_available_ai_adult = yes } -# save_scope_as = potential_friend -# } -# } -# else_if = { -# limit = { -# any_relation = { -# type = friend -# is_available_ai_adult = yes -# count >= 1 -# } -# } -# random_relation = { -# type = friend -# limit = { is_available_ai_adult = yes } -# save_scope_as = friend -# } -# } -# } -# -# option = { # -# name = tgp_dynastic_cycle_events.0001.aa -# trigger = { -# top_participant_group:dynastic_cycle ?= { -# participant_group_type = advancement_movement -# } -# } -# add_internal_flag = special -# reason = movement -# custom_tooltip = event_increase_movement_power_minor_effect_tooltip -# scope:my_movement = { -# event_change_movement_power_effect = { -# VALUE = event_increase_movement_power_minor_value -# } -# } -# situation:dynastic_cycle ?= { -# if = { -# limit = { -# situation_top_has_catalyst = catalyst_event_advancement_medium_progress -# } -# trigger_situation_catalyst = { -# catalyst = catalyst_event_advancement_medium_progress -# character = root -# } -# } -# } -# stress_impact = { -# ambitious = medium_stress_impact_loss -# content = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = ambitious -# factor = 2 -# } -# modifier = { -# has_trait = content -# factor = 0 -# } -# } -# } -# -# option = { # Focus on friendos -# name = tgp_dynastic_cycle_events.0001.a -# if = { -# limit = { -# exists = scope:potential_friend -# } -# custom_tooltip = tgp_dynastic_cycle_events.0001.a.potential_friend -# set_relation_friend = { -# target = scope:potential_friend -# reason = friend_together_in_preparation -# } -# } -# else_if = { -# limit = { -# exists = scope:friend -# } -# custom_tooltip = tgp_dynastic_cycle_events.0001.a.potential_friend -# change_influence = major_influence_gain -# scope:friend = { change_influence = major_influence_gain } -# } -# else = { change_influence = medium_influence_gain } -# stress_impact = { -# gregarious = medium_stress_impact_loss -# callous = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = gregarious -# factor = 2 -# } -# modifier = { -# has_trait = callous -# factor = 0 -# } -# } -# } -# -# option = { # Why wait? -# name = tgp_dynastic_cycle_events.0001.b -# add_character_modifier = { -# modifier = tgp_advancement_focus_modifier -# years = 20 -# } -# stress_impact = { -# impatient = medium_stress_impact_loss -# patient = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = deceitful -# factor = 2 -# } -# modifier = { -# has_trait = honest -# factor = 0 -# } -# } -# } -# -# option = { # We must focus on NOW -# name = tgp_dynastic_cycle_events.0001.c -# stress_impact = { -# base = medium_stress_impact_loss -# } -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Disciple has a mental breakdown in Instability -#scripted_trigger tgp_dynastic_cycle_events_0010_valid_disciple = { -# is_available_ai_adult = yes -# has_personality_dominant_trigger = no -# has_a_stress_coping_trait_trigger = no -#} -# -#tgp_dynastic_cycle_events.0010 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0010.t -# desc = tgp_dynastic_cycle_events.0010.desc -# left_portrait = { -# character = root -# triggered_animation = { -# trigger = { -# has_personality_malicious_trigger = yes -# } -# animation = dismissal -# } -# animation = worry -# } -# right_portrait = { -# character = scope:disciple -# animation = stress -# } -# theme = dynastic_cycle -# override_background = { reference = relaxing_room } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_instability -# } -# any_relation = { -# type = disciple -# tgp_dynastic_cycle_events_0010_valid_disciple = yes -# } -# } -# -# immediate = { -# situation:dynastic_cycle = { save_scope_as = my_situation } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# random_relation = { -# type = disciple -# limit = { tgp_dynastic_cycle_events_0010_valid_disciple = yes } -# weight = { -# base = 1 -# modifier = { -# has_personality_emotional_trigger = yes -# add = 10 -# } -# modifier = { -# age <= 35 -# add = 5 -# } -# } -# save_scope_as = disciple -# } -# random_list = { -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:drunkard -# } -# } -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:flagellant -# } -# } -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:contrite -# } -# } -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:irritable -# } -# } -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:rakish -# } -# } -# 1 = { -# set_variable = { -# name = stress_trait -# value = flag:hashishiyah -# } -# } -# } -# } -# -# option = { # You gotta straighten up -# name = tgp_dynastic_cycle_events.0010.a -# switch = { -# trigger = var:stress_trait -# flag:drunkard = { -# scope:disciple = { add_trait = drunkard } -# } -# flag:flagellant = { -# scope:disciple = { add_trait = flagellant } -# } -# flag:contrite = { -# scope:disciple = { add_trait = contrite } -# } -# flag:rakish = { -# scope:disciple = { add_trait = rakish } -# } -# flag:hashishiyah = { -# scope:disciple = { add_trait = hashishiyah } -# } -# } -# scope:disciple = { add_stress = major_stress_impact_gain } -# change_influence = medium_influence_gain -# stress_impact = { -# callous = medium_stress_impact_loss -# compassionate = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = callous -# factor = 2 -# } -# modifier = { -# has_trait = compassionate -# factor = 0 -# } -# } -# } -# -# option = { # Comfort them -# name = tgp_dynastic_cycle_events.0010.b -# if = { -# limit = { -# can_add_hook = { -# type = favor_hook -# target = scope:disciple -# } -# } -# add_hook = { -# type = favor_hook -# target = scope:disciple -# } -# } -# scope:disciple = { add_stress = medium_stress_impact_loss } -# stress_impact = { -# compassionate = major_stress_impact_loss -# callous = major_stress_impact_gain -# sadistic = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# OR = { -# has_trait = callous -# has_trait = sadistic -# } -# factor = 0 -# } -# modifier = { -# has_trait = compassionate -# factor = 2 -# } -# } -# } -# -# option = { # Instability is actually good -# name = tgp_dynastic_cycle_events.0010.c -# gain_appropriate_lifestyle_medium_xp_effect = yes -# scope:disciple = { -# gain_appropriate_lifestyle_medium_xp_effect = yes -# add_stress = medium_stress_impact_gain -# } -# stress_impact = { -# content = medium_stress_impact_loss -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = content -# factor = 2 -# } -# } -# } -#} -# -## Rowdy peasants steal food during instability -#tgp_dynastic_cycle_events.0020 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0020.t -# desc = tgp_dynastic_cycle_events.0020.desc -# left_portrait = { -# character = root -# animation = japanese_war_fan -# camera = camera_event_very_left -# } -# right_portrait = { -# character = scope:marshal -# animation = relaxed_spear -# } -# theme = dynastic_cycle -# override_background = { reference = throne_room } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_instability -# } -# any_held_county = { -# county_control >= low_county_control -# } -# } -# -# immediate = { -# situation:dynastic_cycle = { save_scope_as = my_situation } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# if = { -# limit = { -# exists = cp:councillor_marshal -# cp:councillor_marshal = { is_available_healthy_ai_adult = yes } -# } -# cp:councillor_marshal = { save_scope_as = marshal } -# } -# else_if = { -# limit = { -# any_knight = { is_available_healthy_ai_adult = yes } -# } -# ordered_knight = { -# limit = { is_available_healthy_ai_adult = yes } -# order_by = martial -# save_scope_as = marshal -# } -# } -# else = { -# hidden_effect_new_object = { -# create_character = { -# template = knight -# dynasty = none -# location = root.location -# culture = root.location.culture -# faith = root.location.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = marshal -# } -# } -# } -# scope:marshal = { -# assign_quirk_effect = yes -# add_character_flag = need_military_outfit -# hidden_effect = { -# if = { -# limit = { -# NOR = { -# is_courtier_of = root -# is_vassal_of = root -# } -# -# } -# root = { add_courtier = prev } -# } -# } -# } -# random_held_county = { -# limit = { county_control >= low_county_control } -# change_county_control = major_county_control_loss -# save_scope_as = peasant_county -# } -# } -# -# option = { # Execute them -# name = tgp_dynastic_cycle_events.0020.a -# trigger = { -# has_focus = intrigue_intimidation_focus -# } -# reason = lifestyle_focus -# add_internal_flag = special -# add_dread = major_dread_gain -# scope:peasant_county = { -# add_county_modifier = { -# modifier = tgp_executed_peasants_county_modifier -# years = 10 -# } -# change_county_control = medium_county_control_gain -# } -# stress_impact = { -# callous = medium_stress_impact_loss -# compassionate = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = callous -# factor = 2 -# } -# modifier = { -# has_trait = compassionate -# factor = 0 -# } -# } -# } -# -# option = { # Pay money to make Increase County Control better -# name = tgp_dynastic_cycle_events.0020.b -# pay_treasury_or_gold = { -# target = scope:marshal -# value = major_treasury_or_gold_value -# } -# scope:peasant_county = { change_county_control = medium_county_control_gain } -# stress_impact = { -# greedy = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# OR = { -# has_trait = greedy -# treasury_or_gold <= massive_treasury_or_gold_value -# } -# factor = 0 -# } -# } -# } -# -# option = { # What can you do -# name = tgp_dynastic_cycle_events.0020.c -# stress_impact = { -# lazy = medium_stress_impact_loss -# diligent = medium_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = lazy -# factor = 2 -# } -# modifier = { -# has_trait = diligent -# factor = 0 -# } -# } -# } -#} -# -## In this time of Expansion you should become a Military Governor -#tgp_dynastic_cycle_events.0030 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0030.t -# desc = tgp_dynastic_cycle_events.0030.desc -# left_portrait = { -# character = root -# animation = frontend_center_idle -# camera = camera_event_very_left -# } -# right_portrait = { -# character = scope:marshal -# animation = celebrate_spear -# } -# theme = dynastic_cycle -# override_background = { reference = courtyard } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_stability_expansion -# } -# NOT = { has_trait_with_flag = military_province } # You are not a Military Governor -# } -# -# immediate = { -# situation:dynastic_cycle = { save_scope_as = my_situation } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# assign_quirk_effect = yes -# if = { -# limit = { -# exists = cp:councillor_marshal -# cp:councillor_marshal = { is_available_healthy_ai_adult = yes } -# } -# cp:councillor_marshal = { save_scope_as = marshal } -# } -# else_if = { -# limit = { -# any_knight = { is_available_healthy_ai_adult = yes } -# } -# ordered_knight = { -# limit = { is_available_healthy_ai_adult = yes } -# order_by = martial -# save_scope_as = marshal -# } -# } -# else = { -# hidden_effect_new_object = { -# create_character = { -# template = knight -# dynasty = none -# location = root.location -# culture = root.location.culture -# faith = root.location.faith -# gender_female_chance = root_soldier_female_chance -# save_scope_as = marshal -# } -# } -# } -# scope:marshal = { -# assign_quirk_effect = yes -# add_character_flag = need_military_outfit -# hidden_effect = { -# if = { -# limit = { NOT = { is_courtier_of = root } } -# root = { add_courtier = prev } -# } -# } -# } -# } -# -# option = { # Let's do it!!! -# name = tgp_dynastic_cycle_events.0030.a -# custom_tooltip = { -# text = change_to_military_career_desc -# set_variable = { -# name = appointment_trait_override -# value = trait:education_martial_1 -# } -# } -# add_martial_lifestyle_perk_points = 1 -# add_martial_lifestyle_xp = massive_lifestyle_xp -# stress_impact = { -# base = major_stress_impact_gain -# fickle = major_stress_impact_loss -# arbitrary = major_stress_impact_loss -# } -# ai_chance = { -# base = 100 -# modifier = { -# OR = { -# has_trait = fickle -# has_trait = arbitrary -# } -# factor = 2 -# } -# } -# } -# -# option = { # Thank you but no -# name = tgp_dynastic_cycle_events.0030.b -# custom_tooltip = { -# text = tgp_movement_events.0001.c.tt -# give_random_commander_trait_effect = yes -# } -# stress_impact = { -# diligent = major_stress_impact_loss -# lazy = major_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = lazy -# factor = 0 -# } -# modifier = { -# has_trait = diligent -# factor = 0 -# } -# } -# } -# -# option = { # I am good thanks -# name = tgp_dynastic_cycle_events.0030.c -# change_merit = medium_merit_gain -# stress_impact = { -# content = medium_stress_impact_loss -# lazy = medium_stress_impact_loss -# fickle = medium_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# OR = { -# has_trait = content -# has_trait = lazy -# } -# factor = 2 -# } -# modifier = { -# has_trait = fickle -# factor = 0 -# } -# } -# } -#} -# -## Steward is interested in the Silk Road -#tgp_dynastic_cycle_events.0040 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0040.t -# desc = tgp_dynastic_cycle_events.0040.desc -# left_portrait = { -# character = root -# animation = interested -# } -# right_portrait = { -# character = scope:steward -# animation = steward -# } -# theme = dynastic_cycle -# override_background = { reference = study } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# exists = cp:councillor_steward -# exists = situation:dynastic_cycle -# exists = situation:silk_road_situation -# culture = { culture_has_any_fascination = yes } -# } -# -# weight_multiplier = { -# base = 0.5 -# modifier = { -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_stability_advancement -# } -# add = 1.5 -# } -# modifier = { -# is_ai = yes -# factor = 0.2 -# } -# } -# -# immediate = { -# situation:dynastic_cycle = { save_scope_as = my_situation } -# situation:silk_road_situation = { save_scope_as = silk_road_situation } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# assign_quirk_effect = yes -# cp:councillor_steward = { -# assign_quirk_effect = yes -# save_scope_as = steward -# } -# } -# -# option = { # Special option if it's Advancement phase -# name = tgp_dynastic_cycle_events.0040.a -# trigger = { -# situation:dynastic_cycle ?= { -# situation_current_phase = situation_dynastic_cycle_phase_stability_advancement -# } -# } -# add_internal_flag = special -# reason = advancement_phase -# pay_treasury_or_gold = { -# target = scope:steward -# value = medium_treasury_or_gold_value -# } -# add_stewardship_lifestyle_xp = minor_lifestyle_xp -# add_character_modifier = { -# modifier = tgp_silk_road_advancement_modifier -# years = 15 -# } -# stress_impact = { -# greedy = medium_stress_impact_loss -# } -# ai_chance = { -# base = 50 -# modifier = { -# OR = { -# has_trait = greedy -# has_lifestyle = stewardship_lifestyle -# } -# factor = 2 -# } -# } -# } -# -# option = { # Invest! -# name = tgp_dynastic_cycle_events.0040.b -# pay_treasury_or_gold = { -# target = scope:steward -# value = medium_treasury_or_gold_value -# } -# culture = { add_fascination_progress = 2.5 } -# stress_impact = { -# avaricious = medium_stress_impact_loss -# } -# ai_chance = { -# base = 50 -# modifier = { -# has_trait = greedy -# treasury_or_gold <= major_treasury_or_gold_value -# factor = 0 -# } -# } -# } -# -# option = { # I am good thanks -# name = tgp_dynastic_cycle_events.0040.c -# -# stress_impact = { -# avaricious = medium_stress_impact_gain -# } -# ai_chance = { -# base = 200 -# modifier = { -# has_trait = greedy -# factor = 2 -# } -# modifier = { -# has_trait = avaricious -# factor = 0.5 -# } -# } -# } -#} -# -## Debate the Favoured Movement and get ahead of them -#tgp_dynastic_cycle_events.0050 = { -# type = character_event -# title = tgp_dynastic_cycle_events.0050.t -# desc = tgp_dynastic_cycle_events.0050.desc -# left_portrait = { -# character = root -# animation = disapproval -# } -# theme = dynastic_cycle -# override_background = { reference = study } -# cooldown = { years = 10 } -# -# trigger = { -# is_available_adult = yes -# has_tgp_dlc_trigger = yes -# government_has_flag = government_is_celestial -# is_any_movement_member_not_undecided = yes # You are part of a Movement -# situation:dynastic_cycle ?= { # You are not the Favoured Movement -# any_participant_group = { -# exists = var:movement_favored -# NOT = { participant_group_has_character = root } -# } -# } -# NOT = { has_variable = tgp_debate_discount_var } -# } -# -# weight_multiplier = { -# base = 1 -# modifier = { -# is_any_movement_leader = yes -# add = 1 -# } -# } -# -# immediate = { -# situation:dynastic_cycle = { -# save_scope_as = my_situation -# random_participant_group = { -# limit = { -# has_variable = movement_favored -# } -# save_scope_as = favored_movement -# } -# } -# top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } -# top_liege = { save_scope_as = top_liege } -# } -# -# option = { # Get discount to Debate -# name = tgp_dynastic_cycle_events.0050.a -# custom_tooltip = { -# text = tgp_debate_discount_var_tt -# set_variable = { -# name = tgp_debate_discount_var -# years = 5 -# } -# } -# stress_impact = { -# greedy = medium_stress_impact_loss -# } -# ai_chance = { -# base = 50 -# modifier = { -# is_any_movement_leader = yes -# add = 50 -# } -# } -# } -# -# option = { # Just get some Movement Power -# name = tgp_dynastic_cycle_events.0050.b -# custom_tooltip = event_increase_movement_power_medium_effect_tooltip -# scope:my_movement = { -# event_change_movement_power_effect = { -# VALUE = event_increase_movement_power_medium_value -# } -# } -# stress_impact = { -# arrogant = medium_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = arrogant -# factor = 0 -# } -# } -# } -# -# option = { # Focus on yourself -# name = tgp_dynastic_cycle_events.0050.c -# change_influence = medium_influence_gain -# stress_impact = { -# humble = medium_stress_impact_gain -# } -# ai_chance = { -# base = 100 -# modifier = { -# has_trait = humble -# factor = 0 -# } -# } -# } -#} -# \ No newline at end of file +namespace = tgp_dynastic_cycle_events + +################################################################################### +## By Veronica Pazos +## tgp_dynastic_cycle_events.0001 - Tilt the scales towards Advancement +## tgp_dynastic_cycle_events.0010 - Disciple has a mental breakdown in Instability +## tgp_dynastic_cycle_events.0020 - Rowdy peasants steal food during Instability +## tgp_dynastic_cycle_events.0030 - In this time of Expansion you should become a Military Governor +## tgp_dynastic_cycle_events.0040 - Steward is interested in the Silk Road +## tgp_dynastic_cycle_events.0050 - Debate the Favoured Movement and get ahead of them +################################################################################### + +# Tilt the scales towards Advancement +scripted_trigger tgp_dynastic_cycle_events_0001_valid_servant = { + is_available_ai_adult = yes + is_lowborn = yes + has_any_court_position = no + is_councillor = no +} + +tgp_dynastic_cycle_events.0001 = { + type = character_event + title = tgp_dynastic_cycle_events.0001.t + desc = tgp_dynastic_cycle_events.0001.desc + left_portrait = { + character = root + animation = thinking + camera = camera_event_right_fully_away + } + right_portrait = { + character = scope:servant + animation = serving_tray + camera = camera_event_right_to_the_right + } + theme = dynastic_cycle + override_background = { reference = garden } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + NOT = { + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_stability_advancement + } + } + } + + immediate = { + situation:dynastic_cycle = { save_scope_as = my_situation } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + random_courtier = { + limit = { tgp_dynastic_cycle_events_0001_valid_servant = yes } + save_scope_as = servant + } + if = { + limit = { NOT = { exists = scope:servant } } + hidden_effect_new_object = { + create_character = { + template = servant_character + dynasty = none + location = root.location + culture = root.location.culture + faith = root.location.faith + gender_female_chance = 50 + save_scope_as = servant + } + add_courtier = scope:servant + scope:servant = { assign_quirk_effect = yes } + } + } + if = { + limit = { + any_relation = { + type = potential_friend + is_available_ai_adult = yes + count >= 1 + } + } + random_relation = { + type = potential_friend + limit = { is_available_ai_adult = yes } + save_scope_as = potential_friend + } + } + else_if = { + limit = { + any_relation = { + type = friend + is_available_ai_adult = yes + count >= 1 + } + } + random_relation = { + type = friend + limit = { is_available_ai_adult = yes } + save_scope_as = friend + } + } + } + + option = { # + name = tgp_dynastic_cycle_events.0001.aa + trigger = { + top_participant_group:dynastic_cycle ?= { + participant_group_type = advancement_movement + } + } + add_internal_flag = special + reason = movement + custom_tooltip = event_increase_movement_power_minor_effect_tooltip + scope:my_movement = { + event_change_movement_power_effect = { + VALUE = event_increase_movement_power_minor_value + } + } + situation:dynastic_cycle ?= { + if = { + limit = { + situation_top_has_catalyst = catalyst_event_advancement_medium_progress + } + trigger_situation_catalyst = { + catalyst = catalyst_event_advancement_medium_progress + character = root + } + } + } + stress_impact = { + ambitious = medium_stress_impact_loss + content = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = ambitious + factor = 2 + } + modifier = { + has_trait = content + factor = 0 + } + } + } + + option = { # Focus on friendos + name = tgp_dynastic_cycle_events.0001.a + if = { + limit = { + exists = scope:potential_friend + } + custom_tooltip = tgp_dynastic_cycle_events.0001.a.potential_friend + set_relation_friend = { + target = scope:potential_friend + reason = friend_together_in_preparation + } + } + else_if = { + limit = { + exists = scope:friend + } + custom_tooltip = tgp_dynastic_cycle_events.0001.a.potential_friend + change_influence = major_influence_gain + scope:friend = { change_influence = major_influence_gain } + } + else = { change_influence = medium_influence_gain } + stress_impact = { + gregarious = medium_stress_impact_loss + callous = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = gregarious + factor = 2 + } + modifier = { + has_trait = callous + factor = 0 + } + } + } + + option = { # Why wait? + name = tgp_dynastic_cycle_events.0001.b + add_character_modifier = { + modifier = tgp_advancement_focus_modifier + years = 20 + } + stress_impact = { + impatient = medium_stress_impact_loss + patient = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = deceitful + factor = 2 + } + modifier = { + has_trait = honest + factor = 0 + } + } + } + + option = { # We must focus on NOW + name = tgp_dynastic_cycle_events.0001.c + stress_impact = { + base = medium_stress_impact_loss + } + ai_chance = { + base = 100 + } + } +} + +# Disciple has a mental breakdown in Instability +scripted_trigger tgp_dynastic_cycle_events_0010_valid_disciple = { + is_available_ai_adult = yes + has_personality_dominant_trigger = no + has_a_stress_coping_trait_trigger = no +} + +tgp_dynastic_cycle_events.0010 = { + type = character_event + title = tgp_dynastic_cycle_events.0010.t + desc = tgp_dynastic_cycle_events.0010.desc + left_portrait = { + character = root + triggered_animation = { + trigger = { + has_personality_malicious_trigger = yes + } + animation = dismissal + } + animation = worry + } + right_portrait = { + character = scope:disciple + animation = stress + } + theme = dynastic_cycle + override_background = { reference = relaxing_room } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_instability + } + any_relation = { + type = disciple + tgp_dynastic_cycle_events_0010_valid_disciple = yes + } + } + + immediate = { + situation:dynastic_cycle = { save_scope_as = my_situation } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + random_relation = { + type = disciple + limit = { tgp_dynastic_cycle_events_0010_valid_disciple = yes } + weight = { + base = 1 + modifier = { + has_personality_emotional_trigger = yes + add = 10 + } + modifier = { + age <= 35 + add = 5 + } + } + save_scope_as = disciple + } + random_list = { + 1 = { + set_variable = { + name = stress_trait + value = flag:drunkard + } + } + 1 = { + set_variable = { + name = stress_trait + value = flag:flagellant + } + } + 1 = { + set_variable = { + name = stress_trait + value = flag:contrite + } + } + 1 = { + set_variable = { + name = stress_trait + value = flag:irritable + } + } + 1 = { + set_variable = { + name = stress_trait + value = flag:rakish + } + } + 1 = { + set_variable = { + name = stress_trait + value = flag:hashishiyah + } + } + } + } + + option = { # You gotta straighten up + name = tgp_dynastic_cycle_events.0010.a + switch = { + trigger = var:stress_trait + flag:drunkard = { + scope:disciple = { add_trait = drunkard } + } + flag:flagellant = { + scope:disciple = { add_trait = flagellant } + } + flag:contrite = { + scope:disciple = { add_trait = contrite } + } + flag:rakish = { + scope:disciple = { add_trait = rakish } + } + flag:hashishiyah = { + scope:disciple = { add_trait = hashishiyah } + } + } + scope:disciple = { add_stress = major_stress_impact_gain } + change_influence = medium_influence_gain + stress_impact = { + callous = medium_stress_impact_loss + compassionate = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = callous + factor = 2 + } + modifier = { + has_trait = compassionate + factor = 0 + } + } + } + + option = { # Comfort them + name = tgp_dynastic_cycle_events.0010.b + if = { + limit = { + can_add_hook = { + type = favor_hook + target = scope:disciple + } + } + add_hook = { + type = favor_hook + target = scope:disciple + } + } + scope:disciple = { add_stress = medium_stress_impact_loss } + stress_impact = { + compassionate = major_stress_impact_loss + callous = major_stress_impact_gain + sadistic = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + OR = { + has_trait = callous + has_trait = sadistic + } + factor = 0 + } + modifier = { + has_trait = compassionate + factor = 2 + } + } + } + + option = { # Instability is actually good + name = tgp_dynastic_cycle_events.0010.c + gain_appropriate_lifestyle_medium_xp_effect = yes + scope:disciple = { + gain_appropriate_lifestyle_medium_xp_effect = yes + add_stress = medium_stress_impact_gain + } + stress_impact = { + content = medium_stress_impact_loss + } + ai_chance = { + base = 100 + modifier = { + has_trait = content + factor = 2 + } + } + } +} + +# Rowdy peasants steal food during instability +tgp_dynastic_cycle_events.0020 = { + type = character_event + title = tgp_dynastic_cycle_events.0020.t + desc = tgp_dynastic_cycle_events.0020.desc + left_portrait = { + character = root + animation = japanese_war_fan + camera = camera_event_very_left + } + right_portrait = { + character = scope:marshal + animation = relaxed_spear + } + theme = dynastic_cycle + override_background = { reference = throne_room } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_instability + } + any_held_county = { + county_control >= low_county_control + } + } + + immediate = { + situation:dynastic_cycle = { save_scope_as = my_situation } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + if = { + limit = { + exists = cp:councillor_marshal + cp:councillor_marshal = { is_available_healthy_ai_adult = yes } + } + cp:councillor_marshal = { save_scope_as = marshal } + } + else_if = { + limit = { + any_knight = { is_available_healthy_ai_adult = yes } + } + ordered_knight = { + limit = { is_available_healthy_ai_adult = yes } + order_by = martial + save_scope_as = marshal + } + } + else = { + hidden_effect_new_object = { + create_character = { + template = knight + dynasty = none + location = root.location + culture = root.location.culture + faith = root.location.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = marshal + } + } + } + scope:marshal = { + assign_quirk_effect = yes + add_character_flag = need_military_outfit + hidden_effect = { + if = { + limit = { + NOR = { + is_courtier_of = root + is_vassal_of = root + } + + } + root = { add_courtier = prev } + } + } + } + random_held_county = { + limit = { county_control >= low_county_control } + change_county_control = major_county_control_loss + save_scope_as = peasant_county + } + } + + option = { # Execute them + name = tgp_dynastic_cycle_events.0020.a + trigger = { + has_focus = intrigue_intimidation_focus + } + reason = lifestyle_focus + add_internal_flag = special + add_dread = major_dread_gain + scope:peasant_county = { + add_county_modifier = { + modifier = tgp_executed_peasants_county_modifier + years = 10 + } + change_county_control = medium_county_control_gain + } + stress_impact = { + callous = medium_stress_impact_loss + compassionate = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = callous + factor = 2 + } + modifier = { + has_trait = compassionate + factor = 0 + } + } + } + + option = { # Pay money to make Increase County Control better + name = tgp_dynastic_cycle_events.0020.b + pay_treasury_or_gold = { + target = scope:marshal + value = major_treasury_or_gold_value + } + scope:peasant_county = { change_county_control = medium_county_control_gain } + stress_impact = { + greedy = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + OR = { + has_trait = greedy + treasury_or_gold <= massive_treasury_or_gold_value + } + factor = 0 + } + } + } + + option = { # What can you do + name = tgp_dynastic_cycle_events.0020.c + stress_impact = { + lazy = medium_stress_impact_loss + diligent = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = lazy + factor = 2 + } + modifier = { + has_trait = diligent + factor = 0 + } + } + } +} + +# In this time of Expansion you should become a Military Governor +tgp_dynastic_cycle_events.0030 = { + type = character_event + title = tgp_dynastic_cycle_events.0030.t + desc = tgp_dynastic_cycle_events.0030.desc + left_portrait = { + character = root + animation = frontend_center_idle + camera = camera_event_very_left + } + right_portrait = { + character = scope:marshal + animation = celebrate_spear + } + theme = dynastic_cycle + override_background = { reference = courtyard } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_stability_expansion + } + NOT = { has_trait_with_flag = military_province } # You are not a Military Governor + } + + immediate = { + situation:dynastic_cycle = { save_scope_as = my_situation } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + assign_quirk_effect = yes + if = { + limit = { + exists = cp:councillor_marshal + cp:councillor_marshal = { is_available_healthy_ai_adult = yes } + } + cp:councillor_marshal = { save_scope_as = marshal } + } + else_if = { + limit = { + any_knight = { is_available_healthy_ai_adult = yes } + } + ordered_knight = { + limit = { is_available_healthy_ai_adult = yes } + order_by = martial + save_scope_as = marshal + } + } + else = { + hidden_effect_new_object = { + create_character = { + template = knight + dynasty = none + location = root.location + culture = root.location.culture + faith = root.location.faith + gender_female_chance = root_soldier_female_chance + save_scope_as = marshal + } + } + } + scope:marshal = { + assign_quirk_effect = yes + add_character_flag = need_military_outfit + hidden_effect = { + if = { + limit = { NOT = { is_courtier_of = root } } + root = { add_courtier = prev } + } + } + } + } + + option = { # Let's do it!!! + name = tgp_dynastic_cycle_events.0030.a + custom_tooltip = { + text = change_to_military_career_desc + set_variable = { + name = appointment_trait_override + value = trait:education_martial_1 + } + } + add_martial_lifestyle_perk_points = 1 + add_martial_lifestyle_xp = massive_lifestyle_xp + stress_impact = { + base = major_stress_impact_gain + fickle = major_stress_impact_loss + arbitrary = major_stress_impact_loss + } + ai_chance = { + base = 100 + modifier = { + OR = { + has_trait = fickle + has_trait = arbitrary + } + factor = 2 + } + } + } + + option = { # Thank you but no + name = tgp_dynastic_cycle_events.0030.b + custom_tooltip = { + text = tgp_movement_events.0001.c.tt + give_random_commander_trait_effect = yes + } + stress_impact = { + diligent = major_stress_impact_loss + lazy = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = lazy + factor = 0 + } + modifier = { + has_trait = diligent + factor = 0 + } + } + } + + option = { # I am good thanks + name = tgp_dynastic_cycle_events.0030.c + change_merit = medium_merit_gain + stress_impact = { + content = medium_stress_impact_loss + lazy = medium_stress_impact_loss + fickle = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + OR = { + has_trait = content + has_trait = lazy + } + factor = 2 + } + modifier = { + has_trait = fickle + factor = 0 + } + } + } +} + +# Steward is interested in the Silk Road +tgp_dynastic_cycle_events.0040 = { + type = character_event + title = tgp_dynastic_cycle_events.0040.t + desc = tgp_dynastic_cycle_events.0040.desc + left_portrait = { + character = root + animation = interested + } + right_portrait = { + character = scope:steward + animation = steward + } + theme = dynastic_cycle + override_background = { reference = study } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + exists = cp:councillor_steward + exists = situation:dynastic_cycle + exists = situation:silk_road_situation + culture = { culture_has_any_fascination = yes } + } + + weight_multiplier = { + base = 0.5 + modifier = { + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_stability_advancement + } + add = 1.5 + } + modifier = { + is_ai = yes + factor = 0.2 + } + } + + immediate = { + situation:dynastic_cycle = { save_scope_as = my_situation } + situation:silk_road_situation = { save_scope_as = silk_road_situation } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + assign_quirk_effect = yes + cp:councillor_steward = { + assign_quirk_effect = yes + save_scope_as = steward + } + } + + option = { # Special option if it's Advancement phase + name = tgp_dynastic_cycle_events.0040.a + trigger = { + situation:dynastic_cycle ?= { + situation_current_phase = situation_dynastic_cycle_phase_stability_advancement + } + } + add_internal_flag = special + reason = advancement_phase + pay_treasury_or_gold = { + target = scope:steward + value = medium_treasury_or_gold_value + } + add_stewardship_lifestyle_xp = minor_lifestyle_xp + add_character_modifier = { + modifier = tgp_silk_road_advancement_modifier + years = 15 + } + stress_impact = { + greedy = medium_stress_impact_loss + } + ai_chance = { + base = 50 + modifier = { + OR = { + has_trait = greedy + has_lifestyle = stewardship_lifestyle + } + factor = 2 + } + } + } + + option = { # Invest! + name = tgp_dynastic_cycle_events.0040.b + pay_treasury_or_gold = { + target = scope:steward + value = medium_treasury_or_gold_value + } + culture = { add_fascination_progress = 2.5 } + stress_impact = { + avaricious = medium_stress_impact_loss + } + ai_chance = { + base = 50 + modifier = { + has_trait = greedy + treasury_or_gold <= major_treasury_or_gold_value + factor = 0 + } + } + } + + option = { # I am good thanks + name = tgp_dynastic_cycle_events.0040.c + + stress_impact = { + avaricious = medium_stress_impact_gain + } + ai_chance = { + base = 200 + modifier = { + has_trait = greedy + factor = 2 + } + modifier = { + has_trait = avaricious + factor = 0.5 + } + } + } +} + +# Debate the Favoured Movement and get ahead of them +tgp_dynastic_cycle_events.0050 = { + type = character_event + title = tgp_dynastic_cycle_events.0050.t + desc = tgp_dynastic_cycle_events.0050.desc + left_portrait = { + character = root + animation = disapproval + } + theme = dynastic_cycle + override_background = { reference = study } + cooldown = { years = 10 } + + trigger = { + is_available_adult = yes + has_tgp_dlc_trigger = yes + government_has_flag = government_is_celestial + is_any_movement_member_not_undecided = yes # You are part of a Movement + situation:dynastic_cycle ?= { # You are not the Favoured Movement + any_participant_group = { + exists = var:movement_favored + NOT = { participant_group_has_character = root } + } + } + NOT = { has_variable = tgp_debate_discount_var } + } + + weight_multiplier = { + base = 1 + modifier = { + is_any_movement_leader = yes + add = 1 + } + } + + immediate = { + situation:dynastic_cycle = { + save_scope_as = my_situation + random_participant_group = { + limit = { + has_variable = movement_favored + } + save_scope_as = favored_movement + } + } + top_participant_group:dynastic_cycle ?= { save_scope_as = my_movement } + top_liege = { save_scope_as = top_liege } + } + + option = { # Get discount to Debate + name = tgp_dynastic_cycle_events.0050.a + custom_tooltip = { + text = tgp_debate_discount_var_tt + set_variable = { + name = tgp_debate_discount_var + years = 5 + } + } + stress_impact = { + greedy = medium_stress_impact_loss + } + ai_chance = { + base = 50 + modifier = { + is_any_movement_leader = yes + add = 50 + } + } + } + + option = { # Just get some Movement Power + name = tgp_dynastic_cycle_events.0050.b + custom_tooltip = event_increase_movement_power_medium_effect_tooltip + scope:my_movement = { + event_change_movement_power_effect = { + VALUE = event_increase_movement_power_medium_value + } + } + stress_impact = { + arrogant = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = arrogant + factor = 0 + } + } + } + + option = { # Focus on yourself + name = tgp_dynastic_cycle_events.0050.c + change_influence = medium_influence_gain + stress_impact = { + humble = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = humble + factor = 0 + } + } + } +} diff --git a/events/dlc/tgp/tgp_east_asia_interaction_events.txt b/events/dlc/tgp/tgp_east_asia_interaction_events.txt index 1caf7886..823a2aab 100644 --- a/events/dlc/tgp/tgp_east_asia_interaction_events.txt +++ b/events/dlc/tgp/tgp_east_asia_interaction_events.txt @@ -975,25 +975,25 @@ tgp_east_asia_interaction_events.2000 = { } } } -# if = { -# limit = { -# exists = top_participant_group:dynastic_cycle -# any_character_situation = { -# situation_type = dynastic_cycle -# } -# } -# situation:dynastic_cycle ?= { -# if = { -# limit = { -# situation_top_has_catalyst = catalyst_tyrannical_extinguish_noble_family -# } -# trigger_situation_catalyst = { -# catalyst = catalyst_tyrannical_extinguish_noble_family -# character = root -# } -# } -# } -# } + if = { + limit = { + exists = top_participant_group:dynastic_cycle + any_character_situation = { + situation_type = dynastic_cycle + } + } + situation:dynastic_cycle ?= { + if = { + limit = { + situation_top_has_catalyst = catalyst_tyrannical_extinguish_noble_family + } + trigger_situation_catalyst = { + catalyst = catalyst_tyrannical_extinguish_noble_family + character = root + } + } + } + } } } hidden_effect = { diff --git a/events/dlc/tgp/tgp_mandala_task_contract_events.txt b/events/dlc/tgp/tgp_mandala_task_contract_events.txt index ece9fe8d..e89d3836 100644 --- a/events/dlc/tgp/tgp_mandala_task_contract_events.txt +++ b/events/dlc/tgp/tgp_mandala_task_contract_events.txt @@ -6461,19 +6461,19 @@ tgp_east_asia_mandala_task_contract_events.4100 = { 50 = { religion:buddhism_religion = { random_faith = { -# limit = { -# NOR = { -# this = faith:dhyana -# this = faith:pundarika -# this = faith:vinaya -# this = faith:avatamsaka -# this = faith:sukhavati -# this = faith:acharya -# this = faith:mantrayana -# this = faith:maitreya -# this = faith:yogacara -# } -# } + limit = { + NOR = { + this = faith:dhyana + this = faith:pundarika + this = faith:vinaya + this = faith:avatamsaka + this = faith:sukhavati + this = faith:acharya + this = faith:mantrayana + this = faith:maitreya + this = faith:yogacara + } + } save_scope_as = character_faith } } @@ -8680,20 +8680,20 @@ tgp_east_asia_mandala_task_contract_events.5000 = { 50 = { religion:buddhism_religion = { random_faith = { -# limit = { -# NOR = { -# this = root.faith -# this = faith:dhyana -# this = faith:pundarika -# this = faith:vinaya -# this = faith:avatamsaka -# this = faith:sukhavati -# this = faith:acharya -# this = faith:mantrayana -# this = faith:maitreya -# this = faith:yogacara -# } -# } + limit = { + NOR = { + this = root.faith + this = faith:dhyana + this = faith:pundarika + this = faith:vinaya + this = faith:avatamsaka + this = faith:sukhavati + this = faith:acharya + this = faith:mantrayana + this = faith:maitreya + this = faith:yogacara + } + } save_scope_as = character_faith } } diff --git a/events/mpo_misc.txt b/events/mpo_misc.txt index fd4a59b9..c5c4ce4a 100644 --- a/events/mpo_misc.txt +++ b/events/mpo_misc.txt @@ -252,15 +252,15 @@ mpo_misc.0001 = { } leave_behind_heritage_culture_effect = { CULTURE = culture:bolghar } } -# # Hungary: Magyar Heritage (Mogyer) -# else_if = { -# limit = { -# scope:old_capital_county.title_province = { -# geographical_region = custom_hungary -# } -# } -# leave_behind_heritage_culture_effect = { CULTURE = culture:mogyer } -# } + # Hungary: Magyar Heritage (Mogyer) + else_if = { + limit = { + scope:old_capital_county.title_province = { + geographical_region = custom_hungary + } + } + leave_behind_heritage_culture_effect = { CULTURE = culture:mogyer } + } # Tarim Basin: Turkic Heritage (Uyghur) else_if = { limit = { diff --git a/events/religion_events/false_conversion_events.txt b/events/religion_events/false_conversion_events.txt index 9d0c6e11..799ba9ab 100644 --- a/events/religion_events/false_conversion_events.txt +++ b/events/religion_events/false_conversion_events.txt @@ -172,47 +172,47 @@ false_conversion.0020 = { right_icon = root } } -# # Fp3 Struggle Catalyst -# if = { -# limit = { -# highest_held_title_tier >= tier_county -# faith.religion = religion:islam_religion -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_revealed_secret_faith_islam -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# phase_has_catalyst = catalyst_revealed_secret_faith_islam -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_revealed_secret_faith_islam -# character = root -# } -# } -# } -# else_if = { -# limit = { -# highest_held_title_tier >= tier_county -# NOT = { faith.religion = religion:islam_religion } -# any_character_struggle = { -# involvement = involved -# phase_has_catalyst = catalyst_revealed_secret_faith_non_islam -# } -# } -# every_character_struggle = { -# involvement = involved -# limit = { -# phase_has_catalyst = catalyst_revealed_secret_faith_non_islam -# } -# activate_struggle_catalyst = { -# catalyst = catalyst_revealed_secret_faith_non_islam -# character = root -# } -# } -# } + # Fp3 Struggle Catalyst + if = { + limit = { + highest_held_title_tier >= tier_county + faith.religion = religion:islam_religion + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_revealed_secret_faith_islam + } + } + every_character_struggle = { + involvement = involved + limit = { + phase_has_catalyst = catalyst_revealed_secret_faith_islam + } + activate_struggle_catalyst = { + catalyst = catalyst_revealed_secret_faith_islam + character = root + } + } + } + else_if = { + limit = { + highest_held_title_tier >= tier_county + NOT = { faith.religion = religion:islam_religion } + any_character_struggle = { + involvement = involved + phase_has_catalyst = catalyst_revealed_secret_faith_non_islam + } + } + every_character_struggle = { + involvement = involved + limit = { + phase_has_catalyst = catalyst_revealed_secret_faith_non_islam + } + activate_struggle_catalyst = { + catalyst = catalyst_revealed_secret_faith_non_islam + character = root + } + } + } stress_impact = { zealous = medium_stress_impact_gain #Damn it, I was passionate about my openly-practiced faith! diff --git a/events/scheme_events/sway_scheme/sway_outcome_events.txt b/events/scheme_events/sway_scheme/sway_outcome_events.txt index c361fe2c..92f5f051 100644 --- a/events/scheme_events/sway_scheme/sway_outcome_events.txt +++ b/events/scheme_events/sway_scheme/sway_outcome_events.txt @@ -25,26 +25,26 @@ sway_outcome.0001 = { is_alive = yes scope:owner = { is_alive = yes } } -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = sway_opinion_increase_per_success -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = sway_opinion_increase_per_success + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = sway_opinion_increase_per_success } -# } + } scope:owner = { if = { limit = { @@ -141,26 +141,26 @@ sway_outcome.1001 = { add_prestige = minor_prestige_gain scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 50 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 50 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = 50 } -# } + } scope:owner = { if = { limit = { @@ -407,26 +407,26 @@ sway_outcome.1003 = { years = 5 } scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 30 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 30 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = 30 } -# } + } scope:owner = { if = { limit = { @@ -473,26 +473,26 @@ sway_outcome.1003 = { title = sway_outcome.1003.a.success scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 20 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 20 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = 20 } -# } + } } } } @@ -507,26 +507,26 @@ sway_outcome.1003 = { title = sway_outcome.1003.a.failure scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = -10 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = -10 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = -10 } -# } + } } } } @@ -553,25 +553,25 @@ sway_outcome.1003 = { title = sway_outcome.1003.a.success scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 15 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 15 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = 15 -# } + } } } } @@ -587,26 +587,26 @@ sway_outcome.1003 = { title = sway_outcome.1003.a.failure scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = -10 -# } -# } -# else = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = -10 + } + } + else = { add_opinion = { target = scope:owner modifier = scheme_sway_opinion opinion = -10 } -# } + } } } } @@ -624,188 +624,188 @@ sway_outcome.1003 = { } } -##A disloyal vassal can be compelled to reconsider during the Anarchy at Samarra Struggle -# #by Ola Jentzsch -# -#sway_outcome.1004 = { -# type = character_event -# title = sway_outcome.1004.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:target = { -# ai_vengefulness >= medium_positive_ai_value -# } -# } -# desc = sway_outcome_grudgingly.1004.desc -# } -# random_valid = { -# desc = sway_outcome_magnanimity.1004.desc -# desc = sway_outcome_blessed.1004.desc -# triggered_desc = { -# trigger = { -# scope:target = { -# NOR = { -# has_trait = stubborn -# has_trait = arrogant -# has_trait = august -# has_trait = callous -# } -# } -# } -# desc = sway_outcome_flattery.1004.desc -# } -# triggered_desc = { -# trigger = { -# AND = { -# scope:target = { -# AND = { -# OR = { -# has_religion = religion:buddhism_religion -# has_religion = religion:jainism_religion -# has_religion = religion:hinduism_religion -# } -# ai_zeal >= low_positive_ai_value -# } -# } -# scope:owner = { -# OR = { -# has_religion = religion:buddhism_religion -# has_religion = religion:jainism_religion -# has_religion = religion:hinduism_religion -# } -# } -# } -# } -# desc = sway_outcome_dharmic.1004.desc -# } -# triggered_desc = { -# trigger = { -# scope:target = { -# has_religion = religion:islam_religion -# ai_zeal >= low_positive_ai_value -# exists = faith.religious_head -# faith.religious_head = { this = root } -# } -# } -# desc = sway_outcome_caliph.1004.desc -# } -# } -# } -# } -# theme = sway_scheme -# left_portrait = { -# character = scope:owner -# triggered_animation = { -# trigger = { -# has_trait = callous -# has_trait = vengeful -# has_trait = sadistic -# } -# animation = personality_callous -# } -# animation = personality_bold -# } -# right_portrait = { -# character = scope:target -# animation = throne_room_bow_1 -# } -# -# trigger = { -# -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_scheme_more_powerful -# } -# -# scope:target = { -# AND = { -# is_vassal_of = scope:owner -# has_trait = disloyal -# } -# NOT = { -# has_relation_rival = scope:owner -# } -# } -# } -# -# weight_multiplier = { #more likely to trigger if the target likes you, or has a flexible personality -# base = 1 -# modifier = { -# add = 0.5 -# scope:target = { has_trait = fickle } #They're flexible -# } -# modifier = { -# add = 0.5 -# scope:target = { has_trait = trusting } #They trust you -# } -# modifier = { -# add = -0.7 -# scope:target = { has_trait = stubborn } #They are not prone to change their ways -# } -# modifier = { -# add = -0.3 -# scope:target = { has_trait = vengeful } #They are not soon to forgive slights, real or imagined -# } -# } -# -# immediate = { -# -# scope:target = { -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_opinion -# opinion = 20 -# } -# remove_trait = disloyal -# } -# scope:owner = { -# if = { -# limit = { -# faith = { has_doctrine_parameter = sway_scheme_piety } -# OR = { -# liege ?= scope:target -# target_is_vassal_or_below = scope:target -# } -# } -# add_piety = minor_piety_gain -# } -# } -# } -# -# option = { -# name = sway_outcome.1004.a -# -# trigger = { -# OR = { -# has_trait = vengeful -# has_trait = arrogant -# has_trait = paranoid -# } -# } -# -# scope:scheme = { -# end_scheme = yes -# } -# } -# -# option = { -# name = sway_outcome.1004.b -# -# trigger = { -# NOR = { -# has_trait = vengeful -# has_trait = arrogant -# has_trait = paranoid -# } -# } -# -# scope:scheme = { -# end_scheme = yes -# } -# } -#} +#A disloyal vassal can be compelled to reconsider during the Anarchy at Samarra Struggle + #by Ola Jentzsch + +sway_outcome.1004 = { + type = character_event + title = sway_outcome.1004.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:target = { + ai_vengefulness >= medium_positive_ai_value + } + } + desc = sway_outcome_grudgingly.1004.desc + } + random_valid = { + desc = sway_outcome_magnanimity.1004.desc + desc = sway_outcome_blessed.1004.desc + triggered_desc = { + trigger = { + scope:target = { + NOR = { + has_trait = stubborn + has_trait = arrogant + has_trait = august + has_trait = callous + } + } + } + desc = sway_outcome_flattery.1004.desc + } + triggered_desc = { + trigger = { + AND = { + scope:target = { + AND = { + OR = { + has_religion = religion:buddhism_religion + has_religion = religion:jainism_religion + has_religion = religion:hinduism_religion + } + ai_zeal >= low_positive_ai_value + } + } + scope:owner = { + OR = { + has_religion = religion:buddhism_religion + has_religion = religion:jainism_religion + has_religion = religion:hinduism_religion + } + } + } + } + desc = sway_outcome_dharmic.1004.desc + } + triggered_desc = { + trigger = { + scope:target = { + has_religion = religion:islam_religion + ai_zeal >= low_positive_ai_value + exists = faith.religious_head + faith.religious_head = { this = root } + } + } + desc = sway_outcome_caliph.1004.desc + } + } + } + } + theme = sway_scheme + left_portrait = { + character = scope:owner + triggered_animation = { + trigger = { + has_trait = callous + has_trait = vengeful + has_trait = sadistic + } + animation = personality_callous + } + animation = personality_bold + } + right_portrait = { + character = scope:target + animation = throne_room_bow_1 + } + + trigger = { + + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_scheme_more_powerful + } + + scope:target = { + AND = { + is_vassal_of = scope:owner + has_trait = disloyal + } + NOT = { + has_relation_rival = scope:owner + } + } + } + + weight_multiplier = { #more likely to trigger if the target likes you, or has a flexible personality + base = 1 + modifier = { + add = 0.5 + scope:target = { has_trait = fickle } #They're flexible + } + modifier = { + add = 0.5 + scope:target = { has_trait = trusting } #They trust you + } + modifier = { + add = -0.7 + scope:target = { has_trait = stubborn } #They are not prone to change their ways + } + modifier = { + add = -0.3 + scope:target = { has_trait = vengeful } #They are not soon to forgive slights, real or imagined + } + } + + immediate = { + + scope:target = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 20 + } + remove_trait = disloyal + } + scope:owner = { + if = { + limit = { + faith = { has_doctrine_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + } + + option = { + name = sway_outcome.1004.a + + trigger = { + OR = { + has_trait = vengeful + has_trait = arrogant + has_trait = paranoid + } + } + + scope:scheme = { + end_scheme = yes + } + } + + option = { + name = sway_outcome.1004.b + + trigger = { + NOR = { + has_trait = vengeful + has_trait = arrogant + has_trait = paranoid + } + } + + scope:scheme = { + end_scheme = yes + } + } +} ################################# diff --git a/events/varangian_events.txt b/events/varangian_events.txt index 97e8c10a..c488da3d 100644 --- a/events/varangian_events.txt +++ b/events/varangian_events.txt @@ -1,1307 +1,1306 @@ -#namespace = varangian -# -## Events about the Varangian Guard -# # varangian.0001 - Find a potential Varangian and fire chain, by Petter Vilberg -# # varangian.0002 - Event for the liege of the Varangian candidate, by Petter Vilberg -# # varangian.0003 - Emperor gets a new varangian, by Petter Vilberg -# # varangian.1001 - Varangian decides to return, by Petter Vilberg -# # varangian.1002 - Varangian comes home to liege, by Petter Vilberg -# -# # Ongoing Varangian events -# # varangian.2001 - Become Best Friends with another Varangian, by Petter Vilberg -# # varangian.2002 - Become Lover with a fellow Varangian, by Petter Vilberg -# # varangian.2003 - Become Friends with a local ruler, by Petter Vilberg -# # varangian.2004 - Become Rivals with a local ruler, by Petter Vilberg -# # varangian.2005 - Marry your lover, by Petter Vilberg -# # varangian.2008 - Get wounded, by Petter Vilberg -# # varangian.2011 - Become lover with a local, by Petter Vilberg -# # varangian.2012 - Increase Prowess, by Petter Vilberg -# # varangian.2013 - Increase Martial, by Petter Vilberg -# # varangian.2014 - Increase Learning, by Petter Vilberg -# # varangian.2015 - Increase Diplomacy, by Petter Vilberg -# # varangian.2016 - Become Brave, by Petter Vilberg -# # varangian.2017 - Become Ambitious, by Petter Vilberg -# # varangian.2018 - Become Diligent, by Petter Vilberg -# -## Evaluate whether the target is valid for varangians -#scripted_trigger varangian_0001_available_varangian_trigger = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# age < 40 -# is_married = no -# NOR = { -# has_character_flag = has_asked_to_be_varangian -# has_trait = varangian -# } -# religion = religion:folkgerman_religion -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# has_trait = craven -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# has_relation_rival = title:e_byzantium.holder -# } -#} -# -#varangian.0001 = { -# hidden = yes -# -# trigger = { -# religion = religion:folkgerman_religion -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# has_character_flag = had_recent_varangian_sendoff -# } -# is_at_war = no -# age >= 6 -# exists = title:e_byzantium.holder -# NOR = { -# this = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# any_sub_realm_county = { -# this = title:c_byzantion -# } -# has_relation_rival = title:e_byzantium.holder -# } -# any_courtier = { -# varangian_0001_available_varangian_trigger = yes -# } -# } -# -# immediate = { -# # Find a suitable courtier -# random_courtier = { -# limit = { -# varangian_0001_available_varangian_trigger = yes -# } -# weight = { -# base = 1 -# compare_modifier = { -# value = martial -# multiplier = 0.25 -# } -# compare_modifier = { -# value = prowess -# multiplier = 0.5 -# } -# modifier = { -# add = 5 -# OR = { -# has_trait = brave -# has_trait = arrogant -# } -# } -# modifier = { -# add = -1 -# has_trait = content -# } -# modifier = { -# add = -1 -# has_trait = lazy -# } -# modifier = { -# add = -1 -# has_trait = craven -# } -# modifier = { -# add = 3 -# is_of_major_interest_to_root_trigger = yes -# } -# modifier = { -# add = 2 -# is_of_minor_interest_to_root_trigger = yes -# } -# modifier = { -# add = 1 -# exists = dynasty -# } -# # Reduce chances if they seem likely to inherit stuff soon -# modifier = { -# factor = 0.2 -# any_heir_title = { -# holder ?= { -# this = root -# OR = { -# age >= 60 -# health <= poor_health -# } -# } -# } -# } -# } -# add_character_flag = has_asked_to_be_varangian -# save_scope_as = varangian_candidate -# } -# -# title:e_byzantium.holder = { -# save_scope_as = emperor -# if = { -# limit = { capital_county = title:c_byzantion } -# set_local_variable = { -# name = to_miklagard -# value = yes -# } -# } -# } -# -# # Send event to court owner -# trigger_event = varangian.0002 -# } -#} -# -# -## Varangian requests permission to leave -#varangian.0002 = { -# type = character_event -# title = varangian.0002.t -# desc = { -# desc = varangian.0002.opening -# first_valid = { -# triggered_desc = { -# trigger = { exists = local_var:to_miklagard } -# desc = varangian.0002.miklagard -# } -# desc = varangian.0002.elsewhere -# } -# desc = varangian.0002.end -# } -# theme = martial -# left_portrait = { -# character = root -# animation = war_over_tie -# } -# right_portrait = { -# character = scope:varangian_candidate -# animation = personality_bold -# } -# lower_right_portrait = scope:emperor -# -# immediate = { -# add_character_flag = { -# flag = had_recent_varangian_sendoff -# years = 5 -# } -# } -# -# option = { # Approve -# name = varangian.0002.a -# show_as_tooltip = { -# scope:varangian_candidate = { -# visit_court_of = scope:emperor -# add_trait = varangian -# } -# } -# every_scheme = { -# limit = { -# any_scheme_agent_character = { this = scope:varangian_candidate } -# } -# save_scope_as = scheme -# scope:varangian_candidate = { forbid_from_scheme = scope:scheme } -# } -# hidden_effect = { -# scope:emperor = { -# trigger_event = varangian.0003 -# } -# } -# debug_log = "Someone got sent as a Varangian" -# debug_log_scopes = yes -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Keep them -# name = varangian.0002.b -# scope:varangian_candidate = { -# add_opinion = { -# target = root -# modifier = angry_opinion -# opinion = -20 -# } -# } -# ai_chance = { -# base = 0 -# } -# } -#} -# -## Emperor gets a new varangian -#varangian.0003 = { -# hidden = yes -# -# immediate = { -# send_interface_message = { -# type = event_martial_text_good -# left_icon = scope:varangian_candidate -# title = varangian_arrived.title -# desc = varangian_arrived.desc -# if = { -# limit = { -# exists = scope:varangian_candidate.liege -# scope:varangian_candidate.liege = { -# is_ai = yes -# } -# } -# scope:varangian_candidate = { move_to_pool_at = root.capital_province } -# } -# add_visiting_courtier = scope:varangian_candidate -# scope:varangian_candidate = { -# add_trait = varangian -# add_character_flag = is_currently_varangian -# set_variable = { -# name = years_as_varangian -# value = 1 # Set to one year ahead of time for the sake of event evaluation -# } -# trigger_event = { -# on_action = varangian_ongoing -# days = { 340 380 } -# } -# } -# } -# } -#} -# -# -## Return home eventually -#scripted_trigger varangian_1001_partner_can_be_brought_home_trigger = { -# is_alive = yes -# is_landed = no -# any_heir_title = { -# always = no -# } -#} -# -#varangian.1001 = { -# hidden = yes -# -# trigger = { -# liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_north_germanic } -# dynasty = { has_dynasty_perk = fp1_adventure_legacy_1 } -# } -# } -# var:years_as_varangian > 5 -# is_available_ai_adult = yes -# has_character_flag = is_currently_varangian -# } -# -# weight_multiplier = { -# base = 1 -# modifier = { -# add = { -# value = var:years_as_varangian -# subtract = 5 -# multiply = 0.25 -# } -# always = yes -# } -# } -# -# immediate = { -# if = { -# limit = { -# exists = var:spouse_from_varangian_guard -# var:spouse_from_varangian_guard = { -# varangian_1001_partner_can_be_brought_home_trigger = yes -# is_consort_of = root -# } -# } -# var:spouse_from_varangian_guard = { -# save_scope_as = new_partner -# } -# } -# else_if = { -# limit = { -# exists = var:lover_from_varangian_guard -# var:lover_from_varangian_guard = { -# varangian_1001_partner_can_be_brought_home_trigger = yes -# has_relation_lover = root -# } -# } -# var:lover_from_varangian_guard = { -# save_scope_as = new_partner -# } -# } -# remove_character_flag = is_currently_varangian -# save_scope_as = returning_varangian -# if = { -# limit = { exists = title:e_byzantium.holder } -# title:e_byzantium.holder = { -# save_scope_as = emperor -# } -# } -# liege = { -# trigger_event = varangian.1002 -# } -# } -#} -# -## Liege - Varangian returns home -#varangian.1002 = { -# type = character_event -# title = varangian.1002.t -# desc = { -# desc = varangian.1002.opening -# triggered_desc = { -# trigger = { -# exists = scope:new_partner -# } -# desc = varangian.1002.new_partner -# } -# desc = varangian.1002.ending -# } -# theme = martial -# left_portrait = { -# character = root -# animation = war_over_tie -# } -# right_portrait = { -# character = scope:returning_varangian -# animation = personality_bold -# } -# lower_left_portrait = scope:new_partner -# lower_right_portrait = scope:emperor -# -# immediate = { -# scope:returning_varangian = { -# scope:emperor.culture = { save_scope_as = advanced_culture } -# hidden_effect = { adopt_cultural_fashion_effect = yes } -# if = { -# limit = { -# is_foreign_court_guest = yes -# } -# return_to_court = yes -# } -# else_if = { -# limit = { -# exists = dynasty.dynast.primary_title -# } -# dynasty.dynast = { -# if = { -# limit = { -# scope:returning_varangian = { -# NOT = { -# is_courtier_of = prev -# } -# } -# } -# add_courtier = scope:returning_varangian -# } -# } -# } -# else_if = { -# limit = { -# exists = dynasty -# any_close_family_member = { -# is_ai = no -# } -# } -# random_close_family_member = { -# limit = { -# is_ai = no -# } -# add_courtier = scope:returning_varangian -# } -# } -# else_if = { -# limit = { -# any_close_family_member = { -# is_ruler = yes -# } -# } -# random_close_family_member = { -# limit = { -# is_ruler = yes -# } -# add_courtier = scope:returning_varangian -# } -# } -# else = { -# move_to_pool = yes -# } -# } -# hidden_effect = { -# if = { -# limit = { -# exists = scope:new_partner -# NOT = { scope:new_partner = { is_courtier_of = root } } -# } -# scope:returning_varangian.court_owner = { -# add_courtier = scope:new_partner -# } -# } -# } -# debug_log = "Someone got home from the Varangian Guard" -# debug_log_scopes = yes -# } -# -# option = { # Wow -# name = varangian.1002.a -# scope:returning_varangian = { -# add_prestige = medium_prestige_gain -# add_gold = medium_gold_value -# } -# } -#} -# -# -## Return home because of inheritance -## varangian.1003 -# -## Liege - Varangian has returned home to be vassal -## varangian.1004 -# -# -## Become friends with local Varangian -#scripted_trigger varangian_2001_varangian_friend_trigger = { -# has_character_flag = is_currently_varangian -# is_ai = yes -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -#} -# -#varangian.2001 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any friends -# any_relation = { -# type = best_friend -# always = no -# } -# host ?= { -# any_courtier_or_guest = { -# varangian_2001_varangian_friend_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_courtier_or_guest = { -# limit = { -# varangian_2001_varangian_friend_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# OR = { -# has_relation_potential_friend = root -# has_relation_friend = root -# } -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_best_friend = { reason = best_friend_varangian copy_reason = friend target = scope:varangian_friend } -# } -#} -# -## Become lover with a fellow Varangian -#scripted_trigger varangian_2002_varangian_lover_trigger = { -# has_character_flag = is_currently_varangian -# is_ai = yes -# is_adult = yes -# save_temporary_scope_as = potential_cheater -# OR = { -# is_married = no -# any_spouse = { -# count = all -# save_temporary_scope_as = partner -# scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } -# } -# } -# is_attracted_to_gender_of = root -# root = { -# is_attracted_to_gender_of = prev -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -# opinion = { -# target = root -# value > 10 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -#} -# -#varangian.2002 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any lovers -# any_relation = { -# type = lover -# always = no -# } -# host ?= { -# any_courtier_or_guest = { -# varangian_2002_varangian_lover_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_courtier_or_guest = { -# limit = { -# varangian_2002_varangian_lover_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_lover = root -# } -# } -# save_scope_as = varangian_lover -# } -# } -# set_relation_lover = { reason = lover_varangian_lover target = scope:varangian_lover } -# set_variable = { -# name = lover_from_varangian_guard -# value = scope:varangian_lover -# } -# } -#} -# -## Become friends with local ruler -#scripted_trigger varangian_2003_local_ruler_friend_trigger = { -# is_ai = yes -# opinion = { -# target = root -# value > 0 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -#} -# -#varangian.2003 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any friends -# any_relation = { -# type = friend -# always = no -# } -# host ?= { -# any_vassal = { -# varangian_2003_local_ruler_friend_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_vassal = { -# limit = { -# varangian_2003_local_ruler_friend_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_friend = root -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_friend = { reason = friend_varangian target = scope:varangian_friend } -# } -#} -# -## Become rivals with local ruler -#scripted_trigger varangian_2004_local_ruler_rival_trigger = { -# is_ai = yes -# opinion = { -# target = root -# value < 0 -# } -# reverse_opinion = { -# target = root -# value < 0 -# } -# NOR = { -# this = root -# has_relation_friend = root -# has_relation_lover = root -# } -#} -# -#varangian.2004 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any rival -# any_relation = { -# type = rival -# always = no -# } -# host ?= { -# any_vassal = { -# varangian_2004_local_ruler_rival_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_vassal = { -# limit = { -# varangian_2004_local_ruler_rival_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_friend = root -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_rival = { reason = rival_varangian target = scope:varangian_friend } -# } -#} -# -## Marry Lover -#scripted_trigger varangian_2005_lover_to_marry = { -# is_ai = yes -# is_married = no -# can_marry_character_trigger = { -# CHARACTER = root -# } -# OR = { -# is_in_the_same_court_as_or_guest = root -# top_liege = root.host -# AND = { -# exists = host -# host.top_liege = root.host -# } -# } -#} -# -#scripted_trigger varangian_2005_should_marry_this_character_matrilineally = { -# is_female = yes -# OR = { -# AND = { -# is_landed = yes -# $OTHER_CHARACTER$ = { # Not if they are heir to anything -# any_heir_title = { -# always = no -# } -# } -# } -# AND = { -# faith = { -# has_doctrine = doctrine_gender_female_dominated -# } -# $OTHER_CHARACTER$ = { -# faith = { -# OR = { -# has_doctrine = doctrine_gender_female_dominated -# has_doctrine = doctrine_gender_equal -# } -# } -# } -# } -# } -#} -# -#varangian.2005 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# is_married = no -# any_relation = { -# type = lover -# varangian_2005_lover_to_marry = yes -# NOT = { has_been_promised_grand_wedding = yes } -# } -# NOT = { has_been_promised_grand_wedding = yes } -# } -# -# immediate = { -# random_relation = { -# type = lover -# limit = { -# varangian_2005_lover_to_marry = yes -# NOT = { has_been_promised_grand_wedding = yes } -# } -# save_scope_as = lover_to_marry -# } -# if = { -# limit = { -# OR = { -# varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = scope:lover_to_marry } -# scope:lover_to_marry = { -# varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = root } -# } -# } -# } -# marry_matrilineal = scope:lover_to_marry -# } -# else = { -# marry = scope:lover_to_marry -# } -# set_variable = { -# name = spouse_from_varangian_guard -# value = scope:lover_to_marry -# } -# } -#} -# -## Get Murdered -## varangian.2006 -# -## Liege - notification they were murdered -# -## Get Wounded -#varangian.2008 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOR = { -# has_trait = wounded -# has_character_flag = had_severe_injury_in_varangian_guard -# } -# } -# -# immediate = { -# add_character_flag = had_severe_injury_in_varangian_guard -# random_list = { -# 10 = { -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# } -# 5 = { -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# } -# 5 = { -# trigger = { -# NOT = { has_trait = one_eyed } -# } -# add_trait = one_eyed -# } -# 5 = { -# trigger = { -# NOT = { has_trait = one_legged } -# } -# add_trait = one_legged -# } -# 2 = { -# trigger = { -# is_eunuch_trigger = no -# NOR = { -# is_female = yes -# age < 12 -# } -# } -# add_trait = eunuch_1 -# } -# 2 = { -# trigger = { -# NOR = { -# has_trait = blind -# is_male = yes -# } -# } -# add_trait = blind -# } -# } -# } -#} -# -## Get Killed in battle -## varangian.2009 -# -## Liege - notification they were killed -## varangian.2010 -# -## Become lover with a local -#scripted_trigger varangian_2011_local_lover_trigger = { -# is_ai = yes -# is_adult = yes -# is_attracted_to_gender_of = root -# root = { -# is_attracted_to_gender_of = prev -# } -# save_temporary_scope_as = potential_cheater -# OR = { -# is_married = no -# any_spouse = { -# count = all -# save_temporary_scope_as = partner -# scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } -# } -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -# opinion = { -# target = root -# value > 10 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -#} -# -#varangian.2011 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# exists = host -# } -# -# immediate = { -# random_list = { -# 10 = { # Find someone suitable -# trigger = { -# host = { -# OR = { -# varangian_2011_local_lover_trigger = yes -# any_courtier = { -# varangian_2011_local_lover_trigger = yes -# } -# any_vassal = { -# varangian_2011_local_lover_trigger = yes -# any_courtier = { -# varangian_2011_local_lover_trigger = yes -# } -# } -# } -# } -# } -# host = { -# if = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_courtier = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_vassal = { -# if = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_courtier = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# } -# } -# random_in_list = { -# list = potential_lover -# weight = { -# base = 1 -# modifier = { -# add = 5 -# is_landed = no -# } -# } -# save_scope_as = lover -# } -# } -# 10 = { # Create a beautiful peasant -# create_character = { -# template = beautiful_peasant_character -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 10 = { # Create a noble -# create_character = { -# template = pool_repopulate_spouse -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# dynasty = generate -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 5 = { # Create a witch -# create_character = { -# template = witchy_template -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 5 = { # Create a witch with a Dynasty -# create_character = { -# template = witchy_template -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# dynasty = generate -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# } -# set_relation_lover = { reason = lover_varangian_local target = scope:lover } -# } -#} -# -## Increase Prowess -#varangian.2012 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_prowess } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current Prowess over 15 -# value = prowess -# multiplier = -0.1 -# offset = -15 -# trigger = { -# prowess > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_prowess -# years = 2 -# } -# add_prowess_skill = 1 -# } -#} -# -## Increase Martial -#varangian.2013 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_martial } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current martial over 15 -# value = martial -# multiplier = -0.1 -# offset = -15 -# trigger = { -# martial > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_martial -# years = 2 -# } -# add_martial_skill = 1 -# } -#} -# -## Increase Learning -#varangian.2014 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_learning } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current learning over 15 -# value = learning -# multiplier = -0.1 -# offset = -15 -# trigger = { -# learning > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_learning -# years = 2 -# } -# add_learning_skill = 1 -# } -#} -# -## Increase Diplomacy -#varangian.2015 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_diplomacy } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current diplomacy over 15 -# value = diplomacy -# multiplier = -0.1 -# offset = -15 -# trigger = { -# diplomacy > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_diplomacy -# years = 2 -# } -# add_diplomacy_skill = 1 -# } -#} -# -## Become Brave -#varangian.2016 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = brave } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# else_if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# add_trait = brave -# } -#} -# -## Become Ambitious -#varangian.2017 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = ambitious } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# else_if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# add_trait = ambitious -# } -#} -# -## Become Diligent -#varangian.2018 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = diligent } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# else_if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# add_trait = diligent -# } -#} -# -## Liege: Varangian has died saving the Emeperor's life -# # by Petter Vilberg -#varangian.3001 = { -# type = character_event -# title = varangian.3001.t -# desc = varangian.3001.desc -# theme = murder_scheme -# left_portrait = scope:varangian -# right_portrait = { -# character = scope:emperor -# animation = sadness -# } -# -# option = { -# name = varangian.3001.a -# add_gold = major_gold_value -# } -#} -# -## Emperor: Varangians are great fighters -# -# \ No newline at end of file +namespace = varangian + +# Events about the Varangian Guard + # varangian.0001 - Find a potential Varangian and fire chain, by Petter Vilberg + # varangian.0002 - Event for the liege of the Varangian candidate, by Petter Vilberg + # varangian.0003 - Emperor gets a new varangian, by Petter Vilberg + # varangian.1001 - Varangian decides to return, by Petter Vilberg + # varangian.1002 - Varangian comes home to liege, by Petter Vilberg + + # Ongoing Varangian events + # varangian.2001 - Become Best Friends with another Varangian, by Petter Vilberg + # varangian.2002 - Become Lover with a fellow Varangian, by Petter Vilberg + # varangian.2003 - Become Friends with a local ruler, by Petter Vilberg + # varangian.2004 - Become Rivals with a local ruler, by Petter Vilberg + # varangian.2005 - Marry your lover, by Petter Vilberg + # varangian.2008 - Get wounded, by Petter Vilberg + # varangian.2011 - Become lover with a local, by Petter Vilberg + # varangian.2012 - Increase Prowess, by Petter Vilberg + # varangian.2013 - Increase Martial, by Petter Vilberg + # varangian.2014 - Increase Learning, by Petter Vilberg + # varangian.2015 - Increase Diplomacy, by Petter Vilberg + # varangian.2016 - Become Brave, by Petter Vilberg + # varangian.2017 - Become Ambitious, by Petter Vilberg + # varangian.2018 - Become Diligent, by Petter Vilberg + +# Evaluate whether the target is valid for varangians +scripted_trigger varangian_0001_available_varangian_trigger = { + can_be_knight_trigger = { + ARMY_OWNER = title:e_byzantium.holder + } + age < 40 + is_married = no + NOR = { + has_character_flag = has_asked_to_be_varangian + has_trait = varangian + } + religion = religion:folkgerman_religion + NOR = { + faith = { + has_doctrine_parameter = pacifist_opinion_active + } + has_trait = craven + has_truce = title:e_byzantium.holder + is_at_war_with = title:e_byzantium.holder + has_relation_rival = title:e_byzantium.holder + } +} + +varangian.0001 = { + hidden = yes + + trigger = { + religion = religion:folkgerman_religion + NOR = { + faith = { + has_doctrine_parameter = pacifist_opinion_active + } + has_character_flag = had_recent_varangian_sendoff + } + is_at_war = no + age >= 6 + exists = title:e_byzantium.holder + NOR = { + this = title:e_byzantium.holder + has_truce = title:e_byzantium.holder + is_at_war_with = title:e_byzantium.holder + any_sub_realm_county = { + this = title:c_byzantion + } + has_relation_rival = title:e_byzantium.holder + } + any_courtier = { + varangian_0001_available_varangian_trigger = yes + } + } + + immediate = { + # Find a suitable courtier + random_courtier = { + limit = { + varangian_0001_available_varangian_trigger = yes + } + weight = { + base = 1 + compare_modifier = { + value = martial + multiplier = 0.25 + } + compare_modifier = { + value = prowess + multiplier = 0.5 + } + modifier = { + add = 5 + OR = { + has_trait = brave + has_trait = arrogant + } + } + modifier = { + add = -1 + has_trait = content + } + modifier = { + add = -1 + has_trait = lazy + } + modifier = { + add = -1 + has_trait = craven + } + modifier = { + add = 3 + is_of_major_interest_to_root_trigger = yes + } + modifier = { + add = 2 + is_of_minor_interest_to_root_trigger = yes + } + modifier = { + add = 1 + exists = dynasty + } + # Reduce chances if they seem likely to inherit stuff soon + modifier = { + factor = 0.2 + any_heir_title = { + holder ?= { + this = root + OR = { + age >= 60 + health <= poor_health + } + } + } + } + } + add_character_flag = has_asked_to_be_varangian + save_scope_as = varangian_candidate + } + + title:e_byzantium.holder = { + save_scope_as = emperor + if = { + limit = { capital_county = title:c_byzantion } + set_local_variable = { + name = to_miklagard + value = yes + } + } + } + + # Send event to court owner + trigger_event = varangian.0002 + } +} + + +# Varangian requests permission to leave +varangian.0002 = { + type = character_event + title = varangian.0002.t + desc = { + desc = varangian.0002.opening + first_valid = { + triggered_desc = { + trigger = { exists = local_var:to_miklagard } + desc = varangian.0002.miklagard + } + desc = varangian.0002.elsewhere + } + desc = varangian.0002.end + } + theme = martial + left_portrait = { + character = root + animation = war_over_tie + } + right_portrait = { + character = scope:varangian_candidate + animation = personality_bold + } + lower_right_portrait = scope:emperor + + immediate = { + add_character_flag = { + flag = had_recent_varangian_sendoff + years = 5 + } + } + + option = { # Approve + name = varangian.0002.a + show_as_tooltip = { + scope:varangian_candidate = { + visit_court_of = scope:emperor + add_trait = varangian + } + } + every_scheme = { + limit = { + any_scheme_agent_character = { this = scope:varangian_candidate } + } + save_scope_as = scheme + scope:varangian_candidate = { forbid_from_scheme = scope:scheme } + } + hidden_effect = { + scope:emperor = { + trigger_event = varangian.0003 + } + } + debug_log = "Someone got sent as a Varangian" + debug_log_scopes = yes + ai_chance = { + base = 100 + } + } + + option = { # Keep them + name = varangian.0002.b + scope:varangian_candidate = { + add_opinion = { + target = root + modifier = angry_opinion + opinion = -20 + } + } + ai_chance = { + base = 0 + } + } +} + +# Emperor gets a new varangian +varangian.0003 = { + hidden = yes + + immediate = { + send_interface_message = { + type = event_martial_text_good + left_icon = scope:varangian_candidate + title = varangian_arrived.title + desc = varangian_arrived.desc + if = { + limit = { + exists = scope:varangian_candidate.liege + scope:varangian_candidate.liege = { + is_ai = yes + } + } + scope:varangian_candidate = { move_to_pool_at = root.capital_province } + } + add_visiting_courtier = scope:varangian_candidate + scope:varangian_candidate = { + add_trait = varangian + add_character_flag = is_currently_varangian + set_variable = { + name = years_as_varangian + value = 1 # Set to one year ahead of time for the sake of event evaluation + } + trigger_event = { + on_action = varangian_ongoing + days = { 340 380 } + } + } + } + } +} + + +# Return home eventually +scripted_trigger varangian_1001_partner_can_be_brought_home_trigger = { + is_alive = yes + is_landed = no + any_heir_title = { + always = no + } +} + +varangian.1001 = { + hidden = yes + + trigger = { + liege ?= { + OR = { + culture = { has_cultural_pillar = heritage_north_germanic } + dynasty = { has_dynasty_perk = fp1_adventure_legacy_1 } + } + } + var:years_as_varangian > 5 + is_available_ai_adult = yes + has_character_flag = is_currently_varangian + } + + weight_multiplier = { + base = 1 + modifier = { + add = { + value = var:years_as_varangian + subtract = 5 + multiply = 0.25 + } + always = yes + } + } + + immediate = { + if = { + limit = { + exists = var:spouse_from_varangian_guard + var:spouse_from_varangian_guard = { + varangian_1001_partner_can_be_brought_home_trigger = yes + is_consort_of = root + } + } + var:spouse_from_varangian_guard = { + save_scope_as = new_partner + } + } + else_if = { + limit = { + exists = var:lover_from_varangian_guard + var:lover_from_varangian_guard = { + varangian_1001_partner_can_be_brought_home_trigger = yes + has_relation_lover = root + } + } + var:lover_from_varangian_guard = { + save_scope_as = new_partner + } + } + remove_character_flag = is_currently_varangian + save_scope_as = returning_varangian + if = { + limit = { exists = title:e_byzantium.holder } + title:e_byzantium.holder = { + save_scope_as = emperor + } + } + liege = { + trigger_event = varangian.1002 + } + } +} + +# Liege - Varangian returns home +varangian.1002 = { + type = character_event + title = varangian.1002.t + desc = { + desc = varangian.1002.opening + triggered_desc = { + trigger = { + exists = scope:new_partner + } + desc = varangian.1002.new_partner + } + desc = varangian.1002.ending + } + theme = martial + left_portrait = { + character = root + animation = war_over_tie + } + right_portrait = { + character = scope:returning_varangian + animation = personality_bold + } + lower_left_portrait = scope:new_partner + lower_right_portrait = scope:emperor + + immediate = { + scope:returning_varangian = { + scope:emperor.culture = { save_scope_as = advanced_culture } + hidden_effect = { adopt_cultural_fashion_effect = yes } + if = { + limit = { + is_foreign_court_guest = yes + } + return_to_court = yes + } + else_if = { + limit = { + exists = dynasty.dynast.primary_title + } + dynasty.dynast = { + if = { + limit = { + scope:returning_varangian = { + NOT = { + is_courtier_of = prev + } + } + } + add_courtier = scope:returning_varangian + } + } + } + else_if = { + limit = { + exists = dynasty + any_close_family_member = { + is_ai = no + } + } + random_close_family_member = { + limit = { + is_ai = no + } + add_courtier = scope:returning_varangian + } + } + else_if = { + limit = { + any_close_family_member = { + is_ruler = yes + } + } + random_close_family_member = { + limit = { + is_ruler = yes + } + add_courtier = scope:returning_varangian + } + } + else = { + move_to_pool = yes + } + } + hidden_effect = { + if = { + limit = { + exists = scope:new_partner + NOT = { scope:new_partner = { is_courtier_of = root } } + } + scope:returning_varangian.court_owner = { + add_courtier = scope:new_partner + } + } + } + debug_log = "Someone got home from the Varangian Guard" + debug_log_scopes = yes + } + + option = { # Wow + name = varangian.1002.a + scope:returning_varangian = { + add_prestige = medium_prestige_gain + add_gold = medium_gold_value + } + } +} + + +# Return home because of inheritance +# varangian.1003 + +# Liege - Varangian has returned home to be vassal +# varangian.1004 + + +# Become friends with local Varangian +scripted_trigger varangian_2001_varangian_friend_trigger = { + has_character_flag = is_currently_varangian + is_ai = yes + NOR = { + this = root + has_relation_rival = root + has_relation_lover = root + } +} + +varangian.2001 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + # Only if you don't have any friends + any_relation = { + type = best_friend + always = no + } + host ?= { + any_courtier_or_guest = { + varangian_2001_varangian_friend_trigger = yes + } + } + } + + immediate = { + host = { + random_courtier_or_guest = { + limit = { + varangian_2001_varangian_friend_trigger = yes + } + weight = { + base = 1 + opinion_modifier = { + opinion_target = root + multiplier = 0.1 # +10 at 100 + } + modifier = { + add = 10 + OR = { + has_relation_potential_friend = root + has_relation_friend = root + } + } + } + save_scope_as = varangian_friend + } + } + set_relation_best_friend = { reason = best_friend_varangian copy_reason = friend target = scope:varangian_friend } + } +} + +# Become lover with a fellow Varangian +scripted_trigger varangian_2002_varangian_lover_trigger = { + has_character_flag = is_currently_varangian + is_ai = yes + is_adult = yes + save_temporary_scope_as = potential_cheater + OR = { + is_married = no + any_spouse = { + count = all + save_temporary_scope_as = partner + scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } + } + } + is_attracted_to_gender_of = root + root = { + is_attracted_to_gender_of = prev + } + NOR = { + this = root + has_relation_rival = root + has_relation_lover = root + } + opinion = { + target = root + value > 10 + } + reverse_opinion = { + target = root + value > 0 + } +} + +varangian.2002 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + # Only if you don't have any lovers + any_relation = { + type = lover + always = no + } + host ?= { + any_courtier_or_guest = { + varangian_2002_varangian_lover_trigger = yes + } + } + } + + immediate = { + host = { + random_courtier_or_guest = { + limit = { + varangian_2002_varangian_lover_trigger = yes + } + weight = { + base = 1 + opinion_modifier = { + opinion_target = root + multiplier = 0.1 # +10 at 100 + } + modifier = { + add = 10 + has_relation_potential_lover = root + } + } + save_scope_as = varangian_lover + } + } + set_relation_lover = { reason = lover_varangian_lover target = scope:varangian_lover } + set_variable = { + name = lover_from_varangian_guard + value = scope:varangian_lover + } + } +} + +# Become friends with local ruler +scripted_trigger varangian_2003_local_ruler_friend_trigger = { + is_ai = yes + opinion = { + target = root + value > 0 + } + reverse_opinion = { + target = root + value > 0 + } + NOR = { + this = root + has_relation_rival = root + has_relation_lover = root + } +} + +varangian.2003 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + # Only if you don't have any friends + any_relation = { + type = friend + always = no + } + host ?= { + any_vassal = { + varangian_2003_local_ruler_friend_trigger = yes + } + } + } + + immediate = { + host = { + random_vassal = { + limit = { + varangian_2003_local_ruler_friend_trigger = yes + } + weight = { + base = 1 + opinion_modifier = { + opinion_target = root + multiplier = 0.1 # +10 at 100 + } + modifier = { + add = 10 + has_relation_potential_friend = root + } + } + save_scope_as = varangian_friend + } + } + set_relation_friend = { reason = friend_varangian target = scope:varangian_friend } + } +} + +# Become rivals with local ruler +scripted_trigger varangian_2004_local_ruler_rival_trigger = { + is_ai = yes + opinion = { + target = root + value < 0 + } + reverse_opinion = { + target = root + value < 0 + } + NOR = { + this = root + has_relation_friend = root + has_relation_lover = root + } +} + +varangian.2004 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + # Only if you don't have any rival + any_relation = { + type = rival + always = no + } + host ?= { + any_vassal = { + varangian_2004_local_ruler_rival_trigger = yes + } + } + } + + immediate = { + host = { + random_vassal = { + limit = { + varangian_2004_local_ruler_rival_trigger = yes + } + weight = { + base = 1 + opinion_modifier = { + opinion_target = root + multiplier = 0.1 # +10 at 100 + } + modifier = { + add = 10 + has_relation_potential_friend = root + } + } + save_scope_as = varangian_friend + } + } + set_relation_rival = { reason = rival_varangian target = scope:varangian_friend } + } +} + +# Marry Lover +scripted_trigger varangian_2005_lover_to_marry = { + is_ai = yes + is_married = no + can_marry_character_trigger = { + CHARACTER = root + } + OR = { + is_in_the_same_court_as_or_guest = root + top_liege = root.host + AND = { + exists = host + host.top_liege = root.host + } + } +} + +scripted_trigger varangian_2005_should_marry_this_character_matrilineally = { + is_female = yes + OR = { + AND = { + is_landed = yes + $OTHER_CHARACTER$ = { # Not if they are heir to anything + any_heir_title = { + always = no + } + } + } + AND = { + faith = { + has_doctrine = doctrine_gender_female_dominated + } + $OTHER_CHARACTER$ = { + faith = { + OR = { + has_doctrine = doctrine_gender_female_dominated + has_doctrine = doctrine_gender_equal + } + } + } + } + } +} + +varangian.2005 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + is_married = no + any_relation = { + type = lover + varangian_2005_lover_to_marry = yes + NOT = { has_been_promised_grand_wedding = yes } + } + NOT = { has_been_promised_grand_wedding = yes } + } + + immediate = { + random_relation = { + type = lover + limit = { + varangian_2005_lover_to_marry = yes + NOT = { has_been_promised_grand_wedding = yes } + } + save_scope_as = lover_to_marry + } + if = { + limit = { + OR = { + varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = scope:lover_to_marry } + scope:lover_to_marry = { + varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = root } + } + } + } + marry_matrilineal = scope:lover_to_marry + } + else = { + marry = scope:lover_to_marry + } + set_variable = { + name = spouse_from_varangian_guard + value = scope:lover_to_marry + } + } +} + +# Get Murdered +# varangian.2006 + +# Liege - notification they were murdered + +# Get Wounded +varangian.2008 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + NOR = { + has_trait = wounded + has_character_flag = had_severe_injury_in_varangian_guard + } + } + + immediate = { + add_character_flag = had_severe_injury_in_varangian_guard + random_list = { + 10 = { + increase_wounds_effect = { REASON = fight } + increase_wounds_effect = { REASON = fight } + } + 5 = { + increase_wounds_effect = { REASON = fight } + increase_wounds_effect = { REASON = fight } + increase_wounds_effect = { REASON = fight } + } + 5 = { + trigger = { + NOT = { has_trait = one_eyed } + } + add_trait = one_eyed + } + 5 = { + trigger = { + NOT = { has_trait = one_legged } + } + add_trait = one_legged + } + 2 = { + trigger = { + is_eunuch_trigger = no + NOR = { + is_female = yes + age < 12 + } + } + add_trait = eunuch_1 + } + 2 = { + trigger = { + NOR = { + has_trait = blind + is_male = yes + } + } + add_trait = blind + } + } + } +} + +# Get Killed in battle +# varangian.2009 + +# Liege - notification they were killed +# varangian.2010 + +# Become lover with a local +scripted_trigger varangian_2011_local_lover_trigger = { + is_ai = yes + is_adult = yes + is_attracted_to_gender_of = root + root = { + is_attracted_to_gender_of = prev + } + save_temporary_scope_as = potential_cheater + OR = { + is_married = no + any_spouse = { + count = all + save_temporary_scope_as = partner + scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } + } + } + NOR = { + this = root + has_relation_rival = root + has_relation_lover = root + } + opinion = { + target = root + value > 10 + } + reverse_opinion = { + target = root + value > 0 + } +} + +varangian.2011 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + exists = host + } + + immediate = { + random_list = { + 10 = { # Find someone suitable + trigger = { + host = { + OR = { + varangian_2011_local_lover_trigger = yes + any_courtier = { + varangian_2011_local_lover_trigger = yes + } + any_vassal = { + varangian_2011_local_lover_trigger = yes + any_courtier = { + varangian_2011_local_lover_trigger = yes + } + } + } + } + } + host = { + if = { + limit = { varangian_2011_local_lover_trigger = yes } + add_to_list = potential_lover + } + every_courtier = { + limit = { varangian_2011_local_lover_trigger = yes } + add_to_list = potential_lover + } + every_vassal = { + if = { + limit = { varangian_2011_local_lover_trigger = yes } + add_to_list = potential_lover + } + every_courtier = { + limit = { varangian_2011_local_lover_trigger = yes } + add_to_list = potential_lover + } + } + } + random_in_list = { + list = potential_lover + weight = { + base = 1 + modifier = { + add = 5 + is_landed = no + } + } + save_scope_as = lover + } + } + 10 = { # Create a beautiful peasant + create_character = { + template = beautiful_peasant_character + age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } + gender_female_chance = root_attraction_based_female_chance + employer = root.host + faith = root.host.faith + culture = root.host.culture + + after_creation = { + #Sometimes adjust sexuality to create compatibility with root + if = { + limit = { + root = { is_attracted_to_gender_of = prev } + NOT = { is_attracted_to_gender_of = root } + } + set_sexuality = bisexual + } + } + + save_scope_as = lover + } + } + 10 = { # Create a noble + create_character = { + template = pool_repopulate_spouse + age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } + gender_female_chance = root_attraction_based_female_chance + employer = root.host + faith = root.host.faith + culture = root.host.culture + dynasty = generate + + after_creation = { + #Sometimes adjust sexuality to create compatibility with root + if = { + limit = { + root = { is_attracted_to_gender_of = prev } + NOT = { is_attracted_to_gender_of = root } + } + set_sexuality = bisexual + } + } + + save_scope_as = lover + } + } + 5 = { # Create a witch + create_character = { + template = witchy_template + age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } + gender_female_chance = root_attraction_based_female_chance + employer = root.host + faith = root.host.faith + culture = root.host.culture + + after_creation = { + #Sometimes adjust sexuality to create compatibility with root + if = { + limit = { + root = { is_attracted_to_gender_of = prev } + NOT = { is_attracted_to_gender_of = root } + } + set_sexuality = bisexual + } + } + + save_scope_as = lover + } + } + 5 = { # Create a witch with a Dynasty + create_character = { + template = witchy_template + age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } + gender_female_chance = root_attraction_based_female_chance + employer = root.host + faith = root.host.faith + culture = root.host.culture + dynasty = generate + + after_creation = { + #Sometimes adjust sexuality to create compatibility with root + if = { + limit = { + root = { is_attracted_to_gender_of = prev } + NOT = { is_attracted_to_gender_of = root } + } + set_sexuality = bisexual + } + } + + save_scope_as = lover + } + } + } + set_relation_lover = { reason = lover_varangian_local target = scope:lover } + } +} + +# Increase Prowess +varangian.2012 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + NOT = { has_character_flag = varangian_recently_increased_prowess } + } + + weight_multiplier = { + base = 1 + compare_modifier = { # Reduce chance for each current Prowess over 15 + value = prowess + multiplier = -0.1 + offset = -15 + trigger = { + prowess > 15 + } + } + } + + immediate = { + add_character_flag = { + flag = varangian_recently_increased_prowess + years = 2 + } + add_prowess_skill = 1 + } +} + +# Increase Martial +varangian.2013 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + NOT = { has_character_flag = varangian_recently_increased_martial } + } + + weight_multiplier = { + base = 1 + compare_modifier = { # Reduce chance for each current martial over 15 + value = martial + multiplier = -0.1 + offset = -15 + trigger = { + martial > 15 + } + } + } + + immediate = { + add_character_flag = { + flag = varangian_recently_increased_martial + years = 2 + } + add_martial_skill = 1 + } +} + +# Increase Learning +varangian.2014 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + NOT = { has_character_flag = varangian_recently_increased_learning } + } + + weight_multiplier = { + base = 1 + compare_modifier = { # Reduce chance for each current learning over 15 + value = learning + multiplier = -0.1 + offset = -15 + trigger = { + learning > 15 + } + } + } + + immediate = { + add_character_flag = { + flag = varangian_recently_increased_learning + years = 2 + } + add_learning_skill = 1 + } +} + +# Increase Diplomacy +varangian.2015 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + NOT = { has_character_flag = varangian_recently_increased_diplomacy } + } + + weight_multiplier = { + base = 1 + compare_modifier = { # Reduce chance for each current diplomacy over 15 + value = diplomacy + multiplier = -0.1 + offset = -15 + trigger = { + diplomacy > 15 + } + } + } + + immediate = { + add_character_flag = { + flag = varangian_recently_increased_diplomacy + years = 2 + } + add_diplomacy_skill = 1 + } +} + +# Become Brave +varangian.2016 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + OR = { + has_trait = craven + has_trait = lazy + has_trait = content + } + NOT = { has_trait = brave } + } + + weight_multiplier = { + base = 1 + } + + immediate = { + if = { + limit = { has_trait = craven } + remove_trait = craven + } + else_if = { + limit = { has_trait = lazy } + remove_trait = lazy + } + else_if = { + limit = { has_trait = content } + remove_trait = content + } + add_trait = brave + } +} + +# Become Ambitious +varangian.2017 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + OR = { + has_trait = craven + has_trait = lazy + has_trait = content + } + NOT = { has_trait = ambitious } + } + + weight_multiplier = { + base = 1 + } + + immediate = { + if = { + limit = { has_trait = content } + remove_trait = content + } + else_if = { + limit = { has_trait = lazy } + remove_trait = lazy + } + else_if = { + limit = { has_trait = craven } + remove_trait = craven + } + add_trait = ambitious + } +} + +# Become Diligent +varangian.2018 = { + hidden = yes + + trigger = { + has_character_flag = is_currently_varangian + OR = { + has_trait = craven + has_trait = lazy + has_trait = content + } + NOT = { has_trait = diligent } + } + + weight_multiplier = { + base = 1 + } + + immediate = { + if = { + limit = { has_trait = lazy } + remove_trait = lazy + } + else_if = { + limit = { has_trait = content } + remove_trait = content + } + else_if = { + limit = { has_trait = craven } + remove_trait = craven + } + add_trait = diligent + } +} + +# Liege: Varangian has died saving the Emeperor's life + # by Petter Vilberg +varangian.3001 = { + type = character_event + title = varangian.3001.t + desc = varangian.3001.desc + theme = murder_scheme + left_portrait = scope:varangian + right_portrait = { + character = scope:emperor + animation = sadness + } + + option = { + name = varangian.3001.a + add_gold = major_gold_value + } +} + +# Emperor: Varangians are great fighters + diff --git a/gfx/interface/illustrations/scripted_illustrations/ingame.txt b/gfx/interface/illustrations/scripted_illustrations/ingame.txt index c2a93e02..428dd0dd 100644 --- a/gfx/interface/illustrations/scripted_illustrations/ingame.txt +++ b/gfx/interface/illustrations/scripted_illustrations/ingame.txt @@ -12180,7 +12180,7 @@ title_holding = { has_holding_type = church_holding has_holding_type = temple_citadel_holding } - NEOW_religion_is_broadly_christian_trigger = yes + faith.OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } } reference = "holding_types/temple_christian.dds" diff --git a/gui/portraits.gui b/gui/portraits.gui index 43eafc53..cdd4ef8b 100644 --- a/gui/portraits.gui +++ b/gui/portraits.gui @@ -1302,7 +1302,7 @@ types PortraitTypes portrait_texture = "[Character.GetAnimatedPortrait(Illustration.GetEnvironment(Character.Self), 'camera_character_view_main', 'idle', PdxGetWidgetScreenSize(PdxGuiWidget.Self))]" mask = "gfx/portraits/portrait_mask_character_view.dds" effectname = "NoHighlight" - visible = "[And(Character.GetGovernment.HasGovernmentFlag( 'government_is_herder'), Character.HasLandedTitles)]" + visible = "[And(Character.GetGovernment.HasGovernmentFlag( 'government_is_herder'), Character.HasLandedTitles) )]" block "prison_bars" { highlight_icon = { diff --git a/history/provinces/e_britannia.txt b/history/provinces/e_britannia.txt index 6694a53b..20ff4517 100644 --- a/history/provinces/e_britannia.txt +++ b/history/provinces/e_britannia.txt @@ -1032,9 +1032,18 @@ } ###c_fife 1724 = { - culture = scottish + culture = pictish religion = presbyterian holding = tribal_holding + 935.1.1 = { + holding = castle_holding + } + 950.1.1 = { + culture = gaelic + } + 1130.1.1 = { + culture = scottish + } } 1725 = { holding = none @@ -1371,9 +1380,19 @@ } ###c_shetland 7 = { - culture = scottish + culture = pictish + religion = lutheran + holding = tribal_holding + 855.1.1 = { + culture = norse + religion = folketro + } + 1000.1.1 = { religion = jack_tar holding = tribal_holding + } + 1066.1.1 = { culture = vestsk } + 1334.1.1 = { culture = scottish } } #k_ireland diff --git a/history/provinces/e_iberia.txt b/history/provinces/e_iberia.txt index fb5a7ee5..f578ab29 100644 --- a/history/provinces/e_iberia.txt +++ b/history/provinces/e_iberia.txt @@ -6,7 +6,7 @@ religion = sevillian holding = castle_holding special_building = cathedral_mosque_cordoba_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 867.1.1 = { buildings = { @@ -35,7 +35,7 @@ 1979 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1263.1.1 = { culture = NEOW_andalusian religion = sevillian @@ -52,7 +52,7 @@ 1977 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1263.1.1 = { culture = NEOW_andalusian religion = sevillian @@ -76,7 +76,7 @@ religion = sevillian holding = castle_holding special_building_slot = generic_university - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1280.1.1 = { culture = NEOW_andalusian @@ -140,7 +140,7 @@ religion = sevillian holding = castle_holding special_building = almeria_castle_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1280.1.1 = { culture = cale @@ -172,7 +172,7 @@ 1845 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1263.1.1 = { culture = llanito religion = victorian @@ -184,7 +184,7 @@ religion = sevillian holding = castle_holding special_building = cathedral_seville_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 867.1.1 = { buildings = { farm_estates_01 @@ -226,7 +226,7 @@ 1843 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1263.1.1 = { culture = NEOW_andalusian religion = sevillian @@ -334,7 +334,7 @@ 1912 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 955.1.1 = { culture = castilian } } ###c_soria @@ -360,7 +360,7 @@ religion = sevillian holding = castle_holding special_building = alcazar_of_segovia_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 955.1.1 = { culture = castilian } } 1925 = { @@ -458,7 +458,7 @@ religion = sevillian holding = castle_holding special_building = toledo_steelworks_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 867.1.1 = { buildings = { regimental_grounds_01 @@ -499,7 +499,7 @@ religion = sevillian holding = castle_holding special_building = madrid_university_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 955.1.1 = { culture = castilian } } 1928 = { @@ -527,7 +527,7 @@ 1947 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1235.1.1 = { culture = castilian @@ -548,7 +548,7 @@ 1963 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1245.3.19 = { culture = castilian @@ -564,7 +564,7 @@ 1987 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1245.3.19 = { culture = castilian @@ -592,7 +592,7 @@ 1952 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1235.1.1 = { culture = castilian @@ -618,7 +618,7 @@ 1835 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1245.3.19 = { culture = extremeno @@ -656,7 +656,7 @@ 1954 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1235.1.1 = { culture = extremeno @@ -679,7 +679,7 @@ 1834 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1235.1.1 = { culture = extremeno @@ -712,7 +712,7 @@ religion = iberian holding = castle_holding special_building_slot = aljaferia_palace_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1066.1.1 = { buildings = { ramparts_01 @@ -749,7 +749,7 @@ 1892 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1259.1.1 = { culture = aragonese @@ -759,7 +759,7 @@ 1936 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1235.1.1 = { culture = castilian @@ -804,7 +804,7 @@ 1932 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1178.1.1 = { culture = aragonese } } 1934 = { @@ -841,7 +841,7 @@ religion = sevillian holding = castle_holding special_building_slot = port_of_valencia_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1259.1.1 = { culture = valencian @@ -867,7 +867,7 @@ 1857 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 939.1.1 = { religion = sevillian } 1259.1.1 = { culture = valencian @@ -887,7 +887,7 @@ 1853 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1259.1.1 = { culture = valencian @@ -900,7 +900,7 @@ 1854 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1259.1.1 = { culture = valencian @@ -1312,7 +1312,7 @@ 1837 = { religion = sevillian holding = castle_holding - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 812.1.1 = { religion = sevillian } 1245.3.19 = { culture = portuguese @@ -1358,7 +1358,7 @@ religion = sevillian holding = castle_holding special_building = tomb_thez_mighty_01 - 800.1.1 = { culture = NEOW_andalusian} + 800.1.1 = { culture = andalusian } 1264.1.1 = { culture = portuguese religion = iberian diff --git a/history/provinces/e_italy.txt b/history/provinces/e_italy.txt index 9d6f678a..bb28a451 100644 --- a/history/provinces/e_italy.txt +++ b/history/provinces/e_italy.txt @@ -417,9 +417,17 @@ } ###c_messina 2633 = { + culture = greek + religion = orthodox + holding = castle_holding + 869.1.1 = { + culture = maghrebi + religion = ashari + } + 1057.1.1 = { culture = sicilian religion = roman_catholic - holding = castle_holding + } } 9755 = { holding = none diff --git a/holder for later/common/landed_titles/middle_east.txt b/holder for later/common/landed_titles/middle_east.txt index 6a460c83..87c5098d 100644 --- a/holder for later/common/landed_titles/middle_east.txt +++ b/holder for later/common/landed_titles/middle_east.txt @@ -5,10 +5,10 @@ e_arabia = { capital = c_damascus # Damascus can_destroy = { -# custom_tooltip = { -# text = persian_struggle.tt.forbid_title_destruction -# NOT = { exists = struggle:persian_struggle } -# } + custom_tooltip = { + text = persian_struggle.tt.forbid_title_destruction + NOT = { exists = struggle:persian_struggle } + } } definite_form = yes diff --git a/localization/english/replace/religion/zz_NEOW_religion_pantheonic_l_english.yml b/localization/english/replace/religion/zz_NEOW_religion_pantheonic_l_english.yml index 27fa9924..08ca2362 100644 --- a/localization/english/replace/religion/zz_NEOW_religion_pantheonic_l_english.yml +++ b/localization/english/replace/religion/zz_NEOW_religion_pantheonic_l_english.yml @@ -130,7 +130,7 @@ orleaniste_trickster_god_name_possessive:0 "$orleaniste_death_name_possessive$" orleaniste_night_god_name:0 "$orleaniste_death_name$" orleaniste_night_god_name_possessive:0 "$orleaniste_death_name_possessive$" - orleaniste_water_god_name:0 "$orleaniste_war_god_name$" + orleaniste_water_god_name:0 "$orleaniste_war_god_name" orleaniste_water_god_name_possessive:0 "$orleaniste_war_god_name$'s" soleil_royal:0 "Soleil Royal" @@ -183,5 +183,5 @@ soleil_royal_trickster_god_name_possessive:0 "$soleil_royal_death_name_possessive$" soleil_royal_night_god_name:0 "$soleil_royal_death_name$" soleil_royal_night_god_name_possessive:0 "$soleil_royal_death_name_possessive$" - soleil_royal_water_god_name:0 "$soleil_royal_war_god_name$" + soleil_royal_water_god_name:0 "$soleil_royal_war_god_name" soleil_royal_water_god_name_possessive:0 "$soleil_royal_war_god_name$'s" \ No newline at end of file diff --git a/map_data/geographical_regions/geographical_region.txt b/map_data/geographical_regions/geographical_region.txt index 5efdcb0e..54927857 100644 --- a/map_data/geographical_regions/geographical_region.txt +++ b/map_data/geographical_regions/geographical_region.txt @@ -430,6 +430,9 @@ world_steppe_tarim = { } } world_steppe_west = { + kingdoms = { + k_volgograd k_kuban k_caucasus + } } world_steppe_central = { duchies = {