diff --git a/ImperatorToCK3/Data_Files/blankMod/output/localization/replace/english/zzz_IRToCK3_tfe_override_l_english.yml b/ImperatorToCK3/Data_Files/blankMod/output/localization/replace/english/zzz_IRToCK3_tfe_override_l_english.yml new file mode 100644 index 000000000..7d5267cd0 --- /dev/null +++ b/ImperatorToCK3/Data_Files/blankMod/output/localization/replace/english/zzz_IRToCK3_tfe_override_l_english.yml @@ -0,0 +1,9 @@ +l_english: + # MUST READ: + # for every overridden loc, explain why we're overriding it! + + # The event about the division of the Roman Empire should not mention Diocletian. + tfe_title_event.0004.desc: "The Empire now faces many external and internal problems. To make it more manageable, it needs to be split into two halves: a Western half centered on Italia, and an Eastern half centered on Constantinople.\n\nThe big question that remains is whether to do this now, or later. On one hand, ruling a united Empire is an overwhelming burden on myself. On the other hand, if I am confident enough in my abilities to hold the Empire together for the short-term, we can have it split between my heirs #italic after#! I die." + + # Don't mention Italy being the "old heartland of the Roman Empire"; we don't know if it was the heartland in the converted game. + tfe_culture.3000.desc: "In the past few generations, recent political events in [GetGeographicalRegion('world_europe_south_italy').GetName] have led to great social upheaval and cultural changes in places like [county_to_convert.GetNameNoTier].\n\nOne can now argue that even though the descendants of the [old_culture.GetCollectiveNoun] who live in [county_to_convert.GetNameNoTier] still remember and honor their glorious past, they are no longer truly like their ancestors. As of late, it is more accurate to say that the inhabitants of [county_to_convert.GetNameNoTierNoTooltip] have transformed from the Romans of classical antiquity into a new, different people: the [italian.GetCollectiveNoun]." diff --git a/ImperatorToCK3/Data_Files/configurables/removable_file_blocks_tfe.txt b/ImperatorToCK3/Data_Files/configurables/removable_file_blocks_tfe.txt index d6f78832a..04fb35955 100644 --- a/ImperatorToCK3/Data_Files/configurables/removable_file_blocks_tfe.txt +++ b/ImperatorToCK3/Data_Files/configurables/removable_file_blocks_tfe.txt @@ -9303,1270 +9303,2857 @@ western_roman.0043 = { } } } - } - { -western_roman.0064 = { +western_roman.0044 = { type = character_event - title = western_roman.0064.t - desc = western_roman.0064.desc - override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + title = western_roman.0044.t + desc = western_roman.0044.desc theme = realm left_portrait = { - character = scope:truce_breaker - animation = personality_greedy + character = root + animation = personality_honorable } right_portrait = { - character = scope:truce_breakee - animation = rage + character = scope:emperor + animation = personality_greedy } immediate = { - title:e_byzantium.holder = { - save_scope_as = truce_breakee - } - title:e_persia.holder = { - save_scope_as = truce_breaker - } - } - - option = { - name = western_roman.0064.a - trigger = { - AND = { - scope:truce_breaker = { - character_is_land_realm_neighbor = scope:truce_breakee + if = { + limit = { + character:assyrian_02 = { + is_alive = yes + is_landed = no } - NOT = { scope:truce_breakee = { is_at_war_with = scope:truce_breaker } } } - } - scope:truce_breakee = { - random_sub_realm_county = { - limit = { - is_neighbor_to_realm = scope:truce_breaker - } - save_scope_as = target_title_eternal_placeholder + character:assyrian_02 = { + save_scope_as = new_vicar } } - scope:truce_breaker = { - start_war = { - cb = TFE_gothic_outbreak_county_struggle_cb - target = scope:truce_breakee - target_title = scope:target_title_eternal_placeholder - claimant = scope:truce_breaker + else = { + scope:emperor = { + random_courtier = { + limit = { + is_adult = yes + is_male = yes + health >= fine_health + } + save_scope_as = new_vicar + } } } + } + + option = { + name = western_roman.0044.a if = { limit = { - OR = { - scope:truce_breakee = { - any_character_war = { - using_cb = gothic_war_regular_cb - attacker_war_score <= 75 - } - } - AND = { - exists = title:k_ostrogoths.holder - title:k_ostrogoths.holder = { - any_character_war = { - using_cb = cb_gothic_wars_amalasuntha - defender_war_score <= 75 - } - } - } - scope:truce_breakee = { - any_vassal_or_below = { - any_character_war = { - using_cb = gothic_duchy_conquest_cb - attacker_war_score <= 75 - } - } - } - } + has_trait = loyal } - scope:truce_breakee = { - trigger_event = { - id = western_roman.0065 - days = 1 - } + remove_trait = loyal + } + else = { + add_trait = disloyal + } + remove_trait = calm + add_trait = ambitious + set_relation_rival = { + target = scope:emperor + reason = rival_betrayed_friendship + } + scope:emperor = { + set_relation_rival = { + target = root + reason = rival_betrayed_friendship } } + add_opinion = { + modifier = hate_opinion + target = scope:emperor + opinion = -100 + } + reverse_add_opinion = { + modifier = hate_opinion + target = scope:emperor + opinion = -100 + } + set_global_variable = { + name = belisarius_betrayal + value = yes + } + start_war = { + cb = independence_war + target = scope:emperor + } ai_chance = { - base = 1 + base = 0 } } + option = { - name = western_roman.0064.b - trigger = { - AND = { - exists = title:d_abkhazia.holder - title:d_abkhazia.holder = { - exists = var:my_suzerain - var:my_suzerain = scope:truce_breakee - } - NOT = { title:d_abkhazia.holder = { is_at_war_with = scope:truce_breaker } } + name = western_roman.0044.b + if = { + limit = { + has_trait = disloyal } + remove_trait = disloyal } - scope:truce_breaker = { - start_war = { - cb = individual_duchy_de_jure_cb - target = title:d_abkhazia.holder - target_title = title:d_abkhazia - claimant = scope:truce_breaker + else = { + add_trait = loyal + } + add_prestige = 2000 + add_prestige_level = 1 + add_character_modifier = { + modifier = imperial_triumph + years = 10 + } + scope:emperor = { + remove_trait = paranoid + add_trait = stubborn + send_interface_toast = { + title = western_roman.0044.tt + left_icon = root + right_icon = scope:emperor + } + } + + title:c_trapani = { + save_temporary_scope_as = current_county + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no + } + scope:current_county = { + change_title_holder = { + holder = root + change = scope:change + take_baronies = yes + } + } + resolve_title_and_vassal_change = scope:change + + root = { + every_vassal = { + add_to_list = vassals_to_defect } } + + every_held_title = { + limit = { + NOT = { this = title:c_trapani } + } + add_to_list = titles_to_usurp + } + + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = no + } + every_in_list = { + list = titles_to_usurp + change_title_holder = { + holder = scope:new_vicar + change = scope:title_change + take_baronies = no + } + } + every_in_list = { + list = vassals_to_defect + change_liege = { + liege = scope:new_vicar + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + if = { limit = { - OR = { - scope:truce_breakee = { - any_character_war = { - using_cb = gothic_war_regular_cb - attacker_war_score <= 75 + scope:new_vicar = { + is_independent_ruler = yes + } + } + create_title_and_vassal_change = { + type = swear_fealty + save_scope_as = change + add_claim_on_loss = no + } + scope:new_vicar = { + change_liege = { + liege = scope:emperor + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + + if = { + limit = { + scope:new_vicar = { + NOT = { + OR = { + has_government = imperial_government + has_government = administrative_government } } - AND = { - exists = title:k_ostrogoths.holder - title:k_ostrogoths.holder = { - any_character_war = { - using_cb = cb_gothic_wars_amalasuntha - defender_war_score <= 75 - } - } + } + } + scope:new_vicar = { + if = { + limit = { + has_dlc_feature = roads_to_power } - scope:truce_breakee = { - any_vassal_or_below = { - any_character_war = { - using_cb = gothic_duchy_conquest_cb - attacker_war_score <= 75 - } - } + change_government = administrative_government } - } + else = { + change_government = imperial_government + } } - scope:truce_breakee = { - trigger_event = { - id = western_roman.0065 - days = 1 - } + } + + #I hate admin + title:c_trapani = { + save_temporary_scope_as = current_county + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no + } + scope:current_county = { + change_title_holder = { + holder = root + change = scope:change + take_baronies = yes } } + resolve_title_and_vassal_change = scope:change + ai_chance = { base = 100 } } - option = { - name = western_roman.0064.c - ai_chance = { - base = 1 - } - } } + } -western_roman.0065 = { + { +western_roman.0062 = { type = character_event - title = western_roman.0065.t - desc = western_roman.0065.desc - override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + title = western_roman.0062.t + desc = western_roman.0062.desc theme = realm + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + left_portrait = { - character = scope:truce_breaker - animation = personality_greedy - } - right_portrait = { - character = scope:truce_breakee - animation = rage + character = root + animation = personality_honorable } - option = { - name = western_roman.0065.a - trigger = { - OR = { - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = gothic_war_regular_cb - } - } - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = cb_gothic_wars_amalasuntha - } - } - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = gothic_duchy_conquest_cb + immediate = { + set_global_variable = { + name = gothic_war_won + value = yes + } + root = { + save_scope_as = gothic_war_victor + add_legitimacy = 100 + } + if = { + limit = { + exists = title:k_italy.holder + title:k_italy.holder.top_liege = root + } + title:k_italy.holder = { + every_held_title = { + limit = { tier = tier_duchy } + title:k_italy.holder = { + destroy_title = prev } } } } - character:belisarius_001 = { - trigger_event = { - id = western_roman.0066 - days = 1 - } - } - ai_chance = { - base = 100 - } } + option = { - name = western_roman.0065.b - trigger = { - NOT = { + name = western_roman.0062.a + if = { + limit = { + exists = title:k_italy.holder OR = { - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = gothic_war_regular_cb - } - } - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = cb_gothic_wars_amalasuntha - } - } - character:belisarius_001 = { - is_alive = yes - is_landed = yes - any_character_war = { - using_cb = gothic_duchy_conquest_cb - } - } + title:k_italy.holder = root + title:k_italy.holder.top_liege = root } } + title:k_italy = { + save_scope_as = title + } + trigger_event = tfe_title_event.0002 } - save_scope_as = peace_offerer - title:k_ostrogoths.holder = { - trigger_event = western_roman.0071 + if = { + limit = { + exists = title:k_croatia.holder + OR = { + title:k_croatia.holder = root + title:k_croatia.holder.top_liege = root + } + } + title:k_croatia = { + save_scope_as = title + } + trigger_event = tfe_title_event.0002 } ai_chance = { - base = 100 + base = 5 } } + option = { - name = western_roman.0065.c + name = western_roman.0062.b ai_chance = { - base = 1 + base = 0 } } -} - } - - { -western_roman.0069 = { - type = character_event - title = western_roman.0069.t - desc = western_roman.0069.desc - override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } - theme = realm - left_portrait = { - character = root - animation = personality_bold - } option = { - name = western_roman.0069.a - struggle:italian_struggle = { - activate_struggle_catalyst = { - catalyst = catalyst_TFE_major_historical_event_devastation - character = root - } - } - set_global_variable = { - name = belisarius_betrayal - value = yes - } - set_global_variable = { - name = belisarius_betrayal_white_peace - value = yes - } - scope:truce_breakee = { - set_relation_rival = { - target = root - reason = rival_betrayed_friendship - } - } - add_opinion = { - modifier = hate_opinion - target = scope:truce_breakee - opinion = -100 - } - reverse_add_opinion = { - modifier = hate_opinion - target = scope:truce_breakee - opinion = -100 - } - scope:truce_breakee = { - trigger_event = { - id = western_roman.0070 - days = 1 - } - } - character:belisarius_001 = { - if = { - limit = { - has_trait = loyal - } - remove_trait = loyal - } - else = { - add_trait = disloyal - } - every_character_war = { - limit = { - OR = { - using_cb = gothic_duchy_conquest_cb - using_cb = cb_gothic_wars_amalasuntha - using_cb = gothic_war_regular_cb - } - } - end_war = white_peace - } - get_title = title:e_western_roman_empire - if = { - limit = { - exists = title:e_italy.holder - title:e_italy.holder = title:k_ostrogoths.holder + name = western_roman.0062.c + if = { + limit = { + exists = title:k_italy.holder + OR = { + title:k_italy.holder = root + title:k_italy.holder.top_liege = root } - destroy_title = title:e_italy } - create_title_and_vassal_change = { - type = swear_fealty - save_scope_as = changev - add_claim_on_loss = no + end_gothic_war_italia_effect = yes + title:k_italia_annonariae = { + save_scope_as = title } - title:k_ostrogoths.holder = { - change_liege = { - liege = character:belisarius_001 - change = scope:changev - } + trigger_event = tfe_title_event.0002 + title:k_italia_suburbicariae = { + save_scope_as = title } - resolve_title_and_vassal_change = scope:changev - title:k_ostrogoths.holder = { - save_scope_as = destroychar - every_held_title = { - limit = { - tier >= tier_kingdom - } - scope:destroychar = { destroy_title = prev } + trigger_event = tfe_title_event.0002 + } + if = { + limit = { + exists = title:k_croatia.holder + OR = { + title:k_croatia.holder = root + title:k_croatia.holder.top_liege = root } } - scope:truce_breakee = { - start_war = { - cb = gothic_subjugation_cb - target = character:belisarius_001 - claimant = scope:truce_breakee - } + end_gothic_war_croatia_effect = yes + title:k_pannonia = { + save_scope_as = title } + trigger_event = tfe_title_event.0002 } ai_chance = { - base = 1 + base = 90 } } - option = { - name = western_roman.0069.b + name = western_roman.0062.d if = { limit = { - character:belisarius_001 = { - NOT = { has_trait = loyal } + exists = title:k_italy.holder + OR = { + title:k_italy.holder = root + title:k_italy.holder.top_liege = root } } - character:belisarius_001 = { - remove_trait = disloyal - add_trait = loyal + end_gothic_war_italia_effect = yes + } + if = { + limit = { + exists = title:k_croatia.holder + OR = { + title:k_croatia.holder = root + title:k_croatia.holder.top_liege = root + } } + end_gothic_war_croatia_effect = yes } ai_chance = { - base = 100 + base = 5 } } -} - } - - { -western_roman.0071 = { - type = character_event - title = western_roman.0071.t - desc = western_roman.0071.desc - override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } - theme = realm - left_portrait = { - character = root - animation = worry - } - option = { - name = western_roman.0071.a - struggle:italian_struggle = { - activate_struggle_catalyst = { - catalyst = catalyst_TFE_major_historical_event_rebuilding - character = root - } - } - ai_chance = { - base = 100 - } - scope:peace_offerer = { - send_interface_toast = { - title = WHITE_PEACE_ACCEPTED - left_icon = root - } + name = western_roman.0062.e + trigger = { + is_ai = yes } - end_gothic_war_early_effect = yes if = { limit = { - character:belisarius_001 = { - is_landed = yes - top_liege = scope:truce_breakee + exists = title:k_italy.holder + OR = { + title:k_italy.holder = root + title:k_italy.holder.top_liege = root } - exists = title:k_pontus.holder - title:k_pontus.holder.top_liege = scope:truce_breakee } - character:belisarius_001 = { - every_held_title = { - add_to_list = title_to_return - } - every_vassal = { - add_to_list = vassal_to_return + end_gothic_war_italia_effect = yes + } + if = { + limit = { + exists = title:k_croatia.holder + OR = { + title:k_croatia.holder = root + title:k_croatia.holder.top_liege = root } } - title:c_trebizond = { - save_temporary_scope_as = current_county - } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = no + end_gothic_war_croatia_effect = yes + title:k_pannonia = { + save_scope_as = title } - scope:current_county = { - change_title_holder = { - holder = character:belisarius_001 - change = scope:change - take_baronies = yes + trigger_event = tfe_title_event.0002 + } + if = { + limit = { + character:belisarius_001 = { + is_alive = yes + #is_ai = no + highest_held_title_tier <= tier_duchy + any_held_title = { + tier = tier_county + kingdom = title:k_italia_suburbicariae + } + top_liege = title:e_byzantium.holder } + NOT = { exists = global_var:belisarius_betrayal } } - resolve_title_and_vassal_change = scope:change - - title:k_pontus = { - save_temporary_scope_as = current_county - } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = no + title:k_italia_suburbicariae = { + save_scope_as = title } - scope:current_county = { + scope:title = { + create_title_and_vassal_change = { + type = granted + save_scope_as = change + add_claim_on_loss = no + } change_title_holder_include_vassals = { holder = character:belisarius_001 change = scope:change - take_baronies = no } + resolve_title_and_vassal_change = scope:change } - resolve_title_and_vassal_change = scope:change - - create_title_and_vassal_change = { - type = usurped - save_scope_as = title_change - add_claim_on_loss = no + } + else = { + title:k_italia_suburbicariae = { + save_scope_as = title } - every_in_list = { - list = title_to_return - change_title_holder = { - holder = character:belisarius_001.top_liege - change = scope:title_change - take_baronies = no + trigger_event = tfe_title_event.0002 + } + if = { + limit = { + character:belisarius_001 = { + is_alive = yes + #is_ai = no + highest_held_title_tier <= tier_duchy + any_held_title = { + tier = tier_county + kingdom = title:k_italia_annonariae + } + top_liege = title:e_byzantium.holder } + NOT = { exists = global_var:belisarius_betrayal } } - every_in_list = { - list = vassal_to_return - change_liege = { - liege = character:belisarius_001.top_liege - change = scope:title_change + title:k_italia_annonariae = { + save_scope_as = title + } + scope:title = { + create_title_and_vassal_change = { + type = granted + save_scope_as = change + add_claim_on_loss = no + } + change_title_holder_include_vassals = { + holder = character:belisarius_001 + change = scope:change } + resolve_title_and_vassal_change = scope:change } - resolve_title_and_vassal_change = scope:title_change } - } - - option = { - name = western_roman.0071.b - scope:peace_offerer = { - send_interface_toast = { - title = WHITE_PEACE_DECLINED - left_icon = root + else = { + title:k_italia_annonariae = { + save_scope_as = title } + trigger_event = tfe_title_event.0002 } ai_chance = { - base = 1 + base = 1000 } } } } { -western_roman.0072 = { - scope = none - hidden = yes +western_roman.0064 = { + type = character_event + title = western_roman.0064.t + desc = western_roman.0064.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = scope:truce_breaker + animation = personality_greedy + } + right_portrait = { + character = scope:truce_breakee + animation = rage + } + immediate = { title:e_byzantium.holder = { - save_scope_as = emperor + save_scope_as = truce_breakee } - if = { - limit = { - character:thracio_03 = { - is_alive = yes - } - OR = { - character:thracio_03 = { - is_landed = no - } - character:thracio_03 = { - is_landed = yes - top_liege = { has_title = title:e_byzantium } - capital_province = { geographical_region = custom_roman_africae } - } + title:e_persia.holder = { + save_scope_as = truce_breaker + } + } + + option = { + name = western_roman.0064.a + trigger = { + AND = { + scope:truce_breaker = { + character_is_land_realm_neighbor = scope:truce_breakee } - } - character:thracio_03 = { - save_scope_as = berber_leader + NOT = { scope:truce_breakee = { is_at_war_with = scope:truce_breaker } } } } - else_if = { - limit = { - character:mauro_roman_05 = { - is_alive = yes - is_landed = yes - top_liege = { has_title = title:e_byzantium } + scope:truce_breakee = { + random_sub_realm_county = { + limit = { + is_neighbor_to_realm = scope:truce_breaker } - } - character:mauro_roman_05 = { - save_scope_as = berber_leader + save_scope_as = target_title_eternal_placeholder } } - else = { - title:e_byzantium.holder = { - random_vassal_or_below = { - limit = { - highest_held_title_tier > tier_barony - OR = { - culture = { has_cultural_pillar = heritage_berber } - culture = culture:mauro_roman - } - } - save_scope_as = berber_leader - } + scope:truce_breaker = { + start_war = { + cb = TFE_gothic_outbreak_county_struggle_cb + target = scope:truce_breakee + target_title = scope:target_title_eternal_placeholder + claimant = scope:truce_breaker } } if = { limit = { - character:thracio_03 = { - is_alive = yes - is_landed = no + OR = { + scope:truce_breakee = { + any_character_war = { + using_cb = gothic_war_regular_cb + attacker_war_score <= 75 + } + } + AND = { + exists = title:k_ostrogoths.holder + title:k_ostrogoths.holder = { + any_character_war = { + using_cb = cb_gothic_wars_amalasuntha + defender_war_score <= 75 + } + } + } + scope:truce_breakee = { + any_vassal_or_below = { + any_character_war = { + using_cb = gothic_duchy_conquest_cb + attacker_war_score <= 75 + } + } + } } - scope:berber_leader = character:thracio_03 - } - title:c_qashtiliya = { - save_temporary_scope_as = current_county } - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = no + scope:truce_breakee = { + trigger_event = { + id = western_roman.0065 + days = 1 + } } - scope:current_county = { - change_title_holder = { - holder = scope:berber_leader - change = scope:change - take_baronies = yes + } + ai_chance = { + base = 1 + } + } + option = { + name = western_roman.0064.b + trigger = { + AND = { + exists = title:d_abkhazia.holder + title:d_abkhazia.holder = { + exists = var:my_suzerain + var:my_suzerain = scope:truce_breakee } + NOT = { title:d_abkhazia.holder = { is_at_war_with = scope:truce_breaker } } } - resolve_title_and_vassal_change = scope:change } - if = { + scope:truce_breaker = { + start_war = { + cb = individual_duchy_de_jure_cb + target = title:d_abkhazia.holder + target_title = title:d_abkhazia + claimant = scope:truce_breaker + } + } + if = { limit = { - character:mauro_roman_05 = { - is_alive = yes - is_landed = yes - top_liege = { has_title = title:e_byzantium } - } - character:mauro_roman_06 = { - is_alive = yes - is_married = no - } - character:thracio_03 = { - is_alive = yes - is_married = no + OR = { + scope:truce_breakee = { + any_character_war = { + using_cb = gothic_war_regular_cb + attacker_war_score <= 75 + } + } + AND = { + exists = title:k_ostrogoths.holder + title:k_ostrogoths.holder = { + any_character_war = { + using_cb = cb_gothic_wars_amalasuntha + defender_war_score <= 75 + } + } + } + scope:truce_breakee = { + any_vassal_or_below = { + any_character_war = { + using_cb = gothic_duchy_conquest_cb + attacker_war_score <= 75 + } + } + } } - scope:berber_leader = character:thracio_03 } - character:mauro_roman_05 = { + scope:truce_breakee = { trigger_event = { - id = western_roman.0073 + id = western_roman.0065 days = 1 } } } - title:e_byzantium.holder = { - every_vassal_or_below = { - limit = { - highest_held_title_tier > tier_barony - OR = { - culture = { has_cultural_pillar = heritage_berber } - culture = culture:mauro_roman + ai_chance = { + base = 100 + } + } + option = { + name = western_roman.0064.c + ai_chance = { + base = 1 + } + } +} + +western_roman.0065 = { + type = character_event + title = western_roman.0065.t + desc = western_roman.0065.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = scope:truce_breaker + animation = personality_greedy + } + right_portrait = { + character = scope:truce_breakee + animation = rage + } + + option = { + name = western_roman.0065.a + trigger = { + OR = { + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = gothic_war_regular_cb } - NOT = { this = scope:berber_leader } } - trigger_event = { - id = western_roman.0075 - days = 2 + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = cb_gothic_wars_amalasuntha + } + } + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = gothic_duchy_conquest_cb + } } } } - title:e_byzantium.holder = { + character:belisarius_001 = { trigger_event = { - id = western_roman.0077 - days = 2 + id = western_roman.0066 + days = 1 } } - if = { - limit = { - exists = title:k_mauro_roman_kingdom.holder - } - title:k_mauro_roman_kingdom.holder = { - trigger_event = { - id = western_roman.0075 - days = 2 + ai_chance = { + base = 100 + } + } + option = { + name = western_roman.0065.b + trigger = { + NOT = { + OR = { + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = gothic_war_regular_cb + } + } + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = cb_gothic_wars_amalasuntha + } + } + character:belisarius_001 = { + is_alive = yes + is_landed = yes + any_character_war = { + using_cb = gothic_duchy_conquest_cb + } + } } } } - if = { - limit = { - exists = title:d_avaritana.holder - } - title:d_avaritana.holder = { - trigger_event = { - id = western_roman.0075 - days = 2 - } + save_scope_as = peace_offerer + title:k_ostrogoths.holder = { + trigger_event = western_roman.0071 + } + ai_chance = { + base = 100 + } + } + option = { + name = western_roman.0065.c + ai_chance = { + base = 1 + } + } +} + +western_roman.0066 = { + type = character_event + title = western_roman.0066.t + desc = western_roman.0066.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = scope:truce_breaker + animation = personality_greedy + } + right_portrait = { + character = scope:truce_breakee + animation = rage + } + + option = { + name = western_roman.0066.a + struggle:italian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_TFE_major_historical_event_devastation + character = root + } + } + scope:truce_breakee = { + trigger_event = { + id = western_roman.0067 + days = 1 } } if = { limit = { - exists = title:d_zaba.holder + exists = title:k_ostrogoths.holder } - title:d_zaba.holder = { + title:k_ostrogoths.holder = { trigger_event = { - id = western_roman.0076 - days = 2 + id = western_roman.0068 + days = 1 } } } + scope:truce_breakee = { + add_opinion = { + modifier = anger_opinion + target = character:belisarius_001 + opinion = -50 + } + } + character:belisarius_001 = { + remove_trait = loyal + } if = { limit = { - exists = title:d_naffur.holder - } - title:d_naffur.holder = { - trigger_event = { - id = western_roman.0075 - days = 2 + character:belisarius_001 = { + has_trait = calm + NOT = { has_trait = deceitful } + NOT = { has_trait = honest } } } - } - scope:berber_leader = { - trigger_event = { - id = western_roman.0074 - days = 1 + character:belisarius_001 = { + remove_trait = calm + add_trait = deceitful } } + ai_chance = { + base = 100 + } } -} + option = { + name = western_roman.0066.b + custom_tooltip = western_roman.0066.b.tooltip + save_scope_as = peace_offerer + title:k_ostrogoths.holder = { + trigger_event = western_roman.0071 + } + ai_chance = { + base = 1 + } } } + } -"events/germanic_events.txt" = { { -germanic_events.0014 = { - title = germanic_events.0014.t - desc = germanic_events.0014.desc - scope = character +western_roman.0068 = { + type = character_event + title = western_roman.0068.t + desc = western_roman.0068.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } theme = realm - left_portrait = { - character = scope:suitor_1 - animation = personality_greedy - } - right_portrait = { - character = scope:suitor_2 - animation = personality_greedy + character = root + animation = personality_bold } - lower_center_portrait = { - character = scope:suitor_3 - animation = personality_greedy + + option = { + name = western_roman.0068.a + character:belisarius_001 = { + trigger_event = { + id = western_roman.0069 + days = 1 + } + } + ai_chance = { + base = 100 + } } - immediate = { - if = { - limit = { - character:992100 = { - is_alive = yes - is_landed = yes - is_vassal_of = root - is_betrothed = no - is_married = no - } + option = { + name = western_roman.0068.b + ai_chance = { + base = 1 + } + } +} + +western_roman.0069 = { + type = character_event + title = western_roman.0069.t + desc = western_roman.0069.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = personality_bold + } + + option = { + name = western_roman.0069.a + struggle:italian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_TFE_major_historical_event_devastation + character = root + } + } + set_global_variable = { + name = belisarius_betrayal + value = yes + } + set_global_variable = { + name = belisarius_betrayal_white_peace + value = yes + } + scope:truce_breakee = { + set_relation_rival = { + target = root + reason = rival_betrayed_friendship } - character:992100 = { - save_scope_as = suitor_1 + } + add_opinion = { + modifier = hate_opinion + target = scope:truce_breakee + opinion = -100 + } + reverse_add_opinion = { + modifier = hate_opinion + target = scope:truce_breakee + opinion = -100 + } + scope:truce_breakee = { + trigger_event = { + id = western_roman.0070 + days = 1 } } - else = { - random_vassal = { + character:belisarius_001 = { + if = { limit = { - is_male = yes - is_betrothed = no - is_married = no - exists = dynasty - NOT = { dynasty = root.dynasty } + has_trait = loyal } - save_scope_as = suitor_1 + remove_trait = loyal } - } - if = { - limit = { - character:992030 = { - is_alive = yes - is_landed = yes - is_betrothed = no - is_married = no - is_vassal_of = root - } + else = { + add_trait = disloyal } - character:992030 = { - save_scope_as = suitor_2 + every_character_war = { + limit = { + OR = { + using_cb = gothic_duchy_conquest_cb + using_cb = cb_gothic_wars_amalasuntha + using_cb = gothic_war_regular_cb + } + } + end_war = white_peace } - } - else = { - random_vassal = { + get_title = title:e_western_roman_empire + if = { limit = { - is_male = yes - is_betrothed = no - is_married = no - exists = dynasty - NOT = { dynasty = root.dynasty } - NOT = { scope:suitor_1 = THIS } + exists = title:e_italy.holder + title:e_italy.holder = title:k_ostrogoths.holder } - save_scope_as = suitor_2 + destroy_title = title:e_italy } - } - if = { - limit = { - character:rugian_17 = { - is_alive = yes - is_landed = yes - is_betrothed = no - is_married = no - is_vassal_of = root + create_title_and_vassal_change = { + type = swear_fealty + save_scope_as = changev + add_claim_on_loss = no + } + title:k_ostrogoths.holder = { + change_liege = { + liege = character:belisarius_001 + change = scope:changev } } - character:rugian_17 = { - save_scope_as = suitor_3 + resolve_title_and_vassal_change = scope:changev + title:k_ostrogoths.holder = { + save_scope_as = destroychar + every_held_title = { + limit = { + tier >= tier_kingdom + } + scope:destroychar = { destroy_title = prev } + } } - } - else = { - random_vassal = { - limit = { - is_male = yes - is_betrothed = no - is_married = no - exists = dynasty - NOT = { dynasty = root.dynasty } - NOT = { scope:suitor_1 = THIS } - NOT = { scope:suitor_2 = THIS } + scope:truce_breakee = { + start_war = { + cb = gothic_subjugation_cb + target = character:belisarius_001 + claimant = scope:truce_breakee } - save_scope_as = suitor_3 } } + ai_chance = { + base = 1 + } } option = { - name = germanic_events.0014.option.a - trigger = { - exists = scope:suitor_1 - scope:suitor_1 = { - is_alive = yes - is_landed = yes - is_betrothed = no - is_married = no - is_vassal_of = root - } - } - character:992024 = { - create_betrothal = scope:suitor_1 - } - character:992023 = { - create_alliance = { - target = scope:suitor_1 - allied_through_owner = character:992024 - allied_through_target = scope:suitor_1 + name = western_roman.0069.b + if = { + limit = { + character:belisarius_001 = { + NOT = { has_trait = loyal } + } } - } - ai_chance = { - base = 10 - modifier = { - scope:suitor_1 = character:992100 - add = 90 + character:belisarius_001 = { + remove_trait = disloyal + add_trait = loyal } } + ai_chance = { + base = 100 + } + } +} + } + + { +western_roman.0071 = { + type = character_event + title = western_roman.0071.t + desc = western_roman.0071.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = worry } + option = { - name = germanic_events.0014.option.b - trigger = { - exists = scope:suitor_2 - scope:suitor_2 = { - is_alive = yes - is_landed = yes - is_betrothed = no - is_married = no - is_vassal_of = root + name = western_roman.0071.a + struggle:italian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_TFE_major_historical_event_rebuilding + character = root + } + } + ai_chance = { + base = 100 + } + scope:peace_offerer = { + send_interface_toast = { + title = WHITE_PEACE_ACCEPTED + left_icon = root } } - character:992024 = { - create_betrothal = scope:suitor_2 - } - character:992023 = { - create_alliance = { - target = scope:suitor_2 - allied_through_owner = character:992024 - allied_through_target = scope:suitor_2 + end_gothic_war_early_effect = yes + if = { + limit = { + character:belisarius_001 = { + is_landed = yes + top_liege = scope:truce_breakee + } + exists = title:k_pontus.holder + title:k_pontus.holder.top_liege = scope:truce_breakee } - } - ai_chance = { - base = 10 - modifier = { - exists = scope:suitor_1 - scope:suitor_1 = character:992100 - add = -10 + character:belisarius_001 = { + every_held_title = { + add_to_list = title_to_return + } + every_vassal = { + add_to_list = vassal_to_return + } } - } - } - option = { - name = germanic_events.0014.option.c - trigger = { - exists = scope:suitor_3 - scope:suitor_3 = { - is_alive = yes - is_landed = yes - is_betrothed = no - is_married = no - is_vassal_of = root + title:c_trebizond = { + save_temporary_scope_as = current_county } - } - character:992024 = { - create_betrothal = scope:suitor_3 - } - character:992023 = { - create_alliance = { - target = scope:suitor_3 - allied_through_owner = character:992024 - allied_through_target = scope:suitor_3 + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no } - } - ai_chance = { - base = 10 - modifier = { - exists = scope:suitor_1 - scope:suitor_1 = character:992100 - add = -10 + scope:current_county = { + change_title_holder = { + holder = character:belisarius_001 + change = scope:change + take_baronies = yes + } + } + resolve_title_and_vassal_change = scope:change + + title:k_pontus = { + save_temporary_scope_as = current_county + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no + } + scope:current_county = { + change_title_holder_include_vassals = { + holder = character:belisarius_001 + change = scope:change + take_baronies = no + } + } + resolve_title_and_vassal_change = scope:change + + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = no + } + every_in_list = { + list = title_to_return + change_title_holder = { + holder = character:belisarius_001.top_liege + change = scope:title_change + take_baronies = no + } + } + every_in_list = { + list = vassal_to_return + change_liege = { + liege = character:belisarius_001.top_liege + change = scope:title_change + } } + resolve_title_and_vassal_change = scope:title_change } } + option = { - name = germanic_events.0014.option.d - ai_chance = { - base = 1 + name = western_roman.0071.b + scope:peace_offerer = { + send_interface_toast = { + title = WHITE_PEACE_DECLINED + left_icon = root + } } + ai_chance = { + base = 1 + } } } } { -germanic_events.0015 = { +western_roman.0072 = { scope = none hidden = yes - immediate = { - #title:k_ostrogoths.holder = { - # add_gold = 50000 - #} - character:992020 = { - save_scope_as = regent + title:e_byzantium.holder = { + save_scope_as = emperor } - title:k_ostrogoths.holder = { - if = { - limit = { - dynasty = scope:regent.dynasty - } - title:k_ostrogoths.holder = { - add_character_flag = { - flag = deposed - years = 1 - } + if = { + limit = { + character:thracio_03 = { + is_alive = yes } - if = { - limit = { - any_vassal = { - THIS = character:992022 - } + OR = { + character:thracio_03 = { + is_landed = no } - character:992022 = { - save_scope_as = ostrogoth_king + character:thracio_03 = { + is_landed = yes + top_liege = { has_title = title:e_byzantium } + capital_province = { geographical_region = custom_roman_africae } } } - else_if = { - limit = { - any_vassal = { - THIS = character:992100 - } - } - character:992100 = { - save_scope_as = ostrogoth_king - } + } + character:thracio_03 = { + save_scope_as = berber_leader + } + } + else_if = { + limit = { + character:mauro_roman_05 = { + is_alive = yes + is_landed = yes + top_liege = { has_title = title:e_byzantium } } - else_if = { + } + character:mauro_roman_05 = { + save_scope_as = berber_leader + } + } + else = { + title:e_byzantium.holder = { + random_vassal_or_below = { limit = { - any_vassal = { - is_greek_or_roman = no - } - } - random_vassal = { - limit = { - is_greek_or_roman = no + highest_held_title_tier > tier_barony + OR = { + culture = { has_cultural_pillar = heritage_berber } + culture = culture:mauro_roman } - save_scope_as = ostrogoth_king } + save_scope_as = berber_leader } } - else = { - title:k_ostrogoths.holder = { - save_scope_as = ostrogoth_king + } + if = { + limit = { + character:thracio_03 = { + is_alive = yes + is_landed = no + } + scope:berber_leader = character:thracio_03 + } + title:c_qashtiliya = { + save_temporary_scope_as = current_county + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no + } + scope:current_county = { + change_title_holder = { + holder = scope:berber_leader + change = scope:change + take_baronies = yes } } + resolve_title_and_vassal_change = scope:change } - title:e_byzantium.holder = { - save_scope_as = emperor + if = { + limit = { + character:mauro_roman_05 = { + is_alive = yes + is_landed = yes + top_liege = { has_title = title:e_byzantium } + } + character:mauro_roman_06 = { + is_alive = yes + is_married = no + } + character:thracio_03 = { + is_alive = yes + is_married = no + } + scope:berber_leader = character:thracio_03 + } + character:mauro_roman_05 = { + trigger_event = { + id = western_roman.0073 + days = 1 + } + } } - title:k_ostrogoths.holder = { - every_vassal = { + title:e_byzantium.holder = { + every_vassal_or_below = { limit = { - highest_held_title_tier >= tier_county + highest_held_title_tier > tier_barony + OR = { + culture = { has_cultural_pillar = heritage_berber } + culture = culture:mauro_roman + } + NOT = { this = scope:berber_leader } + } + trigger_event = { + id = western_roman.0075 + days = 2 + } + } + } + title:e_byzantium.holder = { + trigger_event = { + id = western_roman.0077 + days = 2 + } + } + if = { + limit = { + exists = title:k_mauro_roman_kingdom.holder + } + title:k_mauro_roman_kingdom.holder = { + trigger_event = { + id = western_roman.0075 + days = 2 + } + } + } + if = { + limit = { + exists = title:d_avaritana.holder + } + title:d_avaritana.holder = { + trigger_event = { + id = western_roman.0075 + days = 2 + } + } + } + if = { + limit = { + exists = title:d_zaba.holder + } + title:d_zaba.holder = { + trigger_event = { + id = western_roman.0076 + days = 2 + } + } + } + if = { + limit = { + exists = title:d_naffur.holder + } + title:d_naffur.holder = { + trigger_event = { + id = western_roman.0075 + days = 2 + } + } + } + scope:berber_leader = { + trigger_event = { + id = western_roman.0074 + days = 1 + } + } + } +} + +western_roman.0073 = { + type = character_event + title = western_roman.0073.t + desc = western_roman.0073.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = personality_bold + } + right_portrait = { + character = character:thracio_03 + animation = personality_bold + } + + option = { + name = western_roman.0073.a + character:thracio_03 = { + marry = character:mauro_roman_06 + } + ai_chance = { + base = 100 + } + } + option = { + name = western_roman.0073.b + ai_chance = { + base = 0 + } + } +} + +western_roman.0074 = { + type = character_event + title = western_roman.0074.t + desc = western_roman.0074.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = personality_bold + } + + immediate = { + title:e_byzantium.holder = { + random_vassal_or_below = { + limit = { + highest_held_title_tier > tier_barony + OR = { + culture = { has_cultural_pillar = heritage_berber } + culture = culture:mauro_roman + } + } + weight = { + base = 1 + modifier = { + add = 5 + primary_title.tier >= tier_duchy + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + } + save_scope_as = berber_leader_replacement + } + } + } + + option = { + name = western_roman.0074.a + spawn_army = { + name = "Roman Deserters" + levies = 600 + men_at_arms = { + type = clibanarius + stacks = 1 + } + men_at_arms = { + type = cataphract + stacks = 1 + } + men_at_arms = { + type = scorpio + stacks = 2 + } + men_at_arms = { + type = armored_footmen + stacks = 2 + } + men_at_arms = { + type = bowmen + stacks = 1 + } + location = scope:berber_leader.capital_province + inheritable = no + } + scope:berber_leader = { + set_relation_rival = { + target = scope:emperor + reason = rival_age_old_rivalry + } + add_prestige = 500 + start_war = { + cb = independence_war_berber + target = scope:emperor + } + } + ai_chance = { base = 100 } + } + option = { + name = western_roman.0074.b + + scope:berber_leader_replacement = { + save_scope_as = berber_leader + } + + scope:berber_leader = { + spawn_army = { + name = "Roman Deserters" + levies = 600 + men_at_arms = { + type = clibanarius + stacks = 1 + } + men_at_arms = { + type = cataphract + stacks = 1 + } + men_at_arms = { + type = scorpio + stacks = 2 + } + men_at_arms = { + type = armored_footmen + stacks = 2 + } + men_at_arms = { + type = bowmen + stacks = 1 + } + location = scope:berber_leader.capital_province + inheritable = no + } + scope:berber_leader = { + set_relation_rival = { + target = scope:emperor + reason = rival_age_old_rivalry + } + add_prestige = 500 + start_war = { + cb = independence_war_berber + target = scope:emperor + } + } + } + + ai_chance = { base = 0 } + } +} + +western_roman.0075 = { + type = character_event + title = western_roman.0075.t + desc = western_roman.0075.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = personality_bold + } + + option = { + name = western_roman.0075.a + if = { + limit = { + root = character:mauro_roman_05 + exists = title:k_mauro_roman_kingdom.holder + NOT = { top_liege = title:k_mauro_roman_kingdom.holder } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = yes + } + character:mauro_roman_05 = { + change_liege = { + liege = title:k_mauro_roman_kingdom.holder + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + character:mauro_roman_05 = { + add_unpressed_claim = title:k_mauro_roman_kingdom + create_alliance = { + target = title:k_mauro_roman_kingdom.holder + allied_through_owner = root + allied_through_target = title:k_mauro_roman_kingdom.holder + } + } + } + scope:emperor = { + every_character_war = { + limit = { + using_cb = independence_war_berber + casus_belli = { + primary_defender = scope:emperor + } + } + add_attacker = root + } + } + add_character_flag = should_become_independent + ai_chance = { + base = 100 + } + } + option = { + name = western_roman.0075.b + ai_chance = { + base = 0 + } + } +} + } + + { +western_roman.0077 = { + type = character_event + title = western_roman.0077.t + desc = western_roman.0077.desc + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + theme = realm + left_portrait = { + character = root + animation = rage + } + right_portrait = { + character = character:thracio_03 + animation = personality_bold + } + + option = { + name = western_roman.0077.a + ai_chance = { + base = 100 + } + } +} + } +} + +"events/germanic_events.txt" = { + { +germanic_events.0014 = { + title = germanic_events.0014.t + desc = germanic_events.0014.desc + scope = character + theme = realm + + left_portrait = { + character = scope:suitor_1 + animation = personality_greedy + } + right_portrait = { + character = scope:suitor_2 + animation = personality_greedy + } + lower_center_portrait = { + character = scope:suitor_3 + animation = personality_greedy + } + + immediate = { + if = { + limit = { + character:992100 = { + is_alive = yes + is_landed = yes + is_vassal_of = root + is_betrothed = no + is_married = no + } + } + character:992100 = { + save_scope_as = suitor_1 + } + } + else = { + random_vassal = { + limit = { + is_male = yes + is_betrothed = no + is_married = no + exists = dynasty + NOT = { dynasty = root.dynasty } + } + save_scope_as = suitor_1 + } + } + if = { + limit = { + character:992030 = { + is_alive = yes + is_landed = yes + is_betrothed = no + is_married = no + is_vassal_of = root + } + } + character:992030 = { + save_scope_as = suitor_2 + } + } + else = { + random_vassal = { + limit = { + is_male = yes + is_betrothed = no + is_married = no + exists = dynasty + NOT = { dynasty = root.dynasty } + NOT = { scope:suitor_1 = THIS } + } + save_scope_as = suitor_2 + } + } + if = { + limit = { + character:rugian_17 = { + is_alive = yes + is_landed = yes + is_betrothed = no + is_married = no + is_vassal_of = root + } + } + character:rugian_17 = { + save_scope_as = suitor_3 + } + } + else = { + random_vassal = { + limit = { + is_male = yes + is_betrothed = no + is_married = no + exists = dynasty + NOT = { dynasty = root.dynasty } + NOT = { scope:suitor_1 = THIS } + NOT = { scope:suitor_2 = THIS } + } + save_scope_as = suitor_3 + } + } + } + + option = { + name = germanic_events.0014.option.a + trigger = { + exists = scope:suitor_1 + scope:suitor_1 = { + is_alive = yes + is_landed = yes + is_betrothed = no + is_married = no + is_vassal_of = root + } + } + character:992024 = { + create_betrothal = scope:suitor_1 + } + character:992023 = { + create_alliance = { + target = scope:suitor_1 + allied_through_owner = character:992024 + allied_through_target = scope:suitor_1 + } + } + ai_chance = { + base = 10 + modifier = { + scope:suitor_1 = character:992100 + add = 90 + } + } + } + option = { + name = germanic_events.0014.option.b + trigger = { + exists = scope:suitor_2 + scope:suitor_2 = { + is_alive = yes + is_landed = yes + is_betrothed = no + is_married = no + is_vassal_of = root + } + } + character:992024 = { + create_betrothal = scope:suitor_2 + } + character:992023 = { + create_alliance = { + target = scope:suitor_2 + allied_through_owner = character:992024 + allied_through_target = scope:suitor_2 + } + } + ai_chance = { + base = 10 + modifier = { + exists = scope:suitor_1 + scope:suitor_1 = character:992100 + add = -10 + } + } + } + option = { + name = germanic_events.0014.option.c + trigger = { + exists = scope:suitor_3 + scope:suitor_3 = { + is_alive = yes + is_landed = yes + is_betrothed = no + is_married = no + is_vassal_of = root + } + } + character:992024 = { + create_betrothal = scope:suitor_3 + } + character:992023 = { + create_alliance = { + target = scope:suitor_3 + allied_through_owner = character:992024 + allied_through_target = scope:suitor_3 + } + } + ai_chance = { + base = 10 + modifier = { + exists = scope:suitor_1 + scope:suitor_1 = character:992100 + add = -10 + } + } + } + option = { + name = germanic_events.0014.option.d + ai_chance = { + base = 1 + } + } +} + } + + { +germanic_events.0015 = { + scope = none + hidden = yes + + immediate = { + #title:k_ostrogoths.holder = { + # add_gold = 50000 + #} + character:992020 = { + save_scope_as = regent + } + title:k_ostrogoths.holder = { + if = { + limit = { + dynasty = scope:regent.dynasty + } + title:k_ostrogoths.holder = { + add_character_flag = { + flag = deposed + years = 1 + } + } + if = { + limit = { + any_vassal = { + THIS = character:992022 + } + } + character:992022 = { + save_scope_as = ostrogoth_king + } + } + else_if = { + limit = { + any_vassal = { + THIS = character:992100 + } + } + character:992100 = { + save_scope_as = ostrogoth_king + } + } + else_if = { + limit = { + any_vassal = { + is_greek_or_roman = no + } + } + random_vassal = { + limit = { + is_greek_or_roman = no + } + save_scope_as = ostrogoth_king + } + } + } + else = { + title:k_ostrogoths.holder = { + save_scope_as = ostrogoth_king + } + } + } + title:e_byzantium.holder = { + save_scope_as = emperor + } + title:k_ostrogoths.holder = { + every_vassal = { + limit = { + highest_held_title_tier >= tier_county is_ai = yes NOT = { is_in_list = roman_vassals } NOT = { is_in_list = ostrogoth_vassals } } - save_scope_as = deciding_vassal - random_list = { - 50 = { #Side with Romans - modifier = { - add = -500 - OR = { - #Future Ostrogothic kings - THIS = character:992022 - THIS = character:992100 - THIS = character:992030 - THIS = character:rugian_17 - THIS = character:992029 - THIS = character:992104 - THIS = scope:ostrogoth_king - } - } - modifier = { - add = 20 - scope:deciding_vassal = { - is_greek_or_roman = yes - } - } - modifier = { - add = -20 - scope:deciding_vassal = { - culture = { - has_cultural_pillar = heritage_east_germanic - } - } - } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:roman_king - multiplier = 0.25 - } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:emperor - multiplier = 0.25 - } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:ostrogoth_king - multiplier = -0.5 - } - add_to_list = roman_vassals + save_scope_as = deciding_vassal + random_list = { + 50 = { #Side with Romans + modifier = { + add = -500 + OR = { + #Future Ostrogothic kings + THIS = character:992022 + THIS = character:992100 + THIS = character:992030 + THIS = character:rugian_17 + THIS = character:992029 + THIS = character:992104 + THIS = scope:ostrogoth_king + } + } + modifier = { + add = 20 + scope:deciding_vassal = { + is_greek_or_roman = yes + } + } + modifier = { + add = -20 + scope:deciding_vassal = { + culture = { + has_cultural_pillar = heritage_east_germanic + } + } + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:roman_king + multiplier = 0.25 + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:emperor + multiplier = 0.25 + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:ostrogoth_king + multiplier = -0.5 + } + add_to_list = roman_vassals + } + 50 = { #Side with Ostrogoths + modifier = { + add = 500 + OR = { + #Future Ostrogothic kings + THIS = character:992022 + THIS = character:992100 + THIS = character:992030 + THIS = character:rugian_17 + THIS = character:992029 + THIS = character:992104 + THIS = scope:ostrogoth_king + } + } + modifier = { + add = 20 + scope:deciding_vassal = { + culture = { + has_cultural_pillar = heritage_east_germanic + } + } + } + modifier = { + add = -20 + scope:deciding_vassal = { + is_greek_or_roman = yes + } + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:roman_king + multiplier = -0.25 + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:emperor + multiplier = -0.25 + } + opinion_modifier = { + who = scope:deciding_vassal + opinion_target = scope:ostrogoth_king + multiplier = 0.5 + } + add_to_list = ostrogoth_vassals + } + } + } + } + + if = { + limit = { + scope:roman_king = { + is_landed = yes + } + } + scope:roman_king = { + every_held_title = { + add_to_list = revert_to_emperor_titles + } + every_vassal = { + add_to_list = revert_to_emperor_vassals + } + } + } + + if = { + limit = { + character:992020 = { + is_landed = yes + } + } + character:992020 = { + every_held_title = { + add_to_list = titles_to_usurp + } + every_vassal = { + add_to_list = roman_vassals + } + } + } + + if = { + limit = { + title:k_ostrogoths.holder = { + has_character_flag = deposed + } + } + + title:k_ostrogoths.holder = { + add_to_list = roman_vassals + every_held_title = { + limit = { + tier = tier_kingdom + } + add_to_list = revert_to_goths_titles + } + every_vassal = { + add_to_list = revert_to_goths_vassals + } + } + + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = yes + } + every_in_list = { + list = revert_to_goths_titles + change_title_holder = { + holder = scope:ostrogoth_king + change = scope:title_change + take_baronies = no + } + } + every_in_list = { + list = revert_to_goths_vassals + change_liege = { + liege = scope:ostrogoth_king + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + } + + title:c_roma = { + save_temporary_scope_as = current_county + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = change + add_claim_on_loss = no + } + scope:current_county = { + change_title_holder = { + holder = scope:roman_king + change = scope:change + take_baronies = yes + } + } + resolve_title_and_vassal_change = scope:change + + if = { + limit = { + scope:roman_king = { + any_held_title = { + NOT = { THIS = title:c_roma } + } + } + } + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = yes + } + every_in_list = { + list = revert_to_emperor_titles + change_title_holder = { + holder = scope:emperor + change = scope:title_change + take_baronies = no + } + } + every_in_list = { + list = revert_to_emperor_vassals + change_liege = { + liege = scope:emperor + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + } + + + scope:ostrogoth_king = { + every_held_title = { + limit = { + NOT = { this = title:k_ostrogoths } + tier = tier_kingdom + } + add_to_list = titles_to_usurp + clear_title_laws = yes + } + } + + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = yes + } + every_in_list = { + list = titles_to_usurp + change_title_holder = { + holder = scope:roman_king + change = scope:title_change + take_baronies = no + } + } + every_in_list = { + list = roman_vassals + change_liege = { + liege = scope:roman_king + change = scope:title_change + } + } + resolve_title_and_vassal_change = scope:title_change + + scope:ostrogoth_king = { + set_relation_rival = { + target = scope:roman_king + reason = rival_usurper + } + } + + if = { + limit = { + scope:roman_king = { + is_independent_ruler = no + } + } + scope:roman_king = { + create_title_and_vassal_change = { + type = independency + save_scope_as = going_independent + add_claim_on_loss = no + } + becomes_independent = { + change = scope:going_independent + } + resolve_title_and_vassal_change = scope:going_independent + } + } + + scope:ostrogoth_king = { + start_war = { + cb = cb_gothic_wars_amalasuntha + target = scope:roman_king + } + } + + scope:emperor = { + trigger_event = { + id = germanic_events.0016 + days = 1 + } + } + scope:ostrogoth_king = { + trigger_event = { + id = germanic_events.0017 + days = 1 + } + } + every_player = { + limit = { + OR = { + is_vassal_of = scope:ostrogoth_king + is_vassal_of = scope:roman_king + } + } + trigger_event = { + id = germanic_events.0018 + days = 1 + } + } + } +} + } + + { +germanic_events.0019 = { + title = germanic_events.0019.t + desc = germanic_events.0019.desc + scope = character + theme = realm + override_background = { + reference = corridor_night + } + + left_portrait = { + character = root + animation = personality_greedy + } + + right_portrait = { + character = character:992020 + animation = fear + } + + option = { + name = germanic_events.0019.a + root = { + end_diarchy = yes + imprison = { + target = character:992020 + type = house_arrest + } + } + character:992020 = { + add_opinion = { + modifier = hate_opinion + target = root + opinion = -50 + } + } + set_global_variable = { + name = gothic_war_cycle_active + value = yes + } + #if = { + # limit = { + # exists = title:e_byzantium.holder + # } + # title:e_byzantium.holder = { + # trigger_event = { + # id = germanic_events.0022 + # days = 1 + # } + # } + #} + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = no + add = 100 + } + } + } + option = { + name = germanic_events.0019.b + character:992020 = { + add_opinion = { + modifier = grateful_opinion + target = root + opinion = 20 + } + } + root = { + add_hook = { + target = character:992020 + type = favor_hook + } + } + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = yes + add = 100 + } + } + } +} + +germanic_events.0020 = { + title = germanic_events.0020.t + desc = germanic_events.0020.desc + scope = character + theme = realm + override_background = { + reference = corridor_night + } + + left_portrait = { + character = root + animation = personality_greedy + } + + right_portrait = { + character = character:992020 + animation = fear + } + + option = { + name = germanic_events.0020.a + root = { + imprison = { + target = character:992020 + type = house_arrest + } + } + character:992020 = { + add_opinion = { + modifier = hate_opinion + target = root + opinion = -50 + } + } + set_global_variable = { + name = gothic_war_cycle_active + value = yes + } + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = no + add = 100 + } + } + } + option = { + name = germanic_events.0020.b + character:992020 = { + add_opinion = { + modifier = grateful_opinion + target = root + opinion = 20 + } + } + root = { + add_hook = { + target = character:992020 + type = favor_hook + } + } + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = yes + add = 100 + } + } + } +} + +germanic_events.0021 = { + title = germanic_events.0021.t + desc = germanic_events.0021.desc + scope = character + theme = realm + override_background = { + reference = corridor_night + } + + left_portrait = { + character = root + animation = personality_bold + } + + right_portrait = { + character = character:992020 + animation = personality_greedy + } + + immediate = { + root = { + save_scope_as = actor + } + character:992020 = { + save_scope_as = recipient + } + } + + option = { + name = germanic_events.0021.a + scope:recipient = { + add_opinion = { + modifier = respect_opinion + target = scope:actor + opinion = -20 + } + } + send_child_to_clergy_effect = yes + if = { + limit = { + exists = title:e_byzantium.holder + } + scope:recipient = { + visit_court_of = title:e_byzantium.holder + } + } + else = { + scope:recipient = { + kick_from_court_interaction_effect = yes + } + } + set_global_variable = { + name = gothic_war_cycle_active + value = yes + } + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = no + add = 100 + } + } + } + option = { + name = germanic_events.0021.b + character:992020 = { + add_opinion = { + modifier = love_opinion + target = root + opinion = 20 + } + } + root = { + add_hook = { + target = character:992020 + type = favor_hook + } + } + ai_chance = { + base = 1 + modifier = { + is_greek_or_roman = yes + add = 100 + } + } + } +} + +germanic_events.0022 = { + title = germanic_events.0022.t + desc = germanic_events.0022.desc + scope = character + theme = realm + override_background = { + reference = corridor_night + } + + left_portrait = { + character = root + animation = anger + } + + right_portrait = { + character = character:992020 + animation = fear + } + + option = { + name = germanic_events.0022.a + set_global_variable = { + name = gothic_war_cycle_active + value = yes + } + trigger_event = { + id = germanic_events.0025 + days = 1 + } + ai_chance = { + base = 0 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius + } + } + add = 50 + } + } + } + option = { + name = germanic_events.0022.b + set_global_variable = { + name = gothic_war_cycle_prep + value = yes + } + ai_chance = { + base = 50 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius } - 50 = { #Side with Ostrogoths - modifier = { - add = 500 - OR = { - #Future Ostrogothic kings - THIS = character:992022 - THIS = character:992100 - THIS = character:992030 - THIS = character:rugian_17 - THIS = character:992029 - THIS = character:992104 - THIS = scope:ostrogoth_king - } - } - modifier = { - add = 20 - scope:deciding_vassal = { - culture = { - has_cultural_pillar = heritage_east_germanic - } - } - } - modifier = { - add = -20 - scope:deciding_vassal = { - is_greek_or_roman = yes + } + add = -50 + } + } + } +} + +germanic_events.0023 = { + title = germanic_events.0023.t + desc = germanic_events.0023.desc + scope = character + theme = realm + override_background = { + reference = corridor_night + } + + left_portrait = { + character = root + animation = anger + } + + right_portrait = { + character = character:992020 + animation = fear + } + + option = { + name = germanic_events.0023.a + set_global_variable = { + name = gothic_war_cycle_active + value = yes + } + trigger_event = { + id = germanic_events.0025 + days = 1 + } + ai_chance = { + base = 0 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius + } + } + add = 50 + } + } + } + option = { + name = germanic_events.0023.b + set_global_variable = { + name = gothic_war_cycle_prep + value = yes + } + ai_chance = { + base = 50 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius + } + } + add = -50 + } + } + } +} + } + + { +germanic_events.0025 = { + type = character_event + title = germanic_events.0025.t + desc = germanic_events.0025.desc + theme = realm + override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + + left_portrait = { + character = title:e_byzantium.holder + animation = personality_bold + } + lower_center_portrait = { + character = scope:commander_2 + animation = personality_bold + } + right_portrait = { + character = scope:commander_1 + animation = personality_bold + } + + immediate = { + struggle:italian_struggle = { + activate_struggle_catalyst = { + catalyst = catalyst_TFE_major_historical_event_devastation + character = root + } + } + title:k_ostrogoths.holder = { + set_scope_as = target_ruler + } + if = { + limit = { + global_var:belisarius = { + is_alive = yes + OR = { + is_at_war = no + NOT = { + any_character_war = { + using_cb = vandalic_war_cb } } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:roman_king - multiplier = -0.25 - } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:emperor - multiplier = -0.25 - } - opinion_modifier = { - who = scope:deciding_vassal - opinion_target = scope:ostrogoth_king - multiplier = 0.5 - } - add_to_list = ostrogoth_vassals } + OR = { + NOT = { exists = title:k_africae.holder } + NOT = { title:k_africae.holder = global_var:belisarius } + } + } + NOT = { exists = global_var:belisarius_betrayal } + } + global_var:belisarius = { + save_scope_as = commander_1 + } + } + else_if = { + limit = { + character:armenian_01 = { + is_alive = yes + } + character:armenian_01 = { + is_courtier_of = root + } + } + character:armenian_01 = { + save_scope_as = commander_1 + } + } + else_if = { + limit = { + character:armenian_02 = { + is_alive = yes + } + character:armenian_02 = { + is_courtier_of = root + } + } + character:armenian_02 = { + save_scope_as = commander_1 + } + } + else = { + random_courtier = { + limit = { + is_adult = yes + is_male = yes } + save_scope_as = commander_1 + } + } + random_courtier = { + limit = { + NOT = { THIS = scope:commander_1 } + is_adult = yes + is_male = yes + } + save_scope_as = commander_2 + } + } + + option = { + name = germanic_events.0025.a + hidden_effect = { + set_global_variable = { + name = justinian_gothic_commander + value = scope:commander_1 + } + start_gothic_war_effect = yes + } + ai_chance = { + base = 100 + } + } + + option = { + name = germanic_events.0025.b + hidden_effect = { + set_global_variable = { + name = justinian_gothic_commander + value = scope:commander_2 } + start_gothic_war_effect = yes } + ai_chance = { + base = 0 + } + } +} + } + + { +germanic_events.0028 = { + scope = none + hidden = yes + immediate = { + title:e_byzantium.holder = { + save_scope_as = ostrogoth_king + } if = { limit = { - scope:roman_king = { - is_landed = yes + character:992029 = { + is_alive = yes + is_landed = no + age > 15 } - } - scope:roman_king = { - every_held_title = { - add_to_list = revert_to_emperor_titles + title:e_byzantium.holder = { + any_vassal_or_below = { + exists = primary_heir + primary_heir = character:992029 + any_held_title = { + OR = { + tier = tier_county + tier = tier_duchy + } + OR = { + kingdom = title:k_italy + kingdom = title:k_italia_annonariae + kingdom = title:k_italia_suburbicariae + } + } + } } - every_vassal = { - add_to_list = revert_to_emperor_vassals + } + title:e_byzantium.holder = { + random_vassal_or_below = { + limit = { + exists = primary_heir + primary_heir = character:992029 + } + depose = yes } } } - if = { limit = { - character:992020 = { + character:992029 = { + is_alive = yes is_landed = yes + top_liege = title:e_byzantium.holder } } - character:992020 = { - every_held_title = { - add_to_list = titles_to_usurp + character:992029 = { save_scope_as = ostrogoth_king } + if = { + limit = { + character:992029 = { + OR = { + has_trait = education_martial_1 + has_trait = education_martial_2 + has_trait = education_martial_3 + } + } } - every_vassal = { - add_to_list = roman_vassals + character:992029 = { + remove_trait = education_martial_1 + remove_trait = education_martial_2 + remove_trait = education_martial_3 + add_trait = education_martial_4 } } } - if = { limit = { - title:k_ostrogoths.holder = { - has_character_flag = deposed - } + scope:ostrogoth_king = title:e_byzantium.holder } - - title:k_ostrogoths.holder = { - add_to_list = roman_vassals - every_held_title = { + title:e_byzantium.holder = { + random_vassal_or_below = { limit = { - tier = tier_kingdom + culture = { has_cultural_pillar = heritage_east_germanic } + any_held_title = { + OR = { + tier = tier_county + tier = tier_duchy + } + OR = { + kingdom = title:k_italy + kingdom = title:k_italia_annonariae + kingdom = title:k_italia_suburbicariae + } + } } - add_to_list = revert_to_goths_titles - } - every_vassal = { - add_to_list = revert_to_goths_vassals - } - } - - create_title_and_vassal_change = { - type = usurped - save_scope_as = title_change - add_claim_on_loss = yes - } - every_in_list = { - list = revert_to_goths_titles - change_title_holder = { - holder = scope:ostrogoth_king - change = scope:title_change - take_baronies = no - } - } - every_in_list = { - list = revert_to_goths_vassals - change_liege = { - liege = scope:ostrogoth_king - change = scope:title_change + weight = { + base = 1 + modifier = { + add = 5 + primary_title.tier >= tier_duchy + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + modifier = { + add = martial + } + } + save_scope_as = ostrogoth_king } } - resolve_title_and_vassal_change = scope:title_change } - title:c_roma = { - save_temporary_scope_as = current_county - } create_title_and_vassal_change = { - type = usurped + type = created save_scope_as = change add_claim_on_loss = no } - scope:current_county = { + title:k_ostrogoths = { change_title_holder = { - holder = scope:roman_king + holder = scope:ostrogoth_king change = scope:change - take_baronies = yes } } resolve_title_and_vassal_change = scope:change + + title:e_byzantium.holder = { + save_scope_as = emperor + } - if = { - limit = { - scope:roman_king = { + title:e_byzantium.holder = { + every_vassal_or_below = { + limit = { + highest_held_title_tier >= tier_county + is_ai = yes + culture = { has_cultural_pillar = heritage_east_germanic } + NOT = { has_title = title:k_ostrogoths } any_held_title = { - NOT = { THIS = title:c_roma } + OR = { + tier = tier_county + tier = tier_duchy + } + OR = { + kingdom = title:k_italy + kingdom = title:k_italia_annonariae + kingdom = title:k_italia_suburbicariae + } } } + add_to_list = ostrogoth_vassals_revival } - create_title_and_vassal_change = { - type = usurped - save_scope_as = title_change - add_claim_on_loss = yes - } - every_in_list = { - list = revert_to_emperor_titles - change_title_holder = { - holder = scope:emperor - change = scope:title_change - take_baronies = no - } - } - every_in_list = { - list = revert_to_emperor_vassals - change_liege = { - liege = scope:emperor - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change } - - scope:ostrogoth_king = { + every_in_list = { + list = ostrogoth_vassals_revival + save_scope_as = ostrogoth_vassal_king_test every_held_title = { limit = { - NOT = { this = title:k_ostrogoths } - tier = tier_kingdom - } - add_to_list = titles_to_usurp - clear_title_laws = yes - } - } - - create_title_and_vassal_change = { - type = usurped - save_scope_as = title_change - add_claim_on_loss = yes - } - every_in_list = { - list = titles_to_usurp - change_title_holder = { - holder = scope:roman_king - change = scope:title_change - take_baronies = no - } - } - every_in_list = { - list = roman_vassals - change_liege = { - liege = scope:roman_king - change = scope:title_change - } - } - resolve_title_and_vassal_change = scope:title_change - - scope:ostrogoth_king = { - set_relation_rival = { - target = scope:roman_king - reason = rival_usurper - } - } - - if = { - limit = { - scope:roman_king = { - is_independent_ruler = no - } - } - scope:roman_king = { - create_title_and_vassal_change = { - type = independency - save_scope_as = going_independent - add_claim_on_loss = no + tier >= tier_kingdom + NOT = { this = title:k_ostrogoths } } - becomes_independent = { - change = scope:going_independent + scope:ostrogoth_vassal_king_test = { destroy_title = prev } + } + } + + every_in_list = { + list = ostrogoth_vassals_revival + if = { + limit = { + NOT = { + liege = { + culture = { + has_cultural_pillar = heritage_east_germanic + } + } + } } - resolve_title_and_vassal_change = scope:going_independent + add_to_list = ostrogoth_vassals_revival_final } } - scope:ostrogoth_king = { - start_war = { - cb = cb_gothic_wars_amalasuntha - target = scope:roman_king + create_title_and_vassal_change = { + type = usurped + save_scope_as = title_change + add_claim_on_loss = yes + } + every_in_list = { + list = ostrogoth_vassals_revival_final + change_liege = { + liege = scope:ostrogoth_king + change = scope:title_change } } + resolve_title_and_vassal_change = scope:title_change scope:emperor = { trigger_event = { - id = germanic_events.0016 + id = germanic_events.0029 days = 1 } } scope:ostrogoth_king = { trigger_event = { - id = germanic_events.0017 + id = germanic_events.0030 days = 1 } } @@ -10574,148 +12161,98 @@ germanic_events.0015 = { limit = { OR = { is_vassal_of = scope:ostrogoth_king - is_vassal_of = scope:roman_king + is_vassal_of = scope:emperor } + culture = { has_cultural_pillar = heritage_east_germanic } + NOT = { THIS = scope:ostrogoth_king } } trigger_event = { - id = germanic_events.0018 + id = germanic_events.0031 days = 1 } } + every_player = { + limit = { + OR = { + is_vassal_or_below_of = scope:ostrogoth_king + is_vassal_or_below_of = scope:emperor + } + culture = { has_cultural_pillar = heritage_east_germanic } + } + trigger_event = { + id = germanic_events.0034 + days = 2 + } + } } } } { -germanic_events.0025 = { - type = character_event - title = germanic_events.0025.t - desc = germanic_events.0025.desc +germanic_events.0032 = { + title = germanic_events.0032.t + desc = germanic_events.0032.desc + scope = character theme = realm - override_icon = { reference = "gfx/interface/icons/event_types/special_rhomaion.dds" } + override_background = { + reference = corridor_night + } left_portrait = { - character = title:e_byzantium.holder - animation = personality_bold - } - lower_center_portrait = { - character = scope:commander_2 - animation = personality_bold + character = title:k_ostrogoths.holder + animation = anger } + right_portrait = { - character = scope:commander_1 + character = character:992020 animation = personality_bold } - immediate = { - struggle:italian_struggle = { - activate_struggle_catalyst = { - catalyst = catalyst_TFE_major_historical_event_devastation - character = root - } - } - title:k_ostrogoths.holder = { - set_scope_as = target_ruler - } - if = { - limit = { - global_var:belisarius = { - is_alive = yes - OR = { - is_at_war = no - NOT = { - any_character_war = { - using_cb = vandalic_war_cb - } - } - } - OR = { - NOT = { exists = title:k_africae.holder } - NOT = { title:k_africae.holder = global_var:belisarius } - } - } - NOT = { exists = global_var:belisarius_betrayal } - } - global_var:belisarius = { - save_scope_as = commander_1 - } + option = { + name = germanic_events.0032.a + set_global_variable = { + name = gothic_war_cycle_active + value = yes } - else_if = { - limit = { - character:armenian_01 = { - is_alive = yes - } - character:armenian_01 = { - is_courtier_of = root - } - } - character:armenian_01 = { - save_scope_as = commander_1 - } + root = { + save_scope_as = emperor } - else_if = { - limit = { - character:armenian_02 = { - is_alive = yes - } - character:armenian_02 = { - is_courtier_of = root - } - } - character:armenian_02 = { - save_scope_as = commander_1 - } + trigger_event = { + id = germanic_events.0033 + days = 1 } - else = { - random_courtier = { - limit = { - is_adult = yes - is_male = yes + ai_chance = { + base = 0 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius + } } - save_scope_as = commander_1 - } - } - random_courtier = { - limit = { - NOT = { THIS = scope:commander_1 } - is_adult = yes - is_male = yes - } - save_scope_as = commander_2 - } - } - - option = { - name = germanic_events.0025.a - hidden_effect = { - set_global_variable = { - name = justinian_gothic_commander - value = scope:commander_1 + add = 50 } - start_gothic_war_effect = yes } - ai_chance = { - base = 100 - } } - option = { - name = germanic_events.0025.b - hidden_effect = { - set_global_variable = { - name = justinian_gothic_commander - value = scope:commander_2 + name = germanic_events.0032.b + ai_chance = { + base = 50 + modifier = { + AND = { + has_global_variable = vandalic_war_won + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:recall_belisarius + } + } + add = -50 } - start_gothic_war_effect = yes } - ai_chance = { - base = 0 - } } } - } - { germanic_events.0033 = { type = character_event title = germanic_events.0033.t @@ -11016,4 +12553,146 @@ palace_khawarnaq = { flag = travel_point_of_interest_wonder } } +} + +"events/tfe_title_events.txt" = { + # The event about the division of the Roman Empire should not mention Diocletian. + { + immediate = { + character:145241 = { + save_scope_as = diocletian + } + } + } + + # from error.log: [event.cpp:201]: character is not a valid entry at file: events/tfe_title_events.txt line: 1525 (tfe_title_event.0009) (valid: character_event, court_event, activity_event, letter_event ) + { +# De jure drift Dniester and Dnieper towards Hunnic Empire +tfe_title_event.0009 = { + type = character + hidden = yes + immediate = { + # 15 years of drift progress for both titles + title:k_ruthenia = { + change_de_jure_drift_progress = { + target = title:e_hunnic_empire + value = 180 + } + } + title:k_galicia-volhynia = { + change_de_jure_drift_progress = { + target = title:e_hunnic_empire + value = 180 + } + } + } +} + } +} + +"events/dharma_dravidian.txt" = { + { +dharma_dravidian.008 = { + type = character_event + theme = war + title = gothic_wars_0012.t + desc = gothic_wars_0013.desc + + left_portrait = { + character = scope:old_acclaimed_knight + animation = rage + } + right_portrait = { + character = ROOT + animation = fear + } +lower_right_portrait = character:900962 + option = { + name = gothic_wars_0013.a + } +} + } +} + +"events/steppe_events.txt" = { + { +steppe.6666 = { + scope = none + hidden = yes + + immediate = { + debug_log = "Attila spawns!" + debug_log_date = yes + spawn_attila_character_effect = yes + set_global_variable = { + name = attila_spawn + value = yes + } + title:e_hunnic_empire.holder = { + save_scope_as = khan + } + scope:attila = { + copy_inheritable_appearance_from = character:990000 + add_trait = the_hun + change_age = -3 + give_nickname = nick_the_hun + set_character_faith = scope:khan.faith + set_culture = scope:khan.culture + if = { + limit = { + scope:khan = { + gender = male + } + } + set_father = scope:khan + set_house = scope:khan.house + } + if = { + limit = { + scope:khan = { + gender = female + } + } + set_mother = scope:khan + set_house = scope:khan.house + } + scope:khan = { + set_designated_heir = scope:attila + add_courtier = scope:attila + } + #Doesn't work + #add_martial_skill = 10 + #add_diplomacy_skill = 5 + #add_intrigue_skill = 5 + #add_stewardship_skill = 5 + #add_prowess_skill = 10 + } + every_player = { + trigger_event = { + id = steppe.0011 + } + } + } + + +} + } +} + +"events/tfe_culture_events.txt" = { + { + modifier = { + add = 2 + OR = { + this = character:996002 # Odoacer + this = character:992016 # Theodoric + } + } + } +} + +"common/culture/name_lists/TFE_easter_egg.txt" = { + { + Näcken + } } \ No newline at end of file