From fec6e462e23399a0bd92fc96f4bc9a6c60ee36a1 Mon Sep 17 00:00:00 2001 From: Greekman Date: Fri, 27 Nov 2026 06:32:14 +0000 Subject: [PATCH] Orthodox bulgarian uprising plus buffs to bulgaria at start --- common/casus_belli_types/00_event_war.txt | 63 +++++ common/decisions/major_decisions_NEOW.txt | 56 ++++ .../on_action/NEOW_yearly_flavor_events.txt | 11 +- common/on_action/yearly_on_actions.txt | 1 + .../NEOW_religion_effects.txt | 265 ++++++++++++++++++ .../NEOW_religion_triggers.txt | 31 ++ .../NEOW_yearly_flavor_events.txt | 254 ++++++++++++++++- history/characters/NEOW_e_yugoslavia.txt | 26 ++ .../replace/zz_NEOW_decisions_l_english.yml | 8 + .../replace/zz_NEOW_events_l_english.yml | 30 ++ .../zz_NEOW_miscellaneous_l_english.yml | 3 +- .../replace/zz_NEOW_wars_l_english.yml | 11 +- 12 files changed, 755 insertions(+), 4 deletions(-) diff --git a/common/casus_belli_types/00_event_war.txt b/common/casus_belli_types/00_event_war.txt index 812ac9973..e1feb7fa4 100644 --- a/common/casus_belli_types/00_event_war.txt +++ b/common/casus_belli_types/00_event_war.txt @@ -3500,3 +3500,66 @@ remove_regent_cb = { max_defender_score_from_occupation = 150 max_attacker_score_from_occupation = 150 } + +# Scripted Bulgarian Orthodox uprising. Not available from Declare War. +neow_bulgarian_orthodox_uprising_cb = { + icon = major_religious_war + group = event + combine_into_one = yes + should_show_war_goal_subview = yes + allow_hostages = no + allowed_for_character = {} + allowed_against_character = {} + target_titles = all + target_title_tier = kingdom + target_top_liege_if_outside_realm = no + target_de_jure_regions_above = yes + valid_to_start = { always = no } + cost = {} + should_invalidate = { + OR = { + scope:defender = { + OR = { + NEOW_is_broadly_orthodox_trigger = yes + NOT = { has_title = title:k_bulgaria } + } + } + war_should_invalidate_defender_lost_target_lands_trigger = yes + } + } + on_declaration = { on_declared_war = yes } + on_victory_desc = neow_bulgarian_uprising_victory_desc + on_victory = { + on_victory_aggressive_war_effect = yes + neow_bulgarian_uprising_victory_effect = yes + } + on_defeat_desc = neow_bulgarian_uprising_defeat_desc + on_defeat = { + on_defeat_aggressive_war_effect = yes + neow_bulgarian_uprising_defeat_effect = yes + } + on_white_peace_desc = neow_bulgarian_uprising_white_peace_desc + on_white_peace = { + on_white_peace_effect = yes + scope:attacker = { neow_cleanup_bulgarian_uprising_title_effect = yes } + set_global_variable = { name = neow_bulgarian_uprising_has_occurred value = yes } + remove_global_variable = neow_bulgarian_uprising_active + } + on_invalidated_desc = neow_bulgarian_uprising_white_peace_desc + on_invalidated = { + scope:attacker = { neow_cleanup_bulgarian_uprising_title_effect = yes } + set_global_variable = { name = neow_bulgarian_uprising_has_occurred value = yes } + remove_global_variable = neow_bulgarian_uprising_active + } + transfer_behavior = transfer + on_primary_attacker_death = invalidate + on_primary_defender_death = inherit + attacker_allies_inherit = yes + defender_allies_inherit = yes + war_name = "neow_bulgarian_uprising_war_name" + war_name_base = "neow_bulgarian_uprising_war_name" + cb_name = "neow_bulgarian_orthodox_uprising_cb" + interface_priority = 100 + use_de_jure_wargoal_only = yes + attacker_wargoal_percentage = 0.8 +} diff --git a/common/decisions/major_decisions_NEOW.txt b/common/decisions/major_decisions_NEOW.txt index a3e418fd5..62ff9daf8 100644 --- a/common/decisions/major_decisions_NEOW.txt +++ b/common/decisions/major_decisions_NEOW.txt @@ -4711,3 +4711,59 @@ NEOW_debug_annex_world_decision = { ai_potential = { always = no } ai_will_do = { base = 0 } } + +NEOW_support_bulgarian_uprising_decision = { + picture = { reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds" } + desc = NEOW_support_bulgarian_uprising_decision_desc + selection_tooltip = NEOW_support_bulgarian_uprising_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 = { + has_title = title:e_nistrenia + NEOW_is_broadly_orthodox_trigger = yes + title:k_bulgaria = { is_title_created = yes } + NOT = { has_global_variable = neow_bulgarian_uprising_active } + NOT = { has_global_variable = neow_bulgarian_uprising_has_occurred } + } + is_valid = { + custom_tooltip = { + text = NEOW_support_bulgarian_uprising_eligible_tt + title:k_bulgaria.holder ?= { + neow_bulgarian_uprising_eligible_trigger = yes + } + } + custom_tooltip = { + text = NEOW_support_bulgarian_uprising_range_tt + title:k_bulgaria.holder ?= { in_diplomatic_range = root } + } + } + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_at_war = no + } + cost = { gold = 500 piety = 1000 prestige = 1000 } + effect = { + custom_tooltip = NEOW_support_bulgarian_uprising_decision_effect_tooltip + hidden_effect = { + save_scope_as = neow_uprising_emperor + title:k_bulgaria.holder = { neow_start_bulgarian_uprising_effect = yes } + } + } + ai_potential = { always = yes } + ai_will_do = { + base = 20 + modifier = { factor = 3 has_trait = zealous } + modifier = { factor = 2 has_trait = brave } + modifier = { factor = 1.5 has_trait = ambitious } + modifier = { factor = 1.5 has_trait = just } + modifier = { factor = 1.25 has_trait = compassionate } + modifier = { factor = 1.25 has_trait = generous } + modifier = { factor = 0.15 has_trait = cynical } + modifier = { factor = 0.1 has_trait = craven } + modifier = { factor = 0.5 has_trait = greedy } + modifier = { factor = 0.4 has_trait = lazy } + modifier = { factor = 0.6 has_trait = content } + modifier = { factor = 0.8 has_trait = calm } + } +} diff --git a/common/on_action/NEOW_yearly_flavor_events.txt b/common/on_action/NEOW_yearly_flavor_events.txt index 7ff5cc2b3..412740ce9 100644 --- a/common/on_action/NEOW_yearly_flavor_events.txt +++ b/common/on_action/NEOW_yearly_flavor_events.txt @@ -7,4 +7,13 @@ #Yearly Events 10 = NEOW_yearly_flavor_events.0021 # 0021 - Cherrymas (Cherry Blossoms) } -} \ No newline at end of file +} + +# Independent yearly roll, not weighted against unrelated flavour events. +NEOW_bulgarian_uprising_pulse = { + trigger = { neow_bulgarian_uprising_eligible_trigger = yes } + random_events = { + chance_to_happen = 5 + 100 = NEOW_yearly_flavor_events.0100 + } +} diff --git a/common/on_action/yearly_on_actions.txt b/common/on_action/yearly_on_actions.txt index 39c3a188b..8cadcfe9e 100644 --- a/common/on_action/yearly_on_actions.txt +++ b/common/on_action/yearly_on_actions.txt @@ -2869,6 +2869,7 @@ random_yearly_playable_pulse = { delay = { days = { 45 75 } } on_yearly_common_events NEOW_restoration_flavour_pulse + NEOW_bulgarian_uprising_pulse delay = { days = { 50 80 } } on_yearly_invisible_events delay = { days = { 85 165 } } diff --git a/common/scripted_effects/NEOW_religion_effects.txt b/common/scripted_effects/NEOW_religion_effects.txt index 82b240fda..11b5d8033 100644 --- a/common/scripted_effects/NEOW_religion_effects.txt +++ b/common/scripted_effects/NEOW_religion_effects.txt @@ -1798,3 +1798,268 @@ neow_great_schism_invite_catholics_effect = { trigger_event = NEOW_religious_decision.0292 } } + +# Called in the Bulgarian ruler's scope. Early intervention optionally supplies an emperor scope. +neow_start_bulgarian_uprising_effect = { + save_scope_as = neow_uprising_defender + random_sub_realm_county = { + limit = { neow_bulgarian_unhappy_orthodox_county_trigger = yes } + save_scope_as = neow_uprising_county + } + if = { + limit = { + exists = scope:neow_uprising_county + neow_bulgarian_uprising_eligible_trigger = yes + } + # The uprising always claims the Kingdom of Bulgaria, never the local lord's title. + create_character = { + location = scope:neow_uprising_county.title_province + template = peasant_faction_leader_template + dynasty = generate + culture = culture:NEOW_bulgarian + faith = scope:neow_uprising_county.faith + rite = scope:neow_uprising_county.rite + gender_female_chance = 0 + save_scope_as = neow_uprising_leader + } + scope:neow_uprising_leader = { + set_character_rite = scope:neow_uprising_county.rite + add_gold = 100 + # Use the native playable landless camp title, not an ordinary titular duchy. + save_scope_as = new_landless_adventurer + create_adventurer_title = { + name = neow_bulgarian_uprising_title + holder = scope:neow_uprising_leader + save_scope_as = neow_uprising_temporary_title + } + set_landless_adventurer_government_type_effect = yes + } + scope:neow_uprising_temporary_title = { + set_no_automatic_claims = yes + set_can_be_named_after_dynasty = no + } + scope:neow_uprising_leader = { + set_variable = { name = neow_uprising_temporary_title value = scope:neow_uprising_temporary_title } + start_war = { + casus_belli = neow_bulgarian_orthodox_uprising_cb + target = scope:neow_uprising_defender + target_title = title:k_bulgaria + } + random_character_war = { + limit = { + using_cb = neow_bulgarian_orthodox_uprising_cb + primary_attacker = scope:neow_uprising_leader + primary_defender = scope:neow_uprising_defender + } + save_scope_as = neow_uprising_war + } + } + if = { + limit = { exists = scope:neow_uprising_war } + set_global_variable = { name = neow_bulgarian_uprising_active value = scope:neow_uprising_leader } + # Permanent campaign lock, even if the war later ends inconclusively. + set_global_variable = { name = neow_bulgarian_uprising_has_occurred value = yes } + scope:neow_uprising_leader = { + spawn_army = { + name = neow_bulgarian_uprising_army + levies = 333 + location = scope:neow_uprising_county.title_province + war = scope:neow_uprising_war + inheritable = no + } + } + every_sub_realm_county = { + limit = { neow_bulgarian_unhappy_orthodox_county_trigger = yes } + save_temporary_scope_as = neow_uprising_recruitment_county + scope:neow_uprising_leader = { + spawn_army = { + name = neow_bulgarian_uprising_army + levies = { value = scope:neow_uprising_recruitment_county.county_levies_to_raise add = 500 } + location = scope:neow_uprising_recruitment_county.title_province + war = scope:neow_uprising_war + inheritable = no + } + } + } + trigger_event = NEOW_yearly_flavor_events.0101 + if = { + limit = { exists = scope:neow_uprising_emperor } + scope:neow_uprising_war = { add_attacker = scope:neow_uprising_emperor } + scope:neow_uprising_leader = { add_gold = 500 } + scope:neow_uprising_emperor = { trigger_event = NEOW_yearly_flavor_events.0105 } + } + every_ruler = { + limit = { + is_landed = yes + NEOW_is_broadly_orthodox_trigger = yes + in_diplomatic_range = scope:neow_uprising_defender + this != scope:neow_uprising_leader + OR = { + NOT = { exists = scope:neow_uprising_emperor } + this != scope:neow_uprising_emperor + } + } + trigger_event = NEOW_yearly_flavor_events.0102 + } + } + else = { + # Do not leave a phantom uprising or a temporary title after failed declarations. + scope:neow_uprising_leader = { neow_cleanup_bulgarian_uprising_title_effect = yes } + if = { + limit = { exists = scope:neow_uprising_emperor } + scope:neow_uprising_emperor = { add_gold = 500 add_piety = 750 add_prestige = 750 } + } + } + } +} + +neow_cleanup_bulgarian_uprising_title_effect = { + save_temporary_scope_as = neow_uprising_cleanup_holder + if = { + limit = { exists = var:neow_uprising_temporary_title } + var:neow_uprising_temporary_title = { save_temporary_scope_as = neow_uprising_title_cleanup } + remove_variable = neow_uprising_temporary_title + if = { + limit = { scope:neow_uprising_title_cleanup = { is_title_created = yes holder = scope:neow_uprising_cleanup_holder } } + destroy_title = scope:neow_uprising_title_cleanup + } + } +} + +# Broadcast after the war, with no expired war scope needed by the notifications. +neow_bulgarian_uprising_victory_effect = { + scope:attacker = { save_scope_as = neow_uprising_leader } + scope:defender = { save_scope_as = neow_uprising_defender } + # Remember the old capital and direct vassals before the old ruler loses their titles. + scope:defender = { + capital_county ?= { save_scope_as = neow_uprising_victory_capital } + every_vassal = { + limit = { highest_held_title_tier >= tier_county } + add_to_list = neow_uprising_victory_vassals + } + } + # First transfer actual land. A landless adventurer cannot receive vassals normally. + create_title_and_vassal_change = { + type = conquest + save_scope_as = neow_uprising_victory_change + add_claim_on_loss = yes + } + scope:defender = { + every_held_title = { + limit = { tier >= tier_county is_landless_type_title = no this != title:d_stratocratic_hof } + change_title_holder = { holder = scope:attacker change = scope:neow_uprising_victory_change take_baronies = yes } + } + } + resolve_title_and_vassal_change = scope:neow_uprising_victory_change + # A ruler with only a titular higher title may have had no personal county. + # Ensure the victor has a county before moving out of the camp government. + if = { + limit = { + scope:attacker = { NOT = { any_held_title = { tier = tier_county } } } + exists = scope:neow_uprising_victory_capital + } + create_title_and_vassal_change = { + type = conquest + save_scope_as = neow_uprising_capital_change + add_claim_on_loss = yes + } + scope:neow_uprising_victory_capital = { + change_title_holder = { holder = scope:attacker change = scope:neow_uprising_capital_change take_baronies = yes } + } + resolve_title_and_vassal_change = scope:neow_uprising_capital_change + } + scope:attacker = { + if = { + limit = { any_held_title = { tier = tier_county } } + # Establish a normal landed government and a permanent primary title. + if = { + limit = { has_realm_law = landless_adventurer_succession_law } + remove_realm_law = landless_adventurer_succession_law + } + assign_feudal_governments_effect = yes + if = { + limit = { has_title = title:k_bulgaria } + set_primary_title_to = title:k_bulgaria + } + if = { + limit = { scope:neow_uprising_victory_capital.holder ?= this } + set_realm_capital = scope:neow_uprising_victory_capital + } + } + } + # Now transfer the former ruler's vassals to the landed victor. + create_title_and_vassal_change = { + type = conquest + save_scope_as = neow_uprising_vassal_change + add_claim_on_loss = yes + } + every_in_list = { + list = neow_uprising_victory_vassals + limit = { + is_landed = yes + this != scope:attacker + highest_held_title_tier < scope:attacker.highest_held_title_tier + NOT = { liege ?= scope:attacker } + } + change_liege = { liege = scope:attacker change = scope:neow_uprising_vassal_change } + } + resolve_title_and_vassal_change = scope:neow_uprising_vassal_change + hidden_effect = { + faith:stratocratic_faith = { remove_religious_head_title = yes } + } + if = { + limit = { title:d_stratocratic_hof = { is_title_created = yes } } + scope:attacker = { destroy_title = title:d_stratocratic_hof } + } + scope:attacker = { + # Only remove the camp once the victor holds Bulgaria and a playable county. + if = { + limit = { + has_title = title:k_bulgaria + any_held_title = { tier = tier_county } + } + neow_cleanup_bulgarian_uprising_title_effect = yes + } + add_piety = 500 + add_prestige = 500 + trigger_event = NEOW_yearly_flavor_events.0103 + } + every_ruler = { + limit = { + is_landed = yes + NEOW_is_broadly_orthodox_trigger = yes + in_diplomatic_range = scope:neow_uprising_leader + this != scope:neow_uprising_leader + } + trigger_event = NEOW_yearly_flavor_events.0106 + } + set_global_variable = { name = neow_bulgarian_uprising_has_occurred value = yes } + remove_global_variable = neow_bulgarian_uprising_active +} + +neow_bulgarian_uprising_defeat_effect = { + scope:attacker = { save_scope_as = neow_uprising_leader } + scope:defender = { + save_scope_as = neow_uprising_defender + faith = { save_scope_as = neow_uprising_defender_faith } + rite = { save_scope_as = neow_uprising_defender_rite } + every_sub_realm_county = { + limit = { neow_bulgarian_orthodox_county_trigger = yes } + set_county_faith = scope:neow_uprising_defender_faith + set_county_rite = scope:neow_uprising_defender_rite + } + trigger_event = NEOW_yearly_flavor_events.0107 + } + every_ruler = { + limit = { + is_landed = yes + NEOW_is_broadly_orthodox_trigger = yes + in_diplomatic_range = scope:neow_uprising_defender + this != scope:neow_uprising_leader + } + trigger_event = NEOW_yearly_flavor_events.0104 + } + scope:attacker = { neow_cleanup_bulgarian_uprising_title_effect = yes } + set_global_variable = { name = neow_bulgarian_uprising_has_occurred value = yes } + remove_global_variable = neow_bulgarian_uprising_active +} diff --git a/common/scripted_triggers/NEOW_religion_triggers.txt b/common/scripted_triggers/NEOW_religion_triggers.txt index ca862d618..0ae0677ca 100644 --- a/common/scripted_triggers/NEOW_religion_triggers.txt +++ b/common/scripted_triggers/NEOW_religion_triggers.txt @@ -255,3 +255,34 @@ neow_western_clerical_region_merge_trigger = { this = title:d_et_neow_ljubljana } } + +# Bulgarian Orthodox rising (county and ruler scopes respectively). +neow_bulgarian_orthodox_county_trigger = { + culture = culture:NEOW_bulgarian + NEOW_is_broadly_orthodox_trigger = yes +} +neow_bulgarian_unhappy_orthodox_county_trigger = { + neow_bulgarian_orthodox_county_trigger = yes + popular_opinion < 0 +} +neow_bulgarian_uprising_eligible_trigger = { + # Only the actual King of Bulgaria receives the yearly uprising roll. + has_title = title:k_bulgaria + is_landed = yes + is_ruler = yes + culture = culture:NEOW_bulgarian + NEOW_is_broadly_orthodox_trigger = no + NOT = { has_global_variable = neow_bulgarian_uprising_active } + NOT = { has_global_variable = neow_bulgarian_uprising_has_occurred } + any_held_title = { tier >= tier_county is_landless_type_title = no } + any_sub_realm_county = { neow_bulgarian_unhappy_orthodox_county_trigger = yes } +} +neow_bulgarian_uprising_join_trigger = { + exists = scope:neow_uprising_war + scope:neow_uprising_war = { + NOR = { is_attacker = root is_defender = root } + NOT = { any_war_participant = { is_at_war_with = root } } + } + NOT = { is_at_war_with = scope:neow_uprising_leader } + is_landed = yes +} diff --git a/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt b/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt index a21a0cc7d..5207eab3f 100644 --- a/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt +++ b/events/NEOW_yearly_flavor_events/NEOW_yearly_flavor_events.txt @@ -123,4 +123,256 @@ NEOW_yearly_flavor_events.0021 = { } } } -} \ No newline at end of file +} + +# Bulgarian Orthodox uprising +NEOW_yearly_flavor_events.0100 = { + hidden = yes + trigger = { neow_bulgarian_uprising_eligible_trigger = yes } + immediate = { neow_start_bulgarian_uprising_effect = yes } +} +NEOW_yearly_flavor_events.0101 = { + type = character_event + title = NEOW_yearly_flavor_events.0101.t + desc = NEOW_yearly_flavor_events.0101.desc + theme = war + left_portrait = { character = scope:neow_uprising_leader animation = anger } + right_portrait = { character = root animation = personality_bold } + option = { name = NEOW_yearly_flavor_events.0101.a } +} +NEOW_yearly_flavor_events.0102 = { + type = character_event + title = NEOW_yearly_flavor_events.0102.t + desc = NEOW_yearly_flavor_events.0102.desc + theme = faith + left_portrait = { character = scope:neow_uprising_leader animation = personality_bold } + trigger = { exists = scope:neow_uprising_war scope:neow_uprising_leader = { is_alive = yes } } + option = { + name = NEOW_yearly_flavor_events.0102.a + trigger = { gold >= 200 exists = scope:neow_uprising_war } + add_gold = -200 + scope:neow_uprising_leader = { add_gold = 200 } + add_piety = 100 + ai_chance = { + base = 25 + modifier = { factor = 3 has_trait = generous } + modifier = { factor = 2 has_trait = compassionate } + modifier = { factor = 1.5 has_trait = zealous } + modifier = { factor = 1.25 has_trait = just } + modifier = { factor = 1.5 has_trait = craven } + modifier = { factor = 0.1 has_trait = greedy } + modifier = { factor = 0.4 has_trait = cynical } + modifier = { factor = 0.5 has_trait = callous } + modifier = { factor = 0.5 has_trait = sadistic } + } + } + option = { + name = NEOW_yearly_flavor_events.0102.b + ai_chance = { + base = 55 + modifier = { factor = 3 has_trait = cynical } + modifier = { factor = 2 has_trait = greedy } + modifier = { factor = 2 has_trait = craven } + modifier = { factor = 1.5 has_trait = lazy } + modifier = { factor = 1.5 has_trait = callous } + modifier = { factor = 1.25 has_trait = content } + modifier = { factor = 0.25 has_trait = zealous } + modifier = { factor = 0.5 has_trait = generous } + modifier = { factor = 0.5 has_trait = compassionate } + modifier = { factor = 0.6 has_trait = brave } + modifier = { factor = 0.75 has_trait = just } + } + } + option = { + name = NEOW_yearly_flavor_events.0102.c + trigger = { neow_bulgarian_uprising_join_trigger = yes } + scope:neow_uprising_war = { add_attacker = root } + ai_chance = { + base = 20 + modifier = { factor = 4 has_trait = zealous } + modifier = { factor = 3 has_trait = brave } + modifier = { factor = 1.5 has_trait = wrathful } + modifier = { factor = 1.5 has_trait = ambitious } + modifier = { factor = 1.5 has_trait = just } + modifier = { factor = 1.25 has_trait = compassionate } + modifier = { factor = 0.15 has_trait = cynical } + modifier = { factor = 0.1 has_trait = craven } + modifier = { factor = 0.4 has_trait = lazy } + modifier = { factor = 0.6 has_trait = content } + modifier = { factor = 0.75 has_trait = calm } + modifier = { factor = 0.1 is_at_war = yes } + } + } + option = { + name = NEOW_yearly_flavor_events.0102.d + trigger = { is_ai = no exists = scope:neow_uprising_war scope:neow_uprising_leader = { is_alive = yes is_ruler = yes is_ai = yes } } + set_player_character = scope:neow_uprising_leader + ai_chance = { base = 0 } + } +} +NEOW_yearly_flavor_events.0103 = { + type = character_event + title = NEOW_yearly_flavor_events.0103.t + desc = NEOW_yearly_flavor_events.0103.desc + theme = faith + left_portrait = { character = root animation = personality_bold } + right_portrait = { character = scope:neow_uprising_defender animation = prison } + immediate = { + faith = { save_scope_as = neow_uprising_victor_faith } + rite = { save_scope_as = neow_uprising_victor_rite } + } + option = { + name = NEOW_yearly_flavor_events.0103.a + scope:neow_uprising_defender = { + if = { + limit = { is_alive = yes } + set_character_faith = scope:neow_uprising_victor_faith + set_character_rite = scope:neow_uprising_victor_rite + } + every_close_family_member = { + limit = { is_alive = yes this != root } + set_character_faith = scope:neow_uprising_victor_faith + set_character_rite = scope:neow_uprising_victor_rite + } + } + add_piety = 100 + ai_chance = { + base = 60 + modifier = { factor = 5 has_trait = compassionate } + modifier = { factor = 4 has_trait = forgiving } + modifier = { factor = 2 has_trait = just } + modifier = { factor = 1.5 has_trait = calm } + modifier = { factor = 1.5 has_trait = humble } + modifier = { factor = 1.25 has_trait = patient } + modifier = { factor = 0.1 has_trait = sadistic } + modifier = { factor = 0.25 has_trait = vengeful } + modifier = { factor = 0.4 has_trait = callous } + modifier = { factor = 0.5 has_trait = wrathful } + modifier = { factor = 0.7 has_trait = arbitrary } + } + } + option = { + name = NEOW_yearly_flavor_events.0103.b + scope:neow_uprising_defender = { + every_close_family_member = { + limit = { is_alive = yes this != root } + death = { death_reason = death_execution killer = root } + } + if = { limit = { is_alive = yes } death = { death_reason = death_execution killer = root } } + } + ai_chance = { + base = 40 + modifier = { factor = 4 has_trait = sadistic } + modifier = { factor = 3 has_trait = vengeful } + modifier = { factor = 2 has_trait = callous } + modifier = { factor = 2 has_trait = wrathful } + modifier = { factor = 1.5 has_trait = arbitrary } + modifier = { factor = 0.05 has_trait = compassionate } + modifier = { factor = 0.1 has_trait = forgiving } + modifier = { factor = 0.35 has_trait = just } + modifier = { factor = 0.6 has_trait = calm } + modifier = { factor = 0.7 has_trait = humble } + } + } + after = { + # Resolve the old ruling family's fate first, then summon the remaining vassals. + every_vassal_or_below = { + limit = { + is_alive = yes + is_landed = yes + NEOW_is_broadly_orthodox_trigger = no + } + trigger_event = { id = NEOW_yearly_flavor_events.0108 days = 1 } + } + } +} +NEOW_yearly_flavor_events.0104 = { + type = character_event + title = NEOW_yearly_flavor_events.0104.t + desc = NEOW_yearly_flavor_events.0104.desc + theme = faith + left_portrait = { character = root animation = sadness } + right_portrait = { character = scope:neow_uprising_defender animation = personality_bold } + option = { name = NEOW_yearly_flavor_events.0104.a } +} +NEOW_yearly_flavor_events.0105 = { + type = character_event + title = NEOW_yearly_flavor_events.0105.t + desc = NEOW_yearly_flavor_events.0105.desc + theme = war + left_portrait = { character = root animation = personality_bold } + right_portrait = { character = scope:neow_uprising_leader animation = personality_bold } + option = { name = NEOW_yearly_flavor_events.0105.a } +} +NEOW_yearly_flavor_events.0106 = { + type = character_event + title = NEOW_yearly_flavor_events.0106.t + desc = NEOW_yearly_flavor_events.0106.desc + theme = faith + left_portrait = { character = scope:neow_uprising_leader animation = personality_bold } + option = { name = NEOW_yearly_flavor_events.0106.a } +} +NEOW_yearly_flavor_events.0107 = { + type = character_event + title = NEOW_yearly_flavor_events.0107.t + desc = NEOW_yearly_flavor_events.0107.desc + theme = war + left_portrait = { character = root animation = personality_bold } + option = { name = NEOW_yearly_flavor_events.0107.a } +} + +# The ultimatum to the surviving non-Orthodox vassals after an Orthodox victory. +NEOW_yearly_flavor_events.0108 = { + type = character_event + title = NEOW_yearly_flavor_events.0108.t + desc = NEOW_yearly_flavor_events.0108.desc + theme = faith + left_portrait = { character = root animation = sadness } + right_portrait = { character = scope:neow_uprising_leader animation = personality_bold } + trigger = { + is_alive = yes + is_landed = yes + NEOW_is_broadly_orthodox_trigger = no + exists = scope:neow_uprising_victor_faith + exists = scope:neow_uprising_victor_rite + scope:neow_uprising_leader = { is_alive = yes } + any_liege_or_above = { this = scope:neow_uprising_leader } + } + option = { + name = NEOW_yearly_flavor_events.0108.a + set_character_faith = scope:neow_uprising_victor_faith + set_character_rite = scope:neow_uprising_victor_rite + ai_chance = { + base = 90 + modifier = { factor = 4 has_trait = cynical } + modifier = { factor = 4 has_trait = craven } + modifier = { factor = 2 has_trait = fickle } + modifier = { factor = 1.5 has_trait = deceitful } + modifier = { factor = 1.5 has_trait = ambitious } + modifier = { factor = 1.5 has_trait = content } + modifier = { factor = 0.12 has_trait = zealous } + modifier = { factor = 0.5 has_trait = brave } + modifier = { factor = 0.5 has_trait = stubborn } + modifier = { factor = 0.7 has_trait = honest } + modifier = { factor = 0.7 has_trait = arrogant } + } + } + option = { + name = NEOW_yearly_flavor_events.0108.b + death = { death_reason = death_execution killer = scope:neow_uprising_leader } + ai_chance = { + base = 10 + modifier = { factor = 6 has_trait = zealous } + modifier = { factor = 3 has_trait = brave } + modifier = { factor = 2 has_trait = stubborn } + modifier = { factor = 1.5 has_trait = honest } + modifier = { factor = 1.5 has_trait = arrogant } + modifier = { factor = 0.1 has_trait = cynical } + modifier = { factor = 0.05 has_trait = craven } + modifier = { factor = 0.4 has_trait = fickle } + modifier = { factor = 0.5 has_trait = deceitful } + modifier = { factor = 0.5 has_trait = ambitious } + modifier = { factor = 0.7 has_trait = content } + } + } +} diff --git a/history/characters/NEOW_e_yugoslavia.txt b/history/characters/NEOW_e_yugoslavia.txt index 8718e20d2..68e7a9492 100644 --- a/history/characters/NEOW_e_yugoslavia.txt +++ b/history/characters/NEOW_e_yugoslavia.txt @@ -273,6 +273,32 @@ yugoslavia0003 = { #bulgaria king 2500.1.1 = { birth = yes } + 2554.1.1 = { + effect = { + add_gold = 1000 + add_prestige = 2000 + spawn_army = { + name = NEOW_bulgarian_royal_army + levies = 3000 + men_at_arms = { + type = pikemen_unit + stacks = 8 + } + men_at_arms = { + type = bowmen + stacks = 8 + } + men_at_arms = { + type = NEOW_militia + stacks = 8 + } + location = province:500 + origin = province:500 + inheritable = yes + war_keep_on_attacker_victory = yes + } + } + } 2600.1.1 = { death = yes } diff --git a/localization/english/replace/zz_NEOW_decisions_l_english.yml b/localization/english/replace/zz_NEOW_decisions_l_english.yml index f60d9c6d0..1d69ea8d6 100644 --- a/localization/english/replace/zz_NEOW_decisions_l_english.yml +++ b/localization/english/replace/zz_NEOW_decisions_l_english.yml @@ -393,3 +393,11 @@ NEOW_debug_annex_world_decision_tooltip:0 "Annex every county in the world" NEOW_debug_annex_world_decision_confirm:0 "Annex the world" NEOW_debug_annex_world_decision_effect_tt:0 "Every [county|E] outside your realm is annexed. Existing vassals, cultures and faiths within your realm remain unchanged." + + NEOW_support_bulgarian_uprising_decision:0 "Fund an Orthodox Uprising in Bulgaria" + NEOW_support_bulgarian_uprising_decision_desc:0 "Our brethren in Bulgaria have long endured the rule of those who reject the faith of their fathers. Let us send emissaries and treasure across the Danube, that the faithful may rise and the authority of the Church be restored." + NEOW_support_bulgarian_uprising_decision_tooltip:0 "Incite an Orthodox rising in Bulgaria and intervene on its behalf" + NEOW_support_bulgarian_uprising_decision_confirm:0 "Let the imperial host march!" + NEOW_support_bulgarian_uprising_decision_effect_tooltip:0 "An Orthodox uprising begins immediately in Bulgaria. You join the war on the side of the rebels and provide them with [gold_i] 500." + NEOW_support_bulgarian_uprising_eligible_tt:0 "Bulgaria is ruled by a non-Orthodox Bulgarian ruler and has at least one discontented Bulgarian Orthodox [county|E]" + NEOW_support_bulgarian_uprising_range_tt:0 "The ruler of Bulgaria is within [diplomatic_range|E]" diff --git a/localization/english/replace/zz_NEOW_events_l_english.yml b/localization/english/replace/zz_NEOW_events_l_english.yml index 1745f0818..dff32abe5 100644 --- a/localization/english/replace/zz_NEOW_events_l_english.yml +++ b/localization/english/replace/zz_NEOW_events_l_english.yml @@ -246,3 +246,33 @@ NEOW_religious_decision.0292.desc:0 "Envoys from the Orthodox See of Rome have brought word of the condemnation of the Roman and Compostelan papacies. Its bishops call upon us to renounce the teachings which separate us from their Church and receive the Orthodox faith, assuring us that we may retain the ancient rites of the West.\n\nSome of my clergy favour a return to communion with the ancient sees, while others counsel that we remain faithful to the confession of our fathers. The choice is mine to make." NEOW_religious_decision.0292.a:0 "Let us return to the communion of the Church." NEOW_religious_decision.0292.b:0 "We shall remain faithful to our confession." + + NEOW_yearly_flavor_events.0101.t:0 "The Cross Raised in Bulgaria" + NEOW_yearly_flavor_events.0101.desc:0 "The Christians of Bulgaria have risen in open revolt. From the villages to the mountain monasteries, men gather beneath the Cross, refusing any longer to submit to my rule. At their head stands [neow_uprising_leader.GetTitledFirstName], who has proclaimed the restoration of the Orthodox faith.\n\nAlready word of the rising has gone beyond our borders." + NEOW_yearly_flavor_events.0101.a:0 "Let them come." + NEOW_yearly_flavor_events.0102.t:0 "The Cry of the Bulgarians" + NEOW_yearly_flavor_events.0102.desc:0 "Word comes from Bulgaria that the Orthodox faithful have risen against [neow_uprising_defender.GetTitledFirstName]. Under the leadership of [neow_uprising_leader.GetTitledFirstName], they have taken up arms, calling upon their brethren abroad not to forsake them in their hour of need.\n\nShall we answer their appeal?" + NEOW_yearly_flavor_events.0102.a:0 "Send gold to our brethren." + NEOW_yearly_flavor_events.0102.b:0 "We cannot intervene." + NEOW_yearly_flavor_events.0102.c:0 "Their cause is our own!" + NEOW_yearly_flavor_events.0102.d:0 "I shall lead the rising myself." + NEOW_yearly_flavor_events.0103.t:0 "The Triumph of Orthodoxy" + NEOW_yearly_flavor_events.0103.desc:0 "The armies of the old order are defeated, and the Cross is raised once more over Bulgaria. The authority of the Stratocratic priesthood has been abolished.\n\nNow the fate of [scope:neow_uprising_defender.GetTitledFirstName] and the former ruler's family rests with me. If I spare them, they shall be received into the Orthodox Church. The remaining vassals who persist in the old confession shall be given the choice of conversion or death." + NEOW_yearly_flavor_events.0103.a:0 "Let them embrace Orthodoxy and live." + NEOW_yearly_flavor_events.0103.b:0 "Let the old house perish." + NEOW_yearly_flavor_events.0104.t:0 "Lamentation for Bulgaria" + NEOW_yearly_flavor_events.0104.desc:0 "Grievous news has reached us from Bulgaria. The Orthodox host has been scattered, and [neow_uprising_defender.GetTitledFirstName] has prevailed. The faithful in the Bulgarian lands are compelled to abandon their confession and submit to the religion of their ruler.\n\nThe hopes of those who rose beneath the Cross have been brought to ruin." + NEOW_yearly_flavor_events.0104.a:0 "Lord, have mercy upon them." + NEOW_yearly_flavor_events.0105.t:0 "For the Liberation of Bulgaria" + NEOW_yearly_flavor_events.0105.desc:0 "Our emissaries have not laboured in vain. The faithful of Bulgaria have risen, and the host of [neow_uprising_leader.GetTitledFirstName] now marches against the enemies of the Church.\n\nThe memory of Thessaloniki and the sufferings of our brethren cannot be forgotten. Let the imperial standards be unfurled; Nistrenia shall not abandon Bulgaria to its fate." + NEOW_yearly_flavor_events.0105.a:0 "With God before us!" + NEOW_yearly_flavor_events.0106.t:0 "The Cross over Bulgaria" + NEOW_yearly_flavor_events.0106.desc:0 "Glad tidings have come from Bulgaria! The Orthodox host of [neow_uprising_leader.GetTitledFirstName] has prevailed, and the power of the Stratocratic priesthood has been broken. The faithful may once more profess their faith under an Orthodox ruler." + NEOW_yearly_flavor_events.0106.a:0 "Glory to God for all things!" + NEOW_yearly_flavor_events.0107.t:0 "The Rising Extinguished" + NEOW_yearly_flavor_events.0107.desc:0 "The rebel host has been defeated. Those Bulgarian communities which professed the Orthodox faith have been brought into submission, and the authority of my rule stands unbroken." + NEOW_yearly_flavor_events.0107.a:0 "Order is restored." + NEOW_yearly_flavor_events.0108.t:0 "The Faith of the Victor" + NEOW_yearly_flavor_events.0108.desc:0 "The old order in Bulgaria has fallen. [scope:neow_uprising_leader.GetTitledFirstName] has summoned the lords who remain outside the Orthodox Church to renounce their confession. Those who submit shall be spared; those who refuse shall pay with their lives.\n\nNow the same demand has been laid before me." + NEOW_yearly_flavor_events.0108.a:0 "I shall embrace the Orthodox faith." + NEOW_yearly_flavor_events.0108.b:0 "I will not renounce my faith, even unto death." diff --git a/localization/english/replace/zz_NEOW_miscellaneous_l_english.yml b/localization/english/replace/zz_NEOW_miscellaneous_l_english.yml index bb4973e01..0cb8da6c5 100644 --- a/localization/english/replace/zz_NEOW_miscellaneous_l_english.yml +++ b/localization/english/replace/zz_NEOW_miscellaneous_l_english.yml @@ -32,4 +32,5 @@ curse_fils_de_pute:0 "Fils de pute" curse_calisse:0 "Calisse" curse_ostie_de_criss_de_tabarnak:0 "Ostie de criss de tabarnak" - is_antipope_tt:0 "Is an antipope." \ No newline at end of file + is_antipope_tt:0 "Is an antipope." + NEOW_bulgarian_royal_army:0 "Bulgarian Royal Host" \ No newline at end of file diff --git a/localization/english/replace/zz_NEOW_wars_l_english.yml b/localization/english/replace/zz_NEOW_wars_l_english.yml index 5a99d8d4e..f56983b15 100644 --- a/localization/english/replace/zz_NEOW_wars_l_english.yml +++ b/localization/english/replace/zz_NEOW_wars_l_english.yml @@ -5,4 +5,13 @@ nistrenian_civil_war: "Nistrenian Civil War" lithuanian_crusade: "Lithuanian Crusade" sungazer_war: "Sungazer Restoration" hungol_civil_war: "Hungarian Civil War" -dundee_war: "Epic War" \ No newline at end of file +dundee_war: "Epic War" + neow_bulgarian_uprising_title:0 "Bulgarian Orthodox Uprising" + neow_bulgarian_uprising_title_adj:0 "Bulgarian Orthodox" + neow_bulgarian_uprising_army:0 "Bulgarian Orthodox Host" + neow_bulgarian_uprising_war_name:0 "Bulgarian Orthodox Uprising" + neow_bulgarian_orthodox_uprising_cb:0 "the struggle for the Faith" + neow_bulgarian_uprising_victory_desc:0 "The Orthodox host overthrows the reigning ruler and abolishes the Stratocratic religious head. Non-Orthodox vassals must accept Orthodoxy or face execution." + neow_bulgarian_uprising_defeat_desc:0 "The uprising is crushed and the Bulgarian Orthodox counties in the defender's realm adopt the defender's faith and rite." + neow_bulgarian_uprising_white_peace_desc:0 "The uprising ends without a change of faith or rule." + \ No newline at end of file