From 4ee8abdc617cb645878daf3b1523b33abd0aaa04 Mon Sep 17 00:00:00 2001 From: trashmasteruni Date: Sun, 11 Oct 2026 00:50:52 +0200 Subject: [PATCH] event fixes pt IV --- .../learning_medicine_events.txt | 208 +- .../learning_theology_events.txt | 166 +- .../learn_commander_trait_events.txt | 2771 ----------------- .../warfare_lifestyle/warhorse_events.txt | 12 +- .../false_conversion_events.txt | 93 +- events/religion_events/fervor_events.txt | 1938 ------------ .../religion_events/great_holy_war_events.txt | 302 +- .../religion_events/head_of_faith_events.txt | 756 ----- events/religion_events/heresy_events.txt | 1091 ------- .../human_sacrifice_events.txt | 231 -- events/religion_events/jewish_events.txt | 115 - .../court_scheme_ongoing_events.txt | 89 +- .../governor_contract_events.txt | 27 +- .../disbelieve_mandala_scheme_events.txt | 12 +- .../sway_scheme/sway_outcome_events.txt | 1966 ++++++------ events/test_events/debug.txt | 53 +- events/travel_events/test_events.txt | 107 - events/travel_events/travel_events_bp3.txt | 315 +- events/travel_events/travel_events_james.txt | 540 ++-- events/war_events/combat_events.txt | 15 +- events/war_events/raid_events.txt | 100 +- events/yearly_events/court_yearly_events.txt | 2 - 22 files changed, 2057 insertions(+), 8852 deletions(-) delete mode 100644 events/lifestyles/warfare_lifestyle/learn_commander_trait_events.txt delete mode 100644 events/religion_events/fervor_events.txt delete mode 100644 events/religion_events/head_of_faith_events.txt delete mode 100644 events/religion_events/heresy_events.txt delete mode 100644 events/religion_events/human_sacrifice_events.txt delete mode 100644 events/religion_events/jewish_events.txt delete mode 100644 events/travel_events/test_events.txt diff --git a/events/lifestyles/scholarship_lifestyle/learning_medicine_events.txt b/events/lifestyles/scholarship_lifestyle/learning_medicine_events.txt index 0fd0e3045..b9c383e62 100644 --- a/events/lifestyles/scholarship_lifestyle/learning_medicine_events.txt +++ b/events/lifestyles/scholarship_lifestyle/learning_medicine_events.txt @@ -165,6 +165,7 @@ learning_medicine.2001 = { #by Mathilda Bjarnehed create_character = { location = root.capital_province faith = root.faith + rite = root.rite culture = root.culture template = witchy_template save_scope_as = herbalist @@ -215,7 +216,7 @@ learning_medicine.2001 = { #by Mathilda Bjarnehed limit = { NOR = { has_trait = lifestyle_herbalist - faith = { has_doctrine_parameter = witchcraft_accepted } + rite = { rite_has_parameter = witchcraft_accepted } ai_zeal <= high_negative_ai_value } } @@ -408,7 +409,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed } triggered_desc = { trigger = { - faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } } + NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } desc = learning_medicine.2002.not_witchcraft_accepted.desc } @@ -474,7 +475,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed title = learning_medicine.2002.a.failure.t left_icon = scope:herbalist if = { - limit = { scope:herbalist = { faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } } } } + limit = { scope:herbalist = { NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } } reverse_add_opinion = { target = scope:herbalist modifier = impious_opinion @@ -482,7 +483,7 @@ learning_medicine.2002 = { #by Mathilda Bjarnehed } if = { - limit = { faith = { NOT = { has_doctrine_parameter = witchcraft_accepted } } } + limit = { NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } add_piety = minor_piety_loss } } @@ -640,6 +641,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed random_valid = { triggered_desc = { trigger = { + is_valid_for_east_asian_events_trigger = no NOR = { culture = { has_cultural_parameter = anglic_group_language_param } scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } } @@ -649,6 +651,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed } triggered_desc = { trigger = { + is_valid_for_east_asian_events_trigger = no NOR = { culture = { has_cultural_parameter = anglic_group_language_param } scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } } @@ -658,6 +661,7 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed } triggered_desc = { trigger = { + is_valid_for_east_asian_events_trigger = no NOR = { culture = { has_cultural_parameter = anglic_group_language_param } scope:court_physician = { culture = { has_cultural_parameter = anglic_group_language_param } } @@ -674,6 +678,84 @@ learning_medicine.2010 = { #by Mathilda Bjarnehed } desc = learning_medicine.2010.merck.desc } + triggered_desc = { + trigger = { + OR = { + culture = { has_cultural_pillar = heritage_chinese } + scope:court_physician.culture = { has_cultural_pillar = heritage_chinese } + } + } + desc = learning_medicine.2010.sun_simiao.desc + } + triggered_desc = { + trigger = { + OR = { + culture = { has_cultural_pillar = heritage_chinese } + scope:court_physician.culture = { has_cultural_pillar = heritage_chinese } + } + } + desc = learning_medicine.2010.zhan_zhongjing.desc + } + triggered_desc = { + trigger = { + OR = { + location = { geographical_region = world_asia } + is_valid_for_east_asian_events_trigger = yes # Culture is Japanese, Chinese or Korean + scope:court_physician.culture = { is_valid_for_east_asian_events_trigger = yes } + } + } + desc = learning_medicine.2010.hua_tuo.desc + } + triggered_desc = { + trigger = { + current_date >= 984.1.1 + OR = { + culture = { has_cultural_pillar = heritage_japonic } + scope:court_physician.culture = { has_cultural_pillar = heritage_japonic } + } + } + desc = learning_medicine.2010.tamba_yasuyori.desc + } + triggered_desc = { + trigger = { + current_date >= 1120.1.1 + location = { + geographical_region = world_europe + } + } + desc = learning_medicine.2010.hildegard.desc + } + triggered_desc = { + trigger = { + current_date >= 1316.12.30 + location = { + geographical_region = world_europe + } + } + desc = learning_medicine.2010.mundinus.desc + } + triggered_desc = { + trigger = { + NOR = { + culture = { has_cultural_pillar = heritage_arabic } + scope:court_physician = { culture = { has_cultural_pillar = heritage_arabic } } + faith = { religion_tag = islam_religion } + scope:court_physician.faith = { religion_tag = islam_religion } + } + current_date >= 1225.1.1 + } + desc = learning_medicine.2010.avicenna.desc + } + triggered_desc = { + trigger = { + NOR = { + has_culture = culture:italian + scope:court_physician = { has_culture = culture:italian } + } + current_date >= 1150.1.1 + } + desc = learning_medicine.2010.trota.desc + } } desc = learning_medicine.2010.fallback.desc } @@ -968,7 +1050,7 @@ learning_medicine.2021 = { #by Mathilda Bjarnehed ai_rationality = 0.25 } modifier = { - add = age + add = age } } } @@ -1567,7 +1649,7 @@ learning_medicine.2024 = { #by Mathilda Bjarnehed opinion = 10 } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_gain paranoid = minor_stress_impact_gain sadistic = minor_stress_impact_gain @@ -1588,7 +1670,7 @@ learning_medicine.2024 = { #by Mathilda Bjarnehed imprison_physician_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { forgiving = medium_stress_impact_gain compassionate = minor_stress_impact_gain content = minor_stress_impact_gain @@ -1638,7 +1720,7 @@ learning_medicine.2025 = { #by Mathilda Bjarnehed option = { name = learning_medicine.2025.b - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain } @@ -1980,7 +2062,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_loss deceitful = medium_stress_impact_gain paranoid = medium_stress_impact_gain @@ -2016,7 +2098,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = medium_stress_impact_gain paranoid = medium_stress_impact_gain shy = minor_stress_impact_gain @@ -2075,7 +2157,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = medium_stress_impact_gain paranoid = medium_stress_impact_gain shy = minor_stress_impact_gain @@ -2133,7 +2215,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss deceitful = major_stress_impact_gain paranoid = major_stress_impact_gain @@ -2158,7 +2240,7 @@ learning_medicine.2030 = { #by Mathilda Bjarnehed years = 15 } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain trusting = minor_stress_impact_gain gregarious = minor_stress_impact_gain @@ -2347,7 +2429,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed add_trait = athletic - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss lazy = minor_stress_impact_gain } @@ -2363,7 +2445,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed add_trait = journaller - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss dull = minor_stress_impact_gain intellect_bad_1 = minor_stress_impact_gain @@ -2397,7 +2479,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed send_interface_toast = { title = learning_medicine.2030.c.trait add_trait = athletic - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_loss } } @@ -2414,7 +2496,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain } } @@ -2440,7 +2522,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed send_interface_toast = { title = learning_medicine.2030.d.trait add_trait = journaller - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_loss } } @@ -2457,7 +2539,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { dull = minor_stress_impact_gain intellect_bad_1 = minor_stress_impact_gain intellect_bad_2 = minor_stress_impact_gain @@ -2470,7 +2552,7 @@ learning_medicine.2040 = { #by Mathilda Bjarnehed option = { name = learning_medicine.2040.e - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss diligent = minor_stress_impact_gain } @@ -2566,6 +2648,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed location = root.capital_province culture = root.capital_province.culture faith = root.capital_province.faith + rite = root.capital_province.rite template = pool_repopulate_prowess save_scope_as = soldier trait = wounded_2 @@ -2640,7 +2723,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } @@ -2682,7 +2765,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain } @@ -2697,7 +2780,7 @@ learning_medicine.2050 = { #by Mathilda Bjarnehed add_dread = medium_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain compassionate = major_stress_impact_gain forgiving = medium_stress_impact_gain @@ -2849,7 +2932,7 @@ learning_medicine.2052 = { #by Mathilda Bjarnehed REASON = friend_reassurance } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } } @@ -2864,7 +2947,7 @@ learning_medicine.2052 = { #by Mathilda Bjarnehed opinion = -5 } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain } } @@ -3080,7 +3163,7 @@ learning_medicine_special.2110 = { add = 10 OR = { has_trait = gluttonous - faith = { trait_is_virtue = gluttonous } + rite = { trait_is_virtue_rite = gluttonous } } } modifier = { #We just like meeting interesting people, to be honest. @@ -3185,18 +3268,18 @@ learning_medicine_special.2110 = { } else_if = { #If your faith hates such things, you get a little piety. limit = { - faith = { trait_is_sin = gluttonous } + rite = { trait_is_sin_rite = gluttonous } } add_piety = minor_piety_gain } else_if = { #Unless they like them, in which case you confuse and annoy people. limit = { - faith = { trait_is_virtue = gluttonous } + rite = { trait_is_virtue_rite = gluttonous } } add_piety = minor_piety_loss } else = { add_prestige = miniscule_prestige_gain } #Otherwise you're just a bit of a neutral kill-joy, I guess. - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain hashishiyah = medium_stress_impact_gain shy = minor_stress_impact_loss @@ -3272,21 +3355,21 @@ learning_medicine_special.2110 = { modifier = cosmic_insights_modifier days = 3650 } - stress_impact = { + stress_and_fulfillment_impact = { temperate = medium_stress_impact_gain shy = minor_stress_impact_gain hashishiyah = major_stress_impact_loss } if = { limit = { - faith = { + rite = { OR = { - religion_tag = islam_religion - trait_is_sin = gluttonous + faith = { religion_tag = islam_religion } + trait_is_sin_rite = gluttonous } } } - stress_impact = { zealous = minor_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain } } ai_chance = { base = 50 @@ -3399,21 +3482,21 @@ learning_medicine_special.2110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { temperate = major_stress_impact_gain shy = medium_stress_impact_gain hashishiyah = major_stress_impact_loss } if = { limit = { - faith = { + rite = { OR = { - religion_tag = islam_religion - trait_is_sin = gluttonous + faith = { religion_tag = islam_religion } + trait_is_sin_rite = gluttonous } } } - stress_impact = { zealous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } ai_chance = { base = 50 @@ -3631,7 +3714,7 @@ learning_medicine_special.1002 = { } } add_learning_lifestyle_xp = minor_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss @@ -3816,7 +3899,7 @@ learning_medicine_special.1103 = { scope:scoped_capital ?= { title_province = { create_epidemic_outbreak = { - type = dysentery + type = dysentery intensity = minor } } @@ -3947,7 +4030,7 @@ learning_medicine_special.1006 = { scope:scoped_capital ?= { title_province = { create_epidemic_outbreak = { - type = dysentery + type = dysentery intensity = minor } } @@ -4085,6 +4168,7 @@ learning_medicine_special.2100 = { random_traits = no employer = root faith = scope:hallucinogenic_fish_locale.faith + rite = scope:hallucinogenic_fish_locale.rite culture = scope:hallucinogenic_fish_locale.culture intrigue = 10 learning = 10 @@ -4146,7 +4230,7 @@ learning_medicine_special.2100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain temperate = minor_stress_impact_gain } @@ -4155,13 +4239,13 @@ learning_medicine_special.2100 = { ai_value_modifier = { ai_boldness = 0.5 } ai_value_modifier = { trigger = { - faith = { has_doctrine_parameter = witchcraft_shunned } + rite = { rite_has_parameter = witchcraft_shunned } } ai_zeal = -0.25 } ai_value_modifier = { trigger = { - faith = { has_doctrine_parameter = witchcraft_illegal } + rite = { rite_has_parameter = witchcraft_illegal } } ai_zeal = -0.50 } @@ -4258,15 +4342,14 @@ learning_medicine_special.2100 = { } if = { limit = { - faith = { - OR = { - has_doctrine_parameter = witchcraft_shunned - has_doctrine_parameter = witchcraft_illegal - } + OR = { + rite = { rite_has_parameter = witchcraft_shunned } + rite = { rite_has_parameter = witchcraft_illegal } } } - stress_impact = { zealous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } + stress_and_fulfillment_impact = { witch = medium_stress_impact_loss } ai_chance = { base = 50 ai_value_modifier = { @@ -4275,13 +4358,13 @@ learning_medicine_special.2100 = { } ai_value_modifier = { trigger = { - faith = { has_doctrine_parameter = witchcraft_shunned } + rite = { rite_has_parameter = witchcraft_shunned } } ai_zeal = -0.50 } ai_value_modifier = { trigger = { - faith = { has_doctrine_parameter = witchcraft_illegal } + rite = { rite_has_parameter = witchcraft_illegal } } ai_zeal = -0.75 } @@ -4297,11 +4380,9 @@ learning_medicine_special.2100 = { modifier = { add = -20 trigger = { - faith = { - OR = { - has_doctrine_parameter = witchcraft_shunned - has_doctrine_parameter = witchcraft_illegal - } + OR = { + rite = { rite_has_parameter = witchcraft_shunned } + rite = { rite_has_parameter = witchcraft_illegal } } } has_trait = zealous @@ -4311,7 +4392,7 @@ learning_medicine_special.2100 = { option = { #Suffer not the witch to live. name = learning_medicine_special.2100.c trigger = { - faith = { has_doctrine_parameter = witchcraft_illegal } + rite = { rite_has_parameter = witchcraft_illegal } } add_piety = major_piety_gain custom_tooltip = learning_medicine_special.2100.c.tt @@ -4323,12 +4404,13 @@ learning_medicine_special.2100 = { } } } - stress_impact = { compassionate = medium_stress_impact_gain } + pam_witch_justice_fulfillment_effect = yes + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain } ai_chance = { base = 50 ai_value_modifier = { trigger = { - faith = { has_doctrine_parameter = witchcraft_illegal } + rite = { rite_has_parameter = witchcraft_illegal } } ai_zeal = 0.75 } @@ -4359,13 +4441,13 @@ learning_medicine_special.2100 = { name = learning_medicine_special.2100.d if = { limit = { - faith = { has_doctrine_parameter = witchcraft_shunned } + rite = { rite_has_parameter = witchcraft_shunned } } add_prestige = minor_prestige_gain } else_if = { limit = { - faith = { has_doctrine_parameter = witchcraft_illegal } + rite = { rite_has_parameter = witchcraft_illegal } } add_prestige = medium_prestige_gain } diff --git a/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt b/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt index c7f1ab28b..cad69a08f 100644 --- a/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt +++ b/events/lifestyles/scholarship_lifestyle/learning_theology_events.txt @@ -149,27 +149,29 @@ learning_theology.2020 = { #by Mathilda Bjarnehed trigger = { root.religion = { is_in_family = rf_abrahamic } + NOT = { government_has_flag = government_is_theocracy } + is_clergy = no any_learning_councillor = { is_available_ai = yes } - faith = { #Matches learning_theology_2020_randomize_virtue_options_effect, to make sure you can get at least 1 option + rite = { #Matches learning_theology_2020_randomize_virtue_options_effect, to make sure you can get at least 1 option calc_true_if = { amount >= 2 - trait_is_virtue = brave - trait_is_virtue = just - trait_is_virtue = temperate - trait_is_virtue = chaste - trait_is_virtue = compassionate - trait_is_virtue = honest - trait_is_virtue = forgiving - trait_is_virtue = wrathful - trait_is_virtue = vengeful - trait_is_virtue = content - trait_is_virtue = patient - trait_is_virtue = calm - trait_is_virtue = humble - trait_is_virtue = diligent - trait_is_virtue = generous + trait_is_virtue_rite = brave + trait_is_virtue_rite = just + trait_is_virtue_rite = temperate + trait_is_virtue_rite = chaste + trait_is_virtue_rite = compassionate + trait_is_virtue_rite = honest + trait_is_virtue_rite = forgiving + trait_is_virtue_rite = wrathful + trait_is_virtue_rite = vengeful + trait_is_virtue_rite = content + trait_is_virtue_rite = patient + trait_is_virtue_rite = calm + trait_is_virtue_rite = humble + trait_is_virtue_rite = diligent + trait_is_virtue_rite = generous } } } @@ -346,79 +348,79 @@ learning_theology.2020 = { #by Mathilda Bjarnehed #That's not a virtue! OR = { AND = { - faith = { NOT = { trait_is_virtue = brave } } + rite = { NOT = { trait_is_virtue_rite = brave } } scope:virtue_choice = flag:brave } AND = { - faith = { NOT = { trait_is_virtue = just } } + rite = { NOT = { trait_is_virtue_rite = just } } scope:virtue_choice = flag:just } AND = { - faith = { NOT = { trait_is_virtue = temperate } } + rite = { NOT = { trait_is_virtue_rite = temperate } } scope:virtue_choice = flag:temperate } AND = { - faith = { NOT = { trait_is_virtue = chaste } } + rite = { NOT = { trait_is_virtue_rite = chaste } } scope:virtue_choice = flag:chaste } AND = { - faith = { NOT = { trait_is_virtue = compassionate } } + rite = { NOT = { trait_is_virtue_rite = compassionate } } scope:virtue_choice = flag:compassionate } AND = { - faith = { NOT = { trait_is_virtue = honest } } + rite = { NOT = { trait_is_virtue_rite = honest } } scope:virtue_choice = flag:honest } AND = { - faith = { NOT = { trait_is_virtue = forgiving } } + rite = { NOT = { trait_is_virtue_rite = forgiving } } scope:virtue_choice = flag:forgiving } AND = { - faith = { NOT = { trait_is_virtue = wrathful } } + rite = { NOT = { trait_is_virtue_rite = wrathful } } scope:virtue_choice = flag:wrathful } AND = { - faith = { NOT = { trait_is_virtue = vengeful } } + rite = { NOT = { trait_is_virtue_rite = vengeful } } scope:virtue_choice = flag:vengeful } AND = { - faith = { NOT = { trait_is_virtue = content } } + rite = { NOT = { trait_is_virtue_rite = content } } scope:virtue_choice = flag:content } AND = { - faith = { NOT = { trait_is_virtue = patient } } + rite = { NOT = { trait_is_virtue_rite = patient } } scope:virtue_choice = flag:patient } AND = { - faith = { NOT = { trait_is_virtue = calm } } + rite = { NOT = { trait_is_virtue_rite = calm } } scope:virtue_choice = flag:calm } AND = { - faith = { NOT = { trait_is_virtue = humble } } + rite = { NOT = { trait_is_virtue_rite = humble } } scope:virtue_choice = flag:humble } AND = { - faith = { NOT = { trait_is_virtue = diligent } } + rite = { NOT = { trait_is_virtue_rite = diligent } } scope:virtue_choice = flag:diligent } AND = { - faith = { NOT = { trait_is_virtue = generous } } + rite = { NOT = { trait_is_virtue_rite = generous } } scope:virtue_choice = flag:generous } AND = { - faith = { NOT = { trait_is_virtue = greedy } } + rite = { NOT = { trait_is_virtue_rite = greedy } } scope:virtue_choice = flag:greedy } AND = { - faith = { NOT = { trait_is_virtue = lustful } } + rite = { NOT = { trait_is_virtue_rite = lustful } } scope:virtue_choice = flag:lustful } AND = { - faith = { NOT = { trait_is_virtue = ambitious } } + rite = { NOT = { trait_is_virtue_rite = ambitious } } scope:virtue_choice = flag:ambitious } AND = { - faith = { NOT = { trait_is_virtue = gluttonous } } + rite = { NOT = { trait_is_virtue_rite = gluttonous } } scope:virtue_choice = flag:gluttonous } } @@ -720,7 +722,16 @@ learning_theology.2021 = { #by Mathilda Bjarnehed learning_theology.3002 = { type = character_event title = learning_theology.3002.t - desc = learning_theology.3002.desc + desc = { + first_valid = { + # A clergy scholar should not be told to leave it to the clergy + triggered_desc = { + trigger = { is_clergy = yes } + desc = learning_theology.3002.desc.clergy + } + desc = learning_theology.3002.desc + } + } theme = learning_theology_focus left_portrait = { @@ -818,6 +829,7 @@ learning_theology.3003 = { desc = learning_theology.3003.desc theme = learning_theology_focus + override_background = bp1_bonfire left_portrait = { character = root animation = survey @@ -829,6 +841,7 @@ learning_theology.3003 = { trigger = { root.religion = { is_in_family = rf_abrahamic } + NOT = { government_has_flag = government_is_theocracy } NOT = { has_character_flag = had_event_learning_theology_3003 } NOR = { has_character_modifier = scholarship_astrological_insights_modifier @@ -1734,7 +1747,7 @@ learning_theology.3031 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -1918,7 +1931,7 @@ learning_theology.3043 = { option = { # This is what I have been looking for name = learning_theology.3043.a add_trait = lifestyle_mystic - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain } ai_chance = { @@ -1933,7 +1946,7 @@ learning_theology.3043 = { modifier = introspective_rest_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_impact_gain zealous = minor_stress_impact_gain } @@ -2021,7 +2034,8 @@ learning_theology.3045 = { trait = fickle trait = diligent add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss stubborn = medium_stress_impact_gain } } @@ -2391,10 +2405,11 @@ learning_theology.3051 = { option = { # Nah, I don't want this one name = learning_theology.3051.b - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain zealous = minor_stress_impact_gain } + add_piety = miniscule_piety_value ai_chance = { base = 0 } @@ -2464,7 +2479,7 @@ learning_theology.3052 = { } add_piety = minor_piety_gain add_learning_lifestyle_xp = minor_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss arrogant = medium_stress_impact_gain ambitious = medium_stress_impact_gain @@ -2493,7 +2508,7 @@ learning_theology.3052 = { target = scope:passion_playwright } } - stress_impact = { + stress_and_fulfillment_impact = { journaller = minor_stress_impact_loss # You find writing relaxing arrogant = minor_stress_impact_loss content = minor_stress_impact_gain @@ -2532,7 +2547,7 @@ learning_theology.3053 = { option = { # Boo! name = learning_theology.3053.a add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { deviant = medium_stress_impact_gain lustful = medium_stress_impact_gain } @@ -2556,7 +2571,7 @@ learning_theology.3053 = { target = scope:passion_playwright } } - stress_impact = { + stress_and_fulfillment_impact = { journaller = minor_stress_impact_loss # You find writing relaxing arrogant = minor_stress_impact_loss content = minor_stress_impact_gain @@ -2578,7 +2593,7 @@ learning_theology.3053 = { add_piety = minor_piety_loss add_courtier = scope:passion_playwright set_relation_friend = { reason = friend_passion_play target = scope:passion_playwright } - stress_impact = { + stress_and_fulfillment_impact = { deviant = minor_stress_impact_loss lustful = minor_stress_impact_loss chaste = minor_stress_impact_gain @@ -2753,7 +2768,7 @@ learning_theology.3054 = { save_scope_as = lead_actor } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain humble = medium_stress_impact_gain arrogant = minor_stress_impact_loss @@ -2797,7 +2812,7 @@ learning_theology.3054 = { opinion = 15 target = scope:family_actor } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain ambitious = medium_stress_impact_gain family_first = minor_stress_impact_loss @@ -2848,7 +2863,7 @@ learning_theology.3054 = { } add_courtier = scope:random_actor } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain ambitious = medium_stress_impact_gain } @@ -2953,9 +2968,9 @@ learning_theology.3055 = { triggered_desc = { trigger = { NOT = { scope:lead_actor = root } - OR = { - has_character_flag = inferior_acting_flag - has_character_flag = inferior_passion_play_flag + has_variable = { + name = inferior_acting_flag + name = inferior_passion_play_flag } } desc = learning_theology.3055.desc.defeat_outro.hired_actor @@ -2963,9 +2978,9 @@ learning_theology.3055 = { #Defeat triggered_desc = { trigger = { - OR = { - has_character_flag = inferior_acting_flag - has_character_flag = inferior_passion_play_flag + has_variable = { + name = inferior_acting_flag + name = inferior_passion_play_flag } } desc = learning_theology.3055.desc.defeat_outro.solo @@ -2999,9 +3014,9 @@ learning_theology.3055 = { triggered_animation = { trigger = { root = { - OR = { - has_character_flag = inferior_acting_flag - has_character_flag = inferior_passion_play_flag + has_variable = { + name = inferior_acting_flag + name = inferior_passion_play_flag } } } @@ -3080,9 +3095,9 @@ learning_theology.3055 = { name = learning_theology.3055.b trigger = { root = { - OR = { - has_character_flag = inferior_passion_play_flag - has_character_flag = inferior_acting_flag + has_variable = { + name = inferior_passion_play_flag + name = inferior_acting_flag } } } @@ -3177,7 +3192,7 @@ learning_theology_special.1001 = { } } OR = { - has_trait = scholar + has_trait = erudite learning >= very_high_skill_rating } } @@ -3243,7 +3258,7 @@ learning_theology_special.1001 = { random_list = { 10 = { trigger = { - NOT = { faith = { has_doctrine = doctrine_adultery_women_accepted } } + NOT = { rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } save_scope_value_as = { name = female_adultery_doctrine @@ -3252,7 +3267,7 @@ learning_theology_special.1001 = { } 10 = { trigger = { - NOT = { faith = { has_doctrine = doctrine_adultery_men_accepted } } + NOT = { rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } save_scope_value_as = { name = male_adultery_doctrine @@ -3261,7 +3276,7 @@ learning_theology_special.1001 = { } 10 = { trigger = { - NOT = { faith = { has_doctrine = doctrine_homosexuality_accepted } } + NOT = { rite = { rite_has_doctrine = doctrine_homosexuality_accepted } } } save_scope_value_as = { name = homosexuality_doctrine @@ -3270,7 +3285,7 @@ learning_theology_special.1001 = { } 10 = { trigger = { - NOT = { faith = { has_doctrine = doctrine_kinslaying_accepted } } + NOT = { rite = { rite_has_doctrine = doctrine_kinslaying_accepted } } } save_scope_value_as = { name = kinslyaing_doctrine @@ -3279,7 +3294,7 @@ learning_theology_special.1001 = { } 10 = { trigger = { - NOT = { faith = { has_doctrine_parameter = witchcraft_accepted } } + NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } save_scope_value_as = { name = witchcraft_doctrine @@ -3288,7 +3303,7 @@ learning_theology_special.1001 = { } 10 = { trigger = { - NOT = { faith = { has_doctrine = doctrine_consanguinity_unrestricted } } + NOT = { rite = { rite_has_doctrine = doctrine_consanguinity_unrestricted } } } save_scope_value_as = { name = consanguinity_doctrine @@ -3329,7 +3344,7 @@ learning_theology_special.1001 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -3372,7 +3387,7 @@ learning_theology_special.1001 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -3429,7 +3444,7 @@ learning_theology_special.1001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss cynical = minor_stress_impact_gain } @@ -3442,7 +3457,7 @@ learning_theology_special.1001 = { name = learning_theology_special.1001.b add_learning_lifestyle_xp = medium_lifestyle_xp add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain cynical = medium_stress_impact_loss } @@ -3458,7 +3473,7 @@ learning_theology_special.1001 = { name = learning_theology_special.1001.c add_piety = medium_piety_gain zealous_progression_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss cynical = medium_stress_impact_gain } @@ -3656,7 +3671,7 @@ learning_theology_special.1101 = { template = scholar_character faith = faith:kabbalist culture = culture:french - trait = scholar + trait = erudite trait = diligent name = "Shlomo Yitzchaki" gender = male @@ -3695,6 +3710,7 @@ learning_theology_special.1101 = { location = root.capital_province template = scholar_character faith = root.faith + rite = root.rite culture = root.culture gender_female_chance = { if = { @@ -3738,7 +3754,7 @@ learning_theology_special.1101 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } diff --git a/events/lifestyles/warfare_lifestyle/learn_commander_trait_events.txt b/events/lifestyles/warfare_lifestyle/learn_commander_trait_events.txt deleted file mode 100644 index 6ba565fc8..000000000 --- a/events/lifestyles/warfare_lifestyle/learn_commander_trait_events.txt +++ /dev/null @@ -1,2771 +0,0 @@ -#Events for learning Commander Traits from a character -# by Petter Vilberg - -namespace = learn_commander_trait - - -#AI event for granting characters random commander traits -learn_commander_trait.0001 = { - hidden = yes - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - number_of_commander_traits < 3 - is_available_adult = yes - } - - weight_multiplier = { - base = 1 - compare_modifier = { - factor = martial - multiplier = 0.1 - max = 2 - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.25 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.25 - number_of_commander_traits > 1 - } - } - - immediate = { - give_random_commander_trait_effect = yes - } -} - - -#Choose whether to become aggressive_attacker, unyielding_defender or flexible_leader -learn_commander_trait.0002 = { - type = character_event - title = learn_commander_trait.0002.t - desc = learn_commander_trait.0002.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - number_of_commander_traits < 3 - } - - weight_multiplier = { - base = 1 - compare_modifier = { - factor = martial - multiplier = 0.1 - max = 2 - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0002.a - trigger = { NOT = { has_trait = aggressive_attacker } } - add_trait = aggressive_attacker - stress_impact = { - calm = minor_stress_impact_gain - lazy = minor_stress_impact_gain - forgiving = minor_stress_impact_gain - patient = minor_stress_impact_gain - craven = medium_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_zeal = 0.25 - ai_energy = 0.5 - ai_boldness = 1 - ai_vengefulness = 0.2 - ai_compassion = -0.5 - } - } - } - - option = { - name = learn_commander_trait.0002.b - trigger = { NOT = { has_trait = unyielding_defender } } - add_trait = unyielding_defender - stress_impact = { - arrogant = minor_stress_impact_gain - fickle = minor_stress_impact_gain - ambitious = minor_stress_impact_gain - impatient = medium_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_zeal = -0.25 - ai_boldness = -0.2 - ai_rationality = 0.2 - ai_honor = 0.2 - } - } - } - - option = { - name = learn_commander_trait.0002.c - trigger = { NOT = { has_trait = flexible_leader } } - add_trait = flexible_leader - stress_impact = { - stubborn = medium_stress_impact_gain - content = minor_stress_impact_gain - impatient = minor_stress_impact_gain - wrathful = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_rationality = 1 - ai_boldness = 0.5 - ai_vengefulness = -0.5 - } - } - } -} - -#Choose whether to become a Logistician, a Military Engineer, or forder -learn_commander_trait.0003 = { - type = character_event - title = learn_commander_trait.0003.t - desc = learn_commander_trait.0003.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - number_of_commander_traits < 3 - } - - weight_multiplier = { - base = 1 - compare_modifier = { - factor = martial - multiplier = 0.1 - max = 2 - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0003.a - trigger = { NOT = { has_trait = logistician } } - add_trait = logistician - stress_impact = { - impatient = minor_stress_impact_gain - greedy = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - stubborn = minor_stress_impact_gain - lazy = minor_stress_impact_gain - eccentric = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_rationality = 1 - ai_energy = 0.25 - ai_greed = -0.5 - } - } - } - - option = { - name = learn_commander_trait.0003.b - trigger = { NOT = { has_trait = military_engineer } } - add_trait = military_engineer - stress_impact = { - impatient = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_energy = -0.25 - ai_greed = 0.5 - ai_boldness = -0.25 - } - } - } - - option = { - name = learn_commander_trait.0003.c - trigger = { NOT = { has_trait = forder } } - add_trait = forder - stress_impact = { - eccentric = minor_stress_impact_loss - patient = minor_stress_impact_gain - content = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_boldness = 0.5 - ai_energy = 0.5 - ai_rationality = -0.25 - } - } - } -} - -#Choose whether to become Reckless or a Reaver -learn_commander_trait.0004 = { - type = character_event - title = learn_commander_trait.0004.t - desc = learn_commander_trait.0004.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - number_of_commander_traits < 3 - OR = { - NOT = { has_trait = reckless } - NOT = { has_trait = reaver } - } - } - - weight_multiplier = { - base = 1 - compare_modifier = { - factor = martial - multiplier = 0.1 - max = 2 - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { #Reckless - name = learn_commander_trait.0004.b - trigger = { NOT = { has_trait = reckless } } - add_trait = reckless - stress_impact = { - eccentric = minor_stress_impact_loss - calm = minor_stress_impact_gain - paranoid = medium_stress_impact_gain - diligent = medium_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_rationality = -0.5 - ai_zeal = 0.5 - ai_boldness = 1 - ai_vengefulness = 0.5 - } - } - } - - option = { #Reaver - name = learn_commander_trait.0004.c - trigger = { NOT = { has_trait = reaver } } - add_trait = reaver - stress_impact = { - generous = medium_stress_impact_gain - forgiving = minor_stress_impact_gain - eccentric = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_compassion = -1 - ai_honor = -0.25 - ai_boldness = 0.5 - ai_energy = 0.5 - } - } - } -} - - -#Become a Holy Warrior -learn_commander_trait.0006 = { - type = character_event - title = learn_commander_trait.0006.t - desc = learn_commander_trait.0006.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - NOT = { has_trait = holy_warrior } - number_of_commander_traits < 3 - NOT = { has_trait = cynical } - piety > 0 - } - - weight_multiplier = { - base = 1 - modifier = { - factor = 5 - has_trait = zealous - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0006.a - add_trait = holy_warrior - } -} - -#Become a Desert Warrior -learn_commander_trait.0007 = { - type = character_event - title = learn_commander_trait.0007.t - desc = learn_commander_trait.0007.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - NOT = { has_trait = desert_warrior } - number_of_commander_traits < 3 - any_directly_owned_province = { - terrain = desert - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - capital_province = { - terrain = desert - } - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 1.5 - any_directly_owned_province = { - count > 3 - terrain = desert - } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0007.a - add_trait = desert_warrior - } -} - -#Become a Jungle Stalker -learn_commander_trait.0008 = { - type = character_event - title = learn_commander_trait.0008.t - desc = learn_commander_trait.0008.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - NOT = { has_trait = jungle_stalker } - number_of_commander_traits < 3 - any_directly_owned_province = { - terrain = jungle - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - capital_province = { - terrain = jungle - } - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 1.5 - any_directly_owned_province = { - count > 3 - terrain = jungle - } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0008.a - add_trait = jungle_stalker - } -} - -#Become a Winter Soldier -learn_commander_trait.0009 = { - type = character_event - title = learn_commander_trait.0009.t - desc = learn_commander_trait.0009.desc - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - NOT = { has_trait = winter_soldier } - number_of_commander_traits < 3 - any_directly_owned_province = { - OR = { - terrain = taiga - geographical_region = world_tibet - geographical_region = world_europe_north - geographical_region = world_europe_east - geographical_region = world_steppe - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - capital_province = { - terrain = taiga - } - } - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 1.5 - any_directly_owned_province = { - count > 3 - terrain = taiga - } - } - modifier = { - factor = 0.3 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.3 - number_of_commander_traits > 1 - } - } - - option = { - name = learn_commander_trait.0009.a - add_trait = winter_soldier - } -} - - -################## -# Commander Trait Teaching/Learning Chain -# 1000-1999 -# by Petter Vilberg -################## -#NOTE: All last two digits (xx03, xx21, etc.) should refer to the same trait. - -learn_commander_trait.1000 = { - type = character_event - hidden = yes - - trigger = { - NOT = { has_character_flag = being_taught_commander_trait } - number_of_commander_traits < commander_trait_limit - #Check for a suitable teacher - OR = { - any_vassal = { - is_available_adult = yes - opinion = { - target = root - value > 10 - } - #has_trait = education_martial - root = { - character_has_commander_trait_scope_does_not = prev - } - } - any_courtier = { - is_available_adult = yes - opinion = { - target = root - value > 10 - } - #has_trait = education_martial - root = { - character_has_commander_trait_scope_does_not = prev - } - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - culture = { has_cultural_parameter = commanders_likelier_to_gain_commander_traits } - } - modifier = { - factor = 0.5 - number_of_commander_traits > 0 - } - modifier = { - factor = 0.5 - number_of_commander_traits > 1 - } - } - - immediate = { - #Find an AI Vassal or Commander who has a CT you don't - random_vassal = { - limit = { - is_available_adult = yes - opinion = { - target = root - value > 10 - } - root = { - character_has_commander_trait_scope_does_not = prev - } - } - weight = { - base = 1 - modifier = { - add = 4 - has_trait = education_martial - } - } - save_scope_as = teacher - } - if = { - limit = { - NOT = { exists = scope:teacher } - } - random_courtier = { - limit = { - is_available_adult = yes - opinion = { - target = root - value > 10 - } - #has_trait = education_martial - root = { - character_has_commander_trait_scope_does_not = prev - } - } - save_scope_as = teacher - } - } - if = { - limit = { root = { is_ai = no } } - scope:teacher = { #Make sure they have a quirk to refer to. - assign_quirk_effect = yes - } - } - add_character_flag = { - flag = being_taught_commander_trait - days = 1825 - } - randomize_commander_trait_to_be_taught_effect = yes - if = { - limit = { - has_variable = commander_trait_being_taught - } - trigger_event = { - on_action = learn_commander_trait_offer - } - } - } -} - - -############## -#TRAIT CHAINS -############## - - -#Logistician -############## - -#Training offer -learn_commander_trait.1101 = { - type = character_event - title = learn_commander_trait.01.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.1101.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:logistician - is_imprisoned = no - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final Test -learn_commander_trait.1201 = { - type = character_event - title = learn_commander_trait.01.t - desc = learn_commander_trait.1201.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:logistician - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - -#Success -learn_commander_trait.1301 = { - type = character_event - title = learn_commander_trait.01.t - desc = learn_commander_trait.1301.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:logistician - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - -#Failure -learn_commander_trait.1401 = { - type = character_event - title = learn_commander_trait.01.t - desc = learn_commander_trait.1401.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:logistician - } - - immediate = { - - } - - option = { #I will try again! - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { #I give up - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - -#Military Engineer -################## - -#Training offer -learn_commander_trait.1102 = { - type = character_event - title = learn_commander_trait.02.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.1102.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:military_engineer - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1202 = { - type = character_event - title = learn_commander_trait.02.t - desc = learn_commander_trait.1202.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:military_engineer - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1302 = { - type = character_event - title = learn_commander_trait.02.t - desc = learn_commander_trait.1302.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:military_engineer - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1402 = { - type = character_event - title = learn_commander_trait.02.t - desc = learn_commander_trait.1402.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:military_engineer - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - -#aggressive_attacker -################## - -#Training offer -learn_commander_trait.1103 = { - type = character_event - title = learn_commander_trait.03.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:aggressive_attacker - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1203 = { - type = character_event - title = learn_commander_trait.03.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:aggressive_attacker - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1303 = { - type = character_event - title = learn_commander_trait.03.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:aggressive_attacker - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1403 = { - type = character_event - title = learn_commander_trait.03.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:aggressive_attacker - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - -#unyielding_defender -################## - -#Training offer -learn_commander_trait.1104 = { - type = character_event - title = learn_commander_trait.04.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:unyielding_defender - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1204 = { - type = character_event - title = learn_commander_trait.04.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:unyielding_defender - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1304 = { - type = character_event - title = learn_commander_trait.04.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:unyielding_defender - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1404 = { - type = character_event - title = learn_commander_trait.04.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:unyielding_defender - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - - - -#forder -################## - -#Training offer -learn_commander_trait.1105 = { - type = character_event - title = learn_commander_trait.05.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:forder - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1205 = { - type = character_event - title = learn_commander_trait.05.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:forder - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1305 = { - type = character_event - title = learn_commander_trait.05.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:forder - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1405 = { - type = character_event - title = learn_commander_trait.05.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:forder - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - - - - -#flexible_leader -################## - -#Training offer -learn_commander_trait.1106 = { - type = character_event - title = learn_commander_trait.06.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:flexible_leader - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1206 = { - type = character_event - title = learn_commander_trait.06.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:flexible_leader - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1306 = { - type = character_event - title = learn_commander_trait.06.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:flexible_leader - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1406 = { - type = character_event - title = learn_commander_trait.06.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:flexible_leader - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - - - -#desert_warrior -################## - -#Training offer -learn_commander_trait.1107 = { - type = character_event - title = learn_commander_trait.07.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:desert_warrior - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1207 = { - type = character_event - title = learn_commander_trait.07.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:desert_warrior - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1307 = { - type = character_event - title = learn_commander_trait.07.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:desert_warrior - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1407 = { - type = character_event - title = learn_commander_trait.07.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:desert_warrior - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - - -#jungle_stalker -################## - -#Training offer -learn_commander_trait.1108 = { - type = character_event - title = learn_commander_trait.08.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:jungle_stalker - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1208 = { - type = character_event - title = learn_commander_trait.08.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:jungle_stalker - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1308 = { - type = character_event - title = learn_commander_trait.08.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:jungle_stalker - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1408 = { - type = character_event - title = learn_commander_trait.08.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:jungle_stalker - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - -#winter_soldier -################## - -#Training offer -learn_commander_trait.1109 = { - type = character_event - title = learn_commander_trait.09.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:winter_soldier - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1209 = { - type = character_event - title = learn_commander_trait.09.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:winter_soldier - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1309 = { - type = character_event - title = learn_commander_trait.09.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:winter_soldier - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1409 = { - type = character_event - title = learn_commander_trait.09.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:winter_soldier - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - -#reaver -################## - -#Training offer -learn_commander_trait.1110 = { - type = character_event - title = learn_commander_trait.10.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:reaver - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1210 = { - type = character_event - title = learn_commander_trait.10.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:reaver - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1310 = { - type = character_event - title = learn_commander_trait.10.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:reaver - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1410 = { - type = character_event - title = learn_commander_trait.10.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:reaver - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - -#reckless -################## - -#Training offer -learn_commander_trait.1112 = { - type = character_event - title = learn_commander_trait.12.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:reckless - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1212 = { - type = character_event - title = learn_commander_trait.12.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:reckless - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1312 = { - type = character_event - title = learn_commander_trait.12.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:reckless - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1412 = { - type = character_event - title = learn_commander_trait.12.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:reckless - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - - - - - -#holy_warrior -################## - -#Training offer -learn_commander_trait.1113 = { - type = character_event - title = learn_commander_trait.13.t - desc = { - desc = learn_commander_trait.11.opening - desc = learn_commander_trait.11.desc - } - theme = war - left_portrait = { - character = root - animation = inspect_weapon - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:holy_warrior - } - - weight_multiplier = { - base = 1 - } - - option = { #Please teach me - name = learn_commander_trait.11.a - commander_trait_teaching_setup_effect = yes - custom_tooltip = learn_commander_trait.11.martial_tt - } - - option = { #No, I already know enough - name = learn_commander_trait.11.b - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - custom_tooltip = learn_commander_trait.11.b.tt - } -} - -#Final test -learn_commander_trait.1213 = { - type = character_event - title = learn_commander_trait.13.t - desc = learn_commander_trait.12.desc - theme = war - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - has_variable = commander_trait_being_taught - var:commander_trait_being_taught = flag:holy_warrior - } - - option = { - name = learn_commander_trait.12.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #Back out - name = learn_commander_trait.12.b - stress_impact = { - base = minor_stress_gain - } - giving_up_on_commander_trait_training_effect = yes - } -} - - -#Success -learn_commander_trait.1313 = { - type = character_event - title = learn_commander_trait.13.t - desc = learn_commander_trait.13.desc - theme = war - left_portrait = { - character = root - animation = celebrate_wooden_sword - } - right_portrait = { - character = scope:teacher - animation = happy_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:holy_warrior - } - - option = { - name = learn_commander_trait.13.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - - -#Failure -learn_commander_trait.1413 = { - type = character_event - title = learn_commander_trait.13.t - desc = learn_commander_trait.14.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = stressed_teacher - } - - trigger = { - var:commander_trait_being_taught = flag:holy_warrior - } - - immediate = { - - } - - option = { - name = learn_commander_trait.14.a - custom_tooltip = learn_commander_trait.14.a.tt - trigger_event = { - on_action = learn_commander_trait_test - days = { 50 600 } - } - } - - option = { - name = learn_commander_trait.14.b - custom_tooltip = learn_commander_trait.14.b.tt - giving_up_on_commander_trait_training_effect = yes - } -} - - -###### -# The Teacher has died or been imprisoned -##### - -#Final Test -learn_commander_trait.1291 = { - type = character_event - title = learn_commander_trait.91.t - desc = learn_commander_trait.1291.desc - theme = war - left_portrait = { - character = root - animation = sadness - } - right_portrait = { - character = scope:teacher - animation = dead - } - - trigger = { - scope:teacher = { - OR = { - is_alive = no - is_imprisoned = yes - } - } - } - - option = { - name = learn_commander_trait.1291.a - learn_commander_trait_final_test_duel_effect = yes - } - - option = { #No, there's no point - name = learn_commander_trait.1291.b - custom_tooltip = learn_commander_trait.giving_up_tt - if = { - limit = { - NOT = { - exists = scope:long_term_mentor - } - scope:teacher = { is_alive = yes } - has_relation_mentor = scope:teacher - } - remove_relation_mentor = scope:teacher - } - remove_character_flag = being_taught_commander_trait - remove_variable = commander_trait_being_taught - } -} - - -#Success -learn_commander_trait.1391 = { - type = character_event - title = learn_commander_trait.91.t - desc = learn_commander_trait.1391.desc - theme = war - left_portrait = { - character = root - animation = wedding_happy_cry - } - right_portrait = { - character = scope:teacher - animation = dead - } - - trigger = { - scope:teacher = { - OR = { - is_alive = no - is_imprisoned = yes - } - } - } - - option = { - name = learn_commander_trait.1391.a - learn_commander_trait_success_effect = yes - } - - after = { - if = { - limit = { - exists = var:commander_trait_being_taught - } - remove_variable = commander_trait_being_taught - } - if = { - limit = { - has_character_flag = being_taught_commander_trait - } - remove_character_flag = being_taught_commander_trait - } - } -} - -#Failure -learn_commander_trait.1491 = { - type = character_event - title = learn_commander_trait.91.t - desc = learn_commander_trait.1491.desc - theme = war - left_portrait = { - character = root - animation = shame - } - right_portrait = { - character = scope:teacher - animation = dead - } - - trigger = { - scope:teacher = { - OR = { - is_alive = no - is_imprisoned = yes - } - } - } - - option = { - name = learn_commander_trait.1491.a - remove_variable = commander_trait_being_taught - remove_character_flag = being_taught_commander_trait - if = { - limit = { - scope:teacher = { - is_alive = yes - } - has_relation_mentor = scope:teacher - NOT = { - exists = scope:long_term_mentor - } - } - remove_relation_mentor = scope:teacher - } - stress_impact = { - arrogant = minor_stress_impact_gain - } - } -} diff --git a/events/lifestyles/warfare_lifestyle/warhorse_events.txt b/events/lifestyles/warfare_lifestyle/warhorse_events.txt index 3d31b1e6f..ec8518564 100644 --- a/events/lifestyles/warfare_lifestyle/warhorse_events.txt +++ b/events/lifestyles/warfare_lifestyle/warhorse_events.txt @@ -428,7 +428,7 @@ warhorse.0003 = { name = warhorse.0003.rlung_rta trigger = { OR = { - faith = faith:lamaism + faith = faith:vajrayana_faith culture = { has_cultural_pillar = heritage_tibetan } @@ -1051,7 +1051,7 @@ warhorse.1101 = { modifier = horse_practice_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain diligent = medium_stress_impact_loss } @@ -1065,7 +1065,7 @@ warhorse.1101 = { option = { #Ride leisurely name = warhorse.1101.b - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss lazy = minor_stress_impact_loss } @@ -1111,7 +1111,7 @@ warhorse.1201 = { option = { #I'll pay whatever! name = warhorse.1201.a remove_short_term_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -1145,7 +1145,7 @@ warhorse.1201 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain } ai_chance = { @@ -1330,7 +1330,7 @@ warhorse.1401 = { scope:story = { hidden_effect = { end_story = yes } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_loss } } diff --git a/events/religion_events/false_conversion_events.txt b/events/religion_events/false_conversion_events.txt index 9d0c6e119..2bf74dac1 100644 --- a/events/religion_events/false_conversion_events.txt +++ b/events/religion_events/false_conversion_events.txt @@ -21,7 +21,7 @@ # hidden = yes # trigger = { -# scope:old_faith = { has_doctrine_parameter = sanctioned_false_conversion } +# scope:old_faith = { main_rite = { rite_has_parameter = sanctioned_false_conversion } } # NOR = { # any_secret = { type = secret_crypto_religionist } # has_variable = forbid_crypto_reconversion @@ -43,7 +43,7 @@ false_conversion.0002 = { scope = landed_title trigger = { - scope:old_faith = { has_doctrine_parameter = sanctioned_false_conversion } + scope:old_faith = { main_rite = { rite_has_parameter = sanctioned_false_conversion } } NOR = { has_variable = false_convert has_variable = forbid_crypto_reconversion @@ -147,8 +147,8 @@ false_conversion.0020 = { # Deduct piety, but only if faith doesn't sanction false conversions if = { limit = { - faith = { - NOT = { has_doctrine_parameter = sanctioned_false_conversion } + rite = { + NOT = { rite_has_parameter = sanctioned_false_conversion } } } add_piety = major_piety_loss @@ -214,10 +214,11 @@ false_conversion.0020 = { # } # } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain #Damn it, I was passionate about my openly-practiced faith! cynical = medium_stress_impact_gain #Damn it, they're all basically the same! Probably! } + change_spiritual_fulfillment = major_spiritual_fulfillment_value #Openly living your true faith again. ai_chance = { base = 60 ai_value_modifier = { @@ -243,16 +244,17 @@ false_conversion.0020 = { # Deduct piety, but only if faith doesn't sanction false conversions if = { limit = { - faith = { - NOT = { has_doctrine_parameter = sanctioned_false_conversion } + rite = { + NOT = { rite_has_parameter = sanctioned_false_conversion } } } add_piety = major_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain #Damn it, I was passionate about my openly-practiced faith! cynical = medium_stress_impact_gain #Damn it, they're all basically the same! Probably! } + change_spiritual_fulfillment = major_spiritual_fulfillment_value #Openly living your true faith again. ai_chance = { base = 60 ai_value_modifier = { @@ -314,8 +316,8 @@ false_conversion.0030 = { } triggered_desc = { trigger = { - faith = { - has_doctrine = doctrine_pluralism_pluralistic + rite = { + rite_has_doctrine = doctrine_pluralism_pluralistic } } desc = false_conversion.0030.desc_no_secret_faith @@ -353,7 +355,7 @@ false_conversion.0030 = { } if = { #If pluralistic, look at any hidden faiths. limit = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } every_vassal = { limit = { #Providing they are equal-to-or-less in hostility. @@ -393,7 +395,7 @@ false_conversion.0030 = { save_temporary_scope_as = current_character root.faith = { faith_hostility_level_comparison = { - secret_faith <= scope:current_character.faith + scope:current_character.secret_faith <= scope:current_character.faith } } OR = { @@ -575,7 +577,7 @@ false_conversion.0030 = { } if = { #Under pluralist lieges, tell suitable players that their liege is offering amnesty. limit = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } every_vassal = { limit = { @@ -598,13 +600,13 @@ false_conversion.0030 = { # Piety loss, but not if has false conversion sanction tenet if = { limit = { - faith = { - NOT = { has_doctrine = tenet_false_conversion_sanction } + rite = { + NOT = { rite_has_tenet = tenet_false_conversion_sanction } } } add_piety = major_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_loss trusting = minor_stress_impact_loss } @@ -695,7 +697,7 @@ false_conversion.0031 = { modifier = religious_freedom_opinion target = root } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain cynical = medium_stress_impact_gain deceitful = medium_stress_impact_gain @@ -709,7 +711,7 @@ false_conversion.0031 = { } option = { #I know how this goes: I'll keep my private faith private. name = false_conversion.0031.b - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain trusting = medium_stress_impact_gain deceitful = medium_stress_impact_loss @@ -821,7 +823,7 @@ false_conversion.1000 = { first_valid = { triggered_desc = { trigger = { - faith = { has_doctrine_parameter = sanctioned_false_conversion } + rite = { rite_has_parameter = sanctioned_false_conversion } any_in_list = { list = spouses_and_family_to_convert count > 1 @@ -831,7 +833,7 @@ false_conversion.1000 = { } triggered_desc = { trigger = { - faith = { has_doctrine_parameter = sanctioned_false_conversion } + rite = { rite_has_parameter = sanctioned_false_conversion } } desc = false_conversion.1000.b_sanctioned_single } @@ -850,7 +852,7 @@ false_conversion.1000 = { } } trigger = { - #faith = { has_doctrine_parameter = sanctioned_false_conversion } + #rite = { rite_has_parameter = sanctioned_false_conversion } # Don't override old secret faiths NOR = { any_secret = { type = secret_crypto_religionist } @@ -866,7 +868,7 @@ false_conversion.1000 = { religion_adopt_secret_faith_modifier = { TARGET = root FORCED = yes - FAITH = root.faith + RITE = root.rite } } } @@ -947,11 +949,11 @@ false_conversion.1010 = { value = yes } } - 0 = { + 10 = { religion_adopt_secret_faith_modifier = { - TARGET = root + TARGET = scope:spouse FORCED = yes - FAITH = root.faith + RITE = root.rite } save_scope_value_as = { name = spouse_wants_secret_faith @@ -993,7 +995,7 @@ false_conversion.1010 = { first_valid = { triggered_desc = { trigger = { - faith = { has_doctrine_parameter = sanctioned_false_conversion } + rite = { rite_has_parameter = sanctioned_false_conversion } } desc = false_conversion.1000.b_sanctioned_plural } @@ -1025,14 +1027,14 @@ false_conversion.1010 = { religion_adopt_secret_faith_modifier = { TARGET = root FORCED = yes - FAITH = root.faith + RITE = root.rite } } } } # Secret-Faith Yearlies -# ===================== +# ##################### ## A Moment of Weakness ## Someone close to you is in pain, attempt to convert them to your crypto-religion as a coping method? scripted_trigger false_conversion_2000_is_vulnerable_trigger = { @@ -1056,7 +1058,7 @@ scripted_trigger false_conversion_2000_is_vulnerable_trigger = { } } } - has_trait = depressed_1 + has_trait = depressed } } @@ -1220,14 +1222,16 @@ false_conversion.2000 = { scope:vulnerable_relation = { AND = { has_character_modifier = stress_frozen_grief - OR = { - has_memory_type = friend_died - has_memory_type = best_friend_died - has_memory_type = lover_died - has_memory_type = soulmate_died - has_memory_type = relative_died - has_memory_type = spouse_died - has_memory_type = dog_died + any_memory = { + OR = { + has_memory_type = friend_died + has_memory_type = best_friend_died + has_memory_type = lover_died + has_memory_type = soulmate_died + has_memory_type = relative_died + has_memory_type = spouse_died + has_memory_type = dog_died + } } } } @@ -1256,7 +1260,7 @@ false_conversion.2000 = { } } else_if = { - limit = { scope:vulnerable_relation = { has_trait = depressed_1 } } + limit = { scope:vulnerable_relation = { has_trait = depressed } } add_character_flag = { flag = false_conversion_2000_depression days = 1 @@ -1318,7 +1322,7 @@ false_conversion.2000 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain } @@ -1341,7 +1345,7 @@ false_conversion.2000 = { target = scope:vulnerable_relation modifier = comforted_opinion } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss } @@ -1388,7 +1392,7 @@ false_conversion.2001 = { option = { # Convert name = false_conversion.2001.a false_conversion_2000_convert = yes - stress_impact = { + stress_and_fulfillment_impact = { honest = major_stress_impact_gain craven = medium_stress_impact_gain paranoid = medium_stress_impact_gain @@ -1402,9 +1406,6 @@ false_conversion.2001 = { } } -# Bonus event: Avoid a holy war by converting to the aggressor's religion -# TO-DO - # Your secret religion has been exposed, do you openly convert to it or abandon it? false_conversion.8000 = { type = character_event @@ -1459,7 +1460,7 @@ false_conversion.8000 = { add_piety = medium_piety_loss add_piety_level = -1 - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain content = minor_stress_impact_loss arbitrary = minor_stress_impact_loss @@ -1474,7 +1475,7 @@ false_conversion.8000 = { set_character_faith_with_conversion = secret_faith remove_character_secret_faith = yes - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain zealous = medium_stress_impact_loss honest = minor_stress_impact_loss diff --git a/events/religion_events/fervor_events.txt b/events/religion_events/fervor_events.txt deleted file mode 100644 index f55e8e2b6..000000000 --- a/events/religion_events/fervor_events.txt +++ /dev/null @@ -1,1938 +0,0 @@ -namespace = fervor - -######################### -# Sinful Priest Scandal # -# by Sean Hughes # -# 1001-1002 # -######################### - -# Trigger for checking if a character has the privliages + reponsibilities of a priest of their faith. -scripted_trigger is_capable_priest = { - is_capable_adult_ai = yes - is_imprisoned = no - NOT = { - has_trait = excommunicated - } - faith.religious_head != this # Head of Faith gets checked separately. - OR = { - AND = { # All Faiths: Must be the Head of Faith, if one exists. - exists = faith.religious_head - this = faith.religious_head - } - AND = {# All Faiths: Must be a Theocracy. - government_has_flag = government_is_theocracy - is_landed = yes - } - trigger_if = { # Theocratic Faiths: Must be a Bishop - limit = { faith = { has_doctrine_parameter = theocracy_temple_lease } } - has_council_position = councillor_court_chaplain - } - trigger_if = { # Lay Clergy Faiths: Must personally hold a Temple. - limit = { faith = { has_doctrine_parameter = theocracy_temple_ownership } } - any_held_title = { - title_tier = barony - title_province ?= { - has_holding_type = church_holding - } - } - } - } -} - -# Used to find a sinful theocrat who could be the target of a scandal. -scripted_trigger valid_scandal_target = { - faith = root - num_sinful_traits >= 1 - is_capable_priest = yes -} - -# Used to determine an appropriate scandal for the sinful theocrat to be caught doing. -scripted_trigger theocrat_has_sin = { - scope:sinful_theocrat = { - has_trait = $SIN$ - faith = { trait_is_sin = $SIN$ } - } -} - -fervor.1001 = { - hidden = yes - scope = faith - - trigger = { - num_county_followers > 0 - OR = { # Must have a valid sinful theocrat. - AND = { # Sinful Head of Faith - religious_head ?= { - is_capable_adult_ai = yes - num_sinful_traits >= 1 - } - } - AND = { # Sinful Theocratic Ruler - any_theocratic_ruler = { - valid_scandal_target = yes - } - } - trigger_if = { # Theocracy: Sinful Bishop - limit = { - has_doctrine_parameter = theocracy_temple_lease - } - any_faith_ruler = { - cp:councillor_court_chaplain ?= { valid_scandal_target = yes } - } - } - trigger_if = { # Lay Clergy: Sinful Temple Holder - limit = { - has_doctrine_parameter = theocracy_temple_ownership - } - any_faith_ruler = { - valid_scandal_target = yes - any_held_title = { - title_tier = barony - title_province ?= { has_holding_type = church_holding } - } - } - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 2 - num_county_followers >= 300 - } - modifier = { - add = 1.67 - num_county_followers >= 200 - } - modifier = { - add = 1.33 - num_county_followers >= 100 - } - modifier = { - add = 1.00 - num_county_followers >= 50 - } - modifier = { - add = 0.67 - num_county_followers >= 25 - } - modifier = { - add = 0.33 - num_county_followers >= 10 - } - modifier = { - add = 1.5 - religious_head ?= { - num_sinful_traits >= 2 - } - } - modifier = { - add = 1.5 - religious_head ?= { - num_sinful_traits >= 3 - } - } - } - - immediate = { - # Pick a suitable theocrat to be the target of our scandal. - random_list = { - 20 = { # Religious Head - trigger = { - religious_head ?= { - num_sinful_traits >= 1 - valid_scandal_target = yes - } - } - - compare_modifier = { - value = religious_head.num_sinful_traits - multiplier = 20 - } - compare_modifier = { - value = religious_head.num_virtuous_traits - multiplier = -20 - } - - modifier = { - add = 10 - religious_head = { - has_strong_religious_conviction_trigger = no - } - } - - religious_head = { - save_scope_as = sinful_theocrat - } - } - 60 = { # Theocratic Ruler - trigger = { - any_theocratic_ruler = { - valid_scandal_target = yes - } - } - random_theocratic_ruler = { - limit = { - valid_scandal_target = yes - highest_held_title_tier >= 3 - } - alternative_limit = { - valid_scandal_target = yes - highest_held_title_tier >= 2 - } - alternative_limit = { - valid_scandal_target = yes - highest_held_title_tier >= 1 - } - - weight = { - base = 1 - - compare_modifier = { - value = num_sinful_traits - multiplier = 50 - } - compare_modifier = { - value = num_virtuous_traits - multiplier = -50 - } - modifier = { - add = 25 - has_strong_religious_conviction_trigger = no - } - modifier = { - add = 50 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - save_scope_as = sinful_theocrat - } - } - 60 = { - trigger = { # Theocracy: Sinful Bishop - has_doctrine_parameter = theocracy_temple_lease - any_faith_ruler = { - cp:councillor_court_chaplain ?= { valid_scandal_target = yes } - } - } - random_faith_ruler = { - limit = { - cp:councillor_court_chaplain ?= { valid_scandal_target = yes } - highest_held_title_tier >= tier_duchy - } - alternative_limit = { - cp:councillor_court_chaplain ?= { valid_scandal_target = yes } - highest_held_title_tier >= tier_county - } - alternative_limit = { - cp:councillor_court_chaplain ?= { valid_scandal_target = yes } - highest_held_title_tier >= tier_barony - } - - weight = { - base = 1 - - compare_modifier = { - value = cp:councillor_court_chaplain.num_sinful_traits - multiplier = 50 - } - compare_modifier = { - value = cp:councillor_court_chaplain.num_virtuous_traits - multiplier = -50 - } - modifier = { - add = 25 - cp:councillor_court_chaplain = { - has_strong_religious_conviction_trigger = no - } - } - modifier = { - add = 50 - cp:councillor_court_chaplain = { - is_powerful_vassal = yes - } - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - cp:councillor_court_chaplain = { - save_scope_as = sinful_theocrat - } - } - } - 60 = { # Lay Clergy: Sinful Temple Holder - trigger = { - has_doctrine_parameter = theocracy_temple_ownership - any_faith_ruler = { - valid_scandal_target = yes - any_held_title = { - title_tier = barony - title_province ?= { has_holding_type = church_holding } - } - } - } - random_faith_ruler = { - limit = { - valid_scandal_target = yes - any_held_title = { - title_tier = barony - title_province ?= { - has_holding_type = church_holding - } - } - highest_held_title_tier >= tier_duchy - } - alternative_limit = { - valid_scandal_target = yes - any_held_title = { - title_tier = barony - title_province ?= { - has_holding_type = church_holding - } - } - highest_held_title_tier >= tier_county - } - alternative_limit = { - valid_scandal_target = yes - any_held_title = { - title_tier = barony - title_province ?= { - has_holding_type = church_holding - } - } - highest_held_title_tier >= tier_barony - } - - weight = { - base = 1 - - compare_modifier = { - value = num_sinful_traits - multiplier = 50 - } - compare_modifier = { - value = num_virtuous_traits - multiplier = -50 - } - modifier = { - add = 25 - has_strong_religious_conviction_trigger = no - } - modifier = { - add = 50 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - save_scope_as = sinful_theocrat - } - } - } - - # Pick an appropriate scandal for our sinful theocrat, based on their personality. - if = { - limit = { - exists = scope:sinful_theocrat - } - hidden_effect = { # Just collapse this - it's very long and not very interesting! - if = { - limit = { theocrat_has_sin = { SIN = lustful } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_lustful } - } - else_if = { - limit = { theocrat_has_sin = { SIN = chaste } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_chaste } - } - else_if = { - limit = { theocrat_has_sin = { SIN = gluttonous } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_gluttonous } - } - else_if = { - limit = { theocrat_has_sin = { SIN = temperate } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_temperate } - } - else_if = { - limit = { theocrat_has_sin = { SIN = greedy } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_greedy } - } - else_if = { - limit = { theocrat_has_sin = { SIN = generous } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_generous } - } - else_if = { - limit = { theocrat_has_sin = { SIN = lazy } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_lazy } - } - else_if = { - limit = { theocrat_has_sin = { SIN = diligent } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_diligent } - } - else_if = { - limit = { theocrat_has_sin = { SIN = wrathful } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_wrathful } - } - else_if = { - limit = { theocrat_has_sin = { SIN = calm } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_calm } - } - else_if = { - limit = { theocrat_has_sin = { SIN = patient } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_patient } - } - else_if = { - limit = { theocrat_has_sin = { SIN = impatient } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_impatient } - } - else_if = { - limit = { theocrat_has_sin = { SIN = arrogant } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_arrogant } - } - else_if = { - limit = { theocrat_has_sin = { SIN = humble } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_humble } - } - else_if = { - limit = { theocrat_has_sin = { SIN = deceitful } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_deceitful } - } - else_if = { - limit = { theocrat_has_sin = { SIN = honest } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_honest } - } - else_if = { - limit = { theocrat_has_sin = { SIN = craven } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_craven } - } - else_if = { - limit = { theocrat_has_sin = { SIN = brave } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_brave } - } - else_if = { - limit = { theocrat_has_sin = { SIN = shy } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_shy } - } - else_if = { - limit = { theocrat_has_sin = { SIN = gregarious } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_gregarious } - } - else_if = { - limit = { theocrat_has_sin = { SIN = ambitious } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_ambitious } - } - else_if = { - limit = { theocrat_has_sin = { SIN = content } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_content } - } - else_if = { - limit = { theocrat_has_sin = { SIN = arbitrary } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_arbitrary } - } - else_if = { - limit = { theocrat_has_sin = { SIN = just } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_just } - } - else_if = { - limit = { theocrat_has_sin = { SIN = cynical } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_cynical } - } - else_if = { - limit = { theocrat_has_sin = { SIN = zealous } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_zealous } - } - else_if = { - limit = { theocrat_has_sin = { SIN = paranoid } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_paranoid } - } - else_if = { - limit = { theocrat_has_sin = { SIN = trusting } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_trusting } - } - else_if = { - limit = { theocrat_has_sin = { SIN = compassionate } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_compassionate } - } - else_if = { - limit = { theocrat_has_sin = { SIN = callous } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_callous } - } - else_if = { - limit = { theocrat_has_sin = { SIN = sadistic } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_sadistic } - } - else_if = { - limit = { theocrat_has_sin = { SIN = stubborn } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_stubborn } - } - else_if = { - limit = { theocrat_has_sin = { SIN = fickle } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_fickle } - } - else_if = { - limit = { theocrat_has_sin = { SIN = vengeful } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_vengeful } - } - else_if = { - limit = { theocrat_has_sin = { SIN = forgiving } } - save_scope_value_as = { name = scandal_type value = flag:fervor_1001_forgiving } - } - } - - # Scandal target always loses 1 piety level, regardless of who they are. - scope:sinful_theocrat = { - add_piety_level = -1 - - # Dummies may be called in localization depending on the nature of the sin. - random_dummy_gender_servant_effect = yes - random_dummy_gender_clergy_effect = yes - } - - # If the Head of Faith is the sinful theocrat, it will be more impactful than for a random theocrat. - if = { - limit = { - exists = religious_head - exists = scope:sinful_theocrat - religious_head = scope:sinful_theocrat - } - change_fervor = { - value = -20 - desc = fervor_loss_scandalous_hof - } - - # Due to the importance of the scandal all players will get an event. - every_player = { - limit = { - faith = root - NOR = { - this = scope:sinful_theocrat - top_overlord ?= { - primary_title = title:h_china - government_has_flag = government_has_merit - faith = { has_doctrine_parameter = theocracy_temple_ownership } - } - } - } - trigger_event = fervor.1002 - } - } - # Otherwise, how we handle the scandal will depend on each player's relationship to the chosen theocrat. - else_if = { - limit = { - exists = scope:sinful_theocrat - } - - change_fervor = { - value = -10 - desc = fervor_loss_scandalous_priest - } - - every_player = { - limit = { - faith = root - NOR = { - this = scope:sinful_theocrat - top_overlord ?= { - primary_title = title:h_china - government_has_flag = government_has_merit - faith = { has_doctrine_parameter = theocracy_temple_ownership } - } - } - } - if = { # If the sinful theocrat is somebody that a player will personally care about, send them a full event. - limit = { - OR = { - any_vassal = { - this = scope:sinful_theocrat - } - liege ?= scope:sinful_theocrat - - AND = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = scope:sinful_theocrat - } - any_spouse = { - this = scope:sinful_theocrat - } - any_relation = { - type = friend - this = scope:sinful_theocrat - } - any_relation = { - type = lover - this = scope:sinful_theocrat - } - any_relation = { - type = rival - this = scope:sinful_theocrat - } - any_close_family_member = { - this = scope:sinful_theocrat - } - } - } - trigger_event = fervor.1002 - } - # Otherwise, players will only only get to know about this through the fervor log entry. - } - } - - set_variable = { - name = recent_fervor_event - value = yes - days = 1460 # 4 year cooldown (plus a 1 year MTTH ~= occurs once per 5 years) - } - } # Close 'exists = scope:sinful_theocrat' - } -} - -####################################### -# Players notified of scandal (event) # -####################################### - -fervor.1002 = { - type = character_event - title = fervor.1002.t - desc = { - first_valid = { - triggered_desc = { - trigger = { faith.religious_head = scope:sinful_theocrat } - desc = fervor.1002.desc.start_hof - } - desc = fervor.1002.desc.start - } - first_valid = { - random_valid = { - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_lustful } - desc = fervor.1002.desc.lustful - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_chaste } - desc = fervor.1002.desc.chaste - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_gluttonous } - desc = fervor.1002.desc.gluttonous - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_temperate } - desc = fervor.1002.desc.temperate - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_greedy } - desc = fervor.1002.desc.greedy - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_generous } - desc = fervor.1002.desc.generous - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_lazy } - desc = fervor.1002.desc.lazy - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_diligent } - desc = fervor.1002.desc.diligent - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_wrathful } - desc = fervor.1002.desc.wrathful - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_calm } - desc = fervor.1002.desc.calm - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_patient } - desc = fervor.1002.desc.patient - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_impatient } - desc = fervor.1002.desc.impatient - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_arrogant } - desc = fervor.1002.desc.arrogant - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_humble } - desc = fervor.1002.desc.humble - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_deceitful } - desc = fervor.1002.desc.deceitful - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_honest } - desc = fervor.1002.desc.honest - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_craven } - desc = fervor.1002.desc.craven - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_brave } - desc = fervor.1002.desc.brave - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_shy } - desc = fervor.1002.desc.shy - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_gregarious } - desc = fervor.1002.desc.gregarious - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_ambitious } - desc = fervor.1002.desc.ambitious - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_content } - desc = fervor.1002.desc.content - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_arbitrary } - desc = fervor.1002.desc.arbitrary - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_just } - desc = fervor.1002.desc.just - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_cynical } - desc = fervor.1002.desc.cynical - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_zealous } - desc = fervor.1002.desc.zealous - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_paranoid } - desc = fervor.1002.desc.paranoid - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_trusting } - desc = fervor.1002.desc.trusting - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_compassionate } - desc = fervor.1002.desc.compassionate - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_callous } - desc = fervor.1002.desc.callous - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_sadistic } - desc = fervor.1002.desc.sadistic - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_stubborn } - desc = fervor.1002.desc.stubborn - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_fickle } - desc = fervor.1002.desc.fickle - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_vengeful } - desc = fervor.1002.desc.vengeful - } - triggered_desc = { - trigger = { scope:scandal_type = flag:fervor_1001_forgiving } - desc = fervor.1002.desc.forgiving - } - } - desc = fervor.1002.desc.fallback - } - first_valid = { - triggered_desc = { - trigger = { faith.religious_head = scope:sinful_theocrat } - desc = fervor.1002.desc.end_hof - } - desc = fervor.1002.desc.end - } - } - theme = faith - override_background = { - trigger = { - scope:scandal_type = flag:fervor_1001_sadistic - } - reference = dungeon - } - override_background = { - trigger = { - scope:scandal_type = flag:fervor_1001_gluttonous - } - reference = feast - } - override_background = { - trigger = { - scope:scandal_type = flag:fervor_1001_deceitful - } - reference = study - } - - - left_portrait = { - character = scope:sinful_theocrat - animation = shame - triggered_animation = { - trigger = { - OR = { - has_trait = arrogant - ai_vengefulness >= medium_positive_ai_value - ai_rationality <= high_negative_ai_value - } - NOR = { - scope:scandal_type = flag:fervor_1001_sadistic - scope:scandal_type = flag:fervor_1001_deceitful - } - } - animation = anger - } - triggered_animation = { - trigger = { - scope:scandal_type = flag:fervor_1001_sadistic - } - animation = schadenfreude - } - triggered_animation = { - trigger = { - scope:scandal_type = flag:fervor_1001_deceitful - } - animation = scheme - } - } - - immediate = { - - # Save any necessary scopes we may need for localization. - if = { - limit = { - scope:sinful_theocrat = { - is_ruler = yes - } - } - primary_title = { save_scope_as = scoped_primary_title } - } - if = { - limit = { - scope:sinful_theocrat = { - is_ruler = no - } - } - liege.primary_title = { save_scope_as = scoped_primary_title } - } - - # These effects already happened in the previous event, but we also need to notify players about the impact. - if = { - limit = { - exists = faith.religious_head - faith.religious_head = scope:sinful_theocrat - } - show_as_tooltip = { - faith = { - change_fervor = { - value = -20 - desc = fervor_loss_scandalous_hof - } - } - } - } - else = { - show_as_tooltip = { - faith = { - change_fervor = { - value = -10 - desc = fervor_loss_scandalous_priest - } - } - } - } - show_as_tooltip = { - scope:sinful_theocrat = { - add_piety_level = -1 - } - } - } - - # Option 1: Condemn the theocrat for their sins! - option = { - name = fervor.1002.b - - add_piety = medium_piety_gain - reverse_add_opinion = { - modifier = angry_opinion - target = scope:sinful_theocrat - opinion = -30 - } - - if = { - # Condemning someone who is known to hold grudges might not be the wisest course of action... - limit = { - scope:scandal_type = flag:fervor_1001_vengeful - } - scope:sinful_theocrat = { - set_relation_rival = { - target = root - reason = rival_called_out_sin - } - } - } - - stress_impact = { - cynical = minor_stress_impact_gain - humble = minor_stress_impact_gain - compassionate = minor_stress_impact_gain - forgiving = minor_stress_impact_gain - } - } - - # Option 2: Defend the theocrat publically, taking a prestige/piety hit for a substantial relations boost. - option = { - name = fervor.1002.c - add_prestige = medium_prestige_loss - add_piety = medium_piety_loss - reverse_add_opinion = { - modifier = grateful_opinion - target = scope:sinful_theocrat - opinion = 30 - } - - stress_impact = { - zealous = medium_stress_impact_gain - craven = medium_stress_impact_gain - shy = medium_stress_impact_gain - vengeful = minor_stress_impact_gain - callous = minor_stress_impact_gain - sadistic = minor_stress_impact_gain - } - } - - # Option 3: Take no action - option = { - name = fervor.1002.d - - stress_impact = { - base = minor_stress_impact_gain - just = medium_stress_impact_gain - brave = minor_stress_impact_gain - impatient = minor_stress_impact_gain - wrathful = minor_stress_impact_gain - } - } -} - -######################### -# Exalted Priest # -# by Flavio # -# 2001-2002 # -######################### - -#A theocrat has been very virtuous: Hidden ping on the Faith itself. - -scripted_trigger suitable_theocrat_fervor_2001_trigger = { - faith = root - num_virtuous_traits >= 1 - is_capable_priest = yes -} - -# Used to determine an appropriate exaltation for the virtuous theocrat to exemplify. -scripted_trigger theocrat_has_virtue = { - scope:virtuous_theocrat = { - has_trait = $VIRTUE$ - faith = { trait_is_virtue = $VIRTUE$ } - } -} - -fervor.2001 = { - hidden = yes - scope = faith - - trigger = { - num_county_followers > 0 # Must be on the map. - OR = { - religious_head ?= { - is_capable_adult_ai = yes - num_virtuous_traits >= 1 - } - any_theocratic_ruler = { - faith = root - suitable_theocrat_fervor_2001_trigger = yes - } - trigger_if = { # Theocracy: Sinful Bishop - limit = { - has_doctrine_parameter = theocracy_temple_lease - } - any_faith_ruler = { - cp:councillor_court_chaplain ?= { suitable_theocrat_fervor_2001_trigger = yes } - } - } - trigger_if = { # Lay Clergy: Sinful Temple Holder - limit = { - has_doctrine_parameter = theocracy_temple_ownership - } - any_faith_ruler = { - suitable_theocrat_fervor_2001_trigger = yes - any_held_title = { - title_tier = barony - title_province ?= { has_holding_type = church_holding } - } - } - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 0.33 - num_county_followers < 300 - } - modifier = { - add = 0.67 - num_county_followers < 200 - } - modifier = { - add = 1.00 - num_county_followers < 100 - } - modifier = { - add = 1.33 - num_county_followers < 50 - } - modifier = { - add = 1.67 - num_county_followers < 25 - } - modifier = { - add = 2.00 - num_county_followers < 10 - } - modifier = { - add = 1.5 - religious_head ?= { - num_virtuous_traits >= 2 - piety_level >= medium_piety_level - } - } - modifier = { - add = 1.5 - religious_head ?= { - num_virtuous_traits >= 3 - piety_level >= high_piety_level - } - } - } - - immediate = { - random_list = { #Pick either Religious Head (if any), powerful theocrat (if not lay clergy), or powerful ruler (if lay clergy) - 10 = { # Virtuous Head of Faith - trigger = { - religious_head ?= { - num_virtuous_traits >= 1 - } - } - modifier = { - add = -15 - religious_head = { - OR = { - has_trait = excommunicated - has_trait = cynical - } - } - } - modifier = { - add = 15 - religious_head = { - num_virtuous_traits >= 2 - piety_level >= medium_piety_level - } - } - modifier = { - add = 15 - religious_head = { - num_virtuous_traits >= 3 - piety_level >= high_piety_level - } - } - modifier = { - add = 15 - religious_head = { - has_strong_religious_conviction_trigger = yes - } - } - modifier = { - add = -15 - religious_head = { - num_sinful_traits >= 1 - piety_level >= high_piety_level - } - } - modifier = { - add = -15 - religious_head = { - num_sinful_traits >= 2 - piety_level >= high_piety_level - } - } - religious_head = { - save_scope_as = virtuous_theocrat - add_piety = major_piety_gain - } - } - 40 = { # Virtuous Theocracy-Government Ruler - trigger = { - any_theocratic_ruler = { - faith = root - suitable_theocrat_fervor_2001_trigger = yes - faith.religious_head != this - } - } - random_theocratic_ruler = { - limit = { - highest_held_title_tier >= 2 - suitable_theocrat_fervor_2001_trigger = yes - NOT = { has_trait = cynical } - } - alternative_limit = { - suitable_theocrat_fervor_2001_trigger = yes - NOT = { has_trait = cynical } - } - alternative_limit = { - suitable_theocrat_fervor_2001_trigger = yes - } - weight = { - base = 100 - - modifier = { - add = -20 - num_sinful_traits >= 1 - } - modifier = { - add = -20 - num_sinful_traits >= 2 - } - modifier = { - add = 15 - has_strong_religious_conviction_trigger = yes - } - modifier = { - add = 10 - highest_held_title_tier >= 3 - } - modifier = { - add = 10 - highest_held_title_tier >= 4 - } - modifier = { - add = 20 - num_virtuous_traits >= 2 - } - modifier = { - add = 20 - num_virtuous_traits >= 3 - } - modifier = { - add = 20 - num_virtuous_traits >= 4 - } - modifier = { - add = 25 - piety_level >= high_piety_level - } - modifier = { - add = 50 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - save_scope_as = virtuous_theocrat - add_piety = major_piety_gain - } - } - 40 = { # Theocracy: Virtuous Bishop - trigger = { - has_doctrine_parameter = theocracy_temple_lease - any_faith_ruler = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - suitable_theocrat_fervor_2001_trigger = yes - } - } - } - random_faith_ruler = { - limit = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - suitable_theocrat_fervor_2001_trigger = yes - } - highest_held_title_tier >= tier_duchy - } - alternative_limit = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - suitable_theocrat_fervor_2001_trigger = yes - } - highest_held_title_tier >= tier_county - } - alternative_limit = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { - suitable_theocrat_fervor_2001_trigger = yes - } - highest_held_title_tier >= tier_barony - } - - weight = { - base = 1 - - compare_modifier = { - value = cp:councillor_court_chaplain.num_virtuous_traits - multiplier = 50 - } - compare_modifier = { - value = cp:councillor_court_chaplain.num_sinful_traits - multiplier = -50 - } - - modifier = { - add = 25 - cp:councillor_court_chaplain = { - has_strong_religious_conviction_trigger = no - } - } - modifier = { - add = 50 - cp:councillor_court_chaplain = { - is_powerful_vassal = yes - } - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - - cp:councillor_court_chaplain = { - save_scope_as = virtuous_theocrat - } - } - } - 40 = { # Lay Clergy: Any Virtuous Ruler with a Temple Holding - trigger = { - has_doctrine_parameter = theocracy_temple_ownership - any_faith_ruler = { - suitable_theocrat_fervor_2001_trigger = yes - any_held_title = { - title_tier = barony - title_province ?= { - has_holding_type = church_holding - } - } - } - } - random_faith_ruler = { - limit = { - suitable_theocrat_fervor_2001_trigger = yes - highest_held_title_tier >= 2 - NOT = { has_trait = cynical } - } - alternative_limit = { - suitable_theocrat_fervor_2001_trigger = yes - NOT = { has_trait = cynical } - } - alternative_limit = { - suitable_theocrat_fervor_2001_trigger = yes - } - weight = { - base = 100 - - modifier = { - add = -20 - num_sinful_traits >= 1 - } - modifier = { - add = -20 - num_sinful_traits >= 2 - } - modifier = { - add = 15 - has_strong_religious_conviction_trigger = yes - } - modifier = { - add = 10 - highest_held_title_tier >= tier_duchy - } - modifier = { - add = 10 - highest_held_title_tier >= tier_kingdom - } - modifier = { - add = 20 - num_virtuous_traits >= 2 - } - modifier = { - add = 20 - num_virtuous_traits >= 3 - } - modifier = { - add = 20 - num_virtuous_traits >= 4 - } - modifier = { - add = 25 - piety_level >= high_piety_level - } - modifier = { - add = 50 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 25 - any_liege_or_above = { - is_ai = no - } - } - modifier = { - add = 25 - any_player = { - culture = prev.culture - } - } - } - save_scope_as = virtuous_theocrat - } - } - } - if = { - limit = { - exists = scope:virtuous_theocrat - } - # Pick an appropriate exaltation for our virtuous theocrat, based on their personality. - hidden_effect = { # Just collapse this - it's very long and not very interesting! - if = { - limit = { theocrat_has_virtue = { VIRTUE = lustful } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_lustful } - } - else_if = { - limit = { - OR = { - theocrat_has_virtue = { VIRTUE = chaste } - theocrat_has_virtue = { VIRTUE = celibate } - } - } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_chaste } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = gluttonous } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_gluttonous } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = temperate } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_temperate } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = greedy } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_greedy } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = generous } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_generous } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = lazy } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_lazy } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = diligent } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_diligent } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = wrathful } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_wrathful } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = calm } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_calm } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = patient } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_patient } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = impatient } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_impatient } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = arrogant } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_arrogant } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = humble } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_humble } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = deceitful } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_deceitful } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = honest } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_honest } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = craven } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_craven } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = brave } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_brave } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = shy } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_shy } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = gregarious } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_gregarious } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = ambitious } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_ambitious } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = content } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_content } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = arbitrary } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_arbitrary } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = just } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_just } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = cynical } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_cynical } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = zealous } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_zealous } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = paranoid } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_paranoid } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = trusting } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_trusting } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = compassionate } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_compassionate } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = callous } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_callous } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = sadistic } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_sadistic } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = stubborn } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_stubborn } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = fickle } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_fickle } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = vengeful } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_vengeful } - } - else_if = { - limit = { theocrat_has_virtue = { VIRTUE = forgiving } } - save_scope_value_as = { name = exaltation_type value = flag:fervor_2001_forgiving } - } - } - - change_fervor = { - value = 10 - desc = fervor_gain_virtous_priest - } - - every_player = { - limit = { - faith = root - } - if = { - limit = { - this != scope:virtuous_theocrat - OR = { - any_vassal = { - this = scope:virtuous_theocrat - } - liege ?= scope:virtuous_theocrat - - AND = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = scope:virtuous_theocrat - } - any_spouse = { - this = scope:virtuous_theocrat - } - any_relation = { - type = friend - this = scope:virtuous_theocrat - } - any_relation = { - type = lover - this = scope:virtuous_theocrat - } - any_relation = { - type = rival - this = scope:virtuous_theocrat - } - any_close_family_member = { - this = scope:virtuous_theocrat - } - } - } - trigger_event = fervor.2002 - } - #Otherwise only noted in the fervor log - } - } - set_variable = { - name = recent_fervor_event - value = yes - days = 1460 # 4 year cooldown (plus a 1 year MTTH ~= occurs once per 5 years) - } - } -} - -#Players notified of event. -fervor.2002 = { - type = character_event - title = fervor.2002.t - desc = { - first_valid = { - random_valid = { - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_lustful - } - desc = fervor.2002.desc.lustful - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_chaste - } - desc = fervor.2002.desc.chaste - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_gluttonous - } - desc = fervor.2002.desc.gluttonous - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_temperate - } - desc = fervor.2002.desc.temperate - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_greedy - } - desc = fervor.2002.desc.greedy - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_generous - scope:virtuous_theocrat != faith.religious_head - } - desc = fervor.2002.desc.generous - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_generous - scope:virtuous_theocrat = faith.religious_head - } - desc = fervor.2002.desc.generous.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_lazy - } - desc = fervor.2002.desc.lazy - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_diligent - } - desc = fervor.2002.desc.diligent - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - OR = { - scope:exaltation_type = flag:fervor_2001_wrathful - scope:exaltation_type = flag:fervor_2001_vengeful - } - } - desc = fervor.2002.desc.wrathful - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - OR = { - scope:exaltation_type = flag:fervor_2001_wrathful - scope:exaltation_type = flag:fervor_2001_vengeful - } - } - desc = fervor.2002.desc.wrathful.pope - } - triggered_desc = { - trigger = { - OR = { - scope:exaltation_type = flag:fervor_2001_calm - scope:exaltation_type = flag:fervor_2001_patient - } - } - desc = fervor.2002.desc.calm - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - scope:exaltation_type = flag:fervor_2001_impatient - } - desc = fervor.2002.desc.impatient - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - scope:exaltation_type = flag:fervor_2001_impatient - } - desc = fervor.2002.desc.impatient.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_arrogant - } - desc = fervor.2002.desc.arrogant - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_humble - } - desc = fervor.2002.desc.humble - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_deceitful - } - desc = fervor.2002.desc.deceitful - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - scope:exaltation_type = flag:fervor_2001_honest - } - desc = fervor.2002.desc.honest - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - scope:exaltation_type = flag:fervor_2001_honest - } - desc = fervor.2002.desc.honest.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_craven - } - desc = fervor.2002.desc.craven - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_brave - } - desc = fervor.2002.desc.brave - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_shy - } - desc = fervor.2002.desc.shy - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - scope:exaltation_type = flag:fervor_2001_gregarious - } - desc = fervor.2002.desc.gregarious - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - scope:exaltation_type = flag:fervor_2001_gregarious - } - desc = fervor.2002.desc.gregarious.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_ambitious - } - desc = fervor.2002.desc.ambitious - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_content - } - desc = fervor.2002.desc.content - } - triggered_desc = { - trigger = { - OR = { - scope:exaltation_type = flag:fervor_2001_arbitrary - scope:exaltation_type = flag:fervor_2001_fickle - } - } - desc = fervor.2002.desc.arbitrary - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_just - } - desc = fervor.2002.desc.just - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_cynical - } - desc = fervor.2002.desc.cynical - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - OR = { - scope:exaltation_type = flag:fervor_2001_zealous - scope:exaltation_type = flag:fervor_2001_stubborn - } - } - desc = fervor.2002.desc.zealous - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - OR = { - scope:exaltation_type = flag:fervor_2001_zealous - scope:exaltation_type = flag:fervor_2001_stubborn - } - } - desc = fervor.2002.desc.zealous.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_paranoid - } - desc = fervor.2002.desc.paranoid - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_trusting - } - desc = fervor.2002.desc.trusting - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_compassionate - } - desc = fervor.2002.desc.compassionate - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_callous - } - desc = fervor.2002.desc.callous - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat != faith.religious_head - scope:exaltation_type = flag:fervor_2001_sadistic - } - desc = fervor.2002.desc.sadistic - } - triggered_desc = { - trigger = { - scope:virtuous_theocrat = faith.religious_head - scope:exaltation_type = flag:fervor_2001_sadistic - } - desc = fervor.2002.desc.sadistic.pope - } - triggered_desc = { - trigger = { - scope:exaltation_type = flag:fervor_2001_forgiving - } - desc = fervor.2002.desc.forgiving - } - } - desc = fervor.2002.desc.fallback - } - } - theme = faith - override_background = { - trigger = { - scope:exaltation_type = flag:fervor_2001_sadistic - } - reference = dungeon - } - override_background = { - trigger = { - scope:exaltation_type = flag:fervor_2001_gluttonous - } - reference = feast - } - override_background = { - trigger = { - scope:exaltation_type = flag:fervor_2001_deceitful - } - reference = study - } - - left_portrait = { - character = scope:virtuous_theocrat - triggered_animation = { - trigger = { - scope:exaltation_type = flag:fervor_1001_sadistic - } - animation = schadenfreude - } - triggered_animation = { - trigger = { - scope:exaltation_type = flag:fervor_1001_deceitful - } - animation = scheme - } - } - - immediate = { - if = { - limit = { - scope:virtuous_theocrat = { - is_ruler = yes - } - } - primary_title = { save_scope_as = scoped_primary_title } - } - if = { - limit = { - scope:virtuous_theocrat = { - is_ruler = no - } - } - liege.primary_title = { save_scope_as = scoped_primary_title } - } - show_as_tooltip = { - faith = { - change_fervor = { - value = 10 - desc = fervor_gain_virtous_priest - } - } - } - } - option = { # - name = { - trigger = { has_strong_religious_conviction_trigger = yes } - text = fervor.2001.a.a - } - name = { - trigger = { - has_strong_religious_conviction_trigger = no - NOT = { has_trait = cynical } - } - text = fervor.2001.a.b - } - name = { - trigger = { - has_strong_religious_conviction_trigger = no - has_trait = cynical - } - text = fervor.2001.a.c - } - } -} diff --git a/events/religion_events/great_holy_war_events.txt b/events/religion_events/great_holy_war_events.txt index d876bb186..aec7695ca 100644 --- a/events/religion_events/great_holy_war_events.txt +++ b/events/religion_events/great_holy_war_events.txt @@ -13,10 +13,10 @@ # 0018 - Confirm pledging. # 0020 - AI rulers pledge to Undirected GHW. # 0092 - AI rulers pledge to Directed GHW. -# 0090 - Holy Orders pledging to GHW. +# 0090 - Military Orders pledging to GHW. # 0021 - AI rulers counterpledge to Undirected GHW. # 0093 - AI rulers counterpledge to Directed GHW. -# 0091 - Holy Orders counterpledging to GHW. +# 0091 - Military Orders counterpledging to GHW. # 0022, 0023 - The Pope calls out unpledged player. # 0024 - Dead Recipient is replaced. # 0025 - Converted Recipient is replaced. @@ -29,6 +29,7 @@ # 0051 - GHW was declared. # 0052 - GHW was won. # 0053 - GHW was lost. +# 0054 - GHW was invalidated after launching. # 0055 - GHW failed to start. # 0060 - Crusader trait gained. # 0058 - Crusader trait lost. @@ -45,14 +46,30 @@ great_holy_war.0001 = { has_doctrine = doctrine_spiritual_head save_temporary_scope_as = the_faith exists = religious_head + trigger_if = { # Player spiritual heads launch through a decision or bull, not this monthly pulse + limit = { + religious_head = { is_ai = no } + } + religious_head = { player_hof_requested_ghw_launch_trigger = yes } + } NOR = { exists = great_holy_war exists = var:variable_ghw_cooldown - religion = { exists = var:variable_first_ghw_cooldown } # Do not event spam after Crusades have been just unlocked. + trigger_if = { + limit = { + NOT = { + religious_head = { religious_head_has_selected_ghw_target_trigger = yes } + } + } + religion = { exists = var:variable_first_ghw_cooldown } # Do not event spam after Crusades have been just unlocked. + } } religious_head = { is_imprisoned = no } - religion = { exists = var:variable_ghw_unlocked } #Activated by event for every religion. - suitable_faith_for_undirected_ghw_trigger = yes #Right combinations of Doctrines to have GHWs. And a valid target exists + religion = { exists = var:variable_ghw_unlocked } # Age of Crusades + OR = { + suitable_faith_for_undirected_ghw_trigger = yes #Right combinations of Doctrines to have GHWs. And a valid target exists + religious_head = { religious_head_has_selected_ghw_target_trigger = yes } + } } immediate = { @@ -60,7 +77,46 @@ great_holy_war.0001 = { #Determine Sponsor. religious_head = { save_scope_as = ghw_sponsor } - determine_ghw_target_effect = { FAITH = scope:the_faith } + if = { + limit = { scope:ghw_sponsor = { has_variable = player_ghw_launch } } + save_temporary_scope_value_as = { + name = skip_ghw_war_chest_gold + value = yes + } + } + if = { + limit = { + scope:ghw_sponsor = { has_variable = player_ghw_target_kingdom } + } + scope:ghw_sponsor = { + var:player_ghw_target_kingdom = { save_scope_as = target_kingdom } + remove_variable = player_ghw_target_kingdom + if = { + limit = { has_variable = player_ghw_launch } + remove_variable = player_ghw_launch + } + } + pam_determine_ghw_target_character_from_kingdom_effect = { FAITH = scope:the_faith } + } + else_if = { + limit = { + scope:ghw_sponsor = { + has_pam_dlc_trigger = yes + has_variable = pam_bull_ghw_target_kingdom + } + } + pam_use_bull_selected_ghw_target_effect = { + GHW_SPONSOR = scope:ghw_sponsor + FAITH = scope:the_faith + } + } + else = { + determine_ghw_target_effect = { FAITH = scope:the_faith } + if = { + limit = { scope:ghw_sponsor = { has_variable = player_ghw_launch } } + scope:ghw_sponsor = { remove_variable = player_ghw_launch } + } + } # Launch the preparation phase start_great_holy_war = { @@ -78,7 +134,10 @@ great_holy_war.0001 = { } } if = { - limit = { scope:ghw_sponsor.gold > 0 } + limit = { + scope:ghw_sponsor.gold > 0 + NOT = { exists = scope:skip_ghw_war_chest_gold } + } great_holy_war = { change_war_chest_gold = { value = scope:ghw_sponsor.gold @@ -123,7 +182,7 @@ great_holy_war.0001 = { scope:ghw_sponsor = { random_courtier = { alternative_limit = { - scope:the_faith = { has_doctrine = doctrine_gender_male_dominated } + scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_male_dominated } } is_male = yes is_adult = yes is_ai = yes @@ -135,7 +194,7 @@ great_holy_war.0001 = { faith = scope:the_faith } alternative_limit = { - scope:the_faith = { has_doctrine = doctrine_gender_female_dominated } + scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_female_dominated } } is_female = yes is_adult = yes is_ai = yes @@ -174,13 +233,13 @@ great_holy_war.0001 = { gender_female_chance = { if = { limit = { - scope:the_faith = { has_doctrine = doctrine_gender_male_dominated } + scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_male_dominated } } } add = 0 } else_if = { limit = { - scope:the_faith = { has_doctrine = doctrine_gender_female_dominated } + scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } add = 100 } @@ -242,7 +301,7 @@ great_holy_war.0001 = { } every_faith_holy_order = { trigger_event = { - #Holy orders always join + #Military Orders always join id = great_holy_war.0090 days = { 30 60 } } @@ -272,7 +331,7 @@ great_holy_war.0001 = { faith = { every_faith_holy_order = { trigger_event = { - # Holy orders always join + # Military Orders always join id = great_holy_war.0091 days = { 30 60 } } @@ -695,7 +754,7 @@ great_holy_war.0003 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } } custom_tooltip = great_holy_war.0003.a.lifted_excommunication trigger_event = { @@ -738,7 +797,7 @@ great_holy_war.0003 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } } trigger_event = { id = great_holy_war.0015 @@ -1033,7 +1092,7 @@ great_holy_war.0010 = { OR = { current_date >= 2650.1.1 # Free for all after Historical years AND = { # Any Faith is seriously under attack. - any_holy_site = { + any_holy_site_barony = { holder.top_liege = { faith.religion != root.religion } @@ -1054,7 +1113,7 @@ great_holy_war.0010 = { } } religion:islam_religion = root.religion - any_holy_site = { + any_holy_site_barony = { holder.top_liege = { faith.religion != root.religion } @@ -1076,7 +1135,7 @@ great_holy_war.0010 = { religion:islam_religion = { exists = var:variable_ghw_unlocked } - any_holy_site = { + any_holy_site_barony = { holder.top_liege = { faith.religion != root.religion } @@ -1563,7 +1622,7 @@ great_holy_war.0016 = { 30 = { #Excommunication available only if target already not excommunicated and religion allows it. trigger = { NOT = { has_trait = excommunicated } - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } highest_held_title_tier >= tier_kingdom } modifier = { #Fool me once... @@ -1655,7 +1714,7 @@ great_holy_war.0016 = { remove_character_flag = ghw_light_punishment remove_character_flag = ghw_harsh_punishment remove_character_flag = ghw_excommunication - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } @@ -1782,7 +1841,7 @@ great_holy_war.0018 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine = tenet_communion } + faith = { faith_has_sacraments_trigger = yes } } trigger_event = { id = great_holy_war.0015 @@ -1811,7 +1870,7 @@ great_holy_war.0020 = { is_at_war = no is_imprisoned = no highest_held_title_tier >= tier_county - NOT = { has_trait = incapable } + is_incapable = no ai_zeal >= 0 root.faith = scope:the_faith NOT = { target_is_liege_or_above = scope:target_character } @@ -1861,7 +1920,7 @@ great_holy_war.0020 = { } } random_list = { - 15 = { # Pledge. + 25 = { # Pledge. trigger = { OR = { # Either be independent, or have no liege above you of the defending Faith, to avoid messy situations of vassals and lieges fighting against each other. top_liege = this @@ -1881,7 +1940,7 @@ great_holy_war.0020 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } } trigger_event = { id = great_holy_war.0015 @@ -1893,7 +1952,7 @@ great_holy_war.0020 = { trigger_event = { id = great_holy_war.0026 } # Set Beneficiary automatically. } } - 85 = { # Do not pledge. + 75 = { # Do not pledge. random = { # When not pledging, there is still a chance that the AI will donate money. chance = 35 modifier = { @@ -2047,6 +2106,10 @@ great_holy_war.0020 = { factor = 0.5 highest_held_title_tier = tier_empire } + modifier = { #Tier + factor = 0.25 + highest_held_title_tier = tier_hegemony + } } } } @@ -2057,7 +2120,7 @@ great_holy_war.0020 = { #Requires a the_faith scope, defined in the cb. great_holy_war.0092 = { hidden = yes - + trigger = { is_ai = yes is_ruler = yes @@ -2065,7 +2128,7 @@ great_holy_war.0092 = { is_at_war = no is_imprisoned = no highest_held_title_tier >= tier_county - NOT = { has_trait = incapable } + is_incapable = no ai_zeal >= 0 root.faith = scope:the_faith NOT = { target_is_liege_or_above = scope:ghw_defender } #scope:target_character isn't created in the holy war decision where this event is called @@ -2115,7 +2178,7 @@ great_holy_war.0092 = { } } random_list = { - 15 = { #Pledge. + 35 = { #Pledge. trigger = { OR = { # Either be independent, or have no liege above you of the defending Faith, to avoid messy situations of vassals and lieges fighting against each other. top_liege = this @@ -2137,12 +2200,10 @@ great_holy_war.0092 = { } } } - 45 = { - } - 40 = { #Do not pledge. + 65 = { #Do not pledge. random = { #When not pledging, there is still a chance that the AI will donate money. - chance = 15 + chance = 35 modifier = { factor = 0.75 has_trait = greedy @@ -2231,12 +2292,16 @@ great_holy_war.0092 = { factor = 0.5 highest_held_title_tier = tier_empire } + modifier = { #Tier + factor = 0.25 + highest_held_title_tier = tier_hegemony + } } } } } -#AI hidden event to have a holy order pledge to a Great Holy War during the preparation phase. +#AI hidden event to have a Military Order pledge to a Great Holy War during the preparation phase. #Event is fired when the Pope calls for the Crusade. #Requires a the_faith scope, defined by event. great_holy_war.0090 = { @@ -2244,6 +2309,7 @@ great_holy_war.0090 = { scope = holy_order trigger = { + is_military_order_trigger = yes scope:the_faith = { #Crusade still exists great_holy_war ?= { NOT = { has_pledged_attacker = root.leader } @@ -2274,7 +2340,7 @@ great_holy_war.0021 = { is_at_war = no is_imprisoned = no highest_held_title_tier >= tier_county - NOT = { has_trait = incapable } + is_incapable = no root.faith = scope:the_faith.great_holy_war.ghw_target_character.faith scope:the_faith = { #Crusade still exists great_holy_war ?= { @@ -2323,7 +2389,7 @@ great_holy_war.0021 = { } } random_list = { - 10 = { #Pledge. + 15 = { #Pledge. trigger = { OR = { # Either be independent, or have no liege above you of the attacking Faith, to avoid messy situations of vassals and lieges fighting against each other. top_liege = this @@ -2335,7 +2401,7 @@ great_holy_war.0021 = { } scope:the_faith.great_holy_war = { pledge_defender = root } } - 45 = { #Do not pledge. + 85 = { #Do not pledge. modifier = { #More pledging happening at start of preparation phase. factor = 0.75 NOT = { exists = scope:the_faith.great_holy_war.ghw_war } @@ -2461,6 +2527,10 @@ great_holy_war.0021 = { factor = 0.5 highest_held_title_tier = tier_empire } + modifier = { #Tier + factor = 0.25 + highest_held_title_tier = tier_hegemony + } } } } @@ -2472,7 +2542,7 @@ great_holy_war.0021 = { #Requires a the_faith scope, defined in the cb. great_holy_war.0093 = { hidden = yes - + trigger = { is_ai = yes is_ruler = yes @@ -2480,7 +2550,7 @@ great_holy_war.0093 = { is_at_war = no is_imprisoned = no highest_held_title_tier >= tier_county - NOT = { has_trait = incapable } + is_incapable = no root.faith = scope:target_faith scope:the_faith = { #Crusade still exists great_holy_war ?= { @@ -2528,7 +2598,7 @@ great_holy_war.0093 = { } } random_list = { - 25 = { #Pledge. + 30 = { #Pledge. trigger = { OR = { # Either be independent, or have no liege above you of the attacking Faith, to avoid messy situations of vassals and lieges fighting against each other. top_liege = this @@ -2540,7 +2610,7 @@ great_holy_war.0093 = { } scope:the_faith.great_holy_war = { pledge_defender = root } } - 75 = { #Do not pledge. + 70 = { #Do not pledge. modifier = { #More likely if war is close by. factor = 0.5 scope:target_kingdom = { @@ -2636,12 +2706,16 @@ great_holy_war.0093 = { factor = 0.5 highest_held_title_tier = tier_empire } + modifier = { #Tier + factor = 0.25 + highest_held_title_tier = tier_hegemony + } } } } } -#AI hidden event to have a holy order counterpledge to a Great Holy War during the preparation phase. +#AI hidden event to have a Military Order counterpledge to a Great Holy War during the preparation phase. #Event is fired when the Pope calls for the Crusade and when the target Kingdom is switched. #Requires a the_faith scope, defined by event. great_holy_war.0091 = { @@ -2649,6 +2723,7 @@ great_holy_war.0091 = { scope = holy_order trigger = { + is_military_order_trigger = yes scope:the_faith = { #Crusade still exists great_holy_war ?= { NOT = { has_pledged_defender = root.leader } @@ -2832,7 +2907,7 @@ great_holy_war.0023 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } } custom_tooltip = great_holy_war.0003.a.lifted_excommunication trigger_event = { @@ -2846,7 +2921,7 @@ great_holy_war.0023 = { pledge_ghw_war_chest_piety_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain zealous = minor_stress_impact_loss } @@ -2890,7 +2965,7 @@ great_holy_war.0023 = { if = { limit = { has_trait = excommunicated - faith = { has_doctrine_parameter = excommunication_active } + rite = { rite_has_parameter = excommunication_active } } trigger_event = { id = great_holy_war.0015 @@ -2914,7 +2989,7 @@ great_holy_war.0023 = { days = 550 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain greedy = minor_stress_impact_gain generous = minor_stress_impact_loss @@ -2977,7 +3052,7 @@ great_holy_war.0023 = { id = great_holy_war.0016 days = 37 } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain cynical = minor_stress_impact_loss } @@ -3049,7 +3124,7 @@ great_holy_war.0024 = { } } -#on_character_faith_change: of Recipient, pick another one. +#on_rite_change: of Recipient, pick another one. great_holy_war.0025 = { hidden = yes scope = character @@ -3134,15 +3209,15 @@ great_holy_war.0026 = { OR = { AND = { is_male = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } is_close_family_or_spouse_of_root_trigger = yes @@ -3156,15 +3231,15 @@ great_holy_war.0026 = { OR = { AND = { is_male = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } is_close_family_or_spouse_of_root_trigger = yes @@ -3177,15 +3252,15 @@ great_holy_war.0026 = { OR = { AND = { is_male = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } is_close_family_or_spouse_of_root_trigger = yes @@ -3197,15 +3272,15 @@ great_holy_war.0026 = { OR = { AND = { is_male = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } age <= 40 @@ -3215,15 +3290,15 @@ great_holy_war.0026 = { OR = { AND = { is_male = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } NOR = { - faith = { has_doctrine = doctrine_gender_male_dominated } - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } } @@ -3344,7 +3419,7 @@ great_holy_war.0028 = { } } -#On_character_faith_change. +#on_rite_change. great_holy_war.0029 = { hidden = yes scope = character @@ -3564,17 +3639,20 @@ great_holy_war.0040 = { scope:great_holy_war = { change_war_chest_gold = root.var:triple_great_holy_war_pledge_amount } - scope:scoped_pope = { - add_opinion = { - target = root - modifier = donated_ghw_money_2 + if = { + limit = { scope:scoped_pope != root } + scope:scoped_pope = { + add_opinion = { + target = root + modifier = donated_ghw_money_2 + } } } add_character_flag = { # Used to check whether the Pope will harass for more later. flag = ghw_pledged_gold days = 7300 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain greedy = medium_stress_impact_gain } @@ -3590,17 +3668,20 @@ great_holy_war.0040 = { } scope:great_holy_war = { change_war_chest_gold = root.var:double_great_holy_war_pledge_amount } - scope:scoped_pope = { - add_opinion = { - target = root - modifier = donated_ghw_money_1 + if = { + limit = { scope:scoped_pope != root } + scope:scoped_pope = { + add_opinion = { + target = root + modifier = donated_ghw_money_1 + } } } add_character_flag = { # Used to check whether the Pope will harass for more later. flag = ghw_pledged_gold days = 7300 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain greedy = medium_stress_impact_gain } @@ -4067,6 +4148,58 @@ great_holy_war.0053 = { after = { remove_variable = ghw_war_chest_donated_sum } } +#The Crusade was invalidated after the war had already been launched (fired from the undirected GHW casus belli on_invalidated). +great_holy_war.0054 = { + title = great_holy_war.0054.title + desc = { + desc = great_holy_war.0054.desc.intro + first_valid = { + triggered_desc = { + trigger = { scope:ghw_sponsor = root } + desc = great_holy_war.0054.desc.sponsor + } + triggered_desc = { + trigger = { scope:ghw_defender = root } + desc = great_holy_war.0054.desc.defender + } + desc = great_holy_war.0054.desc.bystander + } + desc = great_holy_war.0054.desc.outro + } + theme = faith + override_background = { + reference = battlefield + } + left_portrait = { + character = scope:ghw_sponsor + animation = shame + } + right_portrait = { + character = scope:ghw_defender + animation = war_over_win + } + + option = { + name = great_holy_war.0054.a + trigger = { scope:ghw_sponsor = root } + } + + option = { + name = great_holy_war.0054.b + trigger = { scope:ghw_defender = root } + } + + option = { + name = great_holy_war.0054.c + trigger = { + NOR = { + scope:ghw_sponsor = root + scope:ghw_defender = root + } + } + } +} + #on_great_holy_war_invalidation: Crusade has been invalidated before starting. great_holy_war.0055 = { hidden = yes @@ -4081,7 +4214,7 @@ great_holy_war.0055 = { religious_head = { save_scope_as = ghw_sponsor } save_scope_as = the_faith change_fervor = { - value = -10 + value = significant_fervor_loss desc = fervor_loss_crusade_invalid } set_variable = { @@ -4347,7 +4480,7 @@ great_holy_war.0058 = { } } -#on_character_faith_change: check if the character has changed Religion, in which case the Crusader trait should be cleared. +#on_rite_change: check if the character has changed Religion, in which case the Crusader trait should be cleared. great_holy_war.0059 = { hidden = yes scope = character @@ -4560,18 +4693,19 @@ great_holy_war.0083 = { location = scope:fallback_host.capital_province template = new_commander_character faith = root.faith + rite = root.rite culture = root.culture save_scope_as = fallback_recipient gender_female_chance = { if = { limit = { - root.faith = { has_doctrine = doctrine_gender_male_dominated } + root.rite = { rite_has_doctrine = doctrine_gender_male_dominated } } add = 0 } else_if = { limit = { - root.faith = { has_doctrine = doctrine_gender_female_dominated } + root.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } add = 100 } @@ -4630,13 +4764,13 @@ great_holy_war.0084 = { gender_female_chance = { if = { limit = { - root.faith = { has_doctrine = doctrine_gender_male_dominated } + root.rite = { rite_has_doctrine = doctrine_gender_male_dominated } } add = 0 } else_if = { limit = { - root.faith = { has_doctrine = doctrine_gender_female_dominated } + root.rite = { rite_has_doctrine = doctrine_gender_female_dominated } } add = 100 } diff --git a/events/religion_events/head_of_faith_events.txt b/events/religion_events/head_of_faith_events.txt deleted file mode 100644 index 09eb65099..000000000 --- a/events/religion_events/head_of_faith_events.txt +++ /dev/null @@ -1,756 +0,0 @@ -namespace = head_of_faith - -################################################## -# #Islamic Caliphate Configuration -# 0001 - 0010 Heirs of the Prophet - Sunnis decide which caliph they consider most appropriate. -# 0011 - 0020 Heirs of the Prophet - Shias decide which caliph they consider most appropriate. -# 0021 - 0030 Heirs of the Prophet - Muhakkimas decide which caliph they consider most appropriate. -# 0031 - 0040 Heirs of the Prophet - Zandaqas decide which caliph they consider most appropriate. -# -################################################## - - - - - - - - - - -################################################## -# ISLAMIC CALIPHATE CONFIGURATION - -scripted_trigger valid_prior_caliph_available_trigger = { - faith = { has_doctrine = muhammad_succession_$MS_TYPE$_doctrine } - scope:old_faith = { - # Uses a temporal faith... - has_doctrine = doctrine_temporal_head - # ... with a current holder... - exists = religious_head_title.holder - # ... that follows the correct succession of the Prophet. - has_doctrine = muhammad_succession_$MS_TYPE$_doctrine - # Plus make sure this isn't either of the major orthodoxies. - religious_head_title = { - NOR = { - this = title:d_sunni - this = title:d_shiite - } - } - } -} - -scripted_effect grab_existing_caliph_effect = { - if = { - limit = { exists = $TITLE_PATH$.holder } - $TITLE_PATH$ = { save_scope_as = $DENOMINATION$_title } - $TITLE_PATH$.holder = { save_scope_as = $DENOMINATION$_caliph } - } -} - -scripted_effect set_default_caliph_effect = { - faith = { - # Default to scope:old_title, if it exists. - if = { - limit = { exists = scope:old_title } - set_religious_head_title = scope:old_title - } - # Otherwise, try to pick the correct orthodoxy. - else_if = { - limit = { - has_doctrine = muhammad_succession_sunni_doctrine - exists = scope:sunni_title - } - set_religious_head_title = scope:sunni_title - } - else_if = { - limit = { - has_doctrine = muhammad_succession_shia_doctrine - exists = scope:shia_title - } - set_religious_head_title = scope:shia_title - } - } -} - -scripted_effect set_religious_head_title_to_and_gain_hook_effect = { - # First, we set the new religious head. - faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ } - # Next, if possible, we give a hook on the new religious head. - if = { - limit = { - NOT = { has_hook = $NEW_RELIGIOUS_HEAD_TITLE$.holder } - } - $NEW_RELIGIOUS_HEAD_TITLE$.holder = { - send_interface_toast = { - title = head_of_faith.0000.new_faith_submitted_for_hook - left_icon = root - root = { - add_hook = { - type = indebted_hook - target = $NEW_RELIGIOUS_HEAD_TITLE$.holder - } - } - } - } - } - # And always give a little opinion of them. - reverse_add_opinion = { - target = $NEW_RELIGIOUS_HEAD_TITLE$.holder - modifier = repentant_opinion - opinion = 25 - } -} - -scripted_effect set_religious_head_title_to_and_give_hook_effect = { - # First, we set the new religious head. - faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ } - # Next, if possible, we give a hook on the new religious head. - if = { - limit = { - NOT = { has_hook = $NEW_RELIGIOUS_HEAD_TITLE$.holder } - } - $NEW_RELIGIOUS_HEAD_TITLE$.holder = { - send_interface_toast = { - title = head_of_faith.0000.new_faith_submitted_for_hook - left_icon = prev - add_hook = { - type = indebted_hook - target = prev - } - } - } - } - # And always give a little opinion of them. - reverse_add_opinion = { - target = $NEW_RELIGIOUS_HEAD_TITLE$.holder - modifier = repentant_opinion - opinion = 25 - } -} - - -scripted_effect set_religious_head_title_to_&_gain_flag_effect = { - # First, we set the new religious head. - faith = { set_religious_head_title = $NEW_RELIGIOUS_HEAD_TITLE$ } - # Next, some piety. - add_piety = major_piety_gain - # Plus, we flag it that this character will likely try for independence later. - add_character_flag = wishes_to_schism_caliphate_flag - custom_tooltip = head_of_faith.0000.wishes_to_schism_caliphate_flag_added - # And always give a little opinion of them. - reverse_add_opinion = { - target = $NEW_RELIGIOUS_HEAD_TITLE$.holder - modifier = repentant_opinion - opinion = 25 - } -} - -################################################## -# Heirs of the Prophet - Sunni -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -# A temporal Sunni reformer decides their HoF. -head_of_faith.0001 = { - type = character_event - title = head_of_faith.0001.t - desc = head_of_faith.0001.desc - theme = faith - left_portrait = { - character = root - animation = personality_rational - } - lower_left_portrait = scope:sunni_caliph - lower_center_portrait = { - character = scope:old_caliph - trigger = { - valid_prior_caliph_available_trigger = { MS_TYPE = sunni } - } - } - - cooldown = { years = 10 } - - trigger = { - # Requires either a prior caliphate or a Shia one to exist. - OR = { - exists = title:d_sunni.holder - AND = { - exists = scope:old_faith.religious_head_title.holder - valid_prior_caliph_available_trigger = { MS_TYPE = sunni } - } - } - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - # Grab caliphs. - grab_existing_caliph_effect = { - TITLE_PATH = title:d_sunni - DENOMINATION = sunni - } - grab_existing_caliph_effect = { - TITLE_PATH = scope:old_faith.religious_head_title - DENOMINATION = old - } - # And sort defaults. - set_default_caliph_effect = yes - } - - # Realign with Sunni orthodoxy. - option = { - name = head_of_faith.0001.a - trigger = { exists = scope:sunni_caliph } - - # Set up the new HoF. - set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:sunni_title } - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:sunni_caliph - multiplier = 5 - } - } - } - - # Follow scope:old_faith's caliph. - option = { - name = head_of_faith.0001.b - trigger = { - exists = scope:old_caliph - valid_prior_caliph_available_trigger = { MS_TYPE = sunni } - } - - # Set up the new HoF. - set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title } - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = 5 - } - } - } - - # Scope:sunni_caliph has our _present_ loyalties. - option = { - name = head_of_faith.0001.c - trigger = { exists = scope:sunni_caliph } - - # Set up the new HoF. - set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:sunni_title } - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_vengefulness = 1 - ai_zeal = 1 - } - opinion_modifier = { - opinion_target = scope:sunni_caliph - multiplier = -2 - } - } - - } - - # We shall follow scope:old_faith... for now... - option = { - name = head_of_faith.0001.d - trigger = { - exists = scope:old_caliph - valid_prior_caliph_available_trigger = { MS_TYPE = sunni } - } - - # Set up the new HoF. - set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title } - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_vengefulness = 1 - ai_zeal = 1 - } - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = -2 - } - } - } - - # No option for striking out on your own immediately; you have a decision for that, or could've taken a different succession doctrine. -} - -################################################## -# Heirs of the Prophet - Shia -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -# A temporal Shia reformer decides their HoF. -head_of_faith.0011 = { - type = character_event - title = head_of_faith.0011.t - desc = head_of_faith.0011.desc - theme = faith - left_portrait = { - character = root - animation = personality_rational - } - lower_center_portrait = { - character = scope:old_caliph - trigger = { - valid_prior_caliph_available_trigger = { MS_TYPE = shia } - } - } - lower_right_portrait = scope:shia_caliph - - cooldown = { years = 10 } - - trigger = { - # Requires either a prior caliphate or a Shia one to exist. - OR = { - exists = title:d_shiite.holder - AND = { - exists = scope:old_faith.religious_head_title.holder - valid_prior_caliph_available_trigger = { MS_TYPE = shia } - } - } - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - # Grab caliphs. - grab_existing_caliph_effect = { - TITLE_PATH = title:d_shiite - DENOMINATION = shia - } - grab_existing_caliph_effect = { - TITLE_PATH = scope:old_faith.religious_head_title - DENOMINATION = old - } - # And sort defaults. - set_default_caliph_effect = yes - } - - # Realign with Shia orthodoxy. - option = { - name = head_of_faith.0011.a - trigger = { exists = scope:shia_caliph } - - # Set up the new HoF. - set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:shia_title } - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:shia_caliph - multiplier = 5 - } - } - } - - # Follow scope:old_faith's caliph. - option = { - name = head_of_faith.0011.c - trigger = { - exists = scope:old_caliph - valid_prior_caliph_available_trigger = { MS_TYPE = shia } - } - - # Set up the new HoF. - set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title } - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = 5 - } - } - } - - # Scope:shia_caliph has our _present_ loyalties. - option = { - name = head_of_faith.0011.b - trigger = { exists = scope:shia_caliph } - - # Set up the new HoF. - set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:shia_title } - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_vengefulness = 1 - ai_zeal = 1 - } - opinion_modifier = { - opinion_target = scope:shia_caliph - multiplier = -2 - } - } - } - - # We shall follow scope:old_faith... for now... - option = { - name = head_of_faith.0011.d - trigger = { - exists = scope:old_caliph - valid_prior_caliph_available_trigger = { MS_TYPE = shia } - } - - # Set up the new HoF. - set_religious_head_title_to_&_gain_flag_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title } - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_vengefulness = 1 - ai_zeal = 1 - } - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = -2 - } - } - } - - # No option for striking out on your own immediately; you have a decision for that, or could've taken a different succession doctrine. -} - -################################################## -# Heirs of the Prophet - Muhakkima -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -# A temporal Muhakkima reformer decides their HoF. -head_of_faith.0021 = { - type = character_event - title = head_of_faith.0021.t - desc = head_of_faith.0021.desc - theme = faith - left_portrait = { - character = root - animation = personality_rational - } - lower_center_portrait = { - character = scope:old_caliph - trigger = { - valid_prior_caliph_available_trigger = { MS_TYPE = muhakkima } - } - } - - cooldown = { years = 10 } - - trigger = { - # Requires an old religious head to exist in some form. - exists = scope:old_faith.religious_head_title.holder - valid_prior_caliph_available_trigger = { MS_TYPE = muhakkima } - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - # Grab the relevant caliph. - grab_existing_caliph_effect = { - TITLE_PATH = scope:old_faith.religious_head_title - DENOMINATION = old - } - # And sort defaults. - set_default_caliph_effect = yes - } - - # Go our own way. - option = { - name = head_of_faith.0021.a - - # Another splinter faith enters the ring. - faith = { remove_religious_head_title = yes } - # Nice chunk of piety for asserting your independence. - add_piety = major_piety_gain - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_zeal = 1 - ai_boldness = 1 - ai_vengefulness = 0.5 - } - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = -2 - } - } - } - - # Follow scope:old_faith's caliph. - option = { - name = head_of_faith.0021.b - - # Set up the new HoF. - set_religious_head_title_to_and_gain_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:old_title } - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = 5 - } - } - } -} - -################################################## -# Heirs of the Prophet - Zandaqa -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## -scripted_effect decide_if_worthy_of_consideration_for_new_hof_effect = { - if = { - limit = { faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } } # Check if Zandaqa (in case this gets expanded in the future for outside the Zandaqa) - - if = { - limit = { has_strong_hook = scope:pledge_target } - use_hook = scope:pledge_target - set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title } - } - else = { - show_as_tooltip = { - random_list = { - 100 = { # You get Rejected - show_chance = no - desc = head_of_faith.0031.b.rejection - custom_tooltip = head_of_faith.0031.rejection.outcome - faith = { remove_religious_head_title = yes } - } - 100 = { # Set up the new HoF. - show_chance = no - desc = head_of_faith.0031.b.acceptance - set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title } - } - } - } - } - - if = { - limit = { is_developer_testing_trigger = yes } - custom_tooltip = debug_generic_option_shortened_trigger_can_disable # Actually the opposite - scope:pledge_target = { - trigger_event = { - id = head_of_faith.0032 - days = 2 - } - } - } - else = { scope:pledge_target = { trigger_event = head_of_faith.0032 } } - } - else = { set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title } } -} - -# A temporal Zandaqa reformer decides their HoF. -head_of_faith.0031 = { - type = character_event - title = head_of_faith.0031.t - desc = head_of_faith.0031.desc - theme = faith - left_portrait = { - character = root - animation = personality_rational - } - lower_left_portrait = scope:sunni_caliph - lower_center_portrait = { - character = scope:old_caliph - trigger = { - valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa } - } - } - lower_right_portrait = scope:shia_caliph - - cooldown = { years = 10 } - - trigger = { - # Requires any one caliphate to be around. - OR = { - exists = title:d_sunni.holder - exists = title:d_shiite.holder - AND = { - exists = scope:old_faith.religious_head_title.holder - valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa } - } - } - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - # Grab caliphs. - grab_existing_caliph_effect = { - TITLE_PATH = title:d_sunni - DENOMINATION = sunni - } - grab_existing_caliph_effect = { - TITLE_PATH = title:d_shiite - DENOMINATION = shia - } - grab_existing_caliph_effect = { - TITLE_PATH = scope:old_faith.religious_head_title - DENOMINATION = old - } - # And sort defaults. - set_default_caliph_effect = yes - - save_scope_as = pledgeing_individual - } - - # Go our own way. - option = { - name = head_of_faith.0031.a - - # Another splinter faith enters the ring. - faith = { remove_religious_head_title = yes } - # Nice chunk of piety for asserting your independence. - add_piety = major_piety_gain - - # No stress for faith-guiding. - ai_chance = { - base = 100 - ai_value_modifier = { - ai_zeal = 1 - ai_boldness = 1 - ai_vengefulness = 0.5 - } - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = -2 - } - } - } - - # Realign with Sunni orthodoxy. - option = { - name = head_of_faith.0031.b - trigger = { exists = scope:sunni_caliph } - - scope:sunni_caliph = { save_scope_as = pledge_target } - decide_if_worthy_of_consideration_for_new_hof_effect = yes - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:sunni_caliph - multiplier = 5 - } - } - } - - # Realign with Shia orthodoxy. - option = { - name = head_of_faith.0031.c - trigger = { exists = scope:shia_caliph } - - scope:shia_caliph = { save_scope_as = pledge_target } - decide_if_worthy_of_consideration_for_new_hof_effect = yes - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:shia_caliph - multiplier = 5 - } - } - } - - # Follow scope:old_faith's caliph. - option = { - name = head_of_faith.0031.d - trigger = { - exists = scope:old_caliph - valid_prior_caliph_available_trigger = { MS_TYPE = zandaqa } - } - - scope:old_caliph = { save_scope_as = pledge_target } - decide_if_worthy_of_consideration_for_new_hof_effect = yes - - # No stress for faith-guiding. - ai_chance = { - base = 0 - opinion_modifier = { - opinion_target = scope:old_caliph - multiplier = 5 - } - } - } -} - -head_of_faith.0032 = { - type = letter_event - sender = scope:pledgeing_individual - opening = head_of_faith.0032.t - desc = head_of_faith.0032.desc - - option = { # Yes, I will be your head - name = head_of_faith.0032.a - add_piety = medium_piety_gain - - scope:pledgeing_individual = { - send_interface_message = { - type = event_religious_good - title = head_of_faith.0032.notif.a - right_icon = scope:pledge_target - - set_religious_head_title_to_and_give_hook_effect = { NEW_RELIGIOUS_HEAD_TITLE = scope:pledge_target.faith.religious_head_title } - } - } - - ai_chance = { # This should be a rare outcome (HOFs are usually more zealous than rational, so it should help balance it) - base = 100 - ai_value_modifier = { - ai_compassion = 0.05 - ai_greed = 0.1 - ai_rationality = 0.5 # Rational HOFs wish to expand their influence - ai_sociability = 0.05 - ai_zeal = -0.5 # Faithful HOFs dislike the Zandaqa - } - opinion_modifier = { # Opinion plays into it (no need to check with friendship, since you *should* have good op of your friends. Otherwise they are not really your friends!) - who = root - opinion_target = scope:pledgeing_individual - multiplier = 0.2 - } - } - } - - option = { # No, go away I don't want to be your hof - name = head_of_faith.0032.b - add_piety = medium_piety_loss - - trigger = { NOT = { scope:pledgeing_individual = { has_strong_hook = scope:pledge_target } } } - show_as_unavailable = { always = yes } - - - scope:pledgeing_individual = { - send_interface_message = { - type = event_religious_bad - title = head_of_faith.0032.notif.b - right_icon = scope:pledge_target - - faith = { remove_religious_head_title = yes } - } - } - - ai_chance = { base = 100 } - } -} diff --git a/events/religion_events/heresy_events.txt b/events/religion_events/heresy_events.txt deleted file mode 100644 index 74124af0e..000000000 --- a/events/religion_events/heresy_events.txt +++ /dev/null @@ -1,1091 +0,0 @@ -namespace = heresy - -################################## -# Heresy Outbreak (Non-Eastern) # -# by Sean Hughes # -# 0001 - 0004 # -################################## - -scripted_trigger nearby_county_of_faith = { - any_in_list = { - list = neaby_same_religion_counties - faith = prev - } -} - -heresy.0001 = { - hidden = yes - scope = faith - - trigger = { - OR = { - NOT = { has_doctrine = eastern_hostility_doctrine } - has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern. - } - } - - immediate = { - #Look for a valid Duke of this Faith to be our heresiarch. - random_faith_ruler = { - #Prefer Dukes with only 1 or 2 Duchies. - limit = { - is_valid_heresiarch = yes - highest_held_title_tier = tier_duchy - any_held_title = { - title_tier = duchy - count < 3 #Limit the influence of Mega-Dukes - is_landless_type_title = no - is_noble_family_title = no - } - } - #Then accept any valid Duke. - alternative_limit = { - is_valid_heresiarch = yes - highest_held_title_tier = tier_duchy - } - #If no Dukes exist, accept a Count. - alternative_limit = { - is_valid_heresiarch = yes - } - - weight = { - base = 100 - - modifier = { - add = 100 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 50 - is_a_faction_member = yes - } - - modifier = { - factor = 10 - has_game_rule = strict_regional_heresy - trigger_if = { - limit = { - faith = faith:roman_catholic - } - capital_county = { - title_province = { - OR = { - geographical_region = world_europe_west_britannia # Lollard - geographical_region = world_europe_west_francia # Cathar - geographical_region = world_europe_south_italy # Walddensian - } - } - } - } - trigger_if = { - limit = { - faith = faith:orthodox - } - capital_county = { - title_province = { - OR = { - geographical_region = world_asia_minor # Paulician - geographical_region = custom_k_thessalonika # Iconoclast - geographical_region = world_europe_south_east # Bogomils - } - } - } - } - } - } - - save_scope_as = heretic_ruler - primary_title = { - save_scope_as = heretic_title - } - capital_county = { - save_scope_as = heretic_capital - } - } - - - #Once we have a heresiarch, look for a valid heretical faith to them to convert to. - if = { - limit = { - exists = scope:heretic_ruler - } - - #Save a list of provinces in our religion group (we will be reusing this a lot for distance checks). - every_province = { - limit = { - is_county_capital = yes - faith.religion = root.religion - squared_distance = { - target = scope:heretic_capital - value < squared_distance_medium - } - } - add_to_list = neaby_same_religion_counties - } - - # Compile a list of possible heresies to convert to. - religion = { - every_faith = { - limit = { - NOT = { invalid_for_heresy_events = yes } - } - add_to_list = potential_heresies - } - } - - #We want to pick certain faiths to be our heresy over others, assuming they are valid. - random_in_list = { - list = potential_heresies - - #Priority 1: Any nearby player-created faith. - limit = { - has_variable = player_created_faith - num_county_followers > 0 - is_valid_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - nearby_county_of_faith = yes - } - # Priority 2: Any nearby 'preferred heresy' faith. - alternative_limit = { - num_county_followers > 0 - is_preferred_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - nearby_county_of_faith = yes - } - # Priority 2.5: For the 'strict' game rule, only use preferred heresies. - alternative_limit = { - has_game_rule = strict_regional_heresy - is_preferred_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - } - # Priority 3: Any valid faith. - alternative_limit = { - is_valid_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - } - # Priority 4: Any faith. - alternative_limit = { - always = yes - } - - weight = { - base = 50 - - # Preferred heresies get another bonus. - modifier = { - factor = 5 - is_preferred_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - } - # More likely to pick Faiths that don't currently exist. - modifier = { - factor = 3 - num_county_followers = 0 - } - modifier = { - has_game_rule = strict_regional_heresy - NOT = { - is_preferred_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - } - factor = 0 - } - } - save_scope_as = heretic_faith - } - - #Trigger the heresy event for all rulers of the same Faith. - if = { - limit = { - exists = scope:heretic_faith - } - - save_scope_as = origin_faith - - #Determine roughly how many Counties we expext to flip to the heretical Faith. - random_list = { - 20 = { - modifier = { - add = 20 - fervor > 30 - } - set_variable = { - name = heresy_power - value = 10 - } - } - 55 = { - set_variable = { - name = heresy_power - value = 15 - } - } - 20 = { - modifier = { - add = 30 - fervor <= 20 - } - set_variable = { - name = heresy_power - value = 20 - } - } - 5 = { - modifier = { - add = 45 - fervor <= 10 - } - - set_variable = { - name = heresy_power - value = 25 - } - } - } - - # Modify heresy power for pluralist/fundamentalist - if = { - limit = { - has_doctrine_parameter = pluralism_pluralistic_resistant_to_heresy - } - change_variable = { - name = heresy_power - multiply = hostility_multiplier_pluralism - } - } - else_if = { - limit = { - has_doctrine_parameter = pluralism_fundamentalist_vulnerable_to_heresy - } - change_variable = { - name = heresy_power - multiply = hostility_multiplier_fundamentalist - } - } - - # Changes to another religion have reduced heresy power - if = { - limit = { - scope:origin_faith.religion != scope:heretic_faith.religion - } - change_variable = { - name = heresy_power - multiply = 0.5 - } - } - - #Flag the heretic faith as the parent faith's active heresy for the next 10 years. - set_variable = { - name = current_heresy - value = scope:heretic_faith - days = 3650 - } - - #Trigger the heresy outbreak event. - scope:heretic_ruler = { - trigger_event = { - id = heresy.0010 - days = 3 - } - } - } - } - } -} - -################################## -# Heresy Outbreak (Eastern) # -# by Sean Hughes # -# 0005 # -################################## - -heresy.0005 = { - hidden = yes - scope = faith - - trigger = { - has_doctrine = eastern_hostility_doctrine - NOT = { has_doctrine = heresy_hostility_doctrine } #Exclude Zoroastrians - } - - immediate = { - #Look for a valid Duke of this Faith to be our heresiarch. - random_faith_ruler = { - #Prefer Dukes with only 1 or 2 Duchies. - limit = { - faith = root - highest_held_title_tier = tier_duchy - any_held_title = { - title_tier = duchy - count < 3 #Limit the influence of Mega-Dukes - } - is_capable_adult_ai = yes - is_landed = yes - exists = capital_county - NOT = { has_trait = heresiarch } - no_heretical_hof_faith_trigger = yes - } - #Then accept any valid Duke. - alternative_limit = { - faith = root - highest_held_title_tier = tier_duchy - is_capable_adult_ai = yes - is_landed = yes - exists = capital_county - NOT = { has_trait = heresiarch } - no_heretical_hof_faith_trigger = yes - } - #If no Dukes exist, accept a Count. - alternative_limit = { - faith = root - highest_held_title_tier = tier_county - is_capable_adult_ai = yes - is_landed = yes - exists = capital_county - NOT = { has_trait = heresiarch } - no_heretical_hof_faith_trigger = yes - } - - weight = { - base = 100 - - modifier = { - add = 100 - is_powerful_vassal = yes - } - modifier = { - add = 75 - top_liege = this - } - modifier = { - add = 50 - is_a_faction_member = yes - } - } - - save_scope_as = heretic_ruler - primary_title = { - save_scope_as = heretic_title - } - capital_county = { - save_scope_as = heretic_capital - } - } - - - #Once we have a heresiarch, look for a valid heretical faith to them to convert to. - if = { - limit = { - exists = scope:heretic_ruler - } - - #Religions - faith:osvicenist.religion = { #Buddhism - add_to_list = eastern_religions - } - - every_in_list = { - list = eastern_religions - every_faith = { - add_to_list = eastern_faiths - } - } - - #Save a list of provinces in our religion group (we will be reusing this a lot for distance checks). - every_province = { - limit = { - is_county_capital = yes - faith.religion = { is_in_list = eastern_religions } - squared_distance = { - target = scope:heretic_capital - value < squared_distance_medium - } - } - add_to_list = neaby_same_religion_counties - } - - - #We want to pick certain faiths to be our heresy over others, assuming they are valid. - random_in_list = { - list = eastern_faiths - #Priority 1: Any nearby Eastern faith. - limit = { - num_county_followers > 0 - is_valid_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - nearby_county_of_faith = yes - } - #Priority 2: Any non-existing Eastern Faith - alternative_limit = { - num_county_followers = 0 - is_preferred_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - } - #Priority 3: Any far-away Eastern Faith - alternative_limit = { - is_valid_heresy = { - ORIGIN_FAITH = root - HERETICAL_FAITH = this - } - #No distance check here to save on perf (if we reach this point it's already not nearby) - } - - weight = { - base = 100 - - #Much more likely to select smaller Faiths as our heresy, to prevent them from becomming extinct (or prevent any other Faith from becoming too large). - modifier = { - add = 800 #1000 weight - num_county_followers <= 3 - } - modifier = { - add = 100 #200 weight - num_county_followers <= 6 - } - modifier = { - add = -20 #80 weight - num_county_followers > 9 - } - modifier = { - add = -30 #50 weight - num_county_followers > 12 - } - modifier = { - add = -40 #10 weight - num_county_followers > 15 - } - - #More likely to flip to a different branch of current religion than switching to a different religion. - modifier = { - factor = 10 - root.religion = this.religion - } - - #Certain Faiths are much more likely to appear/spread than others, due to popularity/obscurity. - #Common Faiths - } - save_scope_as = heretic_faith - } - - - #Trigger the heresy event for all rulers of the same Faith. - if = { - limit = { - exists = scope:heretic_faith - } - - save_scope_as = origin_faith - - #Determine roughly how many Counties we expext to flip to the heretical Faith. - random_list = { - 20 = { - modifier = { - add = 20 - fervor > 30 - } - set_variable = { - name = heresy_power - value = 10 - } - } - 55 = { - set_variable = { - name = heresy_power - value = 15 - } - } - 20 = { - modifier = { - add = 30 - fervor <= 20 - } - set_variable = { - name = heresy_power - value = 20 - } - } - 5 = { - modifier = { - add = 45 - fervor <= 10 - } - - set_variable = { - name = heresy_power - value = 25 - } - } - } - - # Modify heresy power for pluralist/fundamentalist - if = { - limit = { - has_doctrine_parameter = pluralism_pluralistic_resistant_to_heresy - } - change_variable = { - name = heresy_power - multiply = hostility_multiplier_pluralism - } - } - else_if = { - limit = { - has_doctrine_parameter = pluralism_fundamentalist_vulnerable_to_heresy - } - change_variable = { - name = heresy_power - multiply = hostility_multiplier_fundamentalist - } - } - - #Flag the heretic faith as the parent faith's active heresy for the next 10 years. - set_variable = { - name = current_heresy - value = scope:heretic_faith - days = 3650 - } - - #Trigger the heresy outbreak event. - scope:heretic_ruler = { - trigger_event = { - id = heresy.0010 - days = 3 - } - } - } - } - } -} - - -################## -# New Major Heresy -# by Sean Hughes -# 0010 -################## - -heresy.0010 = { - type = character_event - title = heresy.0010.t - desc = { - desc = heresy.0010.desc - first_valid = { - triggered_desc = { - trigger = { - always = no - #has_variable = dead_heresy - } - desc = heresy.0010.desc.resurgent - } - triggered_desc = { - trigger = { - exists = scope:is_new_heresy - } - desc = heresy.0010.desc.nonexistant - } - desc = heresy.0010.desc.exists - } - } - left_portrait = { - character = scope:heretic_ruler - animation = prayer - } - major = yes - theme = faith - - trigger = { - scope:origin_faith = { - var:heresy_power > 0 - } - } - - major_trigger = { - OR = { - faith = scope:origin_faith - faith = scope:heretic_faith - } - } - - immediate = { - play_music_cue = "mx_cue_sacredrite" - - if = { - limit = { - scope:heretic_faith = { - num_county_followers = 0 - } - } - save_scope_value_as = { - name = is_new_heresy - value = yes - } - } - - #Consume heresy power to fuel this conversion. - scope:origin_faith = { - if = { - limit = { - scope:heretic_ruler = { - highest_held_title_tier >= 3 - } - } - #If we're a Duke, consume more heresy power. - change_variable = { - name = heresy_power - subtract = 3 - } - } - else = { - #Otherwise only consume a little heresy power. - change_variable = { - name = heresy_power - subtract = 1 - } - } - } - - scope:heretic_ruler = { - #Convert this character to the new heresy. - set_character_faith_with_conversion = scope:heretic_faith - #Heresy-using faiths become heresiarchs. - if = { - limit = { - faith = { - OR = { - NOT = { has_doctrine = eastern_hostility_doctrine } - has_doctrine = heresy_hostility_doctrine #Zoroastrians also get heresies, despite being Eastern. - } - } - } - add_heresiarch_trait_effect = yes - } - - #Kick off the follow-up events in the heresy chain. - trigger_event = { - id = heresy.0011 - days = { 4 7 } - } - - #Convert most miscellaneous courtiers & guests they have to the same heresy. - every_courtier_or_guest = { - limit = { - faith = scope:origin_faith - NOR = { - has_trait = zealous - this = this.faith.religious_head - } - is_available_ai = yes - } - set_character_faith = scope:heretic_faith - - hidden_effect = { - add_character_flag = { - flag = converted_by_heresy_0010_event - years = 15 - } - } - } - - hidden_effect = { - add_character_flag = { - flag = converted_by_heresy_0010_event - years = 15 - } - } - } - - #Send notifications to everyone who might care about the conversion. - every_player = { - limit = { - NOR = { - #These characters already get the full event. - faith = scope:origin_faith - faith = scope:heretic_faith - } - OR = { - #Everyone in the same Realm is notified. - top_liege ?= scope:heretic_ruler.top_liege - #If we're physically close to the character, we also get notified. - capital_county = { - squared_distance = { - target = scope:heretic_capital - value < squared_distance_medium - } - } - } - } - - send_interface_message = { - type = event_heresy_outbreak_neutral - title = heresy.0010.notification.title - custom_tooltip = heresy.0010.notification - - left_icon = scope:heretic_ruler - } - } - - #Fervor adjustments to prevent multiple heresy flip-flopping. - scope:heretic_faith = { - change_fervor = { - value = 100 - desc = fervor_gain_new_heresy - } - } - scope:origin_faith = { - change_fervor = { - value = heretical_defector_fervor_gain - desc = fervor_gain_defector_heresy - } - } - } - - option = { - name = { - trigger = { - this.faith = scope:origin_faith - scope:origin_faith = { - faith_hostility_level = { - target = scope:heretic_faith - value > 1 - } - } - exists = scope:is_new_heresy - } - text = heresy.0010.a.new_heresy - } - name = { - trigger = { - this.faith = scope:origin_faith - scope:origin_faith = { - faith_hostility_level = { - target = scope:heretic_faith - value > 1 - } - } - NOT = { exists = scope:is_new_heresy } - } - text = heresy.0010.a.existing_heresy - } - name = { - trigger = { - this.faith = { - faith_hostility_level = { - target = scope:heretic_faith - value = 1 - } - } - } - text = heresy.0010.a.astray_faith - } - name = { - trigger = { - this.faith = scope:heretic_faith - } - text = heresy.0010.a.same_faith - } - custom_tooltip = heresy.0010.tt.custom - } - - option = { - name = heresy.0010.b - trigger = { - is_ai = no - this.faith != scope:heretic_faith - } - custom_tooltip = heresy.0010.tt.custom - - #Convert to the new heresy. - set_character_faith_with_conversion = scope:heretic_faith - add_piety = major_piety_loss - - add_internal_flag = dangerous - } -} - -################## -# Major Heresy Spreads -# by Sean Hughes -# 0011 -################## -scripted_trigger no_heretical_hof_faith_0011_trigger = { #Head of Faith shouldn't convert. - OR = { - NOT = { - exists = scope:origin_faith.religious_head - } - AND = { - exists = scope:origin_faith.religious_head - this != scope:origin_faith.religious_head - } - } -} -heresy.0011 = { - hidden = yes - - trigger = { - scope:origin_faith = { - var:heresy_power > 0 - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - clear_saved_scope = convert_ruler - scope:origin_faith = { - random_faith_ruler = { - limit = { - highest_held_title_tier > tier_barony #No Barons, they're inconsequential. - highest_held_title_tier < tier_kingdom #No AI Kings/Emperors, they're too powerful. - is_landed = yes - exists = capital_county - is_capable_adult_ai = yes - no_heretical_hof_faith_0011_trigger = yes - recently_converted_faith_trigger = no # As amusing as it may be, rulers shouldn't 'flip-flop' between Faiths, so we need to enforce a cooldown on heresy conversions. - } - - weight = { - base = 1000 # 100% weight - - #Rulers of counties close to the Heresiarch's are more likely to join their Heresy. - modifier = { - add = -900 # 10% weight - capital_county = { - squared_distance = { - target = scope:heretic_capital - value > squared_distance_small - } - } - } - modifier = { - add = -90 # 1% weight - capital_county = { - squared_distance = { - target = scope:heretic_capital - value > squared_distance_medium - } - } - } - modifier = { - add = -10 # 0% weight (fallback only) - capital_county = { - squared_distance = { - target = scope:heretic_capital - value > squared_distance_large - } - } - } - - #Rulers of the same(or similar) culture are more likely to join Heresies. - modifier = { - factor = 3 - culture = { has_same_culture_heritage = scope:heretic_ruler.culture } - } - modifier = { - factor = 4 - has_same_culture_as = scope:heretic_ruler - } - - #Counts are less likely to join a heresy than a Duke (though it's still possible if they're nearby) - modifier = { - factor = 0.25 - highest_held_title_tier = 2 - } - } - - save_scope_as = convert_ruler - primary_title = { - save_scope_as = convert_title - } - capital_county = { - save_scope_as = convert_capital - } - } - } - - if = { - limit = { - exists = scope:convert_ruler - } - hidden_effect = { - add_character_flag = { - flag = converted_by_heresy_0011_event - years = 15 - } - } - - #Consume heresy power to fuel this conversion. - scope:origin_faith = { - if = { - limit = { - scope:heretic_ruler = { - highest_held_title_tier >= tier_duchy - } - } - #If we're a Duke, consume more heresy power. - change_variable = { - name = heresy_power - subtract = 3 - } - } - else = { - #Otherwise only consume a little heresy power. - change_variable = { - name = heresy_power - subtract = 1 - } - } - } - - scope:convert_ruler = { - set_character_faith_with_conversion = scope:heretic_faith - - #Trigger the next heresy conversion event in the chain. - trigger_event = { - id = heresy.0011 - days = { 7 14 } - } - } - - #Send notifications to everyone who might care about the conversion - every_player = { - limit = { - OR = { - #Everyone in the same Realm is notified. - top_liege ?= scope:convert_ruler.top_liege - AND = { - #If convert is Duke or above, all same-faith charatcers (on both sides) are notified. - OR = { - faith = scope:origin_faith - faith = scope:heretic_faith - } - scope:convert_ruler = { - highest_held_title_tier >= tier_duchy - } - } - #If we're physically close to the character, we also get notified. - AND = { - capital_county ?= { - squared_distance = { - target = scope:convert_capital - value < squared_distance_medium - } - } - } - } - } - - # Save our faith's scope for localization purposes. - this = { - save_scope_as = me - faith = { - save_scope_as = my_faith - } - } - - # If the ruler converted to our faith, send a 'good' notification. - if = { - limit = { - scope:my_faith = scope:heretic_faith - } - send_interface_message = { - type = event_heresy_outbreak_good - title = heresy.0011.notification.same_faith - left_icon = scope:convert_ruler - show_as_tooltip = { - scope:convert_ruler = { - set_character_faith = scope:heretic_faith - } - } - } - } - # If the ruler converted to a faith we consider heretical, send a special notification. - else_if = { - limit = { - scope:my_faith = scope:origin_faith - scope:my_faith = { - faith_hostility_level = { - target = scope:heretic_faith - value >= 1 - } - } - } - if = { - # If the heretics are in our realm, send a 'bad' notification, as it's an immediate problem we have to deal with. - limit = { - top_liege = { - any_vassal_or_below = { - this = scope:convert_ruler - } - } - } - send_interface_message = { - type = event_heresy_outbreak_bad - title = heresy.0011.notification.heresy - left_icon = scope:convert_ruler - show_as_tooltip = { - scope:convert_ruler = { - set_character_faith = scope:heretic_faith - } - } - } - } - # If the heretics are simply elsewhere in the world, send a 'neutral' notificiation, as they are not an immediate concern (and this may even present an opportunity). - else = { - send_interface_message = { - type = event_heresy_outbreak_neutral - title = heresy.0011.notification.heresy - left_icon = scope:convert_ruler - show_as_tooltip = { - scope:convert_ruler = { - set_character_faith = scope:heretic_faith - } - } - } - } - } - # If we don't care that much about the faith the ruler converted to/from, send a 'neutral' notification. - else = { - send_interface_message = { - type = event_heresy_outbreak_neutral - title = heresy.0011.notification.other - left_icon = scope:convert_ruler - show_as_tooltip = { - scope:convert_ruler = { - set_character_faith = scope:heretic_faith - } - } - } - } - } - - #Fervor adjustments to prevent multiple heresy flip-flopping. - scope:origin_faith = { - change_fervor = { - value = heretical_defector_fervor_gain - desc = fervor_gain_defector_heresy - } - } - } - } -} diff --git a/events/religion_events/human_sacrifice_events.txt b/events/religion_events/human_sacrifice_events.txt deleted file mode 100644 index 9d8bbdaeb..000000000 --- a/events/religion_events/human_sacrifice_events.txt +++ /dev/null @@ -1,231 +0,0 @@ -namespace = human_sacrifice - -################################################## -#Flowery War CB events - - #0001 - Fail to sacrifice suitable victims by the time limit. - #0002 - A victim died before they could be sacrificed. - #0003 - A victim was released rather than be sacrificed. - -################################################## - -################################################## -# Thirsting Gods -# by Ewan Cowhig Croft -# 0001 -################################################## - -# You have disappointed your deities by not sacrificing marked captives. -# by Ewan Cowhig Croft -human_sacrifice.0001 = { - type = character_event - title = human_sacrifice.0001.t - desc = human_sacrifice.0001.desc - theme = faith - left_portrait = { - character = root - animation = shame - } - - trigger = { - faith = { has_doctrine_parameter = human_sacrifice_active } - any_prisoner = { has_character_modifier = designated_human_sacrifice_modifier } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - every_prisoner = { - limit = { has_character_modifier = designated_human_sacrifice_modifier } - add_to_list = designated_sacrifices_list - } - save_scope_value_as = { - name = designated_sacrifice_count - value = { - value = 0 - every_in_list = { - list = designated_sacrifices_list - add = 1 - } - } - } - } - - option = { #Immediately sacrifice the remainder to try and make amends. - name = human_sacrifice.0001.a - every_prisoner = { - limit = { has_character_modifier = designated_human_sacrifice_modifier } - death = { - death_reason = death_sacrificed_to_gods - killer = root - } - } - add_piety = { - value = miniscule_piety_gain - multiply = scope:designated_sacrifice_count - } - add_character_modifier = { - modifier = human_sacrifice_coward_modifier - years = 10 - } - stress_impact = { - callous = minor_stress_impact_loss - sadistic = medium_stress_impact_loss - zealous = major_stress_impact_loss - compassionate = medium_stress_impact_gain - cynical = major_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_compassion = 0.5 - ai_zeal = -0.5 - } - modifier = { - add = 10 - has_trait = callous - } - modifier = { - add = 20 - has_trait = sadistic - } - modifier = { - add = 30 - has_trait = zealous - } - modifier = { - add = -20 - has_trait = compassionate - } - modifier = { - add = -30 - has_trait = cynical - } - } - } - option = { #Accept the loss of piety with dignity. - name = human_sacrifice.0001.b - add_piety = { - value = medium_piety_loss - multiply = scope:designated_sacrifice_count - } - stress_impact = { zealous = medium_stress_impact_gain } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_zeal = 0.5 - ai_energy = -0.25 - } - modifier = { - add = -30 - has_trait = zealous - } - } - } - option = { #Internally decry the barbarism of your faith. - name = human_sacrifice.0001.c - if = { - limit = { - NOT = { - any_secret = { type = secret_non_believer } - } - } - give_non_believer_secret_effect = yes - } - else = { add_prestige = minor_prestige_gain } - stress_impact = { - compassionate = medium_stress_impact_loss - cynical = major_stress_impact_loss - callous = minor_stress_impact_gain - sadistic = medium_stress_impact_gain - zealous = major_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_compassion = 0.5 - ai_zeal = -0.5 - } - modifier = { - add = 20 - has_trait = compassionate - } - modifier = { - add = 30 - has_trait = cynical - } - modifier = { - add = -10 - has_trait = callous - } - modifier = { - add = -20 - has_trait = sadistic - } - modifier = { - add = -30 - has_trait = zealous - } - } - } -} - -# A marked captive has died without being sacrificed. -# by Ewan Cowhig Croft -#human_sacrifice.0002 = { - #hidden = yes - # - #trigger = { - #has_character_modifier = designated_human_sacrifice_modifier - #imprisoner = { - #faith = { has_doctrine_parameter = human_sacrifice_active } - #} - #} - # - #immediate = { - #save_scope_as = dead_designated_sacrifice - #imprisoner = { - #send_interface_message = { - #type = event_religious_bad_with_text - #title = designated_sacrifice_died.t - #desc = designated_sacrifice_died.desc - #right_icon = scope:dead_designated_sacrifice - #add_piety = minor_piety_loss - #} - #} - #} -#} - -# A marked captive has been released without being sacrificed. -# by Ewan Cowhig Croft -human_sacrifice.0003 = { - hidden = yes - - trigger = { - has_character_modifier = designated_human_sacrifice_modifier - scope:imprisoner = { - faith = { has_doctrine_parameter = human_sacrifice_active } - } - } - - immediate = { - save_scope_as = released_designated_sacrifice - scope:imprisoner = { - if = { - limit = { - scope:released_designated_sacrifice = { is_alive = yes } - } - send_interface_message = { - type = event_religious_bad_with_text - title = designated_sacrifice_release.t - desc = designated_sacrifice_released.desc - right_icon = scope:released_designated_sacrifice - add_piety = medium_piety_loss - } - } - } - remove_character_modifier = designated_human_sacrifice_modifier - } -} diff --git a/events/religion_events/jewish_events.txt b/events/religion_events/jewish_events.txt deleted file mode 100644 index 735faea0d..000000000 --- a/events/religion_events/jewish_events.txt +++ /dev/null @@ -1,115 +0,0 @@ -namespace = jewish_events - -### Rabbinic priesthood wants to become monogamous - -jewish_events.0001 = { - type = character_event - title = jewish_events.0001.t - desc = jewish_events.0001.desc - theme = learning - - left_portrait = { - character = root - animation = personality_bold - } - - option = { #Just accept it - name = jewish_events.0001.a - show_as_tooltip = { - root.faith = { - remove_doctrine = doctrine_polygamy - add_doctrine = doctrine_monogamy - } - } - ai_chance = { - base = 100 - } - } - - option = { #Refuse to change - name = jewish_events.0001.b - trigger = { - this = root.culture.culture_head - root.culture = { - NOT = { has_cultural_tradition = tradition_polygamous } - } - } - add_piety = major_piety_loss - show_as_tooltip = { - root.faith = { - remove_doctrine = doctrine_polygamy - add_doctrine = doctrine_monogamy - } - } - root.culture = { - if = { - limit = { - has_cultural_tradition = tradition_monogamous - } - remove_culture_tradition = tradition_monogamous - } - if = { - limit = { - has_cultural_tradition = tradition_concubines - } - remove_culture_tradition = tradition_concubines - } - add_culture_tradition = tradition_polygamous - } - } - - option = { #Refuse to change but also you're powerful enough to supercede the priesthood - name = jewish_events.0001.c - trigger = { - exists = root.faith.religious_head - root.faith.religious_head = { is_vassal_or_below_of = root } - } - add_piety_level = -1 - reverse_add_opinion = { - target = root.faith.religious_head - modifier = insulted_opinion - opinion = -75 - } - root.faith = { - set_variable = { - name = rabbinicism_rejected_monogamy - value = yes - } - } - } - - after = { - add_character_flag = had_event_jewish_events_0001 - if = { - limit = { - NOT = { root.faith = { has_variable = rabbinicism_rejected_monogamy } } - } - if = { - limit = { - root.faith = { has_doctrine = doctrine_polygamy } - } - root.faith = { - set_variable = { - name = rabbinicism_accepted_monogamy - value = yes - } - remove_doctrine = doctrine_polygamy - add_doctrine = doctrine_monogamy - } - } - if = { - limit = { - exists = root.faith.religious_head - root.faith.religious_head = { is_vassal_or_below_of = root } - } - every_player = { - limit = { - faith = root.faith - NOT = { has_character_flag = had_event_jewish_events_0001 } - } - trigger_event = jewish_events.0001 - } - } - } - } -} \ No newline at end of file diff --git a/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt b/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt index dd1a7c0ba..ec4ad9c93 100644 --- a/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt +++ b/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt @@ -421,11 +421,11 @@ court_ongoing.0502 = { #by Mathilda Bjarnehed #Ew, no! option = { name = { - trigger = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + trigger = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } text = court_ongoing.0502.b.incest } name = { - trigger = { NOT = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } } + trigger = { NOT = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } } text = court_ongoing.0502.b } @@ -446,11 +446,11 @@ court_ongoing.0502 = { #by Mathilda Bjarnehed add = 50 } modifier = { - relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } + relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } add = 200 } modifier = { - relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } + relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } add = 200 } modifier = { @@ -530,11 +530,11 @@ court_ongoing.0512 = { #Ew, no! option = { name = { - trigger = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + trigger = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } text = court_ongoing.0502.b.incest } name = { - trigger = { NOT = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } } + trigger = { NOT = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } } text = court_ongoing.0502.b } @@ -551,7 +551,7 @@ court_ongoing.0512 = { base = 0 modifier = { - relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } + relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } add = { if = { limit = { sexually_liberal_trigger = yes } @@ -563,7 +563,7 @@ court_ongoing.0512 = { } } modifier = { - relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } + relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } add = 200 } modifier = { @@ -597,7 +597,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Sodomy reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -606,7 +606,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Incest reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -631,7 +631,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Sodomy reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -640,7 +640,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Incest reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -665,7 +665,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Sodomy reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -674,7 +674,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Incest reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -705,7 +705,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Sodomy reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -714,7 +714,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { #Incest reject exists = scope:hard_court_reject - scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_rite_trigger = { CHARACTER = scope:owner } } NOT = { scope:owner = { has_relation_lover = scope:target } } NOT = { scope:owner = { is_spouse_of = scope:target } } } @@ -886,7 +886,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed # } # } # -# stress_impact = { +# stress_and_fulfillment_impact = { # craven = minor_stress_impact_gain # gregarious = minor_stress_impact_gain # arrogant = minor_stress_impact_gain @@ -913,7 +913,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed # opinion = -15 # } # -# stress_impact = { +# stress_and_fulfillment_impact = { # compassionate = minor_stress_impact_gain # honest = minor_stress_impact_gain # } @@ -923,7 +923,7 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed # option = { # name = court_ongoing.1000.c # -# stress_impact = { +# stress_and_fulfillment_impact = { # brave = minor_stress_impact_gain # compassionate = minor_stress_impact_gain # deceitful = minor_stress_impact_gain @@ -940,6 +940,7 @@ scripted_trigger court_ongoing_1010_insulter_trigger = { exists = liege can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:potential_insulter.liege } this != scope:target + this != root OR = { opinion = { target = scope:target @@ -1105,7 +1106,7 @@ court_ongoing.1010 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain lazy = minor_stress_impact_gain calm = minor_stress_impact_gain @@ -1171,7 +1172,7 @@ court_ongoing.1010 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = medium_stress_impact_gain vengeful = minor_stress_impact_gain } @@ -1195,7 +1196,7 @@ court_ongoing.1010 = { #by Mathilda Bjarnehed opinion = 15 } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = medium_stress_impact_gain vengeful = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -1691,7 +1692,7 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain lazy = minor_stress_impact_gain } @@ -1790,7 +1791,7 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -1824,7 +1825,7 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain greedy = minor_stress_impact_gain } @@ -1896,7 +1897,7 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain greedy = minor_stress_impact_gain } @@ -1916,7 +1917,7 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed option = { name = court_ongoing.1022.d - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain } @@ -2496,7 +2497,7 @@ court_ongoing.1040 = { #by Mathilda Bjarnehed } court_ongoing_fetch_gift_target_outcome_effect = { GIFT = necklace OUTCOME = success } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } @@ -2526,7 +2527,7 @@ court_ongoing.1040 = { #by Mathilda Bjarnehed } court_ongoing_fetch_gift_target_outcome_effect = { GIFT = necklace OUTCOME = success } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain deceitful = minor_stress_impact_gain } @@ -2596,7 +2597,7 @@ court_ongoing.1040 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain honest = medium_stress_impact_gain generous = minor_stress_impact_gain @@ -2751,7 +2752,7 @@ court_ongoing.1050 = { #by Mathilda Bjarnehed } court_ongoing_fetch_gift_target_outcome_effect = { GIFT = orchid OUTCOME = success } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } @@ -2770,7 +2771,7 @@ court_ongoing.1050 = { #by Mathilda Bjarnehed option = { name = court_ongoing.1050.b - stress_impact = { + stress_and_fulfillment_impact = { craven = major_stress_impact_gain lazy = medium_stress_impact_gain } @@ -3661,7 +3662,7 @@ court_ongoing.1110 = { } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain calm = minor_stress_impact_gain deceitful = minor_stress_impact_gain @@ -3720,7 +3721,7 @@ court_ongoing.1110 = { } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain honest = medium_stress_impact_gain just = minor_stress_impact_gain @@ -3808,7 +3809,7 @@ court_ongoing.1110 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain honest = minor_stress_impact_gain } @@ -4463,7 +4464,7 @@ court_ongoing.1120 = { #by Mathilda Bjarnehed trigger_event = court_ongoing.1121 } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain craven = minor_stress_impact_gain } @@ -4502,7 +4503,7 @@ court_ongoing.1120 = { #by Mathilda Bjarnehed trigger_event = court_ongoing.1121 } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain } @@ -4546,7 +4547,7 @@ court_ongoing.1120 = { #by Mathilda Bjarnehed trigger_event = court_ongoing.1121 } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain lazy = minor_stress_impact_gain } @@ -4591,7 +4592,7 @@ court_ongoing.1120 = { #by Mathilda Bjarnehed trigger_event = court_ongoing.1121 } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain shy = medium_stress_impact_gain craven = medium_stress_impact_gain @@ -4820,7 +4821,7 @@ court_ongoing.1121 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain craven = medium_stress_impact_gain compassionate = minor_stress_impact_gain @@ -5158,7 +5159,7 @@ court_ongoing.1211 = { #by Linnéa Thimrén } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain } } @@ -5197,7 +5198,7 @@ court_ongoing.1211 = { #by Linnéa Thimrén } } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain } } @@ -5361,7 +5362,7 @@ court_ongoing.1221 = { #by Linnéa Thimrén } } - stress_impact = { + stress_and_fulfillment_impact = { gluttonous = medium_stress_impact_gain } } @@ -5401,7 +5402,7 @@ court_ongoing.1221 = { #by Linnéa Thimrén } } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain } } diff --git a/events/scheme_events/governor_contract_events.txt b/events/scheme_events/governor_contract_events.txt index ceee7352f..46786bcae 100644 --- a/events/scheme_events/governor_contract_events.txt +++ b/events/scheme_events/governor_contract_events.txt @@ -1527,10 +1527,13 @@ governor_contract_event.2000 = { limit = { liege = root.liege } save_scope_as = other_gov } - scope:ongoing_contract = { # Save other gov for reward effects - set_variable = { - name = other_gov - value = scope:other_gov + if = { # Save other gov for reward effects; there may be no neighbouring peer governor + limit = { exists = scope:other_gov } + scope:ongoing_contract = { + set_variable = { + name = other_gov + value = scope:other_gov + } } } generate_governance_outcome_effect = { OPTIONS = 5 } @@ -2308,9 +2311,13 @@ governor_contract_event.2031 = { location = root.location culture = scope:ongoing_destination.county.culture faith = scope:ongoing_destination.county.faith + rite = scope:ongoing_destination.county.rite gender_female_chance = root_soldier_female_chance save_scope_as = peasant } + scope:peasant = { + set_character_rite = scope:ongoing_destination.county.rite + } if = { limit = { is_ai = yes @@ -3296,7 +3303,7 @@ governor_contract_event.2071 = { first_valid = { triggered_desc = { trigger = { - liege = { has_title = title:e_byzantium } + liege = { is_roman_emperor_trigger = yes } } desc = governor_contract_event.2071.desc.byz } @@ -3818,6 +3825,7 @@ governor_contract_event.2091 = { location = root.location template = local_saint_template faith = root.location.faith + rite = root.location.rite culture = root.location.culture save_scope_as = prophet after_creation = { @@ -4037,7 +4045,8 @@ governor_contract_event.2092 = { option = { name = governor_contract_event.2092.a - scope:ongoing_contract = { + # scope:ongoing_contract can be a stale Task_contract weak ref by the time the player picks this option + scope:ongoing_contract ?= { if = { limit = { scope:governor_contract_event_2091_duel ?= flag:prophet_persecute @@ -4089,7 +4098,7 @@ governor_contract_event.2093 = { option = { name = governor_contract_event.2093.a - scope:ongoing_contract = { + scope:ongoing_contract ?= { complete_task_contract = failure_standard } } @@ -4146,11 +4155,11 @@ governor_contract_event.2100 = { } faith = root.faith trigger_if = { - limit = { faith = { has_doctrine_parameter = clergy_must_be_male } } + limit = { rite = { rite_has_parameter = clergy_must_be_male } } is_female = no } trigger_else_if = { - limit = { faith = { has_doctrine_parameter = clergy_must_be_female } } + limit = { rite = { rite_has_parameter = clergy_must_be_female } } is_female = yes } trigger_else = { always = yes } diff --git a/events/scheme_events/mandala_schemes/disbelieve_mandala_scheme_events.txt b/events/scheme_events/mandala_schemes/disbelieve_mandala_scheme_events.txt index 699b80e8f..8fd114bb2 100644 --- a/events/scheme_events/mandala_schemes/disbelieve_mandala_scheme_events.txt +++ b/events/scheme_events/mandala_schemes/disbelieve_mandala_scheme_events.txt @@ -131,7 +131,7 @@ disbelieve_mandala_ongoing.0001 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } ai_chance = { @@ -150,7 +150,7 @@ disbelieve_mandala_ongoing.0001 = { # Don't take the risk option = { name = disbelieve_mandala_ongoing.0001.b - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } ai_chance = { @@ -219,7 +219,7 @@ disbelieve_mandala_ongoing.0010 = { create_artifact_pedestal_reliquary_judaism_effect = { OWNER = scope:spymaster } } else = { - create_artifact_sculpture_religious_effect = { OWNER = scope:spymaster } + create_artifact_sculpture_religious_effect = { OWNER = scope:spymaster CREATOR = scope:spymaster } } scope:newly_created_artifact = { save_scope_as = fake_relic } } @@ -276,7 +276,7 @@ disbelieve_mandala_ongoing.0010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss honest = medium_stress_impact_gain } @@ -300,7 +300,7 @@ disbelieve_mandala_ongoing.0010 = { # Nah option = { name = disbelieve_mandala_ongoing.0010.b - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_loss deceitful = minor_stress_impact_gain } @@ -316,4 +316,4 @@ disbelieve_mandala_ongoing.0010 = { } } } -} \ No newline at end of file +} diff --git a/events/scheme_events/sway_scheme/sway_outcome_events.txt b/events/scheme_events/sway_scheme/sway_outcome_events.txt index 78d9e18ee..8ba0bf975 100644 --- a/events/scheme_events/sway_scheme/sway_outcome_events.txt +++ b/events/scheme_events/sway_scheme/sway_outcome_events.txt @@ -1,979 +1,987 @@ -#Events handling Sway outcomes - -namespace = sway_outcome - -#Note: Outcome events for the Sway scheme are unusual. The default is simply a notification for success or failure - -################################ -# Standard outcomes -# 0000-0999 -################################ - -#Standard success - #by Petter Vilberg -sway_outcome.0001 = { - hidden = yes - - immediate = { - send_interface_message = { - type = sway_good_message - title = sway_sway_success_message - left_icon = scope:target - scope:target = { - if = { - limit = { - is_alive = yes - scope:owner = { is_alive = yes } - } -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = sway_opinion_increase_per_success -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = sway_opinion_increase_per_success - } -# } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - } - } - sway_end_effect = yes - } - } -} - -#Standard failure - #by Petter Vilberg -sway_outcome.0002 = { - hidden = yes - - immediate = { - send_interface_message = { - type = sway_bad_message - title = sway_sway_failed_message - left_icon = scope:target - stress_impact = { - gregarious = minor_stress_impact_gain - } - sway_end_effect = yes - } - } -} - - -################################# -# Positive Outcomes -# 1000-1999 -################################# - -#Diplomacy Duel to get an extra bonus - #by Petter Vilberg -sway_outcome.1001 = { - type = character_event - title = sway_outcome.1001.t - desc = sway_outcome.1001.desc - theme = sway_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - override_background = { - trigger = { is_travelling_not_at_activity = yes } - reference = terrain_travel - } - override_background = { - trigger = { is_travelling_at_activity = yes } - reference = ep2_activity - } - - trigger = { - NOT = { - has_character_flag = had_event_sway_outcome_1001 - } - } - - immediate = { - add_character_flag = { - flag = had_event_sway_outcome_1001 - years = 5 - } - } - - option = { - name = sway_outcome.1001.a - duel = { - target = scope:target - skill = diplomacy - - 20 = { - compare_modifier = { - value = scope:duel_value - } - desc = sway_outcome.1001.a.success - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1001.a.success - - add_prestige = minor_prestige_gain - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 50 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 50 - } -# } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - } - } - } - 20 = { - compare_modifier = { - value = scope:duel_value - multiplier = -1 - } - desc = sway_outcome.1001.a.failure - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1001.a.failure - - add_prestige = minor_prestige_loss - } - } - } - sway_end_effect = yes - } - - option = { - name = sway_outcome.1001.b - scope:target = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 30 - } - } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - sway_end_effect = yes - } -} - -#Learning Duel to get an extra bonus - #by Petter Vilberg -sway_outcome.1002 = { - type = character_event - title = sway_outcome.1002.t - desc = { - first_valid = { - triggered_desc = { - trigger = { faith = scope:target.faith } - desc = sway_outcome.1002.same_faith - } - desc = sway_outcome.1002.other_faith - } - } - theme = sway_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - override_background = { - trigger = { scope:target = { is_travelling = yes } } - reference = terrain_travel - } - - trigger = { - NOT = { - has_character_flag = had_event_sway_outcome_1002 - } - } - - weight_multiplier = { - base = 0 - compare_modifier = { - value = learning - multiplier = 0.1 - } - modifier = { - add = 2 - scope:target = { - is_landed = yes - government_has_flag = government_is_theocracy - } - } - } - - immediate = { - add_character_flag = { - flag = had_event_sway_outcome_1002 - years = 5 - } - } - - option = { - name = sway_outcome.1002.a - duel = { - target = scope:target - skill = learning - - 20 = { - compare_modifier = { - value = scope:duel_value - min = -18 - max = 20 - } - desc = sway_outcome.1001.a.success - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1001.a.success - - add_prestige = minor_prestige_gain - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 50 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 50 - } -# } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - } - } - } - 20 = { - compare_modifier = { - value = scope:duel_value - multiplier = -1 - min = -18 - max = 20 - } - desc = sway_outcome.1001.a.failure - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1001.a.failure - - add_prestige = minor_prestige_loss - } - } - } - sway_end_effect = yes - } - - option = { - name = sway_outcome.1002.b - scope:target = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 30 - } - } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - sway_end_effect = yes - } -} - - -#They're warming up to me, can I take it further? - #by Linnéa Thimrén -sway_outcome.1003 = { - type = character_event - title = sway_outcome.1003.t - desc = sway_outcome.1003.desc - theme = sway_scheme - left_portrait = scope:target - right_portrait = scope:friend - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - override_background = { - trigger = { is_travelling_not_at_activity = yes } - reference = terrain_travel - } - override_background = { - trigger = { is_travelling_at_activity = yes } - reference = ep2_activity - } - - trigger = { - NOT = { - has_character_flag = had_event_sway_outcome_1003 - } - } - - immediate = { - add_character_flag = { - flag = had_event_sway_outcome_1003 - years = 5 - } - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 30 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 30 - } -# } - scope:owner = { - if = { - limit = { - faith = { has_doctrine_parameter = sway_scheme_piety } - OR = { - liege ?= scope:target - target_is_vassal_or_below = scope:target - } - } - add_piety = minor_piety_gain - } - } - } - if = { - limit = { - any_relation = { - type = friend - diplomacy > root.diplomacy - } - } - random_relation = { - type = friend - limit = { - diplomacy > root.diplomacy - } - save_scope_as = friend - } - } - } - - option = { #Gamble! - name = sway_outcome.1003.a - duel = { - target = scope:target - skill = diplomacy - - 30 = { - compare_modifier = { - value = scope:duel_value - } - desc = sway_outcome.1003.a.success - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1003.a.success - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 20 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 20 - } -# } - } - } - } - 20 = { - compare_modifier = { - value = scope:duel_value - multiplier = -1 - } - desc = sway_outcome.1003.a.failure - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1003.a.failure - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = -10 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = -10 - } -# } - } - } - } - } - } - - option = { #Gamble! Friend helps you out! - name = sway_outcome.1003.a_friend - trigger = { - exists = scope:friend - } - scope:friend = { - duel = { - target = scope:target - skill = diplomacy - - 40 = { - compare_modifier = { - value = scope:duel_value - } - desc = sway_outcome.1003.a.success - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1003.a.success - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = 15 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = 15 -# } - } - } - } - } - 20 = { - compare_modifier = { - value = scope:duel_value - multiplier = -1 - } - desc = sway_outcome.1003.a.failure - send_interface_toast = { - left_icon = scope:target - title = sway_outcome.1003.a.failure - - scope:target = { -# if = { -# limit = { -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty -# } -# } -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_and_compelled_to_submit_opinion -# opinion = -10 -# } -# } -# else = { - add_opinion = { - target = scope:owner - modifier = scheme_sway_opinion - opinion = -10 - } -# } - } - } - } - } - } - } - - option = { #Safe route - name = sway_outcome.1003.b - - } - - after = { - sway_end_effect = yes - } -} - -##A disloyal vassal can be compelled to reconsider during the Anarchy at Samarra Struggle -# #by Ola Jentzsch -# -#sway_outcome.1004 = { -# type = character_event -# title = sway_outcome.1004.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:target = { -# ai_vengefulness >= medium_positive_ai_value -# } -# } -# desc = sway_outcome_grudgingly.1004.desc -# } -# random_valid = { -# desc = sway_outcome_magnanimity.1004.desc -# desc = sway_outcome_blessed.1004.desc -# triggered_desc = { -# trigger = { -# scope:target = { -# NOR = { -# has_trait = stubborn -# has_trait = arrogant -# has_trait = august -# has_trait = callous -# } -# } -# } -# desc = sway_outcome_flattery.1004.desc -# } -# triggered_desc = { -# trigger = { -# AND = { -# scope:target = { -# AND = { -# OR = { -# has_religion = religion:buddhism_religion -# has_religion = religion:jainism_religion -# has_religion = religion:hinduism_religion -# } -# ai_zeal >= low_positive_ai_value -# } -# } -# scope:owner = { -# OR = { -# has_religion = religion:buddhism_religion -# has_religion = religion:jainism_religion -# has_religion = religion:hinduism_religion -# } -# } -# } -# } -# desc = sway_outcome_dharmic.1004.desc -# } -# triggered_desc = { -# trigger = { -# scope:target = { -# has_religion = religion:islam_religion -# ai_zeal >= low_positive_ai_value -# exists = faith.religious_head -# faith.religious_head = { this = root } -# } -# } -# desc = sway_outcome_caliph.1004.desc -# } -# } -# } -# } -# theme = sway_scheme -# left_portrait = { -# character = scope:owner -# triggered_animation = { -# trigger = { -# has_trait = callous -# has_trait = vengeful -# has_trait = sadistic -# } -# animation = personality_callous -# } -# animation = personality_bold -# } -# right_portrait = { -# character = scope:target -# animation = throne_room_bow_1 -# } -# -# trigger = { -# -# any_character_struggle = { -# is_struggle_type = persian_struggle -# has_struggle_phase_parameter = fp3_sway_scheme_more_powerful -# } -# -# scope:target = { -# AND = { -# is_vassal_of = scope:owner -# has_trait = disloyal -# } -# NOT = { -# has_relation_rival = scope:owner -# } -# } -# } -# -# weight_multiplier = { #more likely to trigger if the target likes you, or has a flexible personality -# base = 1 -# modifier = { -# add = 0.5 -# scope:target = { has_trait = fickle } #They're flexible -# } -# modifier = { -# add = 0.5 -# scope:target = { has_trait = trusting } #They trust you -# } -# modifier = { -# add = -0.7 -# scope:target = { has_trait = stubborn } #They are not prone to change their ways -# } -# modifier = { -# add = -0.3 -# scope:target = { has_trait = vengeful } #They are not soon to forgive slights, real or imagined -# } -# } -# -# immediate = { -# -# scope:target = { -# add_opinion = { -# target = scope:owner -# modifier = scheme_sway_opinion -# opinion = 20 -# } -# remove_trait = disloyal -# } -# scope:owner = { -# if = { -# limit = { -# faith = { has_doctrine_parameter = sway_scheme_piety } -# OR = { -# liege ?= scope:target -# target_is_vassal_or_below = scope:target -# } -# } -# add_piety = minor_piety_gain -# } -# } -# } -# -# option = { -# name = sway_outcome.1004.a -# -# trigger = { -# OR = { -# has_trait = vengeful -# has_trait = arrogant -# has_trait = paranoid -# } -# } -# -# scope:scheme = { -# end_scheme = yes -# } -# } -# -# option = { -# name = sway_outcome.1004.b -# -# trigger = { -# NOR = { -# has_trait = vengeful -# has_trait = arrogant -# has_trait = paranoid -# } -# } -# -# scope:scheme = { -# end_scheme = yes -# } -# } -#} - - -################################# -# Negative Outcomes -# 2000-2999 -################################# - -#Diplomatic misunderstanding - #by Petter Vilberg -sway_outcome.2001 = { - type = character_event - title = sway_outcome.2001.t - desc = { - desc = sway_outcome.2001.opening - first_valid = { - triggered_desc = { - trigger = { - scope:target = { - OR = { - is_of_major_interest_to_root_trigger = yes - is_of_minor_interest_to_root_trigger = yes - } - NOT = { - has_relation_rival = root - } - } - } - desc = sway_outcome.2001.not_interested_relation - } - triggered_desc = { - trigger = { - scope:target = { - possibly_interested_in_character_trigger = { - CHARACTER = root - } - } - } - desc = sway_outcome.2001.not_interested_romantically - } - random_valid = { - desc = sway_outcome.2001.not_interested_horses - desc = sway_outcome.2001.not_interested_toll_exemptions - desc = sway_outcome.2001.not_interested_friend - triggered_desc = { - trigger = { - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - OR = { scope:target.religion = religion:eastern_orthodox_religion scope:target.religion = religion:catholic_religion scope:target.religion = religion:protestant_religion } - } - desc = sway_outcome.2001.not_interested_relics - } - } - } - desc = sway_outcome.2001.end - } - theme = sway_scheme - left_portrait = { - character = scope:target - animation = eyeroll - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - override_background = { - trigger = { is_travelling_not_at_activity = yes } - reference = terrain_travel - } - override_background = { - trigger = { is_travelling_at_activity = yes } - reference = ep2_activity - } - - trigger = { - NOT = { - has_character_flag = had_event_sway_outcome_2001 - } - NOR = { - has_relation_lover = scope:target - has_relation_friend = scope:target - any_consort = { - this = scope:target - } - betrothed ?= scope:target - } - } - - immediate = { - add_character_flag = { - flag = had_event_sway_outcome_2001 - years = 5 - } - } - - option = { - name = sway_outcome.2001.a - scope:target = { - add_opinion = { - target = scope:owner - modifier = sway_blocker_opinion - opinion = -10 - } - } - scope:scheme = { - end_scheme = yes - } - } -} - - -#They think you're plotting against them - #by Linnéa Thimrén -sway_outcome.2002 = { - type = character_event - title = sway_outcome.2002.t - desc = sway_outcome.2002.desc - theme = sway_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - override_background = { - trigger = { is_travelling_not_at_activity = yes } - reference = terrain_travel - } - override_background = { - trigger = { is_travelling_at_activity = yes } - reference = ep2_activity - } - - trigger = { - NOT = { - has_character_flag = had_event_sway_outcome_2002 - } - } - - weight_multiplier = { - base = 0.75 - modifier = { - add = 0.75 - has_trait = paranoid - } - } - - immediate = { - add_character_flag = { - flag = had_event_sway_outcome_2002 - years = 5 - } - } - - option = { - name = sway_outcome.2002.a - scope:target = { - add_opinion = { - target = scope:owner - modifier = sway_blocker_opinion - opinion = -10 - } - add_character_modifier = { - modifier = more_vigilant_recistance_modifier - years = 5 - } - } - scope:scheme = { - end_scheme = yes - } - } -} +#Events handling Sway outcomes + +namespace = sway_outcome + +#Note: Outcome events for the Sway scheme are unusual. The default is simply a notification for success or failure + +################################ +# Standard outcomes +# 0000-0999 +################################ + +#Standard success + #by Petter Vilberg +sway_outcome.0001 = { + hidden = yes + + immediate = { + send_interface_message = { + type = sway_good_message + title = sway_sway_success_message + left_icon = scope:target + scope:target = { + if = { + limit = { + is_alive = yes + scope:owner = { is_alive = yes } + } + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = sway_opinion_increase_per_success + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = sway_opinion_increase_per_success + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + if = { + limit = { + has_personal_tenet_flag = tenet_communal_identity_sway_piety + rite ?= scope:target.rite + } + add_piety = miniscule_piety_gain + } + } + } + } + sway_end_effect = yes + } + } +} + +#Standard failure + #by Petter Vilberg +sway_outcome.0002 = { + hidden = yes + + immediate = { + send_interface_message = { + type = sway_bad_message + title = sway_sway_failed_message + left_icon = scope:target + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_gain + } + sway_end_effect = yes + } + } +} + + +################################# +# Positive Outcomes +# 1000-1999 +################################# + +#Diplomacy Duel to get an extra bonus + #by Petter Vilberg +sway_outcome.1001 = { + type = character_event + title = sway_outcome.1001.t + desc = sway_outcome.1001.desc + theme = sway_scheme + left_portrait = scope:target + widget = { + gui = "event_window_widget_scheme" + container = "custom_widgets_container" + } + + override_background = { + trigger = { is_travelling_not_at_activity = yes } + reference = terrain_travel + } + override_background = { + trigger = { is_travelling_at_activity = yes } + reference = ep2_activity + } + + trigger = { + NOT = { + has_character_flag = had_event_sway_outcome_1001 + } + } + + immediate = { + add_character_flag = { + flag = had_event_sway_outcome_1001 + years = 5 + } + } + + option = { + name = sway_outcome.1001.a + duel = { + target = scope:target + skill = diplomacy + + 20 = { + compare_modifier = { + value = scope:duel_value + } + desc = sway_outcome.1001.a.success + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1001.a.success + + add_prestige = minor_prestige_gain + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 50 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 50 + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + } + } + } + 20 = { + compare_modifier = { + value = scope:duel_value + multiplier = -1 + } + desc = sway_outcome.1001.a.failure + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1001.a.failure + + add_prestige = minor_prestige_loss + } + } + } + sway_end_effect = yes + } + + option = { + name = sway_outcome.1001.b + scope:target = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 30 + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + sway_end_effect = yes + } +} + +#Learning Duel to get an extra bonus + #by Petter Vilberg +sway_outcome.1002 = { + type = character_event + title = sway_outcome.1002.t + desc = { + first_valid = { + triggered_desc = { + trigger = { faith = scope:target.faith } + desc = sway_outcome.1002.same_faith + } + desc = sway_outcome.1002.other_faith + } + } + theme = sway_scheme + left_portrait = scope:target + widget = { + gui = "event_window_widget_scheme" + container = "custom_widgets_container" + } + + override_background = { + trigger = { scope:target = { is_travelling = yes } } + reference = terrain_travel + } + + trigger = { + NOT = { + has_character_flag = had_event_sway_outcome_1002 + } + } + + weight_multiplier = { + base = 0 + compare_modifier = { + value = learning + multiplier = 0.1 + } + modifier = { + add = 2 + scope:target = { + is_landed = yes + government_has_flag = government_is_theocracy + } + } + } + + immediate = { + add_character_flag = { + flag = had_event_sway_outcome_1002 + years = 5 + } + } + + option = { + name = sway_outcome.1002.a + duel = { + target = scope:target + skill = learning + + 20 = { + compare_modifier = { + value = scope:duel_value + min = -18 + max = 20 + } + desc = sway_outcome.1001.a.success + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1001.a.success + + add_prestige = minor_prestige_gain + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 50 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 50 + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + } + } + } + 20 = { + compare_modifier = { + value = scope:duel_value + multiplier = -1 + min = -18 + max = 20 + } + desc = sway_outcome.1001.a.failure + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1001.a.failure + + add_prestige = minor_prestige_loss + } + } + } + sway_end_effect = yes + } + + option = { + name = sway_outcome.1002.b + scope:target = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 30 + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + sway_end_effect = yes + } +} + + +#They're warming up to me, can I take it further? + #by Linnéa Thimrén +sway_outcome.1003 = { + type = character_event + title = sway_outcome.1003.t + desc = sway_outcome.1003.desc + theme = sway_scheme + left_portrait = scope:target + right_portrait = scope:friend + widget = { + gui = "event_window_widget_scheme" + container = "custom_widgets_container" + } + + override_background = { + trigger = { is_travelling_not_at_activity = yes } + reference = terrain_travel + } + override_background = { + trigger = { is_travelling_at_activity = yes } + reference = ep2_activity + } + + trigger = { + NOT = { + has_character_flag = had_event_sway_outcome_1003 + } + } + + immediate = { + add_character_flag = { + flag = had_event_sway_outcome_1003 + years = 5 + } + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 30 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 30 + } + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + } + if = { + limit = { + any_relation = { + type = friend + diplomacy > root.diplomacy + } + } + random_relation = { + type = friend + limit = { + diplomacy > root.diplomacy + } + save_scope_as = friend + } + } + } + + option = { #Gamble! + name = sway_outcome.1003.a + duel = { + target = scope:target + skill = diplomacy + + 30 = { + compare_modifier = { + value = scope:duel_value + } + desc = sway_outcome.1003.a.success + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1003.a.success + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 20 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 20 + } + } + } + } + } + 20 = { + compare_modifier = { + value = scope:duel_value + multiplier = -1 + } + desc = sway_outcome.1003.a.failure + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1003.a.failure + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = -10 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = -10 + } + } + } + } + } + } + } + + option = { #Gamble! Friend helps you out! + name = sway_outcome.1003.a_friend + trigger = { + exists = scope:friend + } + scope:friend = { + duel = { + target = scope:target + skill = diplomacy + + 40 = { + compare_modifier = { + value = scope:duel_value + } + desc = sway_outcome.1003.a.success + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1003.a.success + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = 15 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 15 + } + } + } + } + } + 20 = { + compare_modifier = { + value = scope:duel_value + multiplier = -1 + } + desc = sway_outcome.1003.a.failure + send_interface_toast = { + left_icon = scope:target + title = sway_outcome.1003.a.failure + + scope:target = { + if = { + limit = { + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_vassals_removes_disloyalty + } + } + add_opinion = { + target = scope:owner + modifier = scheme_sway_and_compelled_to_submit_opinion + opinion = -10 + } + } + else = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = -10 + } + } + } + } + } + } + } + } + + option = { #Safe route + name = sway_outcome.1003.b + + } + + after = { + sway_end_effect = yes + } +} + +#A disloyal vassal can be compelled to reconsider during the Anarchy at Samarra Struggle + #by Ola Jentzsch + +sway_outcome.1004 = { + type = character_event + title = sway_outcome.1004.t + desc = { + first_valid = { + triggered_desc = { + trigger = { + scope:target = { + ai_vengefulness >= medium_positive_ai_value + } + } + desc = sway_outcome_grudgingly.1004.desc + } + random_valid = { + desc = sway_outcome_magnanimity.1004.desc + desc = sway_outcome_blessed.1004.desc + triggered_desc = { + trigger = { + scope:target = { + NOR = { + has_trait = stubborn + has_trait = arrogant + has_trait = august + has_trait = callous + } + } + } + desc = sway_outcome_flattery.1004.desc + } + triggered_desc = { + trigger = { + AND = { + scope:target = { + AND = { + OR = { + has_religion = religion:buddhism_religion + has_religion = religion:jainism_religion + has_religion = religion:hinduism_religion + } + ai_zeal >= low_positive_ai_value + } + } + scope:owner = { + OR = { + has_religion = religion:buddhism_religion + has_religion = religion:jainism_religion + has_religion = religion:hinduism_religion + } + } + } + } + desc = sway_outcome_dharmic.1004.desc + } + triggered_desc = { + trigger = { + scope:target = { + has_religion = religion:islam_religion + ai_zeal >= low_positive_ai_value + exists = faith.religious_head + faith.religious_head = { this = root } + } + } + desc = sway_outcome_caliph.1004.desc + } + } + } + } + theme = sway_scheme + left_portrait = { + character = scope:owner + triggered_animation = { + trigger = { + has_trait = callous + has_trait = vengeful + has_trait = sadistic + } + animation = personality_callous + } + animation = personality_bold + } + right_portrait = { + character = scope:target + animation = throne_room_bow_1 + } + + trigger = { + + any_character_struggle = { + is_struggle_type = persian_struggle + has_struggle_phase_parameter = fp3_sway_scheme_more_powerful + } + + scope:target = { + AND = { + is_vassal_of = scope:owner + has_trait = disloyal + } + NOT = { + has_relation_rival = scope:owner + } + } + } + + weight_multiplier = { #more likely to trigger if the target likes you, or has a flexible personality + base = 1 + modifier = { + add = 0.5 + scope:target = { has_trait = fickle } #They're flexible + } + modifier = { + add = 0.5 + scope:target = { has_trait = trusting } #They trust you + } + modifier = { + add = -0.7 + scope:target = { has_trait = stubborn } #They are not prone to change their ways + } + modifier = { + add = -0.3 + scope:target = { has_trait = vengeful } #They are not soon to forgive slights, real or imagined + } + } + + immediate = { + + scope:target = { + add_opinion = { + target = scope:owner + modifier = scheme_sway_opinion + opinion = 20 + } + remove_trait = disloyal + } + scope:owner = { + if = { + limit = { + rite = { rite_has_parameter = sway_scheme_piety } + OR = { + liege ?= scope:target + target_is_vassal_or_below = scope:target + } + } + add_piety = minor_piety_gain + } + } + } + + option = { + name = sway_outcome.1004.a + + trigger = { + OR = { + has_trait = vengeful + has_trait = arrogant + has_trait = paranoid + } + } + + scope:scheme = { + end_scheme = yes + } + } + + option = { + name = sway_outcome.1004.b + + trigger = { + NOR = { + has_trait = vengeful + has_trait = arrogant + has_trait = paranoid + } + } + + scope:scheme = { + end_scheme = yes + } + } +} + + +################################# +# Negative Outcomes +# 2000-2999 +################################# + +#Diplomatic misunderstanding + #by Petter Vilberg +sway_outcome.2001 = { + type = character_event + title = sway_outcome.2001.t + desc = { + desc = sway_outcome.2001.opening + first_valid = { + triggered_desc = { + trigger = { + scope:target = { + OR = { + is_of_major_interest_to_root_trigger = yes + is_of_minor_interest_to_root_trigger = yes + } + NOT = { + has_relation_rival = root + } + } + } + desc = sway_outcome.2001.not_interested_relation + } + triggered_desc = { + trigger = { + scope:target = { + possibly_interested_in_character_trigger = { + CHARACTER = root + } + } + } + desc = sway_outcome.2001.not_interested_romantically + } + random_valid = { + desc = sway_outcome.2001.not_interested_horses + desc = sway_outcome.2001.not_interested_toll_exemptions + desc = sway_outcome.2001.not_interested_friend + triggered_desc = { + trigger = { + religion = religion:christianity_religion + scope:target.religion = religion:christianity_religion + } + desc = sway_outcome.2001.not_interested_relics + } + } + } + desc = sway_outcome.2001.end + } + theme = sway_scheme + left_portrait = { + character = scope:target + animation = eyeroll + } + widget = { + gui = "event_window_widget_scheme" + container = "custom_widgets_container" + } + + override_background = { + trigger = { is_travelling_not_at_activity = yes } + reference = terrain_travel + } + override_background = { + trigger = { is_travelling_at_activity = yes } + reference = ep2_activity + } + + trigger = { + NOT = { + has_character_flag = had_event_sway_outcome_2001 + } + NOR = { + has_relation_lover = scope:target + has_relation_friend = scope:target + any_consort = { + this = scope:target + } + betrothed ?= scope:target + + } + } + + immediate = { + add_character_flag = { + flag = had_event_sway_outcome_2001 + years = 5 + } + } + + option = { + name = sway_outcome.2001.a + scope:target = { + add_opinion = { + target = scope:owner + modifier = sway_blocker_opinion + opinion = -10 + } + } + scope:scheme = { + end_scheme = yes + } + } +} + + +#They think you're plotting against them + #by Linnéa Thimrén +sway_outcome.2002 = { + type = character_event + title = sway_outcome.2002.t + desc = sway_outcome.2002.desc + theme = sway_scheme + left_portrait = scope:target + widget = { + gui = "event_window_widget_scheme" + container = "custom_widgets_container" + } + + override_background = { + trigger = { is_travelling_not_at_activity = yes } + reference = terrain_travel + } + override_background = { + trigger = { is_travelling_at_activity = yes } + reference = ep2_activity + } + + trigger = { + NOT = { + has_character_flag = had_event_sway_outcome_2002 + } + } + + weight_multiplier = { + base = 0.75 + modifier = { + add = 0.75 + has_trait = paranoid + } + } + + immediate = { + add_character_flag = { + flag = had_event_sway_outcome_2002 + years = 5 + } + } + + option = { + name = sway_outcome.2002.a + scope:target = { + add_opinion = { + target = scope:owner + modifier = sway_blocker_opinion + opinion = -10 + } + add_character_modifier = { + modifier = more_vigilant_recistance_modifier + years = 5 + } + } + scope:scheme = { + end_scheme = yes + } + } +} diff --git a/events/test_events/debug.txt b/events/test_events/debug.txt index 7ed91da23..7f486b710 100644 --- a/events/test_events/debug.txt +++ b/events/test_events/debug.txt @@ -16,13 +16,13 @@ debug.1 = { # Max Portraits in Event Window left_portrait = { character = root - animation = dancing + scripted_animation = bow_closed # camera = camera_event_kneeling } right_portrait = { character = scope:portrait_2 - animation = throne_room_kneel_1 + animation = whipping # camera = camera_event_standing_with_horse_right } @@ -1555,7 +1555,7 @@ debug.335 = { orphan = yes immediate = { - create_artifact_pedestal_crucifix_effect = { OWNER = root } + create_artifact_pedestal_crucifix_effect = { OWNER = root CREATOR = root } } option = { @@ -1571,7 +1571,7 @@ debug.336 = { orphan = yes immediate = { - create_artifact_pedestal_cross_effect = { OWNER = root } + create_artifact_pedestal_cross_effect = { OWNER = root CREATOR = root } } option = { @@ -1745,18 +1745,16 @@ debug.347 = { orphan = yes trigger = { - faith = { - NOR = { - has_doctrine = tenet_aniconism - religion = religion:judaism_religion - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - religion = religion:islam_religion - } + NOR = { + rite = { rite_has_tenet = tenet_aniconism } + faith.religion = religion:judaism_religion + OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } + faith.religion = religion:islam_religion } } immediate = { - create_artifact_sculpture_religious_effect = { OWNER = root } + create_artifact_sculpture_religious_effect = { OWNER = root CREATOR = root } } option = { @@ -1772,12 +1770,8 @@ debug.348 = { orphan = yes trigger = { - faith = { - NOT = { - has_doctrine = tenet_aniconism - } - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - } + NOT = { rite = { rite_has_tenet = tenet_aniconism } } + OR = { religion = faith.religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } } immediate = { @@ -2310,7 +2304,8 @@ debug.411 = { # For usage debugging achievements. Should be a generic command ra debug_log = "Iberia Converted to Mozarab!" every_county_in_region = { region = world_europe_west_iberia -# set_county_faith = faith:mozarabic_church + set_county_faith = faith:christian_faith + set_county_rite = rite:mozarabic_church } debug_log = "Woosh! Caucasian Iberia is now yours!" @@ -2340,6 +2335,7 @@ debug.412 = { # Spawn the CHESS-A-THRON 3000, a perfect creature designed to bea gender_female_chance = root_faith_dominant_gender_female_chance culture = root.culture faith = root.faith + rite = root.rite random_traits = yes martial = 100 learning = 100 @@ -2856,7 +2852,7 @@ debug.605 = { option = { name = debug_main - stress_impact = { + stress_and_fulfillment_impact = { base = 30 } } @@ -2883,7 +2879,7 @@ debug.605 = { } option = { name = debug_main - stress_impact = { + stress_and_fulfillment_impact = { base = 30 } @@ -3028,7 +3024,7 @@ debug.9600 = { # Event for testing Tax Collector script support scope:tax_collector = { tax_collector_aptitude = { target = clan_tax_slot - value = 1 + value = 0 } } } @@ -3042,7 +3038,7 @@ debug.9600 = { # Event for testing Tax Collector script support scope:tax_collector = { tax_collector_aptitude = { target = clan_tax_slot - value = 2 + value = 1 } } } @@ -3056,7 +3052,7 @@ debug.9600 = { # Event for testing Tax Collector script support scope:tax_collector = { tax_collector_aptitude = { target = clan_tax_slot - value = 3 + value = 2 } } } @@ -3070,7 +3066,7 @@ debug.9600 = { # Event for testing Tax Collector script support scope:tax_collector = { tax_collector_aptitude = { target = clan_tax_slot - value = 4 + value = 3 } } } @@ -3084,7 +3080,7 @@ debug.9600 = { # Event for testing Tax Collector script support scope:tax_collector = { tax_collector_aptitude = { target = clan_tax_slot - value = 5 + value = 4 } } } @@ -3144,6 +3140,7 @@ debug.9610 = { # Spawn a super tax collector gender_female_chance = root_faith_dominant_gender_female_chance culture = root.culture faith = root.faith + rite = root.rite random_traits = yes trait = blind stewardship = 100 @@ -3176,6 +3173,7 @@ debug.9611 = { # Spawn a assassin gender_female_chance = root_faith_dominant_gender_female_chance culture = root.culture faith = root.faith + rite = root.rite random_traits = yes intrigue = 100 prowess = 100 @@ -3634,6 +3632,7 @@ debug.1005 = { debug.1006 = { type = character_event window = fullscreen_event + queue_icon = "gfx/interface/icons/situation_types/the_great_steppe.dds" title = LOREM_IPSUM_TITLE desc = LOREM_IPSUM_DESCRIPTION theme = legend @@ -4118,4 +4117,4 @@ debug.1119 = { trigger_event = debug.1117 trigger_event = debug.1118 } -} \ No newline at end of file +} diff --git a/events/travel_events/test_events.txt b/events/travel_events/test_events.txt deleted file mode 100644 index 470c8e6d6..000000000 --- a/events/travel_events/test_events.txt +++ /dev/null @@ -1,107 +0,0 @@ -namespace = travel_destinations - -travel_destinations.1000 = { - type = character_event - title = travel_destinations.1000.t - desc = travel_destinations.1000.desc - theme = travel - #override_background = { reference = fp4_legendary_oasis } - orphan = yes - - left_portrait = { - character = root - animation = happiness - } - - #right_portrait = { - # character = scope:local_character - # animation = toast_goblet - #} - - trigger = { - #is_available_travelling_adult = yes - #is_landed = yes - #is_location_valid_for_travel_event_on_land = yes - #location = { - # has_special_building = yes - #} - } - - immediate = { - #mp_delay_travel_plan = { DAYS = 90 } - random_living_character = { save_scope_as = local_character } - random_province = { - limit = { - has_special_building = yes - NOR = { - has_variable = no_province1 - has_building_or_higher = generic_university - has_building_or_higher = hall_of_heroes_01 - has_building_or_higher = hall_of_heroes_02 - has_building_or_higher = hall_of_heroes_03 - has_building_or_higher = hall_of_heroes_04 - has_building_or_higher = hall_of_heroes_05 - has_building_or_higher = special_greenhouse_01 - has_building_or_higher = holy_site_cathedral_01 - has_building_or_higher = holy_site_mosque_01 - has_building_or_higher = holy_site_fire_temple_01 - has_building_or_higher = holy_site_pagan_grand_temple_01 - has_building_or_higher = holy_site_indian_grand_temple_01 - has_building_or_higher = holy_site_other_grand_temple_01 - has_building_or_higher = event_tower_of_silence_01 - # TGP - has_building_or_higher = holy_site_buddhist_grand_temple_01 - has_building_or_higher = holy_site_japanese_temple_01 - has_building_or_higher = holy_site_chinese_temple_01 - has_building_or_higher = holy_site_se_asia_pagan_temple_01 - } - } - set_variable = { - name = no_province1 - years = 1 - } - save_scope_as = location - } - #location = { - # save_scope_as = location - #} - } - - option = { - name = debug - - stress_impact = { - ambitious = minor_stress_impact_loss - lazy = minor_stress_impact_gain - content = minor_stress_impact_gain - } - - ai_chance = { - base = 100 - modifier = { - factor = 0 - OR = { - has_trait = lazy - has_trait = content - } - } - } - } - - after = { - #mp_resume_travel_plan = yes - #if = { # Cleanup - # limit = { - # root = { - # is_ai = yes - # } - # scope:local_character = { - # has_character_flag = silently_disappear_me - # } - # } - # scope:local_character = { - # silent_disappearance_effect = yes - # } - #} - } -} \ No newline at end of file diff --git a/events/travel_events/travel_events_bp3.txt b/events/travel_events/travel_events_bp3.txt index 6873efd3a..a21d78cba 100644 --- a/events/travel_events/travel_events_bp3.txt +++ b/events/travel_events/travel_events_bp3.txt @@ -174,7 +174,7 @@ travel_events_bp3.1 = { # Seasons of Change current_travel_plan ?= { delay_travel_plan = { days = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -283,7 +283,7 @@ travel_events_bp3.5 = { # Caught Outside option = { name = travel_events_bp3.5.a - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -483,6 +483,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road template = soldier_friend_character culture = scope:grandmaster.culture faith = scope:grandmaster.faith + rite = scope:grandmaster.rite location = root.location after_creation = { @@ -504,6 +505,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road template = soldier_friend_character culture = root.culture faith = root.faith + rite = root.rite gender = root location = root.location save_scope_as = pilgrim_character @@ -532,7 +534,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road add_prestige = minor_prestige_gain } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss paranoid = minor_stress_gain } @@ -576,7 +578,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss paranoid = minor_stress_gain } @@ -662,7 +664,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_gain greedy = minor_stress_impact_loss callous = minor_stress_impact_loss @@ -701,7 +703,7 @@ travel_events_bp3.10 = { # Pilgrims on the Road } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_loss gregarious = minor_stress_gain compassionate = minor_stress_gain @@ -899,6 +901,7 @@ travel_events_bp3.15 = { # The Stories of template = master_bard_camp_officer_template culture = location.culture faith = location.faith + rite = location.rite gender = root location = location save_scope_as = bard_character @@ -907,7 +910,7 @@ travel_events_bp3.15 = { # The Stories of option = { name = travel_events_bp3.15.a - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } custom_tooltip = travel_events_bp3.15.a.tt @@ -1170,6 +1173,7 @@ travel_events_bp3.20 = { # The Guild create_character = { template = merchant_template faith = location.faith + rite = location.rite culture = location.culture gender = root location = location @@ -1192,7 +1196,7 @@ travel_events_bp3.20 = { # The Guild } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_loss } @@ -1214,7 +1218,7 @@ travel_events_bp3.20 = { # The Guild change_county_control = -25 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss arbitrary = minor_stress_impact_loss just = minor_stress_gain @@ -1258,7 +1262,7 @@ travel_events_bp3.20 = { # The Guild add_prestige = minor_prestige_gain } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss } @@ -1378,6 +1382,7 @@ travel_events_bp3.25 = { # The Toils of War template = soldier_friend_character culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender = root employer = scope:liege save_scope_as = soldier_character @@ -1413,7 +1418,7 @@ travel_events_bp3.25 = { # The Toils of War } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss } @@ -1496,7 +1501,7 @@ travel_events_bp3.25 = { # The Toils of War } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = minor_stress_gain shy = medium_stress_gain @@ -1520,7 +1525,7 @@ travel_events_bp3.25 = { # The Toils of War option = { name = travel_events_bp3.25.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss diligent = minor_stress_impact_loss } @@ -1586,6 +1591,7 @@ travel_events_bp3.30 = { # The Mercenaries of template = great_mercenary culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_soldier_female_chance location = root.location save_scope_as = soldier_character @@ -1604,6 +1610,7 @@ travel_events_bp3.30 = { # The Mercenaries of } } } + add_character_flag = temporary_court_position_cost_removal } option = { @@ -1614,8 +1621,8 @@ travel_events_bp3.30 = { # The Mercenaries of levies = { value = 200 multiply = { - min = 1 value = highest_held_title_tier + min = 1 } } location = root.capital_province @@ -1657,7 +1664,7 @@ travel_events_bp3.30 = { # The Mercenaries of scope:soldier_character = { add_to_court_and_entourage_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_gain shy = minor_stress_gain } @@ -1688,27 +1695,21 @@ travel_events_bp3.30 = { # The Mercenaries of max = 100 } - show_as_tooltip = { - if = { - limit = { - is_valid_to_hire_court_position_type = bodyguard_court_position - } - appoint_court_position = { - recipient = scope:soldier_character - court_position = bodyguard_court_position - } - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = master_of_arms_camp_officer - } - appoint_court_position = { - recipient = scope:soldier_character - court_position = master_of_arms_camp_officer - } - } + hidden_effect = { + scope:soldier_character = { add_to_court_and_entourage_effect = yes } + } + if = { + limit = { + is_valid_to_hire_court_position_type = bodyguard_court_position + } + court_position_grant_effect = { POS = bodyguard CANDIDATE = scope:soldier_character EMPLOYER = root } + } + else_if = { + limit = { + is_valid_to_hire_court_position_type = master_of_arms_camp_officer + } + camp_officer_grant_effect = { POS = master_of_arms CANDIDATE = scope:soldier_character EMPLOYER = root } } - custom_tooltip = will_have_excellent_aptitude scope:soldier_character = { add_opinion = { @@ -1718,63 +1719,7 @@ travel_events_bp3.30 = { # The Mercenaries of } } - hidden_effect = { - scope:soldier_character = { add_to_court_and_entourage_effect = yes } - if = { - limit = { - is_valid_to_hire_court_position_type = bodyguard_court_position - any_court_position_holder = { - count <= 1 - has_court_position = bodyguard_court_position - } - } - appoint_court_position = { - recipient = scope:soldier_character - court_position = bodyguard_court_position - } - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = bodyguard_court_position - any_court_position_holder = { - count > 1 - has_court_position = bodyguard_court_position - } - } - add_character_flag = temporary_court_position_cost_removal - replace_court_position = { - recipient = scope:soldier_character - holder = court_position:bodyguard_court_position - court_position = bodyguard_court_position - } - remove_character_flag = temporary_court_position_cost_removal - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = master_of_arms_camp_officer - NOT = { employs_court_position = master_of_arms_camp_officer } - } - appoint_court_position = { - recipient = scope:soldier_character - court_position = master_of_arms_camp_officer - } - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = master_of_arms_camp_officer - employs_court_position = master_of_arms_camp_officer - } - add_character_flag = temporary_court_position_cost_removal - replace_court_position = { - recipient = scope:soldier_character - holder = court_position:master_of_arms_camp_officer - court_position = master_of_arms_camp_officer - } - remove_character_flag = temporary_court_position_cost_removal - } - } - - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_gain shy = minor_stress_gain } @@ -1793,7 +1738,7 @@ travel_events_bp3.30 = { # The Mercenaries of option = { name = travel_events_bp3.30.d - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -1826,7 +1771,7 @@ travel_events_bp3.30 = { # The Mercenaries of } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss wrathful = medium_stress_impact_loss compassionate = minor_stress_gain @@ -1850,17 +1795,16 @@ travel_events_bp3.30 = { # The Mercenaries of after = { mp_resume_travel_plan = yes - if = { - limit = { - OR = { - is_ai = yes - scope:soldier_character != root + scope:soldier_character = { + if = { + limit = { + is_alive = yes + NOT = { is_courtier_of = root } } - } - scope:soldier_character = { - silent_disappearance_ai_effect = yes + silent_disappearance_effect = yes } } + remove_character_flag = temporary_court_position_cost_removal } } @@ -1932,6 +1876,7 @@ travel_events_bp3.35 = { # The Teacher of Knights template = old_knight_teacher culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_soldier_female_chance location = root.location save_scope_as = soldier_character @@ -1998,7 +1943,7 @@ travel_events_bp3.35 = { # The Teacher of Knights custom_tooltip = travel_events_bp3.35.a.tt } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_loss paranoid = medium_stress_gain } @@ -2054,7 +1999,7 @@ travel_events_bp3.35 = { # The Teacher of Knights left_icon = root add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } if = { @@ -2088,7 +2033,7 @@ travel_events_bp3.35 = { # The Teacher of Knights } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = minor_stress_gain } @@ -2119,7 +2064,7 @@ travel_events_bp3.35 = { # The Teacher of Knights } text = travel_events_bp3.35.c.home } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss gregarious = minor_stress_impact_loss } @@ -2230,6 +2175,7 @@ travel_events_bp3.40 = { # The Local Champion template = wrestler_character culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_soldier_female_chance location = root.location save_scope_as = soldier_character @@ -2292,7 +2238,7 @@ travel_events_bp3.40 = { # The Local Champion left_icon = root remove_short_term_gold = tiny_gold_value - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain ambitious = minor_stress_gain } @@ -2300,7 +2246,7 @@ travel_events_bp3.40 = { # The Local Champion } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_gain } @@ -2406,7 +2352,7 @@ travel_events_bp3.40 = { # The Local Champion remove_short_term_gold = tiny_gold_value scope:challenger_character = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain ambitious = minor_stress_gain } @@ -2478,7 +2424,7 @@ travel_events_bp3.45 = { # The Wandering Knight } bp3_travel_event_default_trigger = yes location = { has_holding_type = castle_holding } - has_government = feudal_government + government_has_flag = government_is_feudal } immediate = { @@ -2488,6 +2434,7 @@ travel_events_bp3.45 = { # The Wandering Knight template = wandering_knight_character culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_soldier_female_chance location = root.location save_scope_as = knight_character @@ -2527,7 +2474,7 @@ travel_events_bp3.45 = { # The Wandering Knight add_to_court_and_entourage_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_gain shy = minor_stress_gain } @@ -2618,7 +2565,7 @@ travel_events_bp3.45 = { # The Wandering Knight } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss shy = minor_stress_gain } @@ -2696,6 +2643,7 @@ travel_events_bp3.50 = { # A Band of Two age = { 6 10 } culture = root.location.culture faith = root.location.faith + rite = root.location.rite location = root.location save_scope_as = child_character @@ -2735,7 +2683,7 @@ travel_events_bp3.50 = { # A Band of Two } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_loss greedy = minor_stress_gain } @@ -2764,7 +2712,7 @@ travel_events_bp3.50 = { # A Band of Two years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss } @@ -2826,7 +2774,7 @@ travel_events_bp3.50 = { # A Band of Two } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss sadistic = minor_stress_impact_loss compassionate = major_stress_gain @@ -2972,6 +2920,7 @@ travel_events_bp3.55 = { # Traveling Traders create_character = { template = merchant_template faith = scope:republic_ruler.faith + rite = scope:republic_ruler.rite culture = scope:republic_ruler.culture gender = root location = location @@ -3005,7 +2954,7 @@ travel_events_bp3.55 = { # Traveling Traders } } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss greedy = minor_stress_gain } @@ -3082,7 +3031,7 @@ travel_events_bp3.55 = { # Traveling Traders } } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_gain greedy = minor_stress_impact_loss } @@ -3103,7 +3052,7 @@ travel_events_bp3.55 = { # Traveling Traders option = { name = travel_events_bp3.55.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -3190,6 +3139,7 @@ travel_events_bp3.60 = { # A Small Deal create_character = { template = merchant_template faith = root.location.faith + rite = root.location.rite culture = root.location.culture gender = root location = location @@ -3301,6 +3251,7 @@ travel_events_bp3.65 = { # Purse Pursuit age = { 16 20 } dynasty = none faith = root.location.faith + rite = root.location.rite culture = root.location.culture location = root.location random_traits_list = { @@ -3360,7 +3311,7 @@ travel_events_bp3.65 = { # Purse Pursuit } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = major_stress_gain } @@ -3390,7 +3341,7 @@ travel_events_bp3.65 = { # Purse Pursuit } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = medium_stress_impact_loss callous = minor_stress_impact_loss sadistic = minor_stress_impact_loss @@ -3421,7 +3372,7 @@ travel_events_bp3.65 = { # Purse Pursuit add_gold = scope:gold_value - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss compassionate = minor_stress_impact_loss forgiving = minor_stress_impact_loss @@ -3549,11 +3500,11 @@ travel_events_bp3.70 = { # Festival template = merchant_template age = { 20 25 } faith = root.location.faith + rite = root.location.rite culture = root.location.culture opposite_gender = root location = location save_scope_as = local_character - save_scope_as = dancing_partner } } @@ -3597,7 +3548,7 @@ travel_events_bp3.70 = { # Festival option = { name = travel_events_bp3.70.b - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss } @@ -3647,12 +3598,8 @@ travel_events_bp3.75 = { # Dreams Brewing } OR = { root.culture = { has_cultural_parameter = allows_brewery } - root.faith = { - OR = { - this = faith:roman_catholic - has_doctrine_parameter = allows_brewery - } - } + root.faith = faith:roman_catholic + root.rite = { rite_has_parameter = allows_brewery } } OR = { any_sub_realm_barony = { @@ -3669,11 +3616,9 @@ travel_events_bp3.75 = { # Dreams Brewing has_holding_type = church_holding NOT = { has_building_or_higher = breweries_01 } } - root.faith = { - OR = { - has_doctrine_parameter = allows_brewery - this = faith:roman_catholic - } + OR = { + root.faith = faith:roman_catholic + root.rite = { rite_has_parameter = allows_brewery } } } } @@ -3699,11 +3644,9 @@ travel_events_bp3.75 = { # Dreams Brewing if = { limit = { NOT = { exists = scope:barony } - faith = { - OR = { - has_doctrine_parameter = allows_brewery - this = faith:roman_catholic - } + OR = { + faith = faith:roman_catholic + rite = { rite_has_parameter = allows_brewery } } } random_sub_realm_barony = { @@ -3720,11 +3663,9 @@ travel_events_bp3.75 = { # Dreams Brewing if = { limit = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - faith = { - OR = { - this = faith:roman_catholic - has_doctrine_parameter = allows_brewery - } + OR = { + faith = faith:roman_catholic + rite = { rite_has_parameter = allows_brewery } } } create_character = { @@ -3741,6 +3682,7 @@ travel_events_bp3.75 = { # Dreams Brewing age = { 18 28 } culture = root.location.culture faith = root.faith + rite = root.rite gender_female_chance = root_faith_clergy_gender_female_chance random_traits_list = { @@ -3844,7 +3786,7 @@ travel_events_bp3.75 = { # Dreams Brewing option = { name = travel_events_bp3.75.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -3855,7 +3797,7 @@ travel_events_bp3.75 = { # Dreams Brewing after = { mp_resume_travel_plan = yes - stress_impact = { + stress_and_fulfillment_impact = { drunkard = medium_stress_impact_loss } if = { @@ -3967,17 +3909,15 @@ travel_events_bp3.80 = { # A Life of Service save_temporary_scope_as = monk_character_temp } } - faith = { - OR = { - has_doctrine_parameter = take_vows_active - AND = { - any_faith_holy_order = { } - scope:monk_character_temp = { - is_adult = yes - OR = { - has_trait = education_martial - prowess > 10 - } + OR = { + rite = { rite_has_parameter = take_vows_active } + AND = { + faith = { any_faith_holy_order = { } } + scope:monk_character_temp = { + is_adult = yes + OR = { + has_trait = education_martial + prowess > 10 } } } @@ -4030,7 +3970,7 @@ travel_events_bp3.80 = { # A Life of Service save_scope_as = actor scope:monk_character = { save_scope_as = recipient - send_child_to_holy_order_effect = { GRANDMASTER = grandmaster } + send_child_to_holy_order_effect = { GRANDMASTER = scope:grandmaster } } } else = { @@ -4047,7 +3987,7 @@ travel_events_bp3.80 = { # A Life of Service } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss content = minor_stress_impact_loss cynical = minor_stress_gain @@ -4080,7 +4020,7 @@ travel_events_bp3.80 = { # A Life of Service } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_gain } @@ -4213,7 +4153,7 @@ travel_events_bp3.85 = { # Brewers of Fame } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss humble = minor_stress_gain } @@ -4233,7 +4173,7 @@ travel_events_bp3.85 = { # Brewers of Fame years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_gain generous = minor_stress_impact_loss } @@ -4254,7 +4194,7 @@ travel_events_bp3.85 = { # Brewers of Fame option = { name = travel_events_bp3.85.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss content = minor_stress_impact_loss } @@ -4270,7 +4210,7 @@ travel_events_bp3.85 = { # Brewers of Fame after = { mp_resume_travel_plan = yes - stress_impact = { + stress_and_fulfillment_impact = { drunkard = minor_stress_impact_loss } } @@ -4321,6 +4261,7 @@ travel_events_bp3.90 = { # Patron of the template = simple_priest_character_template culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_faith_clergy_gender_female_chance employer = root.location.barony.holder @@ -4442,9 +4383,9 @@ travel_events_bp3.95 = { # A Pilgrim's Tale faith = root.faith barony = { is_holy_site = no } } + rite = { NOT = { rite_has_doctrine = doctrine_pilgrimage_forbidden } } faith = { - NOT = { has_doctrine = doctrine_pilgrimage_forbidden } - any_holy_site = { + any_holy_site_barony = { unvisited_holy_site_trigger = yes } } @@ -4453,7 +4394,7 @@ travel_events_bp3.95 = { # A Pilgrim's Tale immediate = { mp_delay_travel_plan = { DAYS = 90 } faith = { - random_holy_site = { + random_holy_site_barony = { limit = { unvisited_holy_site_trigger = yes } @@ -4463,6 +4404,7 @@ travel_events_bp3.95 = { # A Pilgrim's Tale create_character = { template = merchant_template faith = root.faith + rite = root.rite culture = root.location.culture gender = root location = root.location @@ -4495,7 +4437,7 @@ travel_events_bp3.95 = { # A Pilgrim's Tale target = scope:unvisited_holy_site } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss } } @@ -4503,7 +4445,7 @@ travel_events_bp3.95 = { # A Pilgrim's Tale option = { name = travel_events_bp3.95.b - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } } @@ -4617,7 +4559,7 @@ travel_events_bp3.100 = { # Land of Milk and... Fish? domicile ?= { change_provisions = miniscule_provisions_gain } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss content = minor_stress_impact_loss lazy = minor_stress_impact_loss @@ -4648,7 +4590,7 @@ travel_events_bp3.100 = { # Land of Milk and... Fish? domicile ?= { change_provisions = minor_provisions_gain } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss content = minor_stress_impact_loss lazy = minor_stress_impact_loss @@ -4677,7 +4619,7 @@ travel_events_bp3.100 = { # Land of Milk and... Fish? add_destination_progress = { days = 3 } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_loss } @@ -4731,7 +4673,7 @@ scripted_effect bp3_skill_learning_duel_effect = { left_icon = root right_icon = scope:lifestyle_character - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain } } @@ -4994,7 +4936,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = diplomacy } root = { - stress_impact = { + stress_and_fulfillment_impact = { drunkard = minor_stress_impact_loss content = minor_stress_impact_loss gregarious = minor_stress_impact_loss @@ -5007,7 +4949,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = prowess } root = { - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss diligent = minor_stress_impact_loss ambitious = minor_stress_impact_loss @@ -5020,7 +4962,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = prowess } root = { - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss greedy = minor_stress_impact_loss ambitious = minor_stress_impact_loss @@ -5033,7 +4975,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = learning } root = { - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_loss eccentric = minor_stress_impact_loss cynical = minor_stress_impact_loss @@ -5046,7 +4988,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = learning } root = { - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_loss compassionate = minor_stress_impact_loss humble = minor_stress_impact_loss @@ -5059,7 +5001,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = learning } root = { - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_loss calm = minor_stress_impact_loss content = minor_stress_impact_loss @@ -5072,7 +5014,7 @@ travel_events_bp3.105 = { # A Woman/Man of Unusual Skills SKILL = stewardship } root = { - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_loss calm = minor_stress_impact_loss diligent = minor_stress_impact_loss @@ -5262,7 +5204,7 @@ travel_events_bp3.110 = { # Heart-to-Heart OPINION = default_friend_opinion } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } @@ -5282,7 +5224,7 @@ travel_events_bp3.110 = { # Heart-to-Heart name = travel_events_bp3.110.b flavor = travel_events_bp3.110.b.flavor - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss } @@ -5448,7 +5390,7 @@ travel_events_bp3.115 = { # Night by the Campfire campfire_friendliness_effect = { VALUE = 5 } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss honest = minor_stress_impact_loss shy = minor_stress_gain @@ -5510,7 +5452,7 @@ travel_events_bp3.115 = { # Night by the Campfire } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss honest = minor_stress_gain shy = minor_stress_gain @@ -5541,7 +5483,7 @@ travel_events_bp3.115 = { # Night by the Campfire OPINION = default_friend_opinion } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } @@ -5613,6 +5555,7 @@ travel_events_bp3.120 = { # The Wrecked Boat template = merchant_template location = root.location faith = root.location.faith + rite = root.location.rite culture = root.location.culture after_creation = { @@ -5639,7 +5582,7 @@ travel_events_bp3.120 = { # The Wrecked Boat option = { name = travel_events_bp3.120.a - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss compassionate = medium_stress_impact_loss generous = minor_stress_impact_loss diff --git a/events/travel_events/travel_events_james.txt b/events/travel_events/travel_events_james.txt index 928502c06..ea3e1ca11 100644 --- a/events/travel_events/travel_events_james.txt +++ b/events/travel_events/travel_events_james.txt @@ -82,6 +82,7 @@ travel_events.4000 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = mystic_scope after_creation = { @@ -129,7 +130,7 @@ travel_events.4000 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain cynical = minor_stress_impact_gain } @@ -145,14 +146,14 @@ travel_events.4000 = { option = { trigger = { OR = { - root.faith = { + root.rite = { NOR = { - has_doctrine_parameter = witchcraft_illegal - has_doctrine_parameter = witchcraft_shunned + rite_has_parameter = witchcraft_illegal + rite_has_parameter = witchcraft_shunned } } is_witch_trigger = yes - root.faith = { trait_is_virtue = lifestyle_mystic } + root.rite = { trait_is_virtue_rite = lifestyle_mystic } NOT = { scope:mystic_scope = { has_trait = witch } } } NOR = { @@ -176,10 +177,21 @@ travel_events.4000 = { value = lifestyle_mystic_xp_gain_minor_value } } - stress_impact = { - lifestyle_mystic = minor_stress_impact_loss - paranoid = medium_stress_impact_gain - cynical = medium_stress_impact_gain + if = { + limit = { scope:mystic_scope = { has_trait = witch } } + pam_witch_embrace_fulfillment_effect = yes + stress_impact = { + lifestyle_mystic = minor_stress_impact_loss + paranoid = medium_stress_impact_gain + cynical = medium_stress_impact_gain + } + } + else = { + stress_and_fulfillment_impact = { + lifestyle_mystic = minor_stress_impact_loss + paranoid = medium_stress_impact_gain + cynical = medium_stress_impact_gain + } } ai_chance = { base = 100 @@ -192,13 +204,13 @@ travel_events.4000 = { } modifier = { add = -50 - faith = { + rite = { OR = { - has_doctrine_parameter = witchcraft_illegal - has_doctrine_parameter = witchcraft_shunned + rite_has_parameter = witchcraft_illegal + rite_has_parameter = witchcraft_shunned } OR = { - NOT = { trait_is_virtue = lifestyle_mystic } + NOT = { trait_is_virtue_rite = lifestyle_mystic } scope:mystic_scope = { has_trait = witch } } } @@ -216,7 +228,7 @@ travel_events.4000 = { #Pass them by option = { name = travel_events.4000.c - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain zealous = minor_stress_impact_gain gregarious = minor_stress_impact_gain @@ -232,16 +244,14 @@ travel_events.4000 = { option = { name = travel_events.4000.d trigger = { - root.faith = { - OR = { - has_doctrine_parameter = witchcraft_illegal - has_doctrine_parameter = witchcraft_shunned - } + OR = { + root.rite = { rite_has_parameter = witchcraft_illegal } + root.rite = { rite_has_parameter = witchcraft_shunned } } NOT = { is_witch_trigger = yes } OR = { NOT = { - root.faith = { trait_is_virtue = lifestyle_mystic } + root.rite = { trait_is_virtue_rite = lifestyle_mystic } } scope:mystic_scope = { has_trait = witch } } @@ -260,12 +270,22 @@ travel_events.4000 = { } add_piety = minor_piety_gain add_dread = minor_dread_gain - stress_impact = { - base = minor_stress_impact_gain - sadistic = medium_stress_impact_loss - zealous = minor_stress_impact_loss - wrathful = minor_stress_impact_loss - compassionate = major_stress_impact_gain + if = { + limit = { scope:mystic_scope = { has_trait = witch } } + pam_witch_justice_fulfillment_effect = yes + stress_and_fulfillment_impact = { + base = minor_stress_impact_gain + compassionate = major_stress_impact_gain + } + } + else = { + stress_and_fulfillment_impact = { + base = minor_stress_impact_gain + sadistic = medium_stress_impact_loss + zealous = minor_stress_impact_loss + wrathful = minor_stress_impact_loss + compassionate = major_stress_impact_gain + } } ai_chance = { base = 100 @@ -318,6 +338,7 @@ travel_events.4001 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = loyal_fan_scope after_creation = { @@ -342,7 +363,7 @@ travel_events.4001 = { root.current_travel_plan = { add_companion = scope:loyal_fan_scope } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss paranoid = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -362,7 +383,7 @@ travel_events.4001 = { option = { name = travel_events.4001.b remove_short_term_gold = tiny_gold_value - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss profligate = minor_stress_impact_loss greedy = medium_stress_impact_gain @@ -392,7 +413,7 @@ travel_events.4001 = { scope:loyal_fan_scope = { increase_wounds_no_death_effect = { REASON = fight } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain sadistic = minor_stress_impact_loss callous = minor_stress_impact_loss @@ -490,6 +511,7 @@ travel_events.4002 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = local_beauty_scope after_creation = { @@ -528,7 +550,7 @@ travel_events.4002 = { add_stress = medium_stress_gain } else = { - stress_impact = { + stress_and_fulfillment_impact = { lustful = medium_stress_impact_loss rakish = medium_stress_impact_loss seducer = medium_stress_impact_loss @@ -580,7 +602,7 @@ travel_events.4002 = { add_companion = scope:local_beauty_scope } make_concubine = scope:local_beauty_scope - stress_impact = { + stress_and_fulfillment_impact = { lustful = medium_stress_impact_loss paranoid = medium_stress_impact_gain chaste = medium_stress_impact_gain @@ -623,7 +645,7 @@ travel_events.4002 = { marry = scope:local_beauty_scope } else = { marry_matrilineal = scope:local_beauty_scope } - stress_impact = { + stress_and_fulfillment_impact = { eccentric = major_stress_impact_loss lustful = medium_stress_impact_loss paranoid = medium_stress_impact_gain @@ -649,14 +671,9 @@ travel_events.4002 = { option = { name = travel_events.4002.d scope:local_beauty_scope = { - if = { - limit = { - root = { is_ai = yes } - } - silent_disappearance_effect = yes - } + silent_disappearance_ai_if_created_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { lustful = medium_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -673,7 +690,10 @@ travel_events.4002 = { } after = { scope:local_beauty_scope = { - silent_disappearance_ai_if_created_effect = yes + if = { + limit = { is_alive = yes } + remove_character_flag = created + } } } } @@ -809,6 +829,7 @@ travel_events.4003 = { location = root.location culture = scope:pirate_county_scope.culture faith = scope:pirate_county_scope.faith + rite = scope:pirate_county_scope.rite #Set up the scope save_scope_as = viking_scope after_creation = { @@ -840,6 +861,7 @@ travel_events.4003 = { location = root.location culture = scope:pirate_county_scope.culture faith = scope:pirate_county_scope.faith + rite = scope:pirate_county_scope.rite #Set up the scope save_scope_as = viking_scope after_creation = { @@ -853,6 +875,7 @@ travel_events.4003 = { location = root.location culture = root.culture faith = root.faith + rite = root.rite #Set up the scope save_scope_as = viking_scope after_creation = { @@ -944,7 +967,7 @@ travel_events.4003 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { calm = medium_stress_impact_gain craven = major_stress_impact_gain } @@ -963,7 +986,7 @@ travel_events.4003 = { option = { name = travel_events.4003.b remove_short_term_gold = medium_gold_value - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain wrathful = medium_stress_impact_gain brave = medium_stress_impact_gain @@ -1035,7 +1058,7 @@ travel_events.4003 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain brave = medium_stress_impact_gain } @@ -1111,7 +1134,7 @@ travel_events.4003 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -1183,6 +1206,7 @@ travel_events.4004 = { location = root.location culture = scope:fishermen_county_scope.culture faith = scope:fishermen_county_scope.faith + rite = scope:fishermen_county_scope.rite #Set up the scope save_scope_as = fisherman_scope after_creation = { @@ -1200,7 +1224,7 @@ travel_events.4004 = { months = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain arrogant = medium_stress_impact_gain wrathful = medium_stress_impact_gain @@ -1254,7 +1278,7 @@ travel_events.4004 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss arrogant = minor_stress_impact_loss wrathful = minor_stress_impact_loss @@ -1291,7 +1315,7 @@ travel_events.4004 = { # Just go by without bothering the fishermen option = { name = travel_events.4004.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } ai_chance = { @@ -1378,6 +1402,7 @@ travel_events.4005 = { location = root.location culture = scope:merchant_base_scope.culture faith = scope:merchant_base_scope.faith + rite = scope:merchant_base_scope.rite #Set up the scope save_scope_as = merchant_character_scope after_creation = { @@ -1478,7 +1503,7 @@ travel_events.4005 = { remove_short_term_gold = medium_gold_value } scope:merchant_artifact_scope = { set_owner = root } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_loss greedy = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -1530,7 +1555,7 @@ travel_events.4005 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss callous = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -1563,7 +1588,7 @@ travel_events.4005 = { # Just go by without buying anything option = { name = travel_events.4005.c - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -1582,16 +1607,8 @@ travel_events.4005 = { } destroy_artifact = scope:merchant_artifact_scope } - if = { - limit = { is_ai = yes } - scope:merchant_character_scope = { - if = { - limit = { - root = { is_ai = yes } - } - silent_disappearance_effect = yes - } - } + scope:merchant_character_scope = { + silent_disappearance_ai_if_created_effect = yes } } } @@ -1680,13 +1697,15 @@ travel_events.4006 = { years = 2 } } - change_current_weight = -10 + hidden_effect = { + change_current_weight = -10 + } progress_towards_friend_effect = { REASON = friend_listened_to_advice CHARACTER = scope:superstituous_caravan_member OPINION = default_friend_opinion } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain vengeful = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -1887,7 +1906,7 @@ travel_events.4007 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain brave = medium_stress_impact_gain } @@ -1905,7 +1924,7 @@ travel_events.4007 = { # Take the helm yourself! option = { name = travel_events.4007.b - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss craven = medium_stress_impact_gain } @@ -1993,7 +2012,7 @@ travel_events.4007 = { } } add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain brave = medium_stress_impact_gain } @@ -2087,7 +2106,7 @@ travel_events.4008 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain paranoid = medium_stress_impact_gain } @@ -2105,7 +2124,7 @@ travel_events.4008 = { # Ignore it option = { name = travel_events.4008.b - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain brave = medium_stress_impact_gain curious = medium_stress_impact_gain @@ -2209,6 +2228,7 @@ travel_events.4011 = { location = root.location culture = scope:nearby_coast_scope.culture faith = scope:nearby_coast_scope.faith + rite = scope:nearby_coast_scope.rite #Set up the scope save_scope_as = castaway_scope after_creation = { @@ -2221,7 +2241,7 @@ travel_events.4011 = { name = travel_events.4011.a add_piety = minor_piety_value add_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain callous = minor_stress_impact_gain sadistic = medium_stress_impact_gain @@ -2235,7 +2255,7 @@ travel_events.4011 = { add_companion = scope:castaway_scope } add_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_gain callous = minor_stress_impact_gain paranoid = medium_stress_impact_gain @@ -2245,7 +2265,7 @@ travel_events.4011 = { # Abandon them there option = { name = travel_events.4011.c - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss paranoid = minor_stress_impact_loss sadistic = medium_stress_impact_loss @@ -2301,6 +2321,7 @@ travel_events.4012 = { location = root.location culture = root.location.county.culture # They should look like a local faith = root.faith + rite = root.rite dynasty = none #Set up the scope save_scope_as = feral_child_scope @@ -2378,7 +2399,7 @@ travel_events.4012 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain callous = medium_stress_impact_gain } @@ -2408,7 +2429,7 @@ travel_events.4012 = { silent_disappearance_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain } ai_chance = { @@ -2466,7 +2487,7 @@ travel_events.4012 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain sadistic = medium_stress_impact_loss zealous = minor_stress_impact_loss @@ -2525,46 +2546,23 @@ travel_events.4013 = { # Adopt them as your child option = { name = travel_events.4013.a - if = { - limit = { - exists = dynasty - dynasty.dynast = root - NOT = { - culture = { - has_cultural_tradition = tradition_tgp_japanese_houses - } - } + trigger = { + NOT = { + has_game_rule = no_adoption } - dynasty = { add_dynasty_prestige = major_dynasty_prestige_loss } } - else_if = { - limit = { - NOT = { - culture = { - has_cultural_tradition = tradition_tgp_japanese_houses - } - } - } - add_prestige = massive_prestige_loss + adopt_effect = { + CHILD = scope:feral_child_scope + ADOPTER = root } if = { - limit = { - is_male = yes + limit = { NOT = { has_relation_friend = scope:feral_child_scope } } + set_relation_friend = { + reason = friend_adopted + target = scope:feral_child_scope } - scope:feral_child_scope = { set_father = root } } - else = { - scope:feral_child_scope = { set_mother = root } - } - if = { - limit = { exists = house } - scope:feral_child_scope = { set_house = root.house } - } - set_relation_friend = { - reason = friend_adopted - target = scope:feral_child_scope - } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss paranoid = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -2588,7 +2586,7 @@ travel_events.4013 = { name = travel_events.4013.b add_learning_lifestyle_xp = massive_lifestyle_xp add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -2656,7 +2654,7 @@ travel_events.4014 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -2694,7 +2692,7 @@ travel_events.4014 = { silent_disappearance_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_gain humble = minor_stress_impact_gain compassionate = minor_stress_impact_gain @@ -2809,7 +2807,6 @@ scripted_trigger 4016_is_hot_climate_trigger = { geographical_region = world_middle_east geographical_region = world_india geographical_region = world_africa - geographical_region = world_burma geographical_region = world_asia_southeast AND = { OR = { @@ -2845,7 +2842,8 @@ scripted_trigger 4016_is_cold_climate_trigger = { # Explicitly looking for place geographical_region = world_middle_east geographical_region = world_india geographical_region = world_africa - geographical_region = world_burma + geographical_region = world_asia_southeast + geographical_region = world_asia_china } } @@ -2938,7 +2936,7 @@ travel_events.4016 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_gain humble = minor_stress_impact_gain } @@ -2993,7 +2991,7 @@ travel_events.4016 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_gain humble = minor_stress_impact_gain honest = medium_stress_impact_gain @@ -3071,6 +3069,7 @@ travel_events.4017 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = warrior_scope after_creation = { @@ -3103,7 +3102,7 @@ travel_events.4017 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain greedy = medium_stress_impact_gain } @@ -3167,7 +3166,7 @@ travel_events.4017 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain shy = medium_stress_impact_gain generous = medium_stress_impact_gain @@ -3199,7 +3198,7 @@ travel_events.4017 = { modifier = cheaper_merc_contracts years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain generous = medium_stress_impact_gain } @@ -3218,7 +3217,7 @@ travel_events.4017 = { # Move on without hiring their services option = { name = travel_events.4017.d - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain generous = medium_stress_impact_gain arrogant = medium_stress_impact_gain @@ -3296,6 +3295,7 @@ travel_events.4018 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = mystic_scope after_creation = { @@ -3323,7 +3323,7 @@ travel_events.4018 = { death_reason = death_burned_witch } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss callous = medium_stress_impact_loss zealous = minor_stress_impact_loss @@ -3376,7 +3376,7 @@ travel_events.4018 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain cynical = medium_stress_impact_gain } @@ -3415,7 +3415,7 @@ travel_events.4018 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_loss zealous = major_stress_impact_gain arrogant = medium_stress_impact_gain @@ -3429,7 +3429,7 @@ travel_events.4018 = { # Pass them by option = { name = travel_events.4018.c - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -3555,7 +3555,7 @@ travel_events.4019 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { gluttonous = medium_stress_impact_loss comfort_eater = medium_stress_impact_loss humble = medium_stress_impact_gain @@ -3589,7 +3589,7 @@ travel_events.4019 = { modifier = respect_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { inappetetic = minor_stress_impact_loss temperate = minor_stress_impact_loss gluttonous = medium_stress_impact_gain @@ -3614,13 +3614,13 @@ travel_events.4019 = { root.location.culture = { has_cultural_tradition = tradition_culinary_art } - has_trait = scholar + has_trait = erudite } add_character_modifier = { modifier = exotic_recipe_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain } ai_chance = { @@ -3666,6 +3666,7 @@ travel_events.4020 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = strong_believer_scope after_creation = { @@ -3704,7 +3705,7 @@ travel_events.4020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain humble = medium_stress_impact_gain } @@ -3724,7 +3725,7 @@ travel_events.4020 = { option = { name = travel_events.4020.b remove_short_term_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain greedy = medium_stress_impact_gain zealous = major_stress_impact_gain @@ -3763,7 +3764,7 @@ travel_events.4020 = { death_reason = death_burned_witch } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss callous = medium_stress_impact_loss zealous = medium_stress_impact_loss @@ -3866,6 +3867,7 @@ travel_events.4021 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = sacrificed_person_scope after_creation = { @@ -3910,7 +3912,7 @@ travel_events.4021 = { target = root } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_gain callous = medium_stress_impact_gain greedy = medium_stress_impact_gain @@ -3957,7 +3959,7 @@ travel_events.4021 = { target = root } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = medium_stress_impact_loss sadistic = medium_stress_impact_loss callous = medium_stress_impact_loss @@ -3997,7 +3999,7 @@ travel_events.4021 = { death_reason = death_sacrificed_to_gods } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss compassionate = medium_stress_impact_gain just = medium_stress_impact_gain @@ -4017,8 +4019,13 @@ travel_events.4021 = { } after = { scope:sacrificed_person_scope ?= { - remove_character_flag = is_naked - silent_disappearance_ai_if_created_effect = yes + if = { + limit = { + is_alive = yes + } + remove_character_flag = is_naked + silent_disappearance_ai_if_created_effect = yes + } } } } @@ -4034,14 +4041,14 @@ travel_events.4022 = { triggered_animation = { trigger = { has_trait = zealous - NOT = { faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } } + NOT = { rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } } animation = anger } triggered_animation = { trigger = { has_trait = zealous - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } animation = admiration } @@ -4058,8 +4065,9 @@ travel_events.4022 = { is_location_valid_for_travel_event_on_land = yes location = { county = { + holder != root faith != root.faith - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } } } @@ -4074,14 +4082,14 @@ travel_events.4022 = { triggered_desc = { trigger = { has_trait = zealous - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } desc = travel_events.4022.a.not_so_different } triggered_desc = { trigger = { has_trait = zealous - NOT = { faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } } + NOT = { rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } } desc = travel_events.4022.a.ignore_heretics } @@ -4089,20 +4097,20 @@ travel_events.4022 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_gain } if = { limit = { - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss } } else = { - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } @@ -4129,7 +4137,7 @@ travel_events.4022 = { has_trait = sadistic AND = { has_trait = zealous - NOT = { faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } } + NOT = { rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } } } } @@ -4140,7 +4148,7 @@ travel_events.4022 = { option = { name = travel_events.4022.b trigger = { - NOT = { faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } } + NOT = { rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } } duel = { skill = prowess @@ -4214,7 +4222,7 @@ travel_events.4022 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss zealous = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -4244,7 +4252,7 @@ travel_events.4022 = { name = travel_events.4022.c if = { limit = { - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } } add_piety = medium_piety_gain } @@ -4269,7 +4277,7 @@ travel_events.4022 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { curious = minor_stress_impact_loss gregarious = minor_stress_impact_loss shy = medium_stress_impact_loss @@ -4281,7 +4289,7 @@ travel_events.4022 = { OR = { has_trait = shy AND = { - faith = { has_doctrine_parameter = believes_in_harmony_with_nature_invisible } + rite = { rite_has_parameter = believes_in_harmony_with_nature_invisible } has_trait = zealous } } @@ -4370,7 +4378,7 @@ travel_events.4023 = { scope:prester_john_scope = { trigger_event = travel_events.4024 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain cynical = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -4404,7 +4412,7 @@ travel_events.4023 = { trigger_event = travel_events.4025 } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain cynical = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -4440,7 +4448,7 @@ travel_events.4023 = { } } add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss arrogant = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -4462,7 +4470,7 @@ travel_events.4023 = { option = { name = travel_events.4023.d - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain curious = medium_stress_impact_gain gregarious = medium_stress_impact_gain @@ -4512,7 +4520,7 @@ travel_events.4024 = { scope:foreign_visitor = { trigger_event = travel_events.4026 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain cynical = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -4570,7 +4578,7 @@ travel_events.4024 = { trigger_event = travel_events.4027 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss arrogant = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -4608,7 +4616,7 @@ travel_events.4024 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss arrogant = minor_stress_impact_loss gregarious = medium_stress_impact_gain @@ -4642,7 +4650,7 @@ travel_events.4024 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain curious = medium_stress_impact_gain gregarious = medium_stress_impact_gain @@ -4726,7 +4734,7 @@ travel_events.4025 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss compassionate = medium_stress_impact_gain cynical = medium_stress_impact_gain @@ -4759,7 +4767,7 @@ travel_events.4025 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_impact_gain } ai_chance = { @@ -4802,7 +4810,7 @@ travel_events.4026 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain } ai_chance = { @@ -4828,7 +4836,7 @@ travel_events.4026 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_impact_gain } ai_chance = { @@ -4971,8 +4979,8 @@ travel_events.4028 = { } } } - stress_impact = { - scholar = medium_stress_impact_loss + stress_and_fulfillment_impact = { + erudite = medium_stress_impact_loss dull = medium_stress_impact_gain lazy = medium_stress_impact_gain zealous = medium_stress_impact_gain @@ -5002,7 +5010,7 @@ travel_events.4028 = { else = { add_piety = minor_piety_gain } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss zealous = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -5027,11 +5035,11 @@ travel_events.4028 = { # Just pass by option = { name = travel_events.4028.c - stress_impact = { + stress_and_fulfillment_impact = { curious = minor_stress_impact_gain zealous = minor_stress_impact_gain sadistic = medium_stress_impact_gain - scholar = medium_stress_impact_gain + erudite = medium_stress_impact_gain } ai_chance = { base = 100 @@ -5041,7 +5049,7 @@ travel_events.4028 = { has_trait = curious has_trait = zealous has_trait = sadistic - has_trait = scholar + has_trait = erudite } } } @@ -5104,6 +5112,7 @@ travel_events.4029 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = brainless_character after_creation = { @@ -5129,7 +5138,7 @@ travel_events.4029 = { name = travel_events.4029.a custom_tooltip = brainless_may_reward_you_tt trigger_event = travel_events.4030 - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss paranoid = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -5158,7 +5167,7 @@ travel_events.4029 = { IMPRISONER = root } add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss sadistic = minor_stress_impact_loss compassionate = medium_stress_impact_gain @@ -5196,7 +5205,7 @@ travel_events.4029 = { silent_disappearance_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain just = medium_stress_impact_gain } @@ -5268,7 +5277,7 @@ travel_events.4030 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain shy = medium_stress_impact_gain @@ -5309,12 +5318,12 @@ travel_events.4030 = { if = { limit = { NOT = { # We currently don't have any doctrines that do this, but good to future-proof - root.faith = { trait_is_virtue = greedy } + root.rite = { trait_is_virtue_rite = greedy } } } add_piety = minor_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -5334,7 +5343,7 @@ travel_events.4030 = { option = { name = travel_events.4030.c add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -5422,6 +5431,7 @@ travel_events.4031 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = heartless_knight_scope after_creation = { @@ -5449,7 +5459,7 @@ travel_events.4031 = { type = favor_hook target = scope:heartless_knight_scope } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain generous = medium_stress_impact_gain @@ -5512,7 +5522,7 @@ travel_events.4031 = { POS = bodyguard } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain paranoid = medium_stress_impact_gain @@ -5544,7 +5554,7 @@ travel_events.4031 = { has_trait = sadistic } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain just = minor_stress_impact_gain forgiving = medium_stress_impact_gain @@ -5552,7 +5562,7 @@ travel_events.4031 = { } } else = { - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss compassionate = medium_stress_impact_gain @@ -5634,6 +5644,7 @@ travel_events.4032 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = cowardly_knight_scope after_creation = { @@ -5720,7 +5731,7 @@ travel_events.4032 = { pious_type_option_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain brave = minor_stress_impact_gain @@ -5802,7 +5813,7 @@ travel_events.4032 = { pious_type_option_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { craven = major_stress_impact_gain callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -5832,7 +5843,7 @@ travel_events.4032 = { death_reason = death_wild_animal } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss craven = medium_stress_impact_loss @@ -5903,15 +5914,13 @@ travel_events.4033 = { is_playable_character = yes is_witch_trigger = no is_location_valid_for_travel_event_on_land = yes - location = { - county = { - faith = { has_doctrine_parameter = witchcraft_accepted } + location.county.rite = { rite_has_parameter = witchcraft_accepted } + rite = { + OR = { + rite_has_parameter = witchcraft_shunned + rite_has_parameter = witchcraft_illegal } } - OR = { - faith = { has_doctrine_parameter = witchcraft_shunned } - faith = { has_doctrine_parameter = witchcraft_illegal } - } } immediate = { wayfarer_storyteller_fame_effect = { VALUE = roaming_reward_fame_small } @@ -5920,6 +5929,7 @@ travel_events.4033 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = witch_scope after_creation = { @@ -5981,7 +5991,7 @@ travel_events.4033 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -6034,7 +6044,7 @@ travel_events.4033 = { } } custom_tooltip = cheaper_to_convert_to_witchy_faith_tt - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain cynical = medium_stress_impact_loss } @@ -6050,7 +6060,7 @@ travel_events.4033 = { # Pass them by option = { name = travel_events.4033.c - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -6079,7 +6089,7 @@ travel_events.4033 = { scope:witch_scope = { death = { killer = root - death_reason = death_burned + death_reason = death_burned_witch } } } @@ -6106,6 +6116,7 @@ travel_events.4033 = { } } } + pam_witch_justice_fulfillment_effect = yes stress_impact = { sadistic = medium_stress_impact_loss callous = medium_stress_impact_loss @@ -6278,15 +6289,13 @@ travel_events.4035 = { is_playable_character = yes is_witch_trigger = yes is_location_valid_for_travel_event_on_land = yes - location = { - county = { - OR = { - faith = { has_doctrine_parameter = witchcraft_shunned } - faith = { has_doctrine_parameter = witchcraft_illegal } - } + location.county.rite = { + OR = { + rite_has_parameter = witchcraft_shunned + rite_has_parameter = witchcraft_illegal } } - faith = { has_doctrine_parameter = witchcraft_accepted } + rite = { rite_has_parameter = witchcraft_accepted } } immediate = { create_character = { @@ -6294,6 +6303,7 @@ travel_events.4035 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite #Set up the scope save_scope_as = zealous_priest_scope after_creation = { @@ -6357,7 +6367,7 @@ travel_events.4035 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain cynical = medium_stress_impact_gain arrogant = medium_stress_impact_gain @@ -6404,7 +6414,7 @@ travel_events.4035 = { } } custom_tooltip = cheaper_to_convert_to_priest_faith_tt - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain ambitious = minor_stress_impact_loss cynical = medium_stress_impact_loss @@ -6433,7 +6443,7 @@ travel_events.4035 = { # Run away! option = { name = travel_events.4035.c - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain brave = major_stress_impact_gain } @@ -6532,7 +6542,7 @@ travel_events.4035 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss callous = medium_stress_impact_loss zealous = minor_stress_impact_loss @@ -6590,20 +6600,21 @@ travel_events.4036 = { } } immediate = { - create_character = { - template = generic_peasant_character - location = root.location - culture = root.location.culture - faith = root.location.faith - #Set up the scope - save_scope_as = merchant_character_scope - after_creation = { - add_character_flag = created + hidden_effect_new_object = { + create_character = { + template = generic_peasant_character + location = root.location + culture = root.location.culture + faith = root.location.faith + rite = root.location.rite + #Set up the scope + save_scope_as = merchant_character_scope + after_creation = { + add_character_flag = created + } } - } - root.location.kingdom = { save_scope_as = kingdom_scope } - scope:merchant_character_scope = { - hidden_effect = { + root.location.kingdom = { save_scope_as = kingdom_scope } + scope:merchant_character_scope = { add_trait = avaricious random_list = { 10 = { @@ -6668,7 +6679,7 @@ travel_events.4036 = { remove_short_term_gold = medium_gold_value } scope:merchant_artifact_scope = { set_owner = root } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -6723,7 +6734,7 @@ travel_events.4036 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss callous = minor_stress_impact_loss base = medium_stress_impact_gain @@ -6805,7 +6816,7 @@ travel_events.4036 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain deceitful = medium_stress_impact_gain honest = medium_stress_impact_gain @@ -6877,28 +6888,7 @@ travel_events.4037 = { is_playable_character = yes is_location_valid_for_travel_event_on_land = yes location.faith != root.faith - OR = { - AND = { - religion = { is_in_family = rf_eastern } - location.faith = { has_doctrine_parameter = eastern_syncretic_actor_opinion_active } - } - AND = { - faith = { has_doctrine_parameter = unreformed } - location.faith = { has_doctrine_parameter = unreformed_syncretic_actor_opinion_active } - } - AND = { - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - location.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - } - AND = { - religion = religion:islam_religion - location.faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } - } - AND = { - religion = religion:judaism_religion - location.faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } - } - } + location.faith = { faith_is_syncretic_with = { FAITH = root.faith } } } immediate = { wayfarer_storyteller_fame_effect = { VALUE = roaming_reward_fame_small } @@ -6907,6 +6897,7 @@ travel_events.4037 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite #Set up the scope save_scope_as = fanboy_character_scope after_creation = { @@ -6952,7 +6943,7 @@ travel_events.4037 = { value = lifestyle_mystic_xp_gain_minor_value } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain lazy = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -6999,7 +6990,7 @@ travel_events.4037 = { } } custom_tooltip = cheaper_to_convert_to_fanboy_faith_tt - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -7023,7 +7014,7 @@ travel_events.4037 = { # Eww go away, syncretic weirdos option = { name = travel_events.4037.c - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain zealous = medium_stress_impact_loss gregarious = minor_stress_impact_gain @@ -7078,28 +7069,7 @@ travel_events.4038 = { barony.holder = { is_ai = yes } barony.holder != root } - OR = { - AND = { - faith = { has_doctrine_parameter = eastern_syncretic_actor_opinion_active } - location.religion = { is_in_family = rf_eastern } - } - AND = { - faith = { has_doctrine_parameter = unreformed_syncretic_actor_opinion_active } - location.faith = { has_doctrine_parameter = unreformed } - } - AND = { - faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - OR = { location.religion = religion:eastern_orthodox_religion location.religion = religion:catholic_religion location.religion = religion:protestant_religion } - } - AND = { - faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } - location.religion = religion:islam_religion - } - AND = { - faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } - location.religion = religion:judaism_religion - } - } + faith = { faith_is_syncretic_with = { FAITH = root.location.faith } } } immediate = { wayfarer_storyteller_fame_effect = { VALUE = roaming_reward_fame_small } @@ -7129,7 +7099,7 @@ travel_events.4038 = { value = lifestyle_mystic_xp_gain_minor_value } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain lazy = medium_stress_impact_gain cynical = medium_stress_impact_gain @@ -7180,7 +7150,7 @@ travel_events.4038 = { add_piety = minor_piety_loss if = { limit = { - faith = { has_doctrine_parameter = eastern_syncretic_actor_opinion_active } + faith = { has_doctrine_parameter = eastern_syncretic_actor } } add_character_modifier = { modifier = offended_eastern_modifier @@ -7189,7 +7159,16 @@ travel_events.4038 = { } else_if = { limit = { - faith = { has_doctrine_parameter = unreformed_syncretic_actor_opinion_active } + faith = { has_doctrine_parameter = sinitic_syncretic_actor } + } + add_character_modifier = { + modifier = offended_sinitic_modifier + years = 5 + } + } + else_if = { + limit = { + faith = { has_doctrine_parameter = unreformed_syncretic_actor } } add_character_modifier = { modifier = offended_pagan_modifier @@ -7198,7 +7177,7 @@ travel_events.4038 = { } else_if = { limit = { - faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } + faith = { has_doctrine_parameter = christian_syncretic_actor } } add_character_modifier = { modifier = offended_christian_modifier @@ -7207,7 +7186,7 @@ travel_events.4038 = { } else_if = { limit = { - faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } + faith = { has_doctrine_parameter = islamic_syncretic_actor } } add_character_modifier = { modifier = offended_muslim_modifier @@ -7216,7 +7195,7 @@ travel_events.4038 = { } else_if = { limit = { - faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } + faith = { has_doctrine_parameter = jewish_syncretic_actor } } add_character_modifier = { modifier = offended_jewish_modifier @@ -7226,7 +7205,7 @@ travel_events.4038 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain lazy = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -7246,7 +7225,7 @@ travel_events.4038 = { # Eww go away, weirdos option = { name = travel_events.4038.c - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain zealous = medium_stress_impact_loss gregarious = minor_stress_impact_gain @@ -7282,8 +7261,8 @@ travel_events.4039 = { is_available_travelling = yes is_playable_character = yes is_location_valid_for_travel_event_on_land = yes - faith = { NOT = { has_doctrine_parameter = host_honored_guests_active } } - location.faith = { has_doctrine_parameter = host_honored_guests_active } + rite = { NOT = { rite_has_parameter = host_honored_guests_active } } + location.rite = { rite_has_parameter = host_honored_guests_active } } immediate = { @@ -7305,7 +7284,7 @@ travel_events.4039 = { modifier = pampered_by_locals_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_loss diligent = medium_stress_impact_gain } @@ -7320,7 +7299,7 @@ travel_events.4039 = { # No, we *must* keep going! option = { name = travel_events.4039.b - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain } ai_chance = { @@ -7366,6 +7345,7 @@ travel_events.4040 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite #Set up the scope save_scope_as = fanboy_character_scope after_creation = { @@ -7382,7 +7362,7 @@ travel_events.4040 = { option = { name = travel_events.4040.a add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_loss humble = medium_stress_impact_gain } @@ -7417,7 +7397,7 @@ travel_events.4040 = { add_scheme_modifier = { type = xenophile_bonus_modifier } } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain shy = medium_stress_impact_gain arrogant = medium_stress_impact_gain diff --git a/events/war_events/combat_events.txt b/events/war_events/combat_events.txt index 6057b5c5f..4fbf0a42b 100644 --- a/events/war_events/combat_events.txt +++ b/events/war_events/combat_events.txt @@ -212,7 +212,7 @@ combat_event.0003 = { add_martial_skill = 3 #AI will always pick this unless Humble. - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_gain } ai_chance = { @@ -250,7 +250,7 @@ combat_event.0003 = { add_martial_skill = 3 #AI will only pick this if Humble. - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_gain } ai_chance = { @@ -292,7 +292,7 @@ combat_event.0004 = { add_martial_skill = 3 #AI will always pick this unless Humble - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_gain } ai_chance = { @@ -330,7 +330,7 @@ combat_event.0004 = { add_martial_skill = 3 #AI will never pick this unless Humble - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_gain } ai_chance = { @@ -390,7 +390,7 @@ combat_event.0005 = { add_prestige_level = -1 - stress_impact = { + stress_and_fulfillment_impact = { vengeful = medium_stress_gain arrogant = medium_stress_gain wrathful = minor_stress_gain @@ -425,7 +425,7 @@ combat_event.0005 = { } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = medium_stress_gain humble = medium_stress_gain calm = minor_stress_gain @@ -1045,11 +1045,9 @@ combat_event.1001 = { OR = { any_in_list = { list = slain_combatants - exists = this } any_in_list = { list = victorious_slain_combatants - exists = this } } } @@ -1091,7 +1089,6 @@ combat_event.1001 = { limit = { any_in_list = { list = prisoners_of_war - exists = this } } # If anyone was captured after the battle, send a message to both the winner and loser of the combat to inform them of this. diff --git a/events/war_events/raid_events.txt b/events/war_events/raid_events.txt index 2485d9e0a..15d434440 100644 --- a/events/war_events/raid_events.txt +++ b/events/war_events/raid_events.txt @@ -64,6 +64,10 @@ raiding.0002 = { #Less hidden event: I do get a sacking! title = raiding.0002.t desc = raiding.0002.desc theme = raid + + override_effect_2d = { + reference = smoke + } override_background = { reference = burning_building } left_portrait = { character = root @@ -137,7 +141,7 @@ raiding.0002 = { #Less hidden event: I do get a sacking! root.capital_county = { change_development_progress = medium_development_progress_gain } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain } @@ -192,7 +196,7 @@ raiding.0002 = { #Less hidden event: I do get a sacking! years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain } @@ -248,7 +252,7 @@ raiding.0002 = { #Less hidden event: I do get a sacking! } scope:raid_army = { add_loot = scope:sacked_barony.county.title_province.raid_gold_value } add_prestige = minor_prestige_value - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain } @@ -290,18 +294,18 @@ raiding.0002 = { #Less hidden event: I do get a sacking! } if = { limit = { - faith = { + rite = { OR = { - trait_is_sin = compassionate - trait_is_sin = forgiving - trait_is_sin = calm + trait_is_sin_rite = compassionate + trait_is_sin_rite = forgiving + trait_is_sin_rite = calm } } } add_piety = minor_piety_loss } else = { add_piety = medium_piety_gain } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_gain vengeful = minor_stress_impact_gain wrathful = minor_stress_impact_gain @@ -380,10 +384,33 @@ raiding.0003 = { override_background = { reference = burning_building } + override_effect_2d = { + reference = smoke + } left_portrait = { character = scope:raider animation = war_over_win } + right_portrait = { + character = scope:raider_dummy + animation = celebrate_axe + hide_info = yes + } + + immediate = { + scope:raider = { + ordered_knight = { + order_by = prowess + limit = { + is_in_army = yes + NOT = { + this = scope:raider + } + } + save_scope_as = raider_dummy + } + } + } #Oh no! option = { @@ -415,7 +442,7 @@ raiding.0003 = { OPINION = 0 } } - stress_impact = { forgiving = minor_stress_impact_gain } + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain } ai_chance = { base = 0 #Otherwise every raiding culture will have a million rivals. ai_value_modifier = { #Vengeful characters may do this, though. @@ -456,7 +483,7 @@ raiding.0003 = { years = 10 } } - stress_impact = { lazy = minor_stress_impact_gain } + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain } ai_chance = { base = 50 ai_value_modifier = { @@ -496,23 +523,39 @@ raiding.0004 = { desc = raiding.0004.desc.spared_plundered #If the holding was spared, we have a lukewarm one response. } } + override_effect_2d = { + reference = smoke + } theme = raid override_background = { reference = burning_building } left_portrait = { character = scope:raider - animation = anger + animation = marshal + camera = camera_event_left_forward } right_portrait = { - character = scope:sacked_county_owner - animation = fear - triggered_animation = { - trigger = { - ai_vengefulness >= medium_positive_ai_value - ai_boldness > high_negative_ai_value + character = scope:raider_dummy + animation = celebrate_axe + hide_info = yes + } + lower_right_portrait = scope:sacked_county_owner + immediate = { + scope:sacked_county_owner ?= { + save_scope_as = bg_override_char + } + scope:raider = { + ordered_knight = { + order_by = prowess + limit = { + is_in_army = yes + NOT = { + this = scope:raider + } + } + save_scope_as = raider_dummy } - animation = rage } } @@ -559,7 +602,7 @@ raiding.0004 = { opinion = 20 } } - stress_impact = { greedy = medium_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { base = 20 #Reduced base chance: the AI shouldn't bankrupt itself helping vassals. ai_value_modifier = { @@ -632,7 +675,7 @@ raiding.0004 = { } } } - stress_impact = { greedy = medium_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { base = 10 #Reduced base chance: the AI shouldn't bankrupt itself helping vassals. ai_value_modifier = { @@ -775,7 +818,7 @@ raiding.0013 = { scope:barony.holder.capital_barony = scope:barony location = { any_province_domicile = { - is_domicile_type = estate + domicile_is_estate_trigger = yes } } } @@ -788,7 +831,7 @@ raiding.0013 = { location = { random_province_domicile = { limit = { - is_domicile_type = estate + domicile_is_estate_trigger = yes } owner ?= { save_scope_as = estate_holder } } @@ -866,7 +909,7 @@ raiding.0013 = { modifier = { location = { any_province_domicile = { - is_domicile_type = estate + domicile_is_estate_trigger = yes has_domicile_parameter = raids_less_likely_to_make_prisoners_1 } } @@ -875,7 +918,7 @@ raiding.0013 = { modifier = { location = { any_province_domicile = { - is_domicile_type = estate + domicile_is_estate_trigger = yes has_domicile_parameter = raids_less_likely_to_make_prisoners_2 } } @@ -884,7 +927,7 @@ raiding.0013 = { modifier = { location = { any_province_domicile = { - is_domicile_type = estate + domicile_is_estate_trigger = yes has_domicile_parameter = raids_less_likely_to_make_prisoners_3 } } @@ -1030,7 +1073,7 @@ raiding.0013 = { } scripted_trigger raiding_0014_artifact_can_be_stolen = { - exists = this + NOT = { has_variable = artifact_prevent_transfer } OR = { scope:barony.holder = { # If the character is in the province and not leading an army, their stuff is probably valid to steal location = scope:barony.title_province @@ -1312,7 +1355,10 @@ raiding.0040 = { immediate = { if = { limit = { - raid_intent = raze_intent + OR = { + raid_intent = destruction_intent + raid_intent = raze_intent + } has_raid_intent_immunity = no } scope:barony.title_province ?= { diff --git a/events/yearly_events/court_yearly_events.txt b/events/yearly_events/court_yearly_events.txt index 2c3f1c7b1..a4fbe7e3c 100644 --- a/events/yearly_events/court_yearly_events.txt +++ b/events/yearly_events/court_yearly_events.txt @@ -5255,7 +5255,6 @@ court_yearly.0110 = { has_royal_court = yes has_dlc_feature = royal_court any_parent = { - exists = yes is_available_adult = yes liege = root is_landed = no @@ -5291,7 +5290,6 @@ court_yearly.0110 = { modifier = { add = 0.5 any_parent = { - exists = yes is_available_adult = yes liege = root is_landed = no