From 0e87c7f7dfa36a44b37548596c45e505d80e3971 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Mon, 22 May 2017 10:44:10 +1000 Subject: [PATCH 1/8] Fixing Investiture Fixes --- After the End/common/laws/succession_laws.txt | 16 +++- .../common/on_actions/00_on_actions.txt | 12 ++- After the End/events/misc_AfterTheEnd.txt | 92 ++++++++++++++++++- .../history/characters/appalachia-upland.txt | 10 ++ .../history/titles/d_libertarian.txt | 4 + 5 files changed, 128 insertions(+), 6 deletions(-) create mode 100644 After the End/history/titles/d_libertarian.txt diff --git a/After the End/common/laws/succession_laws.txt b/After the End/common/laws/succession_laws.txt index ea77e2a30..2c2612097 100644 --- a/After the End/common/laws/succession_laws.txt +++ b/After the End/common/laws/succession_laws.txt @@ -1011,12 +1011,16 @@ gender_laws = { OR = { religion = gaian religion = libertarian + AND = { + is_theocracy = yes + religion = ursuline + } } is_merchant_republic = no is_patrician = no } - is_landless_type_title = no + #is_landless_type_title = no OR = { AND = { @@ -1028,9 +1032,17 @@ gender_laws = { is_theocracy = no is_republic = no } + holder_scope = { + is_theocracy = yes + OR = { + religion = ursuline + religion = gaian + religion = libertarian + } + } } - is_primary_type_title = no + #is_primary_type_title = no } effect = { gender_succ = enatic diff --git a/After the End/common/on_actions/00_on_actions.txt b/After the End/common/on_actions/00_on_actions.txt index 70502652a..29060c991 100644 --- a/After the End/common/on_actions/00_on_actions.txt +++ b/After the End/common/on_actions/00_on_actions.txt @@ -4,7 +4,6 @@ on_startup = { GR.13 #True cognatic for rule gender = all misc.5 # Diversity flavor.30 - VSinvestitureFix.1 ate_landmarks.0 #Adds landmarks via pope } } @@ -1396,6 +1395,11 @@ on_death = { prez.1 # President dies prez.8 # Candidate dies bank.20 # inherit banking capital or liabilities + misc.1 # Sister-Militant + misc.2 # Nancy Harts + misc.7 # Make Ursuline priests female + misc.8 # First Lady + misc.9 # High Church and Strangite CM.10010 # Chronicle entry CM.6185 # Dies of other causes while assassination is in progress - clear flags @@ -1422,8 +1426,6 @@ on_death = { # Clean up traits as we don't keep zoroastrian pets in death ZP.5 - - VSinvestitureFix.2 } random_events = { 1 = RIP.29800 #reincarnation investigation @@ -2275,6 +2277,8 @@ on_new_holder_inheritance = { 533 MNM.1215 # The Hermetics Scrying Power result (for new holder) MNM.1216 # The Hermetics Scrying Power result (for old holder) + + misc.6 # Make Ursuline priests female } } @@ -2295,6 +2299,8 @@ on_new_holder_usurpation = { MNM.1215 # The Hermetics Scrying Power result (for new holder) MNM.1216 # The Hermetics Scrying Power result (for old holder) # MNM.6230 # Clearing covert province quest if new owner + + misc.6 # Make Ursuline priests female } } diff --git a/After the End/events/misc_AfterTheEnd.txt b/After the End/events/misc_AfterTheEnd.txt index c96cda7f5..56aec8daa 100644 --- a/After the End/events/misc_AfterTheEnd.txt +++ b/After the End/events/misc_AfterTheEnd.txt @@ -2464,6 +2464,21 @@ character_event = { character_event = { id = misc.6 } } } + # Other priests + any_independent_ruler = { + any_realm_character = { + limit = { + NOT = { has_law = enatic_succession } + OR = { + religion = high_church + religion = strangite + } + is_theocracy = yes + is_ruler = yes + } + character_event = { id = misc.9 } + } + } # Do any other game-initializing stuff here } @@ -2486,7 +2501,7 @@ character_event = { } option = { - add_law = enatic_succession + primary_title = { add_law = enatic_succession } if = { limit = { is_female = no } create_random_priest = { @@ -2501,3 +2516,78 @@ character_event = { } } } + +character_event = { + id = misc.7 + desc = "Ursuline death trigger" + is_triggered_only = yes + hide_window = yes + + trigger = { + religion = ursuline + is_theocracy = yes + is_ruler = yes + controls_religion = no # Abbess-General has separate events + NOT = { current_heir = { is_female = yes } } # Preserve investiture if valid + } + + option = { + create_random_priest = { + random_traits = yes + female = yes + religion = ursuline + } + new_character = { + ROOT = { + any_demesne_title = { gain_title = PREVPREV } + } + primary_title = { add_law = enatic_succession } + } + } +} + +character_event = { + id = misc.8 + desc = "Replace First Lady" + is_triggered_only = yes + hide_window = yes + + trigger = { + has_landed_title = d_libertarian + NOT = { current_heir = { is_female = yes } } + } + + option = { + create_random_priest = { + random_traits = yes + female = yes + religion = libertarian + } + new_character = { + ROOT = { + any_demesne_title = { gain_title = PREVPREV } + } + primary_title = { add_law = enatic_succession } + } + } +} + +character_event = { + id = misc.9 + desc = "High Church and Strangite Investiture" + is_triggered_only = yes + hide_window = yes + + trigger = { + is_theocracy = yes + OR = { + religion = high_church + religion = strangite + } + NOT = { has_law = true_cognatic_succession } + } + + option = { + primary_title = { add_law = true_cognatic_succession } + } +} \ No newline at end of file diff --git a/After the End/history/characters/appalachia-upland.txt b/After the End/history/characters/appalachia-upland.txt index 70cffbe74..cc3571cec 100644 --- a/After the End/history/characters/appalachia-upland.txt +++ b/After the End/history/characters/appalachia-upland.txt @@ -1386,4 +1386,14 @@ trait=flamboyant_schemer 2578.2.23={birth=yes} 2625.9.12={death=yes} +} + +1933068={ + name="Athena" + culture=beltway + religion=libertarian + female=yes + trait=mastermind_theologian + 2630.3.19={birth=yes} + 2700.1.1={death=yes} } \ No newline at end of file diff --git a/After the End/history/titles/d_libertarian.txt b/After the End/history/titles/d_libertarian.txt new file mode 100644 index 000000000..5b860610f --- /dev/null +++ b/After the End/history/titles/d_libertarian.txt @@ -0,0 +1,4 @@ +2650.1.1={ + holder = 1933068 + law = enatic_succession +} \ No newline at end of file From 3f585c195d60ac4b78e1edadc63c50c1442f0613 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Fri, 26 May 2017 16:13:11 +1000 Subject: [PATCH 2/8] Added Confederated --- After the End/common/laws/succession_laws.txt | 2 ++ After the End/events/misc_AfterTheEnd.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/After the End/common/laws/succession_laws.txt b/After the End/common/laws/succession_laws.txt index 2c2612097..e39142bd5 100644 --- a/After the End/common/laws/succession_laws.txt +++ b/After the End/common/laws/succession_laws.txt @@ -670,6 +670,7 @@ succession_laws = { NOT = { religion = catholic } NOT = { religion = ursuline } NOT = { religion = high_church } + NOT = { religion = confederated } NOT = { religion = bickertonite } NOT = { religion = strangite } } @@ -716,6 +717,7 @@ succession_laws = { religion = catholic religion = ursuline religion = high_church #Added High Church Because it's neccessary for antipope mechanics + religion = confederated religion = bickertonite #Mormon Heresies that have "investiture = yes" because that line in their definition has no point without a religious head otherwise, so I'm assuming it's an oversight religion = strangite } diff --git a/After the End/events/misc_AfterTheEnd.txt b/After the End/events/misc_AfterTheEnd.txt index 56aec8daa..1fe7134c4 100644 --- a/After the End/events/misc_AfterTheEnd.txt +++ b/After the End/events/misc_AfterTheEnd.txt @@ -2471,6 +2471,7 @@ character_event = { NOT = { has_law = enatic_succession } OR = { religion = high_church + religion = confederated religion = strangite } is_theocracy = yes @@ -2582,6 +2583,7 @@ character_event = { is_theocracy = yes OR = { religion = high_church + religion = confederated religion = strangite } NOT = { has_law = true_cognatic_succession } From f979ef1a95e0b7c018a5c967118656237750d70f Mon Sep 17 00:00:00 2001 From: Dryhad Date: Fri, 26 May 2017 16:14:06 +1000 Subject: [PATCH 3/8] Removed redundant event file --- .../events/VSinvestitureFix_event.txt | 69 ------------------- 1 file changed, 69 deletions(-) delete mode 100644 After the End/events/VSinvestitureFix_event.txt diff --git a/After the End/events/VSinvestitureFix_event.txt b/After the End/events/VSinvestitureFix_event.txt deleted file mode 100644 index 9e9893a9c..000000000 --- a/After the End/events/VSinvestitureFix_event.txt +++ /dev/null @@ -1,69 +0,0 @@ -namespace = VSinvestitureFix - -character_event = { - id = VSinvestitureFix.1 - hide_window = yes - is_triggered_only = yes - - trigger = { - is_theocracy = yes - OR = { - religion = ursuline - religion = high_church - religion = strangite - } - } - - immediate = { - primary_title = { - gender_succ = true_cognatic - } - } -} - -character_event = { - id = VSinvestitureFix.2 - hide_window = yes - is_triggered_only = yes - - trigger = { - is_theocracy = yes - OR = { - religion = ursuline - religion = high_church - religion = strangite - } - } - - immediate = { - k_ursuline = { - holder_scope = { - character_event = { id = VSinvestitureFix.3 days = 3} #Give the game time to settle the new Bishop - } - } - } -} - -character_event = { - id = VSinvestitureFix.3 - hide_window = yes - is_triggered_only = yes - - immediate = { - FROM = { - any_title = { - limit = { - holder_scope = { - is_theocracy = yes - OR = { - religion = ursuline - religion = high_church - religion = strangite - } - } - } - gender_succ = true_cognatic - } - } - } -} From 5cafef879634151eccc67c006cee08e28a5d76cd Mon Sep 17 00:00:00 2001 From: Dryhad Date: Fri, 23 Jun 2017 22:07:40 +1000 Subject: [PATCH 4/8] Mass removal of dangling religion references --- After the End/common/cb_types/00_cb_types.txt | 31 +- .../decisions/conversion_decisions.txt | 58 +- After the End/decisions/dynasty_decisions.txt | 1047 + After the End/decisions/faction_decisions.txt | 8 +- After the End/decisions/realm_decisions.txt | 2 +- .../decisions/rip_torture_decisions.txt | 1164 + .../decisions/settlement_decisions.txt | 3529 +++ After the End/events/ambition_events.txt | 3376 +++ After the End/events/bastard_events.txt | 1206 + After the End/events/birth_events.txt | 3201 +++ .../childhood_personality_traits_events.txt | 6975 +++++ .../events/cm_charlemagne_story_events.txt | 2 +- After the End/events/court_events.txt | 2289 ++ After the End/events/evil_events.txt | 623 + After the End/events/family_events.txt | 1467 ++ After the End/events/feudal_life_events.txt | 2 +- .../events/friends_rivals_events.txt | 16133 ++++++++++++ After the End/events/guardian_events.txt | 7471 ++++++ After the End/events/health_events.txt | 4038 +++ ...tra_events.txt.txt => hl_extra_events.txt} | 0 After the End/events/imprisoned_events.txt | 925 + After the End/events/job_flavour_events.txt | 2862 +++ After the End/events/job_lord_spiritual.txt | 72 +- After the End/events/job_offmap.txt | 3799 +++ After the End/events/lifestyle_event.txt | 1960 ++ After the End/events/lovers_events.txt | 4084 +++ After the End/events/married_life_events.txt | 5336 ++++ After the End/events/mnm_artifacts_events.txt | 18 +- After the End/events/mourning_events.txt | 623 + After the End/events/news_flavor_events.txt | 1 + After the End/events/on_action_events.txt | 31 +- After the End/events/on_hajj.txt | 1 + .../events/personality_traits_events.txt | 4881 ++++ After the End/events/plot_events.txt | 6 +- After the End/events/polygamy_events.txt | 1184 + .../events/province_lordship_events.txt | 568 + After the End/events/ramadan_events.txt | 1 + After the End/events/religious_events.txt | 5 +- .../events/rip_eternal_life_events.txt | 23 +- After the End/events/rip_flavor_events.txt | 13738 ++++++++++ After the End/events/rip_hospital_events.txt | 894 + After the End/events/rip_maimed_events.txt | 667 + .../events/rip_prosperity_events.txt | 1478 ++ After the End/events/rumours_events.txt | 5323 ++++ After the End/events/siege_events.txt | 1809 ++ .../events/traits_effects_events.txt | 21123 ++++++++++++++++ .../events/various_traits_events.txt | 4955 ++++ .../events/vassal_request_events.txt | 2060 ++ After the End/events/ze_ambition_events.txt | 2102 ++ After the End/events/ze_extra_events.txt | 2543 ++ After the End/events/ze_favor_events.txt | 498 + .../events/ze_war_chest_extortion.txt | 799 + 52 files changed, 136854 insertions(+), 137 deletions(-) create mode 100644 After the End/decisions/dynasty_decisions.txt create mode 100644 After the End/decisions/rip_torture_decisions.txt create mode 100644 After the End/decisions/settlement_decisions.txt create mode 100644 After the End/events/ambition_events.txt create mode 100644 After the End/events/bastard_events.txt create mode 100644 After the End/events/birth_events.txt create mode 100644 After the End/events/childhood_personality_traits_events.txt create mode 100644 After the End/events/court_events.txt create mode 100644 After the End/events/evil_events.txt create mode 100644 After the End/events/family_events.txt create mode 100644 After the End/events/friends_rivals_events.txt create mode 100644 After the End/events/guardian_events.txt create mode 100644 After the End/events/health_events.txt rename After the End/events/{hl_extra_events.txt.txt => hl_extra_events.txt} (100%) create mode 100644 After the End/events/imprisoned_events.txt create mode 100644 After the End/events/job_flavour_events.txt create mode 100644 After the End/events/job_offmap.txt create mode 100644 After the End/events/lifestyle_event.txt create mode 100644 After the End/events/lovers_events.txt create mode 100644 After the End/events/married_life_events.txt create mode 100644 After the End/events/mourning_events.txt create mode 100644 After the End/events/news_flavor_events.txt create mode 100644 After the End/events/on_hajj.txt create mode 100644 After the End/events/personality_traits_events.txt create mode 100644 After the End/events/polygamy_events.txt create mode 100644 After the End/events/province_lordship_events.txt create mode 100644 After the End/events/ramadan_events.txt create mode 100644 After the End/events/rip_flavor_events.txt create mode 100644 After the End/events/rip_hospital_events.txt create mode 100644 After the End/events/rip_maimed_events.txt create mode 100644 After the End/events/rip_prosperity_events.txt create mode 100644 After the End/events/rumours_events.txt create mode 100644 After the End/events/siege_events.txt create mode 100644 After the End/events/traits_effects_events.txt create mode 100644 After the End/events/various_traits_events.txt create mode 100644 After the End/events/vassal_request_events.txt create mode 100644 After the End/events/ze_ambition_events.txt create mode 100644 After the End/events/ze_extra_events.txt create mode 100644 After the End/events/ze_favor_events.txt create mode 100644 After the End/events/ze_war_chest_extortion.txt diff --git a/After the End/common/cb_types/00_cb_types.txt b/After the End/common/cb_types/00_cb_types.txt index c0209d7e2..d74a5df25 100644 --- a/After the End/common/cb_types/00_cb_types.txt +++ b/After the End/common/cb_types/00_cb_types.txt @@ -44,10 +44,10 @@ claim = { infamy_modifier = 0.85 can_use_title = { - OR = { - ROOT = { is_female = no } - NOT = { ROOT = { religion_group = muslim } } - } + #OR = { + # ROOT = { is_female = no } + # NOT = { ROOT = { religion_group = muslim } } + #} OR = { FROM = { has_landed_title = PREV @@ -266,10 +266,11 @@ other_claim = { can_use_title = { OR = { ROOT = { is_female = no } - AND = { - NOT = { ROOT = { religion_group = muslim } } - NOT = { succ_law_title = { has_law = agnatic_succession } } - } + NOT = { succ_law_title = { has_law = agnatic_succession } } + } + OR = { # seems logical to have + ROOT = { is_female = yes } + NOT = { succ_law_title = { has_law = enatic_succession } } } OR = { FROM = { @@ -2545,11 +2546,11 @@ tribal_invasion = { AND = { independent = yes religion_group = pagan_group - OR = { - culture_group = altaic - culture_group = magyar - culture_group = mesoamerican - } + #OR = { + # culture_group = altaic + # culture_group = magyar + # culture_group = mesoamerican + #} FROM = { NOT = { religion_group = pagan_group } # Should subjugate these instead } @@ -6380,6 +6381,7 @@ imperial_reconquest = { allowed_to_target_suzerains = no can_use = { + always = no # Juuuust in case ROOT = { has_landed_title = e_roman_empire independent = yes @@ -8012,7 +8014,6 @@ pagan_holy_war = { } } } - ROOT = { piety = -100 } } can_use = { @@ -8263,6 +8264,7 @@ caliphal_subjugation = { } can_use = { + always = no # Should already be disabled due to caliphate titles not existing but good to be sure ROOT = { religion_group = muslim OR = { @@ -10233,6 +10235,7 @@ cb_decadence_usurption = { allowed_to_target_suzerains = no can_use = { + always = no # Abundance of caution ROOT = { religion_group = muslim } diff --git a/After the End/decisions/conversion_decisions.txt b/After the End/decisions/conversion_decisions.txt index 856906d7d..2e223ba72 100644 --- a/After the End/decisions/conversion_decisions.txt +++ b/After the End/decisions/conversion_decisions.txt @@ -441,10 +441,10 @@ targetted_decisions = { } OR = { religion_group = christian - religion_group = muslim - religion_group = zoroastrian_group - religion_group = jewish_group - religion_group = indian_group + religion_group = oldworld + religion_group = cult_of_saints + religion_group = pacific + religion_group = latter_day_saints } is_alive = yes } @@ -481,82 +481,90 @@ targetted_decisions = { religion = ROOT - #When spouse is Hindu + #When spouse is Cetic if = { limit = { ROOT = { - trait = shaivist_hindu + trait = way_book } } - add_trait = shaivist_hindu + add_trait = way_book } if = { limit = { ROOT = { - trait = vaishnavist_hindu + trait = way_fist } } - add_trait = vaishnavist_hindu + add_trait = way_fist } if = { limit = { ROOT = { - trait = shaktist_hindu + trait = way_cowl } } - add_trait = shaktist_hindu + add_trait = way_cowl } if = { limit = { ROOT = { - trait = smartist_hindu + trait = way_dove } } - add_trait = smartist_hindu + add_trait = way_dove } - #When spouse is Buddhist + #When spouse is Sagrado if = { limit = { ROOT = { - trait = mahayana_buddhist + trait = marian_el_santo } } - add_trait = mahayana_buddhist + add_trait = marian_el_santo } if = { limit = { ROOT = { - trait = vajrayana_buddhist + trait = marian_guadalupe } } - add_trait = vajrayana_buddhist + add_trait = marian_guadalupe } if = { limit = { ROOT = { - trait = theravada_buddhist + trait = marian_santa_muerte } } - add_trait = theravada_buddhist + add_trait = marian_santa_muerte } - #When spouse is Jain + #When spouse is Gracia if = { limit = { ROOT = { - trait = digambara_jain + trait = gracia_dorado } } - add_trait = digambara_jain + add_trait = gracia_dorado } if = { limit = { ROOT = { - trait = svetambara_jain + trait = gracia_inmaculado } } - add_trait = svetambara_jain + add_trait = gracia_inmaculado + } + if = { + limit = { + ROOT = { + trait = gracia_libertador + } + } + add_trait = gracia_libertador } hidden_tooltip = { diff --git a/After the End/decisions/dynasty_decisions.txt b/After the End/decisions/dynasty_decisions.txt new file mode 100644 index 000000000..f369ba70b --- /dev/null +++ b/After the End/decisions/dynasty_decisions.txt @@ -0,0 +1,1047 @@ +# Targetted decisions are possible vs _all_ other characters and shown are in the Diplomacy View, not the Intrigue View. The taker is in the FROM scope. +# +# filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] ('self' MUST be set for decisions targetting only the taker, the other filter types can be set to lessen CPU load) +# ai_target_filter = [self/court/home_court/vassals/sub_realm/realm/dynasty/all] (which characters for which the AI evaluates the decision.) +# court: all characters in the AI's host court, including prisoners, and characters currently away (wards, prisoners, etc) +# home_court: all characters in the AI's home court, including prisoners, and characters currently away (wards, prisoners, etc) +# vassals: direct vassal rulers of the AI's employer +# sub_realm: all characters below the AI's employer +# realm: all characters in the same top realm as the AI +# dynasty: all members of the same dynasty +# rivals: your rivals plus any character you have an opinion modifier with 'crime = yes' set (the same set of characters the 'is_foe' trigger evaluates) +# all: all living characters (Avoid if possible. VERY CPU-HEAVY!) +# + +targetted_decisions = { + + commit_suicide = { + filter = self + ai_target_filter = self + potential = { + ai = no + is_adult = yes + OR = { + trait = depressed + AND = { + trait = incapable + has_dlc = "Reapers" + } + } + immortal = no + } + allow = { + custom_tooltip = { + text = commit_suicide_allow_tooltip + hidden_tooltip = { + OR = { + trait = depressed + trait = incapable + } + } + } + custom_tooltip = { + NOT = { has_character_flag = attempting_suicide } + text = attempting_suicide_tooltip + } + } + effect = { + if = { + limit = { has_dlc = "Reapers" } + + set_character_flag = attempting_suicide + + if = { + limit = { NOT = { trait = incapable } } + character_event = { id = RIP.30200 } + } + if = { + limit = { trait = incapable } + character_event = { id = RIP.30210 } + } + } + if = { + limit = { NOT = { has_dlc = "Reapers" } } + + prestige = -200 + + add_character_modifier = { + modifier = suicide + duration = -1 + } + death = { death_reason = death_suicide } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0 + } + } + + legitimize_bastard = { + only_playable = yes + filter = dynasty + ai_target_filter = dynasty + + from_potential = { + ai = no + is_playable = yes + has_children = yes + has_polygamy = no + } + + potential = { + trait = bastard + is_child_of = FROM + is_liege_or_above = FROM + } + allow = { + FROM = { + piety = 20 + } + } + effect = { + dynasty = FROM + remove_trait = bastard + add_trait = legit_bastard + recalc_succession = yes + FROM = { piety = -20 } + if = { + limit = { + prisoner = yes + host = { character = FROM } + } + imprison = no + } + + mother = { + opinion = { + who = FROM + modifier = legitimized_child + years = 10 + } + } + FROM = { + spouse = { + if = { + limit = { + NOT = { + any_child = { + character = ROOT + } + } + } + opinion = { + who = FROM + modifier = legitimized_bastard + years = 20 + } + } + } + any_child = { + limit = { + NOT = { character = ROOT } + dynasty = FROM + NOT = { trait = bastard } + } + opinion = { + who = FROM + modifier = legitimized_bastard + months = 12 + } + } + } + } + + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0 + } + } + + # Muslim ruler tries to convince a dynasty member to lose the 'Decadent' Trait + #convince_to_straighten_up = { + # only_playable = yes + # filter = dynasty + # ai_target_filter = dynasty + # + # hide_in_decisions_list = yes # This decision is shown in the Religion View for each decadent character + # + # from_potential = { + # is_playable = yes + # religion_group = muslim + # father_even_if_dead = { + # OR = { + # is_alive = no + # is_playable = no + # } + # } + # } + # + # potential = { + # is_female = no + # prisoner = no + # trait = decadent + # has_regent = no + # lower_tier_than = FROM + # } + # + # allow = { + # FROM = { + # piety = 100 + # prisoner = no + # NOT = { trait = decadent } + # } + # custom_tooltip = { + # text = "NOT_ALREADY_NEGOTIATED" + # NOT = { has_character_flag = negotiated_to_drop_decadence } + # } + # } + # effect = { + # set_character_flag = negotiated_to_drop_decadence + # character_event = { + # id = 91350 + # } + # + # FROM = { piety = -100 } + # } + # + # revoke_allowed = { + # always = no + # } + # ai_will_do = { + # factor = 1 + # modifier = { + # factor = 0 + # any_dynasty_member = { + # ai = no + # higher_tier_than = ROOT + # same_realm = ROOT + # } + # } + # } + #} + + send_child_into_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = dynasty + ai_target_filter = dynasty + + from_potential = { + is_ruler = yes + has_regent = no + has_children = yes + OR = { + ai = no + OR = { + trait = amateurish_plotter + trait = flamboyant_schemer + trait = intricate_webweaver + trait = elusive_shadow + } + } + } + + potential = { + NOT = { is_inaccessible_trigger = yes } + is_ruler = no + liege = { character = FROM } + NOT = { is_plot_target_of = FROM } + OR = { + has_character_modifier = suspected_murder_plot + FROM = { + any_known_plotter = { + target = PREV + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + NOT = { any_spouse = { character = FROM } } + OR = { + father = { character = FROM } + mother = { character = FROM } + } + OR = { + father = { ai = no } + mother = { ai = no } + is_female = no + is_primary_heir = yes + AND = { + is_female = yes + FROM = { has_law = true_cognatic_succession } + } + } + NOT = { has_character_modifier = went_out_of_hiding_timer } + } + + allow = { + in_command = no + prisoner = no + custom_tooltip = { + text = is_not_busy_trigger_tooltip + hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } } + } + has_job_title = no + custom_tooltip = { + text = is_target_of_murder_plot_tooltip + hidden_tooltip = { + OR = { + has_character_modifier = suspected_murder_plot + FROM = { + any_known_plotter = { + target = PREV + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + } + custom_tooltip = { + text = recently_went_out_of_hiding_tooltip + hidden_tooltip = { + NOT = { has_character_modifier = went_out_of_hiding_timer } + } + } + } + effect = { + custom_tooltip = { text = go_into_hiding_info_tooltip } + add_trait = in_hiding + set_character_flag = do_not_disturb + hidden_tooltip = { + ROOT = { + any_plotter = { + target = ROOT + limit = { + NOT = { has_character_flag = murder_in_motion } + NOT = { character = FROM } + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6004 } + any_backed_character = { + character_event = { id = CM.6004 } + } + } + any_plotter = { + target = ROOT + limit = { + has_character_flag = murder_in_motion + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6180 } + any_backed_character = { + character_event = { id = CM.6004 } + } + } + } + father = { + if = { + limit = { + NOT = { character = FROM } + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + } + character_event = { id = CM.6004 } + } + } + mother = { + if = { + limit = { + NOT = { character = FROM } + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + } + character_event = { id = CM.6004 } + } + } + any_spouse = { + limit = { + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + } + character_event = { id = CM.6004 } + } + any_child = { + limit = { + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + } + character_event = { id = CM.6004 } + } + any_lover = { + limit = { + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + NOT = { spouse = { character = ROOT } } + } + character_event = { id = CM.6004 } + } + any_sibling = { + limit = { + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + NOT = { is_lover = ROOT } + } + character_event = { id = CM.6004 } + } + any_rival = { + limit = { + NOT = { character = FROM } + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + } + character_event = { id = CM.6004 } + } + } + } + + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + modifier = { + factor = 0.1 + } + modifier = { + factor = 0.5 + NOT = { + FROM = { + trait = in_hiding + } + } + } + modifier = { + factor = 0.5 + NOT = { + reverse_opinion = { + who = FROM + value = -24 + } + } + } + modifier = { + factor = 1.5 + reverse_opinion = { + who = FROM + value = 25 + } + } + modifier = { + factor = 5 + FROM = { trait = in_hiding } + } + modifier = { + factor = 10 + FROM = { trait = paranoid } + } + } + } + + take_child_out_of_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = dynasty + ai_target_filter = dynasty + + from_potential = { + is_ruler = yes + has_regent = no + has_children = yes + } + + potential = { + trait = in_hiding + is_ruler = no + liege = { character = FROM } + is_child_of = FROM + prisoner = no + NOT = { any_spouse = { character = FROM } } + } + + allow = { + trait = in_hiding + } + effect = { + custom_tooltip = { text = come_out_of_hiding_info_tooltip } + remove_trait = in_hiding + clr_character_flag = do_not_disturb + add_character_modifier = { + name = went_out_of_hiding_timer + duration = 180 + hidden = yes + } + hidden_tooltip = { + ROOT = { + any_plotter = { + target = ROOT + limit = { + NOT = { character = FROM } + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6005 } + } + } + father = { + if = { + limit = { + NOT = { character = FROM } + } + character_event = { id = CM.6005 } + } + } + mother = { + if = { + limit = { + NOT = { character = FROM } + } + character_event = { id = CM.6005 } + } + } + any_sibling = { + limit = { + ROOT = { + NOT = { is_plot_target_of = THIS } + } + } + character_event = { id = CM.6005 } + } + } + } + + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + modifier = { + factor = 0.1 + FROM = { trait = paranoid } + } + modifier = { + factor = 0 + OR = { + has_character_modifier = suspected_murder_plot + FROM = { + any_known_plotter = { + target = PREV + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + } + } + + go_into_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = self + ai_target_filter = self + + potential = { + prisoner = no + NOT = { is_inaccessible_trigger = yes } + OR = { + ai = no + trait = amateurish_plotter + trait = flamboyant_schemer + trait = intricate_webweaver + trait = elusive_shadow + } + } + allow = { + in_command = no + custom_tooltip = { + text = is_not_busy_trigger_tooltip + hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } } + } + has_job_title = no + custom_tooltip = { + text = is_target_of_murder_plot_tooltip + hidden_tooltip = { + OR = { + has_character_modifier = suspected_murder_plot + any_known_plotter = { + target = ROOT + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + custom_tooltip = { + text = recently_went_out_of_hiding_tooltip + hidden_tooltip = { + NOT = { has_character_modifier = went_out_of_hiding_timer } + } + } + } + effect = { + set_character_flag = do_not_disturb + custom_tooltip = { text = go_into_hiding_info_tooltip } + add_trait = in_hiding + hidden_tooltip = { # Notify player and close family and plotters + ROOT = { + any_plotter = { + target = ROOT + limit = { + NOT = { has_character_flag = murder_in_motion } + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6000 } + any_backed_character = { + character_event = { id = CM.6000 } + } + } + any_plotter = { + target = ROOT + limit = { + has_character_flag = murder_in_motion + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6180 } + any_backed_character = { + character_event = { id = CM.6000 } + } + } + } + any_spouse = { + limit = { + NOT = { plot_target_char = { character = ROOT } } + NOT = { any_backed_character = { plot_target_char = { character = ROOT } } } + NOT = { is_rival = ROOT } + } + character_event = { id = CM.6000 } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + ROOT = { + any_plotter = { + target = ROOT + is_primary_heir = yes + ai = no + } + } + } + modifier = { + factor = 0.1 + } + modifier = { + factor = 0.1 + age = 65 + } + modifier = { + factor = 0.1 + trait = brave + } + modifier = { + factor = 2 + trait = depressed + } + modifier = { + factor = 5 + trait = craven + } + modifier = { + factor = 10 + trait = paranoid + } + } + } + + come_out_of_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = self + ai_target_filter = self + + potential = { + is_ruler = yes + trait = in_hiding + NOT = { has_character_flag = in_religious_seclusion } + } + allow = { + OR = { + OR = { + age = 16 + NOT = { trait = incapable } + } + regent = { + NOT = { trait = deceitful } + NOT = { trait = ambitious } + NOT = { is_rival = ROOT } + } + } + } + effect = { + add_character_modifier = { + name = went_out_of_hiding_timer + duration = 180 + hidden = yes + } + clr_character_flag = do_not_disturb + custom_tooltip = { text = come_out_of_hiding_info_tooltip } + remove_trait = in_hiding + hidden_tooltip = { # Notify player and close family and plotters + ROOT = { + any_plotter = { + target = ROOT + limit = { + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6001 } + } + } + any_spouse = { + limit = { + ROOT = { + NOT = { is_plot_target_of = THIS } + } + } + character_event = { id = CM.6001 } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + modifier = { + factor = 0.1 + trait = paranoid + } + modifier = { + factor = 0 + NOT = { + ROOT = { + any_plotter = { + target = ROOT + is_primary_heir = yes + ai = no + } + } + } + OR = { + has_character_modifier = suspected_murder_plot + any_known_plotter = { + target = ROOT + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + } + + send_spouse_into_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = spouse + ai_target_filter = spouse + + from_potential = { + is_ruler = yes + has_regent = no + OR = { + ai = no + OR = { + trait = amateurish_plotter + trait = flamboyant_schemer + trait = intricate_webweaver + trait = elusive_shadow + } + } + } + + potential = { + NOT = { is_inaccessible_trigger = yes } + is_ruler = no + is_married = FROM + liege = { character = FROM } + NAND = { + is_plot_target_of = FROM + FROM = { + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + NOT = { has_character_modifier = went_out_of_hiding_timer } + } + + allow = { + in_command = no + prisoner = no + custom_tooltip = { + text = is_not_busy_trigger_tooltip + hidden_tooltip = { NOT = { has_character_flag = do_not_disturb } } + } + has_job_title = no + NOT = { is_ruler = yes } + custom_tooltip = { + text = is_target_of_murder_plot_tooltip + hidden_tooltip = { + OR = { + has_character_modifier = suspected_murder_plot + FROM = { + any_known_plotter = { + target = PREV + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + } + custom_tooltip = { + text = recently_went_out_of_hiding_tooltip + hidden_tooltip = { + NOT = { has_character_modifier = went_out_of_hiding_timer } + } + } + } + + effect = { + set_character_flag = do_not_disturb + custom_tooltip = { text = go_into_hiding_info_tooltip } + add_trait = in_hiding + hidden_tooltip = { # Notify player and close family and plotters + ROOT = { + any_plotter = { + target = ROOT + limit = { + NOT = { has_character_flag = murder_in_motion } + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6002 } + any_backed_character = { + character_event = { id = CM.6002 } + } + } + any_plotter = { + target = ROOT + limit = { + has_character_flag = murder_in_motion + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6180 } + any_backed_character = { + character_event = { id = CM.6002 } + } + } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + + modifier = { + factor = 0.1 + } + modifier = { + factor = 0.1 + spouse = { + age = 65 + } + } + modifier = { + factor = 0.1 + spouse = { + trait = pregnant + NOT = { + father_of_unborn = { + character = ROOT + } + } + } + } + modifier = { + factor = 0.5 + NOT = { + FROM = { + trait = in_hiding + } + } + } + modifier = { + factor = 0.5 + NOT = { + opinion = { + who = spouse + value = -24 + } + } + } + modifier = { + factor = 1.5 + opinion = { + who = spouse + value = 25 + } + } + modifier = { + factor = 5 + trait = in_hiding + } + modifier = { + factor = 10 + trait = paranoid + } + modifier = { + factor = 10 + spouse = { + trait = pregnant + father_of_unborn = { + character = ROOT + } + } + } + } + } + + take_spouse_out_of_hiding = { + only_rulers = yes + is_high_prio = yes + + filter = spouse + ai_target_filter = spouse + + from_potential = { + is_ruler = yes + has_regent = no + } + + potential = { + trait = in_hiding + is_ruler = no + is_married = FROM + liege = { character = FROM } + prisoner = no + } + + allow = { + trait = in_hiding + } + + effect = { + add_character_modifier = { + name = went_out_of_hiding_timer + duration = 180 + hidden = yes + } + clr_character_flag = do_not_disturb + custom_tooltip = { text = come_out_of_hiding_info_tooltip } + remove_trait = in_hiding + hidden_tooltip = { # Notify player and close family and plotters + ROOT = { + any_plotter = { + target = ROOT + limit = { + spouse = { NOT = { character = PREV } } + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + character_event = { id = CM.6003 } + } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + modifier = { + factor = 0.1 + trait = paranoid + } + modifier = { + factor = 0 + spouse = { + OR = { + has_character_modifier = suspected_murder_plot + FROM = { + any_known_plotter = { + target = PREV + OR = { + has_plot = plot_kill_character + has_plot = plot_kill_spouse + } + } + } + } + } + } + } + } + +} diff --git a/After the End/decisions/faction_decisions.txt b/After the End/decisions/faction_decisions.txt index d32ee1fe2..733f61ea9 100644 --- a/After the End/decisions/faction_decisions.txt +++ b/After the End/decisions/faction_decisions.txt @@ -711,7 +711,7 @@ plot_decisions = { using_cb = invasion using_cb = religious using_cb = tribal_invasion - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = viking_invasion using_cb = claim_all using_cb = claim @@ -1178,7 +1178,7 @@ plot_decisions = { using_cb = invasion using_cb = religious using_cb = tribal_invasion - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = viking_invasion using_cb = claim_all using_cb = claim @@ -1392,7 +1392,7 @@ plot_decisions = { using_cb = invasion using_cb = religious using_cb = tribal_invasion - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = viking_invasion using_cb = claim_all using_cb = claim @@ -1508,7 +1508,7 @@ plot_decisions = { using_cb = invasion using_cb = religious using_cb = tribal_invasion - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = viking_invasion using_cb = claim_all using_cb = claim diff --git a/After the End/decisions/realm_decisions.txt b/After the End/decisions/realm_decisions.txt index d5ebc42ec..93881baea 100644 --- a/After the End/decisions/realm_decisions.txt +++ b/After the End/decisions/realm_decisions.txt @@ -860,7 +860,7 @@ decisions = { picture = GFX_evt_castle_construction } } - set_government_type = muslim_government + set_government_type = bureaucratic_government } hidden_tooltip = { diff --git a/After the End/decisions/rip_torture_decisions.txt b/After the End/decisions/rip_torture_decisions.txt new file mode 100644 index 000000000..46cffc847 --- /dev/null +++ b/After the End/decisions/rip_torture_decisions.txt @@ -0,0 +1,1164 @@ +targetted_decisions = { + prisoner_torture = { + only_playable = yes + filter = court + ai_target_filter = court + + from_potential = { + has_dlc = "Reapers" + is_playable = yes + is_adult = yes + prisoner = no + NOT = { trait = incapable } + } + + potential = { + prisoner = yes + host = { character = FROM } + age = 13 + } + + allow = { + prisoner = yes + } + + effect = { + hidden_tooltip = { + if = { + limit = { + FROM = { + has_nickname = no + is_adult = yes + NOT = { trait = incapable } + } + } + random_list = { + 5 = { + FROM = { give_nickname = nick_the_cruel } + } + 5 = { + FROM = { give_nickname = nick_the_evil } + } + 5 = { + FROM = { give_nickname = nick_the_tormentor } + } + 5 = { + FROM = { give_nickname = nick_the_depraved } + } + 100 = {} + } + } + } + + hidden_tooltip = { + random_list = { + #Normal torture options + 10 = { + random_list = { + 10 = { + # Racks + FROM = { character_event = { id = RIP.20001 } } + character_event = { id = RIP.20002 } + + } + + 10 = { + # Whipping + FROM = { character_event = { id = RIP.20003 } } + character_event = { id = RIP.20004 } + + } + + 10 = { + # Rats + FROM = { character_event = { id = RIP.20005} } + character_event = { id = RIP.20006 } + } + + 20 = { + # Heat exposure + modifier = { + factor = 0 + NAND = { + month = 3 + NOT = { month = 9 } + + OR = { + capital_scope = { region = world_africa } + capital_scope = { region = world_middle_east } + capital_scope = { region = world_persia } + capital_scope = { region = world_india_rajastan } + } + } + } + FROM = { character_event = { id = RIP.20009 } } + character_event = { id = RIP.20010 } + } + 20 = { + # Cold exposure + modifier = { + factor = 0 + NAND = { + + OR = { + month = 11 + NOT = { month = 2} + } + + OR = { + capital_scope = { region = world_europe_north } + capital_scope = { region = world_steppe_west } + capital_scope = { region = world_steppe_east } + } + } + } + FROM = { character_event = { id = RIP.20011 } } + character_event = { id = RIP.20012 } + } + } + hidden_tooltip = { + + opinion = { + modifier = opinion_tortured_me + who = FROM + } + + mother = { + opinion = { + modifier = opinion_tortured_close_kin + who = FROM + } + } + father = { + opinion = { + modifier = opinion_tortured_close_kin + who = FROM + } + } + spouse = { + opinion = { + modifier = opinion_tortured_close_kin + who = FROM + } + } + any_child = { + opinion = { + modifier = opinion_tortured_close_kin + who = FROM + } + } + if = { + limit = { + FROM = { + NOT = { dynasty = ROOT } + NOT = { sibling = ROOT } + } + } + any_sibling = { + opinion = { + modifier = opinion_tortured_close_kin + who = FROM + } + } + any_dynasty_member = { + opinion = { + modifier = opinion_tortured_family + who = FROM + } + } + } + } + } + + 20 = { + # Lunatic option + modifier = { + factor = 0 + NOT = { FROM = { trait = lunatic } } + } + + FROM = { character_event = { id = RIP.20007 } } + character_event = { id = RIP.20008 } + } + } + } + + tooltip = { + add_character_modifier = { name = tortured years = 2 } + opinion = { + modifier = opinion_tortured_me + who = FROM + } + } + + if = { + limit = { + has_game_rule = { + name = punishment_release_prisoner + value = on + } + } + prisoner = no + } + + FROM = { + save_event_target_as = remove_prison_reason_effect_accuser + ROOT = { save_event_target_as = remove_prison_reason_effect_accused } + hidden_tooltip = { remove_prison_reason_effect = yes } + + if = { + limit = { + NOR = { + trait = cruel + trait = kind + } + } + random = { + chance = 25 + add_trait = cruel + hidden_tooltip = { character_event = { id = 38259 } } + } + } + + if = { + limit = { trait = kind } + random = { + chance = 50 + remove_trait = kind + hidden_tooltip = { + character_event = { id = 38307 } + } + } + hidden_tooltip = { + random_list = { + 30 = { + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + 10 = { + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + 60 = { + #nothing + } + } + } + } + piety = -20 + } + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0.01 + + modifier = { + factor = 0 + OR = { + reverse_opinion = { who = FROM value = 40 } + FROM = { NOT = { piety = 100 } } + FROM = { LIEGE = { dynasty = ROOT } } + } + } + modifier = { + factor = 0 + FROM = { + NOR = { + trait = cruel + trait = impaler + trait = wroth + is_rival = ROOT + trait = arbitrary + trait = paranoid + trait = deceitful + trait = proud + trait = lunatic + trait = possessed + } + } + } + modifier = { + factor = 0 + FROM = { + OR = { + trait = kind + trait = just + trait = patient + trait = shy + trait = greedy + } + } + } + modifier = { + factor = 10 + FROM = { + OR = { + trait = cruel + trait = impaler + trait = wroth + is_rival = ROOT + trait = arbitrary + } + } + } + } + } + + prisoner_mutilate = { + only_playable = yes + + filter = court + ai_target_filter = court + + from_potential = { + has_dlc = "Reapers" + is_playable = yes + is_adult = yes + prisoner = no + NOT = { trait = incapable } + AND = { + OR = { + trait = cruel + trait = impaler + trait = wroth + trait = arbitrary + AND = { + trait = envious + trait = ugly + } + } + NOT = { trait = kind } + } + } + + potential = { + host = { character = FROM } + prisoner = yes + age = 13 + + NOT = { + AND = { + trait = one_legged + trait = one_handed + trait = disfigured + OR = { + trait = one_eyed + trait = blinded + } + OR = { + is_female = yes + trait = eunuch + } + } + } + } + + allow = { + prisoner = yes + } + + effect = { + hidden_tooltip = { + if = { + limit = { + FROM = { + has_nickname = no + is_adult = yes + NOT = { trait = incapable } + } + } + random_list = { + 5 = { + FROM = { give_nickname = nick_the_evil } + } + 5 = { + FROM = { give_nickname = nick_the_tormentor } + } + 5 = { + FROM = { give_nickname = nick_the_butcher } + } + 5 = { + FROM = { give_nickname = nick_the_mutilator } + } + 5 = { + FROM = { give_nickname = nick_the_monster } + } + 5 = { + FROM = { give_nickname = nick_son_of_evilgod } + } + 100 = {} + } + } + } + + hidden_tooltip = { + random_list = { + 10 = { + # One-legged + modifier = { + factor = 0 + trait = one_legged + } + FROM = { character_event = { id = RIP.20013 } } + character_event = { id = RIP.20014 } + } + + 10 = { + # One-handed + modifier = { + factor = 0 + trait = one_handed + } + FROM = { character_event = { id = RIP.20015 } } + character_event = { id = RIP.20016 } + + } + + 10 = { + # One-eyed + modifier = { + factor = 0 + OR = { + trait = one_eyed + trait = blinded + } + } + FROM = { character_event = { id = RIP.20017 } } + character_event = { id = RIP.20018 } + + } + + 10 = { + # Disfigured + modifier = { + factor = 0 + trait = disfigured + } + FROM = { character_event = { id = RIP.20019 } } + character_event = { id = RIP.20020 } + } + + 10 = { + # Castrate + modifier = { + factor = 0 + OR = { + is_female = yes + trait = eunuch + } + } + FROM = { character_event = { id = RIP.20021 } } + character_event = { id = RIP.20022 } + } + } + } + + if = { + limit = { + has_game_rule = { + name = punishment_release_prisoner + value = on + } + } + prisoner = no + } + + opinion = { + modifier = opinion_mutilated_me + who = FROM + } + + FROM = { + piety = -50 + if = { + limit = { NOT = { trait = cruel } } + random = { + chance = 25 + add_trait = cruel + hidden_tooltip = { + character_event = { id = 38259 } + } + } + } + } + + hidden_tooltip = { + mother = { + opinion = { + modifier = opinion_mutilated_close_kin + who = FROM + } + } + father = { + opinion = { + modifier = opinion_mutilated_close_kin + who = FROM + } + } + spouse = { + opinion = { + modifier = opinion_mutilated_close_kin + who = FROM + } + } + any_child = { + opinion = { + modifier = opinion_mutilated_close_kin + who = FROM + } + } + if = { + limit = { + FROM = { + NOT = { dynasty = ROOT } + NOT = { sibling = ROOT } + } + } + any_sibling = { + opinion = { + modifier = opinion_mutilated_close_kin + who = FROM + } + } + any_dynasty_member = { + opinion = { + modifier = opinion_mutilated_family + who = FROM + } + } + } + + FROM = { save_event_target_as = remove_prison_reason_effect_accuser } + ROOT = { save_event_target_as = remove_prison_reason_effect_accused } + hidden_tooltip = { remove_prison_reason_effect = yes } + } + } + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0.4 + + modifier = { + factor = 0 + OR = { + reverse_opinion = { who = FROM value = 40 } + FROM = { NOT = { piety = 100 } } + FROM = { LIEGE = { dynasty = ROOT } } + } + } + modifier = { + factor = 0.5 # Less likely to do it + reverse_opinion = { who = FROM value = 0 } + + } + modifier = { + factor = 0 + FROM = { + NOR = { + trait = cruel + trait = impaler + trait = wroth + is_rival = ROOT + trait = arbitrary + } + } + } + } + } + + prisoner_read_poetry = { + only_playable = yes + filter = court + ai_target_filter = court + + from_potential = { + has_dlc = "Reapers" + is_playable = yes + is_adult = yes + prisoner = no + NOT = { trait = incapable } + trait = poet + } + + potential = { + host = { character = FROM } + prisoner = yes + age = 13 + } + + allow = { + prisoner = yes + } + + effect = { + hidden_tooltip = { + + FROM = { + + random_list = { + 10 = { + # Poem 1 + character_event = { id = RIP.20023 } + ROOT = { character_event = { id = RIP.20024 } } + + } + + 10 = { + # Poem 2 + character_event = { id = RIP.20025 } + ROOT = { character_event = { id = RIP.20026 } } + + } + + 10 = { + # Poem 3 + character_event = { id = RIP.20027 } + ROOT = { character_event = { id = RIP.20028 } } + } + } + } + } + + if = { + limit = { + has_game_rule = { + name = punishment_release_prisoner + value = on + } + } + prisoner = no + } + + opinion = { + modifier = opinion_bad_poetry + who = FROM + } + + FROM = { save_event_target_as = remove_prison_reason_effect_accuser } + ROOT = { save_event_target_as = remove_prison_reason_effect_accused } + hidden_tooltip = { remove_prison_reason_effect = yes } + } + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0.01 + + modifier = { + factor = 0 + reverse_opinion = { who = FROM value = 40 } + } + modifier = { + factor = 0.2 # Less likely to do it + } + modifier = { + factor = 5 + FROM = { + OR = { + trait = cruel + trait = envious + is_rival = ROOT + trait = arbitrary + } + } + } + } + } + +#Humiliate + prisoner_humiliation = { + only_playable = yes + filter = court + ai_target_filter = court + + from_potential = { + has_dlc = "Reapers" + is_playable = yes + is_adult = yes + prisoner = no + NOT = { trait = incapable } + } + + potential = { + host = { character = FROM } + prisoner = yes + age = 13 + } + allow = { + prisoner = yes + } + effect = { + hidden_tooltip = { + FROM = { + random_list = { + # Tar 'n' feathers + 33 = { + modifier = { + factor = 0 + ROOT = { + OR = { + has_character_modifier = incestuous_adulterer + has_character_modifier = incestuous_adulteress + has_character_modifier = adulterer + has_character_modifier = adulteress + has_character_modifier = known_sodomite + has_character_modifier = cradle_robber + has_character_modifier = adulterous_priest + } + } + } + modifier = { + factor = 0 + OR = { + is_nomadic = yes + is_tribal = yes + } + } + + character_event = { id = RIP.15001} + ROOT = { character_event = { id = RIP.15002} } + } + + # Tar 'n' feathers NOMAD + 33 = { + modifier = { + factor = 0 + ROOT = { + OR = { + has_character_modifier = incestuous_adulterer + has_character_modifier = incestuous_adulteress + has_character_modifier = adulterer + has_character_modifier = adulteress + has_character_modifier = known_sodomite + has_character_modifier = cradle_robber + has_character_modifier = adulterous_priest + } + } + } + modifier = { + factor = 0 + NOR = { + is_nomadic = yes + is_tribal = yes + } + } + + character_event = { id = RIP.15007} + ROOT = { character_event = { id = RIP.15008} } + } + + # the Stocks + 33 = { + modifier = { + factor = 0 + ROOT = { + OR = { + has_character_modifier = incestuous_adulterer + has_character_modifier = incestuous_adulteress + has_character_modifier = adulterer + has_character_modifier = adulteress + has_character_modifier = known_sodomite + has_character_modifier = cradle_robber + has_character_modifier = adulterous_priest + } + } + } + modifier = { + factor = 0 + OR = { + is_nomadic = yes + is_tribal = yes + } + } + character_event = { id = RIP.15003} + ROOT = { character_event = { id = RIP.15004} } + } + + # walk of shame + 33 = { + modifier = { + factor = 0 + ROOT = { + NOT = { + OR = { + has_character_modifier = incestuous_adulterer + has_character_modifier = incestuous_adulteress + has_character_modifier = adulterer + has_character_modifier = adulteress + has_character_modifier = known_sodomite + has_character_modifier = cradle_robber + has_character_modifier = adulterous_priest + } + } + } + } + character_event = { id = RIP.15005} + ROOT = { character_event = { id = RIP.15006} } + } + } + } + } + + if = { + limit = { + has_game_rule = { + name = punishment_release_prisoner + value = on + } + } + prisoner = no + } + + add_character_modifier = { + name = publicly_humiliated + years = 10 + } + + opinion = { + modifier = opinion_humiliated_me + who = FROM + } + hidden_tooltip = { + mother = { + opinion = { + modifier = opinion_humiliated_close_kin + who = FROM + } + } + father = { + opinion = { + modifier = opinion_humiliated_close_kin + who = FROM + } + } + spouse = { + opinion = { + modifier = opinion_humiliated_close_kin + who = FROM + } + } + any_child = { + opinion = { + modifier = opinion_humiliated_close_kin + who = FROM + } + } + if = { + limit = { + FROM = { + NOT = { dynasty = ROOT } + NOT = { sibling = ROOT } + } + } + any_sibling = { + opinion = { + modifier = opinion_humiliated_close_kin + who = FROM + } + } + any_dynasty_member = { + opinion = { + modifier = opinion_humiliated_family + who = FROM + } + } + } + } + FROM = { save_event_target_as = remove_prison_reason_effect_accuser } + ROOT = { save_event_target_as = remove_prison_reason_effect_accused } + hidden_tooltip = { remove_prison_reason_effect = yes } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + + modifier = { + factor = 0 + reverse_opinion = { who = FROM value = 40 } + } + modifier = { + factor = 5 + FROM = { trait = kind } + } + modifier = { + factor = 0 + FROM = { trait = greedy } + } + modifier = { + factor = 10 + is_pretender = yes + is_rival = ROOT + + FROM = { + OR = { + is_pretender = yes + is_primary_heir = yes + } + } + } + } + } + + execute_eat = { + only_playable = yes + filter = court + ai_target_filter = court + + from_potential = { + has_dlc = "Reapers" + is_playable = yes + is_adult = yes + prisoner = no + NOT = { trait = incapable } + OR = { + has_character_modifier = cannibal + trait = cannibal_trait + } + OR = { + trait = possessed + trait = lunatic + } + } + + potential = { + host = { character = FROM } + prisoner = yes + age = 12 + } + + ai_will_do = { + factor = 1 + } + + effect = { + hidden_tooltip = { + any_dynasty_member = { + limit = { + is_close_relative = ROOT + NOT = { character = FROM } + } + character_event = { id = RIP.11511 days = 1 } + } + FROM = { + random_list = { + 50 = { # Nothing happens + modifier = { + factor = 0 + OR = { + ROOT = { + immortal = yes + } + AND = { + ROOT = { + controls_religion = yes + } + FROM = { NOT = { religion_group = ROOT } } + } + } + } + } + 40 = { # Get sick + modifier = { + factor = 0 + OR = { + immortal = yes + has_character_flag = demon_child + ROOT = { + immortal = yes + } + AND = { + ROOT = { + controls_religion = yes + } + FROM = { NOT = { religion_group = ROOT } } + } + } + } + random_list = { + 50 = { # Food Poisoning + if = { + limit = { + NOR = { + num_of_symptoms = 1 + is_ill = yes + has_character_flag = developing_illness + has_character_flag = disease_not_serious + } + } + set_character_flag = got_food_poisoning + set_character_flag = developing_illness + character_event = { id = RIP.5023 days = 5 } + } + } + 25 = { # Diarrhea - Not Serious + if = { + limit = { + NOR = { + num_of_symptoms = 1 + is_ill = yes + has_character_flag = developing_illness + has_character_flag = disease_not_serious + } + } + set_character_flag = disease_not_serious + character_event = { id = RIP.5002 days = 5 } + character_event = { id = RIP.11004 days = 10 random = 50 } + } + } + 25 = { # Vomiting - Not Serious + if = { + limit = { + NOR = { + num_of_symptoms = 1 + is_ill = yes + has_character_flag = developing_illness + has_character_flag = disease_not_serious + } + } + set_character_flag = disease_not_serious + character_event = { id = RIP.5003 days = 5 } + character_event = { id = RIP.11005 days = 10 random = 50 } + } + } + } + } + 10 = { # Gain power! + modifier = { + factor = 0 + has_game_rule = { + name = supernatural_events + value = off + } + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = christian + } + NOT = { religion_group = ROOT } + } + set_character_flag = pope_eater + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = oldworld + } + NOT = { religion_group = ROOT } + } + set_character_flag = president_eater + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = pagan_group + } + NOT = { religion_group = ROOT } + } + set_character_flag = fylkir_feast + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = pacific + } + NOT = { religion_group = ROOT } + } + set_character_flag = imperial_banquet + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = latter_day_saints + } + NOT = { religion_group = ROOT } + } + set_character_flag = apostle_eater + } + if = { + limit = { + ROOT = { + controls_religion = yes + religion_group = afro_syncretic + } + NOT = { religion_group = ROOT } + } + set_character_flag = potencia_eater + } + + # Religious groups without heads (add here and in RIP.11510 if they gain them): + # american_native + # cult_of_saints + # mesoamerican_gods + # pirate + + character_event = { id = RIP.11510 } + } + } + if = { + limit = { + has_nickname = no + } + random_list = { + 20 = { # Get nickname The Cannibal + give_nickname = nick_the_cannibal + } + 15 = { # Get nickname The Dragon + give_nickname = nick_the_dragon + } + 15 = { # Get nickname The Abomination + give_nickname = nick_the_abomination + } + 10 = { # Get nickname The Monster + give_nickname = nick_the_monster + } + 40 = { } # No nickname + } + } + } + } + death = { + death_reason = death_execution_eaten + killer = FROM + } + FROM = { + if = { + limit = { + NOT = { trait = lunatic } + } + add_trait = lunatic + } + if = { + limit = { + NOT = { has_character_modifier = crazy_cannibal } + } + add_character_modifier = { + name = crazy_cannibal + duration = -1 + } + } + if = { + limit = { + dynasty = ROOT + NOT = { trait = kinslayer } + } + add_trait = kinslayer + } + } + } + } +} \ No newline at end of file diff --git a/After the End/decisions/settlement_decisions.txt b/After the End/decisions/settlement_decisions.txt new file mode 100644 index 000000000..2f7245fe1 --- /dev/null +++ b/After the End/decisions/settlement_decisions.txt @@ -0,0 +1,3529 @@ +# Settlement decisions are possible vs _all_ settlements and are shown in the Settlement Diplomacy View, not the Intrigue View. The taker is in the FROM scope. +# +# filter = [capital/owned/vassal_owned/sub_realm_owned/realm_owned/dynasty_owned/all] +# ai_target_filter = [capital/owned/vassal_owned/sub_realm_owned/realm_owned/dynasty_owned/all] (which settlements for which the AI evaluates the decision.) +# owned: all settlements owned by the AI +# vassal_owned: all settlements owned by direct vassal rulers of the AI's employer +# sub_realm_owned: all settlements below the AI's employer +# realm_owned: all settlements in the same top realm as the AI +# dynasty_owned: all settlements owned by members of the same dynasty +# all: all settlements (Avoid if possible. VERY CPU-HEAVY!) +# + +settlement_decisions = { + + convert_tribal_to_castle = { + only_playable = yes + filter = owned + ai_target_filter = owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_feudal = yes + higher_tier_than = BARON + } + + potential = { + holding_type = tribal + holder_scope = { + character = FROM + } + } + allow = { + location = { + religion = FROM + } + has_building = tb_hillfort_4 + } + effect = { + convert_to = CASTLE + refill_holding_levy = yes + + hidden_tooltip = { + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = city + } + } + } + } + location = { + build_holding = { + type = city + } + } + } + + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = temple + } + } + } + } + location = { + build_holding = { + type = temple + } + } + } + } + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 1 + } + } + + convert_tribal_to_city = { + only_playable = yes + filter = owned + ai_target_filter = owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_republic = yes + higher_tier_than = BARON + } + + potential = { + holding_type = tribal + holder_scope = { + character = FROM + } + } + allow = { + location = { + religion = FROM + } + has_building = tb_market_town_4 + } + effect = { + convert_to = CITY + refill_holding_levy = yes + + hidden_tooltip = { + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = castle + } + } + } + } + location = { + build_holding = { + type = castle + } + } + } + + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = temple + } + } + } + } + location = { + build_holding = { + type = temple + } + } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 # On average ca 1 year before taken + } + } + + convert_tribal_to_temple = { + only_playable = yes + filter = owned + ai_target_filter = owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_theocracy = yes + higher_tier_than = BARON + OR = { + NOT = { religion_group = pagan_group } + is_reformed_religion = yes + } + } + + potential = { + holding_type = tribal + holder_scope = { + character = FROM + } + } + allow = { + location = { + religion = FROM + } + has_building = tb_hillfort_4 + } + effect = { + convert_to = temple + refill_holding_levy = yes + + hidden_tooltip = { + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = castle + } + } + } + } + location = { + build_holding = { + type = castle + } + } + } + + if = { + limit = { + is_capital = yes + dejure_liege_title = { + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = city + } + } + } + } + location = { + build_holding = { + type = city + } + } + } + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 # On average ca 1 year before taken + modifier = { + factor = 0.1 # Modified down to ca 10 year average. + } + } + } + + make_primary = { + only_playable = yes + filter = owned + ai_target_filter = owned + + from_potential = { + is_playable = yes + } + + potential = { + is_capital = no + holder_scope = { + character = FROM + } + dejure_liege_title = { + holder_scope = { + character = FROM + } + } + } + allow = { + FROM = { + OR = { + AND = { + is_merchant_republic = no + is_nomadic = no + } + capital_scope = { + ROOT = { + location = { + NOT = { province = PREVPREV } + } + } + } + } + } + } + effect = { + make_capital_holding = yes + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + + modifier = { # Not if this settlement is not allowed + factor = 0 + NOT = { is_allowed_holding_type = FROM } + } + + modifier = { # Not if existing capital is preferred + factor = 0 + defacto_liege_title = { + is_preferred_holding_type = FROM + } + } + + modifier = { # Not if this settlement is not preferred and another settlement is + factor = 0 + NOT = { is_preferred_holding_type = FROM } + defacto_liege_title = { + any_direct_de_jure_vassal_title = { + holder = FROM + is_preferred_holding_type = FROM + } + } + } + } + } + + revoke_primary = { + only_playable = yes + filter = owned + ai_target_filter = owned + + from_potential = { + is_playable = yes + is_nomadic = yes + has_dlc = "Horse Lords" + } + + potential = { + is_capital = yes + holder_scope = { + character = FROM + capital_holding = { + NOT = { + title = PREVPREV + } + } + } + capital_scope = { + has_empty_holding = yes + } + NOT = { holding_type = nomad } + } + effect = { + revoke_capital_holding = yes + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + } + } + + pillage_settlement = { + only_independent = yes + filter = owned + ai_target_filter = owned + is_high_prio = yes + + from_potential = { + is_playable = yes + OR = { + is_nomadic = yes + is_tribal = yes + } + has_dlc = "Horse Lords" + } + + potential = { + NOT = { holding_type = nomad } + OR = { + NOT = { holding_type = tribal } + FROM = { is_tribal = no } + } + OR = { + FROM = { is_nomadic = yes } + location = { + num_of_settlements = 2 + } + } + owner = { character = FROM } + } + + allow = { + NOT = { has_holding_modifier = recently_burnt_the_land } + owner = { independent = yes } + has_siege = no + custom_tooltip = { + text = stop_pillaging_custom_tooltip + hidden_tooltip = { + NOT = { has_holding_modifier = stop_burning_land } + } + } + } + + effect = { + + hidden_tooltip = { + location = { save_event_target_as = nickname_target } + FROM = { save_event_target_as = nickname_receiver } + if = { + limit = { + owner = { + has_nickname = no + is_adult = yes + NOT = { trait = incapable } + } + } + random_list = { + 5 = { + owner = { give_nickname = nick_the_destroyer } + } + 5 = { + owner = { give_nickname = nick_the_scourge_of_god } + modifier = { + factor = 0 + event_target:nickname_target = { religion = FROM } + } + } + 5 = { + owner = { give_nickname = nick_the_slayer_of_culture } + modifier = { + factor = 0 + event_target:nickname_target = { culture = FROM } + } + } + 5 = { + owner = { give_nickname = nick_the_terror_of_provincename } + } + 5 = { + owner = { give_nickname = nick_the_culture_marauder } + modifier = { + factor = 0 + event_target:nickname_target = { culture = FROM } + } + } + 75 = {} + } + } + } + + if = { + limit = { NOT = { holding_type = tribal } } + FROM = { + wealth = 50 + } + custom_tooltip = { + text = gain_tech_custom_tooltip + hidden_tooltip = { + FROM = { + random_list = { + 10 = { military_techpoints = 5 } + 10 = { economy_techpoints = 5 } + 10 = { culture_techpoints = 5 } + } + } + } + } + } + if = { + limit = { holding_type = tribal } + FROM = { + wealth = 25 + population = 150 + } + } + + custom_tooltip = { + text = "PILLAGE_DESTROY_BUILDINGS" + hidden_tooltip = { + destroy_random_building = THIS + destroy_random_building = THIS + add_holding_modifier = { + modifier = recently_burnt_the_land + months = 7 + } + } + } + + hidden_tooltip = { + + location = { + add_province_modifier = { + modifier = rampaging_nomads + years = 10 + } + } + + location = { + add_province_modifier = { + modifier = burnt_the_land + years = 10 + } + } + + if = { + limit = { + OR = { + FROM = { + NOT = { has_character_modifier = pillage_cooldown } + } + FROM = { + NOT = { + any_realm_province = { + any_province_holding = { + owner = { character = FROM } + has_holding_modifier = recently_burnt_the_land + NOT = { has_holding_modifier = stop_burning_land } + } + } + } + } + } + } + FROM = { character_event = { id = HL.4800 days = 180 } } + FROM = { + add_character_modifier = { + modifier = pillage_cooldown + hidden = yes + months = 6 + } + } + } + } + + if = { + limit = { + NOT = { has_any_building = yes } + owner = { + character = FROM + } + } + hidden_tooltip = { + location = { + province_event = { id = HL.4810 days = 1 } + province_event = { id = HL.4814 days = 2 random = 2 } + } + } + destroy_settlement = THIS + } + + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + + modifier = { # Only for tribal holdings + factor = 0 + NOT = { holding_type = tribal } + } + } + } + + stop_pillage_settlement = { + only_playable = yes + filter = owned + ai_target_filter = owned + + from_potential = { + is_playable = yes + OR = { + is_nomadic = yes + is_tribal = yes + } + has_dlc = "Horse Lords" + } + + potential = { + has_holding_modifier = recently_burnt_the_land + NOT = { has_holding_modifier = stop_burning_land } + NOT = { holding_type = nomad } + OR = { + NOT = { holding_type = tribal } + FROM = { is_tribal = no } + } + owner = { character = FROM } + } + + allow = { + has_holding_modifier = recently_burnt_the_land + hidden_tooltip = { + NOT = { has_holding_modifier = stop_burning_land } + } + } + + effect = { + + hidden_tooltip = { + add_holding_modifier = { + modifier = stop_burning_land + hidden = yes + years = 1 + } + } + + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0 + } + } + + adopt_tribalism = { + only_independent = yes + filter = sub_realm_owned + ai_target_filter = sub_realm_owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_nomadic = yes + has_dlc = "Horse Lords" + is_landed = yes + + OR = { + ai = yes + AND = { + #OR = { + #has_dlc = "The Sword of Islam" + #NOT = { religion_group = muslim } + #} + OR = { + has_dlc = "The Old Gods" + NOR = { + religion_group = pagan_group + #religion_group = zoroastrian_group + } + } + #OR = { + #has_dlc = "Sons of Abraham" + #NOT = { religion_group = jewish_group } + #} + #OR = { + #has_dlc = "Rajas of India" + #NOT = { religion_group = indian_group } + #} + } + } + } + potential = { + OR = { + holding_type = tribal + AND = { + holding_type = nomad + holder_scope = { + character = FROM + } + } + } + holder_scope = { + OR = { + character = FROM + AND = { + any_liege = { + character = FROM + } + NOR = { + is_nomadic = yes + any_liege = { + NOT = { character = FROM } + is_nomadic = yes + } + } + } + } + } + } + allow = { + OR = { + is_capital = yes + capital_scope = { + holder_scope = { + character = FROM + } + } + } + has_siege = no + FROM = { + independent = yes + war = no + } + + OR = { + holding_type = tribal + AND = { + holding_type = nomad + has_building = no_baghatur_council_2 + } + } + } + effect = { + # Change culture and religion of new capital province and possibly more provinces depending on nomad population_and_manpower + location = { + if = { + limit = { + NOT = { culture = FROM } + } + culture = FROM + } + if = { + limit = { + NOT = { religion = FROM } + } + religion = FROM + } + } + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + ROOT = { + location = { + NOT = { province = PREVPREV } # Another province, not the capital + } + } + } + } + } + custom_tooltip = { text = nomad_settle_conversion_tooltip } + } + hidden_tooltip = { + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 10000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 15000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 20000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 25000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 30000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 35000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 40000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 45000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 50000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 55000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 60000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 65000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 70000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 75000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 80000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 85000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 90000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 95000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + } + + # Usurp kingdom if only one vassal has a kingdom + FROM = { + if = { + limit = { + any_vassal = { + OR = { + is_feudal = yes + is_tribal = yes + } + } + NOT = { + any_vassal = { + count = 2 + OR = { + is_feudal = yes + is_tribal = yes + } + tier = KING + } + } + } + any_vassal = { + limit = { + OR = { + is_feudal = yes + is_tribal = yes + } + tier = KING + } + any_demesne_title = { + limit = { + tier = KING + } + usurp_title = FROM + } + } + } + } + + # Change name of Avaria to Hungary if relevant. + if = { + limit = { + FROM = { + culture = hungarian + } + location = { + kingdom = { title = k_hungary } + } + k_hungary = { + OR = { + has_holder = no + holder = FROM + } + } + } + set_global_flag = avar_khaganate_renamed + k_hungary = { + reset_coa = THIS + set_name="" + adjective="" + grant_title = FROM + } + } + + if = { + limit = { NOT = { holder = FROM } } + usurp_title = FROM + } + + if = { + limit = { is_capital = no } + make_capital_holding = yes + } + + FROM = { + capital = PREV + } + + custom_tooltip = { + text = TT_BUILD_TRIBAL_HOLDINGS + } + + location ={ + county = { + save_event_target_as = primary_title + } + } + + FROM = { + #primary_title = { + # ROOT = { + # custom_tooltip = { + # text = TT_KHAN_INDEPENDENCE + # } + # most_prestigious_clan_vassal = { + # custom_tooltip = { + # text = TT_NEW_KHAN + # } + # } + # } + #} + + if = { + limit = { + ai = no + } + chronicle = { + entry = CHRONICLE_ADOPTED_TRIBALISM + picture = GFX_evt_tribal_lands + } + } + + any_vassal = { + limit = { + government = nomadic_government + } + set_government_type = tribal_government + } + + set_government_type = tribal_government + + if = { + limit = { + NOR = { + tier = KING + tier = EMPEROR + } + } + create_title = { + tier = KING + landless = no + temporary = no + custom_created = yes + culture = FROM + holder = FROM + name = "TRIBAL_CUSTOM" + base_title = event_target:primary_title + copy_title_laws = yes + } + } + + if = { + limit = { + higher_tier_than = count + } + primary_title = { + add_law = tribal_organization_0 + add_law = centralization_0 + } + } + + any_playable_ruler = { + limit = { + NOT = { character = FROM } + ai = no + } + narrative_event = { id = HL.2 } + } + } + + # Spawn event troops based on province holdings. + hidden_tooltip = { + location = { + FROM = { + any_realm_province = { + limit = { + any_province_holding = { + holding_type = tribal + } + } + FROM = { + spawn_unit = { + province = PREVPREVPREV + owner = THIS + troops = { + light_infantry = { 50 50 } + light_cavalry = { 35 35 } + horse_archers = { 15 15 } + } + attrition = 1 + merge = yes + } + } + } + } + } + } + + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 1 + modifier = { + factor = 0 + FROM = { + any_realm_province = { + region = world_steppe + count = 7 + } + } + } + modifier = { + factor = 0 + FROM = { + NOT = { + num_of_count_titles_in_realm = 20 + } + } + } + modifier = { + factor = 0 + FROM = { + capital_scope = { + region = world_steppe + } + } + } + modifier = { + factor = 0 + FROM = { + NOR = { + trait = content + culture = hungarian + culture = alan + NOT = { + religion_group = pagan_group + } + } + } + } + modifier = { + factor = 0 + FROM = { + OR = { + num_of_subrealm_castles = 5 + num_of_subrealm_cities = 5 + } + } + } + } + } + + nomad_adopt_feudalism = { + only_independent = yes + filter = sub_realm_owned + ai_target_filter = sub_realm_owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_nomadic = yes + has_dlc = "Horse Lords" + + OR = { + ai = yes + AND = { + #OR = { + #has_dlc = "The Sword of Islam" + #NOT = { religion_group = muslim } + #} + OR = { + has_dlc = "The Old Gods" + NOR = { + religion_group = pagan_group + #religion_group = zoroastrian_group + } + } + #OR = { + #has_dlc = "Sons of Abraham" + #NOT = { religion_group = jewish_group } + #} + #OR = { + #has_dlc = "Rajas of India" + #NOT = { religion_group = indian_group } + #} + } + } + } + potential = { + OR = { + holding_type = castle + #AND = { + #holding_type = temple + #holder_scope = { + #religion_group = muslim + #} + #} + } + holder_scope = { + OR = { + character = FROM + AND = { + any_liege = { + character = FROM + } + NOR = { + is_nomadic = yes + any_liege = { + NOT = { character = FROM } + is_nomadic = yes + } + } + } + } + } + } + allow = { + OR = { + is_capital = yes + capital_scope = { + holder_scope = { + character = FROM + } + } + } + has_siege = no + FROM = { + independent = yes + war = no + } + } + effect = { + # Change culture and religion of new capital province and possibly more provinces depending on nomad population_and_manpower + location = { + if = { + limit = { + NOT = { culture = FROM } + } + culture = FROM + } + if = { + limit = { + NOT = { religion = FROM } + } + religion = FROM + } + } + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + ROOT = { + location = { + NOT = { province = PREVPREV } # Another province, not the capital + } + } + } + } + } + custom_tooltip = { text = nomad_settle_conversion_tooltip } + } + hidden_tooltip = { + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 10000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 15000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 20000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 25000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 30000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 35000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 40000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 45000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 50000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 55000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 60000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 65000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 70000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 75000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 80000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 85000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 90000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 95000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + } + + # Usurp kingdom if only one vassal has a kingdom + FROM = { + if = { + limit = { + any_vassal = { + is_feudal = yes + } + NOT = { + any_vassal = { + count = 2 + is_feudal = yes + tier = KING + } + } + } + any_vassal = { + limit = { + OR = { + is_feudal = yes + is_tribal = yes + } + tier = KING + } + any_demesne_title = { + limit = { + tier = KING + } + usurp_title = FROM + } + } + } + } + # Change name of Avaria to Hungary if relevant. + if = { + limit = { + FROM = { + culture = hungarian + } + location = { + kingdom = { title = k_hungary } + } + k_hungary = { + OR = { + has_holder = no + holder = FROM + } + } + } + set_global_flag = avar_khaganate_renamed + k_hungary = { + reset_coa = THIS + set_name="" + adjective="" + grant_title = FROM + } + } + + if = { + limit = { + FROM = { + dynasty = 708 #Ãrpád + has_landed_title = k_hungary + } + } + hidden_tooltip = { + FROM = { + any_realm_province = { + limit = { + culture = avar + } + culture = PREV + religion = PREV + } + } + } + } + + # Spawn event troops based on amount of empty holdings abandoned. + custom_tooltip = { + text = NOMAD_CONVERSION_TROOP_SPAWN + hidden_tooltip = { + location = { + FROM = { + any_realm_province = { + limit = { + NOT = { + any_province_holding = { + NOT = { holding_type = nomad } + } + } + } + FROM = { + spawn_unit = { + province = PREVPREVPREV + owner = THIS + troops = { + light_cavalry = { 140 140 } + horse_archers = { 60 60 } + } + attrition = 1 + merge = yes + } + } + } + } + } + } + } + + if = { + limit = { NOT = { holder = FROM } } + usurp_title = FROM + } + + if = { + limit = { is_capital = no } + make_capital_holding = yes + } + + FROM = { + capital = PREV + + primary_title = { + FROM = { + custom_tooltip = { + text = TT_KHAN_INDEPENDENCE + } + most_prestigious_clan_vassal = { + custom_tooltip = { + text = TT_NEW_KHAN + } + } + } + } + + if = { + limit = { + ai = no + } + chronicle = { + entry = CHRONICLE_NOMAD_ADOPTED_FEUDALISM + picture = GFX_evt_castle_construction + } + } + set_government_type = feudal_government + + #if = { + # limit = { + # religion_group = muslim + # } + # + # if = { + # limit = { + # ai = no + # } + # chronicle = { + # entry = CHRONICLE_NOMAD_ADOPTED_IQTA + # picture = GFX_evt_castle_construction + # } + # } + # set_government_type = muslim_government + #} + + if = { + limit = { + higher_tier_than = king + } + primary_title = { + add_law = feudal_administration + } + } + + if = { + limit = { + higher_tier_than = count + } + primary_title = { + add_law = centralization_0 + } + } + + any_playable_ruler = { + limit = { + NOT = { character = FROM } + ai = no + } + narrative_event = { id = HL.1 } + } + } + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0.1 # On average ca 1 year before taken + + modifier = { + factor = 100 + FROM = { + dynasty = 708 # Ãrpád + } + } + + modifier = { + factor = 0 + FROM = { + NOT = { num_of_subrealm_castles = 20 } + population_and_manpower = 5000 + NOT = { dynasty = 708 } # Ãrpád + } + } + + modifier = { + factor = 0 + FROM = { + NOT = { num_of_subrealm_castles = 10 } + NOT = { dynasty = 708 } # Ãrpád + } + } + + modifier = { + factor = 0 + FROM = { + OR = { + trait = ambitious + trait = stubborn + trait = proud + } + NOT = { dynasty = 708 } # Ãrpád + } + } + + modifier = { + factor = 0 + FROM = { + NOT = { + holding_diff = { + first_type = castle + first_count_vassals = yes + second_type = none + value = 1.5 + } + } + NOT = { dynasty = 708 } # Ãrpád + } + } + + modifier = { + factor = 0 + FROM = { + any_demesne_title = { + OR = { + title = e_mongol_empire + title = e_golden_horde + title = e_chagatai + } + } + } + } + } + } + + nomad_adopt_republicanism = { + only_independent = yes + filter = sub_realm_owned + ai_target_filter = sub_realm_owned + is_high_prio = yes + + from_potential = { + is_playable = yes + is_nomadic = yes + is_female = no + OR = { + ai = yes + has_dlc = "The Republic" + } + has_dlc = "Horse Lords" + + OR = { + ai = yes + AND = { + #OR = { + #has_dlc = "The Sword of Islam" + #NOT = { religion_group = muslim } + #} + OR = { + has_dlc = "The Old Gods" + NOR = { + religion_group = pagan_group + #religion_group = zoroastrian_group + } + } + #OR = { + #has_dlc = "Sons of Abraham" + #NOT = { religion_group = jewish_group } + #} + #OR = { + #has_dlc = "Rajas of India" + #NOT = { religion_group = indian_group } + #} + } + } + } + + potential = { + holding_type = city + OR = { + FROM = { + ai = yes + } + capital_scope = { + port = yes + } + } + holder_scope = { + OR = { + character = FROM + AND = { + any_liege = { + character = FROM + } + NOR = { + is_nomadic = yes + any_liege = { + NOT = { character = FROM } + is_nomadic = yes + } + } + } + } + } + } + allow = { + OR = { + is_capital = yes + capital_scope = { + holder_scope = { + character = FROM + } + } + } + has_siege = no + + FROM = { + independent = yes + war = no + } + } + effect = { + # Change culture and religion of new capital province and possibly more provinces depending on nomad population_and_manpower + location = { + if = { + limit = { + NOT = { culture = FROM } + } + culture = FROM + } + if = { + limit = { + NOT = { religion = FROM } + } + religion = FROM + } + } + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + ROOT = { + location = { + NOT = { province = PREVPREV } # Another province, not the capital + } + } + } + } + } + custom_tooltip = { text = nomad_settle_conversion_tooltip } + } + hidden_tooltip = { + if = { + limit = { + FROM = { + population_and_manpower = 5000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 10000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 15000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 20000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 25000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 30000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 35000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 40000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 45000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 50000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 55000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 60000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 65000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 70000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 75000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 80000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 85000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 90000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + if = { + limit = { + FROM = { + population_and_manpower = 95000 + any_realm_province = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + } + } + FROM = { + random_realm_province = { + limit = { + NOT = { culture = FROM } + num_of_settlements = 1 + any_neighbor_province = { + culture = FROM + religion = FROM + } + } + culture = FROM + religion = FROM + } + } + } + } + + # Change name of Avaria to Hungary if relevant. + if = { + limit = { + FROM = { + culture = hungarian + } + location = { + kingdom = { title = k_hungary } + } + k_hungary = { + OR = { + has_holder = no + holder = FROM + } + } + } + set_global_flag = avar_khaganate_renamed + k_hungary = { + reset_coa = THIS + set_name="" + adjective="" + grant_title = FROM + } + } + + # Spawn event troops based on amount of empty holdings abandoned. + custom_tooltip = { + text = NOMAD_CONVERSION_TROOP_SPAWN + hidden_tooltip = { + location = { + FROM = { + any_realm_province = { + limit = { + NOT = { + any_province_holding = { + NOT = { holding_type = nomad } + } + } + } + FROM = { + spawn_unit = { + province = PREVPREVPREV + owner = THIS + troops = { + light_cavalry = { 140 140 } + horse_archers = { 60 60 } + } + attrition = 1 + merge = yes + } + } + } + } + } + } + } + + if = { + limit = { NOT = { holder = FROM } } + usurp_title = FROM + } + + if = { + limit = { is_capital = no } + make_capital_holding = yes + } + + FROM = { + capital = PREV + + primary_title = { + FROM = { + custom_tooltip = { + text = TT_KHAN_INDEPENDENCE + } + most_prestigious_clan_vassal = { + custom_tooltip = { + text = TT_NEW_KHAN + } + } + } + } + } + + hidden_tooltip = { + if = { + limit = { + capital_scope = { + port = yes + } + } + FROM = { + primary_title = { + create_title = { + tier = DUKE + landless = no + temporary = no + custom_created = yes + culture = FROM + holder = FROM + base_title = THIS + } + } + + create_family_palace = yes + + if = { + limit = { + NOT = { + num_of_government_vassals = { + government = merchant_republic_government + value = 1 + } + } + } + + any_unique_dynasty_vassal = { # gives random vassals a family palace + count = 4 + limit = { + is_female = no + OR = { + is_republic = yes + is_tribal = yes + } + is_patrician = no + prisoner = no + NOT = { trait = incapable } + is_adult = yes + NOT = { + dynasty = none + } + } + + if = { + limit = { is_tribal = yes } + + hidden_tooltip = { + any_demesne_title = { + limit = { + tier = baron + holding_type = tribal + } + convert_to = CITY + refill_holding_levy = yes + + if = { + limit = { + dejure_liege_title = { + holder = PREVPREV + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = castle + } + } + } + } + location = { + build_holding = { + type = castle + } + } + } + if = { + limit = { + dejure_liege_title = { + holder = PREVPREV + location = { + num_of_empty_holdings = 2 + } + NOT = { + any_direct_de_jure_vassal_title = { + holding_type = temple + } + } + } + } + location = { + build_holding = { + type = temple + } + } + } + } + } + } + + create_family_palace = yes + } + } + + set_government_type = merchant_republic_government + } + } + } + + if = { + limit = { + capital_scope = { + port = yes + } + } + FROM = { + set_government_type = merchant_republic_government + } + } + if = { + limit = { + capital_scope = { + port = no + } + } + FROM = { + set_government_type = republic_government + } + } + + FROM = { + chronicle = { + entry = CHRONICLE_NOMAD_FOUNDED_MERCHANT_REPUBLIC + picture = GFX_evt_busy_trading_dock_republic + } + + any_playable_ruler = { + limit = { + NOT = { character = FROM } + ai = no + } + narrative_event = { id = HL.1 } + } + } + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 1 + + modifier = { + factor = 0 + FROM = { + NOR = { + trait = midas_touched + trait = fortune_builder + trait = greedy + trait = administrator + trait = architect + } + } + } + + modifier = { + factor = 0 + FROM = { + NOT = { num_of_subrealm_cities = 20 } + population_and_manpower = 5000 + } + } + + modifier = { + factor = 0 + FROM = { + NOT = { num_of_subrealm_cities = 10 } + } + } + + modifier = { + factor = 0 + FROM = { + OR = { + trait = ambitious + trait = stubborn + trait = proud + } + } + } + + modifier = { + factor = 0 + FROM = { + holding_diff = { + first_type = city + first_count_vassals = yes + second_type = none + value = 1.5 + } + } + } + + modifier = { + factor = 5.0 + FROM = { + trait = greedy + } + } + + modifier = { + factor = 2.0 + FROM = { + stewardship = 12 + } + } + + modifier = { + factor = 2.0 + FROM = { + stewardship = 14 + } + } + + modifier = { + factor = 2.0 + FROM = { + stewardship = 18 + } + } + + modifier = { + factor = 0 + FROM = { + any_demesne_title = { + OR = { + title = e_mongol_empire + title = e_golden_horde + title = e_chagatai + } + } + } + } + } + } + + # Debug decision to fix holdings with a dead owner + fix_holding_with_dead_owner = { + + from_potential = { + is_playable = yes + ai = no + } + potential = { + holder_scope = { + is_alive = no + } + } + allow = { + holder_scope = { + is_alive = no + } + } + effect = { + if = { + limit = { + location = { + holder_scope = { + is_alive = yes + } + } + } + location = { + holder_scope = { + ROOT = { + grant_title = PREV + } + } + } + break = yes + } + grant_title = FROM + } + + revoke_allowed = { + always = no + } + + ai_will_do = { + factor = 0 + } + } +} \ No newline at end of file diff --git a/After the End/events/ambition_events.txt b/After the End/events/ambition_events.txt new file mode 100644 index 000000000..3d3bdf9da --- /dev/null +++ b/After the End/events/ambition_events.txt @@ -0,0 +1,3376 @@ +################################ +# +# Ambition Events +# +# ID 94000 - 95000 reserved +# +################################ + +# Written by Henrik Eklund + +#################### +# Martial Ambition # +#################### + +### Toy Army + +# Toy Army +character_event = { + id = 94000 + desc = EVTDESC94000 + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + hide_from = yes + capable_only = yes + only_rulers = yes + prisoner = no + only_men = yes + is_married = yes + + trigger = { + OR = { + AND = { + has_focus = focus_war + NOT = { martial = 8 } + } + has_ambition = obj_improve_martial + } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + NOT = { has_character_flag = toy_army_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94000 + set_character_flag = toy_army + set_character_flag = toy_army_prepare + set_character_flag = toy_army_taken + change_martial = 1 + } +} + +# Other Toy Army Enthusiasts +character_event = { + id = 94001 + desc = EVTDESC94001 + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + hide_from = yes + prisoner = no + only_rulers = yes + only_capable = yes + min_age = 16 + + trigger = { + has_character_flag = toy_army_prepare + OR = { + has_ambition = obj_improve_martial + has_focus = focus_war + } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA94001 + character_event = { id = 94002 days = 10 tooltip = EVTTOOLTIP94002 } + } + option = { + name = EVTOPTB94001 + clr_character_flag = toy_army + clr_character_flag = toy_army_prepare + } +} + +# Toy Army Tournament Begins +character_event = { + id = 94002 + desc = EVTDESC94002 + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_martial + has_focus = focus_war + } + } + + option = { + name = EVTOPTA94002 + random_list = { + 50 = { + character_event = { id = 94004 tooltip = EVTTOOLTIP94004 } + } + 50 = { + character_event = { id = 94003 tooltip = EVTTOOLTIP94003 } + } + } + } +} + +# Toy Army Tournament Defeat +character_event = { + id = 94003 + desc = EVTDESC94003 + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94003 + tooltip_info = wroth + trigger = { + trait = wroth + } + ambition_succeeds = yes + change_martial = 1 + set_character_flag = improve_martial_success + piety = -10 + } + option = { + name = EVTOPTB94003 + ambition_succeeds = yes + change_martial = 1 + set_character_flag = improve_martial_success + prestige = -15 + } +} + +# Toy Army Tournament Victory +character_event = { + id = 94004 + desc = EVTDESC94004 + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94004 + change_martial = 2 + prestige = 15 + } +} + +### Street Ruffians + +# Street Ruffians +character_event = { + id = 94005 + desc = EVTDESC94005 + picture = GFX_evt_peasants + border = GFX_event_normal_frame_war + + hide_from = yes + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_war + NOT = { martial = 8 } + } + has_ambition = obj_improve_martial + } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + NOT = { has_character_flag = street_ruffians_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94005 + set_character_flag = street_ruffians + set_character_flag = street_ruffians_taken + random_list = { + 50 = { + character_event = { id = 94007 tooltip = EVTTOOLTIP94007 } + } + 50 = { + character_event = { id = 94006 tooltip = EVTTOOLTIP94006 } + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + } + option = { + name = EVTOPTB94005 + custom_tooltip = { text = improve_martial_quit } + } +} + +# Melee Lost +character_event = { + id = 94006 + desc = EVTDESC94006 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94006 + tooltip_info = cruel + trigger = { + trait = cruel + } + change_martial = 1 + piety = -10 + } + option = { + name = EVTOPTB94006 + change_martial = 1 + prestige = -15 + } +} + +# Melee Won +character_event = { + id = 94007 + desc = EVTDESC94007 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94007 + change_martial = 2 + prestige = 15 + } +} + +### Drunken Warrior + +# Drunken Warrior +character_event = { + id = 94010 + desc = EVTDESC94010 + picture = GFX_evt_battle + border = GFX_event_normal_frame_war + + hide_from = yes + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_war + NOT = { martial = 8 } + } + has_ambition = obj_improve_martial + } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + NOT = { has_character_flag = warrior_mentor_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94010 + set_character_flag = warrior_mentor + set_character_flag = warrior_mentor_search + } +} + +# The Warrior is found +character_event = { + id = 94011 + desc = EVTDESC94011 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + only_rulers = yes + + trigger = { + OR = { + has_ambition = obj_improve_martial + has_focus = focus_war + } + has_character_flag = warrior_mentor_search + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA94011 + clr_character_flag = warrior_mentor + clr_character_flag = warrior_mentor_search + custom_tooltip = { text = improve_martial_quit } + } + option = { + name = EVTOPTB94011 + wealth = -50 + character_event = { id = 94012 tooltip = EVTTOOLTIP94012 } + clr_character_flag = warrior_mentor_search + set_character_flag = warrior_mentor_taken + } +} + +# Warrior is asked to teach +character_event = { + id = 94012 + desc = EVTDESC94012 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94012 + character_event = { id = 94013 days = 50 random = 10 tooltip = EVTTOOLTIP94013 } + } + option = { + name = EVTOPTB94012 + clr_character_flag = warrior_mentor + custom_tooltip = { text = improve_martial_quit } + } +} + +# Chopsticks +character_event = { + id = 94013 + desc = EVTDESC94013 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94013 + character_event = { id = 94014 days = 50 random = 10 tooltip = EVTTOOLTIP94014 } + change_martial = 1 + } +} + +# Boat +character_event = { + id = 94014 + desc = EVTDESC94014 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94014 + tooltip_info = wroth + trigger = { + trait = wroth + } + clr_character_flag = warrior_mentor + prestige = -15 + custom_tooltip = { text = improve_martial_quit } + } + option = { + name = EVTOPTB94014 + character_event = { id = 94015 days = 50 random = 10 tooltip = EVTTOOLTIP94014 } + change_martial = 1 + } +} + +# Training Done +character_event = { + id = 94015 + desc = EVTDESC94015 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_war + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94015 + prestige = 15 + change_martial = 2 + if = { + limit = { + is_weak_trigger = yes + } + remove_trait = weak + remove_trait = feeble + } + clr_character_flag = warrior_mentor + } +} + +### Training with the Guard +character_event = { + id = 94016 + desc = EVTDESC94016 + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_war + NOT = { martial = 8 } + } + has_ambition = obj_improve_martial + } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94016 + change_martial = 1 + } +} + +### Horsemanship +character_event = { + id = 94017 + desc = EVTDESC94017 + picture = GFX_evt_joust + border = GFX_event_normal_frame_war + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_hunting + NOT = { martial = 8 } + } + has_ambition = obj_improve_martial + } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94017 + change_martial = 1 + } +} + +### Alexander/Ashoka the Great +character_event = { + id = 94018 + picture = GFX_evt_library + border = GFX_event_normal_frame_war + + desc = { + text = EVTDESC94018 + trigger = { + capital_scope = { NOT = { region = world_india } } + } + } + desc = { + text = EVTDESC94018_india + trigger = { + capital_scope = { region = world_india } + } + } + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_war + NOT = { martial = 8 } + NOT = { has_character_flag = toy_army } + NOT = { has_character_flag = street_ruffians } + NOT = { has_character_flag = warrior_mentor } + NOT = { has_character_modifier = student_of_strategy } + NOT = { has_character_modifier = adept_of_strategy } + NOT = { trait = strategist } + } + AND = { + has_focus = focus_war + NOT = { lifestyle_traits = 1 } + NOT = { has_character_modifier = student_of_strategy } + NOT = { has_character_modifier = adept_of_strategy } + } + has_ambition = obj_improve_martial + } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94018 + trigger = { + capital_scope = { NOT = { region = world_india } } + OR = { + has_ambition = obj_improve_martial + NOT = { martial = 8 } + } + } + change_martial = 1 + } + option = { + name = EVTOPTB_94018 + trigger = { + capital_scope = { region = world_india } + OR = { + has_ambition = obj_improve_martial + NOT = { martial = 8 } + } + } + change_martial = 1 + } + option = { + name = EVTOPTC_94018 # Study further + trigger = { + has_focus = focus_war + } + add_character_modifier = { + modifier = student_of_strategy + duration = -1 + } + custom_tooltip = { text = studying_strategy_tooltip } + hidden_tooltip = { character_event = { id = 94019 days = 300 random = 900 } } + } +} + +# Further studies in strategy +character_event = { + id = 94019 + picture = GFX_evt_library + border = GFX_event_normal_frame_war + + desc = { + text = EVTDESC_94019 + trigger = { + capital_scope = { + NOT = { region = world_india } + } + } + } + desc = { + text = EVTDESC_94019_india + trigger = { + capital_scope = { + region = world_india + } + } + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_94019 + trigger = { + has_focus = focus_war + NOT = { lifestyle_traits = 1 } + has_character_modifier = adept_of_strategy + } + remove_character_modifier = adept_of_strategy + add_trait = strategist + } + option = { + name = EVTOPTA_94019 + trigger = { + has_character_modifier = student_of_strategy + } + remove_character_modifier = student_of_strategy + add_character_modifier = { + modifier = adept_of_strategy + duration = -1 + } + } + option = { + name = EVTOPTB_94019 + trigger = { + has_character_modifier = adept_of_strategy + } + prestige = 25 + } + option = { + name = EVTOPTC_94019 + trigger = { + trait = strategist + } + add_character_modifier = { + modifier = strategic_innovation + duration = 1095 + } + } +} + +######################## +# Stewardship Ambition # +######################## + +### The Inn + +# The Inn +character_event = { + id = 94050 + desc = EVTDESC94050 + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_business + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + wealth = 100 + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + NOT = { has_character_flag = the_inn_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94050 + character_event = { id = 94051 days = 30 random = 10 tooltip = EVTTOOLTIP94051 } + wealth = -50 + set_character_flag = the_inn + set_character_flag = the_inn_taken + } + option = { + name = EVTOPTB94050 + custom_tooltip = { text = improve_stewardship_quit } + } +} + +# The Inn's name +character_event = { + id = 94051 + desc = EVTDESC94051 + picture = GFX_evt_feast + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_stewardship + has_focus = focus_business + } + has_character_flag = the_inn + } + + option = { + name = EVTOPTA94051 + trigger = { NOT = { uses_decadence = yes } } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTB94051 + trigger = { + NOT = { uses_decadence = yes } + NOT = { religion_group = indian_group } + } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTC94051 + trigger = { NOT = { uses_decadence = yes } } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTD94051 + trigger = { + NOT = { uses_decadence = yes } + NOT = { religion_group = indian_group } + } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTE94051 + trigger = { uses_decadence = yes } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTF94051 + trigger = { uses_decadence = yes } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTG94051 + trigger = { uses_decadence = yes } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } + option = { + name = EVTOPTH94051 + trigger = { uses_decadence = yes } + character_event = { id = 94052 days = 30 random = 10 tooltip = EVTTOOLTIP94052 } + } +} + +# Salt the turnips +character_event = { + id = 94052 + desc = EVTDESC94052 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_stewardship + has_focus = focus_business + } + has_character_flag = the_inn + } + + option = { + name = EVTOPTA94052 + set_character_flag = 10_salt + character_event = { id = 94053 days = 30 random = 10 tooltip = EVTTOOLTIP94053 } + } + option = { + name = EVTOPTB94052 + set_character_flag = 20_salt + character_event = { id = 94053 days = 30 random = 10 tooltip = EVTTOOLTIP94053 } + } + option = { + name = EVTOPTC94052 + set_character_flag = 30_salt + character_event = { id = 94053 days = 30 random = 10 tooltip = EVTTOOLTIP94053 } + } + option = { + name = EVTOPTD94052 + set_character_flag = all_salt + character_event = { id = 94053 days = 30 random = 10 tooltip = EVTTOOLTIP94053 } + } +} + +# Entertainment +character_event = { + id = 94053 + desc = EVTDESC94053 + picture = GFX_evt_feast + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_stewardship + has_focus = focus_business + } + has_character_flag = the_inn + } + + option = { + name = EVTOPTA94053 + trigger = { + religion_group = christian + } + character_event = { id = 94054 days = 30 random = 10 tooltip = EVTTOOLTIP94054 } + wealth = -5 + } + option = { + name = EVTOPTB94053 + character_event = { id = 94055 days = 30 random = 10 tooltip = EVTTOOLTIP94055 } + wealth = -10 + } + option = { + name = EVTOPTC94053 + trigger = { + NOT = { + religion_group = indian_group + } + } + character_event = { id = 94056 days = 30 random = 10 tooltip = EVTTOOLTIP94056 } + wealth = -15 + } + option = { + name = EVTOPTD94053 + character_event = { id = 94057 days = 30 random = 10 tooltip = EVTTOOLTIP94057 } + } +} + +# Clergyman +character_event = { + id = 94054 + desc = EVTDESC94054 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94054 + hidden_tooltip = { + character_event = { id = 94059 days = 5 } + character_event = { id = 94058 days = 5 } + } + wealth = 10 + } +} + +# Bard +character_event = { + id = 94055 + desc = EVTDESC94055 + picture = GFX_evt_feast + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94055 + hidden_tooltip = { + character_event = { id = 94059 days = 5 } + character_event = { id = 94058 days = 5 } + } + wealth = 15 + } +} + +# Eunuch +character_event = { + id = 94056 + desc = EVTDESC94056 + picture = GFX_evt_peasants + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94056 + hidden_tooltip = { + character_event = { id = 94059 days = 5 } + character_event = { id = 94058 days = 5 } + } + wealth = -10 + } +} + +# Wild Ass +character_event = { + id = 94057 + desc = EVTDESC94057 + picture = GFX_evt_burning_house + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94057 + hidden_tooltip = { + character_event = { id = 94059 days = 5 } + character_event = { id = 94058 days = 5 } + } + wealth = -20 + } +} + +# Salt Disaster +character_event = { + id = 94058 + desc = EVTDESC94058 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = all_salt + } + + option = { + name = EVTOPTA94058 + hidden_tooltip = { + character_event = { id = 94060 days = 5 } + } + wealth = -20 + } +} + +# Salt Profit +character_event = { + id = 94059 + desc = EVTDESC94059 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + NOT = { has_character_flag = all_salt } + } + + option = { + name = EVTOPTA94059 + trigger = { + has_character_flag = 10_salt + } + wealth = 15 + hidden_tooltip = { + character_event = { id = 94060 days = 5 } + } + } + option = { + name = EVTOPTA94059 + trigger = { + has_character_flag = 20_salt + } + wealth = 20 + hidden_tooltip = { + character_event = { id = 94060 days = 5 } + } + } + option = { + name = EVTOPTA94059 + trigger = { + has_character_flag = 30_salt + } + wealth = 25 + hidden_tooltip = { + character_event = { id = 94060 days = 5 } + } + } +} + +# Opening Night Over +character_event = { + id = 94060 + desc = EVTDESC94060 + picture = GFX_evt_feast + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94060 + wealth = 65 + change_stewardship = 2 + clr_character_flag = 10_salt + clr_character_flag = 20_salt + clr_character_flag = 30_salt + clr_character_flag = all_salt + } +} + +### The Garden + +# The Garden +character_event = { + id = 94065 + desc = EVTDESC94065 + picture = GFX_evt_garden + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_business + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + NOT = { has_character_flag = the_garden_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94065 + character_event = { id = 94066 days = 50 random = 10 tooltip = EVTTOOLTIP94066 } + set_character_flag = the_garden + set_character_flag = the_garden_taken + } + option = { + name = EVTOPTB94065 + custom_tooltip = { text = improve_stewardship_quit } + } +} + +# Gardening Done +character_event = { + id = 94066 + desc = EVTDESC94066 + picture = GFX_evt_garden + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94066 + change_stewardship = 2 + if = { + limit = { NOT = { lifestyle_traits = 1 } } + add_trait = gardener + } + } +} + +### Land Survey + +# Land Survey +character_event = { + id = 94070 + desc = EVTDESC94070 + picture = GFX_evt_council + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_rulership + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + NOT = { has_character_flag = the_survey_taken } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94070 + set_character_flag = the_survey + set_character_flag = the_survey_taken + character_event = { id = 94071 days = 260 random = 50 tooltip = EVTTOOLTIP94071 } + } + option = { + name = EVTOPTB94070 + custom_tooltip = { text = improve_stewardship_quit } + } +} + +# Survey Complete +character_event = { + id = 94071 + desc = EVTDESC94071 + picture = GFX_evt_council + border = GFX_event_normal_frame_economy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94071 + change_stewardship = 2 + } +} + +### Bookkeeping +character_event = { + id = 94072 + desc = EVTDESC94072 + picture = GFX_evt_monk + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_business + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94072 + change_stewardship = 1 + } +} + +### Delegation +character_event = { + id = 94073 + desc = EVTDESC94073 + picture = GFX_evt_council + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_rulership + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94073 + change_stewardship = 1 + } +} + +### Servant Staff +character_event = { + id = 94074 + desc = EVTDESC94074 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_rulership + NOT = { stewardship = 8 } + } + has_ambition = obj_improve_stewardship + } + NOT = { has_character_flag = the_inn } + NOT = { has_character_flag = the_garden } + NOT = { has_character_flag = the_survey } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94074 + change_stewardship = 1 + } +} + +##################### +# Learning Ambition # +##################### + +### The Flying Machine + +# The Flying Machine +character_event = { + id = 94080 + desc = EVTDESC94080 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_scholarship + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + NOT = { has_character_flag = flying_machine_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94080 + character_event = { id = 94081 days = 30 random = 10 tooltip = EVTTOOLTIP94081 } + set_character_flag = flying_machine + set_character_flag = meldrick_fly + set_character_flag = flying_machine_taken + } + option = { + name = EVTOPTB94080 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Studies +character_event = { + id = 94081 + desc = EVTDESC94081 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_learning + has_focus = focus_scholarship + } + has_character_flag = flying_machine + } + + option = { + name = EVTOPTA94081 + character_event = { id = 94082 days = 30 random = 10 tooltip = EVTTOOLTIP94082 } + } +} + +# Enlist Pilot +character_event = { + id = 94082 + desc = EVTDESC94082 + picture = GFX_evt_council + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_learning + has_focus = focus_scholarship + } + has_character_flag = flying_machine + } + + option = { # Otis + name = EVTOPTA94082 + #trigger = { + # NOT = { religion_group = muslim } + # NOT = { religion_group = indian_group } + #} + character_event = { id = 94083 days = 5 tooltip = EVTTOOLTIP94083 } + } + option = { # Meldrick + name = EVTOPTB94082 + #trigger = { + # NOT = { religion_group = muslim } + # NOT = { religion_group = indian_group } + #} + character_event = { id = 94084 days = 5 tooltip = EVTTOOLTIP94084 } + } + option = { # Dog + name = EVTOPTC94082 + character_event = { id = 94085 days = 5 tooltip = EVTTOOLTIP94085 } + } + #option = { # al-Otis #These options exist to give different flavour to the "test subjects", could be modified for local flavour in AtE + # name = EVTOPTD94082 + # trigger = { + # OR = { + # religion_group = muslim + # religion_group = indian_group + # } + # } + # character_event = { id = 94092 days = 5 tooltip = EVTTOOLTIP94092 } + #} + #option = { # Ba'ah al-Drik + # name = EVTOPTE94082 + # trigger = { + # OR = { + # religion_group = muslim + # religion_group = indian_group + # } + # } + # character_event = { id = 94093 days = 5 tooltip = EVTTOOLTIP94093 } + #} +} + +# Otis Flies +character_event = { + id = 94083 + desc = EVTDESC94083 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94083 + character_event = { id = 94086 days = 5 tooltip = EVTTOOLTIP94086 } + } +} + +# al-Otis Flies (Muslim version) +character_event = { + id = 94092 + desc = EVTDESC94092 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94092 + character_event = { id = 94094 days = 5 tooltip = EVTTOOLTIP94086 } + } +} + +# Meldrick Flies +character_event = { + id = 94084 + desc = EVTDESC94084 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94084 + character_event = { id = 94087 days = 5 tooltip = EVTTOOLTIP94086 } + } +} + +# Ba'ah al-Drik Flies (Muslim version) +character_event = { + id = 94093 + desc = EVTDESC94093 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94093 + character_event = { id = 94095 days = 5 tooltip = EVTTOOLTIP94086 } + } +} + +# Dog Flies +character_event = { + id = 94085 + desc = EVTDESC94085 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94085 + character_event = { id = 94088 days = 5 tooltip = EVTTOOLTIP94088 } + add_trait = wounded + } +} + +# Otis Aftermath +character_event = { + id = 94086 + desc = EVTDESC94086 + picture = GFX_evt_council + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94086 + character_event = { id = 94089 days = 15 random = 5 tooltip = EVTTOOLTIP94089 } + } + option = { + name = EVTOPTB94086 + custom_tooltip = { text = improve_learning_quit } + } +} + +# al-Otis Aftermath (Muslim version) +character_event = { + id = 94094 + desc = EVTDESC94094 + picture = GFX_evt_council + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94086 + character_event = { id = 94096 days = 15 random = 5 tooltip = EVTTOOLTIP94089 } + } + option = { + name = EVTOPTB94086 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Meldrick Aftermath +character_event = { + id = 94087 + desc = EVTDESC94087 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94087 + character_event = { id = 94090 days = 15 random = 5 tooltip = EVTTOOLTIP94090 } + } + option = { + name = EVTOPTB94087 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Ba'ah al-Drik Aftermath (Muslim version) +character_event = { + id = 94095 + desc = EVTDESC94095 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94087 + character_event = { id = 94097 days = 15 random = 5 tooltip = EVTTOOLTIP94097 } + } + option = { + name = EVTOPTB94087 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Dog Aftermath +character_event = { + id = 94088 + desc = EVTDESC94088 + picture = GFX_evt_monk + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94088 + change_learning = 1 + } +} + +# Otis Second Attempt +character_event = { + id = 94089 + desc = EVTDESC94089 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94089 + character_event = { id = 94091 days = 6 tooltip = EVTTOOLTIP94091 } + } +} + +# al-Otis Second Attempt (Muslim version) +character_event = { + id = 94096 + desc = EVTDESC94096 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94096 + character_event = { id = 94091 days = 6 tooltip = EVTTOOLTIP94091 } + } +} + +# Meldrick Second Attempt +character_event = { + id = 94090 + desc = EVTDESC94090 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94090 + character_event = { id = 94091 days = 6 tooltip = EVTTOOLTIP94091 } + } +} + +# Ba'ah al-Drik Second Attempt +character_event = { + id = 94097 + desc = EVTDESC94097 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94090 + character_event = { id = 94091 days = 6 tooltip = EVTTOOLTIP94091 } + } +} + +# Aftermath +character_event = { + id = 94091 + desc = EVTDESC94091 + picture = GFX_evt_falconing + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94088 + change_learning = 2 + } +} + +### St. Augustine's Confessions + +# Augustine +character_event = { + id = 94098 + desc = EVTDESC94098 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_theology + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + #NOT = { religion_group = muslim } + #NOT = { religion_group = indian_group } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + NOT = { has_character_flag = ancient_tome_taken } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94098 + character_event = { id = 94099 days = 6 tooltip = EVTTOOLTIP94099 } + set_character_flag = ancient_tome + set_character_flag = ancient_tome_taken + } + option = { + name = EVTOPTB94098 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Finished Reading +character_event = { + id = 94099 + desc = EVTDESC94099 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94099 + change_learning = 2 + } +} + +### The Shahnameh + +# The Shahnameh +#character_event = { +# id = 94100 +# desc = EVTDESC94100 +# picture = GFX_evt_library +# border = GFX_event_normal_frame_religion +# +# capable_only = yes +# only_rulers = yes +# prisoner = no +# min_age = 16 +# +# trigger = { +# year = 1010 +# OR = { +# AND = { +# has_focus = focus_theology +# NOT = { learning = 8 } +# } +# has_ambition = obj_improve_learning +# } +# OR = { +# religion_group = muslim +# religion_group = indian_group +# } +# NOT = { has_character_flag = flying_machine } +# NOT = { has_character_flag = ancient_tome } +# NOT = { has_character_flag = hermit_visit } +# NOT = { has_character_flag = ancient_tome_taken } +# } +# +# mean_time_to_happen = { +# months = 280 +# } +# +# option = { +# name = EVTOPTA94098 +# character_event = { id = 94101 days = 6 tooltip = EVTTOOLTIP94099 } +# set_character_flag = ancient_tome +# set_character_flag = ancient_tome_taken +# } +# option = { +# name = EVTOPTB94098 +# custom_tooltip = { text = improve_learning_quit } +# } +#} + +# Finished Reading +character_event = { + id = 94101 + desc = EVTDESC94101 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94099 + change_learning = 2 + } +} + +### The Hermit + +# Hermit +character_event = { + id = 94102 + desc = EVTDESC94102 + picture = GFX_evt_heretic + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_theology + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + NOT = { has_character_flag = hermit_visit_taken } + NOT = { is_inaccessible_trigger = yes } + NOT = { has_character_flag = do_not_disturb } + in_command = no + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94102 + character_event = { id = 94103 days = 16 random = 5 tooltip = EVTTOOLTIP94103 } + set_character_flag = hermit_visit + set_character_flag = hermit_visit_taken + } + option = { + name = EVTOPTB94102 + custom_tooltip = { text = improve_learning_quit } + } +} + +# Arrival +character_event = { + id = 94103 + desc = EVTDESC94103 + picture = GFX_evt_carriage + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94103 + character_event = { id = 94104 tooltip = EVTTOOLTIP94104 } + } +} + +# The Old Man Appears +character_event = { + id = 94104 + desc = EVTDESC94104 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94104 + character_event = { id = 94105 tooltip = EVTTOOLTIP94105 } + } + option = { + name = EVTOPTB94104 + custom_tooltip = { text = improve_learning_quit } + clr_character_flag = hermit_visit + } +} + +# The Cave +character_event = { + id = 94105 + desc = EVTDESC94105 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94105 + character_event = { id = 94106 days = 8 random = 3 tooltip = EVTTOOLTIP94106 } + } +} + +# Leaving +character_event = { + id = 94106 + desc = EVTDESC94106 + picture = GFX_evt_monk + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94106 + change_learning = 2 + } +} + +### Roman Engineering +character_event = { + id = 94107 + desc = EVTDESC94107 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_scholarship + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + NOT = { religion_group = indian_group } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94107 + change_learning = 1 + } +} + +### Philosophy +character_event = { + id = 94108 + desc = EVTDESC94108 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_scholarship + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + NOT = { religion_group = indian_group } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94108 + change_learning = 1 + } +} + +### Astronomy +character_event = { + id = 94109 + desc = EVTDESC94109 + picture = GFX_evt_comet + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_scholarship + NOT = { learning = 8 } + } + has_ambition = obj_improve_learning + } + NOT = { has_character_flag = flying_machine } + NOT = { has_character_flag = ancient_tome } + NOT = { has_character_flag = hermit_visit } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94109 + change_learning = 1 + } +} + +###################### +# Diplomacy Ambition # +###################### + +### The Feud + +# The Feud +character_event = { + id = 94110 + desc = EVTDESC94110 + picture = GFX_evt_peasants + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_family + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + NOT = { has_character_flag = the_feud_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94110 + character_event = { id = 94111 days = 5 tooltip = EVTTOOLTIP94111 } + set_character_flag = the_feud + set_character_flag = the_feud_taken + } + option = { + name = EVTOPTB94110 + custom_tooltip = { text = improve_diplomacy_quit } + } +} + +# The Conference (Choice 1) +character_event = { + id = 94111 + desc = EVTDESC94111 + picture = GFX_evt_council + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_improve_diplomacy + has_focus = focus_family + } + } + + option = { + name = EVTOPTA94111 + character_event = { id = 94112 tooltip = EVTTOOLTIP94112 } + } + option = { + name = EVTOPTB94111 + character_event = { id = 94113 tooltip = EVTTOOLTIP94112 } + } + option = { + name = EVTOPTC94111 + tooltip_info = inbred + trigger = { + trait = inbred + } + character_event = { id = 94114 tooltip = EVTTOOLTIP94112 } + } +} + +# Appeal to reason +character_event = { + id = 94112 + desc = EVTDESC94112 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94112 + character_event = { id = 94119 tooltip = EVTTOOLTIP94119 } + } +} + +# Flatter them (Choice 2A) +character_event = { + id = 94113 + desc = EVTDESC94113 + picture = GFX_evt_council + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94113 + character_event = { id = 94115 tooltip = EVTTOOLTIP94112 } + } + option = { + name = EVTOPTB94113 + character_event = { id = 94116 tooltip = EVTTOOLTIP94112 } + } +} + +# Find common ground (Choice 2B) +character_event = { + id = 94114 + desc = EVTDESC94114 + picture = GFX_evt_council + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94113 + character_event = { id = 94115 tooltip = EVTTOOLTIP94112 } + } + option = { + name = EVTOPTB94113 + character_event = { id = 94116 tooltip = EVTTOOLTIP94112 } + } +} + +# Their patriotic duty +character_event = { + id = 94115 + desc = EVTDESC94115 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94112 + character_event = { id = 94119 tooltip = EVTTOOLTIP94119 } + } +} + +# Soothe tempers (Choice 3) +character_event = { + id = 94116 + desc = EVTDESC94116 + picture = GFX_evt_council + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94116 + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + character_event = { id = 94117 tooltip = EVTTOOLTIP94112 } + } + option = { + name = EVTOPTB94116 + character_event = { id = 94118 tooltip = EVTTOOLTIP94112 } + } +} + +# Threaten violence +character_event = { + id = 94117 + desc = EVTDESC94117 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94112 + character_event = { id = 94119 tooltip = EVTTOOLTIP94119 } + } +} + +# Lambast childish behavior +character_event = { + id = 94118 + desc = EVTDESC94118 + picture = GFX_evt_council + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94118 + character_event = { id = 94120 tooltip = EVTTOOLTIP94120 } + } +} + +# Fight! +character_event = { + id = 94119 + desc = EVTDESC94119 + picture = GFX_evt_burning_house + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94119 + change_diplomacy = 1 + } +} + +# Peace In Our Time +character_event = { + id = 94120 + desc = EVTDESC94120 + picture = GFX_evt_feast + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94120 + change_diplomacy = 2 + } +} + +### The Mirror + +# The Mirror +character_event = { + id = 94125 + desc = EVTDESC94125 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_carousing + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + NOT = { has_character_flag = the_mirror_taken } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94125 + set_character_flag = the_mirror + set_character_flag = the_mirror_taken + } +} + +# Practise Done +character_event = { + id = 94126 + desc = EVTDESC94126 + picture = GFX_evt_heretic + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + capable_only = yes + only_rulers = yes + prisoner = no + + trigger = { + has_character_flag = the_mirror + OR = { + has_ambition = obj_improve_diplomacy + has_focus = focus_carousing + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA94126 + change_diplomacy = 2 + } +} + +### The Suicide + +# The Suicide +character_event = { + id = 94130 + desc = EVTDESC94130 + picture = GFX_evt_peasants + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + + trigger = { + OR = { + AND = { + has_focus = focus_carousing + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + NOT = { has_character_flag = the_suicide_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94130 + set_character_flag = the_suicide + set_character_flag = the_suicide_taken + character_event = { id = 94131 tooltip = EVTTOOLTIP94131 } + } + option = { + name = EVTOPTB94130 + custom_tooltip = { text = improve_diplomacy_quit } + } +} + +# Approaching the Jumper +character_event = { + id = 94131 + desc = EVTDESC94131 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { # Grab Man + name = EVTOPTA94131 + character_event = { id = 94132 tooltip = EVTTOOLTIP94132 } + } + option = { # Talk to Man + name = EVTOPTB94131 + random_list = { + 50 = { + character_event = { id = 94136 tooltip = EVTTOOLTIP94136 } + } + 50 = { + character_event = { id = 94137 tooltip = EVTTOOLTIP94137 } + } + } + } +} + +# Man Grabbed +character_event = { + id = 94132 + desc = EVTDESC94132 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { # Jump + name = EVTOPTA94132 + character_event = { id = 94133 tooltip = EVTTOOLTIP94133 } + } + option = { # Pull Inside + name = EVTOPTB94132 + character_event = { id = 94135 tooltip = EVTTOOLTIP94135 } + } +} + +# Jumping +character_event = { + id = 94133 + desc = EVTDESC94133 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94133 + character_event = { id = 94134 tooltip = EVTTOOLTIP94134 } + } +} + +# Jumping Aftermath +character_event = { + id = 94134 + desc = EVTDESC94134 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94134 + change_diplomacy = 1 + } +} + +# Man Pulled Inside +character_event = { + id = 94135 + desc = EVTDESC94135 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94135 + change_diplomacy = 1 + } +} + +# Talk Successful +character_event = { + id = 94136 + desc = EVTDESC94136 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94136 + change_diplomacy = 2 + } +} + +# Talk Failure +character_event = { + id = 94137 + desc = EVTDESC94137 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_diplomacy + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94137 + change_diplomacy = 1 + } +} + +### Town Crier +character_event = { + id = 94138 + desc = EVTDESC94138 + picture = GFX_evt_heretic + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_carousing + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94138 + change_diplomacy = 1 + } +} + +### Foreign Cultures +character_event = { + id = 94139 + desc = EVTDESC94139 + picture = GFX_evt_library + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_carousing + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94139 + change_diplomacy = 1 + } +} + +### Old Diplomat +character_event = { + id = 94156 + desc = EVTDESC94156 + picture = GFX_evt_emissary + border = GFX_event_normal_frame_diplomacy + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_carousing + NOT = { diplomacy = 8 } + } + has_ambition = obj_improve_diplomacy + } + NOT = { religion_group = indian_group } + NOT = { has_character_flag = the_feud } + NOT = { has_character_flag = the_mirror } + NOT = { has_character_flag = the_suicide } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94156 + change_diplomacy = 1 + } +} + +##################### +# Intrigue Ambition # +##################### + +### The Necklace + +# The Necklace +character_event = { + id = 94140 + desc = EVTDESC94140 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + NOT = { has_character_flag = the_necklace_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { # Do it + name = EVTOPTA94140 + set_character_flag = the_necklace + set_character_flag = the_necklace_taken + character_event = { id = 94141 days = 3 tooltip = EVTTOOLTIP94141 } + } + option = { # Don't do it + name = EVTOPTB94140 + custom_tooltip = { text = improve_intrigue_quit } + } +} + +# The Theft +character_event = { + id = 94141 + desc = EVTDESC94141 + picture = GFX_evt_shadow + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { # Magda + name = EVTOPTA94141 + #trigger = { NOT = { religion_group = muslim } } + character_event = { id = 94142 tooltip = EVTTOOLTIP94142 } + } + option = { # Meldrick + name = EVTOPTB94141 + #trigger = { NOT = { religion_group = muslim } } + character_event = { id = 94149 tooltip = EVTTOOLTIP94149 } + } + #option = { # Wafaa # As above, extra options for local flavour + # name = EVTOPTC94141 + # trigger = { religion_group = muslim } + # character_event = { id = 94142 tooltip = EVTTOOLTIP94142 } + #} + #option = { # Bah al-Drik + # name = EVTOPTD94141 + # trigger = { religion_group = muslim } + # character_event = { id = 94149 tooltip = EVTTOOLTIP94149 } + #} +} + +# Cook's Wife +character_event = { + id = 94142 + desc = EVTDESC94142 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94142 + character_event = { id = 94143 days = 3 tooltip = EVTTOOLTIP94143 } + } +} + +# Cook's Wife, Theft Discovered +character_event = { + id = 94143 + desc = EVTDESC94143 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { # Magda + name = EVTOPTA94143 + #trigger = { NOT = { religion_group = muslim } } + character_event = { id = 94144 tooltip = EVTTOOLTIP94144 } + } + #option = { # Wafaa + # name = EVTOPTB94143 + # trigger = { religion_group = muslim } + # character_event = { id = 94144 tooltip = EVTTOOLTIP94144 } + #} +} + +# Cook's Wife Caught +character_event = { + id = 94144 + desc = EVTDESC94144 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94144 + character_event = { id = 94145 tooltip = EVTTOOLTIP94145 } + } +} + +# Cook's Wife Aftermath +character_event = { + id = 94145 + desc = EVTDESC94145 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94145 + change_intrigue = 3 + if = { + limit = { + NOT = { + trait = deceitful + trait = honest + } + } + random = { + chance = 60 + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + if = { + limit = { trait = honest } + remove_trait = honest + } + hidden_tooltip = { + random_list = { + 40 = { + } + 60 = { + character_event = { id = 94146 days = 3000 random = 100 } + } + } + } + } +} + +# Cook's Wife Forgotten +character_event = { + id = 94146 + desc = EVTDESC94146 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94146 + #trigger = { NOT = { religion_group = muslim } } + custom_tooltip = { + text = hurry_dungeons + hidden_tooltip = { + random_list = { + 50 = { + character_event = { id = 94147 } + } + 50 = { + character_event = { id = 94148 } + } + } + } + } + } + #option = { + # name = EVTOPTB94146 + # trigger = { religion_group = muslim } + # hidden_tooltip = { + # random_list = { + # 50 = { + # character_event = { id = 94147 } + # } + # 50 = { + # character_event = { id = 94148 } + # } + # } + # } + #} +} + +# Cook's Wife Dead +character_event = { + id = 94147 + desc = EVTDESC94147 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94147 + piety = -50 + } +} + +# Cook's Wife Alive +character_event = { + id = 94148 + desc = EVTDESC94148 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94148 + piety = -25 + } +} + +# Servant +character_event = { + id = 94149 + desc = EVTDESC94149 + picture = GFX_evt_drunk + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94149 + character_event = { id = 94150 tooltip = EVTTOOLTIP94143 } + } +} + +# Servant, Theft Discovered +character_event = { + id = 94150 + desc = EVTDESC94150 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { # Meldrick + name = EVTOPTA94150 + #trigger = { NOT = { religion_group = muslim } } + character_event = { id = 94151 tooltip = EVTTOOLTIP94151 } + } + #option = { # Arab Meldrick + # name = EVTOPTB94150 + # trigger = { religion_group = muslim } + # character_event = { id = 94151 tooltip = EVTTOOLTIP94151 } + #} +} + +# Servant Caught +character_event = { + id = 94151 + desc = EVTDESC94151 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94151 + character_event = { id = 94152 tooltip = EVTTOOLTIP94145 } + } +} + +# Servant Aftermath +character_event = { + id = 94152 + desc = EVTDESC94152 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94152 + change_intrigue = 3 + if = { + limit = { + NOT = { + trait = deceitful + trait = honest + } + } + random = { + chance = 60 + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + if = { + limit = { trait = honest } + remove_trait = honest + } + hidden_tooltip = { + random_list = { + 40 = { + } + 60 = { + character_event = { id = 94153 days = 3000 random = 100} + } + } + } + } +} + +# Servant Forgotten +character_event = { + id = 94153 + desc = EVTDESC94153 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + trigger = { + NOT = { has_character_flag = meldrick_fly } + } + + option = { + name = EVTOPTA94153 + custom_tooltip = { + text = hurry_dungeons + hidden_tooltip = { + random_list = { + 50 = { + character_event = { id = 94154 } + } + 50 = { + character_event = { id = 94155 } + } + } + } + } + #trigger = { NOT = { religion_group = muslim } } + } + #option = { + # name = EVTOPTA94153 + # custom_tooltip = { + # text = hurry_dungeons + # hidden_tooltip = { + # random_list = { + # 50 = { + # character_event = { id = 94154 } + # } + # 50 = { + # character_event = { id = 94155 } + # } + # } + # } + # } + # trigger = { religion_group = muslim } + #} +} + +# Servant Dead +character_event = { + id = 94154 + desc = EVTDESC94154 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94154 + piety = -50 + } +} + +# Servant Alive +character_event = { + id = 94155 + desc = EVTDESC94155 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94155 + piety = -25 + } +} + +### Gossip + +# Gossip +character_event = { + id = 94160 + desc = EVTDESC94160 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + NOT = { has_character_flag = gossip_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94160 + set_character_flag = gossip + set_character_flag = gossip_taken + character_event = { id = 94161 days = 72 random = 20 tooltip = EVTTOOLTIP94161 } + } + option = { + name = EVTOPTB94160 + custom_tooltip = { text = improve_intrigue_quit } + } +} + +# Gossip learned +character_event = { + id = 94161 + desc = EVTDESC94161 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94161 + change_intrigue = 2 + } +} + +### Old Spymaster + +# Old Spymaster +character_event = { + id = 94165 + desc = EVTDESC94165 + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + NOT = { has_character_flag = old_spymaster_taken } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94165 + set_character_flag = old_spymaster + set_character_flag = old_spymaster_taken + character_event = { id = 94166 days = 15 tooltip = EVTTOOLTIP94166 } + } + option = { + name = EVTOPTB94165 + custom_tooltip = { text = improve_intrigue_quit } + } +} + +# Visit +character_event = { + id = 94166 + desc = EVTDESC94166 + picture = GFX_evt_shadow + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94166 + character_event = { id = 94167 tooltip = EVTTOOLTIP94167 } + } +} + +# Agreed to teach +character_event = { + id = 94167 + desc = EVTDESC94167 + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94167 + character_event = { id = 94168 days = 190 random = 40 tooltip = EVTTOOLTIP94168 } + } +} + +# Training complete +character_event = { + id = 94168 + desc = EVTDESC94168 + picture = GFX_evt_shadow + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94168 + change_intrigue = 2 + } +} + +### Alchemy +character_event = { + id = 94169 + desc = EVTDESC94169 + picture = GFX_evt_library + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94169 + change_intrigue = 1 + } +} + +### Improved Bodygard +character_event = { + id = 94172 + desc = EVTDESC94172 + picture = GFX_evt_carriage + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94172 + change_intrigue = 1 + } +} + +### Old Assassin +character_event = { + id = 94173 + desc = EVTDESC94173 + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + + trigger = { + OR = { + AND = { + has_focus = focus_intrigue + NOT = { intrigue = 8 } + } + has_ambition = obj_improve_intrigue + } + NOT = { has_character_flag = the_necklace } + NOT = { has_character_flag = gossip } + NOT = { has_character_flag = old_spymaster } + } + + mean_time_to_happen = { + months = 280 + } + + option = { + name = EVTOPTA94173 + change_intrigue = 1 + } +} diff --git a/After the End/events/bastard_events.txt b/After the End/events/bastard_events.txt new file mode 100644 index 000000000..280a9eb05 --- /dev/null +++ b/After the End/events/bastard_events.txt @@ -0,0 +1,1206 @@ +################################################ +# +# Events for Bastards +# +# ID 76000 - 76999 is reserved +# +# +################################################# +# +# Written by Sara Wendel-Örtqvist + +#Irresistable young wench +character_event = { + id = 76000 + desc = "EVTDESC76000" + picture = GFX_evt_lovers + border = GFX_event_normal_frame_intrigue + + min_age = 16 + max_age = 25 + only_men = yes + only_rulers = yes + capable_only = yes + is_married = no + + is_triggered_only = yes + + trigger = { + NOR = { + trait = chaste + trait = celibate + trait = homosexual + trait = eunuch + has_lover = yes + } + fertility = 0.6 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = lustful + } + modifier = { + factor = 2 + trait = gregarious + } + + modifier = { + factor = 0.5 + trait = shy + } + } + + option = { + name = "EVTOPTA76000" + piety = -10 + if = { + limit = { + NOT = { + trait = lustful + } + } + random = { + chance = 50 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + } + option = { + name = "EVTOPTB76000" + add_trait = chaste + } +} + +#Unwed daughter +character_event = { + id = 76005 + desc = EVTDESC76005 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_intrigue + + only_playable = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + any_child = { + is_councillor = no + is_female = yes + is_alive = yes + age = 16 + NOT = { age = 45 } + is_married = no + fertility = 0.4 + NOT = { + trait = chaste + } + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + } + any_courtier = { + has_job_title = job_spymaster + } + } + + immediate = { + random_child = { + limit = { + is_female = yes + is_councillor = no + is_alive = yes + age = 16 + NOT = { age = 45 } + is_married = no + fertility = 0.4 + NOT = { + trait = chaste + } + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + } + save_event_target_as = daughter_with_bastard + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76005" + character_event = { + id = 76006 + tooltip = "EVTTOOLTIP76006" + } + } + + option = { + name = "EVTOPTB76005" + event_target:daughter_with_bastard = { + create_character = { + age = 0 + trait = bastard + } + new_character = { + set_mother = PREV + } + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + prestige = -100 + + if = { + limit = { NOT = { trait = kind } } + random = { + chance = 25 + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + } + option = { + name = "EVTOPTC76005" + event_target:daughter_with_bastard = { + + opinion = { + modifier = opinion_betrayed + who = ROOT + years = 20 + } + if = { + limit = { + #NOT = { + # religion_group = muslim + #} + NOT = { trait = chaste } + } + add_trait = chaste + } + health = -1 + } + + if = { + limit = { NOT = { trait = cruel } } + random = { + chance = 25 + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + } + } +} + +#Spymaster advice you +character_event = { + id = 76006 + desc = "EVTDESC76006" + picture = GFX_evt_council + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76006" + scaled_wealth = -0.33 + add_trait = deceitful + random = { + chance = 10 + + add_trait = kinslayer + hidden_tooltip = { + character_event = { + id = 38287 #Notify Kinslayer + } + } + } + } + option = { + name = "EVTOPTB76006" + scaled_wealth = -0.2 + piety = -10 + random = { + chance = 33 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + option = { + name = "EVTOPTC76006" + add_trait = trusting + job_spymaster = { + character_event = { + id = 76007 + tooltip = "EVTTOOLTIP76007" + } + } + } +} + +#Spymaster is trusted to deal with liege's daughter's bastard child +character_event = { + id = 76007 + desc = "EVTDESC76007" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76007" + prestige = 50 + add_trait = proud + random = { + chance = 15 + + FROM = { + character_event = { + id = 76008 + tooltip = "EVTTOOLTIP76008" + } + } + } + } + option = { + name = "EVTOPTB76007" + change_intrigue = 1 + event_target:daughter_with_bastard = { + create_character = { + age = 0 + trait = bastard + } + new_character = { + set_mother = PREV + } + opinion = { + modifier = opinion_saved_me_and_child + who = ROOT + years = 5 + } + } + FROM = { + character_event = { + id = 76009 + tooltip = "EVTTOOLTIP76009" + } + } + } +} + +#Spymaster let child and daughter live +character_event = { + id = 76008 + desc = "EVTDESC76008" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76008" + add_trait = deceitful + FROM = { + imprison = ROOT + } + } + option = { + name = "EVTOPTB76008" + add_trait = honest + prestige = -20 + } + option = { + name = "EVTOPTC76008" + } +} + +#Spymaster let daugther and bastard child live +character_event = { + id = 76009 + desc = "EVTDESC76009" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76009" + prestige = -5 + } +} + +#Get rid of a bastard? +character_event = { + id = 76010 + desc = "EVTDESC76010" + picture = GFX_evt_beheading + border = GFX_event_normal_frame_intrigue + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_spymaster = { + NOT = { + trait = bastard + } + } + any_child = { + trait = bastard + age = 0 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76010" + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + num_of_children = 5 + } + modifier = { + factor = 0.1 + NOT = { num_of_children = 5 } + } + } + random_child = { + limit = { + trait = bastard + age = 0 + NOT = { + age = 16 + } + } + set_character_flag = ruler_wants_me_dead + random = { + chance = 15 + + clr_character_flag = ruler_wants_me_dead + death = { + death_reason = death_murder_fall + killer = ROOT + } + } + } + } + option = { + name = "EVTOPTB76010" + add_trait = honest + } +} + +#Recognise bastard son as a legitimate heir? +character_event = { + id = 76015 + desc = "EVTDESC76015" + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + war = no + + trigger = { + in_command = no + any_child = { + trait = bastard + is_female = no + is_ruler = no + age = 16 + is_abroad = no + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76015" + random_child = { + limit = { + trait = bastard + is_female = no + is_ruler = no + age = 16 + is_abroad = no + } + opinion = { + modifier = denounced_child + who = ROOT + years = 5 + } + random = { + chance = 33 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + } + option = { + name = "EVTOPTB76015" + random_child = { + limit = { + trait = bastard + is_female = no + is_ruler = no + age = 16 + is_abroad = no + } + random = { + chance = 33 + + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } + } + option = { + name = "EVTOPTC76015" + random_child = { + limit = { + trait = bastard + is_female = no + is_ruler = no + age = 16 + is_abroad = no + } + remove_trait = bastard + add_trait = legit_bastard + } + } +} + +#Bastard son ask to be included in the succession +character_event = { + id = 76020 + desc = "EVTDESC76020" + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_intrigue + + min_age = 16 + + is_triggered_only = yes + + trigger = { + trait = bastard + NOR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + trait = content + } + father = { + war = no + in_command = no + is_alive = yes + is_ruler = yes + is_liege_of = ROOT + opinion = { who = ROOT value = 30 } + at_location = ROOT + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76020" + father = { + set_character_flag = legitimise_bastard_son + character_event = { + id = 76021 + tooltip = "EVTTOOLTIP76021" + } + } + } + option = { + name = "EVTOPTB76020" + piety = 10 + add_trait = content + } +} + +#Father is asked to legitimise bastard +character_event = { + id = 76021 + desc = "EVTDESC76021" + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76021" + FROM = { + hidden_tooltip = { + set_character_flag = father_didnt_legitimise + character_event = { + id = 76022 + } + } + opinion = { + modifier = denounced_child + who = ROOT + years = 5 + } + random = { + chance = 33 + + add_trait = wroth + hidden_tooltip = { + character_event = { + days = 2 + id = 38254 #Notify Wroth + } + } + } + } + } + option = { + name = "EVTOPTB76021" + FROM = { + hidden_tooltip = { + set_character_flag = father_legitimise + character_event = { + id = 76022 + } + } + remove_trait = bastard + add_trait = legit_bastard + } + } +} + +#Father answers son +character_event = { + id = 76022 + desc = "EVTDESC76022" + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76022" + trigger = { + has_character_flag = father_didnt_legitimise + } + clr_character_flag = father_didnt_legitimise + opinion = { + modifier = denounced_child + who = FROM + years = 5 + } + } + option = { + name = "EVTOPTB76022" + trigger = { + has_character_flag = father_legitimise + } + clr_character_flag = father_legitimise + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + } +} + +#I have a bastard child +character_event = { + id = 76025 + desc = "EVTDESC76025" + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + min_age = 16 + only_women = yes + is_triggered_only = yes + is_married = no + + trigger = { + NOT = { + has_character_flag = raising_bastard + } + father = { + is_alive = yes + is_ruler = yes + is_liege_of = ROOT + } + any_child = { + age = 5 + NOT = { + age = 16 + } + trait = bastard + father = { + is_abroad = yes + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76025" + set_character_flag = raising_bastard + father = { + character_event = { + id = 76026 + tooltip = "EVTTOOLTIP76026" + } + } + } + option = { + name = "EVTOPTB76025" + set_character_flag = raising_bastard + add_trait = stressed + } +} + +#Daughter asks for help with bastard child +character_event = { + id = 76026 + desc = "EVTDESC76026" + picture = GFX_evt_daughter_asking_father + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76026" + prestige = -20 + FROM = { + prestige = -10 + opinion = { + modifier = opinion_crestfallen + who = ROOT + years = 5 + } + } + if = { + limit = { + trait = kind + } + remove_trait = kind + prestige = -20 + } + } + option = { + name = "EVTOPTB76026" + prestige = -20 + FROM = { + random_child = { + limit = { + trait = bastard + } + prestige = -10 + opinion = { + modifier = opinion_crestfallen + who = ROOT + years = 5 + } + } + } + } + option = { + name = "EVTOPTC76026" + prestige = -20 + FROM = { + random_child = { + limit = { + trait = bastard + } + father = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + if = { + limit = { + is_ruler = yes + } + character_event = { + id = 76027 + tooltip = "EVTTOOLTIP76027" + } + } + if = { + limit = { + is_ruler = no + father = { + is_ruler = yes + } + } + character_event = { + id = 76028 + tooltip = "EVTTOOLTIP76028" + } + } + } + } + } + } +} + +#Father to bastard is angry +character_event = { + id = 76027 + desc = "EVTDESC76027" + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76027" + piety = 10 + prestige = -25 + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } + option = { + name = "EVTOPTB76027" + piety = -5 + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } +} + +#Grandfather is angry +character_event = { + id = 76028 + desc = "EVTDESC76028" + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76028" + piety = 10 + prestige = -25 + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } + option = { + name = "EVTOPTB76028" + piety = -5 + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } +} + +#A dream is born and a sword sharpened +character_event = { + id = 76030 + desc = "EVTDESC76030" + picture = GFX_evt_child_sword + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + min_age = 16 + + trigger = { + trait = bastard + NOT = { + trait = ambitious + } + OR = { + diplomacy = 6 + learning = 6 + intrigue = 6 + stewardship = 6 + martial = 6 + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76030" + add_trait = ambitious + } +} + +#I am teased about my inferior status +character_event = { + id = 76035 + desc = "EVTDESC76035" + picture = GFX_evt_child_bully + border = GFX_event_normal_frame_intrigue + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + trait = bastard + father = { + is_ruler = yes + is_liege_of = ROOT + any_child = { + age = 6 + NOT = { + age = 16 + } + NOT = { + trait = bastard + } + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76035" + any_courtier = { + limit = { + age = 6 + NOT = { + age = 16 + } + } + opinion = { + modifier = opinion_despised_fighting_bastard + who = ROOT + years = 2 + } + } + random = { + chance = 30 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + random = { + chance = 10 + + change_martial = 1 + } + } + option = { + name = "EVTOPTB76035" + random_list = { + 50 = { + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + 40 = { + change_learning = 1 + } + 10 = { + any_courtier = { + limit = { + age = 6 + NOT = { + age = 16 + } + } + opinion = { + modifier = opinion_despised_hiding_bastard + who = ROOT + years = 2 + } + } + } + } + } + option = { + name = "EVTOPTC76035" + random_list = { + 50 = { + change_diplomacy = 1 + } + 30 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + any_courtier = { + limit = { + age = 6 + NOT = { + age = 16 + } + } + opinion = { + modifier = despised_bastard + who = ROOT + years = 2 + } + } + } + } + } + option = { + name = "EVTOPTD76035" + random_list = { + 50 = { + change_intrigue = 1 + } + 30 = { + any_courtier = { + limit = { + age = 6 + NOT = { + age = 16 + } + } + opinion = { + modifier = despised_bastard + who = ROOT + years = 2 + } + } + } + 20 = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + } +} + +# I'm a bastard, what does that mean? +character_event = { + id = 76040 + desc = "EVTDESC76040" + picture = GFX_evt_guardian + border = GFX_event_normal_frame_intrigue + + min_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + trait = bastard + has_guardian = yes + NOT = { + has_character_flag = asked_about_bastard + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA76040" + set_character_flag = asked_about_bastard + guardian = { + character_event = { + id = 76041 + tooltip = "EVTTOOLTIP76041" + } + } + } +} + +#Guardian is asked what being bastard means +character_event = { + id = 76041 + desc = "EVTDESC76041" + picture = GFX_evt_guardian + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA76041" + FROM = { + random_list = { + 80 = { + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + ROOT = { + character_event = { + id = 38174 #Notify child is Chaste + } + } + } + } + 20 = { + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + ROOT = { + character_event = { + id = 38169 #Notify child is Zealous + } + } + } + } + } + } + } + option = { + name = "EVTOPTB76041" + FROM = { + random_list = { + 80 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + ROOT = { + character_event = { + id = 38160 #Notify child is Humble + } + } + } + } + 20 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + ROOT = { + character_event = { + id = 38163 #Notify child is Shy + } + } + } + } + } + } + } + option = { + name = "EVTOPTC76041" + FROM = { + random_list = { + 80 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + ROOT = { + character_event = { + id = 38178 #Notify child is Ambitious + } + } + } + } + 20 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + ROOT = { + character_event = { + id = 38161 #Notify child is Proud + } + } + } + } + } + } + } +} \ No newline at end of file diff --git a/After the End/events/birth_events.txt b/After the End/events/birth_events.txt new file mode 100644 index 000000000..d994c2c87 --- /dev/null +++ b/After the End/events/birth_events.txt @@ -0,0 +1,3201 @@ +############################################# +# +# EVENTS FOR LOVE, PREGNANCY AND BIRTH +# +############################################# +# by Henrik Fåhraeus +############################################# + +############################################# +# EVENTS LEADING UP TO BASTARD PREGNANCY +############################################# + +# A courtier initiates romance with the liege +# Hidden start +character_event = { + id = 449 + + hide_window = yes + + only_playable = yes + only_capable = yes + prisoner = no + min_age = 16 + max_age = 65 + + trigger = { + is_landed = yes + is_pregnant = no + has_regent = no + + OR = { + is_female = no + NOT = { age = 40 } + } + + NOR = { + trait = infirm + trait = celibate + trait = eunuch + trait = in_hiding + trait = disfigured + } + + OR = { + is_married = no + NOT = { trait = chaste } + } + + NOT = { num_of_lovers = 5 } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.5 + has_focus = focus_seduction + } + modifier = { + factor = 1.5 + num_of_lovers = 1 + } + modifier = { + factor = 2.0 + num_of_lovers = 2 + } + modifier = { + factor = 4.0 + num_of_lovers = 3 + } + modifier = { + factor = 5.0 + num_of_lovers = 4 + } + #modifier = { + # factor = 4.0 + # religion_group = muslim + #} + modifier = { + factor = 0.33 + trait = homosexual # To balance for fewer potential lovers + } + modifier = { + factor = 2.0 + spouse = { + NOT = { age = 30 } + } + } + modifier = { + factor = 0.5 + spouse = { + age = 45 + } + } + modifier = { + factor = 0.5 + trait = hedonist + } + modifier = { + factor = 0.5 + trait = lustful + } + modifier = { + factor = 0.5 + trait = fair + } + modifier = { + factor = 2.0 + trait = shy + } + modifier = { + factor = 2.0 + trait = ugly + } + modifier = { + factor = 10.0 + trait = chaste + } + } + + immediate = { + if = { + limit = { + OR = { + spouse = { is_lover = ROOT } + has_character_modifier = lustful_affair_timer + } + } + break = yes + } + + random_courtier = { + limit = { + is_pregnant = no + prisoner = no + NOR = { + trait = incapable + trait = infirm + trait = celibate + trait = eunuch + trait = chaste + trait = in_hiding + trait = disfigured + } + OR = { + is_female = no + NOT = { age = 40 } + } + has_lover = no + is_consort = no + + NOT = { spouse = { character = ROOT } } + NOT = { is_rival = ROOT } + + OR = { + is_married = no + trait = lustful + trait = deceitful + trait = hedonist + spouse = { + NOT = { is_lover = PREV } + NOT = { reverse_opinion = { who = PREV value = 50 } } + } + } + + is_valid_romance_target = ROOT + } + character_event = { id = 450 } + } + } + +} + +# A courtier initiates romance with the liege +character_event = { + id = 450 + desc = EVTDESC450 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA450 + FROM = { + add_character_modifier = { + name = lustful_affair_timer + duration = 1460 + hidden = yes + } + character_event = { id = 451 days = 7 tooltip = EVTTOOLTIP451 } + } + } + option = { + name = EVTOPTB450 + trigger = { + ai = no + } + piety = 5 + } +} + +# The liege responds to his/her advances +character_event = { + id = 451 + desc = EVTDESC451 + picture = GFX_evt_lovers + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { is_alive = yes } + } + + option = { + name = EVTOPTA451 # Make a move + ai_chance = { factor = 90 } + FROM = { character_event = { id = 452 days = 7 tooltip = EVTTOOLTIP452 } } + } + + option = { + name = EVTOPTB451 # Not appropriate + trigger = { + NOT = { trait = lustful } + NOT = { trait = hedonist } + } + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = chaste + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.01 + has_focus = focus_seduction + } + } + if = { + limit = { + NOT = { religion_group = zoroastrian_group } + } + piety = 5 + } + if = { + limit = { + religion_group = zoroastrian_group + } + piety = -5 + } + } + option = { + name = EVTOPTC451 # Not my type + trigger = { + ai = no + OR = { + trait = lustful + trait = hedonist + } + } + prestige = -5 + } +} + +# The courtier accepts or spurns the liege lord +character_event = { + id = 452 + + is_triggered_only = yes + + desc = EVTDESC452 + picture = GFX_evt_lovers + + option = { + name = EVTOPTA452 # What took him/her so long? + ai_chance = { + factor = 90 + } + + add_lover = FROM + + FROM = { character_event = { id = 453 tooltip = EVTTOOLTIP453 } } + +# log = "452: [From.GetBestName] tumbles [Root.GetBestName]" + + # Chance of impregnation + if = { + limit = { + fertility = 0.25 + FROM = { fertility = 0.25 } + OR = { + AND = { + is_female = yes + FROM = { is_female = no } + NOT = { age = 45 } + } + AND = { + is_female = no + FROM = { + is_female = yes + NOT = { age = 45 } + } + } + } + } + if = { + limit = { + fertility = 0.5 + FROM = { fertility = 0.5 } + } + random_list = { + 75 = { + if = { + limit = { + OR = { + AND = { + is_female = yes + is_married = no + is_consort = no + } + FROM = { + is_female = yes + is_married = no + is_consort = no + } + } + } + impregnate = FROM +# log = "452: [From.GetBestName] impregnates [Root.GetBestName]" + break = yes + } + impregnate_cuckoo = FROM +# log = "452: [From.GetBestName] cuckoo impregnates [Root.GetBestName]" + } + 25 = { } + } + break = yes + } + + random_list = { + 50 = { + if = { + limit = { + OR = { + AND = { + is_female = yes + is_married = no + is_consort = no + } + FROM = { + is_female = yes + is_married = no + is_consort = no + } + } + } + impregnate = FROM +# log = "452: [From.GetBestName] impregnates [Root.GetBestName]" + break = yes + } + impregnate_cuckoo = FROM +# log = "452: [From.GetBestName] cuckoo impregnates [Root.GetBestName]" + } + 50 = { } + } + } + } + + option = { + name = EVTOPTB452 # Dissuade + trigger = { + NOT = { trait = lustful } + NOT = { trait = hedonist } + } + ai_chance = { + factor = 5 + modifier = { + factor = 10 + trait = chaste + } + modifier = { + factor = 2 + FROM = { is_female = no } + is_female = yes + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.1 + liege = { + OR = { + trait = seducer + trait = seductress + } + } + } + } + + FROM = { character_event = { id = 454 tooltip = EVTTOOLTIP454 } } + +# log = "452: [Root.GetBestName] rebuffs [From.GetBestName]" + } + + option = { + name = EVTOPTC452 # Scream for help! + trigger = { + FROM = { is_female = no } + is_female = yes + NOT = { trait = lustful } + NOT = { trait = hedonist } + } + ai_chance = { + factor = 5 + modifier = { + factor = 10 + trait = chaste + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.01 + liege = { + OR = { + trait = seducer + trait = seductress + } + } + } + } + FROM = { character_event = { id = 455 tooltip = EVTTOOLTIP455 } } + +# log = "452: [Root.GetBestName] embarrasses [From.GetBestName]" + } +} + +# The ruler becomes his/her lover +character_event = { + id = 453 + + desc = EVTDESC453 + picture = GFX_evt_lovers + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA453 + } +} + +# The initiator is spurned and disappointed +character_event = { + id = 454 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + desc = EVTDESC454 + + option = { + name = EVTOPTA454 + opinion = { + who = FROM + modifier = opinion_spurned + years = 5 + } + } +} + +# The ruler is spurned and embarrassed +character_event = { + id = 455 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + desc = EVTDESC455 + + option = { + name = EVTOPTA455 + opinion = { + who = FROM + modifier = opinion_embarrassed + years = 5 + } + } +} + +# A courtier initiates romance with another courtier +character_event = { + id = 456 + + hide_window = yes + + capable_only = yes + prisoner = no + min_age = 16 + max_age = 65 + + trigger = { + is_ruler = no + is_marriage_adult = yes + OR = { + is_female = no + NOT = { age = 40 } + } + + has_lover = no + is_pregnant = no + is_ill = no + + liege = { + OR = { + ai = no + higher_tier_than = DUKE + } + } + + NOT = { trait = chaste } + NOT = { trait = infirm } + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { is_inaccessible_trigger = yes } + + # Faithful spouses don't cheat + OR = { + is_married = no + trait = lustful + trait = deceitful + trait = arbitrary + spouse = { + NOT = { reverse_opinion = { who = ROOT value = 0 } } + } + } + OR = { + is_consort = no + trait = lustful + trait = deceitful + trait = arbitrary + consort = { + NOT = { reverse_opinion = { who = ROOT value = 0 } } + } + } + } + + mean_time_to_happen = { + months = 4000 + + modifier = { + factor = 0.5 + spouse = { is_ruler = yes } + } + modifier = { + factor = 0.5 + spouse = { has_lover = yes } + } + modifier = { + factor = 0.5 + NOT = { age = 30 } + spouse = { age = 50 } + } + modifier = { + factor = 0.33 + trait = homosexual #to balance for fewer potential lovers + } + modifier = { + factor = 0.33 + trait = lustful + } + modifier = { + factor = 0.5 + trait = hedonist + } + modifier = { + factor = 0.75 + NOT = { age = 20 } + } + modifier = { + factor = 2.0 + is_female = yes + age = 30 + } + + # Harems are well guarded... + modifier = { + factor = 3.0 + is_female = yes + is_married = yes + has_polygamy = yes + } + + # Wives and Concubines of rulers have a harder time initiating this (unless it's their Focus) + modifier = { + factor = 3.0 + is_female = yes + NOT = { has_focus = focus_seduction } + liege = { + OR = { + is_consort = ROOT + any_spouse = { + character = ROOT + } + } + } + } + } + + immediate = { + liege = { + random_courtier = { + limit = { + is_ruler = no + has_lover = no + is_pregnant = no + prisoner = no + is_marriage_adult = yes + is_ill = no + + NOT = { is_close_relative = ROOT } + OR = { + AND = { + NOT = { trait = homosexual } + ROOT = { NOT = { trait = homosexual } } + is_opposite_sex = ROOT + } + AND = { + trait = homosexual + ROOT = { trait = homosexual } + same_sex = ROOT + } + } + + OR = { + is_female = no + NOT = { age = 40 } + } + + NOT = { + has_character_modifier = lustful_affair_timer + } + + NOT = { trait = infirm } + NOT = { trait = incapable } + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { trait = chaste } + + OR = { + ROOT = { + OR = { + trait = inbred + trait = imbecile + trait = dwarf + trait = ugly + } + } + AND = { + NOT = { trait = inbred } + NOT = { trait = imbecile } + NOT = { trait = dwarf } + } + } + + NOT = { spouse = { character = ROOT } } + + opinion = { who = ROOT value = 0 } + reverse_opinion = { who = ROOT value = 0 } + + NOT = { + is_former_lover = ROOT + } + + # Faithful spouses don't cheat + OR = { + is_married = no + trait = lustful + trait = deceitful + trait = arbitrary + spouse = { + NOT = { reverse_opinion = { who = PREV value = 0 } } + } + } + + OR = { + is_consort = no + trait = lustful + trait = deceitful + trait = arbitrary + consort = { + NOT = { reverse_opinion = { who = PREV value = 0 } } + } + } + } + + character_event = { id = 457 } + } + } + } +} + +# Courtier advances accepted or rebuffed by other courtier +character_event = { + id = 457 + + hide_window = yes + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + option = { + # Let's tumble! + + ai_chance = { + factor = 100 + modifier = { + factor = 3.0 + trait = lustful + } + modifier = { + factor = 2.0 + trait = hedonist + } + } + + add_lover = FROM + + add_character_modifier = { + name = lustful_affair_timer + duration = 2190 + hidden = yes + } + +# log = "457: [From.GetBestName] tumbles [Root.GetBestName]" + + # Chance of impregnation + if = { + limit = { + is_opposite_sex = FROM + fertility = 0.25 + FROM = { fertility = 0.25 } + OR = { + AND = { + is_female = yes + FROM = { is_female = no } + NOT = { age = 45 } + } + AND = { + is_female = no + FROM = { + is_female = yes + NOT = { age = 45 } + } + } + } + } + if = { + limit = { + fertility = 0.5 + FROM = { fertility = 0.5 } + } + random_list = { + 75 = { + if = { + limit = { + OR = { + AND = { + is_female = yes + is_married = no + is_consort = no + } + FROM = { + is_female = yes + is_married = no + is_consort = no + } + } + } + impregnate = FROM +# log = "457: [From.GetBestName] impregnates [Root.GetBestName]" + break = yes + } + impregnate_cuckoo = FROM +# log = "457: [From.GetBestName] cuckoo impregnates [Root.GetBestName]" + } + 25 = { } + } + break = yes + } + + random_list = { + 50 = { + if = { + limit = { + OR = { + AND = { + is_female = yes + is_married = no + is_consort = no + } + FROM = { + is_female = yes + is_married = no + is_consort = no + } + } + } + impregnate = FROM +# log = "457: [From.GetBestName] impregnates [Root.GetBestName]" + break = yes + } + impregnate_cuckoo = FROM +# log = "457: [From.GetBestName] cuckoo impregnates [Root.GetBestName]" + } + 50 = { } + } + } + } + + option = { + # No way! + ai_chance = { + factor = 10 + + modifier = { + factor = 50.0 + OR = { + is_ascetic_trigger = yes + trait = chaste + } + } + + modifier = { + factor = 30.0 + NOT = { + OR = { + trait = ugly + trait = dwarf + trait = imbecile + trait = inbred + } + } + FROM = { + trait = ugly + NOT = { trait = seducer } + NOT = { trait = seductress } + } + } + + modifier = { + factor = 30.0 + NOT = { + OR = { + trait = ugly + trait = dwarf + trait = imbecile + trait = inbred + } + } + FROM = { + trait = dwarf + NOT = { trait = seducer } + NOT = { trait = seductress } + } + } + modifier = { + factor = 30.0 + NOT = { + OR = { + trait = ugly + trait = dwarf + trait = imbecile + trait = inbred + } + } + FROM = { + trait = imbecile + NOT = { trait = seducer } + NOT = { trait = seductress } + } + } + modifier = { + factor = 100.0 + NOT = { + OR = { + trait = ugly + trait = dwarf + trait = imbecile + trait = inbred + } + } + FROM = { + trait = inbred + NOT = { trait = seducer } + NOT = { trait = seductress } + } + } + + # Wives and Concubines of rulers are watched... + modifier = { + factor = 60.0 + is_female = yes + has_polygamy = no + NOT = { has_focus = focus_seduction } + liege = { + OR = { + is_consort = ROOT + any_spouse = { + character = ROOT + } + } + } + } + + # Harems are especially well guarded... + modifier = { + factor = 200.0 + is_female = yes + is_married = yes + has_polygamy = yes + } + } + + reverse_opinion = { + who = FROM + modifier = opinion_spurned + years = 5 + } + +# log = "457: [Root.GetBestName] rebuffs [From.GetBestName]" + } +} + +############################################# +# PREGNANCY STARTS SHOWING EVENTS +############################################# + +# On-action event: Pregnancy starts showing +character_event = { + id = 400 + desc = EVTDESC400 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + NOT = { trait = pregnant } + father_of_unborn = { + any_spouse = { + character = ROOT + } + } + } + + option = { + name = OK + add_trait = pregnant + prestige = 10 + + if = { + limit = { + father_of_unborn = { + is_alive = yes + } + } + + hidden_tooltip = { + if = { + limit = { + father_of_unborn = { + trait = paranoid + } + } + random = { + chance = 50 + father_of_unborn = { character_event = { id = 404 } } + break = yes + } + } + if = { + limit = { + father_of_unborn = { + NOT = { trait = paranoid } + NOT = { trait = trusting } + } + } + random = { + chance = 1 + father_of_unborn = { character_event = { id = 404 } } + break = yes + } + } + } + + father_of_unborn = { character_event = { id = 403 tooltip = EVTTOOLTIP403 } } + } + } +} + +# On-action event: Pregnancy out of wedlock! +character_event = { + id = 401 + desc = EVTDESC401 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_intrigue + + is_married = no + + is_triggered_only = yes + + trigger = { + NOT = { trait = pregnant } + is_consort = no + father_of_unborn = { + NOT = { + any_spouse = { + character = ROOT + } + } + } + } + + option = { + name = OK + add_trait = pregnant + piety = -50 + prestige = -50 + } +} + +# On-action event: Pregnancy in matrimony, with another father! +character_event = { + id = 402 + desc = EVTDESC402 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + is_married = yes + + trigger = { + NOT = { trait = pregnant } + father_of_unborn = { + NOT = { + any_spouse = { + character = ROOT + } + } + } + } + + option = { + name = EVTOPTA402 + add_trait = pregnant + +# log = "402: [Root.GetTitledName], wife of [Root.Spouse.GetTitledName] in [Root.Employer.PrimaryTitle.GetName] gets pregnant with [Root.FatherOfUnborn.GetTitledName]." + + spouse = { character_event = { id = 404 tooltip = EVTTOOLTIP404 } } + } +} + +# The husband is a proud father! +character_event = { + id = 403 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + desc = EVTDESC403 + + option = { + name = EXCELLENT + prestige = 5 + } +} + +# The husband suspects something ain't right +character_event = { + id = 404 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + NOT = { FROM = { has_character_flag = DW_unholy_mother } } + } + + desc = { + text = EVTDESC404_KF + trigger = { + FROM = { + father_of_unborn_known = yes + father_of_unborn = { + NOT = { character = ROOT } + } + } + } + } + + desc = { + text = EVTDESC404 + trigger = { + NOT = { random = 50 } + FROM = { + OR = { + father_of_unborn_known = no + father_of_unborn = { character = ROOT } + } + } + } + } + + desc = { + text = EVTDESC404_2 + trigger = { + random = 50 + FROM = { + OR = { + father_of_unborn_known = no + father_of_unborn = { character = ROOT } + } + } + } + } + + option = { + name = EVTOPTA404 # Doubt besets me... + trigger = { + FROM = { + OR = { + father_of_unborn_known = no + father_of_unborn = { character = ROOT } + } + } + } + if = { + limit = { + NOT = { trait = trusting } + OR = { + trait = paranoid + intrigue = 10 + random = 25 # 75% chance + } + } + hidden_tooltip = { + FROM = { character_event = { id = 21000 days = 7 random = 16 } } # Investigate this further + } + } + } + + option = { + name = EVTOPTB404 # Denounce them both as traitors! + trigger = { + FROM = { + father_of_unborn_known = yes + father_of_unborn = { + NOT = { character = ROOT } + } + } + } + + hidden_tooltip = { + FROM = { + father_of_unborn = { + save_event_target_as = target_adulterer + } + character_event = { id = 20 } # Adultery fallout + } + } + + FROM = { + father_of_unborn = { + hidden_tooltip = { + character_event = { id = 21006 } + } + } + + hidden_tooltip = { + character_event = { id = 21005 } + } + } + } +} + +# Hidden bounce event: The husband might investigate +character_event = { + id = 21000 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { character_event = { id = 21001 } } + } +} + +# Husband suspects wife is pregnant with another man +character_event = { + id = 21001 + + desc = EVTDESC21001 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21001 # Hire someone to find out + ai_chance = { + factor = 100 + modifier = { + factor = 0 + trait = trusting + } + modifier = { + factor = 0.25 + trait = craven + } + modifier = { + factor = 0.25 + trait = kind + } + modifier = { + factor = 0.5 + trait = arbitrary + } + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 2.0 + trait = deceitful + } + modifier = { + factor = 2.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = cruel + } + modifier = { + factor = 5.0 + trait = impaler + } + modifier = { + factor = 10 + trait = paranoid + } + } + wealth = -5 + hidden_tooltip = { + FROM = { character_event = { id = 21002 } } # Investigate this further + } + } + + option = { + name = EVTOPTB21001 # No, I trust her word! + ai_chance = { + factor = 100 + } + } +} + +# Wife: Hidden bounce event: The husband is investigating +character_event = { + id = 21002 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + is_pregnant = yes + } + + option = { + name = OK # Success + + trigger = { + father_of_unborn = { + NOT = { character = FROM } + } + } + + clr_character_flag = final_unfaithful_investigation + + ai_chance = { + factor = 100 + modifier = { + factor = 0.5 + FROM = { + NOT = { intrigue = 2 } + } + } + modifier = { + factor = 0.5 + FROM = { + NOT = { intrigue = 5 } + } + } + modifier = { + factor = 2.0 + FROM = { + intrigue = 10 + } + } + modifier = { + factor = 3.0 + FROM = { + intrigue = 15 + } + } + modifier = { + factor = 1.5 + FROM = { + trait = deceitful + } + } + modifier = { + factor = 2.0 + FROM = { + trait = schemer + } + } + modifier = { + factor = 2.0 + FROM = { + any_courtier = { + has_opinion_modifier = { + modifier = opinion_chasing_friend + who = ROOT + } + } + } + } + modifier = { + factor = 2.0 + FROM = { + any_courtier = { + has_opinion_modifier = { + modifier = opinion_chasing_spouse + who = ROOT + } + } + } + } + modifier = { + factor = 2.0 + FROM = { + any_courtier = { + has_opinion_modifier = { + modifier = opinion_chasing_child + who = ROOT + } + } + } + } + modifier = { + factor = 2.0 + FROM = { + has_focus = focus_intrigue + } + } + } + + set_character_flag = spies_adultery + FROM = { character_event = { id = 21003 days = 10 random = 30 } } + } + + option = { + name = OK # No success yet + ai_chance = { + factor = 100 + modifier = { + factor = 0.5 + NOT = { intrigue = 2 } + } + modifier = { + factor = 0.5 + NOT = { intrigue = 5 } + } + modifier = { + factor = 2.0 + intrigue = 10 + } + modifier = { + factor = 3.0 + intrigue = 15 + } + modifier = { + factor = 1.5 + trait = deceitful + } + modifier = { + factor = 1.5 + trait = seducer + } + modifier = { + factor = 2.0 + trait = schemer + } + modifier = { + factor = 5.0 + has_character_modifier = wol_court_vixen + } + modifier = { + factor = 5.0 + father_of_unborn = { + has_character_modifier = wol_court_tomcat + } + } + modifier = { + factor = 2.0 + has_focus = focus_intrigue + } + } + + if = { + limit = { has_character_flag = final_unfaithful_investigation } + clr_character_flag = final_unfaithful_investigation + FROM = { character_event = { id = 21011 days = 15 random = 30 } } # Husband fails + break = yes + } + + FROM = { character_event = { id = 21010 days = 15 random = 30 } } # Husband can escalate investigation + } +} + +# Husband's investigation is not going well. What now? +character_event = { + id = 21010 + + desc = EVTDESC21010 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21010 # What a relief! + ai_chance = { + factor = 100 + modifier = { + factor = 0 + trait = paranoid + } + modifier = { + factor = 0.1 + has_focus = focus_intrigue + } + modifier = { + factor = 3.0 + trait = trusting + } + } + } + + option = { + name = EVTOPTB21010 # Confront her directly + ai_chance = { + factor = 100 + } + hidden_tooltip = { + FROM = { character_event = { id = 21012 days = 2 } } + } + } + option = { + name = EVTOPTC21010 # Hire more spies! + ai_chance = { + factor = 100 + modifier = { + factor = 0 + NOT = { wealth = 100 } + } + modifier = { + factor = 0.1 + trait = greedy + } + } + wealth = -20 + hidden_tooltip = { + FROM = { + set_character_flag = final_unfaithful_investigation + character_event = { id = 21002 } + } + } + } + option = { + name = EVTOPTD21010 # Lay a trap + trigger = { + FROM = { + NOT = { intrigue = 9 } + NOT = { trait = schemer } + NOT = { has_character_modifier = wol_court_vixen } + father_of_unborn = { + is_alive = yes + NOT = { character = ROOT } + NOT = { has_character_modifier = wol_court_tomcat } + } + } + OR = { + intrigue = 12 + trait = schemer + AND = { + has_focus = focus_intrigue + intrigue = 5 + } + } + } + tooltip_info = intrigue + ai_chance = { + factor = 10000 + } + + hidden_tooltip = { + FROM = { + character_event = { id = 21016 days = 2 } + } + } + } +} + +# Husband's investigation fails +character_event = { + id = 21011 + + desc = EVTDESC21011 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21011 # Damnation + opinion = { + who = FROM + modifier = opinion_suspected_adultery + months = 60 + } + } +} + +# Husband confronts wife directly +character_event = { + id = 21012 + + desc = EVTDESC21012 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21012 # Deny + ai_chance = { + factor = 100 + } + FROM = { character_event = { id = 21013 days = 1 } } + } + option = { + name = EVTOPTB21012 # Tearfully confess + trigger = { + father_of_unborn = { + NOT = { character = FROM } + } + } + + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = deceitful + } + modifier = { + factor = 0 + trait = cruel + } + modifier = { + factor = 10.0 + trait = kind + } + modifier = { + factor = 10.0 + trait = just + } + modifier = { + factor = 20.0 + opinion = { + who = FROM + value = 50 + } + } + } + set_character_flag = confessed_adultery + FROM = { character_event = { id = 21003 days = 1 } } + } + + option = { + name = EVTOPTC21012 # Skillfully manipulate him + trigger = { + OR = { + intrigue = 12 + has_focus = focus_intrigue + has_focus = focus_seduction + has_character_modifier = wol_court_vixen + trait = seductress + } + FROM = { + NOT = { has_focus = focus_intrigue } + NOT = { intrigue = 9 } + } + } + tooltip_info = intrigue + ai_chance = { + factor = 10000 + } + FROM = { character_event = { id = 21015 days = 1 } } + } +} + +# Wife denies. Husband's investigation fails. +character_event = { + id = 21013 + + desc = EVTDESC21013 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { is_alive = yes } + } + + option = { + name = EVTOPTA21013 # Alright + opinion = { + who = FROM + modifier = opinion_suspected_adultery + months = 60 + } + } +} + +# Wife caught. Consequences... +character_event = { + id = 21003 + + desc = { + text = EVTDESC21003_CR + trigger = { + FROM = { + has_character_flag = spies_adultery + father_of_unborn = { + is_close_relative = PREV + } + } + } + } + + desc = { + text = EVTDESC21003 + trigger = { + FROM = { + has_character_flag = spies_adultery + father_of_unborn = { + NOT = { is_close_relative = PREV } + } + } + } + } + + desc = { + text = EVTDESC21003_CONF_CR + trigger = { + FROM = { + has_character_flag = confessed_adultery + father_of_unborn = { + is_close_relative = PREV + } + } + } + } + + desc = { + text = EVTDESC21003_CONF + trigger = { + FROM = { + has_character_flag = confessed_adultery + father_of_unborn = { + NOT = { is_close_relative = PREV } + } + } + } + } + + desc = { + text = EVTDESC21003_TRAP_CR + trigger = { + FROM = { + has_character_flag = trap_adultery + father_of_unborn = { + is_close_relative = PREV + } + } + } + } + + desc = { + text = EVTDESC21003_TRAP + trigger = { + FROM = { + has_character_flag = trap_adultery + father_of_unborn = { + NOT = { is_close_relative = PREV } + } + } + } + } + + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { is_alive = yes } + } + + immediate = { + if = { + limit = { + OR = { + has_character_flag = trap_adultery + has_character_flag = spies_adultery + } + } + if = { + limit = { + NOT = { trait = paranoid } + NOT = { trait = trusting } + } + random = { + chance = 10 + add_trait = paranoid + hidden_tooltip = { + character_event = { id = 38275 days = 3 } # Paranoid gained + } + } + } + + if = { + limit = { trait = trusting } + random = { + chance = 20 + remove_trait = trusting + hidden_tooltip = { + character_event = { id = 38306 days = 3 } # Trusting lost + } + } + } + } + } + + option = { + name = EVTOPTA21003 # Keep this quiet + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = wroth + } + modifier = { + factor = 0 + trait = cruel + } + modifier = { + factor = 0 + trait = envious + } + modifier = { + factor = 0 + trait = zealous + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 3 + trait = craven + } + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 2 + trait = temperate + } + modifier = { + factor = 5 + trait = kind + } + modifier = { + factor = 5 + trait = cynical + } + } + + FROM = { + clr_character_flag = trap_adultery + clr_character_flag = confessed_adultery + clr_character_flag = spies_adultery + + reverse_opinion = { + who = ROOT + modifier = opinion_unfaithful_private + months = 60 + } + father_of_unborn = { + reverse_opinion = { + who = ROOT + modifier = opinion_cuckolded_private + months = 60 + } + } + } + } + + option = { + name = { + text = EVTOPTB21003 # Unholy! + trigger = { + NOT = { religion = zoroastrian } + NOT = { religion = messalian } + FROM = { + father_of_unborn = { + is_close_relative = PREV + } + } + } + } + name = { + text = EVTOPTC21003 # Holy, but they are still traitors! + trigger = { + OR = { + religion = zoroastrian + religion = messalian + } + FROM = { + father_of_unborn = { + is_close_relative = PREV + } + } + } + } + name = { + text = EVTOPTD21003 # Traitors! + trigger = { + FROM = { + father_of_unborn = { + NOT = { is_close_relative = PREV } + } + } + } + } + + ai_chance = { + factor = 100 + } + + hidden_tooltip = { + FROM = { + father_of_unborn = { + save_event_target_as = target_adulterer + } + character_event = { id = 20 } # Adultery fallout + } + } + + FROM = { + father_of_unborn_known = yes + father_of_unborn = { + hidden_tooltip = { + character_event = { id = 21006 } + } + } + + hidden_tooltip = { + if = { + limit = { has_character_flag = spies_adultery } + character_event = { id = 21005 } + } + } + + clr_character_flag = trap_adultery + clr_character_flag = confessed_adultery + clr_character_flag = spies_adultery + } + } +} + +# Wife denies and manipulates husband. +character_event = { + id = 21015 + + desc = EVTDESC21015 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { is_alive = yes } + } + + option = { + name = EVTOPTA21015 # Alright + + opinion = { + who = FROM + modifier = opinion_regrets_accusation + months = 36 + } + + if = { + limit = { + NOT = { trait = paranoid } + NOT = { trait = trusting } + } + random = { + chance = 20 + add_trait = trusting + hidden_tooltip = { + character_event = { id = 38250 } # Trusting gained + } + } + } + + if = { + limit = { trait = paranoid } + random = { + chance = 20 + remove_trait = paranoid + hidden_tooltip = { + character_event = { id = 38305 } # Paranoid lost + } + } + } + } +} + +# Wife: husband has laid a trap +character_event = { + id = 21016 + + desc = EVTDESC21016 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { is_alive = yes } + } + + option = { + name = EVTOPTA21016 # That conniving bastard! + + set_character_flag = trap_adultery + FROM = { + character_event = { id = 21003 tooltip = EVTTOOLTIP21003_TRAP } + } + } +} + +# The unfaithful wife is notified that the husband knows +character_event = { + id = 21005 + desc = EVTDESC21005 + + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21005 # Damn! + } +} + +# The adulterer is notified that the husband knows +character_event = { + id = 21006 + desc = EVTDESC21006 + + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA21006 # Damn! + trigger = { is_liege_or_above = FROM } + } + option = { + name = EVTOPTB21006 # Damn! + trigger = { NOT = { is_liege_or_above = FROM } } + } +} + + +# Consort: Pregnancy starts showing +character_event = { + id = 410 + desc = EVTDESC410 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + NOT = { trait = pregnant } + father_of_unborn = { + is_consort = ROOT + } + } + + option = { + name = ALAS + add_trait = pregnant + prestige = 10 + + if = { + limit = { + father_of_unborn = { + is_alive = yes + } + } + + hidden_tooltip = { + if = { + limit = { + father_of_unborn = { + trait = paranoid + } + } + random = { + chance = 50 + father_of_unborn = { character_event = { id = 404 } } + break = yes + } + } + if = { + limit = { + father_of_unborn = { + NOT = { trait = paranoid } + NOT = { trait = trusting } + } + } + random = { + chance = 1 + father_of_unborn = { character_event = { id = 404 } } + break = yes + } + } + } + + father_of_unborn = { character_event = { id = 413 tooltip = EVTTOOLTIP413 } } + } + } +} + +# Consort: Pregnancy with another father! +character_event = { + id = 412 + desc = EVTDESC412 + picture = "GFX_evt_pregnancy" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + NOT = { trait = pregnant } + is_consort = yes + father_of_unborn = { + NOT = { + is_consort = ROOT + } + } + } + + option = { + name = EVTOPTA412 + add_trait = pregnant + consort = { character_event = { id = 404 tooltip = EVTTOOLTIP404 } } + } +} + +# The consort's liege is a proud father! +character_event = { + id = 413 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + desc = EVTDESC413 + + option = { + name = OK + prestige = 5 + } +} + +############################################# +# EVENTS ON THE BIRTH OF A BASTARD CHILD +############################################# + +# On-action event: A child is born out of wedlock +character_event = { + id = 300 + desc = EVTDESC300 + picture = GFX_evt_birth + + is_triggered_only = yes + + trigger = { + was_conceived_a_bastard = yes + NOT = { real_father = { always = yes } } # There is no 'real_father' set, i.e. this is not a hidden, cuckoo bastard + } + + option = { + name = OK + father = { + character_event = { id = 301 days = 1 } # The father's reaction + } + } +} + +# The father reacts to the bastard birth +character_event = { + id = 301 + desc = EVTDESC301 + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA301 # Legitimize the child + trigger = { + has_polygamy = no + } + + ai_chance = { + factor = 100 + modifier = { + factor = 0 + FROM = { is_female = yes } + } + modifier = { + factor = 0.1 + OR = { + NOT = { age = 50 } + any_child = { + is_alive = yes + is_female = no + } + } + } + modifier = { + factor = 0.2 + trait = zealous + religion_group = christian + NOT = { + OR = { + religion = bogomilist + religion = cathar + religion = paulician + religion = messalian + } + } + } + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 2.0 + trait = kind + } + } + + custom_tooltip = { text = EVTOPTA301_DESC } + + FROM = { + hidden_tooltip = { + character_event = { id = 302 } # The child gets the father's dynasty + } + mother = { + character_event = { id = 303 tooltip = EVTTOOLTIP303 } # The child's mother is very pleased + spouse = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's husband is pissed off + } + consort = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's lord is pissed off + } + } + } + any_child = { + limit = { + NOT = { character = FROM } + dynasty = ROOT + NOT = { trait = bastard } + } + opinion = { + who = ROOT + modifier = legitimized_bastard + months = 12 + } + } + } + + option = { + name = EVTOPTB301 # Acknowledge the child + + ai_chance = { + factor = 100 + modifier = { + factor = 0.5 + FROM = { is_female = yes } + } + modifier = { + factor = 0.5 + trait = zealous + religion_group = christian + NOT = { + OR = { + religion = bogomilist + religion = cathar + religion = paulician + religion = messalian + } + } + } + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 2.0 + trait = kind + } + } + + custom_tooltip = { text = EVTOPTB301_DESC } + + FROM = { + hidden_tooltip = { + character_event = { id = 306 } # The child gets the father's dynasty, but is not legitimized. + } + if = { + limit = { trait = born_in_the_purple } + remove_trait = born_in_the_purple + } + mother = { + character_event = { id = 307 tooltip = EVTTOOLTIP307 } # The child's mother is pleased + spouse = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's husband is pissed off + } + consort = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's man is pissed off + } + } + } + } + + option = { + name = EVTOPTC301 # Denounce the child + + ai_chance = { + factor = 100 + modifier = { + factor = 2.0 + trait = cruel + } + modifier = { + factor = 2.0 + trait = arbitrary + } + } + + custom_tooltip = { text = EVTOPTC301_DESC } + + FROM = { + hidden_tooltip = { + character_event = { id = 309 } # The child founds a new bastard dynasty + } + if = { + limit = { trait = born_in_the_purple } + remove_trait = born_in_the_purple + } + if = { + limit = { trait = saoshyant_descendant } + remove_trait = saoshyant_descendant + } + if = { + limit = { trait = sayyid } + remove_trait = sayyid + } + mother = { + character_event = { id = 310 tooltip = EVTTOOLTIP310 } # The child's mother is dishonoured + spouse = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's husband is pissed off + } + consort = { + character_event = { id = 304 tooltip = EVTTOOLTIP304 } # The child's mother's man is pissed off + } + } + } + } +} + +# The child gets the father's dynasty +character_event = { + id = 302 + + is_triggered_only = yes + desc = EVTDESC302 + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + option = { + name = OK + dynasty = FROM + remove_trait = bastard + add_trait = legit_bastard + + father = { + spouse = { + character_event = { id = 305 tooltip = EVTTOOLTIP305 } # The father's wife is enraged + } + } + } +} + +# The child's mother is very pleased +character_event = { + id = 303 + + is_triggered_only = yes + desc = EVTDESC303 + picture = GFX_evt_birth + border = GFX_event_normal_frame_diplomacy + + option = { + name = EVTOPTA303 + opinion = { + who = FROM + modifier = legitimized_child + years = 10 + } + } +} + +# The child's mother's husband is pissed off +character_event = { + id = 304 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_intrigue + desc = EVTDESC304 + + is_triggered_only = yes + + option = { + name = EVTOPTA304 + FROMFROM = { + real_father = { + reverse_opinion = { + who = ROOT + modifier = opinion_cuckolded + years = 10 + } + } + mother = { + reverse_opinion = { + who = ROOT + modifier = opinion_unfaithful_wife + years = 10 + } + } + } + } +} + +# The father's wife is enraged +character_event = { + id = 305 + desc = EVTDESC305 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA305 + FROM = { + mother = { + reverse_opinion = { + who = ROOT + modifier = slut_seductress + years = 20 + } + } + } + + spouse = { + reverse_opinion = { + who = ROOT + modifier = legitimized_bastard + years = 20 + } + } + } +} + +# The child gets the father's dynasty, but is not legitimized. +character_event = { + id = 306 + + is_triggered_only = yes + + desc = EVTDESC306 + picture = GFX_evt_birth + + option = { + name = OK + dynasty = FROM + add_trait = bastard + + father = { + spouse = { + character_event = { id = 308 tooltip = EVTTOOLTIP308 } # The father's wife is angered + } + } + } +} + +# The child's mother is pleased +character_event = { + id = 307 + + is_triggered_only = yes + + desc = EVTDESC307 + picture = GFX_evt_birth + + option = { + name = EVTOPTA307 + opinion = { + who = FROM + modifier = acknowledged_child + years = 10 + } + } +} + +# The father's wife is angered +character_event = { + id = 308 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + desc = EVTDESC308 + + option = { + name = EVTOPTA308 + FROM = { + mother = { + reverse_opinion = { + who = ROOT + modifier = slut_seductress + years = 20 + } + } + } + + spouse = { + reverse_opinion = { + who = ROOT + modifier = acknowledged_bastard + years = 10 + } + } + } +} + +# The child is denounced +character_event = { + id = 309 + + is_triggered_only = yes + + desc = EVTDESC309 + picture = GFX_evt_birth + + option = { + name = OK + dynasty = mother_bastard + + father = { + spouse = { + character_event = { id = 311 } # The father's wife is displeased + } + } + set_father = 0 + set_real_father = FROM + } +} + +# The child's mother is dishonoured +character_event = { + id = 310 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + desc = EVTDESC310 + + option = { + name = EVTOPTA310 + opinion = { + who = FROM + modifier = denounced_child + years = 10 + } + } +} + +# The father's wife is displeased +character_event = { + id = 311 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + desc = EVTDESC311 + + option = { + name = EVTOPTA311 + FROM = { + mother = { + reverse_opinion = { + who = ROOT + modifier = slut_seductress + years = 20 + } + } + } + + spouse = { + if = { + limit = { gender_equality_trigger = no } + reverse_opinion = { + who = ROOT + modifier = opinion_unfaithful_husband + years = 5 + } + } + if = { + limit = { gender_equality_trigger = yes } + reverse_opinion = { + who = ROOT + modifier = opinion_unfaithful_husband_crime + years = 5 + } + } + } + } +} + +character_event = { + id = 312 + picture = "GFX_evt_birth" + + is_triggered_only = yes + hide_window = yes + + trigger = { + mother = { + is_consort = yes #TODO: Should probably track this in code instead, in case consort status changes during pregnancy + } + } + + option = { + add_trait = child_of_consort + } +} + +# On-action event: Birth complications +character_event = { + id = 313 + desc = OK + + hide_window = yes + + is_triggered_only = yes + + trigger = { + NOT = { age = 1 } + } + + immediate = { + random_list = { + 80 = { + # All is well + } + 10 = { + add_trait = sickly + + #Sickly infant treatment event + if = { + limit = { + has_dlc = "Reapers" + host = { + any_courtier_or_vassal = { + has_minor_title = title_court_physician + liege = { character = PREVPREV } + } + } + } + + save_event_target_as = sickly_infant + father = { save_event_target_as = sickly_father } + + #Decided which parent will choose treatment + if = { + limit = { + father = { is_ruler = yes } + host = { character = event_target:sickly_father } + NOT = { mother = { is_ruler = yes } } + } + father = { save_event_target_as = infant_guardian } + } + + if = { + limit = { + NOT = { + father = { is_ruler = yes } + host = { character = event_target:sickly_father } + NOT = { mother = { is_ruler = yes } } + } + } + mother = { save_event_target_as = infant_guardian } + } + + #Makes court physician examine child + host = { + random_courtier_or_vassal = { + limit = { + has_minor_title = title_court_physician + liege = { character = PREVPREV } + } + character_event = { id = RIP.11066 days = 7 } + } + } + } + } + } + } + + option = { # No complications + name = OK + ai_chance = { + factor = 120 + modifier = { + factor = 2.0 + mother = { + health = 6 + } + } + modifier = { + factor = 2.0 + mother = { + health = 7 + } + } + modifier = { + factor = 2.0 + mother = { + num_of_children = 3 + } + } + modifier = { + factor = 0.85 + mother = { + age = 20 + } + } + modifier = { + factor = 0.85 + mother = { + age = 25 + } + } + modifier = { + factor = 0.85 + mother = { + age = 30 + } + } + } + } + option = { # Mother gets ill + name = OK + ai_chance = { + factor = 12 + modifier = { + factor = 0 + mother = { + trait = pneumonic + } + } + modifier = { + factor = 2.0 + mother = { + NOT = { health = 4.1 } + } + } + modifier = { + factor = 1.5 + mother = { + NOT = { num_of_children = 2 } + } + } + } + + mother = { + if = { + limit = { + is_ill = yes + } + character_event = { id = 316 } + } + if = { + limit = { + is_ill = no + } + character_event = { id = 315 } + } + } + } + option = { # Mother gets pneumonia + name = OK + ai_chance = { + factor = 8 + + modifier = { + factor = 2.0 + mother = { + NOT = { health = 4.1 } + } + } + modifier = { + factor = 6.0 + mother = { + NOT = { health = 3.1 } + } + } + modifier = { + factor = 1.5 + mother = { + NOT = { num_of_children = 2 } + } + } + } + + mother = { + if = { + limit = { + OR = { + trait = pneumonic + has_epidemic = yes + } + } + death = { + death_reason = death_childbirth + } + } + if = { + limit = { + NOT = { + OR = { + trait = pneumonic + has_epidemic = yes + } + } + } + character_event = { id = 316 } + } + } + } + option = { # Mother dies + name = OK + ai_chance = { + factor = 2 + modifier = { + factor = 2.0 + mother = { + NOT = { health = 4.1 } + } + } + modifier = { + factor = 6.0 + mother = { + NOT = { health = 3.1 } + } + } + modifier = { + factor = 1.5 + mother = { + NOT = { num_of_children = 2 } + } + } + } + mother = { + death = { + death_reason = death_childbirth + } + } + } +} + +# On-action event: Birth complications after a stillbirth +character_event = { + id = 314 + desc = OK + + hide_window = yes + + is_triggered_only = yes + + trigger = { + age = 1 + } + + option = { # No complications + name = OK + ai_chance = { + factor = 66 + modifier = { + factor = 2.0 + health = 6 + } + modifier = { + factor = 2.0 + health = 7 + } + modifier = { + factor = 2.0 + num_of_children = 3 + } + modifier = { + factor = 1.2 + age = 20 + } + modifier = { + factor = 1.2 + age = 25 + } + modifier = { + factor = 1.2 + age = 30 + } + } + } + option = { # Mother gets ill + name = OK + ai_chance = { + factor = 22 + modifier = { + factor = 0 + trait = pneumonic + } + modifier = { + factor = 2.0 + NOT = { health = 4.1 } + } + modifier = { + factor = 1.5 + NOT = { num_of_children = 2 } + } + } + + if = { + limit = { + is_ill = yes + } + character_event = { id = 315 } + } + if = { + limit = { + is_ill = no + } + character_event = { id = 314 } + } + } + option = { # Mother gets pneumonia + name = OK + ai_chance = { + factor = 10 + + modifier = { + factor = 2.0 + NOT = { health = 4.1 } + } + modifier = { + factor = 6.0 + NOT = { health = 3.1 } + } + modifier = { + factor = 1.5 + NOT = { num_of_children = 2 } + } + } + + if = { + limit = { + OR = { + trait = pneumonic + has_epidemic = yes + } + } + death = { + death_reason = death_childbirth + } + } + if = { + limit = { + NOT = { + OR = { + trait = pneumonic + has_epidemic = yes + } + } + } + character_event = { id = 315 } + } + } + option = { # Mother dies + name = OK + ai_chance = { + factor = 2 + modifier = { + factor = 2.0 + NOT = { health = 4.1 } + } + modifier = { + factor = 6.0 + NOT = { health = 3.1 } + } + modifier = { + factor = 1.5 + NOT = { num_of_children = 2 } + } + } + death = { + death_reason = death_childbirth + } + } +} + +# Mother ill after giving birth +character_event = { + id = 315 + desc = EVTDESC315 + picture = GFX_evt_illness + + is_triggered_only = yes + + #immediate = { + # add_trait = ill + #} + + option = { + name = EVTOPTA315 + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + } +} + +# Mother pneumonic after giving birth +character_event = { + id = 316 + desc = EVTDESC315 + picture = GFX_evt_illness + + is_triggered_only = yes + + immediate = { + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = pneumonic + } + } + + option = { + name = EVTOPTA315 + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + tooltip = { + add_trait = pneumonic + } + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = add_symptom_tooltip + hidden_tooltip = { + random_list = { + 10 = { + modifier = { + factor = 0 + trait = cough + } + character_event = { id = RIP.5000 } + } + 10 = { + modifier = { + factor = 0 + trait = fever + } + character_event = { id = RIP.5001 } + } + 10 = { + modifier = { + factor = 0 + trait = chest_pain + } + character_event = { id = RIP.5005 } + } + } + } + } + } + } +} + +# On-action event: A bastard child is born, but is not recognized as such by the spouse of the mother +character_event = { + id = 318 + picture = GFX_evt_birth + + is_triggered_only = yes + hide_window = yes + + trigger = { + real_father = { + is_alive = yes + ROOT = { + father = { + NOT = { character = PREVPREV } + } + } + } + } + + option = { + name = "OK" + mother = { + character_event = { id = 317 } # The real father is notified + } + } +} + +# Ping the mother +character_event = { + id = 317 + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { + real_father = { + character_event = { id = 319 } + } + } + } +} + +character_event = { + id = 319 + desc = EVTDESC319 + picture = GFX_evt_birth + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA319 + piety = -1 + + # Just to get the portraits + FROMFROM = { + show_portrait = yes + } + FROMFROM = { + father = { + show_portrait = yes + } + } + } +} + +# On-action event: A child is born. Hidden utility event. +character_event = { + id = 335 + hide_window = yes + + is_triggered_only = yes + + immediate = { + if = { + limit = { mother = { has_character_flag = orgy_impregnated } } + mother = { clr_character_flag = orgy_impregnated } + if = { + limit = { + mother = { + OR = { + ai = no + has_game_rule = { + name = supernatural_events + value = unrestricted + } + } + } + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + random = 99 # 1% chance + } + character_event = { id = SoA.3001 years = 2 } + } + } + } +} diff --git a/After the End/events/childhood_personality_traits_events.txt b/After the End/events/childhood_personality_traits_events.txt new file mode 100644 index 000000000..59b8b26af --- /dev/null +++ b/After the End/events/childhood_personality_traits_events.txt @@ -0,0 +1,6975 @@ +################################################ +# +# Events for Childhood Personality Traits +# +# ID 1500-1999 is reserved +# +# The basic events are triggered by on actions +# +################################################# +# +# Written by Sara Wendel-Örtqvist, Johan Andersson & Henrik Fåhraeus + +#Event ID 1500-1509 is reserved for Gluttonous events + +# Gain Gluttony +# On-action: on_yearly_childhood_pulse +character_event = { + id = 1500 + desc = "EVTDESC1500" + picture = "GFX_evt_child_play" + + is_triggered_only = yes + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = temperate } + NOT = { trait = gluttonous } + prisoner = no + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = slothful + } + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1500" + add_trait = gluttonous + hidden_tooltip = { + guardian = { + character_event = { + id = 2000 + days = 3 + } + } + } + } +} + +# Guardian discourages gluttony +character_event = { + id = 1501 + desc = "EVTDESC1501" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = gluttonous + } + } + + option = { + name = "EVTOPTA1501" + remove_trait = gluttonous + } +} + +####################################################################### + +#Event ID 1510-1519 is reserved for Temperate events +#Temperate Child +character_event = { + id = 1510 + desc = "EVTDESC1510" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = temperate } + NOT = { trait = gluttonous } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = diligent + } + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + + } + + option = { + name = "EVTOPTA1510" + add_trait = temperate + hidden_tooltip = { + guardian = { + character_event = { + id = 2010 + days = 3 + } + } + } + } +} + +# Discourage Temperance +character_event = { + id = 1511 + desc = "EVTDESC1511" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = temperate + } + } + + option = { + name = "EVTOPTA1511" + remove_trait = temperate + } +} + +####################################################################### + +#Event ID 1520-1529 is reserved for Greedy events +#Greedy Child +character_event = { + id = 1520 + desc = "EVTDESC1520" + picture = "GFX_evt_child_bully" + + is_triggered_only = yes + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = charitable } + NOT = { trait = greedy } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = envious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1520" + add_trait = greedy + hidden_tooltip = { + guardian = { + character_event = { + id = 2020 + days = 3 + } + } + } + } +} + +# Discourage Greed +character_event = { + id = 1521 + desc = "EVTDESC1521" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = greedy + } + } + + option = { + name = "EVTOPTA1521" + remove_trait = greedy + } +} + +####################################################################### + +#Event ID 1530-1539 is reserved for Charitable events# +#Charitable Child +character_event = { + id = 1530 + desc = "EVTDESC1530" + picture = "GFX_evt_child_talking" + + is_triggered_only = yes + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = charitable } + NOT = { trait = greedy } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 0.5 + trait = envious + } + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1530" + add_trait = charitable + hidden_tooltip = { + guardian = { + character_event = { + id = 2030 + days = 3 + } + } + } + } +} + +# Discourage Charity +character_event = { + id = 1531 + desc = "EVTDESC1531" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = charitable + } + } + + option = { + name = "EVTOPTA1531" + remove_trait = charitable + } +} + +####################################################################### + +#Event ID 1540-1549 is reserved for Slothful events# +#Slothful Child +character_event = { + id = 1540 + desc = "EVTDESC1540" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + religion_group = christian + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = diligent } + NOT = { trait = slothful } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1540" + add_trait = slothful + hidden_tooltip = { + guardian = { + character_event = { + id = 2040 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1541 + desc = "EVTDESC1541" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = slothful + } + } + + option = { + name = "EVTOPTA1541" + remove_trait = slothful + } +} + +####################################################################### + + +#Event ID 1550-1559 is reserved for Diligent events# +#Diligent Child +character_event = { + id = 1550 + desc = "EVTDESC1550" + picture = "GFX_evt_child_reading" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = diligent } + NOT = { trait = slothful } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = temperate + } + modifier = { + factor = 0.5 + trait = gluttonous + } + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1550" + add_trait = diligent + hidden_tooltip = { + guardian = { + character_event = { + id = 2050 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1551 + desc = "EVTDESC1551" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = diligent + } + } + + option = { + name = "EVTOPTA1551" + remove_trait = diligent + } +} + +####################################################################### + +#Event ID 1560-1569 is reserved for Envious events# +#Envious Child +character_event = { + id = 1560 + desc = "EVTDESC1560" + picture = "GFX_evt_child_bully" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = kind } + NOT = { trait = envious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = greedy + } + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1560" + add_trait = envious + hidden_tooltip = { + guardian = { + character_event = { + id = 2060 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1561 + desc = "EVTDESC1561" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = envious + } + } + + option = { + name = "EVTOPTA1561" + trigger = { is_female = yes } + remove_trait = envious + } + option = { + name = "EVTOPTB1561" + trigger = { is_female = no } + remove_trait = envious + } +} + +####################################################################### + +#Event ID 1570-1579 is reserved for Kind events# +#Kind Child +character_event = { + id = 1570 + desc = "EVTDESC1570" + picture = "GFX_evt_child_talking" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = kind } + NOT = { trait = envious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.5 + trait = greedy + } + modifier = { + factor = 0.5 + trait = arbitrary + } + modifier = { + factor = 2 + trait = charitable + } + modifier = { + factor = 2 + trait = just + } + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1570" + add_trait = kind + hidden_tooltip = { + guardian = { + character_event = { + id = 2070 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1571 + desc = "EVTDESC1571" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = kind + } + } + + option = { + name = "EVTOPTA1571" + remove_trait = kind + } +} + +####################################################################### + +#Event ID 1580-1589 is reserved for Wroth events# +#Wroth Child +character_event = { + id = 1580 + desc = "EVTDESC1580" + picture = "GFX_evt_child_bully" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = wroth } + NOT = { trait = patient } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 1.1 + } + modifier = { + trait = stutter + factor = 1.1 + } + modifier = { + trait = fair + factor = 0.1 + } + modifier = { + trait = ugly + factor = 5.0 + } + modifier = { + trait = dwarf + factor = 2.0 + } + modifier = { + trait = genius + factor = 0.2 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.75 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.15 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 2.0 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.5 + } + } + + option = { + name = "EVTOPTA1580" + add_trait = wroth + hidden_tooltip = { + guardian = { + character_event = { + id = 2080 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1581 + desc = "EVTDESC1581" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = wroth + } + } + + option = { + name = "EVTOPTA1581" + remove_trait = wroth + } +} + +####################################################################### + +#Event ID 1590-1599 is reserved for Patient events# +#Patient Child +character_event = { + id = 1590 + desc = "EVTDESC1590" + picture = "GFX_evt_child_reading" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = wroth } + NOT = { trait = patient } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1590" + add_trait = patient + hidden_tooltip = { + guardian = { + character_event = { + id = 2090 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1591 + desc = "EVTDESC1591" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = patient + } + } + + option = { + name = "EVTOPTA1591" + remove_trait = patient + } +} + +####################################################################### + +#Event ID 1600-1609 is reserved for Proud events# +#Proud Child +character_event = { + id = 1600 + desc = "EVTDESC1600" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = proud } + NOT = { trait = humble } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + + modifier = { + trait = clubfooted + factor = 0.1 + } + modifier = { + trait = harelip + factor = 0.1 + } + modifier = { + trait = hunchback + factor = 0.1 + } + modifier = { + trait = lisp + factor = 0.1 + } + modifier = { + trait = stutter + factor = 0.1 + } + modifier = { + trait = fair + factor = 5.0 + } + modifier = { + trait = ugly + factor = 0.25 + } + modifier = { + trait = dwarf + factor = 0.1 + } + modifier = { + trait = genius + factor = 5.0 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 5.0 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.1 + } + modifier = { + trait = imbecile + factor = 0.1 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.5 + } + } + + option = { + name = "EVTOPTA1600" + add_trait = proud + hidden_tooltip = { + guardian = { + character_event = { + id = 2100 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1601 + desc = "EVTDESC1601" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = proud + } + } + + option = { + name = "EVTOPTA1601" + remove_trait = proud + } +} + +####################################################################### + +#Event ID 1610-1619 is reserved for Humble events# +#Humble Child +character_event = { + id = 1610 + desc = "EVTDESC1610" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = proud } + NOT = { trait = humble } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 2.0 + } + modifier = { + trait = harelip + factor = 2.0 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 2.0 + } + modifier = { + trait = stutter + factor = 2.0 + } + modifier = { + trait = fair + factor = 0.1 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.5 + } + modifier = { + trait = genius + factor = 0.5 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.25 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 2.0 + } + modifier = { + trait = imbecile + factor = 0.1 + } + modifier = { + trait = inbred + factor = 0.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.01 + } + modifier = { + is_weak_trigger = yes + factor = 2.5 + } + } + + option = { + name = "EVTOPTA1610" + add_trait = humble + hidden_tooltip = { + guardian = { + character_event = { + id = 2110 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1611 + desc = "EVTDESC1611" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = humble + } + } + + option = { + name = "EVTOPTA1611" + remove_trait = humble + } +} + +####################################################################### + +### OTHER ### + +#Event ID 1620-1629 is reserved for Deceitful events# +# Deceitful Child +character_event = { + id = 1620 + desc = "EVTDESC1620" + picture = "GFX_evt_child_bully" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = honest } + NOT = { trait = deceitful } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1620" + add_trait = deceitful + hidden_tooltip = { + guardian = { + character_event = { + id = 2120 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1621 + desc = "EVTDESC1621" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = deceitful + } + } + + option = { + name = "EVTOPTA1621" + remove_trait = deceitful + } +} + +####################################################################### + +# Event ID 1630-1639 is reserved for Zealous events # +### Zealous ### +character_event = { + id = 1630 + desc = "EVTDESC1630" + picture = "GFX_evt_child_reading" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + #NOT = { + # religion_group = muslim + #} + #NOT = { + # religion_group = indian_group + #} + NOT = { personality_traits = 5 } + NOT = { trait = zealous } + NOT = { trait = cynical } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1630" + add_trait = zealous + hidden_tooltip = { + guardian = { + character_event = { + id = 2130 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1631 + desc = "EVTDESC1631" + picture = "GFX_evt_child_reading" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = zealous + } + } + + option = { + name = "EVTOPTA1631" + remove_trait = zealous + } +} + + +####################################################################### + +#Event ID 1640-1649 is reserved for Honest events# +#Honest Child +character_event = { + id = 1640 + desc = "EVTDESC1640" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = honest } + NOT = { trait = deceitful } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1640" + add_trait = honest + hidden_tooltip = { + guardian = { + character_event = { + id = 2140 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1641 + desc = "EVTDESC1641" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = honest + } + } + + option = { + name = "EVTOPTA1641" + remove_trait = honest + } +} + +####################################################################### + +#Event ID 1650-1659 is reserved for Craven events# +# Craven +character_event = { + id = 1650 + desc = "EVTDESC1650" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = craven } + NOT = { trait = brave } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1650" + add_trait = craven + hidden_tooltip = { + guardian = { + character_event = { + id = 2150 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1651 + desc = "EVTDESC1651" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = craven + } + } + + option = { + name = "EVTOPTA1651" + remove_trait = craven + } +} + +####################################################################### + +#Event ID 1660-1669 is reserved for Brave events# +#Brave Child +character_event = { + id = 1660 + desc = "EVTDESC1660" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = craven } + NOT = { trait = brave } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1660" + add_trait = brave + hidden_tooltip = { + guardian = { + character_event = { + id = 2160 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1661 + desc = "EVTDESC1661" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = brave + } + } + + option = { + name = "EVTOPTA1661" + remove_trait = brave + } +} + +####################################################################### + +#Event ID 1670-1679 is reserved for Shy events# +#Shy Child +character_event = { + id = 1670 + desc = "EVTDESC1670" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = shy } + NOT = { trait = gregarious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1670" + add_trait = shy + hidden_tooltip = { + guardian = { + character_event = { + id = 2170 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1671 + desc = "EVTDESC1671" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = shy + } + } + + option = { + name = "EVTOPTA1671" + remove_trait = shy + } +} + +####################################################################### + +#Event ID 1680-1689 is reserved for Gregarious events# +#Gregarious Child +character_event = { + id = 1680 + desc = "EVTDESC1680" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = shy } + NOT = { trait = gregarious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.05 + } + modifier = { + trait = stutter + factor = 0.05 + } + modifier = { + trait = fair + factor = 5.0 + } + modifier = { + trait = ugly + factor = 0.5 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 2.0 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 5.0 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1680" + add_trait = gregarious + hidden_tooltip = { + guardian = { + character_event = { + id = 2180 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1681 + desc = "EVTDESC1681" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = gregarious + } + } + + option = { + name = "EVTOPTA1681" + remove_trait = gregarious + } +} + +####################################################################### + +#Event ID 1690-1699 is reserved for Ambitious events# +#Ambitious Child +character_event = { + id = 1690 + desc = "EVTDESC1690" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = content } + NOT = { trait = ambitious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = proud + } + modifier = { + factor = 0.5 + trait = humble + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1690" + add_trait = ambitious + hidden_tooltip = { + guardian = { + character_event = { + id = 2190 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1691 + desc = "EVTDESC1691" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = ambitious + } + } + + option = { + name = "EVTOPTA1691" + remove_trait = ambitious + } +} + +####################################################################### + +#Event ID 1700-1709 is reserved for Content events# +#Content Child +character_event = { + id = 1700 + desc = "EVTDESC1700" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = content } + NOT = { trait = ambitious } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 2 + trait = humble + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1700" + add_trait = content + hidden_tooltip = { + guardian = { + character_event = { + id = 2200 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1701 + desc = "EVTDESC1701" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = content + } + } + + option = { + name = "EVTOPTA1701" + remove_trait = content + } +} + +####################################################################### + +#Event ID 1710-1719 is reserved for Arbitrary events# +#Arbitrary Child +character_event = { + id = 1710 + desc = "EVTDESC1710" + picture = "GFX_evt_child_bully" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = just } + NOT = { trait = arbitrary } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1710" + add_trait = arbitrary + hidden_tooltip = { + guardian = { + character_event = { + id = 2210 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1711 + desc = "EVTDESC1711" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = arbitrary + } + } + + option = { + name = "EVTOPTA1711" + remove_trait = arbitrary + } +} + +####################################################################### + +#Event ID 1720-1729 is reserved for Just events# +#Just Child +character_event = { + id = 1720 + desc = "EVTDESC1720" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = just } + NOT = { trait = arbitrary } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1720" + add_trait = just + hidden_tooltip = { + guardian = { + character_event = { + id = 2220 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1721 + desc = "EVTDESC1721" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = just + } + } + + option = { + name = "EVTOPTA1721" + remove_trait = just + } +} + +####################################################################### + +#Event ID 1730-1739 is reserved for Cynical events# +### Cynical Child ### +character_event = { + id = 1730 + desc = "EVTDESC1730" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + #NOT = { + # religion_group = muslim + #} + NOT = { personality_traits = 5 } + NOT = { trait = zealous } + NOT = { trait = cynical } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1730" + add_trait = cynical + hidden_tooltip = { + guardian = { + character_event = { + id = 2230 + days = 3 + } + } + } + } +} + +# Discouraged +character_event = { + id = 1731 + desc = "EVTDESC1731" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = cynical + } + } + + option = { + name = "EVTOPTA1731" + remove_trait = cynical + } +} + +# Discouraged +character_event = { + id = 1733 + desc = "EVTDESC1733" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = cynical + } + } + + option = { + name = "EVTOPTA1731" + remove_trait = cynical + } +} + +####################################################################### + + +# Gain Cruel +# On-action: on_yearly_childhood_pulse +character_event = { + id = 1965 + desc = "EVTDESC1965" + picture = "GFX_evt_child_bully" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { personality_traits = 5 } + NOT = { trait = kind } + NOT = { trait = cruel } + has_guardian = yes + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1965" + add_trait = cruel + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + hidden_tooltip = { + guardian = { + character_event = { + id = 2465 + days = 3 + } + } + } + } +} + +# Guardian discourages cruelty +character_event = { + id = 1966 + desc = "EVTDESC1966" + picture = "GFX_evt_guardian" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + add_trait = cruel + } + } + + option = { + name = "EVTOPTA1966" + remove_trait = cruel + } +} + +####################################################################### + +# Male Homosexual +character_event = { + id = 1980 + desc = "EVTDESC1980" + picture = GFX_evt_brothel + + min_age = 13 + max_age = 17 + only_men = yes + only_capable = yes + is_married = no + + trigger = { + has_guardian = yes + NOT = { + trait = zealous + } + NOT = { + trait = homosexual + } + NOT = { + trait = chaste + } + NOT = { + trait = celibate + } + } + + mean_time_to_happen = { + months = 960 + + + modifier = { + factor = 0.75 + martial = 10 + trait = fair + } + + modifier = { + factor = 0.75 + trait = shy + learning = 10 + } + + modifier = { + factor = 0.75 + trait = trusting + any_courtier = { + age = 12 + not = { age = 18 } + trait = homosexual + reverse_opinion = { who = ROOT value = 25 } + } + } + + modifier = { + factor = 0.9 + OR = { + guardian = { + trait = homosexual + } + father = { + trait = homosexual + } + } + } + + } + + option = { + name = "EVTOPTA1980" + add_trait = homosexual + } +} + +### Remove Male Homosexual ### +character_event = { + id = 1985 + desc = "EVTDESC1985" + picture = GFX_evt_brothel + + min_age = 13 + max_age = 17 + only_men = yes + only_capable = yes + is_married = no + + trigger = { + has_guardian = yes + num_traits = 4 + trait = homosexual + #NOT = { + # religion_group = muslim + #} + } + + mean_time_to_happen = { + months = 480 + + modifier = { + factor = 0.1 + trait = zealous + } + } + + option = { + name = "EVTOPTA1985" + piety = -50 + } + option = { + name = "EVTOPTB1985" + remove_trait = homosexual + } +} + + +### Female Homosexual ### +character_event = { + id = 1990 + desc = "EVTDESC1990" + picture = GFX_evt_garden + + min_age = 12 + max_age = 17 + only_women = yes + only_capable = yes + is_married = no + + trigger = { + has_guardian = yes + NOT = { + trait = zealous + } + NOT = { + trait = homosexual + } + NOT = { + trait = chaste + } + NOT = { + trait = celibate + } + } + + mean_time_to_happen = { + months = 960 + + modifier = { + factor = 2 + trait = zealous + } + + modifier = { + factor = 0.5 + trait = lustful + } + } + + option = { + name = "EVTOPTA1980" + add_trait = homosexual + } +} + +### Remove Female Homosexual ### +character_event = { + id = 1995 + desc = "EVTDESC1995" + picture = GFX_evt_garden + + min_age = 12 + max_age = 17 + only_women = yes + only_capable = yes + is_married = no + + trigger = { + has_guardian = yes + num_traits = 4 + trait = homosexual + #NOT = { + # religion_group = muslim + #} + } + + mean_time_to_happen = { + months = 480 + modifier = { + factor = 0.1 + trait = zealous + } + } + + option = { + name = "EVTOPTA1985" + piety = -50 + } + option = { + name = "EVTOPTB1985" + remove_trait = homosexual + } +} + +#Nobody believes me! - removed, no text and no event that triggers this +#character_event = { +# id = 30013 +# desc = "EVTDESC30013" +# picture = GFX_evt_child_bully +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA30013" +# prestige = -50 +# } +#} + +#Spouse is kicked out and the heir takes over - removed, no text and no event that triggers this +#character_event = { +# id = 30014 +# desc = "EVTDESC30014" +# picture = GFX_evt_scandal +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA30014" +# banish = yes +# } +# +# option = { +# name = "EVTOPTB30014" +# prestige = -1000 +# } +#} + +################################# +# More flavor events +################################# + +# Child is slow to learn to talk +character_event = { + id = 1900 + desc = "EVTDESC1900" + picture = "GFX_evt_child_play" + + max_age = 5 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = stutter } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + + } + + option = { + name = "EVTOPTA1900" + hidden_tooltip = { + father = { + character_event = { + id = 38200 + days = 3 + } + } + } + } +} + +# Daddy, where do children come from? +character_event = { + id = 1901 + desc = "EVTDESC1901" + picture = "GFX_evt_child_play" + + max_age = 6 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = trusting } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + NOT = { personality_traits = 5 } + + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1901" + hidden_tooltip = { + father = { + character_event = { + id = 38201 + days = 3 + } + } + } + } +} + +# Child is afraid of the dark +character_event = { + id = 1902 + desc = "EVTDESC1902" + picture = "GFX_evt_child_play" + + max_age = 6 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = trusting } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1902" + hidden_tooltip = { + father = { + character_event = { + id = 38202 + days = 3 + } + } + } + } +} + +# Child is often involved in fights with other toddlers +character_event = { + id = 1903 + desc = "EVTDESC1903" + picture = "GFX_evt_child_play" + + max_age = 6 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = wroth } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1903" + hidden_tooltip = { + father = { + character_event = { + id = 38203 + days = 3 + } + } + } + } +} + +# Your child always wants more toys +character_event = { + id = 1904 + desc = "EVTDESC1904" + picture = "GFX_evt_child_play" + + max_age = 6 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = greedy } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1904" + hidden_tooltip = { + father = { + character_event = { + id = 38204 + days = 3 + } + } + } + } +} + +# Dad, Where is mom? +character_event = { + id = 1905 + desc = "EVTDESC1905" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + prisoner = no + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { is_abroad = yes } + father = { + is_alive = yes + employer = { + ROOT = { + employer = { + character = PREVPREV + } + } + } + } + mother_even_if_dead = { is_alive = no } + NOT = { trait = bastard } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1905" + hidden_tooltip = { + father = { + character_event = { + id = 38205 + days = 3 + } + } + } + } +} + +# Child has trouble making friends +character_event = { + id = 1906 + desc = "EVTDESC1906" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + NOT = { trait = gregarious } + has_guardian = yes + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 3 + trait = stutter + } + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1906" + hidden_tooltip = { + guardian = { + character_event = { + id = 38206 + days = 3 + } + } + } + } +} + +# Child wants to play with friends instead of studying +character_event = { + id = 1907 + desc = "EVTDESC1907" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { personality_traits = 5 } + #NOT = { + # religion_group = muslim + #} + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1907" + hidden_tooltip = { + guardian = { + character_event = { + id = 38207 + days = 3 + } + } + } + } +} + +# Where do heathens come from? +character_event = { + id = 1908 + desc = "EVTDESC1908" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + religion_group = christian + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = zealous } + NOT = { trait = cynical } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1908" + hidden_tooltip = { + guardian = { + character_event = { + id = 38208 + days = 3 + } + } + } + } +} + +# Child is often playing very daring games with other children +character_event = { + id = 1909 + desc = "EVTDESC1909" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = craven } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1909" + hidden_tooltip = { + guardian = { + character_event = { + id = 38209 + days = 3 + } + } + } + } +} + +# Daddy, does God exist? +character_event = { + id = 1910 + desc = "EVTDESC1910" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + #religion_group = christian + NOT = { trait = zealous } + NOT = { trait = cynical } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1910" + guardian = { + character_event = { + id = 38210 + days = 3 + tooltip = "EVTTOOLTIP38210" + } + } + } +} + +# Why do people die? +character_event = { + id = 1911 + desc = "EVTDESC1911" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { is_ruler = yes } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1911" + hidden_tooltip = { + guardian = { + character_event = { + id = 38211 + days = 3 + } + } + } + } +} + +# Will I rule one day? +character_event = { + id = 1912 + desc = "EVTDESC1912" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 11 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { is_ruler = yes } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1912" + hidden_tooltip = { + guardian = { + character_event = { + id = 38212 + days = 3 + } + } + } + } +} + +# Child has developed a habit for wild parties +character_event = { + id = 1913 + desc = "EVTDESC1913" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = lustful } + NOT = { trait = chaste } + NOT = { personality_traits = 5 } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + trait = gregarious + } + } + + option = { + name = "EVTOPTA1913" + hidden_tooltip = { + guardian = { + character_event = { + id = 38213 + days = 3 + } + } + } + } +} + +# If we're Catholic and our enemies are Catholic, why are we fighting? +character_event = { + id = 1914 + desc = "EVTDESC1914" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + religion = catholic + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = cynical } + guardian = { + religion = catholic + OR = { + any_current_enemy = { religion = catholic } + any_liege = { any_current_enemy = { religion = catholic } } + } + } + NOT = { personality_traits = 5 } + + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1914" + hidden_tooltip = { + guardian = { + character_event = { + id = 38214 + days = 3 + } + } + } + } +} + +### Why is the church so rich when the peasants are starving and poor? ### +character_event = { + id = 1915 + desc = "EVTDESC1915" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + religion_group = christian + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = zealous } + NOT = { trait = cynical } + NOT = { trait = charitable } + NOT = { trait = greedy } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1915" + hidden_tooltip = { + guardian = { + character_event = { + id = 38215 + days = 3 + } + } + } + } +} + +# Why did you let off that peasant accused from poaching? +character_event = { + id = 1916 + desc = "EVTDESC1916" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { guardian = { trait = cruel } } + NOT = { guardian = { trait = arbitrary } } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1916" + hidden_tooltip = { + guardian = { + character_event = { + id = 38216 + days = 3 + } + } + } + } +} + +# These peasants we have are all mine to command like little slaves, right? +character_event = { + id = 1917 + desc = "EVTDESC1917" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { trait = kind } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + + } + + option = { + name = "EVTOPTA1917" + hidden_tooltip = { + guardian = { + character_event = { + id = 38217 + days = 3 + } + } + } + } +} + +# If a tree falls in the woods and there's nobody there to hear it, does it make a noise? +character_event = { + id = 1918 + desc = "EVTDESC1918" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + learning = 4 + NOT = { trait = diligent } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1918" + hidden_tooltip = { + guardian = { + character_event = { + id = 38218 + days = 3 + } + } + } + } +} + +# Since we all die anyway, why to be so hassled about life? +character_event = { + id = 1919 + desc = "EVTDESC1919" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { religion_group = indian_group } + NOT = { trait = lustful } + NOT = { trait = chaste } + NOT = { trait = temperate } + NOT = { trait = gluttonous } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1919" + hidden_tooltip = { + guardian = { + character_event = { + id = 38219 + days = 3 + } + } + } + } +} + +#How can I best serve God? +character_event = { + id = 1920 + desc = "EVTDESC1920" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + religion_group = christian + #religion_group = muslim + #religion_group = jewish_group + } + NOT = { trait = cynical } + NOT = { trait = craven } + NOT = { trait = brave } + NOT = { trait = just } + NOT = { trait = arbitrary } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1920" + hidden_tooltip = { + guardian = { + character_event = { + id = 38220 + days = 3 + } + } + } + } +} + +# Female Child is playing with swords instead of sewing +character_event = { + id = 1921 + desc = "EVTDESC1921" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + only_women = yes + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { + trait = brave + } + NOT = { + trait = humble + } + NOT = { + trait = just + } + NOT = { + trait = wounded + } + } + + weight_multiplier = { + days = 1 + modifier = { + religion = cathar + factor = 3 + } + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1921" + guardian = { + character_event = { + id = 38221 + days = 3 + tooltip = "EVTOOLTIP38221" + } + } + } +} + +# Child is ridiculed for cowardness +character_event = { + id = 1922 + desc = "EVTDESC1922" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + learning = 5 + NOT = { + martial = 3 + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1922" + guardian = { + character_event = { + id = 38222 + days = 3 + tooltip = "EVTOOLTIP38222" + } + } + } +} + +# Child is sneaking through the dungeons, and comes up with a bloody knife it found +character_event = { + id = 1923 + desc = "EVTDESC1923" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { + trait = craven + } + NOT = { + trait = deceitful + } + NOT = { + trait = cruel + } + NOT = { + trait = wroth + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + + } + + option = { + name = "EVTOPTA1923" + guardian = { + character_event = { + id = 38223 + days = 3 + tooltip = "EVTOOLTIP38223" + } + } + } +} + +# Child hides away to read books +character_event = { + id = 1924 + desc = "EVTDESC1924" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + learning = 6 + NOT = { + martial = 5 + } + NOT = { + trait = shy + } + NOT = { + trait = gregarious + } + NOT = { + trait = humble + } + NOT = { + trait = proud + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.1 + } + modifier = { + trait = harelip + factor = 1.1 + } + modifier = { + trait = hunchback + factor = 1.1 + } + modifier = { + trait = lisp + factor = 0.9 + } + modifier = { + trait = stutter + factor = 0.9 + } + modifier = { + trait = fair + factor = 1.05 + } + modifier = { + trait = ugly + factor = 1.05 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 10 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.1 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 2.0 + } + } + + option = { + name = "EVTOPTA1924" + guardian = { + character_event = { + id = 38224 + days = 3 + tooltip = "EVTOOLTIP38224" + } + } + } +} + +# Ugly child, fair courtier +character_event = { + id = 1925 + desc = "EVTDESC1925" + picture = "GFX_evt_child_play" + + min_age = 10 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + trait = ugly + guardian = { + any_courtier = { + trait = fair + } + } + NOT = { + trait = envious + } + NOT = { + trait = ambitious + } + NOT = { + trait = arbitrary + } + NOT = { + trait = content + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1925" + guardian = { + character_event = { + id = 38225 + days = 3 + tooltip = "EVTOOLTIP38225" + } + } + } +} + +# Fair child +character_event = { + id = 1926 + desc = "EVTDESC1926" + picture = "GFX_evt_child_play" + + min_age = 10 + max_age = 16 + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { + trait = proud + } + NOT = { + trait = gregarious + } + NOT = { + trait = shy + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1926" + guardian = { + character_event = { + id = 38226 + days = 3 + tooltip = "EVTOOLTIP38226" + } + } + } +} + +# Child shows a tendency to count money whenever possible... +character_event = { + id = 1927 + desc = "EVTDESC1927" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + AND = { + stewardship = 3 + age = 6 + NOT = { age = 11 } + } + AND = { + stewardship = 6 + age = 11 + } + } + NOT = { + trait = greedy + } + NOT = { + trait = charitable + } + NOT = { + trait = zealous + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.5 + } + modifier = { + trait = harelip + factor = 1.5 + } + modifier = { + trait = hunchback + factor = 2.0 + } + modifier = { + trait = lisp + factor = 1.5 + } + modifier = { + trait = stutter + factor = 1.5 + } + modifier = { + trait = fair + factor = 1.5 + } + modifier = { + trait = ugly + factor = 1.5 + } + modifier = { + trait = dwarf + factor = 1.05 + } + modifier = { + trait = genius + factor = 0.75 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.2 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.5 + } + modifier = { + trait = imbecile + factor = 0.05 + } + modifier = { + trait = inbred + factor = 0.25 + } + modifier = { + is_strong_trigger = yes + factor = 1.05 + } + modifier = { + is_weak_trigger = yes + factor = 1.25 + } + } + + option = { + name = "EVTOPTA1927" + guardian = { + character_event = { + id = 38227 + days = 3 + tooltip = "EVTOOLTIP38227" + } + } + } +} + +# Child shows interest in visitors to the court +character_event = { + id = 1928 + desc = "EVTDESC1928" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + AND = { + intrigue = 3 + age = 6 + } + AND = { + intrigue = 6 + age = 11 + } + } + NOT = { + trait = honest + } + NOT = { + trait = deceitful + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1928" + guardian = { + character_event = { + id = 38228 + days = 3 + tooltip = "EVTOOLTIP38228" + } + } + } +} + +# Child constantly plays with swords and practices fighting with older men +character_event = { + id = 1929 + desc = "EVTDESC1929" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + only_men = yes + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + AND = { + martial = 3 + age = 6 + } + AND = { + martial = 6 + age = 11 + } + } + NOT = { + trait = craven + } + NOT = { + trait = proud + } + NOT = { + trait = diligent + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1929" + guardian = { + character_event = { + id = 38229 + days = 3 + tooltip = "EVTOOLTIP38229" + } + } + } +} + +# First kiss +character_event = { + id = 1930 + desc = "EVTDESC1930" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + trait = kind + trait = gregarious + trait = trusting + } + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + NOT = { + trait = deceitful + } + NOT = { + trait = zealous + } + NOT = { + trait = paranoid + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1930" + guardian = { + character_event = { + id = 38230 + days = 3 + tooltip = "EVTOOLTIP38230" + } + } + } +} + +# Boy is spending all his time in the kitchen, risk becoming gluttonous and craven +character_event = { + id = 1931 + desc = "EVTDESC1931" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + only_men = yes + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { + trait = brave + } + NOT = { + trait = craven + } + NOT = { + trait = gluttonous + } + NOT = { + trait = temperate + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 1.05 + } + modifier = { + trait = harelip + factor = 1.10 + } + modifier = { + trait = hunchback + factor = 1.5 + } + modifier = { + trait = lisp + factor = 1.05 + } + modifier = { + trait = stutter + factor = 1.05 + } + modifier = { + trait = fair + factor = 0.95 + } + modifier = { + trait = ugly + factor = 1.10 + } + modifier = { + trait = dwarf + factor = 1.2 + } + modifier = { + trait = genius + factor = 0.95 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 0.95 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 1.2 + } + modifier = { + trait = imbecile + factor = 1.5 + } + modifier = { + trait = inbred + factor = 1.5 + } + modifier = { + is_strong_trigger = yes + factor = 0.05 + } + modifier = { + is_weak_trigger = yes + factor = 5.0 + } + } + + option = { + name = "EVTOPTA1931" + guardian = { + character_event = { + id = 38231 + days = 3 + tooltip = "EVTOOLTIP38231" + } + } + } +} + +# Too curious a child: Guardian finds him/her in the highest tower +character_event = { + id = 1932 + desc = "EVTDESC1932" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + NOT = { + trait = brave + } + NOT = { + trait = honest + } + NOT = { + trait = deceitful + } + NOT = { + trait = craven + } + can_be_maimed_trigger = yes + NOT = { + trait = wounded + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1932" + guardian = { + character_event = { + id = 38232 + days = 3 + tooltip = "EVTOOLTIP38232" + } + } + } +} + +# Child is ill +character_event = { + id = 1933 + desc = "EVTDESC1933" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + is_triggered_only = yes + + trigger = { + NOT = { + has_dlc = "Reapers" + } + has_guardian = yes + trait = ill + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1933" + guardian = { + character_event = { + id = 38233 + days = 3 + tooltip = "EVTOOLTIP38233" + } + } + } +} + +# Homosexual child +character_event = { + id = 1934 + desc = "EVTDESC1934" + picture = "GFX_evt_child_play" + + min_age = 11 + max_age = 16 + is_triggered_only = yes + + trigger = { + has_guardian = yes + trait = homosexual + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1934" + guardian = { + character_event = { + id = 38234 + days = 3 + tooltip = "EVTOOLTIP38234" + } + } + } +} + +# Child is good at talking to people, and have no problem getting friends +character_event = { + id = 1935 + desc = "EVTDESC1935" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + has_guardian = yes + OR = { + AND = { + age = 6 + intrigue = 3 + } + AND = { + age = 11 + intrigue = 6 + } + } + NOT = { + trait = honest + } + NOT = { + trait = deceitful + } + } + + weight_multiplier = { + days = 1 + modifier = { + trait = clubfooted + factor = 0.8 + } + modifier = { + trait = harelip + factor = 0.9 + } + modifier = { + trait = hunchback + factor = 0.7 + } + modifier = { + trait = lisp + factor = 0.95 + } + modifier = { + trait = stutter + factor = 0.95 + } + modifier = { + trait = fair + factor = 0.8 + } + modifier = { + trait = ugly + factor = 1.25 + } + modifier = { + trait = dwarf + factor = 0.9 + } + modifier = { + trait = genius + factor = 1.05 + } + modifier = { + OR = { + trait = quick + trait = shrewd + } + factor = 1.05 + } + modifier = { + OR = { + trait = slow + trait = dull + } + factor = 0.95 + } + + modifier = { + trait = imbecile + factor = 0.5 + } + modifier = { + trait = inbred + factor = 0.05 + } + modifier = { + is_strong_trigger = yes + factor = 5.0 + } + modifier = { + is_weak_trigger = yes + factor = 0.05 + } + } + + option = { + name = "EVTOPTA1935" + guardian = { + character_event = { + id = 38235 + days = 3 + tooltip = "EVTOOLTIP38235" + } + } + } +} + +#Child does not have a guardian +character_event = { + id = 1991 + desc = "EVTDESC1991" + picture = "GFX_evt_child_play" + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + lacks_dlc = "Conclave" + + trigger = { + has_guardian = no + independent = no + NOT = { personality_traits = 5 } + liege = { + any_courtier = { + character = ROOT + } + } + } + mean_time_to_happen = { + months = 16 + } + + option = { + name = "EVTOPTA1991" + if = { + limit = { + independent = no + } + liege = { + character_event = { + id = 2490 + tooltip = "EVTOOLTIP2490" + } + } + } + if = { + limit = { + independent = yes + } + regent = { + character_event = { + id = 2490 + tooltip = "EVTOOLTIP2490" + } + } + } + } +} \ No newline at end of file diff --git a/After the End/events/cm_charlemagne_story_events.txt b/After the End/events/cm_charlemagne_story_events.txt index 63aa382a9..bd8463fac 100644 --- a/After the End/events/cm_charlemagne_story_events.txt +++ b/After the End/events/cm_charlemagne_story_events.txt @@ -2179,7 +2179,7 @@ character_event = { prisoner = no } is_married = yes - NOT = { religion_group = muslim } + #NOT = { religion_group = muslim } spouse = { NOT = { has_character_flag = meddling_mother_conflict } is_ruler = no diff --git a/After the End/events/court_events.txt b/After the End/events/court_events.txt new file mode 100644 index 000000000..66f667cd1 --- /dev/null +++ b/After the End/events/court_events.txt @@ -0,0 +1,2289 @@ +############################################# +# +# Court Event Series +# +# Event ID 73000-73999 is reserved +# +############################################# +#Written by Johan Andersson + +#A famous writer proposes to compose your family chronicles +character_event = { + id = 73000 + desc = EVTDESC73000 + picture = GFX_evt_monk + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + + trigger = { + NOT = { trait = proud } + NOT = { trait = humble } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2.0 + trait = ambitious + } + modifier = { + factor = 0.1 + trait = shy + } + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = depressed + } + modifier = { + factor = 0.75 + trait = lunatic + } + modifier = { + factor = 0.75 + trait = possessed + } + modifier = { + factor = 0.9 + is_ill = yes + } + modifier = { + factor = 0.8 + trait = pneumonic + } + modifier = { + factor = 0.8 + trait = syphilitic + } + modifier = { + factor = 0.5 + trait = leper + } + modifier = { + factor = 0.9 + trait = wounded + } + modifier = { + factor = 0.8 + is_maimed_trigger = yes + } + modifier = { + factor = 0.5 + trait = infirm + } + modifier = { + factor = 0.4 + trait = incapable + } + modifier = { + factor = 0.5 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = has_tuberculosis + } + modifier = { + factor = 0.5 + trait = has_typhoid_fever + } + modifier = { + factor = 0.5 + trait = has_typhus + } + modifier = { + factor = 0.5 + trait = has_bubonic_plague + } + modifier = { + factor = 0.5 + trait = has_measles + } + modifier = { + factor = 0.5 + trait = has_small_pox + } + + } + + option = { + name = EVTOPTA73000 #Give him patronage + scaled_wealth = -0.2 + prestige = 25 + random = { + chance = 15 + add_trait = proud + hidden_tooltip = { character_event = { id = 38261 } } + } + } + option = { + name = EVTOPTB73000 #Ignore him + custom_tooltip = { + text = ALL_DYNASTY_MEMBERS_MINUS_5 + hidden_tooltip = { + any_dynasty_member = { + limit = { + NOT = { + character = ROOT + } + } + opinion = { + who = ROOT + modifier = disrespects_dynasty + months = 120 + } + } + } + } + random = { + chance = 15 + add_trait = humble + hidden_tooltip = { character_event = { id = 38260 } } + } + + } +} + +#Your young wife takes a passion for romantic poetry. She keeps reading any sort of romantic poetry she can get hold of. +character_event = { + id = 73001 + desc = EVTDESC73001 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + only_men = yes + is_married = yes + + trigger = { + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + NOT = { age = 21 } + NOT = { demesne_size = 1 } + fertility = 0.15 + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 4.0 + spouse = { is_pregnant = yes } + } + modifier = { + factor = 2.0 + spouse = { trait = poet } + } + modifier = { + factor = 1.5 + trait = gregarious + } + } + + option = { + name = EVTOPTA73001 # Help her, by getting her more to read. + wealth = -10 + spouse = { + fertility = 0.1 + if = { + limit = { + NOT = { + trait = lustful + } + } + add_trait = lustful + } + opinion = { + who = ROOT + modifier = spouse_encouraged + months = 12 + } + } + } + option = { + name = EVTOPTB73001 # That is her interests, not mine. + piety = 5 + spouse = { + fertility = -0.1 + opinion = { + who = ROOT + modifier = spouse_ignores_me + months = 12 + } + } + } + option = { + name = { + text = EVTOPTC73001 # These are books created by satan! + trigger = { + religion_group = christian + } + } + #name = { + # text = EVTOPTD73001 # These are books created by Shaytan! + # trigger = { + # religion_group = muslim + # } + #} + trigger = { + religion_group = christian + } + ai_chance = { + factor = 1 + modifier = { + factor = 0 + NOT= { trait = zealous } + } + } + spouse = { + add_trait = chaste + } + piety = 10 + } +} + +#The Church wants to organise a Miracle play for a local saint +character_event = { + id = 73002 + desc = EVTDESC73002 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + religion = catholic + + trigger = { + in_command = no + any_vassal = { + tier = baron + is_theocracy = yes + NOT = { + has_opinion_modifier = { who = ROOT modifier = ignores_local_saints } + } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.1 + trait = cynical + } + } + + option = { + name = EVTOPTA73002 # It is for the glory of God! + scaled_wealth = -0.20 + piety = 10 + } + option = { + name = EVTOPTB73002 # If the Church wants it, the Church pays for it + random_vassal = { + limit = { + tier = baron + is_theocracy = yes + } + opinion = { + who = ROOT + modifier = ignores_local_saints + years = 2 + } + } + } +} + +#The Peasants wants to organise a great carnival and ask for your funding +character_event = { + id = 73003 + desc = EVTDESC73003 + picture = GFX_evt_emissary + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + religion_group = christian + + trigger = { + in_command = no + tier = count + wealth = 50 + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.5 + trait = kind + } + } + + option = { + name = EVTOPTA73003 # We are rich, we can support this. + wealth = -25 + if = { + limit = { trait = greedy } + prestige = -5 + } + } + option = { + name = EVTOPTB73003 # They are just peasants.. + random_demesne_province = { + add_province_modifier = { + name = peasants_scorned + duration = 120 + } + } + remove_trait = just + } +} + +#A famous writer proposes to compose your family chronicles ## A talented artist proposes to paint a portrait of your father +character_event = { + id = 73004 + desc = EVTDESC73004 + picture = GFX_evt_monk + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + + trigger = { + in_command = no + father_even_if_dead = { + is_alive = no + prestige = 100 + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2.0 + trait = ambitious + } + modifier = { + factor = 0.1 + trait = shy + } + } + + option = { + name = EVTOPTA73004 #This will be grand in the main hall + scaled_wealth = -0.15 + prestige = 25 + } + option = { + name = EVTOPTB73004 #This is a waste of money + any_dynasty_member = { + opinion = { + who = ROOT + modifier = disrespects_dynasty + months = 120 + } + } + } +} + +#Luxury clothes are trendy at the moment. What about keeping your courtiers busy by changing the fashion at court? +character_event = { + id = 73005 + desc = EVTDESC73005 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + + trigger = { + in_command = no + OR = { + trait = fair + trait = ugly + } + NOT = { trait = humble } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2.0 + trait = proud + trait = fair + } + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = depressed + } + modifier = { + factor = 0.75 + trait = lunatic + } + modifier = { + factor = 0.75 + trait = possessed + } + modifier = { + factor = 0.9 + is_ill = yes + } + modifier = { + factor = 0.8 + trait = pneumonic + } + modifier = { + factor = 0.8 + trait = syphilitic + } + modifier = { + factor = 0.5 + trait = leper + } + modifier = { + factor = 0.9 + trait = wounded + } + modifier = { + factor = 0.8 + is_maimed_trigger = yes + } + modifier = { + factor = 0.5 + trait = infirm + } + modifier = { + factor = 0.4 + trait = incapable + } + modifier = { + factor = 0.5 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = has_tuberculosis + } + modifier = { + factor = 0.5 + trait = has_typhoid_fever + } + modifier = { + factor = 0.5 + trait = has_typhus + } + modifier = { + factor = 0.5 + trait = has_bubonic_plague + } + modifier = { + factor = 0.5 + trait = has_measles + } + modifier = { + factor = 0.5 + trait = has_small_pox + } + } + + option = { + name = EVTOPTA73005 #Introduce fashion at the court + if = { + limit = { trait = fair } + random = { + chance = 10 + add_trait = proud + hidden_tooltip = { character_event = { id = 38261 } } + } + } + scaled_wealth = -0.2 + prestige = 5 + piety = -5 + any_courtier = { + wealth = -5 + prestige = 5 + piety = -5 + } + + } + option = { + name = EVTOPTB73005 #There are better ways of spending the taxes + piety = 5 + prestige = 10 + + random = { + chance = 15 + add_trait = humble + hidden_tooltip = { character_event = { id = 38260 } } + } + + } +} + +#Your son has got a servant maid pregnant +character_event = { + id = 73006 + desc = EVTDESC73006 + picture = GFX_evt_pregnancy + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + only_men = yes + + trigger = { + any_child = { + is_married = no + is_female = no + age = 16 + NOT = { age = 21 } + NOT = { demesne_size = 1 } + NOT = { trait = chaste } + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { is_ascetic_trigger = yes } + } + } + immediate = { + random_child = { + limit = { + is_married = no + is_female = no + age = 16 + NOT = { age = 21 } + NOT = { demesne_size = 1 } + NOT = { trait = chaste } + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { is_ascetic_trigger = yes } + } + save_event_target_as = knocked_up_maid + } + + } + option = { + name = EVTOPTA73006 #That's my boy + trigger = { + NOT = { trait = chaste } + NOT = { trait = celibate } + } + piety = -10 + event_target:knocked_up_maid = { + opinion = { + modifier = approves_of_my_behaviour + who = ROOT + years = 2 + } + add_trait = lustful + } + } + option = { + name = EVTOPTB73006 #Force him to adopt the child to prevent scandal + piety = 10 + event_target:knocked_up_maid = { + opinion = { + modifier = resentful_of_my_behaviour + who = ROOT + years = 2 + } + create_character = { + age = 0 + trait = bastard + } + new_character = { + set_father = prev + dynasty = father + } + prestige = -5 + } + } + option = { + name = EVTOPTC73006 #Give him a beating for messing with inferiors + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + event_target:knocked_up_maid = { + opinion = { + modifier = resentful_of_my_behaviour + who = ROOT + years = 2 + } + add_trait = wroth + add_trait = ambitious + } + } + option = { + name = EVTOPTD73006 #Send him to confess his sins + trigger = { + religion_group = christian + } + event_target:knocked_up_maid = { + if = { + limit = { + religion_group = christian + } + add_trait = chaste + } + } + } +} + +### Bored wife: Your wife wants latest fashion fad.... ### +character_event = { + id = 73007 + desc = EVTDESC73007 + picture = GFX_evt_daughter_asking_father + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + only_men = yes + + trigger = { + in_command = no + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + NOT = { trait = shy } + NOT = { trait = zealous } + NOT = { demesne_size = 1 } + opinion = { who = ROOT value = 10 } + } + NOT = { trait = zealous } + NOT = { trait = charitable } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.25 + spouse = { trait = stressed } + } + modifier = { + factor = 2.0 + spouse = { trait = greedy } + } + modifier = { + factor = 1.5 + spouse = { trait = fair } + } + modifier = { + factor = 2.5 + spouse = { trait = ugly } + } + + } + + option = { + name = EVTOPTA73007 #My money is your money, darling + trigger = { + NOT = { trait = greedy } + } + if = { + limit = { spouse = { trait = stressed } } + spouse = { remove_trait = stressed } + } + add_trait = charitable + character_event = { id = 73005 days = 10 tooltip = EVTTOOLTIP73005 } + } + option = { + name = EVTOPTB73007 #Let's go to the church instead, darling + trigger = { + religion_group = christian + } + if = { + limit = { trait = cynical } + prestige = -5 + } + add_trait = zealous + spouse = { add_trait = zealous } + + } + option = { + name = EVTOPTC73007 #Shoo, this is my money you're talking about + trigger = { + NOT = { trait = greedy } + } + add_trait = greedy + spouse = { + opinion = { + who = ROOT + modifier = not_feeling_apreciated + years = 2 + } + } + } +} + +#A famous herald proposed his service +character_event = { + id = 73008 + desc = EVTDESC73008 + picture = GFX_evt_emissary + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + ai = no + + trigger = { + is_landed = yes + capital_scope = { TECH_NOBLE_CUSTOMS = 4 } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.05 + trait = shy + } + modifier = { + factor = 1.25 + trait = gregarious + } + } + option = { + name = EVTOPTA73008 #Hire him. + create_random_diplomat = { + random_traits = yes + dynasty = random + female = no + } + scaled_wealth = -0.1 + } + option = { + name = EVTOPTB73008 #Not interested + prestige = -5 + } + +} + +# A destitute noble FROM a former enemy court ask for permanent hospitality +character_event = { + id = 73009 + desc = EVTDESC73009 + picture = GFX_evt_emissary + + is_triggered_only = yes + + min_age = 16 + only_playable = yes + prisoner = no + war = yes + + trigger = { + any_current_enemy = { + culture = ROOT + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 0.2 + trait = cruel + } + modifier = { + factor = 0.2 + trait = arbitrary + } + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = depressed + } + modifier = { + factor = 0.75 + trait = lunatic + } + modifier = { + factor = 0.75 + trait = possessed + } + modifier = { + factor = 0.9 + is_ill = yes + } + modifier = { + factor = 0.8 + trait = pneumonic + } + modifier = { + factor = 0.8 + trait = syphilitic + } + modifier = { + factor = 0.5 + trait = leper + } + modifier = { + factor = 0.9 + trait = wounded + } + modifier = { + factor = 0.8 + is_maimed_trigger = yes + } + modifier = { + factor = 0.5 + trait = infirm + } + modifier = { + factor = 0.4 + trait = incapable + } + modifier = { + factor = 0.5 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = has_tuberculosis + } + modifier = { + factor = 0.5 + trait = has_typhoid_fever + } + modifier = { + factor = 0.5 + trait = has_typhus + } + modifier = { + factor = 0.5 + trait = has_bubonic_plague + } + modifier = { + factor = 0.5 + trait = has_measles + } + modifier = { + factor = 0.5 + trait = has_small_pox + } + } + + option = { + name = EVTOPTA73009 #Welcome him to your court + scaled_wealth = -0.2 + create_random_soldier = { + random_traits = yes + dynasty = random + female = no + } + new_character = { + ROOT = { + random_current_enemy = { + limit = { + culture = ROOT + } + random_demesne_title = { + limit = { + OR = { + AND = { + tier = baron + is_capital = no + } + tier = count + } + } + add_claim = prevprevprev + } + } + } + } + } + option = { + name = EVTOPTB73009 #Tell him he can only stay for the night + piety = 15 + } + +} + +#I've been readin 'Ars Moriendi', and it claims that death is not something to be afraid of. +character_event = { + id = 73010 + desc = EVTDESC73010 + picture = GFX_evt_library + + min_age = 55 + only_playable = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + year = 1415 + OR = { + religion = catholic + religion = cathar + religion = fraticelli + religion = waldensian + religion = lollard + } + NOT = { has_character_flag = ars_moriendi } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.5 + age = 58 + } + modifier = { + factor = 2.0 + age = 62 + } + modifier = { + factor = 100.0 + age = 65 + } + modifier = { + factor = 5.0 + trait = zealous + } + + + modifier = { + factor = 1.25 + trait = stressed + } + modifier = { + factor = 1.25 + trait = depressed + } + modifier = { + factor = 1.5 + trait = lunatic + } + modifier = { + factor = 1.5 + trait = possessed + } + modifier = { + factor = 1.1 + is_ill = yes + } + modifier = { + factor = 1.25 + trait = pneumonic + } + modifier = { + factor = 1.25 + trait = syphilitic + } + modifier = { + factor = 2.0 + trait = leper + } + modifier = { + factor = 1.15 + trait = wounded + } + modifier = { + factor = 1.25 + is_maimed_trigger = yes + } + modifier = { + factor = 2.0 + trait = infirm + } + modifier = { + factor = 3.0 + trait = incapable + } + modifier = { + factor = 1.1 + trait = drunkard + } + modifier = { + factor = 1.1 + trait = has_tuberculosis + } + modifier = { + factor = 1.1 + trait = has_typhoid_fever + } + modifier = { + factor = 1.5 + trait = has_typhus + } + modifier = { + factor = 1.5 + trait = has_bubonic_plague + } + modifier = { + factor = 1.1 + trait = has_measles + } + modifier = { + factor = 1.1 + trait = has_small_pox + } + } + + immediate = { + set_character_flag = ars_moriendi + } + + option = { + name = EVTOPTA73011 #I am avoiding tempration. + trigger = { + NOT = { trait = cynical } + NOT = { trait = lustful } + NOT = { trait = gluttonous } + NOT = { trait = greedy } + NOT = { trait = slothful } + NOT = { trait = envious } + NOT = { trait = wroth } + NOT = { trait = proud } + + } + health = -1 + piety = 100 + } + option = { + name = EVTOPTB73011 #Forgive me father, for I have sinned. + trigger = { + NOT = { trait = cynical } + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + } + if = { + limit = { + trait = lustful + } + remove_trait = lustful + piety = -20 + } + if = { + limit = { + trait = gluttonous + } + remove_trait = gluttonous + piety = -20 + } + if = { + limit = { + trait = greedy + } + remove_trait = greedy + piety = -20 + } + if = { + limit = { + trait = slothful + } + remove_trait = slothful + piety = -20 + } + if = { + limit = { + trait = envious + } + remove_trait = envious + piety = -20 + } + if = { + limit = { + trait = wroth + } + remove_trait = wroth + piety = -20 + } + if = { + limit = { + trait = proud + } + remove_trait = proud + piety = -20 + } + } + option = { + name = EVTOPTC73011 #I do not fear death... + tooltip_info = cynical + trigger = { + trait = cynical + NOT = { trait = craven } + } + piety = -5 + prestige = 5 + health = -2 + } + option = { + name = EVTOPTD73011 #I am just a poor sinner.. + piety = -10 + health = -2 + } +} + + + +##################################### +# Ask for a job if I am good! +##################################### + + +### MARSHAL ### +character_event = { + id = 73200 + desc = EVTDESC73200 #I want to be marshal, I am better... + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_war + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + is_ruler = no + is_councillor = no + independent = no + NOT = { liege = { has_character_flag = asked_marshal_petition } } + NOT = { has_character_flag = asked_for_job } + liege = { + job_marshal = { + same_liege = ROOT + NOT = { martial = ROOT } + NOT = { has_minor_title = title_regent } + } + } + can_hold_title = job_marshal + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.25 + trait = ambitious + } + } + + immediate = { + set_character_flag = asked_for_job + liege = { set_character_flag = asked_marshal_petition } + } + + option = { + name = EVTOPTA73200 + liege = { letter_event = { id = 73201 tooltip = EVTTOOLTIP73201 } } + } +} + +#Someone wants to be my marshal +letter_event = { + id = 73201 + desc = EVTDESC73201 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA73201 + job_marshal = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_marshal + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_marshal + hidden_tooltip = { letter_event = { id = 73205 } } + } + clr_character_flag = asked_marshal_petition + + } + option = { + name = EVTOPTB73201 + trigger = { + job_marshal = { + NOT = { trait = stressed } + NOT = { trait = depressed } + } + } + job_marshal = { + letter_event = { id = 73202 tooltip = EVTTOOLTIP73202 } + } + hidden_tooltip = { FROM = { character_event = { id = 73203 days = 128 random = 63 } } } + } + option = { + name = EVTOPTC73201 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_marshal_petition + } +} + +#I am being replaced... +letter_event = { + id = 73202 + desc = EVTDESC73202 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + trigger = { + has_job_title = job_marshal + } + + option = { + name = EVTOPTA73202 + random_list = { + 50 = {} + 30 = { change_martial = 1 } + 20 = { add_trait = stressed hidden_tooltip = { character_event = { id = 38282 }} } + } + } + + option = { + name = EVTOPTB73202 + trigger = { + NOT = { trait = ambitious } + NOT = { trait = proud } + } + prestige = -5 + } +} + +#Ask again +character_event = { + id = 73203 + desc = EVTDESC73203 + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_war + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = asked_for_job + independent = no + is_councillor = no + NOT = { has_job_title = job_marshal } + liege = { + NOT = { character = ROOT } + job_marshal = { + NOT = { martial = ROOT } + same_liege = ROOT + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + } + } + + option = { + name = EVTOPTA73203 + liege = { letter_event = { id = 73204 tooltip = EVTTOOLTIP73204 } } + } +} + +#Asking again... +letter_event = { + id = 73204 + desc = EVTDESC73204 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA73204 + job_marshal = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_marshal + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_marshal + hidden_tooltip = { letter_event = { id = 73205 } } + } + clr_character_flag = asked_marshal_petition + + } + option = { + name = EVTOPTC73204 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_marshal_petition + } +} + +#We are replaced +letter_event = { + id = 73205 + desc = EVTDESC73205 + picture = GFX_evt_spymaster + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA73205 + prestige = -5 + } +} + +### Spymaster ### +character_event = { + id = 73210 + desc = EVTDESC73210 #I want to be spymaster, I am better... + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + is_ruler = no + independent = no + is_councillor = no + NOT = { liege = { has_character_flag = asked_spymaster_petition } } + NOT = { has_character_flag = asked_for_job } + liege = { + job_spymaster = { + same_liege = ROOT + NOT = { intrigue = ROOT } + NOT = { has_minor_title = title_regent } + } + } + can_hold_title = job_spymaster + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.25 + trait = ambitious + } + } + immediate = { + set_character_flag = asked_for_job + liege = { set_character_flag = asked_spymaster_petition } + } + + option = { + name = EVTOPTA73210 + liege = { letter_event = { id = 73211 tooltip = EVTTOOLTIP73211 } } + } +} + +#Someone wants to be my spymaster +letter_event = { + id = 73211 + desc = EVTDESC73211 + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA73211 + job_spymaster = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_spymaster + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_spymaster + hidden_tooltip = { letter_event = { id = 73215 } } + } + clr_character_flag = asked_spymaster_petition + } + option = { + name = EVTOPTB73211 + trigger = { + job_spymaster = { + NOT = { trait = stressed } + NOT = { trait = depressed } + } + } + job_spymaster = { + letter_event = { id = 73212 tooltip = EVTTOOLTIP73212 } + } + hidden_tooltip = { FROM = { character_event = { id = 73213 days = 128 random = 63 } } } + } + option = { + name = EVTOPTC73211 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_spymaster_petition + } +} + +#I am being replaced... +letter_event = { + id = 73212 + desc = EVTDESC73212 + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_job_title = job_spymaster + } + + option = { + name = EVTOPTA73212 + random_list = { + 50 = {} + 30 = { change_intrigue = 1 } + 20 = { add_trait = stressed hidden_tooltip = { character_event = { id = 38282 }} } + } + } + option = { + name = EVTOPTB73212 + trigger = { + NOT = { trait = ambitious } + NOT = { trait = proud } + } + prestige = -5 + } +} + +#Ask again +character_event = { + id = 73213 + desc = EVTDESC73213 + picture = GFX_evt_spymaster + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = asked_for_job + independent = no + is_councillor = no + NOT = { has_job_title = job_spymaster } + liege = { + NOT = { character = ROOT } + job_spymaster = { + NOT = { intrigue = ROOT } + same_liege = ROOT + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + } + } + + option = { + name = EVTOPTA73213 + liege = { letter_event = { id = 73214 tooltip = EVTTOOLTIP73214 } } + } +} + +#Asking again... +letter_event = { + id = 73214 + desc = EVTDESC73214 + + is_triggered_only = yes + + option = { + name = EVTOPTA73214 + job_spymaster = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_spymaster + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_spymaster + hidden_tooltip = { letter_event = { id = 73215 } } + } + clr_character_flag = asked_spymaster_petition + } + option = { + name = EVTOPTC73214 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_spymaster_petition + } +} + +#We are replaced +letter_event = { + id = 73215 + desc = EVTDESC73215 + + is_triggered_only = yes + + option = { + name = EVTOPTA73215 + prestige = -5 + } +} + +### Treasurer ### +character_event = { + id = 73220 + desc = EVTDESC73220 #I want to be treasurer, I am better... + picture = GFX_evt_spymaster + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + is_ruler = no + independent = no + is_councillor = no + NOT = { liege = { has_character_flag = asked_treasurer_petition } } + NOT = { has_character_flag = asked_for_job } + liege = { + job_treasurer = { + same_liege = ROOT + NOT = { stewardship = ROOT } + NOT = { has_minor_title = title_regent } + } + } + can_hold_title = job_treasurer + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.25 + trait = ambitious + } + } + immediate = { + set_character_flag = asked_for_job + liege = { set_character_flag = asked_treasurer_petition } + } + + option = { + name = EVTOPTA73220 + liege = { letter_event = { id = 73221 tooltip = EVTTOOLTIP73221 } } + } +} + +#Someone wants to be my treasurer +letter_event = { + id = 73221 + desc = EVTDESC73221 + + is_triggered_only = yes + + option = { + name = EVTOPTA73221 + job_treasurer = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_treasurer + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_treasurer + hidden_tooltip = { letter_event = { id = 73225 } } + } + clr_character_flag = asked_treasurer_petition + + } + option = { + name = EVTOPTB73221 + trigger = { + job_treasurer = { + NOT = { trait = stressed } + NOT = { trait = depressed } + } + } + job_treasurer = { + letter_event = { id = 73222 tooltip = EVTTOOLTIP73222 } + } + hidden_tooltip = { FROM = { character_event = { id = 73223 days = 128 random = 63 } } } + } + option = { + name = EVTOPTC73221 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_treasurer_petition + } +} + +#I am being replaced... +letter_event = { + id = 73222 + desc = EVTDESC73222 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + trigger = { + has_job_title = job_treasurer + } + + option = { + name = EVTOPTA73222 + random_list = { + 50 = {} + 30 = { change_stewardship = 1 } + 20 = { add_trait = stressed hidden_tooltip = { character_event = { id = 38282 }} } + } + } + option = { + name = EVTOPTB73222 + trigger = { + NOT = { trait = ambitious } + NOT = { trait = proud } + } + prestige = -5 + } +} + +#Ask again +character_event = { + id = 73223 + desc = EVTDESC73223 + picture = GFX_evt_spymaster + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = asked_for_job + independent = no + is_councillor = no + NOT = { has_job_title = job_treasurer } + liege = { + NOT = { character = ROOT } + job_treasurer = { + NOT = { stewardship = ROOT } + same_liege = ROOT + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + } + } + + option = { + name = EVTOPTA73223 + liege = { letter_event = { id = 73224 tooltip = EVTTOOLTIP73224 } } + } +} + +#Asking again... +letter_event = { + id = 73224 + desc = EVTDESC73224 + + is_triggered_only = yes + + option = { + name = EVTOPTA73224 + job_treasurer = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_treasurer + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_treasurer + hidden_tooltip = { letter_event = { id = 73225 } } + } + clr_character_flag = asked_treasurer_petition + + } + option = { + name = EVTOPTC73224 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_treasurer_petition + } +} + +#We are replaced +letter_event = { + id = 73225 + desc = EVTDESC73225 + + is_triggered_only = yes + + option = { + name = EVTOPTA73225 + prestige = -5 + } +} + +### Lord Spiritual ### +character_event = { + id = 73230 + desc = EVTDESC73230 #I want to be lord_spiritual, I am better... + picture = GFX_evt_spymaster + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + OR = { + is_theocracy = yes + AND = { + is_ruler = no + NOT = { religion = orthodox } + NOT = { is_heresy_of = orthodox } + NOT = { religion = miaphysite } + NOT = { is_heresy_of = miaphysite } + } + } + independent = no + is_councillor = no + NOT = { liege = { has_character_flag = asked_lord_spiritual_petition } } + NOT = { has_character_flag = asked_for_job } + liege = { + NOT = { character = ROOT } + job_spiritual = { + same_liege = ROOT + NOT = { learning = ROOT } + NOT = { has_minor_title = title_regent } + NOT = { ROOT = { religion_head = { character = PREVPREV } } } # Won't claim to be a better chaplain than your religious head... + } + religion = ROOT + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + can_hold_title = job_spiritual + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.25 + trait = ambitious + } + } + immediate = { + set_character_flag = asked_for_job + liege = { set_character_flag = asked_lord_spiritual_petition } + } + + option = { + name = EVTOPTA73230 + liege = { letter_event = { id = 73231 tooltip = EVTTOOLTIP73231 } } + } +} + +#Someone wants to be my Lord Spiritual +letter_event = { + id = 73231 + desc = EVTDESC73231 + + is_triggered_only = yes + + option = { + name = EVTOPTA73231 + job_spiritual = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_spiritual + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_spiritual + hidden_tooltip = { letter_event = { id = 73235 } } + } + clr_character_flag = asked_lord_spiritual_petition + + } + option = { + name = EVTOPTB73231 + trigger = { + job_spiritual = { + NOT = { trait = stressed } + NOT = { trait = depressed } + } + } + job_spiritual = { + letter_event = { id = 73232 tooltip = EVTTOOLTIP73232 } + } + hidden_tooltip = { FROM = { character_event = { id = 73233 days = 128 random = 63 } } } + } + option = { + name = EVTOPTC73231 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_lord_spiritual_petition + } +} + +#I am being replaced... +letter_event = { + id = 73232 + desc = EVTDESC73232 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + trigger = { + has_job_title = job_spiritual + } + + option = { + name = EVTOPTA73232 + random_list = { + 50 = {} + 30 = { change_learning = 1 } + 20 = { add_trait = stressed hidden_tooltip = { character_event = { id = 38282 }} } + } + } + option = { + name = EVTOPTB73232 + trigger = { + NOT = { trait = ambitious } + NOT = { trait = proud } + } + prestige = -5 + } +} + +#Ask again +character_event = { + id = 73233 + desc = EVTDESC73233 + picture = GFX_evt_spymaster + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = asked_for_job + independent = no + is_councillor = no + NOT = { has_job_title = job_spiritual } + liege = { + NOT = { character = ROOT } + job_spiritual = { + NOT = { learning = ROOT } + same_liege = ROOT + NOT = { has_minor_title = title_regent } + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + } + } + + option = { + name = EVTOPTA73233 + liege = { letter_event = { id = 73234 tooltip = EVTTOOLTIP73234 } } + } +} + +#Asking again... +letter_event = { + id = 73234 + desc = EVTDESC73234 + + is_triggered_only = yes + + + option = { + name = EVTOPTA73234 + job_spiritual = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_spiritual + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_spiritual + hidden_tooltip = { letter_event = { id = 73235 } } + } + clr_character_flag = asked_lord_spiritual_petition + + } + option = { + name = EVTOPTC73234 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_lord_spiritual_petition + } +} + +#We are replaced +letter_event = { + id = 73235 + desc = EVTDESC73235 + + is_triggered_only = yes + + option = { + name = EVTOPTA73235 + prestige = -5 + } +} + +### Chancellor ### +character_event = { + id = 73240 + desc = EVTDESC73240 #I want to be Chancellor, I am better... + picture = GFX_evt_spymaster + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + is_ruler = no + independent = no + is_councillor = no + NOT = { liege = { has_character_flag = asked_chancellor_petition } } + NOT = { has_character_flag = asked_for_job } + liege = { + job_chancellor = { + same_liege = ROOT + NOT = { diplomacy = ROOT } + NOT = { has_minor_title = title_regent } + } + } + can_hold_title = job_chancellor + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.25 + trait = ambitious + } + } + immediate = { + set_character_flag = asked_for_job + liege = { set_character_flag = asked_chancellor_petition } + } + + option = { + name = EVTOPTA73240 + liege = { letter_event = { id = 73241 tooltip = EVTTOOLTIP73241 } } + } +} + +#Someone wants to be my Chancellor +letter_event = { + id = 73241 + desc = EVTDESC73241 + + is_triggered_only = yes + + option = { + name = EVTOPTA73241 + job_chancellor = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_chancellor + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_chancellor + hidden_tooltip = { letter_event = { id = 73245 } } + } + clr_character_flag = asked_chancellor_petition + + } + option = { + name = EVTOPTB73241 + trigger = { + job_chancellor = { + NOT = { trait = stressed } + NOT = { trait = depressed } + } + } + job_chancellor = { + letter_event = { id = 73242 tooltip = EVTTOOLTIP73242 } + } + hidden_tooltip = { FROM = { character_event = { id = 73243 days = 128 random = 63 } } } + } + option = { + name = EVTOPTC73241 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_chancellor_petition + } +} + +#I am being replaced... +letter_event = { + id = 73242 + desc = EVTDESC73242 + + is_triggered_only = yes + + trigger = { + has_job_title = job_chancellor + } + + option = { + name = EVTOPTA73242 + random_list = { + 50 = {} + 30 = { change_diplomacy = 1 } + 20 = { add_trait = stressed hidden_tooltip = { character_event = { id = 38282 }} } + } + } + option = { + name = EVTOPTB73242 + trigger = { + NOT = { trait = ambitious } + NOT = { trait = proud } + } + prestige = -5 + } +} + +#Ask again +character_event = { + id = 73243 + desc = EVTDESC73243 + picture = GFX_evt_spymaster + + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_character_flag = asked_for_job + independent = no + is_councillor = no + NOT = { has_job_title = job_chancellor } + liege = { + NOT = { character = ROOT } + job_chancellor = { + NOT = { diplomacy = ROOT } + same_liege = ROOT + NOT = { + ROOT = { + is_liege_of = PREV + } + } + } + } + } + + option = { + name = EVTOPTA73243 + liege = { letter_event = { id = 73244 tooltip = EVTTOOLTIP73244 } } + } +} + +#Asking again... +letter_event = { + id = 73244 + desc = EVTDESC73244 + + is_triggered_only = yes + + option = { + name = EVTOPTA73244 + job_chancellor = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_chancellor + } + FROM = { + clr_character_flag = asked_for_job + give_job_title = job_chancellor + hidden_tooltip = { letter_event = { id = 73245 } } + } + clr_character_flag = asked_chancellor_petition + + } + option = { + name = EVTOPTC73244 + FROM = { + prestige = -10 + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_refused_council + } + } + clr_character_flag = asked_chancellor_petition + } +} + +#We are replaced +letter_event = { + id = 73245 + desc = EVTDESC73245 + + is_triggered_only = yes + + option = { + name = EVTOPTA73245 + prestige = -5 + } +} diff --git a/After the End/events/evil_events.txt b/After the End/events/evil_events.txt new file mode 100644 index 000000000..55b299a2e --- /dev/null +++ b/After the End/events/evil_events.txt @@ -0,0 +1,623 @@ +############################################# +# +# Evil events +# +# Event ID 68000-68999 is reserved +# +############################################# +# Written by Johan Andersson +# Adjusted by Henrik Fåhraeus + +#If in the red => increase revolt risk in a province. +province_event = { + id = 68000 + desc = "EVTDESC68000" + picture = "GFX_evt_bandits" + + notification = yes + + trigger = { + NOT = { owner = { wealth = 0 } } + NOT = { has_province_modifier = incompetent_rule } + } + + mean_time_to_happen = { + months = 240 + + #lower if really bad demesne efficiency + modifier = { + factor = 0.9 + NOT = { owner = { wealth = -50 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { wealth = -100 } } + } + modifier = { + factor = 0.5 + NOT = { owner = { wealth = -200 } } + } + modifier = { + factor = 0.3 + NOT = { owner = { wealth = -300 } } + } + modifier = { + factor = 0.1 + NOT = { owner = { wealth = -500 } } + } + + #traits affect this + modifier = { + factor = 1.5 + owner = { trait = ambitious } + } + modifier = { + factor = 5.0 + owner = { trait = just } + } + modifier = { + factor = 0.5 + owner = { trait = arbitrary } + } + modifier = { + factor = 0.7 + owner = { trait = greedy } + } + modifier = { + factor = 0.7 + owner = { trait = cruel } + } + modifier = { + factor = 0.1 + owner = { trait = slothful } + } + modifier = { + factor = 0.2 + owner = { trait = incapable } + } + modifier = { + factor = 0.1 + owner = { trait = infirm } + } + + #modify by stewardship and intrigue + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 15 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 10 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 5 } } + } + modifier = { + factor = 2.0 + owner = { realm_stewardship = 25 } + } + modifier = { + factor = 1.5 + owner = { realm_stewardship = 20 } + } + modifier = { + factor = 2.0 + owner = { realm_intrigue = 25 } + } + modifier = { + factor = 1.5 + owner = { realm_intrigue = 20 } + } + } + + immediate = { + add_province_modifier = { + name = incompetent_rule + duration = -1 + } + } + + option = { + name = "EVTOPTA68000" + } +} + +province_event = { + id = 68001 + desc = "EVTDESC68001" + picture = "GFX_evt_council" + + notification = yes + + trigger = { + owner = { wealth = 0 } + has_province_modifier = incompetent_rule + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.5 + owner = { realm_stewardship = 20 } + } + modifier = { + factor = 0.75 + owner = { realm_intrigue = 20 } + } + + modifier = { + factor = 0.75 + owner = { trait = just } + } + } + + immediate = { + remove_province_modifier = incompetent_rule + } + + option = { + name = "EVTOPTA68001" + trigger = { + owner = { + religion_group = christian + } + } + } + #option = { + # name = "EVTOPTB68001" + # trigger = { + # owner = { + # religion_group = muslim + # } + # } + #} + option = { + name = "EVTOPTA88283" + trigger = { + owner = { + NOT = { religion_group = christian } + #NOT = { religion_group = muslim } + } + } + } +} + +# Establishment of thieves_guild in a province, if budget in the red +province_event = { + id = 68010 + desc = "EVTDESC68010" + picture = "GFX_evt_bandits" + + notification = yes + + trigger = { + NOT = { owner = { wealth = 0 } } + NOT = { has_province_modifier = thieves_guild } + } + + mean_time_to_happen = { + months = 240 + + #lower if really bad demesne efficiency + modifier = { + factor = 0.9 + NOT = { owner = { wealth = -50 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { wealth = -100 } } + } + modifier = { + factor = 0.5 + NOT = { owner = { wealth = -200 } } + } + modifier = { + factor = 0.3 + NOT = { owner = { wealth = -300 } } + } + modifier = { + factor = 0.1 + NOT = { owner = { wealth = -500 } } + } + + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 15 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 10 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_stewardship = 5 } } + } + + modifier = { + factor = 1.5 + owner = { realm_stewardship = 20 } + } + modifier = { + factor = 2.0 + owner = { realm_stewardship = 25 } + } + + #traits affect this + modifier = { + factor = 1.5 + owner = { trait = ambitious } + } + modifier = { + factor = 5.0 + owner = { trait = just } + } + modifier = { + factor = 0.5 + owner = { trait = arbitrary } + } + modifier = { + factor = 0.7 + owner = { trait = greedy } + } + modifier = { + factor = 0.7 + owner = { trait = cruel } + } + modifier = { + factor = 0.1 + owner = { trait = slothful } + } + modifier = { + factor = 0.2 + owner = { trait = incapable } + } + modifier = { + factor = 0.1 + owner = { trait = infirm } + } + } + + immediate = { + add_province_modifier = { + name = thieves_guild + duration = -1 + } + } + + option = { + name = "EVTOPTA68010" + } +} + +# Destruction of thieves_guild in a province +province_event = { + id = 68011 + desc = "EVTDESC68011" + + picture = "GFX_evt_burning_house" + + notification = yes + + trigger = { + owner = { wealth = 0 } + has_province_modifier = thieves_guild + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.5 + owner = { realm_stewardship = 20 } + } + modifier = { + factor = 0.75 + owner = { realm_intrigue = 20 } + } + + modifier = { + factor = 0.75 + owner = { trait = just } + } + } + + immediate = { + remove_province_modifier = thieves_guild + } + + option = { + name = "EVTOPTA68011" + } +} + +# Establishment of smugglers_ring in a province, if red budget +province_event = { + id = 68020 + desc = "EVTDESC68020" + + notification = yes + + trigger = { + NOT = { owner = { wealth = 0 } } + NOT = { has_province_modifier = smugglers_ring } + } + + picture = "GFX_evt_bandits" + + mean_time_to_happen = { + months = 240 + + #lower if really bad demesne efficiency + modifier = { + factor = 0.9 + NOT = { owner = { wealth = -50 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { wealth = -100 } } + } + modifier = { + factor = 0.5 + NOT = { owner = { wealth = -200 } } + } + modifier = { + factor = 0.3 + NOT = { owner = { wealth = -300 } } + } + modifier = { + factor = 0.1 + NOT = { owner = { wealth = -500 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_diplomacy = 15 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_diplomacy = 10 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_diplomacy = 5 } } + } + + modifier = { + factor = 1.5 + owner = { realm_diplomacy = 20 } + } + modifier = { + factor = 2.0 + owner = { realm_diplomacy = 25 } + } + + #traits affect this + modifier = { + factor = 1.5 + owner = { trait = ambitious } + } + modifier = { + factor = 5.0 + owner = { trait = just } + } + modifier = { + factor = 0.5 + owner = { trait = arbitrary } + } + modifier = { + factor = 0.7 + owner = { trait = greedy } + } + modifier = { + factor = 0.7 + owner = { trait = cruel } + } + modifier = { + factor = 0.1 + owner = { trait = slothful } + } + modifier = { + factor = 0.2 + owner = { trait = incapable } + } + modifier = { + factor = 0.1 + owner = { trait = infirm } + } + } + + immediate = { + add_province_modifier = { + name = smugglers_ring + duration = -1 + } + } + + option = { + name = "EVTOPTA68020" + } +} + +# Destruction of smugglers_ring in a province +province_event = { + id = 68021 + desc = "EVTDESC68021" + + notification = yes + + picture = "GFX_evt_burning_house" + + trigger = { + owner = { wealth = 0 } + has_province_modifier = smugglers_ring + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.5 + owner = { realm_diplomacy = 20 } + } + modifier = { + factor = 0.75 + owner = { realm_intrigue = 20 } + } + + modifier = { + factor = 0.75 + owner = { trait = just } + } + } + + immediate = { + remove_province_modifier = smugglers_ring + } + + option = { + name = "EVTOPTA68021" + } +} + +#Establishment of highway_robber_band in a province, if red budget +province_event = { + id = 68030 + desc = "EVTDESC68030" + + notification = yes + + picture = "GFX_evt_bandits" + + trigger = { + NOT = { owner = { wealth = 0 } } + NOT = { has_province_modifier = highway_robber_band } + } + + mean_time_to_happen = { + months = 240 + + modifier = { + factor = 0.9 + NOT = { owner = { wealth = -50 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { wealth = -100 } } + } + modifier = { + factor = 0.5 + NOT = { owner = { wealth = -200 } } + } + modifier = { + factor = 0.3 + NOT = { owner = { wealth = -300 } } + } + modifier = { + factor = 0.1 + NOT = { owner = { wealth = -500 } } + } + + modifier = { + factor = 0.7 + NOT = { owner = { realm_martial = 15 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_martial = 10 } } + } + modifier = { + factor = 0.7 + NOT = { owner = { realm_martial = 5 } } + } + modifier = { + factor = 1.5 + owner = { realm_martial = 20 } + } + modifier = { + factor = 2.0 + owner = { realm_martial = 25 } + } + + #traits affect this + modifier = { + factor = 1.5 + owner = { trait = ambitious } + } + modifier = { + factor = 5.0 + owner = { trait = just } + } + modifier = { + factor = 0.5 + owner = { trait = arbitrary } + } + modifier = { + factor = 0.7 + owner = { trait = greedy } + } + modifier = { + factor = 0.7 + owner = { trait = cruel } + } + modifier = { + factor = 0.1 + owner = { trait = slothful } + } + modifier = { + factor = 0.2 + owner = { trait = incapable } + } + modifier = { + factor = 0.1 + owner = { trait = infirm } + } + } + + immediate = { + add_province_modifier = { + name = highway_robber_band + duration = -1 + } + } + + option = { + name = "EVTOPTA68030" + } +} + +# Destruction of highway_robber_band in a province +province_event = { + id = 68031 + desc = "EVTDESC68031" + picture = "GFX_evt_burning_house" + + notification = yes + + trigger = { + owner = { wealth = 0 } + has_province_modifier = highway_robber_band + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.5 + owner = { realm_martial = 20 } + } + modifier = { + factor = 0.75 + owner = { realm_intrigue = 20 } + } + + modifier = { + factor = 0.75 + owner = { trait = just } + } + } + + immediate = { + remove_province_modifier = highway_robber_band + } + + option = { + name = "EVTOPTA68031" + } +} diff --git a/After the End/events/family_events.txt b/After the End/events/family_events.txt new file mode 100644 index 000000000..25fa9b949 --- /dev/null +++ b/After the End/events/family_events.txt @@ -0,0 +1,1467 @@ +############################################# +# +# Events for Family Members +# +# Event ID 37000-37999 is reserved +# +############################################# + +################################################### +# Relative demands a title +################################################### + +# Relative demands inheritance due to ambition +character_event = { + id = 37000 + desc = EVTDESC37000 + picture = GFX_evt_son_asking_father + + min_age = 16 + only_men = yes + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + + trigger = { + has_ambition = obj_wants_landed_title + independent = no + liege = { + OR = { + war = no + ai = yes + } + is_close_relative = ROOT + any_demesne_title = { + can_be_given_away = yes + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + } + NOT = { has_character_flag = flag_denied_title } + NOT = { has_character_flag = flag_promised_title } + OR = { + NOT = { has_character_flag = flag_later_title } + had_character_flag = { flag = flag_later_title days = 1825 } + } + } + + mean_time_to_happen = { + months = 9 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = diligent + } + modifier = { + factor = 5.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37000 # Ask liege for a title + liege = { character_event = { id = 37001 days = 3 tooltip = EVTTOOLTIP37001 } } + } +} + +# Liege responds to the request +character_event = { + id = 37001 + desc = EVTDESC37001 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA37001 # Promise that you'll arrange it + FROM = { character_event = { id = 37002 tooltip = EVTTOOLTIP37002 } } + } + + option = { + name = EVTOPTB37001 # Say he's not ready yet + trigger = { + NOT = { diplomacy = 8 } + } + + FROM = { character_event = { id = 37004 tooltip = EVTTOOLTIP37004 } } + + if = { + limit = { + ai = no + independent = yes + FROM = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { age = 65 } + has_character_flag = flag_later_title + } + } + custom_tooltip = { text = evt_relative_might_revolt } + } + } + + option = { + name = EVTOPTC37001 # Mention a Church career... + tooltip_info = diplomacy + trigger = { + religion_group = christian + diplomacy = 8 + } + FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } + } + + option = { + name = EVTOPTD37001 # Diplomatically refuse + tooltip_info = diplomacy + trigger = { + NOT = { religion_group = christian } + diplomacy = 8 + } + FROM = { character_event = { id = 37003 tooltip = EVTTOOLTIP37003 } } + } +} + +# The relative is filled with anticipation +character_event = { + id = 37002 + desc = EVTDESC37002 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA37002 # It had better not be hollow words... + opinion = { + who = FROM + modifier = opinion_promised_title + months = 12 + } + + set_character_flag = flag_promised_title + add_character_modifier = { name = promised_a_title duration = -1 } + + hidden_tooltip = { + if = { + limit = { + OR = { + trait = slothful + trait = content + } + NOT = { trait = ambitious } + } + character_event = { id = 37005 days = 865 random = 200 } + } + if = { + limit = { + NOT = { trait = slothful } + NOT = { trait = content } + NOT = { trait = ambitious } + } + character_event = { id = 37005 days = 385 random = 200 } + } + if = { + limit = { + trait = ambitious + } + character_event = { id = 37005 days = 365 random = 50 } + } + } + } +} + +# The relative is deeply offended +character_event = { + id = 37003 + desc = EVTDESC37003 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37003 # This will not stand! + opinion = { + who = FROM + modifier = opinion_denied_title + months = 60 + } + set_character_flag = flag_denied_title + } +} + +# The relative is disappointed +character_event = { + id = 37004 + desc = EVTDESC37004 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37004 # I'll ask again later... + trigger = { + NOT = { has_character_flag = flag_later_title } + } + set_character_flag = flag_later_title + } + + option = { + name = EVTOPTB37004 # Not again! + trigger = { + has_character_flag = flag_later_title + } + ai_chance = { + factor = 750 + } + opinion = { + who = FROM + modifier = opinion_denied_title + months = 120 + } + clr_character_flag = flag_later_title + set_character_flag = flag_denied_title + } + + option = { + name = EVTOPTB37007 + trigger = { + has_character_flag = flag_later_title + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { age = 65 } + liege = { + independent = yes + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 2.5 + trait = ambitious + } + #modifier = { + # factor = 5.0 + # religion_group = muslim + #} + modifier = { + factor = 0.25 + trait = slothful + } + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + + character_event = { id = 37010 days = 45 } + } + +} + +# Relative reminds liege of promised title +character_event = { + id = 37005 + desc = EVTDESC37005 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + has_ambition = obj_wants_landed_title + has_character_flag = flag_promised_title + liege = { + any_demesne_title = { + can_be_given_away = yes + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + } + } + + option = { + name = EVTOPTA37005 # Ask liege for a title + liege = { character_event = { id = 37006 tooltip = EVTTOOLTIP37006 } } + } +} + +# Liege responds to the reminder +character_event = { + id = 37006 + desc = EVTDESC37006 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + trigger = { + FROM = { + is_alive = yes + } + } + + option = { + name = EVTOPTA37006 # Oh, very well! + random_demesne_title = { + limit = { + can_be_given_away = yes + tier = count + is_feudal = yes + location = { + is_capital = no + } + } + grant_title = FROM + } + } + + option = { + name = EVTOPTB37006 # I've had it with his whining! + FROM = { character_event = { id = 37007 days = 2 tooltip = EVTTOOLTIP37007 } } + + if = { + limit = { + ai = no + independent = yes + FROM = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { age = 65 } + } + } + custom_tooltip = { text = evt_relative_might_revolt } + } + } +} + +# Liege breaks the promise +character_event = { + id = 37007 + desc = EVTDESC37007 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = EVTOPTA37007 # This is an outrage! + ai_chance = { + factor = 500 + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + } + option = { + name = EVTOPTB37007 # I will not stand for this! REVOLT! + + trigger = { + NOT = { trait = content } + NOT = { trait = patient } + NOT = { trait = craven } + NOT = { age = 65 } + liege = { + independent = yes + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 2.5 + trait = ambitious + } + #modifier = { + # factor = 5.0 + # religion_group = muslim + #} + modifier = { + factor = 0.25 + trait = slothful + } + } + + opinion = { + who = FROM + modifier = opinion_broken_title_promise + months = 120 + } + clr_character_flag = flag_promised_title + remove_character_modifier = promised_a_title + set_character_flag = flag_denied_title + + character_event = { id = 37010 days = 45 } + } +} + +# Character goes into exile to raise an army +character_event = { + id = 37010 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + FROMFROM = { + is_alive = yes + independent = yes + } + + liege = { + capital_scope = { + any_independent_ruler = { + religion_group = ROOT + is_landed = yes + NOT = { character = PREVPREV } + capital_scope = { + NOT = { + distance = { + where = PREVPREV + distance = 400 + } + } + } + } + } + } + } + + immediate = { + liege = { + capital_scope = { + random_independent_ruler = { + limit = { + religion_group = ROOT + is_landed = yes + NOT = { character = PREVPREV } + capital_scope = { + NOT = { + distance = { + where = PREVPREV + distance = 400 + } + } + } + } + character_event = { id = 37011 } # Notify the new host + ROOT = { + move_character = PREV + } + } + } + } + } +} + +# The ruler who hosts the pretender is notified +character_event = { + id = 37011 + desc = EVTDESC37011 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA37011 # Interesting + + hidden_tooltip = { + FROMFROMFROM = { character_event = { id = 37012 } } # Notify the old liege + } + } +} + +# The old liege is notified +character_event = { + id = 37012 + desc = EVTDESC37012 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA37012 # The traitorous git! + + opinion = { + who = FROMFROM + modifier = opinion_traitor + } + + hidden_tooltip = { + opinion = { + who = FROMFROM + modifier = opinion_targeted_by_adventurer + months = 12 + } + FROMFROM = { character_event = { id = 37015 days = 365 } } # The event that actually fires the revolt + } + } +} + +# The pretender launches the attack +character_event = { + id = 37015 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + independent = no + is_ruler = no + prisoner = no + NOT = { trait = incapable } + FROM = { + is_alive = yes + independent = yes + } + liege = { + character = FROMFROM + } + } + + immediate = { + liege = { + capital_scope = { + ROOT = { + set_defacto_liege = ROOT + create_title = { + tier = DUKE + landless = yes + temporary = yes + culture = ROOT + name = "CLAIMANT_ADVENTURE" + holder = ROOT + } + } + FROM = { + ROOT = { + set_character_flag = claimant_adventurer + random_list = { + 34 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.125 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + 33 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.1 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + 33 = { + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + leader = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + spawn_unit = { + province = PREVPREV + home = PREVPREV + owner = THIS + match_character = PREV + match_mult = 0.075 + match_min = 300 + match_max = 5000 + attrition = 0.25 + earmark = claimant_adventure + disband_on_peace = yes + } + } + } + } + } + } + } + + # Create some decent commander characters + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 30 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 25 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 33 + } + create_random_soldier = { + random_traits = yes + dynasty = none + religion = ROOT + culture = ROOT + female = no + age = 29 + } + + # Create a fleet, just to be sure + spawn_fleet = { + province = closest # closest sea zone + owner = ROOT + disband_on_peace = yes + troops = + { + galleys = { 150 150 } + } + earmark = claimant_adventure + } + + FROM = { + # Prioritize going for secondary empires + if = { + limit = { + num_of_emperor_titles = 2 + } + random_demesne_title = { + limit = { + tier = EMPEROR + is_primary_holder_title = no + } + add_claim = ROOT + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + + # Next, secondary kingdoms + if = { + limit = { + num_of_king_titles = 2 + NOT = { war_with = ROOT } + } + random_demesne_title = { + limit = { + tier = KING + is_primary_holder_title = no + } + add_claim = ROOT + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + + # Otherwise, just go for the primary title + if = { + limit = { + NOT = { war_with = ROOT } + } + primary_title = { + add_claim = ROOT + holder_scope = { + reverse_war = { + target = ROOT + casus_belli = claim + thirdparty_title = PREV + } + } + } + } + } + } +} + +# IDs to 37048 reserved for more events concerning this ambition + + + +############################################################## +# Close relative asks to get married due to obj_get_married +############################################################## + +# First event of the series + +character_event = { + id = 37049 + + hide_window = yes + + ai = no + capable_only = yes + prisoner = no + religion_group = christian + war = no + + trigger = { + } + + mean_time_to_happen = { + months = 24 + } + + immediate = { + random_courtier = { + limit = { + religion_group = christian + is_ruler = no + has_ambition = obj_get_married + is_marriage_adult = yes + NOT = { age = 40 } + prisoner = no + is_betrothed = no + is_consort = no + is_married = no + + NOT = { trait = incapable } + NOT = { + trait = bastard + } + liege = { + character = ROOT + } + is_close_relative = ROOT + + NOT = { + has_minor_title = title_regent + } + + NOT = { has_character_flag = flag_denied_marriage } + NOT = { has_character_flag = flag_promised_marriage } + } + character_event = { id = 37050 } + } + } +} + +character_event = { + id = 37050 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + liege = { character_event = { id = 37051 days = 3 } } + } + +} + +# Liege responds to marriage request +character_event = { + id = 37051 + desc = EVTDESC37051 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37051 # Promise that you'll arrange it + FROM = { character_event = { id = 37052 tooltip = EVTTOOLTIP37052 } } + } + + option = { + name = EVTOPTB37051 # Mention a Church career... + trigger = { + religion_group = christian + FROM = { religion_group = christian } + } + FROM = { character_event = { id = 37053 tooltip = EVTTOOLTIP37053 } } + } +} + +# The relative is delighted +character_event = { + id = 37052 + desc = EVTDESC37052 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = OK # Great news! + set_character_flag = flag_promised_marriage + add_character_modifier = { name = promised_a_marriage duration = -1 } + opinion = { + who = FROM + modifier = opinion_promised_marriage + months = 60 + } + } +} + +# The relative is disappointed +character_event = { + id = 37053 + desc = EVTDESC37053 + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = OK # Bleak news + set_character_flag = flag_denied_marriage + opinion = { + who = FROM + modifier = opinion_denied_marriage + months = 60 + } + } +} + +# Relative reminds liege of promised marriage +character_event = { + id = 37054 + desc = EVTDESC37054 + picture = GFX_evt_marriage + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Zeus" + is_married = no + + trigger = { + is_ruler = no + is_betrothed = no + NOT = { + trait = bastard + } + has_ambition = obj_get_married + liege = { + is_close_relative = ROOT + ROOT = { + has_opinion_modifier = { who = PREV modifier = opinion_promised_marriage } + } + } + had_character_flag = { flag = flag_promised_marriage days = 365 } + } + + mean_time_to_happen = { + months = 4 + + modifier = { + factor = 0.25 + is_female = yes + trait = lustful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37054 # Ask dad + liege = { character_event = { id = 37055 days = 3 tooltip = EVTTOOLTIP37055 } } + } +} + +# The liege is reminded of the promise +character_event = { + id = 37055 + desc = EVTDESC37055 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37055 # Alright, alright! + trigger = { + FROM = { + is_married = no + } + any_courtier = { + OR = { + is_female = no + NOT = { age = 45 } + } + can_marry = FROM + } + } + remove_character_modifier = promised_a_marriage + clr_character_flag = flag_promised_marriage + random_courtier = { + limit = { + OR = { + is_female = no + NOT = { age = 45 } + } + can_marry = FROM + } + add_spouse = FROM + } + } + + option = { + name = EVTOPTB37055 # You're off to the monastery! + trigger = { + religion_group = christian + FROM = { religion_group = christian } + FROM = { + is_married = no + } + any_realm_lord = { + is_theocracy = yes + } + } + random_realm_lord = { + limit = { + is_theocracy = yes + } + reverse_banish = FROM + } + FROM = { + cancel_ambition = yes + remove_character_modifier = promised_a_marriage + clr_character_flag = flag_promised_marriage + opinion = { + who = ROOT + modifier = opinion_sent_to_church + months = 120 + } + } + } + + option = { + name = EVTOPTC37055 # I haven't found anyone for you... + trigger = { + FROM = { + is_married = no + } + } + FROM = { + set_character_flag = flag_denied_marriage + clr_character_flag = flag_promised_marriage + remove_character_modifier = promised_a_marriage + } + } + option = { + name = EVTOPTD37055 + trigger = { + FROM = { + is_married = yes + spouse = { + is_alive = yes + } + } + } + } +} + +# Male relative who was denied decides to marry in secret +character_event = { + id = 37056 + desc = EVTDESC37056 + picture = GFX_evt_marriage + + min_age = 16 + only_men = yes + capable_only = yes + prisoner = no + has_character_flag = flag_denied_marriage + lacks_dlc = "Zeus" + + trigger = { + is_ruler = no + is_betrothed = no + has_ambition = obj_get_married + any_courtier = { + is_female = yes + NOT = { age = 40 } + can_marry = ROOT + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.25 + trait = lustful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { + name = EVTOPTA37056 # I'm getting married right now + random_courtier = { + limit = { + is_female = yes + NOT = { age = 40 } + can_marry = ROOT + } + add_spouse = ROOT + } + liege = { character_event = { id = 37057 tooltip = EVTTOOLTIP37057 } } + } +} + +# The liege is informed of the secret marriage +character_event = { + id = 37057 + desc = EVTDESC37057 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA37057 # Ah well + tooltip_info = kind + trigger = { + trait = kind + } + } + + option = { + name = EVTOPTB37057 # The insolence! + trigger = { + NOT = { trait = kind } + } + opinion = { + who = FROM + modifier = opinion_secret_marriage + months = 60 + } + } + + option = { + name = EVTOPTC37057 # They will both pay for this! + #tooltip_info = + trigger = { + OR = { + trait = wroth + trait = envious + } + } + FROM = { imprison = ROOT } + FROM = { spouse = { imprison = ROOT } } + } +} + +# IDs to 37149 reserved for more events concerning this ambition + +#Common interest with spouse +character_event = { + id = 37250 + hide_window = yes + + min_age = 16 + only_capable = yes + is_married = yes + + trigger = { + any_spouse = { + has_prev_education_trigger = yes + opinion = { who = ROOT value = 20 } + } + NOT = { has_character_flag = spouse_offered_help } + } + + is_triggered_only = yes + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + has_focus = focus_family + } + modifier = { + factor = 1.5 + has_pleasant_personality_trigger = yes + } + modifier = { + factor = 0.75 + has_unpleasant_personality_trigger = yes + } + modifier = { + factor = 0.5 + num_of_lovers = 1 + } + } + + immediate = { + set_character_flag = spouse_offered_help + random_spouse = { + limit = { + has_prev_education_trigger = yes + opinion = { who = ROOT value = 20 } + } + + character_event = { id = 37251 } + } + } +} + +character_event = { + id = 37251 + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { character_event = { id = 37252 days = 1 } } #First event + } +} + +#Want help? +character_event = { + id = 37252 + desc = EVTDESC_37252 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + + is_triggered_only = yes + + #Yes + option = { + name = EVTOPTA_37252 + custom_tooltip = { text = EVTOPTA_37252_TOOLTIP } + hidden_tooltip = { FROM = { character_event = { id = 37254 } } } + } + + #No + option = { + name = EVTOPTB_37252 + custom_tooltip = { text = EVTOPTB_37252_TOOLTIP } + + random = { + chance = 30 + add_trait_proud_effect = yes + } + + reverse_opinion = { + who = FROM + modifier = opinion_ungrateful + years = 5 + } + } +} + + +character_event = { + id = 37254 + hide_window = yes + is_triggered_only = yes + immediate = { FROM = { character_event = { id = 37253 days = 7 } } } +} + +character_event = { + id = 37253 + desc = EVTDESC_37253 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + + is_triggered_only = yes + + + #Bonding over common interests and getting work done + option = { + name = EVTOPTA_37253 + custom_tooltip = { text = EVTOPTA_37253_TOOLTIP } + + opinion = { + who = FROM + modifier = common_interests_opinion + years = 10 + } + + reverse_opinion = { + who = FROM + modifier = common_interests_opinion + years = 10 + } + + if = { + limit = { has_education_martial_trigger = yes } + military_techpoints = 50 + } + if = { + limit = { has_education_stewardship_trigger = yes } + economy_techpoints = 50 + } + if = { + limit = { + OR = { + has_education_diplomacy_trigger = yes + has_education_learning_trigger = yes + } + } + culture_techpoints = 50 + } + if = { + limit = { has_education_intrigue_trigger = yes } + military_techpoints = 15 + culture_techpoints = 15 + economy_techpoints = 15 + } + } + + #Let's go to bed + option = { + trigger = { NOT = { is_lover = FROM } } + name = EVTOPTB_37253 + custom_tooltip = { text = EVTOPTB_37253_TOOLTIP } + + add_lover = FROM + } +} diff --git a/After the End/events/feudal_life_events.txt b/After the End/events/feudal_life_events.txt index 93c0aa88f..139a4ebc1 100644 --- a/After the End/events/feudal_life_events.txt +++ b/After the End/events/feudal_life_events.txt @@ -355,7 +355,7 @@ character_event = { OR = { trait = chaste trait = lustful - religion_group = muslim + #religion_group = muslim } NOT = { is_inaccessible_trigger = yes } } diff --git a/After the End/events/friends_rivals_events.txt b/After the End/events/friends_rivals_events.txt new file mode 100644 index 000000000..60b306099 --- /dev/null +++ b/After the End/events/friends_rivals_events.txt @@ -0,0 +1,16133 @@ +################################################## +# +# Friends & Rivals +# +# ID 100000 - 105000 are reserved +# +################################################## +# +# Written by Sara Wendel-Örtqvist + +################################################## +# MAKING FRIENDS AND RIVALS # +################################################## + +### You've made friends with another child in the court ### +character_event = { + id = 100000 + desc = EVTDESC100000 + picture = GFX_evt_child_sword + + min_age = 4 + max_age = 14 + only_capable = yes + prisoner = no + lacks_dlc = "Conclave" + + trigger = { + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + + is_inaccessible_trigger = no + + host = { + any_courtier = { + is_abroad = no + prisoner = no + at_location = ROOT + + NOT = { + trait = craven + } + NOT = { + trait = honest + } + NOT = { + sibling = ROOT + } + age = 4 + NOT = { + age = 14 + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + is_primary_heir = yes + } + modifier = { + factor = 0.5 + trait = gregarious + } + + modifier = { + factor = 2 + trait = shy + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_abroad = no + prisoner = no + at_location = ROOT + + NOT = { + trait = craven + } + NOT = { + trait = honest + } + NOT = { + sibling = ROOT + } + age = 4 + NOT = { + age = 14 + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = troublemaker_child + } + } + } + + option = { + name = EVTOPTA100000 + event_target:troublemaker_child = { + add_rival = ROOT + character_event = { + id = 100001 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100001 + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = wroth + } + trait = greedy + } + add_trait = wroth + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = greedy + } + trait = wroth + } + add_trait = greedy + } + } + } + option = { + name = EVTOPTB100000 + event_target:troublemaker_child = { + add_friend = ROOT + character_event = { + id = 100002 + tooltip = EVTTOOLTIP100002 + } + } + } +} + +#New rival is notified +character_event = { + id = 100001 + desc = EVTDESC100001 + picture = GFX_evt_child_sword + + is_triggered_only = yes + + option = { + name = EVTOPTA100001 + add_rival = FROM + } +} + +#New friend is notified +character_event = { + id = 100002 + desc = EVTDESC100002 + picture = GFX_evt_child_sword + + is_triggered_only = yes + + option = { + name = EVTOPTA100002 + add_friend = FROM + } +} + +### One of the other children in court is very shy and would rather read than play with us ### +character_event = { + id = 100005 + desc = EVTDESC100005 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + min_age = 6 + max_age = 14 + prisoner = no + + trigger = { + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = gregarious + trait = charitable + trait = brave + } + host = { + any_courtier = { + NOT = { character = ROOT } + at_location = ROOT + prisoner = no + age = 6 + NOT = { + age = 15 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + sibling = ROOT + } + trait = shy + NOT = { is_inaccessible_trigger = yes } + } + } + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.5 + trait = honest + } + modifier = { + factor = 0.65 + trait = wroth + } + modifier = { + factor = 0.65 + trait = cruel + } + } + + immediate = { + host = { + random_courtier = { + limit = { + NOT = { character = ROOT } + at_location = ROOT + prisoner = no + age = 6 + NOT = { age = 15 } + NOT = { is_friend = ROOT } + NOT = { is_rival = ROOT } + NOT = { num_of_friends = 2 } + NOT = { num_of_rivals = 2 } + NOT = { sibling = ROOT } + trait = shy + NOT = { is_inaccessible_trigger = yes } + } + save_event_target_as = shy_child + } + } + } + + option = { + name = EVTOPTA100005 + event_target:shy_child = { + character_event = { + id = 100006 + days = 2 + random = 5 + tooltip = EVTTOOLTIP100006 + } + } + } + + option = { + name = EVTOPTB100005 + event_target:shy_child = { + character_event = { + id = 100007 + days = 2 + random = 5 + tooltip = EVTTOOLTIP100007 + } + } + } + option = { + name = EVTOPTC100005 + prestige = 5 + if = { + limit = { + NOT = { + trait = charitable + } + trait = gregarious + } + remove_trait = gregarious + } + if = { + limit = { + NOT = { + trait = gregarious + } + trait = charitable + } + remove_trait = charitable + } + } +} + +#Kick his butt or ignore him? +character_event = { + id = 100006 + desc = EVTDESC100006 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100006 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + trait = brave + } + modifier = { + factor = 0.01 + trait = craven + } + } + FROM = { + character_event = { + id = 100008 + days = 1 + random = 3 + tooltip = EVTTOOLTIP100008 + } + } + } + option = { + name = EVTOPTB100006 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + trait = brave + } + modifier = { + factor = 10 + trait = craven + } + } + add_trait = stressed + } +} + +#Borrow FROM's sword? +character_event = { + id = 100007 + desc = EVTDESC100007 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100007 + add_friend = FROM + FROM = { + character_event = { + id = 100012 + days = 2 + random = 3 + tooltip = EVTTOOLTIP100012 + } + } + } + option = { + name = EVTOPTB100007 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = craven + } + } + add_trait = craven + } + } +} + +#The bully is beaten back +character_event = { + id = 100008 + desc = EVTDESC100008 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100008 + add_rival = FROM + FROM = { + character_event = { + id = 100010 + days = 2 + random = 3 + tooltip = EVTTOOLTIP100010 + } + } + } + option = { + name = EVTOPTB100008 + add_friend = FROM + FROM = { + character_event = { + id = 100009 + days = 2 + random = 3 + tooltip = EVTTOOLTIP100009 + } + } + } +} + +#Gain friend +character_event = { + id = 100009 + desc = EVTDESC100009 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100009 + add_friend = FROM + } +} + +#Gain rival +character_event = { + id = 100010 + desc = EVTDESC100010 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100010 + add_rival = FROM + } +} + +#Gain friend +character_event = { + id = 100012 + desc = EVTDESC100012 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100012 + add_friend = FROM + } +} + +### My guardian was ready to rip me a new one when someone interfered ### +character_event = { + id = 100015 + desc = EVTDESC100015 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + min_age = 11 + max_age = 16 + prisoner = no + only_men = yes + + trigger = { + has_guardian = yes + trait = slothful + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + is_inaccessible_trigger = no + host = { + any_courtier = { + NOT = { character = ROOT } + is_female = no + same_guardian = ROOT + NOT = { + sibling = ROOT + } + OR = { + trait = charitable + trait = kind + trait = ambitious + } + NOT = { is_inaccessible_trigger = yes } + NOT = { + num_of_friends = 3 + } + NOT = { + num_of_rivals = 3 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.5 + trait = gregarious + } + modifier = { + factor = 0.66 + trait = wroth + } + } + + immediate = { + host = { + random_courtier = { + limit = { + NOT = { character = ROOT } + is_female = no + same_guardian = ROOT + NOT = { + sibling = ROOT + } + OR = { + trait = charitable + trait = kind + trait = ambitious + } + NOT = { is_inaccessible_trigger = yes } + NOT = { + num_of_friends = 3 + } + NOT = { + num_of_rivals = 3 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = helping_child + } + } + } + + option = { + name = EVTOPTA100015 + host = { + event_target:helping_child = { + add_friend = ROOT + character_event = { + id = 100016 + days = 1 + random = 3 + tooltip = EVTTOOLTIPA100016 + } + } + } + } + option = { + name = EVTOPTB100015 + host = { + event_target:helping_child = { + reverse_opinion = { + modifier = opinion_irritated + who = ROOT + years = 100 + } + set_character_flag = wrongly_interfered + character_event = { + id = 100016 + days = 1 + random = 3 + tooltip = EVTTOOLTIPB100016 + } + } + } + } + option = { + name = EVTOPTC100015 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + add_trait = honest + } + } +} + +#Gain friend/gain rival +character_event = { + id = 100016 + desc = EVTDESC100016 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100016 + trigger = { + NOT = { + has_character_flag = wrongly_interfered + } + } + add_friend = FROM + } + option = { + name = EVTOPTB100016 + trigger = { + has_character_flag = wrongly_interfered + } + clr_character_flag = wrongly_interfered + add_rival = FROM + FROM = { + character_event = { + id = 100017 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100017 + } + } + } + option = { + name = EVTOPTC100016 + trigger = { + has_character_flag = wrongly_interfered + } + clr_character_flag = wrongly_interfered + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = content + } + } + add_trait = content + } + } + option = { + name = EVTOPTD100016 + trigger = { + has_character_flag = wrongly_interfered + } + clr_character_flag = wrongly_interfered + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = cynical + } + } + add_trait = cynical + } + change_intrigue = 1 + } +} + +#Gain rival +character_event = { + id = 100017 + desc = EVTDESC100017 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100017 + add_rival = FROM + } +} + +### A fellow student lacks even the ability to talk to a girl ### +character_event = { # Relay event for rulers + id = 100019 + hide_window = yes + + is_triggered_only = yes + + only_rulers = yes + + trigger = { + is_inaccessible_trigger = no + + OR = { + AND = { + is_female = no + is_inaccessible_trigger = no + is_married = no + trait = lustful + prisoner = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + OR = { + trait = gregarious + trait = kind + trait = charitable + } + any_courtier = { + NOT = { character = ROOT } + at_location = ROOT + is_female = no + is_inaccessible_trigger = no + prisoner = no + is_married = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + NOT = { sibling = ROOT } + NOT = { is_friend = ROOT } + NOT = { is_rival = ROOT } + trait = chaste + trait = shy + } + } + any_courtier = { + is_female = no + is_inaccessible_trigger = no + is_married = no + trait = lustful + prisoner = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + OR = { + trait = gregarious + trait = kind + trait = charitable + } + ROOT = { + OR = { + AND = { + NOT = { character = PREV } + at_location = PREV + is_female = no + is_inaccessible_trigger = no + prisoner = no + is_married = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + NOT = { sibling = PREV } + NOT = { is_friend = PREV } + NOT = { is_rival = PREV } + trait = chaste + trait = shy + } + any_courtier = { + NOT = { character = PREVPREV } + at_location = PREVPREV + is_female = no + is_inaccessible_trigger = no + prisoner = no + is_married = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + NOT = { sibling = PREVPREV } + NOT = { is_friend = PREVPREV } + NOT = { is_rival = PREVPREV } + trait = chaste + trait = shy + } + } + } + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + random_courtier = { + limit = { + is_female = no + is_inaccessible_trigger = no + is_married = no + trait = lustful + prisoner = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + OR = { + trait = gregarious + trait = kind + trait = charitable + } + } + save_event_target_as = lustful_courtier + } + if = { + limit = { + NOT = { event_target:lustful_courtier = { always = yes } } + } + save_event_target_as = lustful_courtier + } + random_courtier = { + limit = { + NOT = { character = event_target:lustful_courtier } + at_location = event_target:lustful_courtier + is_female = no + is_inaccessible_trigger = no + prisoner = no + is_married = no + age = 16 + NOT = { age = 25 } + NOT = { num_of_friends = 5 } + NOT = { num_of_rivals = 5 } + NOT = { sibling = event_target:lustful_courtier } + NOT = { is_friend = event_target:lustful_courtier } + NOT = { is_rival = event_target:lustful_courtier } + trait = chaste + trait = shy + } + save_event_target_as = shy_courtier + } + if = { + limit = { + NOT = { event_target:shy_courtier = { always = yes } } + } + save_event_target_as = shy_courtier + } + if = { # sanity check + limit = { + event_target:lustful_courtier = { + character = event_target:shy_courtier + } + } + break = yes + } + event_target:lustful_courtier = { character_event = { id = 100020 } } + } +} + +character_event = { + id = 100020 + desc = EVTDESC100020 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100020 + event_target:shy_courtier = { + character_event = { + id = 100021 + days = 1 + random = 4 + tooltip = EVTTOOLTIP100021 + } + } + } + option = { + name = EVTOPTB100020 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + } + random = { + chance = 10 + random_list = { + 50 = { + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 + } + } + } + 50 = { + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 + } + } + } + } + } + } + } +} + +#Offered help +character_event = { + id = 100021 + desc = EVTDESC100021 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100021 + add_friend = FROM + remove_trait = shy + remove_trait = chaste + FROM = { + character_event = { + id = 100022 + tooltip = EVTTOOLTIP100022 + } + } + } + option = { + name = EVTOPTB100021 + remove_trait = shy + hidden_tooltip = { + FROM = { + set_character_flag = help_rejected + character_event = { + id = 100023 + tooltip = EVTTOOLTIP100023 + } + } + } + } + option = { + name = EVTOPTC100021 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = proud + } + } + random = { + chance = 25 + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + hidden_tooltip = { + FROM = { + set_character_flag = help_rejected_politely + character_event = { + id = 100023 + tooltip = EVTTOOLTIP100023 + } + } + } + } +} + +#Accepted/rejected help +character_event = { + id = 100022 + desc = EVTDESC100022 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100022 + add_friend = FROM + } +} + +#Rejected help +character_event = { + id = 100023 + desc = EVTDESC100023 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100023 + trigger = { + has_character_flag = help_rejected + NOT = { + has_character_flag = help_rejected_politely + } + } + clr_character_flag = help_rejected + opinion = { + modifier = opinion_irritated + who = FROM + years = 100 + } + } + option = { + name = EVTOPTB100023 + trigger = { + has_character_flag = help_rejected_politely + NOT = { + has_character_flag = help_rejected + } + } + clr_character_flag = help_rejected_politely + opinion = { + modifier = opinion_ignore + who = FROM + years = 100 + } + } +} + +### Ladies shun me, I need help! ### +character_event = { + id = 100024 + hide_window = yes + + is_triggered_only = yes + + only_rulers = yes + + trigger = { + is_inaccessible_trigger = no + OR = { + AND = { + is_female = no + is_inaccessible_trigger = no + prisoner = no + age = 16 + NOT = { age = 25 } + in_command = no + is_married = no + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = chaste + OR = { + trait = paranoid + trait = shy + } + war = no + any_courtier = { + at_location = ROOT + is_female = no + is_inaccessible_trigger = no + in_command = no + prisoner = no + is_married = no + age = 16 + NOT = { + age = 25 + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = lustful + OR = { + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + war = no + } + } + any_courtier = { + is_female = no + is_inaccessible_trigger = no + prisoner = no + age = 16 + NOT = { age = 25 } + in_command = no + is_married = no + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = chaste + OR = { + trait = paranoid + trait = shy + } + war = no + ROOT = { + OR = { + AND = { + at_location = PREV + is_female = no + is_inaccessible_trigger = no + in_command = no + prisoner = no + is_married = no + age = 16 + NOT = { + age = 25 + } + NOT = { + sibling = PREV + } + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = lustful + OR = { + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + is_friend = PREV + } + NOT = { + is_rival = PREV + } + war = no + } + any_courtier = { + at_location = PREVPREV + is_female = no + is_inaccessible_trigger = no + in_command = no + prisoner = no + is_married = no + age = 16 + NOT = { + age = 25 + } + NOT = { + sibling = PREVPREV + } + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = lustful + OR = { + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + is_friend = PREVPREV + } + NOT = { + is_rival = PREVPREV + } + war = no + } + } + } + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + random_courtier = { + limit = { + is_female = no + is_inaccessible_trigger = no + prisoner = no + age = 16 + NOT = { age = 25 } + in_command = no + is_married = no + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = chaste + OR = { + trait = paranoid + trait = shy + } + war = no + } + save_event_target_as = shy_courtier + } + if = { + limit = { + NOT = { event_target:shy_courtier = { always = yes } } + } + save_event_target_as = shy_courtier + } + random_courtier = { + limit = { + at_location = event_target:shy_courtier + is_female = no + is_inaccessible_trigger = no + in_command = no + prisoner = no + is_married = no + age = 16 + NOT = { + age = 25 + } + NOT = { + sibling = event_target:shy_courtier + } + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + trait = lustful + OR = { + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + is_friend = event_target:shy_courtier + } + NOT = { + is_rival = event_target:shy_courtier + } + war = no + } + save_event_target_as = lustful_courtier + } + if = { + limit = { + NOT = { event_target:lustful_courtier = { always = yes } } + } + save_event_target_as = lustful_courtier + } + if = { # sanity check + limit = { + event_target:shy_courtier = { character = event_target:lustful_courtier } + } + break = yes + } + event_target:shy_courtier = { character_event = { id = 100025 } } + } +} +character_event = { + id = 100025 + desc = EVTDESC100025 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100025 + event_target:lustful_courtier = { + character_event = { + id = 100026 + days = 2 + random = 4 + tooltip = EVTTOOLTIP100026 + } + } + } + option = { + name = EVTOPTB100025 + event_target:lustful_courtier = { + character_event = { + id = 100030 + days = 2 + random = 4 + tooltip = EVTTOOLTIP100030 + } + } + } + option = { + name = EVTOPTC100025 + add_trait = depressed + } +} + +#I was asked to help him with his love woes +character_event = { + id = 100026 + desc = EVTDESC100026 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100026 + treasury = 10 + FROM = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + FROM = { + character_event = { + id = 100027 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100027 + } + } + } + option = { + name = EVTOPTB100026 + add_friend = FROM + FROM = { + character_event = { + id = 100028 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100028 + } + } + } + option = { + name = EVTOPTC100026 + add_rival = FROM + FROM = { + character_event = { + id = 100029 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100029 + } + } + } +} + +#Someone wants money to help me with my love woes +character_event = { + id = 100027 + desc = EVTDESC100027 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100027 + treasury = -10 + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + random = { + chance = 25 + remove_trait = chaste + hidden_tooltip = { + character_event = { + id = 38303 #Notify Removed Chaste + } + } + } + if = { + limit = { + trait = shy + } + random = { + chance = 10 + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 38295 #Notify Removed Shy + } + } + } + } + } + option = { + name = EVTOPTB100027 + prestige = 5 + } +} + +#Gain friend +character_event = { + id = 100028 + desc = EVTDESC100028 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100028 + add_friend = FROM + } +} + +#Gain rival +character_event = { + id = 100029 + desc = EVTDESC100029 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100029 + add_rival = FROM + } +} + +#Bribed courtier to make him help you with the ladies +character_event = { + id = 100030 + desc = EVTDESC100030 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTC100026 + hidden_tooltip = { FROM = { treasury = 10 } } + FROM = { + add_rival = ROOT + character_event = { + id = 100029 + days = 2 + random = 5 + tooltip = EVTTOOLTIP100029 + } + } + } + option = { + name = EVTOPTB100030 + treasury = 10 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100031 + days = 1 + random = 3 + tooltip = EVTTOOLTIP100031 + } + } + } + option = { + name = EVTOPTC100030 + hidden_tooltip = { FROM = { treasury = 10 } } + add_friend = FROM + FROM = { + character_event = { + id = 100028 + days = 1 + random = 3 + tooltip = EVTTOOLTIP100028 + } + } + } +} + +#He promised to help +character_event = { + id = 100031 + desc = EVTDESC100031 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100031 + prestige = -10 + if = { + limit = { + trait = proud + } + remove_trait = proud + } + if = { + limit = { + trait = chaste + } + remove_trait = chaste + } + if = { + limit = { + trait = shy + } + random = { + chance = 10 + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 38295 #Remove shy + } + } + } + } + } +} + +character_event = { + id = 100034 + hide_window = yes + + only_rulers = yes + only_women = yes + prisoner = no + min_age = 4 + max_age = 14 + + trigger = { + is_inaccessible_trigger = no + any_courtier = { + is_female = yes + is_inaccessible_trigger = no + prisoner = no + age = 4 + NOT = { + age = 14 + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = ambitious + trait = diligent + trait = just + } + host = { + any_courtier = { + NOT = { + character = PREVPREV + } + at_location = PREVPREV + is_female = yes + is_inaccessible_trigger = no + prisoner = no + age = 4 + NOT = { + age = 14 + } + NOT = { + sibling = PREVPREV + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = PREVPREV + } + NOT = { + is_rival = PREVPREV + } + OR = { + trait = ambitious + trait = diligent + trait = just + } + } + } + } + } + + mean_time_to_happen = { + months = 80 + } + + immediate = { + random_courtier = { + limit = { + is_female = yes + is_inaccessible_trigger = no + prisoner = no + age = 4 + NOT = { + age = 14 + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = ambitious + trait = diligent + trait = just + } + host = { + any_courtier = { + NOT = { + character = PREVPREV + } + at_location = PREVPREV + is_female = yes + is_inaccessible_trigger = no + prisoner = no + age = 4 + NOT = { + age = 14 + } + NOT = { + sibling = PREVPREV + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = PREVPREV + } + NOT = { + is_rival = PREVPREV + } + OR = { + trait = ambitious + trait = diligent + trait = just + } + } + } + } + save_event_target_as = child_1 + host = { + random_courtier = { + limit = { + NOT = { + character = PREVPREV + } + at_location = PREVPREV + is_female = yes + is_inaccessible_trigger = no + prisoner = no + age = 4 + NOT = { + age = 14 + } + NOT = { + sibling = PREVPREV + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = PREVPREV + } + NOT = { + is_rival = PREVPREV + } + OR = { + trait = ambitious + trait = diligent + trait = just + } + } + save_event_target_as = child_2 + } + } + character_event = { id = 100035 } + } + } +} + +### You have found a girl with similar interests! ### +character_event = { + id = 100035 + desc = EVTDESC100035 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100035 + event_target:child_2 = { + character_event = { + id = 100036 + days = 2 + random = 4 + tooltip = EVTTOOLTIP100036 + } + } + } + option = { + name = EVTOPTB100035 + event_target:child_2 = { + character_event = { + id = 100037 + days = 2 + random = 4 + tooltip = EVTTOOLTIP100037 + } + } + } + option = { + name = EVTOPTC100035 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = greedy + } + } + add_trait = greedy + } + } +} + +#Courtier is asked to become friend +character_event = { + id = 100036 + desc = EVTDESC100036 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100036 + add_friend = FROM + FROM = { + character_event = { + id = 100038 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100038 + } + } + } + option = { + name = EVTOPTB100036 + add_rival = FROM + FROM = { + character_event = { + id = 100039 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100039 + } + } + } +} + +#ROOT becomes courtier's rival +character_event = { + id = 100037 + desc = EVTDESC100037 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100037 + add_rival = FROM + } +} + +#Gain friend +character_event = { + id = 100038 + desc = EVTDESC100038 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100038 + add_friend = FROM + } +} + +#Courtier becomes ROOT's rival +character_event = { + id = 100039 + desc = EVTDESC100039 + picture = GFX_evt_children_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100039 + add_rival = FROM + } +} + +### Flirtatious girl - new friend or rival? ### +character_event = { + id = 100040 + desc = EVTDESC100040 + picture = GFX_evt_courtiers_talking + + only_women = yes + prisoner = no + only_capable = yes + min_age = 11 + max_age = 16 + + trigger = { + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = chaste + trait = shy + trait = paranoid + } + is_inaccessible_trigger = no + host = { + any_courtier = { + is_inaccessible_trigger = no + at_location = ROOT + age = 11 + NOT = { + age = 16 + } + is_female = yes + prisoner = no + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = lustful + trait = gregarious + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + at_location = ROOT + age = 11 + NOT = { + age = 16 + } + is_female = yes + prisoner = no + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = lustful + trait = gregarious + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = target_courtier + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2 + trait = cruel + } + } + + option = { + name = EVTOPTA100040 + event_target:target_courtier = { + character_event = { + id = 100041 + days = 2 + random = 3 + tooltip = EVTTOOLTIP100041 + } + } + } + option = { + name = EVTOPTB100040 + event_target:target_courtier = { + add_rival = ROOT + character_event = { + id = 100042 + days = 2 + random = 3 + tooltip = EVTTOOLTIP100042 + } + } + } + option = { + name = EVTOPTC100040 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = envious + } + } + add_trait = envious + } + } +} + +#Courtier: Help FROM overcome her fears +character_event = { + id = 100041 + desc = EVTDESC100041 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100041 + add_friend = FROM + FROM = { + character_event = { + id = 100043 + days = 2 + random = 5 + tooltip = EVTTOOLTIP100043 + } + } + } + option = { + name = EVTOPTB100041 + add_rival = FROM + FROM = { + character_event = { + id = 100044 + days = 2 + random = 5 + tooltip = EVTTOOLTIP100044 + } + } + } + option = { + name = EVTOPTC100041 + if = { + limit = { + trait = kind + NOT = { + trait = charitable + } + } + remove_trait = charitable + } + if = { + limit = { + trait = charitable + NOT = { + trait = kind + } + } + remove_trait = kind + } + reverse_opinion = { + modifier = opinion_sad + who = FROM + years = 5 + } + } +} + +#Gain Rival +character_event = { + id = 100042 + desc = EVTDESC100042 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100042 + add_rival = FROM + } +} + +#Gain friend +character_event = { + id = 100043 + desc = EVTDESC100043 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100043 + add_friend = FROM + } +} + +#Gain Rival +character_event = { + id = 100044 + desc = EVTDESC100044 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100044 + add_rival = FROM + } +} + +### A girl at court is very flirtatious and seems to get away with everything... ### +character_event = { + id = 100050 + desc = EVTDESC100050 + picture = GFX_evt_courtiers_talking + + only_women = yes + prisoner = no + only_capable = yes + min_age = 16 + max_age = 25 + + trigger = { + is_inaccessible_trigger = no + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = chaste + trait = paranoid + trait = shy + } + any_courtier = { + is_inaccessible_trigger = no + prisoner = no + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 25 + } + trait = lustful + OR = { + trait = trusting + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + + immediate = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + prisoner = no + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 25 + } + trait = lustful + OR = { + trait = trusting + trait = charitable + trait = kind + trait = gregarious + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = target_courtier + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = wroth + } + modifier = { + factor = 2 + trait = envious + } + } + + option = { + name = EVTOTPA100050 + event_target:target_courtier = { + character_event = { + id = 100051 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100051 + } + } + } + option = { + name = EVTOTPB100050 + event_target:target_courtier = { + add_rival = ROOT + character_event = { + id = 100054 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100054 + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = chaste + } + } + add_trait = chaste + } + } + option = { + name = EVTOTPC100050 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = content + } + } + add_trait = content + } + random = { + chance = 10 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Depressed + } + } + } + } +} + +#Help FROM? +character_event = { + id = 100051 + desc = EVTDESC100051 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100051 + add_friend = FROM + FROM = { + character_event = { + id = 100052 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100052 + } + } + } + + option = { + name = EVTOPTB100051 + add_rival = FROM + FROM = { + character_event = { + id = 100053 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100053 + } + } + } + option = { + name = EVTOPTC100051 + opinion = { + modifier = opinion_glad + who = FROM + years = 100 + } + FROM = { + set_character_flag = good_relation + character_event = { + id = 100052 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100052 + } + } + } +} + +#ROOT gains a friend +character_event = { + id = 100052 + desc = EVTDESC100052 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100052 + trigger = { + NOT = { + has_character_flag = good_relation + } + } + add_friend = FROM + if = { + limit = { + trait = chaste + } + remove_trait = chaste + } + if = { + limit = { + trait = paranoid + } + remove_trait = paranoid + } + if = { + limit = { + trait = shy + } + remove_trait = shy + } + } + option = { + name = EVTOPTB100052 + trigger = { + has_character_flag = good_relation + } + clr_character_flag = good_relation + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + } +} + +#ROOT gains a rival +character_event = { + id = 100053 + desc = EVTDESC100053 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100053 + add_rival = FROM + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = envious + } + } + add_trait = envious + } + } +} + + +#Courtier gains rival +character_event = { + id = 100054 + desc = EVTDESC100054 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100054 + add_rival = FROM + } +} + +### Someone defeated me in swordplay! ### +character_event = { + id = 100060 + desc = EVTDESC100060 + picture = GFX_evt_child_sword + + only_men = yes + min_age = 11 + max_age = 16 + prisoner = no + only_capable = yes + + trigger = { + is_inaccessible_trigger = no + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + martial = 5 + } + host = { + any_courtier = { + is_inaccessible_trigger = no + martial = 5 + is_female = no + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + martial = 5 + is_female = no + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = target_courtier + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = brave + } + modifier = { + factor = 2 + trait = craven + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2 + trait = content + } + } + + option = { + name = EVTOPTA100060 + prestige = -2 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = charitable + } + } + add_trait = charitable + } + } + option = { + name = EVTOPTB100060 + event_target:target_courtier = { + add_rival = ROOT + character_event = { + id = 100061 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100061 + } + } + } + option = { + name = EVTOPTC100060 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = ambitious + } + } + add_trait = ambitious + } + } +} + +#Courtier gains a rival +character_event = { + id = 100061 + desc = EVTDESC100061 + picture = GFX_evt_child_sword + + is_triggered_only = yes + + option = { + name = EVTOPTA100061 + add_rival = FROM + } +} + +### Someone does not like me and keeps picking on me! ### +character_event = { + id = 100065 + desc = EVTDESC100065 + picture = GFX_evt_child_bully + + only_men = yes + only_capable = yes + prisoner = no + min_age = 4 + max_age = 14 + + trigger = { + is_inaccessible_trigger = no + NOT = { + has_character_flag = childhood_was_bullied + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { has_character_modifier = in_seclusion } + any_host_courtier = { + is_inaccessible_trigger = no + is_female = no + prisoner = no + age = 4 + NOR = { + age = 14 + num_of_friends = 2 + num_of_rivals = 2 + trait = timid + trait = kind + trait = charitable + opinion = { who = ROOT value = 10 } + is_friend = ROOT + is_rival = ROOT + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = brave + } + modifier = { + factor = 0.5 + trait = rowdy + } + modifier = { + factor = 2 + trait = craven + } + modifier = { + factor = 2 + trait = timid + } + } + + immediate = { + set_character_flag = childhood_was_bullied + host = { + random_host_courtier = { + limit = { + is_inaccessible_trigger = no + is_female = no + prisoner = no + age = 4 + NOR = { + age = 14 + num_of_friends = 2 + num_of_rivals = 2 + trait = timid + trait = kind + trait = charitable + opinion = { who = ROOT value = 10 } + is_friend = ROOT + is_rival = ROOT + } + } + save_event_target_as = target_courtier + } + } + } + + option = { + name = EVTOPTA100065 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = brave + } + } + add_trait = brave + } + if = { + limit = { + has_dlc = "Conclave" + } + change_martial = 2 + } + event_target:target_courtier = { + add_rival = ROOT + character_event = { + id = 100066 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100066 + } + } + } + option = { + name = EVTOPTB100065 + event_target:target_courtier = { + character_event = { + id = 100067 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100067 + } + } + } + option = { + name = EVTOPTC100065 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = patient + } + } + add_trait = patient + } + if = { + limit = { + has_dlc = "Conclave" + } + change_diplomacy = 1 + change_learning = 1 + } + } +} + +#Courtier gains a rival +character_event = { + id = 100066 + desc = EVTDESC100066 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100066 + add_rival = FROM + } +} + +#Courtier gets a sweet +character_event = { + id = 100067 + desc = EVTDESC100067 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100067 + add_rival = FROM + FROM = { + character_event = { + id = 100068 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100068 + } + } + } + option = { + name = EVTOPTB100067 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = gregarious + } + } + add_trait = gregarious + } + if = { + limit = { + has_dlc = "Conclave" + } + change_diplomacy = 2 + } + FROM = { + character_event = { + id = 100069 + days = 1 + random = 2 + tooltip = EVTTOOLTIPA100069 + } + } + } +} + +#Bribed with a sweet +character_event = { + id = 100068 + desc = EVTDESC100068 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100068 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = kind + } + } + add_trait = kind + } + if = { + limit = { + has_dlc = "Conclave" + } + change_diplomacy = 2 + } + } + option = { + name = EVTOPTB100068 + add_friend = FROM + FROM = { + character_event = { + id = 100069 + days = 1 + random = 2 + tooltip = EVTTOOLTIPB100069 + } + } + } +} + +#Courtier gains a friend +character_event = { + id = 100069 + desc = EVTDESC100069 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100069 + add_friend = FROM + } + option = { + name = EVTOPTB100069 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = kind + } + } + add_trait = kind + } + if = { + limit = { + has_dlc = "Conclave" + } + change_diplomacy = 2 + } + } +} + +### I can't stand someone! ### +character_event = { + id = 100070 + desc = EVTDESC100070 + picture = GFX_evt_child_bully + + prisoner = no + only_capable = yes + min_age = 11 + max_age = 16 + + trigger = { + is_inaccessible_trigger = no + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + OR = { + trait = cruel + trait = wroth + trait = envious + } + host = { + any_courtier = { + is_inaccessible_trigger = no + prisoner = no + same_sex = ROOT + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 2 + trait = honest + } + modifier = { + factor = 0.5 + trait = deceitful + } + modifier = { + factor = 0.5 + intrigue = 5 + } + modifier = { + factor = 2 + NOT = { intrigue = 5 } + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + prisoner = no + same_sex = ROOT + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = target_courtier + } + } + } + + option = { + name = EVTOPTA100070 + event_target:target_courtier = { + add_rival = ROOT + character_event = { + id = 100071 + days = 1 + random = 3 + tooltip = EVTTOOLTIP100071 + } + } + } + + option = { + name = EVTOPTB100070 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = zealous + } + } + add_trait = zealous + } + if = { + limit = { + trait = wroth + NOT = { + trait = envious + } + } + remove_trait = wroth + } + if = { + limit = { + trait = cruel + NOT = { + trait = wroth + } + } + remove_trait = cruel + } + if = { + limit = { + trait = envious + NOT = { + trait = cruel + } + } + remove_trait = envious + } + } + + option = { + name = EVTOPTC100070 + event_target:target_courtier = { + character_event = { + id = 100072 + days = 1 + random = 3 + tooltip = EVTTOOLTIP100072 + } + } + } +} + +#Courtier gains a rival +character_event = { + id = 100071 + desc = EVTDESC100071 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100071 + add_rival = FROM + } +} + +#Courtier is notified about ROOT's feelings +character_event = { + id = 100072 + desc = EVTDESC100072 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100072 + add_rival = FROM + FROM = { + character_event = { + id = 100073 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100073 + } + } + } + option = { + name = EVTOPTB100072 + FROM = { + character_event = { + id = 100074 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100074 + } + } + } + option = { + name = EVTOPTC100072 + if = { + limit = { + NOT = { + has_dlc = "Conclave" + } + NOT = { + num_of_traits = 5 + } + NOT = { + trait = content + } + } + add_trait = content + } + if = { + limit = { + has_dlc = "Conclave" + } + change_learning = 2 + } + } +} + +#ROOT gains a rival +character_event = { + id = 100073 + desc = EVTDESC100073 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100073 + add_rival = FROM + } +} + +#ROOT gains a friend? +character_event = { + id = 100074 + desc = EVTDESC100074 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA100074 + add_friend = FROM + FROM = { + set_character_flag = always_friends + character_event = { + id = 100075 + days = 1 + random = 2 + tooltip = EVTTOOLTIPA100075 + } + } + } + option = { + name = EVTOPTB100074 + add_rival = FROM + FROM = { + set_character_flag = always_rivals + character_event = { + id = 100075 + days = 1 + random = 2 + tooltip = EVTTOOLTIPB100075 + } + } + } +} + +#Courtier friend/rival? +character_event = { + id = 100075 + desc = EVTDESC100075 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA100075 + trigger = { + has_character_flag = always_friends + NOT = { + has_character_flag = always_rivals + } + } + clr_character_flag = always_friends + add_friend = FROM + } + option = { + name = EVTOPTB100075 + trigger = { + has_character_flag = always_rivals + NOT = { + has_character_flag = always_friends + } + } + clr_character_flag = always_rivals + add_rival = FROM + } +} + +### Someone does not believe in God! ### +character_event = { + id = 100080 + desc = EVTDESC100080 + picture = GFX_evt_child_talking + + min_age = 4 + max_age = 14 + prisoner = no + only_capable = yes + only_playable = yes + religion_group = christian + + trigger = { + is_inaccessible_trigger = no + trait = zealous + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + host = { + any_courtier = { + is_inaccessible_trigger = no + prisoner = no + same_sex = ROOT + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + trait = cynical + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + piety = 50 + } + modifier = { + factor = 2 + NOT = { piety = 50 } + } + modifier = { + factor = 0.5 + trait = diligent + } + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2 + trait = content + } + } + + option = { + name = EVTOPTA100080 + piety = 10 + } + option = { + name = EVTOPTB100080 + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + prisoner = no + same_sex = ROOT + age = 11 + NOT = { + age = 16 + } + at_location = ROOT + OR = { + trait = cynical + NOT = { + trait = zealous + } + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + character_event = { + id = 100081 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100081 + } + } + } + } +} + +#ROOT tries to convert a cynic +character_event = { + id = 100081 + desc = EVTDESC100081 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100081 + add_rival = FROM + FROM = { + character_event = { + id = 100082 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100082 + } + } + } + option = { + name = EVTOPTB100081 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = deceitful + } + } + add_trait = deceitful + } + FROM = { + character_event = { + id = 100083 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100083 + } + } + } + option = { + name = EVTOPTC100081 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = zealous + } + } + add_trait = zealous + } + if = { + limit = { + NOT = { + religion = FROM + } + } + religion = FROM + } + add_friend = FROM + FROM = { + character_event = { + id = 100084 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100084 + } + } + } +} + +#ROOT gains a rival +character_event = { + id = 100082 + desc = EVTDESC100082 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100082 + add_rival = FROM + } +} + +#ROOT is pious +character_event = { + id = 100083 + desc = EVTDESC100083 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100083 + piety = 20 + } +} + +#ROOT gains a friend +character_event = { + id = 100084 + desc = EVTDESC100084 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100084 + tooltip = { + FROM = { + add_trait = zealous + } + } + add_friend = FROM + } +} + +### My embroidery is not as good as someone else's! ### +character_event = { + id = 100090 + desc = EVTDESC100090 + picture = GFX_evt_child_talking + + only_women = yes + min_age = 11 + max_age = 16 + prisoner = no + only_capable = yes + + trigger = { + is_inaccessible_trigger = no + OR = { + trait = ambitious + trait = diligent + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + host = { + any_courtier = { + is_inaccessible_trigger = no + is_female = yes + age = 4 + NOT = { + age = 14 + } + at_location = ROOT + OR = { + trait = ambitious + trait = diligent + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 3 + trait = envious + } + modifier = { + factor = 0.5 + trait = kind + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + is_female = yes + age = 4 + NOT = { + age = 14 + } + at_location = ROOT + OR = { + trait = ambitious + trait = diligent + } + NOT = { + sibling = ROOT + } + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = embroidery_prodigy + } + } + } + + option = { + name = EVTOPTA100090 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = humble + } + } + add_trait = humble + } + } + option = { + name = EVTOPTB100090 + + event_target:embroidery_prodigy = { + add_rival = ROOT + character_event = { + id = 100091 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100091 + } + } + } + option = { + name = EVTOPTC100090 + + event_target:embroidery_prodigy = { + reverse_opinion = { + modifier = opinion_envy + who = ROOT + years = 1 + } + character_event = { + id = 100092 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100092 + } + } + } + option = { + name = EVTOPTD100090 + event_target:embroidery_prodigy = { + character_event = { + id = 100094 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100094 + } + } + } +} + +#Courtier gains a rival +character_event = { + id = 100091 + desc = EVTDESC100091 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100091 + add_rival = FROM + } +} + +#ROOT destroys Courtier's embroidery +character_event = { + id = 100092 + desc = EVTDESC100092 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100092 + add_rival = FROM + FROM = { + character_event = { + id = 100093 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100093 + } + } + } + option = { + name = EVTOPTB100092 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = humble + } + } + add_trait = humble + } + } +} + +#ROOT gains a rival +character_event = { + id = 100093 + desc = EVTDESC100093 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100093 + add_rival = FROM + } +} + +#ROOT gains a friend or rival +character_event = { + id = 100094 + desc = EVTDESC100094 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100094 + add_friend = FROM + FROM = { + character_event = { + id = 100095 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100095 + } + } + } + option = { + name = EVTOPTB100094 + add_rival = FROM + FROM = { + character_event = { + id = 100096 + days = 1 + random = 2 + tooltip = EVTTOOLTIP100096 + } + } + } +} + +#ROOT gains a friend +character_event = { + id = 100095 + desc = EVTDESC100095 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100095 + add_friend = FROM + } +} + +#ROOT gains a friend +character_event = { + id = 100096 + desc = EVTDESC100096 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100096 + add_rival = FROM + } +} + +### Someone stole my doll! ### +character_event = { + id = 100100 + desc = EVTDESC100100 + picture = GFX_evt_child_bully + + only_women = yes + only_capable = yes + min_age = 4 + max_age = 14 + prisoner = no + + trigger = { + is_inaccessible_trigger = no + NOT = { + num_of_friends = 2 + } + NOT = { + num_of_rivals = 2 + } + any_host_courtier = { + is_inaccessible_trigger = no + is_female = yes + prisoner = no + age = 4 + NOR = { + age = 14 + num_of_friends = 2 + num_of_rivals = 2 + trait = timid + trait = kind + trait = charitable + opinion = { who = ROOT value = 10 } + is_friend = ROOT + is_rival = ROOT + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = humble + } + modifier = { + factor = 0.5 + trait = timid + } + modifier = { + factor = 0.5 + trait = affectionate + } + modifier = { + factor = 0.5 + trait = wroth + } + modifier = { + factor = 0.5 + trait = envious + } + modifier = { + factor = 0.5 + trait = rowdy + } + modifier = { + factor = 0.5 + trait = brooding + } + } + + immediate = { + random_host_courtier = { + limit = { + is_inaccessible_trigger = no + is_female = yes + prisoner = no + age = 4 + NOR = { + age = 14 + num_of_friends = 2 + num_of_rivals = 2 + trait = timid + trait = kind + trait = charitable + opinion = { who = ROOT value = 10 } + is_friend = ROOT + is_rival = ROOT + } + } + save_event_target_as = doll_stealer + } + } + + option = { + name = EVTOPTA100100 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = ambitious + } + } + random = { + chance = 25 + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + if = { + limit = { + num_of_traits = 5 + trait = ambitious + } + piety = 5 + } + } + hidden_tooltip = { + event_target:doll_stealer = { + character_event = { + id = 100101 + days = 5 + random = 5 + tooltip = EVTTOOLTIP100101 + } + } + + } + } + option = { + name = EVTOPTB100100 + random = { + chance = 20 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } +} + +#Courtier decides what happens to doll +character_event = { + id = 100101 + desc = EVTDESC100101 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100101 + add_friend = FROM + FROM = { + character_event = { + id = 100102 + days = 3 + random = 3 + tooltip = EVTTOOLTIPA100102 + } + } + } + option = { + name = EVTOPTB100101 + tooltip = { + reverse_opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + } + FROM = { + set_character_flag = ugly_doll + character_event = { + id = 100102 + days = 3 + random = 3 + tooltip = EVTTOOLTIPA100102 + } + } + } + option = { + name = EVTOPTC100101 + if = { + limit = { + NOR = { + num_of_traits = 5 + trait = greedy + has_dlc = "Conclave" + } + } + add_trait = greedy + } + if = { + limit = { + has_dlc = "Conclave" + } + change_stewardship = 2 + change_diplomacy = -1 + } + add_rival = FROM + FROM = { + set_character_flag = rival_doll + character_event = { + id = 100102 + days = 3 + random = 3 + tooltip = EVTTOOLTIPB100102 + } + } + } +} + +#Gave it back +character_event = { + id = 100102 + desc = EVTDESC100102 + picture = GFX_evt_child_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100102 + trigger = { + NOT = { + has_character_flag = ugly_doll + } + } + add_friend = FROM + } + option = { + name = EVTOPTB100102 + trigger = { + has_character_flag = ugly_doll + } + clr_character_flag = ugly_doll + opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + } + + option = { + name = EVTOPTC100102 + trigger = { + has_character_flag = rival_doll + } + clr_character_flag = rival_doll + add_rival = FROM + } +} + +### Crusaders becomes friends/rivals ### +character_event = { + id = 100105 + desc = EVTDESC100105 + picture = GFX_evt_crusaders + + only_men = yes + min_age = 16 + prisoner = no + only_capable = yes + religion_group = christian + war = yes + + trigger = { + is_inaccessible_trigger = no + in_command = yes + trait = crusader + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + host = { + any_courtier = { + is_inaccessible_trigger = no + is_female = no + prisoner = no + in_command = yes + war = yes + at_location = ROOT + trait = crusader + religion_group = christian + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = cynical + } + + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = brave + } + modifier = { + factor = 0.5 + trait = honest + } + } + + immediate = { + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + is_female = no + prisoner = no + in_command = yes + war = yes + at_location = ROOT + trait = crusader + religion_group = christian + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + save_event_target_as = fellow_crusader + } + } + } + + option = { + name = EVTOPTA100105 + piety = 10 + event_target:fellow_crusader = { + set_character_flag = crusader_piety + character_event = { + id = 100106 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100106 + } + } + } + option = { + name = EVTOPTB100105 + prestige = 10 + event_target:fellow_crusader = { + set_character_flag = crusader_prestige + character_event = { + id = 100106 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100106 + } + } + } + option = { + name = EVTOPTC100105 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = greedy + } + } + random = { + chance = 25 + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = cynical + } + } + random = { + chance = 25 + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } + } + option = { + name = EVTOPTD100105 + remove_trait = crusader + } +} + +#Crusader Friend or Foe? +character_event = { + id = 100106 + desc = EVTDESC100106 + picture = GFX_evt_crusaders + + is_triggered_only = yes + + option = { + name = EVTOPTA100106 + trigger = { + has_character_flag = crusader_prestige + } + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + clr_character_flag = crusader_prestige + FROM = { + set_character_flag = prestige_crusader + character_event = { + id = 100107 + days = 5 + random = 5 + tooltip = EVTTOOLTIP100107 + } + } + } + option = { + name = EVTOPTB100106 + trigger = { + has_character_flag = crusader_piety + } + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + clr_character_flag = crusader_piety + FROM = { + set_character_flag = piety_crusader + character_event = { + id = 100107 + days = 5 + random = 5 + tooltip = EVTTOOLTIP100107 + } + } + } + option = { + name = EVTOPTC100106 + trigger = { + has_character_flag = crusader_prestige + } + add_friend = FROM + clr_character_flag = crusader_prestige + FROM = { + set_character_flag = prestige_crusader + character_event = { + id = 100108 + days = 5 + random = 5 + tooltip = EVTTOOLTIP100108 + } + } + } + option = { + name = EVTOPTD100106 + trigger = { + has_character_flag = crusader_piety + } + add_friend = FROM + clr_character_flag = crusader_piety + FROM = { + set_character_flag = piety_crusader + character_event = { + id = 100108 + days = 5 + random = 5 + tooltip = EVTTOOLTIP100108 + } + } + } + option = { + name = EVTOPTD100105 + clr_character_flag = crusader_prestige + clr_character_flag = crusader_piety + remove_trait = crusader + } +} + +#Crusader Foes +character_event = { + id = 100107 + desc = EVTDESC100107 + picture = GFX_evt_crusaders + + is_triggered_only = yes + + option = { + name = EVTOPTA100107 + trigger = { + has_character_flag = piety_crusader + NOT = { + has_character_flag = prestige_crusader + } + } + clr_character_flag = piety_crusader + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + } + option = { + name = EVTOPTB100107 + trigger = { + has_character_flag = prestige_crusader + NOT = { + has_character_flag = piety_crusader + } + } + clr_character_flag = prestige_crusader + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + } +} + +#Crusader Friends +character_event = { + id = 100108 + desc = EVTDESC100108 + picture = GFX_evt_crusaders + + is_triggered_only = yes + + option = { + name = EVTOPTA100108 + trigger = { + has_character_flag = piety_crusader + NOT = { + has_character_flag = prestige_crusader + } + } + clr_character_flag = piety_crusader + add_friend = FROM + } + option = { + name = EVTOPTB100108 + trigger = { + has_character_flag = prestige_crusader + NOT = { + has_character_flag = piety_crusader + } + } + clr_character_flag = prestige_crusader + add_friend = FROM + } +} + +### Learn from the best (and take his job) ### +character_event = { + id = 100110 + desc = EVTDESC100110 + picture = GFX_evt_courtiers_talking + + #only_men = yes + min_age = 16 + prisoner = no + capable_only = yes + only_rulers = yes + + trigger = { + is_inaccessible_trigger = no + is_councillor = no + independent = no + OR = { + has_ambition = obj_become_chancellor + has_ambition = obj_become_marshal + has_ambition = obj_become_treasurer + has_ambition = obj_become_spymaster + has_ambition = obj_become_spiritual + } + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + liege = { + any_courtier = { + is_inaccessible_trigger = no + #is_female = no + is_abroad = no + prisoner = no + is_councillor = yes + #at_location = ROOT + same_liege = ROOT + + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + OR = { + AND = { + has_job_title = job_chancellor + ROOT = { + has_ambition = obj_become_chancellor + } + } + AND = { + has_job_title = job_marshal + ROOT = { + has_ambition = obj_become_marshal + } + } + AND = { + has_job_title = job_treasurer + ROOT = { + has_ambition = obj_become_treasurer + } + } + AND = { + has_job_title = job_spymaster + ROOT = { + has_ambition = obj_become_spymaster + } + } + AND = { + has_job_title = job_spiritual + ROOT = { + has_ambition = obj_become_spiritual + } + } + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.5 + OR = { + trait = quick + trait = shrewd + } + } + modifier = { + factor = 0.3 + trait = genius + } + modifier = { + factor = 0.5 + trait = diligent + } + + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + OR = { + trait = slow + trait = dull + } + } + modifier = { + factor = 5 + trait = imbecile + } + modifier = { + factor = 2 + trait = content + } + } + + option = { + name = EVTOPTA100110 + liege = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + #is_female = no + is_abroad = no + prisoner = no + is_councillor = yes +# at_location = ROOT + same_liege = ROOT + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + OR = { + AND = { + has_job_title = job_chancellor + ROOT = { + has_ambition = obj_become_chancellor + } + } + AND = { + has_job_title = job_marshal + ROOT = { + has_ambition = obj_become_marshal + } + } + AND = { + has_job_title = job_treasurer + ROOT = { + has_ambition = obj_become_treasurer + } + } + AND = { + has_job_title = job_spymaster + ROOT = { + has_ambition = obj_become_spymaster + } + } + AND = { + has_job_title = job_spiritual + ROOT = { + has_ambition = obj_become_spiritual + } + } + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + character_event = { + id = 100111 + days = 10 + random = 5 + tooltip = EVTTOOLTIP100111 + } + } + } + } + option = { + name = EVTOPTB100110 + trigger = { + has_ambition = obj_become_chancellor + any_courtier = { + has_job_title = job_chancellor + is_alive = yes + is_abroad = no + prisoner = no + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 15 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + + random = { + chance = 15 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } + option = { + name = EVTOPTC100110 + trigger = { + has_ambition = obj_become_marshal + any_courtier = { + has_job_title = job_marshal + is_alive = yes + is_abroad = no + prisoner = no + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 15 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + random = { + chance = 15 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } + option = { + name = EVTOPTD100110 + trigger = { + has_ambition = obj_become_treasurer + any_courtier = { + has_job_title = job_treasurer + is_alive = yes + is_abroad = no + prisoner = no + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 15 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + random = { + chance = 15 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } + option = { + name = EVTOPTE100110 + trigger = { + has_ambition = obj_become_spymaster + any_courtier = { + has_job_title = job_spymaster + is_alive = yes + is_abroad = no + prisoner = no + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 15 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + + random = { + chance = 15 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } + option = { + name = EVTOPTF100110 + trigger = { + has_ambition = obj_become_spiritual + any_courtier = { + has_job_title = job_spiritual + is_alive = yes + is_abroad = no + prisoner = no + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 15 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + random = { + chance = 15 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } +} + +#Courtier is asked to help +character_event = { + id = 100111 + desc = EVTDESC100111 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100111 + add_friend = FROM + FROM = { + character_event = { + id = 100112 + days = 10 + random = 5 + tooltip = EVTTOOLTIP100112 + } + } + } + option = { + name = EVTOPTB100111 + add_trait = paranoid + reverse_opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + FROM = { + set_character_flag = suspicious_chancellor + character_event = { + id = 100112 + days = 10 + random = 5 + tooltip = EVTTOOLTIP100112 + } + } + } + option = { + name = EVTOPTC100111 + add_rival = FROM + FROM = { + character_event = { + id = 100113 + days = 10 + random = 5 + tooltip = EVTTOOLTIP100113 + } + } + } +} + +#Gain friend +character_event = { + id = 100112 + desc = EVTDESC100112 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100112 + trigger = { + NOT = { + has_character_flag = suspicious_chancellor + } + } + if = { + limit = { + FROM = { + has_job_title = job_chancellor + } + has_ambition = obj_become_chancellor + } + change_diplomacy = 1 + } + if = { + limit = { + FROM = { + has_job_title = job_marshal + } + has_ambition = obj_become_marshal + } + change_martial = 1 + } + if = { + limit = { + FROM = { + has_job_title = job_treasurer + } + has_ambition = obj_become_treasurer + } + change_stewardship = 1 + } + if = { + limit = { + FROM = { + has_job_title = job_spymaster + } + has_ambition = obj_become_spymaster + } + change_intrigue = 1 + } + if = { + limit = { + FROM = { + has_job_title = job_spiritual + } + has_ambition = obj_become_spiritual + } + change_learning = 1 + } + add_friend = FROM + } + option = { + name = EVTOPTA100112 + trigger = { + has_character_flag = suspicious_chancellor + } + clr_character_flag = suspicious_chancellor + tooltip = { + reverse_opinion = { + modifier = opinion_glad + who = FROM + years = 100 + } + } + } +} + +#Gain rival +character_event = { + id = 100113 + desc = EVTDESC100113 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100113 + add_rival = FROM + } +} + +### Sharing the wonders of childbearing has made you a new friend ### +character_event = { + id = 100115 + desc = EVTDESC100115 + picture = GFX_evt_courtiers_talking + + only_women = yes + min_age = 16 + prisoner = no + only_capable = yes + is_married = yes + + trigger = { + is_inaccessible_trigger = no + is_pregnant = yes + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + spouse = { + is_alive = yes + } + host = { + any_courtier = { + is_inaccessible_trigger = no + is_female = yes + is_abroad = no + prisoner = no + at_location = ROOT + is_pregnant = yes + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + opinion = { who = ROOT value = 5 } + NOT = { + opinion = { who = ROOT value = 40 } + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.5 + trait = kind + } + + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = cruel + } + } + + option = { + name = EVTOPTA100115 + host = { + random_courtier = { + limit = { + is_inaccessible_trigger = no + is_female = yes + is_abroad = no + prisoner = no + at_location = ROOT + is_pregnant = yes + NOT = { + sibling = ROOT + } + age = 16 + NOT = { + num_of_friends = 5 + } + NOT = { + num_of_rivals = 5 + } + opinion = { who = ROOT value = 5 } + NOT = { + opinion = { who = ROOT value = 40 } + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + } + add_friend = ROOT + character_event = { + id = 100116 + days = 5 + random = 7 + tooltip = EVTTOOLTIP100116 + } + } + } + } + option = { + name = EVTOPTB100115 + fertility = 0.1 + } +} + +#Female friend/rival +character_event = { + id = 100116 + desc = EVTDESC100116 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100116 + add_friend = FROM + } + option = { + name = EVTOPTB100116 + FROM = { + character_event = { + id = 100117 + days = 270 + tooltip = EVTTOOLTIP100117 + } + } + } +} + +#Female rival +character_event = { + id = 100117 + desc = EVTDESC100117 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100117 + remove_friend = FROM + opinion = { + modifier = opinion_sad + who = FROM + years = 100 + } + } +} + +################################################## +# FRIENDSHIP EVENTS # +################################################## + +### Friend at war - send help? ### +character_event = { + id = 100150 + desc = EVTDESC100150 + picture = GFX_evt_large_army + + only_rulers = yes + min_age = 16 + prisoner = no + capable_only = yes + war = no + friends = yes + + trigger = { + in_command = no + scaled_wealth = 0.5 + NOT = { + has_character_modifier = friend_at_war_timer + } + is_inaccessible_trigger = no + any_friend = { + is_inaccessible_trigger = no + war = yes + is_ruler = yes + prisoner = no + OR = { + is_primary_war_attacker = yes + is_primary_war_defender = yes + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 2 + trait = greedy + } + } + + immediate = { + add_character_modifier = { + name = friend_at_war_timer + duration = 1095 + hidden = yes + } + } + + option = { + name = EVTOPTA100150 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = yes + is_ruler = yes + prisoner = no + NOT = { is_vassal_or_below = ROOT } + OR = { + is_primary_war_attacker = yes + is_primary_war_defender = yes + } + } + if = { + limit = { + is_primary_war_attacker = yes + } + ROOT = { + join_attacker_wars = PREV + } + } + if = { + limit = { + is_primary_war_defender = yes + } + ROOT = { + join_defender_wars = PREV + } + } + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + letter_event = { + id = 100151 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100151 + } + } + } + option = { + name = EVTOPTB100150 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = yes + is_ruler = yes + prisoner = no + } + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + tooltip = { + ROOT = { + transfer_scaled_wealth = { + to = PREV + value = 0.25 + } + } + } + letter_event = { + id = 100152 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100152 + } + } + } + option = { + name = EVTOPTC100150 + random = { + chance = 10 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = yes + is_ruler = yes + prisoner = no + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { + id = 100153 + days = 90 + random = 5 + } + } + } + } + } +} + +#Root joined friend's war +letter_event = { + id = 100151 + desc = EVTDESC100151 + + is_triggered_only = yes + + option = { + name = EVTOPTA100151 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = FROM + years = 5 + } + if = { + limit = { + is_primary_war_attacker = yes + } + FROM = { + join_attacker_wars = ROOT + } + } + if = { + limit = { + is_primary_war_defender = yes + } + FROM = { + join_defender_wars = ROOT + } + } + } + } +} + +#Root sent money to friend +letter_event = { + id = 100152 + desc = EVTDESC100152 + + is_triggered_only = yes + + option = { + name = EVTOPTA100152 + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + } + tooltip = { + opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + } + } +} + +#I never got your letter! +character_event = { + id = 100153 + desc = EVTDESC100153 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA100153 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB100153 + trigger = { + war = no + } + prestige = 15 + } +} + +### I'm at war and need help! ### +character_event = { + id = 100160 + desc = EVTDESC100160 + picture = GFX_evt_large_army + + only_rulers = yes + prisoner = no + min_age = 16 + capable_only = yes + war = yes + + trigger = { + OR = { + is_primary_war_attacker = yes + is_primary_war_defender = yes + } + num_of_friends = 1 + is_inaccessible_trigger = no + any_friend = { + war = no + is_ruler = yes + prisoner = no + NOR = { + liege = { + character = ROOT + } + ROOT = { + liege = { + character = PREVPREV + } + } + } + NOT = { has_character_modifier = in_seclusion } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 5 + trait = proud + } + + modifier = { + factor = 0.5 + trait = trusting + } + } + + immediate = { + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + is_ruler = yes + prisoner = no + NOR = { + liege = { + character = ROOT + } + ROOT = { + liege = { + character = PREVPREV + } + } + } + } + save_event_target_as = friend_during_war + } + } + + option = { + name = EVTOPTA100160 + event_target:friend_during_war = { + letter_event = { + id = 100161 + days = 7 + random = 21 + tooltip = EVTTOOLTIP100161 + } + } + } + option = { + name = EVTOPTB100160 + event_target:friend_during_war = { + letter_event = { + id = 100162 + days = 7 + random = 21 + tooltip = EVTTOOLTIP100162 + } + } + } + option = { + name = EVTOPTC100160 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = proud + } + } + add_trait = proud + } + prestige = 10 + } +} + +#Asked by a friend to join her/his war +letter_event = { + id = 100161 + desc = EVTDESC100161 + + is_triggered_only = yes + + option = { + name = EVTOPTA100161 + if = { + limit = { + FROM = { + is_primary_war_attacker = yes + } + } + join_attacker_wars = FROM + } + if = { + limit = { + FROM = { + is_primary_war_defender = yes + } + } + join_defender_wars = FROM + } + FROM = { + set_character_flag = friend_joined_war + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100163 + tooltip = EVTTOOLTIP100163 + } + } + } + option = { + name = EVTOPTB100161 + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100163 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100163 + } + } + } + option = { + name = EVTOPTC100161 + tooltip = { + reverse_opinion = { + modifier = opinion_very_disappointed + who = FROM + years = 5 + } + } + FROM = { + letter_event = { + id = 100164 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100164 + } + } + } +} + +#Asked by a friend for money +letter_event = { + id = 100162 + desc = EVTDESC100162 + + is_triggered_only = yes + + option = { + name = EVTOPTA100162 + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + character_event = { + id = 100163 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100163 + } + } + } + option = { + name = EVTOPTB100162 + if = { + limit = { + FROM = { + is_primary_war_attacker = yes + } + } + join_attacker_wars = FROM + } + if = { + limit = { + FROM = { + is_primary_war_defender = yes + } + } + join_defender_wars = FROM + } + FROM = { + set_character_flag = friend_joined_war + character_event = { + id = 100163 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100163 + } + } + } + option = { + name = EVTOPTC100162 + FROM = { + letter_event = { + id = 100164 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100164 + } + } + } +} + +#Friend joined war or sent money +character_event = { + id = 100163 + desc = EVTDESC100163 + picture = GFX_evt_large_army + + is_triggered_only = yes + + option = { + name = EVTOPTA100163 #Joined the war! + trigger = { + has_character_flag = friend_joined_war + } + clr_character_flag = friend_joined_war + tooltip = { + if = { + limit = { + is_primary_war_attacker = yes + } + FROM = { + join_attacker_wars = ROOT + } + } + if = { + limit = { + is_primary_war_defender = yes + } + FROM = { + join_defender_wars = ROOT + } + } + } + opinion = { + modifier = opinion_very_grateful + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB100163 + trigger = { + NOT = { + has_character_flag = friend_joined_war + } + } + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + } +} + +#Friend did nothing to help +letter_event = { + id = 100164 + desc = EVTDESC100164 + + is_triggered_only = yes + + option = { + name = EVTOPTA100164 + opinion = { + modifier = opinion_very_disappointed + who = FROM + years = 5 + } + } +} + +### My friend's friend is my friend ### +character_event = { + id = 100170 + desc = EVTDESC100170 + picture = GFX_evt_courtiers_talking + + min_age = 16 + prisoner = no + only_capable = yes + war = no + friends = yes + + trigger = { + in_command = no + NOT = { + num_of_friends = 5 + } + is_inaccessible_trigger = no + any_friend = { + is_inaccessible_trigger = no + prisoner = no + any_friend = { + prisoner = no + war = no + in_command = no + NOT = { + num_of_friends = 5 + } + NOT = { + character = ROOT + } + NOT = { + is_close_relative = ROOT + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + NOT = { + is_lover = ROOT + } + NOT = { + is_consort = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 240 + + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + random_friend = { + limit = { + is_inaccessible_trigger = no + prisoner = no + any_friend = { + prisoner = no + war = no + in_command = no + NOT = { + num_of_friends = 5 + } + NOT = { + character = ROOT + } + NOT = { + is_close_relative = ROOT + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + NOT = { + is_lover = ROOT + } + NOT = { + is_consort = ROOT + } + } + } + save_event_target_as = my_friend + event_target:my_friend = { + random_friend = { + limit = { + is_inaccessible_trigger = no + prisoner = no + war = no + in_command = no + NOT = { + num_of_friends = 5 + } + NOT = { + character = ROOT + } + NOT = { + is_close_relative = ROOT + } + NOT = { + is_friend = ROOT + } + NOT = { + is_rival = ROOT + } + NOT = { + is_lover = ROOT + } + NOT = { + is_consort = ROOT + } + } + save_event_target_as = friends_friend + } + } + } + save_event_target_as = start_friend + } + + option = { + name = EVTOPTA100170 + ai_chance = { + factor = 5 + + modifier = { + factor = 20 + NOT = { num_of_friends = 5 } + } + modifier = { + factor = 2 + num_of_friends = 5 + } + } + event_target:friends_friend = { + character_event = { + id = 100172 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100171 + } + } + } + option = { + name = EVTOPTB100170 + ai_chance = { + factor = 5 + + modifier = { + factor = 20 + num_of_friends = 5 + } + modifier = { + factor = 2 + NOT = { num_of_friends = 5 } + } + } + if = { + limit = { + trait = gregarious + } + remove_trait = gregarious + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = content + } + } + add_trait = content + } + event_target:friends_friend = { + set_character_flag = nofriends_friend + hidden_tooltip = { + character_event = { + id = 100173 + days = 7 + random = 7 + } + } + tooltip = { + opinion = { + who = ROOT + modifier = opinion_irritated + years = 5 + } + } + } + event_target:my_friend = { + hidden_tooltip = { + character_event = { + id = 100171 + days = 7 + random = 7 + } + } + tooltip = { + opinion = { + who = ROOT + modifier = opinion_irritated + years = 5 + } + } + } + } +} + +#FROM likes/doesn't like my friend +character_event = { + id = 100171 + desc = { + text = EVTDESC100171 + trigger = { + NOR = { + event_target:friends_friend = { + has_character_flag = nofriends_friend + } + event_target:start_friend = { + has_character_flag = nofriends_friend + } + } + } + } + desc = { + text = EVTDESCB100171 + trigger = { + OR = { + event_target:friends_friend = { + has_character_flag = nofriends_friend + } + event_target:start_friend = { + has_character_flag = nofriends_friend + } + } + } + } + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100171 + trigger = { + OR = { + event_target:friends_friend = { + has_character_flag = nofriends_friend + } + event_target:start_friend = { + has_character_flag = nofriends_friend + } + } + } + event_target:friends_friend = { + clr_character_flag = nofriends_friend + } + event_target:start_friend = { + clr_character_flag = nofriends_friend + } + if = { + limit = { + event_target:start_friend = { has_character_flag = nofriends_friend_rival } + } + clr_character_flag = nofriends_friend_rival + tooltip = { + event_target:start_friend = { add_rival = event_target:friends_friend } + } + opinion = { + who = FROM + modifier = opinion_dislike + years = 5 + } + break = yes + } + opinion = { + who = FROM + modifier = opinion_irritated + years = 5 + } + } + option = { + name = EVTOPTB100171 + trigger = { + NOT = { + any_friend = { + has_character_flag = nofriends_friend + } + } + } + prestige = 5 + } +} + +#FROM likes me! +character_event = { + id = 100172 + desc = EVTDESC100172 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100172 + add_friend = FROM + FROM = { + character_event = { + id = 100174 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100174 + } + } + event_target:my_friend = { + character_event = { + id = 100171 + tooltip = EVTTOOLTIPA100171 + } + } + } + option = { + name = EVTOPTB100172 + add_rival = FROM + FROM = { + set_character_flag = nofriends_friend_rival + set_character_flag = nofriends_friend + character_event = { + id = 100175 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100175 + } + } + event_target:my_friend = { + tooltip = { + opinion = { + who = ROOT + modifier = opinion_dislike + years = 5 + } + } + hidden_tooltip = { + character_event = { + id = 100171 + } + } + } + } + option = { + name = EVTOPTC100172 + FROM = { + set_character_flag = rejected_friend + set_character_flag = nofriends_friend + character_event = { + id = 100174 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100174 + } + tooltip = { + opinion = { + who = ROOT + modifier = opinion_rejected_friend + years = 5 + } + } + } + event_target:my_friend = { + tooltip = { + opinion = { + who = ROOT + modifier = opinion_irritated + years = 5 + } + } + hidden_tooltip = { + character_event = { + id = 100171 + } + } + } + } +} + +#FROM doesn't want to be my friend +character_event = { + id = 100173 + desc = EVTDESC100173 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100173 + opinion = { + modifier = opinion_irritated + who = FROM + years = 5 + } + } +} + +#ROOT gets a new friend +character_event = { + id = 100174 + desc = { + text = EVTDESC100174 + trigger = { + NOT = { + has_character_flag = rejected_friend + } + } + } + desc = { + text = EVTDESCB100174 + trigger = { + has_character_flag = rejected_friend + } + } + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100174 + trigger = { + NOT = { + has_character_flag = rejected_friend + } + } + add_friend = FROM + } + option = { + name = EVTOPTB100174 + trigger = { + has_character_flag = rejected_friend + } + clr_character_flag = rejected_friend + opinion = { + modifier = opinion_rejected_friend + who = FROM + years = 5 + } + } +} + +#ROOT doesn't get a new friend +character_event = { + id = 100175 + desc = EVTDESC100175 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100175 + add_rival = FROM + } +} + +### My friend is a heretic/infidel! ### +character_event = { + id = 100180 + desc = EVTDESC100180 + picture = GFX_evt_heretic + + min_age = 16 + prisoner = no + capable_only = yes + war = no + friends = yes + + trigger = { + is_inaccessible_trigger = no + is_heretic = no + in_command = no + scaled_wealth = 0.5 + OR = { + religion_group = christian + religion_group = oldworld + religion_group = latter_day_saints + } + NOT = { + has_character_modifier = heretic_friend_timer + } + any_friend = { + is_inaccessible_trigger = no + war = no + in_command = no + prisoner = no + NOT = { trait = incapable } + religion_group = ROOT + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = zealous + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = cynical + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + add_character_modifier = { + name = heretic_friend_timer + duration = 1095 + hidden = yes + } + + + } + + option = { + name = EVTOPTA100180 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + in_command = no + prisoner = no + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + character_event = { + id = 100181 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100181 + } + } + } + option = { + name = EVTOPTB100180 + piety = -10 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + prisoner = no + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + character_event = { + id = 100182 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100182 + } + } + } + option = { + name = EVTOPTC100180 + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + prisoner = no + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + character_event = { + id = 100183 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100183 + } + } + } + option = { + name = EVTOPTD100180 + tooltip_info = zealous + trigger = { + trait = zealous + } + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + prisoner = no + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + remove_friend = ROOT + character_event = { + id = 100184 + days = 7 + random = 14 + tooltip = EVTTOOLTIP100184 + } + } + } + option = { + name = EVTOPTE100180 + tooltip_info = cynical + trigger = { + trait = cynical + } + random_friend = { + limit = { + is_inaccessible_trigger = no + war = no + prisoner = no + OR = { + is_heretic = yes + NOT = { + religion = ROOT + } + } + } + random = { + chance = 50 + ROOT = { + religion = PREV + } + remove_trait = cynical + } + } + } +} + +#ROOT tries to convert friend +character_event = { + id = 100181 + desc = EVTDESC100181 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100181 + remove_friend = FROM + FROM = { + character_event = { + id = 100185 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100185 + } + } + } + option = { + name = EVTOPTB100181 + religion = FROM + FROM = { + character_event = { + id = 100186 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100186 + } + } + } + option = { + name = EVTOPTC100181 + FROM = { + set_character_flag = friend_religion + opinion = { + modifier = opinion_wrong_religion + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 100186 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100186 + } + } + } + } +} + +#ROOT accepts friend's religion +character_event = { + id = 100182 + desc = EVTDESC100182 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100182 + opinion = { + modifier = opinion_accepted_religion + who = FROM + years = 5 + } + } +} + +#ROOT becomes interested in friend's religion +character_event = { + id = 100183 + desc = EVTDESC100183 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100183 + trigger = { + NOT = { + FROM = { + religion = ROOT + } + } + } + opinion = { + modifier = opinion_accepted_religion + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB100183 + trigger = { + FROM = { + religion = ROOT + } + } + opinion = { + modifier = opinion_accepted_religion + who = FROM + years = 5 + } + } +} + +#ROOT condemns friend's religion and stops being friend with him/her +character_event = { + id = 100184 + desc = EVTDESC100184 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100184 + remove_friend = FROM + } +} + +#ROOT +character_event = { + id = 100185 + desc = EVTDESC100185 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100185 + remove_friend = FROM + } +} + +#ROOT +character_event = { + id = 100186 + desc = EVTDESC100186 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100186 + trigger = { + NOT = { + has_character_flag = friend_religion + } + } + opinion = { + modifier = opinion_happy_convertion + who = FROM + years = 2 + } + } + option = { + name = EVTOPTB100186 + trigger = { + has_character_flag = friend_religion + } + clr_character_flag = friend_religion + tooltip = { + opinion = { + modifier = opinion_wrong_religion + who = FROM + years = 2 + } + } + } +} + +### My friend is a much better diplomat than me, ask for help? ### +character_event = { + id = 100190 + desc = EVTDESC100190 + picture = GFX_evt_courtiers_talking + + prisoner = no + min_age = 16 + capable_only = yes + war = no + friends = yes + + trigger = { + in_command = no + NOT = { + has_job_title = job_chancellor + } + diplomacy = 5 + NOT = { + diplomacy = 10 + } + is_inaccessible_trigger = no + NOT = { + has_character_modifier = friend_diplomacy_timer + } + any_friend = { + is_adult = yes + war = no + in_command = no + prisoner = no + diplomacy = 11 + NOT = { + has_job_title = job_chancellor + } + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = friend_diplomacy_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100190 + random_friend = { + limit = { + is_adult = yes + war = no + in_command = no + prisoner = no + diplomacy = 11 + NOT = { + has_job_title = job_chancellor + } + is_inaccessible_trigger = no + } + character_event = { + id = 100191 + days = 15 + random = 15 + tooltip = EVTTOOLTIP100191 + } + } + } + option = { + name = EVTOPTB100190 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = ambitious + } + } + add_trait = ambitious + } + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } +} + +#Friend is asked by ROOT for help +character_event = { + id = 100191 + desc = EVTDESC100191 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100191 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100192 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100192 + } + } + } + option = { + name = EVTOPTB100191 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100193 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100193 + } + } + } + option = { + name = EVTOPTC100191 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100194 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100194 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100192 + desc = EVTDESC100192 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100192 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_diplomacy = 1 + } +} + +#ROOT did not get help from friend +character_event = { + id = 100193 + desc = EVTDESC100193 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100193 + prestige = -15 + random = { + chance = 15 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + tooltip = { + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100194 + desc = EVTDESC100194 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100194 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100195 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100195 + } + } + } + option = { + name = EVTOPTB100194 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + set_character_flag = paid_diplomacy + character_event = { + id = 100195 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100195 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100195 + desc = EVTDESC100195 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100195 + trigger = { + NOT = { + has_character_flag = paid_diplomacy + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100195 + trigger = { + has_character_flag = paid_diplomacy + } + clr_character_flag = paid_diplomacy + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + } + } +} + +### My friend has much better martial stats than me, ask for help? ### +character_event = { + id = 100200 + desc = EVTDESC100200 + picture = GFX_evt_courtiers_talking + + only_men = yes + prisoner = no + min_age = 16 + capable_only = yes + war = no + friends = yes + + trigger = { + is_inaccessible_trigger = no + in_command = no + martial = 5 + NOT = { + martial = 10 + } + NOT = { + has_job_title = job_marshal + } + NOT = { + has_character_modifier = friend_martial_timer + } + NOT = { + trait = brilliant_strategist + } + any_friend = { + is_adult = yes + is_inaccessible_trigger = no + war = no + in_command = no + is_female = no + prisoner = no + is_incapable = no + OR = { + trait = duelist + martial = 11 + } + NOT = { + has_job_title = job_marshal + } + NOT = { + trait = misguided_warrior + } + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.5 + trait = misguided_warrior + } + modifier = { + factor = 2 + trait = tough_soldier + } + modifier = { + factor = 100 + trait = skilled_tactician + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = friend_martial_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100200 + random_friend = { + limit = { + is_adult = yes + war = no + in_command = no + prisoner = no + is_female = no + is_incapable = no + OR = { + trait = duelist + martial = 11 + } + NOT = { + trait = misguided_warrior + } + NOT = { + has_job_title = job_marshal + } + is_inaccessible_trigger = no + } + character_event = { + id = 100201 + days = 15 + random = 15 + tooltip = EVTTOOLTIP100201 + } + } + } + option = { + name = EVTOPTB100200 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + trait = diligent + NOT = { + trait = ambitious + } + } + add_trait = ambitious + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + trait = ambitious + NOT = { + trait = diligent + } + } + add_trait = diligent + } + if = { + limit = { + trait = diligent + trait = ambitious + } + prestige = 10 + } + } +} + +#Friend is asked by ROOT for help +character_event = { + id = 100201 + desc = EVTDESC100201 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100201 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100202 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100202 + } + } + } + option = { + name = EVTOPTB100201 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100203 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100203 + } + } + } + option = { + name = EVTOPTC100201 + FROM = { + character_event = { + id = 100204 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100204 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100202 + desc = EVTDESC100202 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100202 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_martial = 1 + } +} + +#ROOT did not get help from friend +character_event = { + id = 100203 + desc = EVTDESC100203 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100203 + tooltip = { + opinion = { + modifier = opinion_very_disappointed + who = ROOT + years = 5 + } + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100204 + desc = EVTDESC100204 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100204 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100205 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100205 + } + } + } + option = { + name = EVTOPTB100204 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + change_martial = 1 + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + set_character_flag = paid_martial + character_event = { + id = 100205 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100205 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100205 + desc = EVTDESC100205 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100205 + trigger = { + NOT = { + has_character_flag = paid_martial + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100205 + trigger = { + has_character_flag = paid_martial + } + clr_character_flag = paid_martial + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + tooltip = { + character_event = { + id = 100205 + tooltip = EVTTOOLTIPC100205 + } + } + } + } +} + +### My friend has much better stewardship stats than me, ask for help? ### +character_event = { + id = 100210 + desc = EVTDESC100210 + picture = GFX_evt_courtiers_talking + + prisoner = no + min_age = 16 + capable_only = yes + friends = yes + war = no + + trigger = { + is_inaccessible_trigger = no + in_command = no + stewardship = 5 + is_abroad = no + NOT = { + stewardship = 10 + } + OR = { + is_ruler = yes + is_councillor = yes + } + NOT = { + has_character_modifier = friend_stewardship_timer + } + location = { + NOT = { + has_province_modifier = friendly_innovations + } + } + any_friend = { + war = no + in_command = no + prisoner = no + stewardship = 11 + OR = { + is_ruler = yes + is_councillor = yes + } + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = friend_stewardship_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100210 + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + stewardship = 11 + OR = { + is_ruler = yes + is_councillor = yes + } + is_inaccessible_trigger = no + } + character_event = { + id = 100211 + days = 15 + random = 15 + tooltip = EVTTOOLTIP100211 + } + } + } + option = { + name = EVTOPTB100210 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = ambitious + } + } + add_trait = ambitious + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = diligent + } + } + add_trait = diligent + } + if = { + limit = { + OR = { + AND = { + trait = diligent + trait = ambitious + } + num_of_traits = 4 + } + } + prestige = 10 + } + } +} + +#Friend is asked by ROOT for help +character_event = { + id = 100211 + desc = EVTDESC100211 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100211 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100212 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100212 + } + } + } + option = { + name = EVTOPTB100211 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100213 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100213 + } + } + } + option = { + name = EVTOPTC100211 + FROM = { + character_event = { + id = 100214 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100214 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100212 + desc = EVTDESC100212 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100212 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_stewardship = 1 + location = { + add_province_modifier = { + name = friendly_innovations + duration = 1460 + } + } + } +} + +#ROOT did not get help from friend +character_event = { + id = 100213 + desc = EVTDESC100213 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100213 + tooltip = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100214 + desc = EVTDESC100214 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100214 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100215 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100215 + } + } + } + option = { + name = EVTOPTB100214 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + change_stewardship = 1 + location = { + add_province_modifier = { + name = friendly_innovations + duration = 730 + } + } + FROM = { + set_character_flag = paid_stewardship + character_event = { + id = 100215 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100215 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100215 + desc = EVTDESC100215 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100215 + trigger = { + NOT = { + has_character_flag = paid_stewardship + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100215 + trigger = { + has_character_flag = paid_stewardship + } + clr_character_flag = paid_stewardship + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + } + } +} + +### My friend has much better intrigue stats than me, ask for help? ### +character_event = { + id = 100220 + desc = EVTDESC100220 + picture = GFX_evt_courtiers_talking + + prisoner = no + min_age = 16 + capable_only = yes + war = no + friends = yes + + trigger = { + is_inaccessible_trigger = no + in_command = no + intrigue = 5 + NOT = { + intrigue = 10 + } + NOT = { + has_character_modifier = friend_intrigue_timer + } + any_friend = { + war = no + in_command = no + prisoner = no + intrigue = 11 + NOT = { has_job_title = job_spymaster } + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = friend_intrigue_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100220 + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + intrigue = 11 + NOT = { has_job_title = job_spymaster } + is_inaccessible_trigger = no + } + character_event = { + id = 100221 + days = 15 + random = 15 + tooltip = EVTTOOLTIP100221 + } + } + } + option = { + name = EVTOPTB100220 + if = { + limit = { + trait = paranoid + } + remove_trait = paranoid + } + if = { + limit = { + trait = temperate + } + remove_trait = temperate + } + if = { + limit = { + NOT = { + trait = temperate + } + NOT = { + trait = paranoid + } + } + prestige = 10 + } + random = { + chance = 10 + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + hidden_tooltip = { + character_event = { + id = 38290 + } + } + } + } +} + +#Friend is asked by ROOT for help +character_event = { + id = 100221 + desc = EVTDESC100221 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100221 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100222 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100222 + } + } + } + option = { + name = EVTOPTB100221 + random = { + chance = 10 + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + hidden_tooltip = { + character_event = { + id = 38290 + } + } + } + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100223 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100223 + } + } + } + option = { + name = EVTOPTC100221 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + trait = greedy + } + modifier = { + factor = 0.1 + trait = charitable + } + } + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100224 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100224 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100222 + desc = EVTDESC100222 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100222 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_intrigue = 1 + } +} + +#ROOT did not get help from friend +character_event = { + id = 100223 + desc = EVTDESC100223 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100223 + tooltip = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = paranoid + } + } + add_trait = paranoid + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100224 + desc = EVTDESC100224 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100224 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100225 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100225 + } + } + } + option = { + name = EVTOPTB100224 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + set_character_flag = paid_intrigue + character_event = { + id = 100225 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100225 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100225 + desc = EVTDESC100225 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100225 + trigger = { + NOT = { + has_character_flag = paid_intrigue + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100225 + trigger = { + has_character_flag = paid_intrigue + } + clr_character_flag = paid_intrigue + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + character_event = { + id = 100226 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100226 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100226 + desc = EVTDESC100226 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100226 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_intrigue = 1 + } +} + +### My friend has much better learning stats than me, ask for help? ### +character_event = { + id = 100230 + desc = EVTDESC100230 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + prisoner = no + min_age = 16 + capable_only = yes + war = no + friends = yes + + trigger = { + in_command = no + learning = 5 + NOT = { + learning = 10 + } + NOT = { + has_character_modifier = friend_learning_timer + } + NOT = { + has_character_modifier = pious_priests + } + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + prisoner = no + learning = 11 + OR = { + piety = 100 + trait = zealous + } + religion = ROOT + is_heretic = no + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 80 + + modifier = { + factor = 0.5 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = trusting + } + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = friend_learning_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100230 + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + learning = 11 + is_inaccessible_trigger = no + } + character_event = { + id = 100231 + days = 15 + random = 15 + tooltip = EVTTOOLTIP100231 + } + } + } + option = { + name = EVTOPTB100230 + piety = 10 + } +} + +#Friend is asked by ROOT for help +character_event = { + id = 100231 + desc = EVTDESC100231 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA100231 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100232 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100232 + } + } + } + option = { + name = EVTOPTB100231 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100233 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100233 + } + } + } + option = { + name = EVTOPTC100231 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100234 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100234 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100232 + desc = EVTDESC100232 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA100232 + trigger = { + NOT = { + has_character_flag = paid_advice + } + } + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_learning = 1 + add_character_modifier = { + name = pious_priests + duration = 1095 + } + } + option = { + name = EVTOPTB100232 + trigger = { + has_character_flag = paid_advice + } + clr_character_flag = paid_advice + tooltip = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + change_learning = 1 + add_character_modifier = { + name = pious_priests + duration = 1095 + } + } +} + +#ROOT did not get help from friend +character_event = { + id = 100233 + desc = EVTDESC100233 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA100233 + tooltip = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = stressed + } + } + add_trait = stressed + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100234 + desc = EVTDESC100234 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA100234 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100235 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100235 + } + } + } + option = { + name = EVTOPTB100234 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + set_character_flag = paid_learning + character_event = { + id = 100235 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100235 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100235 + desc = EVTDESC100235 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA100235 + trigger = { + NOT = { + has_character_flag = paid_learning + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100235 + trigger = { + has_character_flag = paid_learning + } + clr_character_flag = paid_learning + FROM = { + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + set_character_flag = paid_advice + character_event = { + id = 100232 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100232 + } + } + } +} + +### My friend is celibate ### +character_event = { + id = 100240 + desc = EVTDESC100240 + picture = GFX_evt_courtiers_talking + + min_age = 23 + capable_only = yes + prisoner = no + war = no + friends = yes + + trigger = { + in_command = no + NOT = { + uses_decadence = yes + } + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + num_of_children = 2 + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + prisoner = no + trait = celibate + same_sex = ROOT + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = chaste + } + + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = lustful + } + } + + immediate = { + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + trait = celibate + same_sex = ROOT + is_inaccessible_trigger = no + } + save_event_target_as = celibate_friend + } + } + + option = { + name = EVTOPTA100240 + event_target:celibate_friend = { + character_event = { + id = 100241 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100241 + } + } + } + option = { + name = EVTOPTB100240 + event_target:celibate_friend = { + tooltip = { + opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + character_event = { + id = 100242 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100242 + } + } + } + option = { + name = EVTOPTC100240 + prestige = 5 + if = { + limit = { + trait = lustful + } + hidden_tooltip = { + character_event = { + id = 5061 #Hedonism + days = 30 + random = 30 + } + } + } + } +} + +#Friend is asked by ROOT about Celibacy +character_event = { + id = 100241 + desc = EVTDESC100241 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA100241 + FROM = { + opinion = { + modifier = opinion_sad + who = ROOT + years = 2 + } + character_event = { + id = 100243 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100243 + } + } + } + option = { + name = EVTOPTB100241 + FROM = { + character_event = { + id = 100244 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100244 + } + } + } +} + +#Friend is irritated about ROOT bedraggling his/her lifestyle +character_event = { + id = 100242 + desc = EVTDESC100242 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA100242 + opinion = { + modifier = opinion_irritated + who = FROM + years = 5 + } + } +} + +#ROOT is discouraged by friend +character_event = { + id = 100243 + desc = EVTDESC100243 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA100243 + opinion = { + modifier = opinion_sad + who = FROM + years = 2 + } + } +} + +#ROOT is told about celibacy by friend +character_event = { + id = 100244 + desc = EVTDESC100244 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA100244 + character_event = { + id = 5062 + days = 7 + random = 7 + tooltip = EVTTOOLTIP5062 #Onwards - to celibacy! + } + } + option = { + name = EVTOPTB100243 + prestige = 5 + } +} + +### My friend is a hedonist ### +character_event = { + id = 100250 + desc = EVTDESC100250 + picture = GFX_evt_feast + + min_age = 23 + capable_only = yes + prisoner = no + war = no + friends = yes + + trigger = { + in_command = no + NOT = { + uses_decadence = yes + } + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + num_of_children = 2 + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + prisoner = no + trait = hedonist + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 2 + trait = ambitious + } + modifier = { + factor = 2 + trait = chaste + } + + modifier = { + factor = 0.5 + trait = slothful + } + modifier = { + factor = 0.5 + trait = lustful + } + } + + immediate = { + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + trait = hedonist + is_inaccessible_trigger = no + } + save_event_target_as = hedonist_friend + } + } + + + option = { + name = EVTOPTA100250 + event_target:hedonist_friend = { + character_event = { + id = 100251 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100251 + } + } + } + option = { + name = EVTOPTB100250 + event_target:hedonist_friend = { + tooltip = { + opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + character_event = { + id = 100252 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100252 + } + } + } + option = { + name = EVTOPTC100250 + prestige = 5 + if = { + limit = { + trait = chaste + NOT = { + uses_decadence = yes + } + } + hidden_tooltip = { + character_event = { + id = 5060 #Celibacy/Hedonism + days = 30 + random = 30 + } + } + } + if = { + limit = { + trait = chaste + uses_decadence = yes + } + hidden_tooltip = { + character_event = { + id = 5070 #Hedonism/Poetry + days = 30 + random = 30 + } + } + } + } +} + +#Friend is asked by ROOT about hedonism +character_event = { + id = 100251 + desc = EVTDESC100251 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100251 + FROM = { + opinion = { + modifier = opinion_confused + who = ROOT + years = 2 + } + character_event = { + id = 100253 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100253 + } + } + } + option = { + name = EVTOPTB100251 + FROM = { + character_event = { + id = 100254 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100254 + } + } + } +} + +#Friend is irritated about ROOT bedraggling his/her lifestyle +character_event = { + id = 100252 + desc = EVTDESC100252 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100252 + opinion = { + modifier = opinion_irritated + who = FROM + years = 2 + } + } +} + +#ROOT is discouraged by friend +character_event = { + id = 100253 + desc = EVTDESC100253 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100253 + opinion = { + modifier = opinion_confused + who = FROM + years = 2 + } + } +} + +#ROOT is told about hedonism by friend +character_event = { + id = 100254 + desc = EVTDESC100254 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100254 + character_event = { + id = 5061 #Hedonism + days = 7 + random = 7 + tooltip = EVTTOOLTIP5061 #Onwards - to hedonism! + } + } + option = { + name = EVTOPTB100253 + prestige = 5 + } +} + +### My friend is a scholar ### +character_event = { + id = 100260 + desc = EVTDESC100260 + picture = GFX_evt_library + border = GFX_event_normal_frame_religion + + min_age = 23 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + friends = yes + + trigger = { + in_command = no + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + #num_of_children = 1 + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + prisoner = no + trait = scholar + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + learning = 15 + } + + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = content + } + } + + immediate = { + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + trait = scholar + is_inaccessible_trigger = no + } + save_event_target_as = scholar_friend + } + } + + option = { + name = EVTOPTA100260 + event_target:scholar_friend = { + character_event = { + id = 100261 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100261 + } + } + } + option = { + name = EVTOPTB100260 + event_target:scholar_friend = { + tooltip = { + opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + character_event = { + id = 100262 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100262 + } + } + } + option = { + name = EVTOPTC100260 + prestige = 5 + if = { + limit = { + learning = 15 + } + hidden_tooltip = { + character_event = { + id = 5000 #Scholar/Mystic + days = 30 + random = 30 + } + } + } + } +} + + +#Friend is asked by ROOT about being a scholar +character_event = { + id = 100261 + desc = EVTDESC100261 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA100261 + FROM = { + opinion = { + modifier = opinion_sad + who = ROOT + years = 2 + } + character_event = { + id = 100263 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100263 + } + } + } + option = { + name = EVTOPTB100261 + FROM = { + character_event = { + id = 100264 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100264 + } + } + } +} + +#Friend is irritated about ROOT bedraggling his/her lifestyle +character_event = { + id = 100262 + desc = EVTDESC100262 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA100262 + opinion = { + modifier = opinion_irritated + who = FROM + years = 2 + } + } +} + +#ROOT is discouraged by friend +character_event = { + id = 100263 + desc = EVTDESC100263 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA100263 + tooltip = { + opinion = { + modifier = opinion_sad + who = FROM + years = 2 + } + } + } +} + +#ROOT is told about about scholar by friend +character_event = { + id = 100264 + desc = EVTDESC100264 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA100264 + character_event = { + id = 5000 + days = 7 + random = 7 + tooltip = EVTTOOLTIP5000 #Scholar/Mystic! + } + } + option = { + name = EVTOPTB100263 + prestige = 5 + } +} + +### I don't recognize my friend anymore, I don't know if we really are friends... ### +character_event = { + id = 100350 + desc = EVTDESC100350 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + prisoner = no + capable_only = yes + war = no + friends = yes + + trigger = { + in_command = no + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + prisoner = no + OR = { + AND = { + trait = cruel + ROOT = { NOT = { trait = cruel } } + } + AND = { + trait = deceitful + ROOT = { NOT = { trait = deceitful } } + } + AND = { + trait = wroth + ROOT = { NOT = { trait = wroth } } + } + NOT = { + reverse_opinion = { who = ROOT value = 0 } + } + } + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_not_abandon_friendship } + } + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 1000 + + modifier = { + factor = 4 + trait = gregarious + } + modifier = { + factor = 4 + trait = trusting + } + + modifier = { + factor = 0.5 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = shy + } + } + + immediate = { + random_friend = { + limit = { + war = no + in_command = no + prisoner = no + OR = { + NOT = { + reverse_opinion = { who = ROOT value = 0 } + } + AND = { + trait = cruel + ROOT = { NOT = { trait = cruel } } + } + AND = { + trait = deceitful + ROOT = { NOT = { trait = deceitful } } + } + AND = { + trait = wroth + ROOT = { NOT = { trait = wroth } } + } + } + is_inaccessible_trigger = no + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_not_abandon_friendship } } + } + save_event_target_as = mean_friend + } + } + + option = { + name = EVTOPTA100350 + event_target:mean_friend = { + remove_friend = ROOT + character_event = { + id = 100351 + tooltip = EVTTOOLTIP100351 + } + } + } + option = { + name = EVTOPTB100350 + event_target:mean_friend = { + character_event = { + id = 100352 + tooltip = EVTTOOLTIP100352 + } + } + } + option = { + name = EVTOPTC100350 + event_target:mean_friend = { + reverse_opinion = { + modifier = opinion_glad + who = ROOT + years = 2 + } + } + } +} + +#Friend is notified about ROOT's feelings +character_event = { + id = 100351 + desc = EVTDESC100351 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100351 + remove_friend = FROM + } + option = { + name = EVTOPTB100351 + add_rival = FROM + FROM = { + character_event = { + id = 100353 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100353 + } + } + } +} + +#Friend is notified about ROOT's feelings +character_event = { + id = 100352 + desc = EVTDESC100352 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100352 + remove_friend = FROM + FROM = { + set_character_flag = friends_nomore + character_event = { + id = 100353 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100353 + } + } + } + option = { + name = EVTOPTB100352 + reverse_opinion = { + modifier = opinion_not_abandon_friendship + who = FROM + years = 100 + } + FROM = { + character_event = { + id = 100354 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100354 + } + } + } +} + +#ROOT is notified about Friend's feelings +character_event = { + id = 100353 + desc = EVTDESC100353 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100353 + trigger = { + NOT = { + has_character_flag = friends_nomore + } + } + add_rival = FROM + } + option = { + name = EVTOPTB100353 + trigger = { + has_character_flag = friends_nomore + } + clr_character_flag = friends_nomore + remove_friend = FROM + } +} + +#Friend is notified about ROOT's feelings +character_event = { + id = 100354 + desc = EVTDESC100354 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100354 + reverse_opinion = { + modifier = opinion_not_abandon_friendship + who = FROM + years = 5 + } + tooltip = { + opinion = { + modifier = opinion_not_abandon_friendship + who = FROM + years = 5 + } + } + } +} + +################################################## +# RIVALRY EVENTS # +################################################## + +### My friend's rival tried to kill/maim/wound him/her! ### +character_event = { + id = 100400 + desc = EVTDESC100400 + picture = GFX_evt_courtiers_talking + + min_age = 16 + only_men = yes + prisoner = no + capable_only = yes + war = no + friends = yes + + trigger = { + in_command = no + martial = 10 + is_inaccessible_trigger = no + any_friend = { + war = no + in_command = no + num_of_rivals = 1 + is_female = no + prisoner = no + NOT = { + martial = 10 + } + OR = { + trait = wounded + is_maimed_trigger = yes + } + is_inaccessible_trigger = no + any_rival = { + war = no + in_command = no + is_female = no + prisoner = no + NOT = { + any_friend = { + character = ROOT + } + } + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + is_inaccessible_trigger = no + } + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 0.5 + trait = brave + } + + modifier = { + factor = 3 + trait = craven + } + } + + immediate = { + random_friend = { + limit = { + war = no + in_command = no + num_of_rivals = 1 + is_female = no + prisoner = no + NOT = { martial = 10 } + OR = { + trait = wounded + is_maimed_trigger = yes + } + is_inaccessible_trigger = no + + any_rival = { + war = no + in_command = no + is_female = no + prisoner = no + NOT = { + any_friend = { + character = ROOT + } + } + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + is_inaccessible_trigger = no + } + } + save_event_target_as = friend_in_danger + + random_rival = { + limit = { + war = no + in_command = no + is_female = no + prisoner = no + NOT = { + any_friend = { + character = ROOT + } + } + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + is_inaccessible_trigger = no + } + + save_event_target_as = rival_of_friend + } + } + } + + option = { + name = EVTOPTA100400 + event_target:rival_of_friend = { + tooltip = { + random_list = { + 80 = { + } + 10 = { + add_trait = wounded + } + 10 = { + add_maimed_trait_effect = yes + } + } + } + add_rival = ROOT + character_event = { + id = 100401 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100401 + } + } + } + option = { + name = EVTOPTB100400 + event_target:rival_of_friend = { + set_character_flag = friendly_rival + character_event = { + id = 100401 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100401 + } + } + } + option = { + name = EVTOPTC100400 + event_target:friend_in_danger = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100402 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100402 + } + } + } +} + +#Friend's rival is notified +character_event = { + id = 100401 + desc = EVTDESC100401 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100401 + if = { + limit = { + NOT = { + has_character_flag = friendly_rival + } + } + random_list = { + 60 = { + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + 10 = { + add_maimed_trait_effect = yes + } + } + } + if = { + limit = { + has_character_flag = friendly_rival + } + clr_character_flag = friendly_rival + } + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + } +} + +#Friend is notified about ROOT doing nothing +character_event = { + id = 100402 + desc = EVTDESC100402 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100402 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 100 + } + } +} + +### I ask permission to challenge my rival into a duel ### +character_event = { + id = 100410 + desc = EVTDESC100410 + picture = GFX_evt_emissary + + only_men = yes + min_age = 16 + max_age = 60 + capable_only = yes + prisoner = no + war = no + rivals = yes + + trigger = { + liege = { + war = no + } + in_command = no + independent = no + NOR = { + religion = jain + trait = wounded + is_maimed_trigger = yes + is_inaccessible_trigger = yes + has_character_flag = do_not_disturb + trait = infirm + trait = has_aztec_disease + trait = has_small_pox + trait = has_measles + trait = has_bubonic_plague + trait = has_typhus + trait = has_typhoid_fever + trait = has_tuberculosis + trait = leper + trait = pneumonic + } + any_rival = { + is_female = no + war = no + in_command = no + prisoner = no + age = 16 + same_liege = ROOT + NOR = { + age = 60 + trait = wounded + is_maimed_trigger = yes + has_character_flag = duel_rival + is_inaccessible_trigger = yes + has_character_flag = do_not_disturb + trait = incapable + trait = infirm + trait = has_aztec_disease + trait = has_small_pox + trait = has_measles + trait = has_bubonic_plague + trait = has_typhus + trait = has_typhoid_fever + trait = has_tuberculosis + trait = leper + trait = pneumonic + liege = { + character = ROOT + } + any_vassal = { character = ROOT } + AND = { + has_dlc = "Way of Life" + OR = { + has_opinion_modifier = { + who = ROOT + modifier = opinion_fought_duel + } + ROOT = { + has_opinion_modifier = { + who = PREV + modifier = opinion_fought_duel + } + has_opinion_modifier = { + who = PREV + modifier = opinion_fled_duel + } + } + } + } + } + } + } + + mean_time_to_happen = { + months = 1500 + + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 0.5 + trait = cruel + } + + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + liege = { + realm_size = 100 + } + } + modifier = { + factor = 2 + liege = { + realm_size = 150 + } + } + } + + immediate = { + random_rival = { + limit = { + is_female = no + war = no + in_command = no + prisoner = no + age = 16 + same_liege = ROOT + NOR = { + age = 60 + trait = wounded + is_maimed_trigger = yes + has_character_flag = duel_rival + is_inaccessible_trigger = yes + has_character_flag = do_not_disturb + trait = incapable + trait = infirm + trait = has_aztec_disease + trait = has_small_pox + trait = has_measles + trait = has_bubonic_plague + trait = has_typhus + trait = has_typhoid_fever + trait = has_tuberculosis + trait = leper + trait = pneumonic + liege = { + character = THIS + } + AND = { + has_dlc = "Way of Life" + OR = { + has_opinion_modifier = { + who = ROOT + modifier = opinion_fought_duel + } + ROOT = { + has_opinion_modifier = { + who = PREV + modifier = opinion_fought_duel + } + has_opinion_modifier = { + who = PREV + modifier = opinion_fled_duel + } + } + } + } + } + } + save_event_target_as = duel_rival + } + } + + option = { + name = EVTOPTA100410 + ai_chance = { + factor = 10 + + modifier = { + factor = 5 + trait = brave + } + modifier = { + factor = 5 + trait = just + } + + modifier = { + factor = 0.01 + trait = kind + } + } + event_target:duel_rival = { + set_character_flag = duel_rival + tooltip = { + character_event = { + id = 100411 + tooltip = EVTTOOLTIPA100411 + } + } + } + liege = { + character_event = { + id = 100411 + days = 2 + random = 10 + tooltip = EVTTOOLTIPB100411 + } + } + } + option = { + name = EVTOPTB100410 + if = { + limit = { + NOR = { + num_of_traits = 5 + trait = craven + } + } + random = { + chance = 25 + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } +} + +#Liege decides if ROOT is allowed to duel +character_event = { + id = 100411 + desc = EVTDESC100411 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA100411 + ai_chance = { + factor = 49 + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + if = { + limit = { + NOT = { + has_dlc = "Way of Life" + } + } + character_event = { + id = 100412 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100412 + } + event_target:duel_rival = {} + break = yes + } + event_target:duel_rival = { + character_event = { + id = WoL.11000 + } + } + } + } + option = { + name = EVTOPTB100411 + ai_chance = { + factor = 50 + } + FROM = { + opinion = { + modifier = opinion_very_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100413 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100413 + } + } + } + option = { + name = EVTOPTC100411 + ai_chance = { + factor = 1 + + modifier = { + factor = 0.01 + is_ruler = yes + } + } + tooltip = { + FROM = { + banish = yes + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100414 + days = 7 + random = 7 + } + } + } + } +} + +#Liege allows it +character_event = { + id = 100412 + desc = EVTDESC100412 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA100412 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = FROM + years = 5 + } + } + event_target:duel_rival = { + clr_character_flag = duel_rival + if = { + limit = { + NOT = { + combat_rating = 1 + } + ROOT = { + combat_rating = 1 + } + } + random = { + chance = 10 + add_trait = wounded + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + if = { + limit = { + combat_rating = 1 + ROOT = { + NOT = { + combat_rating = 1 + } + } + } + ROOT = { + random = { + chance = 10 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + random_rival = { + limit = { + has_character_flag = duel_rival + } + clr_character_flag = duel_rival + tooltip = { + opinion = { + modifier = opinion_revenge_seeker + who = ROOT + years = 50 + } + } + if = { + limit = { + combat_rating = 1 + NOT = { + combat_rating = 2 + } + ROOT = { + combat_rating = 1 + NOT = { + combat_rating = 2 + } + } + } + random = { + chance = 15 + add_trait = wounded + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + if = { + limit = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + ROOT = { + combat_rating = 1 + NOT = { + combat_rating = 2 + } + } + } + ROOT = { + random = { + chance = 15 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + if = { + limit = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + ROOT = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + } + } + random = { + chance = 20 + add_trait = wounded + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + if = { + limit = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + ROOT = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + } + } + ROOT = { + random = { + chance = 20 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + if = { + limit = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + ROOT = { + combat_rating = 4 + } + } + random = { + chance = 25 + add_trait = wounded + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + if = { + limit = { + combat_rating = 4 + ROOT = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + } + } + ROOT = { + random = { + chance = 25 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100415 + tooltip = EVTTOOLTIP100415 + } + } + } + } + option = { + name = EVTOPTB100412 + prestige = -10 + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = FROM + years = 5 + } + } + } +} + +#Liege disallows it +character_event = { + id = 100413 + desc = EVTDESC100413 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA100413 + tooltip = { + opinion = { + modifier = opinion_very_disappointed + who = FROM + years = 5 + } + } + } +} + +#Liege banish you! +character_event = { + id = 100414 + desc = EVTDESC100414 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA100414 + banish = yes + tooltip = { + opinion = { + modifier = opinion_very_disappointed + who = FROM + years = 5 + } + } + } +} + +#Rival is beaten? +character_event = { + id = 100415 + desc = EVTDESC100415 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA100415 + trigger = { + trait = wounded + NOT = { + FROM = { + trait = wounded + } + } + } + tooltip = { + add_trait = wounded + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 50 + } + } + option = { + name = EVTOPTB100415 + trigger = { + NOT = { + trait = wounded + } + NOT = { + FROM = { + trait = wounded + } + } + } + } + option = { + name = EVTOPTC100415 + trigger = { + FROM = { + trait = wounded + } + } + tooltip = { + FROM = { + add_trait = wounded + } + } + reverse_opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 50 + } + } +} + +### Accuse rival of cheating in tournament ### +character_event = { + id = 100420 + desc = EVTDESC100420 + picture = GFX_evt_joust + + min_age = 16 + capable_only = yes + only_rulers = yes + only_men = yes + prisoner = no + has_character_flag = attending_tournament + war = no + rivals = yes + + trigger = { + in_command = no + is_inaccessible_trigger = no + any_rival = { + war = no + in_command = no + is_female = no + same_liege = ROOT + prisoner = no + NOT = { + liege = { + character = ROOT + } + } + has_character_flag = attending_tournament + is_inaccessible_trigger = no + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 3 + trait = honest + } + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 2 + trait = trusting + } + + modifier = { + factor = 0.5 + trait = deceitful + } + modifier = { + factor = 2 + trait = shy + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 0.5 + trait = paranoid + } + } + + immediate = { + random_rival = { + limit = { + war = no + in_command = no + same_liege = ROOT + prisoner = no + NOT = { + liege = { + character = ROOT + } + } + has_character_flag = attending_tournament + is_inaccessible_trigger = no + } + save_event_target_as = tournament_rival + } + } + + option = { + name = EVTOPTA100420 + event_target:tournament_rival = { + set_character_flag = tournament_cheater + } + liege = { + character_event = { + id = 100421 + days = 2 + random = 2 + tooltip = EVTTOOLTIP100421 + } + } + } + option = { + name = EVTOPTB100420 + event_target:tournament_rival = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 10 + } + character_event = { + id = 100422 + days = 2 + random = 2 + tooltip = EVTTOOLTIP100422 + } + } + } + option = { + name = EVTOPTC100420 + event_target:tournament_rival = { + reverse_opinion = { + modifier = opinion_disgraceful + who = ROOT + years = 10 + } + liege = { + any_vassal = { + limit = { + prisoner = no + NOT = { + liege = { + character = ROOT + } + } + NOT = { + character = ROOT + } + } + opinion = { + modifier = opinion_disgraceful + who = PREV + years = 10 + } + } + } + character_event = { + id = 100423 + days = 2 + random = 2 + tooltip = EVTTOOLTIP100423 + } + } + } + option = { + name = EVTOPTD100420 + prestige = -10 + } +} + +#Liege is told about cheating rival +character_event = { + id = 100421 + desc = EVTDESC100421 + picture = GFX_evt_joust + + is_triggered_only = yes + + option = { + name = EVTOPTA100421 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = just + } + } + random = { + chance = 20 + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + FROM = { + random_rival = { + limit = { + has_character_flag = tournament_cheater + } + clr_character_flag = tournament_cheater + clr_character_flag = attending_tournament + imprison = ROOT + character_event = { + id = 100424 + tooltip = EVTTOOLTIP100424 + } + } + set_character_flag = rival_imprisoned + hidden_tooltip = { + character_event = { + id = 100426 + days = 7 + random = 7 + } + } + } + } + option = { + name = EVTOPTB100421 + FROM = { + random_rival = { + limit = { + has_character_flag = tournament_cheater + } + clr_character_flag = tournament_cheater + clr_character_flag = attending_tournament + banish = yes + character_event = { + id = 100425 + tooltip = EVTTOOLTIP100425 + } + } + set_character_flag = rival_banished + hidden_tooltip = { + character_event = { + id = 100426 + days = 7 + random = 7 + } + } + } + } + option = { + name = EVTOPTC100421 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { + id = 100426 + days = 7 + random = 7 + } + } + } + } +} + +#Cheating rival is confronted +character_event = { + id = 100422 + desc = EVTDESC100422 + picture = GFX_evt_joust + + is_triggered_only = yes + + option = { + name = EVTOPTA100422 + tooltip = { + opinion = { + modifier = opinion_angry + who = FROM + years = 10 + } + } + } + option = { + name = EVTOPTB100422 + tooltip = { + opinion = { + modifier = opinion_angry + who = FROM + years = 10 + } + } + character_event = { + id = 100427 + days = 2 + random = 2 + tooltip = EVTTOOLTIP100427 + } + } +} + +#Cheating rival attempts to clear his name +character_event = { + id = 100423 + desc = EVTDESC100423 + picture = GFX_evt_joust + + is_triggered_only = yes + + option = { + name = EVTOPTA100423 + scaled_wealth = -0.25 + liege = { + any_vassal = { + limit = { + prisoner = no + has_opinion_modifier = { who = ROOT modifier = opinion_disgraceful } + } + remove_opinion = { who = ROOT modifier = opinion_disgraceful } + } + } + } + option = { + name = EVTOPTB100423 + prestige = -10 + } +} + +#Cheating rival is imprisoned by liege +character_event = { + id = 100424 + desc = EVTDESC100424 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOPTA100424 + tooltip = { + imprison = FROM + } + opinion = { + modifier = opinion_revenge_seeker + who = FROMFROM + years = 10 + } + } +} + +#Cheating rival is banished by liege +character_event = { + id = 100425 + desc = EVTDESC100425 + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = EVTOPTA100425 + tooltip = { + banish = yes + } + opinion = { + modifier = opinion_furious + who = FROMFROM + years = 10 + } + } +} + +#Liege banished/imprisoned/did nothing +character_event = { + id = 100426 + desc = EVTDESC100426 + picture = GFX_evt_joust + + is_triggered_only = yes + + option = { + name = EVTOPTA100426 + trigger = { + NOT = { + has_character_flag = rival_banished + } + NOT = { + has_character_flag = rival_imprisoned + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB100426 + trigger = { + has_character_flag = rival_imprisoned + NOT = { + has_character_flag = rival_banished + } + } + clr_character_flag = rival_imprisoned + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + } + option = { + name = EVTOPTC100426 + trigger = { + has_character_flag = rival_banished + NOT = { + has_character_flag = rival_imprisoned + } + } + clr_character_flag = rival_banished + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + } +} + +#ROOT is challenged to a duel +character_event = { + id = 100427 + desc = EVTDESC100427 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA100427 + FROM = { + if = { + limit = { + combat_rating = 1 + NOT = { + combat_rating = 2 + } + ROOT = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + } + } + random = { + chance = 15 + add_trait = wounded + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + } + if = { + limit = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + ROOT = { + combat_rating = 1 + NOT = { + combat_rating = 2 + } + } + } + ROOT = { + random = { + chance = 15 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + if = { + limit = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + ROOT = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + } + } + random = { + chance = 20 + add_trait = wounded + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + } + if = { + limit = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + ROOT = { + combat_rating = 2 + NOT = { + combat_rating = 3 + } + } + } + ROOT = { + random = { + chance = 20 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + if = { + limit = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + ROOT = { + combat_rating = 4 + } + } + random = { + chance = 25 + add_trait = wounded + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + } + if = { + limit = { + combat_rating = 4 + ROOT = { + combat_rating = 3 + NOT = { + combat_rating = 4 + } + } + } + ROOT = { + random = { + chance = 25 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + character_event = { + id = 100428 + tooltip = EVTTOOLTIP100428 + } + } + } + } + option = { + name = EVTOPTB100427 + prestige = -20 + reverse_opinion = { + modifier = opinion_coward + who = FROM + years = 10 + } + FROM = { + character_event = { + id = 100429 + tooltip = EVTTOOLTIP100429 + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = craven + } + } + add_trait = craven + } + } +} + +#Rival is beaten? +character_event = { + id = 100428 + desc = EVTDESC100428 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA100428 + trigger = { + trait = wounded + NOT = { + FROM = { + trait = wounded + } + } + } + tooltip = { + add_trait = wounded + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 50 + } + } + option = { + name = EVTOPTB100428 + trigger = { + NOT = { + trait = wounded + } + NOT = { + FROM = { + trait = wounded + } + } + } + prestige = 10 + } + option = { + name = EVTOPTC100428 + trigger = { + FROM = { + trait = wounded + } + } + tooltip = { + FROM = { + add_trait = wounded + } + } + reverse_opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 50 + } + prestige = 10 + } +} + +#Rival is disappointed in ROOT +character_event = { + id = 100429 + desc = EVTDESC100429 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA100429 + reverse_opinion = { + modifier = opinion_coward + who = FROM + years = 10 + } + } +} + +### Your fierce rival has embraced heretical ways ### +character_event = { + id = 100440 + desc = EVTDESC100440 + picture = GFX_evt_heretic + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + religion_group = christian + war = no + rivals = yes + + trigger = { + in_command = no + is_heretic = no + any_rival = { + war = no + age = 16 + is_female = no + in_command = no + prisoner = no + is_heresy_of = ROOT + NOT = { + trait = excommunicated + } + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = zealous + } + + modifier = { + factor = 2 + trait = cynical + } + } + + option = { + name = EVTOPTA100440 + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + prisoner = no + is_heresy_of = ROOT + NOT = { + trait = excommunicated + } + } + set_character_flag = rival_excommunicated_me + } + religion_head = { + character_event = { + id = 100441 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100441 + } + } + } + option = { + name = EVTOPTB100440 + piety = -10 + } + option = { + name = EVTOPTC100440 + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + prisoner = no + is_heresy_of = ROOT + NOT = { + trait = excommunicated + } + } + ROOT = { + random = { + chance = 20 + religion = PREV + hidden_tooltip = { + character_event = { + id = 100442 + } + } + } + } + } + } +} + +#Head of Religion decides whether or not to excommunicate +character_event = { + id = 100441 + desc = EVTDESC100441 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100441 + FROM = { + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + is_heresy_of = FROM + prisoner = no + has_character_flag = rival_excommunicated_me + } + clr_character_flag = rival_excommunicated_me + tooltip = { add_trait = excommunicated } + letter_event = { + id = 100443 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100443 + } + } + set_character_flag = excommunicated_rival + tooltip = { + letter_event = { + id = 100444 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100444 + } + } + } + } + option = { + name = EVTOPTB100441 + FROM = { + letter_event = { + id = 100445 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100445 + } + } + } +} + +#Root becomes a heretic! +character_event = { + id = 100442 + desc = EVTDESC100442 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100442 + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + prisoner = no + is_heresy_of = ROOT + NOT = { + trait = excommunicated + } + } + ROOT = { + religion = PREV + } + } + piety = -10 + } +} + +#Head of religion sends letter to excommunicated person +letter_event = { + id = 100443 + desc = EVTDESC100443 + + is_triggered_only = yes + + option = { + name = EVTOPTA100443 + add_trait = excommunicated + hidden_tooltip = { + random_courtier = { + limit = { + has_character_flag = excommunicated_rival + } + clr_character_flag = excommunicated_rival + letter_event = { + id = 100444 + days = 7 + random = 7 + } + } + } + } +} + +#Head of religion sends letter to ROOT +letter_event = { + id = 100444 + desc = EVTDESC100444 + + is_triggered_only = yes + + option = { + name = EVTOPTA100444 + piety = 10 + } +} + +#Head of religion sends letter to ROOT telling him/her no can do +letter_event = { + id = 100445 + desc = EVTDESC100445 + + is_triggered_only = yes + + option = { + name = EVTOPTA100445 + piety = -10 + } +} + +### Make your liege distrust your rival ### +character_event = { + id = 100450 + desc = EVTDESC100450 + picture = GFX_evt_throne_room + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + independent = no + any_rival = { + war = no + age = 16 + OR = { + AND = { + is_female = no + ROOT = { + is_female = no + } + } + AND = { + is_female = yes + ROOT = { + is_female = yes + } + } + } + in_command = no + same_liege = ROOT + prisoner = no + liege = { + NOT = { + character = ROOT + } + opinion = { who = ROOT value = 10 } + opinion = { who = PREV value = 10 } + } + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = wroth + } + + modifier = { + factor = 2 + trait = honest + } + } + + option = { + name = EVTOTPA100450 + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + same_liege = ROOT + prisoner = no + liege = { + NOT = { + character = ROOT + } + opinion = { who = ROOT value = 10 } + opinion = { who = PREV value = 10 } + } + } + set_character_flag = devious_rival + liege = { + character_event = { + id = 100451 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100451 + } + } + } + } + option = { + name = EVTOTPB100450 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = honest + } + } + random = { + chance = 10 + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + trait = honest + NOT = { + trait = content + } + } + random = { + chance = 10 + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + if = { + limit = { + OR = { + AND = { + trait = honest + trait = content + } + num_of_traits = 4 + } + } + prestige = 10 + } + } +} + +#Liege listens to you +character_event = { + id = 100451 + desc = EVTDESC100451 + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = EVTOTPA100451 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + trait = gregarious + } + } + FROM = { + random_rival = { + limit = { + has_character_flag = devious_rival + } + reverse_opinion = { + modifier = opinion_very_disappointed + who = ROOT + years = 5 + } + if = { + limit = { + is_friend = ROOT + } + remove_friend = ROOT + } + } + hidden_tooltip = { + set_character_flag = liege_believes + character_event = { + id = 100452 + days = 5 + random = 2 + } + } + } + } + + option = { + name = EVTOTPB100451 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + trait = gregarious + } + } + FROM = { + random_rival = { + limit = { + has_character_flag = devious_rival + } + clr_character_flag = devious_rival + } + reverse_opinion = { + modifier = opinion_liar + who = ROOT + years = 5 + } + character_event = { + id = 100452 + days = 5 + random = 2 + tooltip = EVTTOOLTIP100452 + } + } + } +} + +#ROOT gets the message: Liege does/not believe ROOT +character_event = { + id = 100452 + desc = EVTDESC100452 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100452 + trigger = { + has_character_flag = liege_believes + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + random_rival = { + limit = { + has_character_flag = devious_rival + } + character_event = { + id = 100453 + days = 5 + random = 2 + tooltip = EVTTOOLTIP100453 + } + } + } + option = { + name = EVTOPTB100452 + trigger = { + NOT = { + has_character_flag = liege_believes + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_liar + who = FROM + years = 5 + } + } + } +} + +#Liege does not like ROOT's Rival +character_event = { + id = 100453 + desc = EVTDESC100453 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA100453 + clr_character_flag = devious_rival + if = { + limit = { + is_friend = FROMFROM + } + remove_friend = FROMFROM + } + reverse_opinion = { + modifier = opinion_very_disappointed + who = FROMFROM + years = 5 + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 10 + } + } +} + +### My rival is homosexual! ### +character_event = { + id = 100460 + desc = EVTDESC100460 + picture = GFX_evt_scandal + + min_age = 16 + capable_only = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + any_rival = { + war = no + age = 16 + in_command = no + prisoner = no + is_ruler = yes + OR = { + AND = { + is_female = no + ROOT = { + is_female = no + } + } + AND = { + is_female = yes + ROOT = { + is_female = yes + } + } + } + trait = homosexual + num_of_vassals = 1 + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = cruel + } + modifier = { + factor = 0.5 + trait = wroth + } + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + trait = charitable + } + } + + option = { + name = EVTOTPA100460 + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + is_ruler = yes + OR = { + AND = { + is_female = no + ROOT = { + is_female = no + } + } + AND = { + is_female = yes + ROOT = { + is_female = yes + } + } + } + prisoner = no + trait = homosexual + } + any_vassal = { + limit = { + NOT = { + trait = homosexual + } + } + opinion = { + modifier = opinion_lost_respect + who = PREV + years = 5 + } + } + character_event = { + id = 100461 + tooltip = EVTTOOLTIP100461 + } + } + } + option = { + name = EVTOTPB100460 + if = { + limit = { + NOT = { + num_of_traits = 5 + } + NOT = { + trait = kind + } + } + random = { + chance = 10 + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = kind + NOT = { + trait = patient + } + } + random = { + chance = 10 + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + if = { + limit = { + trait = kind + trait = patient + } + piety = 10 + } + } + option = { + name = EVTOTPC100460 + tooltip_info = homosexual + trigger = { + trait = homosexual + } + random_rival = { + limit = { + war = no + age = 16 + is_female = no + in_command = no + is_ruler = yes + prisoner = no + trait = homosexual + OR = { + AND = { + is_female = no + ROOT = { + is_female = no + } + } + AND = { + is_female = yes + ROOT = { + is_female = yes + } + } + } + } + remove_rival = ROOT + character_event = { + id = 100462 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100462 + } + } + } +} + +#Rival is told about ROOT spreading rumours +character_event = { + id = 100461 + desc = EVTDESC100461 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA100461 + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 10 + } + } +} + +#No longer rivals +character_event = { + id = 100462 + desc = EVTDESC100462 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100462 + remove_rival = FROM + opinion = { + modifier = opinion_very_grateful + who = FROM + years = 10 + } + } +} + +### A rival of yours is so much beneath you that it seems a bit silly of you to hold him as an enemy ### +character_event = { + id = 100470 + desc = EVTDESC100470 + picture = GFX_evt_courtiers_talking + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + NOT = { + has_character_modifier = recalculate_rivalry_modifier + } + any_rival = { + war = no + age = 16 + in_command = no + is_ruler = yes + prisoner = no + same_sex = ROOT + lower_tier_than = ROOT + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 2 + trait = wroth + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = recalculate_rivalry_modifier + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100470 + random_rival = { + limit = { + war = no + age = 16 + in_command = no + is_ruler = yes + prisoner = no + same_sex = ROOT + lower_tier_than = ROOT + } + remove_rival = ROOT + if = { + limit = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + reverse_remove_opinion = { who = ROOT modifier = opinion_revenge_seeker } + } + hidden_tooltip = { + character_event = { + id = 100471 + days = 7 + random = 7 + } + } + } + } + option = { + name = EVTOPTB100470 + prestige = 10 + } +} + +#Rivals are no longer rivals? +character_event = { + id = 100471 + desc = EVTDESC100471 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100471 + remove_rival = FROM + } + option = { + name = EVTOPTB100471 + FROM = { + character_event = { + id = 100472 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100472 + } + } + } +} + +#Rivalry continues +character_event = { + id = 100472 + desc = EVTDESC100472 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100472 + add_rival = FROM + } +} + +### Your rivalry to your liege is straining your commitment to your feudal duties ### +character_event = { + id = 100480 + desc = EVTDESC100480 + picture = GFX_evt_courtiers_talking + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + independent = no + liege = { + war = no + age = 16 + in_command = no + prisoner = no + num_of_rivals = 1 + any_rival = { + character = ROOT + } + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = diligent + } + + modifier = { + factor = 2 + trait = envious + } + } + + option = { + name = EVTOPTA100480 + any_liege = { + limit = { + war = no + age = 16 + in_command = no + num_of_rivals = 1 + prisoner = no + any_rival = { + character = ROOT + } + } + opinion = { + modifier = opinion_stubborn_rival + who = ROOT + years = 10 + } + } + } + option = { + name = EVTOPTB100480 + any_liege = { + limit = { + war = no + age = 16 + in_command = no + num_of_rivals = 1 + prisoner = no + any_rival = { + character = ROOT + } + } + reverse_opinion = { + modifier = opinion_respects_liege + who = ROOT + years = 10 + } + } + } + option = { + name = EVTOPTC100480 + any_liege = { + limit = { + war = no + age = 16 + in_command = no + num_of_rivals = 1 + prisoner = no + any_rival = { + character = ROOT + } + } + remove_rival = ROOT + letter_event = { + id = 100481 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100481 + } + } + } +} + +#ROOT and Liege are no longer Rivals +letter_event = { + id = 100481 + desc = EVTDESC100481 + + is_triggered_only = yes + + option = { + name = EVTOPTA100481 + remove_rival = FROM + } +} + +### You have been made aware that your fierce rival is planning rebellious acts ### +#character_event = { +# id = 100490 +# desc = EVTDESC100490 +# picture = GFX_evt_council +# +# min_age = 16 +# capable_only = yes +# only_rulers = yes +# prisoner = no +# war = no +# rivals = yes +# +# trigger = { +# always = no # v1.07 Does not work with the new faction system +# +# in_command = no +# independent = no +# is_plot_active = no +# any_rival = { +# war = no +# age = 16 +# in_command = no +# prisoner = no +# is_plot_active = yes +# is_ruler = yes +# same_liege = ROOT +# OR = { +# leads_faction = faction_succ_seniority +# leads_faction = faction_succ_primogeniture +# leads_faction = faction_succ_gavelkind +# leads_faction = faction_succ_feudal_elective +# } +# } +# } +# +# mean_time_to_happen = { +# months = 300 +# +# modifier = { +# factor = 0.5 +# trait = diligent +# } +# +# modifier = { +# factor = 2 +# trait = envious +# } +# } +# +# option = { +# name = EVTOPTA100490 +# random = { +# chance = 10 +# if = { +# limit = { +# NOT = { +# num_of_traits = 5 +# } +# NOT = { +# trait = ambitious +# } +# } +# add_trait = ambitious +# hidden_tooltip = { +# character_event = { +# id = 38278 #Notify Ambitious +# } +# } +# } +# if = { +# limit = { +# NOT = { +# num_of_traits = 5 +# } +# trait = ambitious +# NOT = { +# trait = diligent +# } +# } +# add_trait = diligent +# hidden_tooltip = { +# character_event = { +# id = 38256 #Notify diligent +# } +# } +# } +# if = { +# limit = { +# OR = { +# AND = { +# trait = ambitious +# trait = diligent +# } +# num_of_traits = 4 +# } +# } +# change_intrigue = 1 +# } +# } +# } +# option = { +# name = EVTOPTB100490 +# random_rival = { +# limit = { +# war = no +# age = 16 +# in_command = no +# is_ruler = yes +# same_liege = ROOT +# prisoner = no +# +# OR = { +# leads_faction = faction_succ_seniority +# leads_faction = faction_succ_primogeniture +# leads_faction = faction_succ_gavelkind +# leads_faction = faction_succ_feudal_elective +# } +# } +# if = { +# limit = { +# leads_faction = faction_succ_seniority +# } +# ROOT = { +# back_plot = PREV +# } +# } +# if = { +# limit = { +# leads_faction = faction_succ_primogeniture +# } +# ROOT = { +# back_plot = PREV +# } +# } +# if = { +# limit = { +# leads_faction = faction_succ_gavelkind +# } +# ROOT = { +# back_plot = PREV +# } +# } +# if = { +# limit = { +# leads_faction = faction_succ_feudal_elective +# } +# ROOT = { +# back_plot = PREV +# } +# } +# character_event = { +# id = 100491 +# days = 7 +# random = 7 +# tooltip = EVTTOOLTIP100491 +# } +# } +# } +#} + +##Rival is told about ROOT backing the plot +#character_event = { +# id = 100491 +# desc = EVTDESC100491 +# picture = GFX_evt_council +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA100491 +# opinion = { +# modifier = opinion_irritated +# who = FROM +# years = 2 +# } +# FROM = { +# character_event = { +# id = 100492 +# tooltip = EVTTOOLTIP100492 +# } +# } +# } +# option = { +# name = EVTOPTB100491 +# tooltip = { +# FROM = { +# back_plot = ROOT +# } +# } +# opinion = { +# modifier = opinion_gained_respect +# who = FROM +# years = 2 +# } +# } +#} + +##ROOT leaves Rival's plot +#character_event = { +# id = 100492 +# desc = EVTDESC100492 +# picture = GFX_evt_council +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA100492 +# leave_plot = FROM +# } +#} + +### Your fierce rival has also become a follower of the new way of Christ ### +character_event = { + id = 100500 + desc = EVTDESC100500 + picture = GFX_evt_bishop + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + religion_group = christian + war = no + rivals = yes + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { + has_character_modifier = religious_rival_timer + } + FROM = { + war = no + age = 16 + in_command = no + prisoner = no + religion = ROOT + NOT = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_continued_rivalry } + } + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_continued_rivalry } + } + } + } + +# mean_time_to_happen = { +# months = 300 +# +# modifier = { +# factor = 0.5 +# trait = zealous +# } +# modifier = { +# factor = 0.5 +# piety = 500 +# } +# +# modifier = { +# factor = 2 +# trait = deceitful +# } +# } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = religious_rival_timer + duration = 2000 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100500 + custom_tooltip = { + text = EVTTOOLTIP100501 + hidden_tooltip = { + FROM = { + character_event = { + id = 100501 + days = 7 + random = 7 + } + } + } + } + } + option = { + name = EVTOPTB100500 + if = { + limit = { + NOT = { + trait = zealous + } + NOT = { + trait = cynical + } + } + add_trait = cynical + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + trait = zealous + } + remove_trait = zealous + } + if = { + limit = { + NOT = { + num_of_traits = 5 + } + trait = cynical + NOT = { + trait = wroth + } + } + add_trait = wroth + } + if = { + limit = { + OR = { + AND = { + trait = cynical + trait = wroth + } + num_of_traits = 4 + } + } + change_intrigue = 1 + } + } +} + +#Christian Rival decides if rivalry continues +character_event = { + id = 100501 + desc = EVTDESC100501 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100501 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + trait = zealous + } + modifier = { + factor = 0.01 + trait = cynical + } + } + remove_rival = FROM + FROM = { + character_event = { + id = 100502 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100502 + } + } + } + option = { + name = EVTOPTB100501 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + trait = zealous + } + modifier = { + factor = 10 + trait = cynical + } + } + opinion = { + modifier = opinion_continued_rivalry + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100503 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100503 + } + } + } +} + +#ROOT learns Christian Rival decided rivalry discontinues +character_event = { + id = 100502 + desc = EVTDESC100502 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100502 + remove_rival = FROM + } +} + +#ROOT learns Christian Rival decided rivalry continues +character_event = { + id = 100503 + desc = EVTDESC100503 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100503 + opinion = { + modifier = opinion_continued_rivalry + who = FROM + years = 5 + } + } +} + +### Root tries to wound rival during hunt ### +character_event = { + id = 100510 + desc = EVTDESC100510 + picture = GFX_evt_hunt + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + independent = no + NOT = { + has_character_flag = holding_grand_hunt + } + NOT = { + has_character_modifier = hunting_rival_timer + } + liege = { + war = no + in_command = no + is_abroad = no + has_character_flag = holding_grand_hunt + } + any_rival = { + war = no + age = 16 + in_command = no + prisoner = no + same_liege = ROOT + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + NOT = { + has_character_flag = holding_grand_hunt + } + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 0.5 + trait = brave + } + modifier = { + factor = 0.5 + trait = deceitful + } + + modifier = { + factor = 2 + trait = craven + } + modifier = { + factor = 2 + trait = honest + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = hunting_rival_timer + duration = 2000 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100510 + random_rival = { + limit = { + war = no + age = 16 + in_command = no + prisoner = no + same_liege = ROOT + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + NOT = { + has_character_flag = holding_grand_hunt + } + } + random_list = { + 65 = { + hidden_tooltip = { + character_event = { + id = 100511 + days = 7 + random = 7 + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + 10 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + 5 = { + tooltip = { + death = { + death_reason = death_accident_arrow + } + } + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + } + } + } + option = { + name = EVTOPTB100510 + trigger = { + scaled_wealth = 0.5 + NOT = { + martial = 10 + } + any_courtier = { + war = no + in_command = no + is_abroad = no + is_female = no + martial = 15 + } + } + random_courtier = { + limit = { + war = no + in_command = no + is_abroad = no + is_female = no + martial = 15 + } + ROOT = { + transfer_scaled_wealth = { + to = PREV + value = 0.25 + } + } + tooltip = { + character_event = { + id = 100511 + tooltip = EVTTOOLTIP100511 + } + } + } + random_rival = { + limit = { + war = no + age = 16 + in_command = no + prisoner = no + same_liege = ROOT + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + NOT = { + has_character_flag = holding_grand_hunt + } + } + random_list = { + 40 = { + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + 20 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + 10 = { + set_character_flag = rival_killed_me + tooltip = { + death = { + death_reason = death_accident_arrow + } + } + hidden_tooltip = { + character_event = { + id = 100511 + } + } + } + } + } + } + option = { + name = EVTOPTC100510 + random = { + chance = 10 + character_event = { + id = 36010 + days = 2 + random = 8 + tooltip = EVTTOOLTIP36010 + } + } + } +} + +#Rival is wounded/maimed/killed +character_event = { + id = 100511 + desc = EVTDESC100511 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA100511 + tooltip_info = wounded + trigger = { + trait = wounded + } + if = { + limit = { + intrigue = 10 + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 10 + } + tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100512 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + } + } + } + } + option = { + name = EVTOPTB100511 + tooltip_info = maimed + trigger = { + is_maimed_trigger = yes + } + if = { + limit = { + intrigue = 10 + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 10 + } + tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100512 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + } + } + } + } + option = { + name = EVTOPTC100511 + trigger = { + has_character_flag = rival_killed_me + } + death = { + death_reason = death_accident_arrow + } + clr_character_flag = rival_killed_me + FROM = { + character_event = { + id = 100513 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100512 + } + } + } + option = { + name = EVTOPTD100511 + trigger = { + NOT = { + trait = wounded + } + NOT = { + is_maimed_trigger = yes + } + NOT = { + has_character_flag = rival_killed_me + } + } + if = { + limit = { + intrigue = 10 + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 10 + } + tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100512 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100512 + days = 7 + random = 7 + } + } + } + } +} + +#The arrow missed its target OR wounded/maimed rival +character_event = { + id = 100512 + desc = EVTDESC100512 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA100512 + trigger = { + FROM ={ + trait = wounded + } + } + prestige = 10 + } + option = { + name = EVTOPTB100512 + trigger = { + FROM ={ + is_maimed_trigger = yes + } + } + prestige = 50 + } + option = { + name = EVTOPTC100512 + trigger = { + FROM ={ + NOT = { + is_maimed_trigger = yes + } + NOT = { + trait = wounded + } + } + } + prestige = -5 + } +} + +#Rival is killed +character_event = { + id = 100513 + desc = EVTDESC100513 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA100513 + prestige = 55 + if = { + limit = { + FROM = { + any_child = { + is_female = no + is_primary_heir = yes + is_abroad = no + age = 10 + } + } + } + FROM = { + random_child = { + limit = { + is_female = no + is_primary_heir = yes + is_abroad = no + age = 10 + } + } + random = { + chance = 25 + opinion = { + modifier = opinion_killed_father + who = ROOT + years = 100 + } + character_event = { + id = 100514 + days = 1 + random = 7 + tooltip = EVTTOOLTIP100514 + } + } + } + } + } +} + +#Rival's son swears revenge +character_event = { + id = 100514 + desc = EVTDESC100514 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA100514 + tooltip = { + opinion = { + modifier = opinion_killed_father + who = FROM + years = 100 + } + } + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + } +} + +### Poison rival during liege's feast ### +character_event = { + id = 100520 + desc = EVTDESC100520 + picture = GFX_evt_feast + + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = guest_feast_started + war = no + + trigger = { + in_command = no + NOT = { + has_character_modifier = master_poisoner + } + NOT = { + has_character_modifier = the_content + } + any_rival = { + war = no + in_command = no + prisoner = no + same_liege = ROOT + has_character_flag = guest_feast_started + } + liege = { + has_character_flag = host_feast_started + } + } + + mean_time_to_happen = { + months = 100 + + modifier = { + factor = 0.5 + trait = deceitful + } + modifier = { + factor = 0.9 + intrigue = 10 + } + modifier = { + factor = 0.9 + intrigue = 15 + } + modifier = { + factor = 0.9 + intrigue = 20 + } + } + + option = { + name = EVTOPTA100520 + random_rival = { + limit = { + war = no + in_command = no + prisoner = no + same_liege = ROOT + has_character_flag = guest_feast_started + } + random_list = { + 50 = { + hidden_tooltip = { + ROOT = { + character_event = { + id = 100521 + } + } + } + } + 20 = { + tooltip = { + if = { + limit = { + NOT = { has_dlc = "Reapers" } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_trait = vomiting + set_character_flag = disease_not_serious + character_event = { id = RIP.11005 days = 10 random = 30 } + } + } + set_character_flag = poisoned_ill + hidden_tooltip = { + character_event = { + id = 100522 + } + } + } + 15 = { + tooltip = { add_trait = infirm } + set_character_flag = poisoned_infirm + hidden_tooltip = { + character_event = { + id = 100522 + } + } + } + 10 = { + tooltip = { + death = { + death_reason = death_murder_poison + } + } + set_character_flag = poisoned_killed + hidden_tooltip = { + character_event = { + id = 100522 + } + } + } + 5 = { + liege = { + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + character_event = { + id = 100523 + tooltip = EVTTOOLTIP100523 + } + } + } + } + } + } + option = { + name = EVTOPTB100520 + add_character_modifier = { + name = the_content + duration = 365 + } + } +} + +#Nothing happened +character_event = { + id = 100521 + desc = EVTDESC100521 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100521 + add_character_modifier = { + name = the_failed_poisoner + duration = 365 + } + } +} + +#Rival is poisoned! +character_event = { + id = 100522 + desc = EVTDESC100522 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100522 + trigger = { + has_character_flag = death_accident + } + if = { + limit = { + intrigue = 15 + } + tooltip = { + FROM = { + character_event = { + id = 100524 + tooltip = EVTTOOLTIP100524 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100524 + days = 1 + random = 1 + } + } + } + death = { + death_reason = death_murder_poison + } + } + + option = { + name = EVTOPTB100522 + trigger = { + has_character_flag = poisoned_infirm + } + add_trait = infirm + if = { + limit = { + intrigue = 15 + } + tooltip = { + FROM = { + character_event = { + id = 100524 + tooltip = EVTTOOLTIP100524 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100524 + days = 1 + random = 1 + } + } + } + } + + option = { + name = EVTOPTC100522 + trigger = { + has_character_flag = poisoned_ill + } + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + + if = { + limit = { + intrigue = 15 + } + tooltip = { + FROM = { + character_event = { + id = 100524 + tooltip = EVTTOOLTIP100524 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100524 + days = 1 + random = 1 + } + } + } + } +} + +#Liege is poisoned +character_event = { + id = 100523 + desc = EVTDESC100523 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100523 + if = { + limit = { NOT = { has_dlc = "Reapers" } } + add_trait = ill + } + if = { + limit = { has_dlc = "Reapers" } + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + if = { + limit = { + NOT = { num_of_vassals = 2 } + } + random_vassal = { + limit = { + age = 40 + has_character_flag = guest_feast_started + NOT = { has_dlc = "Reapers" } + } + add_trait = ill + set_character_flag = poisoned_at_feast + } + random_vassal = { + limit = { + age = 40 + has_character_flag = guest_feast_started + has_dlc = "Reapers" + } + set_character_flag = poisoned_at_feast + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + } + if = { + limit = { + NOT = { num_of_vassals = 3 } + } + random_vassal = { + limit = { + age = 16 + trait = drunkard + has_character_flag = guest_feast_started + NOT = { has_dlc = "Reapers" } + } + add_trait = ill + set_character_flag = poisoned_at_feast + } + random_vassal = { + limit = { + age = 16 + trait = drunkard + has_character_flag = guest_feast_started + has_dlc = "Reapers" + } + set_character_flag = poisoned_at_feast + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + } + if = { + limit = { + num_of_vassals = 4 + } + random_vassal = { + limit = { + age = 16 + trait = gluttonous + has_character_flag = guest_feast_started + NOT = { has_dlc = "Reapers" } + } + add_trait = ill + set_character_flag = poisoned_at_feast + } + random_vassal = { + limit = { + age = 16 + trait = gluttonous + has_character_flag = guest_feast_started + has_dlc = "Reapers" + } + set_character_flag = poisoned_at_feast + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + } + if = { + limit = { + OR = { + NOT = { intrigue = 15 } + NOT = { + any_courtier = { + has_job_title = job_spymaster + intrigue = 15 + } + } + } + } + any_vassal = { + limit = { + has_character_flag = guest_feast_started + } + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 5 + } + } + } + if = { + limit = { + OR = { + intrigue = 15 + any_courtier = { + has_job_title = job_spymaster + intrigue = 15 + } + } + } + tooltip = { + FROM = { + character_event = { + id = 100525 + tooltip = EVTTOOLTIP100525 + } + } + } + hidden_tooltip = { + character_event = { + id = 100525 + tooltip = EVTTOOLTIP100525 + } + } + } + } +} + +#ROOT gets news about success: Rival is ill/infirm or dead +character_event = { + id = 100524 + desc = EVTDESC100524 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100524 + trigger = { + FROM = { + has_character_flag = death_accident + } + } + FROM = { + clr_character_flag = death_accident + } + add_character_modifier = { + name = master_poisoner + duration = 1095 + } + if = { + limit = { + FROM = { + any_child = { + is_female = no + is_primary_heir = yes + is_abroad = no + age = 10 + } + } + } + FROM = { + random_child = { + limit = { + is_female = no + is_primary_heir = yes + is_abroad = no + age = 10 + } + } + random = { + chance = 25 + opinion = { + modifier = opinion_killed_father + who = ROOT + years = 100 + } + character_event = { + id = 100526 + days = 1 + random = 7 + tooltip = EVTTOOLTIP100526 + } + } + } + } + } + option = { + name = EVTOPTB100524 + trigger = { + FROM = { + has_character_flag = poisoned_infirm + } + } + FROM = { + clr_character_flag = poisoned_infirm + } + add_character_modifier = { + name = master_poisoner + duration = 730 + } + } + option = { + name = EVTOPTC100524 + trigger = { + FROM = { + has_character_flag = poisoned_ill + } + } + FROM = { + clr_character_flag = poisoned_ill + } + add_character_modifier = { + name = master_poisoner + duration = 365 + } + } +} + +#Liege discovers ROOT was behind the poisoning +character_event = { + id = 100525 + desc = EVTDESC100525 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA100525 + ai_chance = { + factor = 10 + } + FROM = { + any_vassal = { + limit = { + OR = { + has_character_flag = poisoned_at_feast + has_character_flag = guest_feast_started + } + } + clr_character_flag = poisoned_at_feast + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + random_vassal = { + limit = { + has_character_flag = liege_knows_poison + } + clr_character_flag = liege_knows_poison + imprison = ROOT + hidden_tooltip = { + set_character_flag = imprisoned_poisoner + character_event = { + id = 100527 + } + } + } + } + option = { + name = EVTOPTB100525 + ai_chance = { + factor = 1 + } + FROM = { + any_vassal = { + limit = { + OR = { + has_character_flag = poisoned_at_feast + has_character_flag = guest_feast_started + } + } + clr_character_flag = poisoned_at_feast + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + random_vassal = { + limit = { + has_character_flag = liege_knows_poison + } + clr_character_flag = liege_knows_poison + banish = yes + hidden_tooltip = { + set_character_flag = banished_poisoner + character_event = { + id = 100527 + } + } + } + } + option = { + name = EVTOPTC100525 + ai_chance = { + factor = 61 + } + add_character_modifier = { + name = mod_forgives_poisoner + duration = 365 + } + FROM = { + any_vassal = { + limit = { + OR = { + has_character_flag = poisoned_at_feast + has_character_flag = guest_feast_started + } + } + clr_character_flag = poisoned_at_feast + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + opinion = { + modifier = opinion_poisoner + who = ROOT + years = 10 + } + } + hidden_tooltip = { + random_vassal = { + limit = { + has_character_flag = liege_knows_poison + } + clr_character_flag = liege_knows_poison + } + } + } +} + +#Rival's son swears revenge +character_event = { + id = 100526 + desc = EVTDESC100526 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOTPA100526 + tooltip = { + opinion = { + modifier = opinion_killed_father + who = FROM + years = 100 + } + } + add_rival = FROM + opinion = { + modifier = grievously_offended + who = FROM + years = 10 + } + } +} + +#ROOT is imprisoned/banished +character_event = { + id = 100527 + desc = EVTDESC100527 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOTPA100527 + trigger = { + has_character_flag = imprisoned_poisoner + } + clr_character_flag = imprisoned_poisoner + tooltip = { + imprison = FROM + } + } + option = { + name = EVTOTPB100527 + trigger = { + has_character_flag = banished_poisoner + } + clr_character_flag = banished_poisoner + tooltip = { + banish = yes + } + } +} + +### Revenge seeker seeks revenge ### +character_event = { + id = 100530 + desc = EVTDESC100530 + picture = GFX_evt_council + + min_age = 16 + capable_only = yes + prisoner = no + rivals = yes + + trigger = { + in_command = no + any_rival = { + in_command = no + prisoner = no + is_female = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + NOT = { + has_character_modifier = revenge_seeker_timer + } + } + + mean_time_to_happen = { + months = 500 + + modifier = { + factor = 0.5 + trait = impaler + } + modifier = { + factor = 0.5 + trait = wroth + } + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + trait = poet + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = revenge_seeker_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100530 #Rumours + trigger = { + is_ruler = yes + any_rival = { + in_command = no + prisoner = no + is_ruler = yes + is_female = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + } + random_rival = { + limit = { + in_command = no + prisoner = no + is_ruler = yes + is_female = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + random_list = { + 50 = { + any_vassal = { + opinion = { + modifier = opinion_lost_respect + who = PREV + years = 5 + } + } + character_event = { + id = 100531 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100531 + } + } + 50 = { + ROOT = { + character_event = { + id = 100532 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100532 + } + } + } + } + } + } + option = { + name = EVTOPTB100530 #Kill + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + is_maimed_trigger = yes + } + modifier = { + factor = 5 + trait = wounded + } + } + random_rival = { + limit = { + in_command = no + prisoner = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + character_event = { + id = 100533 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100533 + } + } + } + option = { + name = EVTOPTC100530 #Maim/wound + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + is_maimed_trigger = yes + } + modifier = { + factor = 5 + trait = wounded + } + } + random_rival = { + limit = { + in_command = no + prisoner = no + is_female = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + character_event = { + id = 100534 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100534 + } + } + } + option = { + name = EVTOPTD100530 #Ignore + random_rival = { + limit = { + in_command = no + prisoner = no + same_liege = ROOT + is_female = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_revenge_seeker } + } + reverse_remove_opinion = { who = ROOT modifier = opinion_revenge_seeker } + } + } +} + +#Rival is slandered +character_event = { + id = 100531 + desc = EVTDESC100531 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA100531 + any_vassal = { + opinion = { + modifier = opinion_lost_respect + who = ROOT + years = 5 + } + } + prestige = -10 + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 100 + } + FROM = { + set_character_flag = rival_discovered_slanderer + tooltip = { + character_event = { + id = 100537 + tooltip = EVTTOOLTIP100537 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100537 + days = 7 + random = 7 + } + } + } + } +} + +#ROOT: Rival got away +character_event = { + id = 100532 + desc = EVTDESC100532 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100532 + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } +} + +#Rival is killed/got away +character_event = { + id = 100533 + desc = EVTDESC100533 + picture = GFX_evt_peasants + + is_triggered_only = yes + + option = { + name = EVTOPTA100533 + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 25 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 15 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 10 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 70 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 10 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 15 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + trait = wounded + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 30 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 20 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + is_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 30 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 70 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 100 + } + tooltip = { + FROM = { + character_event = { + id = 100535 + tooltip = EVTTOOLTIP100535 + } + } + } + } + } +} + +#Rival is maimed/wounded +character_event = { + id = 100534 + desc = EVTDESC100534 + picture = GFX_evt_peasants + + is_triggered_only = yes + + option = { + name = EVTOPTA100534 + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 25 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 15 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 10 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 70 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 10 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 15 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + trait = wounded + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 30 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 20 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + is_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 30 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + 70 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100535 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + tooltip = { + FROM = { + character_event = { + id = 100536 + tooltip = EVTTOOLTIP100535 + } + } + } + } + } +} + +#ROOT tried to kill Rival +character_event = { + id = 100535 + desc = EVTDESC100535 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100535 + trigger = { + has_character_flag = revenge_killer + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + clr_character_flag = revenge_killer + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + add_character_modifier = { + name = hot_revenge + duration = 1825 + } + } + option = { + name = EVTOPTB100535 + trigger = { + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } + option = { + name = EVTOPTC100535 + trigger = { + has_character_flag = revenge_wound + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + } + clr_character_flag = revenge_wound + add_character_modifier = { + name = hot_revenge + duration = 730 + } + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } + option = { + name = EVTOPTD100535 + trigger = { + has_character_flag = revenge_maim + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_wound + } + } + clr_character_flag = revenge_maim + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } +} + +#ROOT tried to wound/maim Rival +character_event = { + id = 100536 + desc = EVTDESC100536 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100536 + trigger = { + has_character_flag = revenge_killer + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + clr_character_flag = revenge_killer + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + add_character_modifier = { + name = hot_revenge + duration = 1825 + } + } + option = { + name = EVTOPTB100536 + trigger = { + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } + option = { + name = EVTOPTC100536 + trigger = { + has_character_flag = revenge_wound + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + } + add_character_modifier = { + name = hot_revenge + duration = 730 + } + clr_character_flag = revenge_wound + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } + option = { + name = EVTOPTD100536 + trigger = { + has_character_flag = revenge_maim + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_wound + } + } + clr_character_flag = revenge_maim + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } +} + +#ROOT: Rival is slandered +character_event = { + id = 100537 + desc = EVTDESC100537 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA100537 + trigger = { + NOT = { + has_character_flag = rival_discovered_slanderer + } + } + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } + option = { + name = EVTOPTB100537 + trigger = { + has_character_flag = rival_discovered_slanderer + } + clr_character_flag = rival_discovered_slanderer + add_character_modifier = { + name = hot_revenge + duration = 730 + } + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + } +} + +#Rival escaped! +character_event = { + id = 100538 + desc = EVTDESC100538 + picture = GFX_evt_courier + + is_triggered_only = yes + + option = { + name = EVTOPTA100538 + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + tooltip = { + FROM = { + character_event = { + id = 100536 + tooltip = EVTTOOLTIP100535 + } + } + } + } + } +} + +### Son seeks revenge for his father ### +character_event = { + id = 100540 + desc = EVTDESC100540 + picture = GFX_evt_council + + only_men = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + rivals = yes + + trigger = { + in_command = no + NOT = { + has_character_modifier = killed_father_timer + } + NOT = { + has_character_flag = avenged_father + } + any_rival = { + war = no + in_command = no + prisoner = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + } + + mean_time_to_happen = { + months = 500 + + modifier = { + factor = 0.5 + trait = impaler + } + modifier = { + factor = 0.5 + trait = wroth + } + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + trait = poet + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = killed_father_timer + duration = 1825 + hidden = yes + } + } + } + + option = { + name = EVTOPTA100540 #Rumours + trigger = { + is_ruler = yes + any_rival = { + war = no + in_command = no + prisoner = no + is_ruler = yes + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + } + random_rival = { + limit = { + war = no + in_command = no + prisoner = no + is_ruler = yes + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + random_list = { + 50 = { + any_vassal = { + opinion = { + modifier = evil_murderer + who = PREV + years = 5 + } + } + character_event = { + id = 100541 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100541 + } + } + 50 = { + ROOT = { + character_event = { + id = 100542 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100532 + } + } + } + } + } + } + option = { + name = EVTOPTB100540 #Kill + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + is_maimed_trigger = yes + } + modifier = { + factor = 5 + trait = wounded + } + } + random_rival = { + limit = { + war = no + in_command = no + prisoner = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + character_event = { + id = 100543 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100543 + } + } + } + option = { + name = EVTOPTC100540 #Maim/wound + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + is_maimed_trigger = yes + } + modifier = { + factor = 5 + trait = wounded + } + } + random_rival = { + limit = { + war = no + in_command = no + prisoner = no + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + character_event = { + id = 100544 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100544 + } + } + } + option = { + name = EVTOPTD100540 #Ignore + random_rival = { + limit = { + war = no + in_command = no + prisoner = no + same_liege = ROOT + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_killed_father } + } + } + } +} + +#Father's Murderer is slandered +character_event = { + id = 100541 + desc = EVTDESC100541 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA100541 + any_vassal = { + opinion = { + modifier = evil_murderer + who = ROOT + years = 5 + } + } + prestige = -10 + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + add_rival = FROM + FROM = { + set_character_flag = discovered_murderer + tooltip = { + character_event = { + id = 100547 + tooltip = EVTTOOLTIP100547 + } + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100547 + days = 7 + random = 7 + } + } + } + } +} + +#ROOT: Father's Murderer got away +character_event = { + id = 100542 + desc = EVTDESC100542 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100542 + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } +} + +#Father's Murderer is killed/got away +character_event = { + id = 100543 + desc = EVTDESC100543 + picture = GFX_evt_peasants + + is_triggered_only = yes + + option = { + name = EVTOPTA100543 + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 25 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 15 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 10 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 70 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 10 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 15 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + trait = wounded + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 30 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 20 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + is_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 30 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + 70 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100545 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + opinion = { + modifier = opinion_revenge_seeker + who = FROM + years = 100 + } + tooltip = { + FROM = { + character_event = { + id = 100545 + tooltip = EVTTOOLTIP100545 + } + } + } + } + } +} + +#Father's Murderer is maimed/wounded +character_event = { + id = 100544 + desc = EVTDESC100544 + picture = GFX_evt_peasants + + is_triggered_only = yes + + option = { + name = EVTOPTA100544 + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 25 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 15 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 10 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + can_be_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 70 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + FROM = { + set_character_flag = revenge_wound + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 10 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 15 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + trait = wounded + can_be_maimed_trigger = yes + FROM = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + } + random_list = { + 50 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 30 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + FROM = { + set_character_flag = revenge_maim + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 20 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + NOT = { + trait = wounded + } + is_maimed_trigger = yes + FROM = { + OR = { + NOT = { + intrigue = 15 + } + NOT = { + job_spymaster = { + intrigue = 15 + } + } + } + } + } + random_list = { + 30 = { + character_event = { + id = 100538 + days = 1 + random = 1 + tooltip = EVTTOOLTIP100538 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + 70 = { + death = { + death_reason = death_rabble + } + FROM = { + set_character_flag = revenge_killer + character_event = { + id = 100546 + days = 7 + random = 7 + } + } + } + } + } + if = { + limit = { + OR = { + intrigue = 15 + job_spymaster = { + intrigue = 15 + } + } + } + tooltip = { + FROM = { + character_event = { + id = 100546 + tooltip = EVTTOOLTIP100545 + } + } + } + } + } +} + +#ROOT: Father's Murderer got away/is killed +character_event = { + id = 100545 + desc = EVTDESC100545 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100545 + trigger = { + has_character_flag = revenge_killer + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + set_character_flag = avenged_father + clr_character_flag = revenge_killer + remove_opinion = { who = FROM modifier = opinion_revenge_seeker } + add_character_modifier = { + name = hot_revenge + duration = 1825 + } + } + option = { + name = EVTOPTB100545 + trigger = { + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } + option = { + name = EVTOPTC100545 + trigger = { + has_character_flag = revenge_wound + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + } + add_character_modifier = { + name = hot_revenge + duration = 730 + } + clr_character_flag = revenge_wound + set_character_flag = avenged_father + } + option = { + name = EVTOPTD100545 + trigger = { + has_character_flag = revenge_maim + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_wound + } + } + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + clr_character_flag = revenge_maim + set_character_flag = avenged_father + } +} + +#ROOT: Father's Murderer got away/is wounded/maimed +character_event = { + id = 100546 + desc = EVTDESC100546 + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = EVTOPTA100546 + trigger = { + has_character_flag = revenge_killer + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + set_character_flag = avenged_father + clr_character_flag = revenge_killer + add_character_modifier = { + name = hot_revenge + duration = 1825 + } + } + option = { + name = EVTOPTB100546 + trigger = { + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + NOT = { + has_character_flag = revenge_wound + } + } + add_character_modifier = { + name = poor_revenge_seeker + duration = 365 + } + } + option = { + name = EVTOPTC100546 + trigger = { + has_character_flag = revenge_wound + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_maim + } + } + tooltip = { + FROM = { + add_trait = wounded + } + } + clr_character_flag = revenge_wound + set_character_flag = avenged_father + add_character_modifier = { + name = hot_revenge + duration = 730 + } + } + option = { + name = EVTOPTD100546 + trigger = { + has_character_flag = revenge_maim + NOT = { + has_character_flag = revenge_killer + } + NOT = { + has_character_flag = revenge_wound + } + } + tooltip = { + FROM = { + add_maimed_trait_effect = yes + } + } + clr_character_flag = revenge_maim + set_character_flag = avenged_father + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + } +} + +#ROOT: Father's Murderer is slandered +character_event = { + id = 100547 + desc = EVTDESC100547 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA100547 + trigger = { + NOT = { + has_character_flag = discovered_murderer + } + } + add_character_modifier = { + name = hot_revenge + duration = 1095 + } + set_character_flag = avenged_father + } + option = { + name = EVTOPTB100547 + trigger = { + has_character_flag = discovered_murderer + } + clr_character_flag = discovered_murderer + add_character_modifier = { + name = hot_revenge + duration = 730 + } + set_character_flag = avenged_father + } +} + + +#Friend is asked by ROOT for help +character_event = { + id = 100551 + desc = EVTDESC100551 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100231 + FROM = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100552 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100232 + } + } + } + option = { + name = EVTOPTB100551 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + character_event = { + id = 100553 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100553 + } + } + } + option = { + name = EVTOPTC100231 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + character_event = { + id = 100554 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100234 + } + } + } +} + +#ROOT gets help from friend +character_event = { + id = 100552 + desc = EVTDESC100552 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100232 + trigger = { + NOT = { + has_character_flag = paid_advice + } + } + tooltip = { + opinion = { + modifier = opinion_very_grateful + who = ROOT + years = 5 + } + } + change_learning = 1 + add_character_modifier = { + name = pious_imams + duration = 1095 + } + } + option = { + name = EVTOPTB100552 + trigger = { + has_character_flag = paid_advice + } + clr_character_flag = paid_advice + tooltip = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + change_learning = 1 + add_character_modifier = { + name = pious_imams + duration = 1095 + } + } +} + +#ROOT did not get help from friend +character_event = { + id = 100553 + desc = EVTDESC100553 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100553 + tooltip = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = stressed + } + } + add_trait = stressed + } + } +} + +#ROOT only gets help from friend if friend is paid +character_event = { + id = 100554 + desc = EVTDESC100554 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100234 + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + scaled_wealth = 0.5 + } + modifier = { + factor = 10 + NOT = { + scaled_wealth = 0.5 + } + } + } + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 100555 + days = 7 + random = 7 + tooltip = EVTTOOLTIPA100235 + } + } + } + option = { + name = EVTOPTB100234 + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + scaled_wealth = 0.5 + } + modifier = { + factor = 0.01 + NOT = { + scaled_wealth = 0.5 + } + } + } + tooltip = { + transfer_scaled_wealth = { + to = FROM + value = 0.25 + } + } + FROM = { + set_character_flag = paid_learning + character_event = { + id = 100555 + days = 7 + random = 7 + tooltip = EVTTOOLTIPB100235 + } + } + } +} + +#Friend is/n't paid by ROOT +character_event = { + id = 100555 + desc = EVTDESC100555 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA100235 + trigger = { + NOT = { + has_character_flag = paid_learning + } + } + tooltip = { + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } + } + option = { + name = EVTOPTB100235 + trigger = { + has_character_flag = paid_learning + } + clr_character_flag = paid_learning + FROM = { + set_character_flag = paid_advice + character_event = { + id = 100552 + days = 7 + random = 7 + tooltip = EVTTOOLTIP100232 + } + transfer_scaled_wealth = { + to = ROOT + value = 0.25 + } + } + } +} \ No newline at end of file diff --git a/After the End/events/guardian_events.txt b/After the End/events/guardian_events.txt new file mode 100644 index 000000000..944cef22e --- /dev/null +++ b/After the End/events/guardian_events.txt @@ -0,0 +1,7471 @@ +################################### +# +# Events for Guardian +# +# Id 2000-2499 and 38100 - 38299 is reserved +# +# +################################### +# +# Written by Sara Wendel-Örtqvist & Henrik Fåhraeus +# heavily revised by Johan Andersson. + +#Event ID 2000-2009 is reserved for Gluttonous events# +#Fosterling gains trait Gluttonous +character_event = { + id = 2000 + desc = EVTDESC2000 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2000 # Encourage Gluttony + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = gluttonous + } + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = hedonist + } + modifier = { + factor = 0 + trait = temperate + } + } + + if = { + limit = { + trait = temperate + } + prestige = -5 + } + if = { + limit = { + trait = gluttonous + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = gluttonous + } + opinion = { + who = ROOT + modifier = opinion_happy_with_guardian + years = 2 + } + } + } + + option = { + name = EVTOPTB2000 # Birch Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 0.1 + trait = gluttonous + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + reverse_opinion = { + who = FROM + modifier = opinion_sad + years = 2 + } + random = { + chance = 40 + FROM = { + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 1501 + } + } + } + } + } + + option = { + name = EVTOPTC2000 # Talk to Him about moderation. + trigger = { + NOT = { trait = gluttonous } + } + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = temperate + } + modifier = { + factor = 10 + trait = diligent + } + modifier = { + factor = 10 + trait = celibate + } + } + + random_list = { + 50 = { + FROM = { + add_trait = temperate + hidden_tooltip = { + ROOT = { + character_event = { + id = 38176 + } + } + character_event = { + id = 38276 + } + } + } + } + 50 = { + FROM = { + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 1501 + } + } + } + } + } + } + option = { + name = EVTOPTD2000 # Pray God will save her.. + trigger = { + OR = { + religion_group = christian + #religion_group = muslim + } + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + + piety = 5 + random = { + chance = 20 + FROM = { + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 1501 + } + } + } + } + } +} + +################################################## + +#Event ID 2010-2019 is reserved for Temperate events +#Fosterling is Temperate +character_event = { + id = 2010 + desc = EVTDESC2010 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2010 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = temperate + } + modifier = { + factor = 4 + trait = diligent + } + modifier = { + factor = 4 + trait = celibate + } + } + + if = { + limit = { trait = gluttonous} + prestige = -5 + } + if = { + limit = { + stewardship = 10 + } + FROM = { change_stewardship = 1} + } + + if = { + limit = { + trait = temperate + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = temperate + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2010 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = gluttonous + } + NOT = { trait = gluttonous} + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = temperate + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + stewardship = 10 + } + FROM = { change_stewardship = 1} + } + any_courtier = { + limit = { + trait = gluttonous + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2010 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random = { + chance = 10 + FROM = { + add_trait = gluttonous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38177 + } + } + character_event = { + id = 38277 + } + } + } + } + } + + option = { + name = EVTOPTD2010 # He/She must learn to enjoy life! + trigger = { + NOT = { trait = temperate } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = gluttonous + } + modifier = { + factor = 5 + trait = slothful + } + modifier = { + factor = 5 + trait = hedonist + } + } + + FROM = { + random_list = { + 50 = { + add_trait = gluttonous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38177 + } + } + character_event = { + id = 38277 + } + } + } + 40 = { + remove_trait = temperate + hidden_tooltip = { + character_event = { + id = 1511 + } + } + } + 10 = {} + } + } + } +} + +################################################## + +#Event ID 2020-2029 is reserved for Greedy events# +#Fosterling is Greedy +character_event = { + id = 2020 + desc = EVTDESC2020 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2020 # Encourage Greed + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = greedy + } + modifier = { + factor = 5 + trait = envious + } + } + + if = { + limit = { trait = charitable} + prestige = -5 + } + if = { + limit = { + trait = greedy + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = greedy + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + + option = { + name = EVTOPTB2020 # Birch Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 0.1 + trait = greedy + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random = { + chance = 40 + FROM = { + remove_trait = greedy + hidden_tooltip = { + character_event = { + id = 1521 + } + } + } + } + } + option = { + name = EVTOPTC2020 # needs a lecture on charity! + trigger = { + NOT = { trait = greedy } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 5 + trait = kind + } + } + + random_list = { + 50 = { + FROM = { + add_trait = charitable + hidden_tooltip = { + ROOT = { + character_event = { + id = 38173 + } + } + character_event = { + id = 38273 + } + } + } + } + 40 = { + FROM = { + remove_trait = greedy + hidden_tooltip = { + character_event = { + id = 1521 + } + } + } + } + 10 = { } + } + } + + option = { + name = EVTOPTD2020 # God will save him from Hell + trigger = { + NOT = { trait = cynical } + religion_group = christian + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random = { + chance = 20 + FROM = { + remove_trait = greedy + hidden_tooltip = { + character_event = { + id = 1521 + } + } + } + } + } +} + +################################################## + +#Event ID 2030-2039 is reserved for Charitable events# +#Fosterling is Charitable +character_event = { + id = 2030 + desc = EVTDESC2030 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2030 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 4 + trait = diligent + } + modifier = { + factor = 4 + trait = kind + } + } + + if = { + limit = { trait = greedy} + prestige = -5 + } + if = { + limit = { + diplomacy = 10 + } + FROM = { change_diplomacy = 1} + } + + if = { + limit = { + trait = charitable + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = charitable + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2030 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = greedy + } + NOT = { trait = greedy } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + diplomacy = 10 + } + FROM = { change_diplomacy = 1} + } + any_courtier = { + limit = { + trait = greedy + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2030 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random = { + chance = 10 + FROM = { + add_trait = greedy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38152 + } + } + character_event = { + id = 38252 + } + } + } + } + } + + option = { + name = EVTOPTD2030 # Charity is for naive weaklings! + trigger = { + NOT = { trait = charitable} + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = gluttonous + } + modifier = { + factor = 5 + trait = slothful + } + modifier = { + factor = 5 + trait = hedonist + } + } + + random_list = { + 50 = { + FROM = { + add_trait = greedy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38152 + } + } + character_event = { + id = 38252 + } + } + } + } + 40 = { + FROM = { + remove_trait = charitable + hidden_tooltip = { + character_event = { + id = 1531 + } + } + } + } + 10 = { } + } + } +} + + +################################################## + +#Event ID 2040-2049 is reserved for Slothful events# +#Fosterling is slothful +character_event = { + id = 2040 + desc = EVTDESC2040 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2040 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = slothful + } + modifier = { + factor = 2 + trait = gluttonous + } + } + if = { + limit = { trait = diligent} + prestige = -5 + } + if = { + limit = { + trait = slothful + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = slothful + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2040 # Birch Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 0.1 + trait = slothful + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random = { + chance = 40 + FROM = { + remove_trait = slothful + hidden_tooltip = { + character_event = { + id = 1541 + } + } + } + } + } + + option = { + name = EVTOPTC2040 # needs a lecture on diligence! + trigger = { + NOT = { trait = slothful } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = diligent + } + modifier = { + factor = 5 + trait = kind + } + } + + random_list = { + 50 = { + FROM = { + add_trait = diligent + hidden_tooltip = { + ROOT = { + character_event = { + id = 38156 + } + } + character_event = { + id = 38256 + } + } + } + } + 40 = { + FROM = { + remove_trait = slothful + hidden_tooltip = { + character_event = { + id = 1541 + } + } + } + } + 10 = { } + } + } + + option = { + name = EVTOPTD2040 # Pray for his soul. + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + + piety = 5 + random = { + chance = 20 + FROM = { + remove_trait = slothful + hidden_tooltip = { + character_event = { + id = 1541 + } + } + } + } + } +} + + +################################################## + +#Event ID 2050-2059 is reserved for Diligent events# +#Fosterling is Diligent +character_event = { + id = 2050 + desc = EVTDESC2050 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2050 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = diligent + } + modifier = { + factor = 5 + trait = temperate + } + } + + if = { + limit = { trait = slothful} + prestige = -5 + } + if = { + limit = { + OR = { + diplomacy = 12 + martial = 12 + stewardship = 12 + intrigue = 12 + } + learning = 10 + + } + random_list = { + 10 = { FROM = { change_diplomacy = 1 }} + 10 = { FROM = { change_martial = 1 }} + 10 = { FROM = { change_stewardship = 1 }} + 10 = { FROM = { change_intrigue = 1 }} + } + } + + if = { + limit = { + trait = diligent + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = diligent + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2050 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = slothful + } + NOT = { trait = slothful } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = diligent + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + OR = { + diplomacy = 12 + martial = 12 + stewardship = 12 + intrigue = 12 + } + learning = 10 + + } + random_list = { + 10 = { FROM = { change_diplomacy = 1}} + 10 = { FROM = { change_martial = 1}} + 10 = { FROM = { change_stewardship = 1}} + 10 = { FROM = { change_intrigue = 1}} + } + } + any_courtier = { + limit = { + trait = slothful + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2050 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random = { + chance = 10 + FROM = { + add_trait = slothful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38151 + } + } + character_event = { + id = 38251 + } + } + } + } + } + + option = { + name = EVTOPTD2050 # The child needs to lighten up! + trigger = { + NOT = { trait = diligent} + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = gluttonous + } + modifier = { + factor = 5 + trait = slothful + } + modifier = { + factor = 5 + trait = hedonist + } + } + + random_list = { + 50 = { + FROM = { + add_trait = slothful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38151 + } + } + character_event = { + id = 38251 + } + } + } + } + 40 = { + FROM = { + remove_trait = diligent + hidden_tooltip = { + character_event = { + id = 1551 + } + } + } + } + 10 = { } + } + } +} + +################################################## + +#Event ID 2060-2069 is reserved for Envious events# +#Fosterling is Envious +character_event = { + id = 2060 + desc = EVTDESC2060 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2060 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = envious + } + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 5 + trait = greedy + } + } + + if = { + limit = { trait = kind} + prestige = -5 + } + if = { + limit = { + trait = envious + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = envious + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2060 # Beat some respect into Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 0.1 + trait = slothful + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random = { + chance = 40 + FROM = { + remove_trait = envious + hidden_tooltip = { + character_event = { + id = 1561 + } + } + } + } + } + + option = { + name = EVTOPTC2060 # Discourage + trigger = { + NOT = { trait = envious } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = kind + } + modifier = { + factor = 5 + trait = just + } + } + FROM = { + random_list = { + 50 = { + add_trait = kind + hidden_tooltip = { + ROOT = { + character_event = { + id = 38168 + } + } + character_event = { + id = 38268 + } + } + } + 40 = { + remove_trait = envious + hidden_tooltip = { + character_event = { + id = 1561 + } + } + } + 10 = { } + } + } + } + + option = { + name = EVTOPTD2060 # Envy is the deadliest of sins! + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + + piety = 5 + random_list = { + 80 = { } + 20 = { + FROM = { + remove_trait = envious + hidden_tooltip = { + character_event = { + id = 1561 + } + } + } + } + } + } +} + +################################################## + +#Event ID 2070-2079 is reserved for Kind events# +#Fosterling is Kind +character_event = { + id = 2070 + desc = EVTDESC2070 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2070 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = kind + } + modifier = { + factor = 2 + trait = just + } + modifier = { + factor = 2 + trait = charitable + } + } + + if = { + limit = { trait = envious} + prestige = -5 + } + if = { + limit = { + diplomacy = 10 + } + FROM = { change_diplomacy = 1} + } + + if = { + limit = { + trait = kind + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = kind + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2070 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = envious + } + NOT = { trait = envious } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = kind + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + diplomacy = 10 + } + change_diplomacy = 1 + } + any_courtier = { + limit = { + trait = envious + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2070 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + FROM = { + random_list = { + 90 = { } + 10 = { + add_trait = envious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38171 + } + } + character_event = { + id = 38271 + } + } + } + } + } + } + option = { + name = EVTOPTD2070 # Discourage + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = envious + } + modifier = { + factor = 5 + trait = arbitrary + } + modifier = { + factor = 5 + trait = greedy + } + } + FROM = { + random_list = { + 50 = { + add_trait = envious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38171 + } + } + character_event = { + id = 38271 + } + } + } + 40 = { + remove_trait = kind + hidden_tooltip = { + character_event = { + id = 1571 + } + } + } + 10 = { } + } + } + } +} + + +################################################## + +#Event ID 2080-2089 is reserved for Wroth events# +#Fosterling is Wroth +character_event = { + id = 2080 + desc = EVTDESC2080 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2080 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = envious + } + + modifier = { + factor = 5 + trait = wroth + } + } + + if = { + limit = { trait = patient } + prestige = -5 + } + if = { + limit = { + trait = wroth + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = wroth + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2080 # Beat some respect into Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = arbitrary + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + FROM = { + random_list = { + 70 = { } + 30 = { + add_trait = patient + hidden_tooltip = { + ROOT = { + character_event = { + id = 38164 + } + } + character_event = { + id = 38264 + } + } + } + } + } + } + + option = { + name = EVTOPTC2080 # Discourage + trigger = { + NOT = { trait = wroth } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = kind + } + modifier = { + factor = 5 + trait = patient + } + } + FROM = { + random_list = { + 50 = { + add_trait = patient + hidden_tooltip = { + ROOT = { + character_event = { + id = 38164 + } + } + character_event = { + id = 38264 + } + } + } + 40 = { + remove_trait = wroth + hidden_tooltip = { + character_event = { + id = 1581 + } + } + } + 10 = { } + } + } + } + + option = { + name = EVTOPTD2080 # Pray for his sins + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + FROM = { + random_list = { + 80 = { } + 20 = { + remove_trait = wroth + hidden_tooltip = { + character_event = { + id = 1581 + } + } + } + } + } + } +} + +################################################## + +#Event ID 2090-2099 is reserved for Patient events# +#Fosterling is Patient +character_event = { + id = 2090 + desc = EVTDESC2090 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2090 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = kind + } + modifier = { + factor = 2 + trait = just + } + modifier = { + factor = 6 + trait = patient + } + } + + if = { + limit = { trait = wroth} + prestige = -5 + } + if = { + limit = { + intrigue = 10 + } + FROM = { change_intrigue = 1} + } + + if = { + limit = { + trait = patient + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = patient + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + + option = { + name = EVTOPTB2090 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = wroth + } + NOT = { trait = wroth } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = patient + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + intrigue = 10 + } + change_intrigue = 1 + } + any_courtier = { + limit = { + trait = wroth + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2090 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + FROM = { + random_list = { + 90 = { } + 10 = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 + } + } + character_event = { + id = 38254 + } + } + } + } + } + } + option = { + name = EVTOPTD2090 # Discourage + trigger = { + NOT = { trait = patient } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = envious + } + modifier = { + factor = 5 + trait = arbitrary + } + modifier = { + factor = 10 + trait = wroth + } + } + FROM = { + random_list = { + 50 = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 + } + } + character_event = { + id = 38254 + } + } + } + 40 = { + remove_trait = patient + hidden_tooltip = { + character_event = { + id = 1591 + } + } + } + 10 = { } + } + } + } +} + +################################################## + +#Event ID 2100-2109 is reserved for Proud events# +#Fosterling is Proud +character_event = { + id = 2100 + desc = EVTDESC2100 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2100 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = proud + } + modifier = { + factor = 5 + trait = ambitious + } + } + if = { + limit = { trait = humble} + prestige = -5 + } + if = { + limit = { + trait = proud + } + prestige = 5 + + } + FROM = { + tooltip = { + add_trait = proud + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2100 # Beat some respect into him/her! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = arbitrary + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 60 = { } + 40 = { + FROM = { + remove_trait = proud + hidden_tooltip = { + character_event = { + id = 1601 + } + } + } + } + } + } + + + option = { + name = EVTOPTC2100 # Discourage + trigger = { + NOT = { trait = proud } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = humble + } + modifier = { + factor = 5 + trait = content + } + } + FROM = { + random_list = { + 50 = { + add_trait = humble + hidden_tooltip = { + ROOT = { + character_event = { + id = 38160 + } + } + character_event = { + id = 38260 + } + } + } + 40 = { + remove_trait = proud + hidden_tooltip = { + character_event = { + id = 1601 + } + } + } + 10 = { } + } + } + } + + option = { + name = EVTOPTD2100 # Pray for his sinsS + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random_list = { + 80 = { } + 20 = { + FROM = { + remove_trait = proud + hidden_tooltip = { + character_event = { + id = 1601 + } + } + } + } + } + } +} + +################################################## + +#Event ID 2110-2119 is reserved for Humble events# +#Fosterling is Humble +character_event = { + id = 2110 + desc = EVTDESC2110 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2110 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = humble + } + modifier = { + factor = 5 + trait = content + } + } + if = { + limit = { trait = proud} + prestige = -5 + } + if = { + limit = { + trait = humble + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = humble + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2110 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random_list = { + 80 = { } + 10 = { + FROM = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 + } + } + character_event = { + id = 38261 + } + } + } + } + 10 = { + FROM = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 + } + } + character_event = { + id = 38254 + } + } + } + } + } + } + option = { + name = EVTOPTC2110 # Discourage + trigger = { + NOT = { trait = proud } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = proud + } + modifier = { + factor = 5 + trait = ambitious + } + + } + + random_list = { + 50 = { + FROM = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 + } + } + character_event = { + id = 38261 + } + } + } + } + 40 = { + FROM = { + remove_trait = humble + hidden_tooltip = { + character_event = { + id = 1611 + } + } + } + } + 10 = { } + } + } +} + +################################################## + +### Event ID 2120-2129 is reserved for Deceitful events ### + +#Fosterling is Deceitful +character_event = { + id = 2120 + desc = EVTDESC2120 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2120 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = deceitful + } + } + if = { + limit = { trait = honest} + prestige = -5 + } + if = { + limit = { + trait = deceitful + intrigue = 15 + } + FROM = { + change_intrigue = 1 + } + } + FROM = { + tooltip = { + add_trait = deceitful + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2120 # Beat some respect into Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 50 = { } + 40 = { + FROM = { + remove_trait = deceitful + hidden_tooltip = { + character_event = { + id = 1621 + } + } + } + } + 10 = { + FROM = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 + } + } + character_event = { + id = 38254 + } + } + } + } + } + } + + + option = { + name = EVTOPTC2120 # Discourage + trigger = { + NOT = { trait = deceitful } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = honest + } + } + random_list = { + 50 = { + FROM = { + add_trait = honest + hidden_tooltip = { + ROOT = { + character_event = { + id = 38162 + } + } + character_event = { + id = 38262 + } + } + } + } + 40 = { + FROM = { + remove_trait = deceitful + hidden_tooltip = { + character_event = { + id = 1621 + } + } + } + } + 10 = { } + } + } + + option = { + name = EVTOPTD2120 # Pray for his sins + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random_list = { + 80 = {} + 20 = { + FROM = { + remove_trait = deceitful + hidden_tooltip = { + character_event = { + id = 1621 + } + } + } + } + } + } +} + +################################################## + +#Event ID 2130-2139 is reserved for Zealous events +#Fosterling is Zealous +character_event = { + id = 2130 + desc = EVTDESC2130 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2130 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = zealous + } + modifier = { + factor = 0 + trait = cynical + } + } + if = { + limit = { + trait = cynical + } + remove_trait = cynical + } + if = { + limit = { + learning = 10 + } + FROM = { change_learning = 1} + } + if = { + limit = { + trait = zealous + learning = 10 + } + FROM = { piety = 5} + } + FROM = { + tooltip = { + add_trait = zealous + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2130 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = cynical + } + modifier = { + factor = 0 + trait = zealous + } + } + + if = { + limit = { + trait = zealous + } + remove_trait = zealous + piety = -50 + } + FROM = { + remove_trait = zealous + hidden_tooltip = { + character_event = { + id = 1631 + } + } + } + } +} + +#Fosterling is Zealous - Muslim +character_event = { + id = 2132 + desc = EVTDESC2132 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2130 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = zealous + } + modifier = { + factor = 0 + trait = cynical + } + } + if = { + limit = { + trait = cynical + } + remove_trait = cynical + } + if = { + limit = { + learning = 10 + } + FROM = { change_learning = 1} + } + if = { + limit = { + trait = zealous + learning = 10 + } + FROM = { piety = 5} + } + FROM = { + tooltip = { + add_trait = zealous + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2130 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = cynical + } + modifier = { + factor = 0 + trait = zealous + } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + piety = -50 + } + FROM = { + remove_trait = zealous + hidden_tooltip = { + character_event = { + id = 1631 + } + } + } + } +} + +################################################## + +#Event ID 2140-2149 is reserved for Honest events# +#Fosterling is Honest +character_event = { + id = 2140 + desc = EVTDESC2140 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2140 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = honest + } + } + if = { + limit = { trait = deceitful} + prestige = -5 + } + random_courtier = { + limit = { + trait = gluttonous + is_female = yes + prisoner = no + } + opinion = { + modifier = opinion_insulted + who = ROOT + years = 2 + } + } + + if = { + limit = { + trait = honest + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = honest + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2140 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = deceitful + } + NOT = { trait = deceitful } + } + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = deceitful + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + diplomacy = 10 + } + change_diplomacy = 1 + } + any_courtier = { + limit = { + trait = deceitful + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2140 # Discourage Mildly + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = honest + } + } + FROM = { + remove_trait = honest + hidden_tooltip = { + character_event = { + id = 1641 + } + } + } + } + + option = { + name = EVTOPTD2140 # Discourage strongly + trigger = { + NOT = { trait = honest } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 5 + trait = deceitful + } + } + + random_list = { + 50 = { + FROM = { + add_trait = deceitful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38155 + } + } + character_event = { + id = 38255 + } + } + } + } + 40 = { + FROM = { + remove_trait = honest + hidden_tooltip = { + character_event = { + id = 1641 + } + } + } + } + 10 = {} + } + } +} + +################################################## + +#Event ID 2150-2159 is reserved for Craven events# +#Fosterling is Craven +character_event = { + id = 2150 + desc = EVTDESC2150 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2150 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = craven + } + modifier = { + factor = 0 + trait = brave + } + } + if = { + limit = { + trait = craven + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = craven + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2150 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = content + } + } + if = { + limit = { trait = brave} + prestige = -5 + } + random_list = { + 50 = { + FROM = { + add_trait = content + hidden_tooltip = { + ROOT = { + character_event = { + id = 38179 + } + } + character_event = { + id = 38279 + } + } + } + } + 30 = { + FROM = { + remove_trait = craven + hidden_tooltip = { + character_event = { + id = 1651 + } + } + } + } + 20 = { } + } + } + + option = { + name = EVTOPTC2150 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = brave + } + modifier = { + factor = 5 + trait = ambitious + } + } + FROM = { + remove_trait = craven + hidden_tooltip = { + character_event = { + id = 1651 + } + } + } + random = { + chance = 25 + FROM = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 + } + } + character_event = { + id = 38270 + } + } + } + } + } +} + +################################################## + +#Event ID 2160-2169 is reserved for Brave events# +#Fosterling is Brave +character_event = { + id = 2160 + desc = EVTDESC2160 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2160 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = brave + } + modifier = { + factor = 5 + trait = ambitious + } + modifier = { + factor = 0 + trait = craven + } + } + if = { + limit = { + martial = 10 + } + FROM = { change_martial = 1} + } + if = { + limit = { + trait = brave + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = brave + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2160 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = craven + } + NOT = { trait = craven} + } + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = craven + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + martial = 10 + } + FROM = { change_martial = 1} + } + any_courtier = { + limit = { + trait = craven + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2160 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = craven + } + modifier = { + factor = 0 + trait = brave + } + } + random_list = { + 50 = { + FROM = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 + } + } + character_event = { + id = 38257 + } + } + } + } + 40 = { + FROM = { + remove_trait = brave + hidden_tooltip = { + character_event = { + id = 1661 + } + } + } + } + 10 = { } + } + } +} + +################################################## + +#Event ID 2170-2179 is reserved for Shy events# +#Fosterling is Shy +character_event = { + id = 2170 + desc = EVTDESC2170 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2170 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = shy + } + modifier = { + factor = 2 + trait = humble + } + modifier = { + factor = 2 + trait = content + } + modifier = { + factor = 0 + trait = gregarious + } + modifier = { + factor = 0 + trait = proud + } + } + + if = { + limit = { + trait = gregarious + } + prestige = -5 + } + if = { + limit = { + trait = shy + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = shy + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2170 # Birch Him! + trigger = { + NOT = { trait = kind } + NOT = { trait = shy } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 0 + trait = shy + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 60 = { } + 40 = { + FROM = { + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 1671 + } + } + } + } + } + } + + option = { + name = EVTOPTC2170 # Talk to him + trigger = { + NOT = { trait = shy } + } + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = temperate + } + modifier = { + factor = 10 + trait = diligent + } + modifier = { + factor = 10 + trait = celibate + } + } + + random_list = { + 50 = { + FROM = { + add_trait = gregarious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38165 + } + } + character_event = { + id = 38265 + } + } + } + } + 40 = { + FROM = { + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 1671 + } + } + } + } + 10 = { } + } + } + option = { + name = EVTOPTD2170 # Pray God will give her strength. + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random_list = { + 80 = { } + 20 = { + FROM = { + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 1671 + } + } + } + } + } + } +} + +################################################## + +#Event ID 2180-2189 is reserved for Gregarious events# +#Fosterling is Gregarious +character_event = { + id = 2180 + desc = EVTDESC2180 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2180 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = gregarious + } + modifier = { + factor = 4 + trait = proud + } + modifier = { + factor = 4 + trait = ambitious + } + modifier = { + factor = 0 + trait = shy + } + } + + if = { + limit = { trait = shy} + prestige = -5 + } + if = { + limit = { + diplomacy = 10 + } + FROM = { change_diplomacy = 1} + } + + if = { + limit = { + trait = gregarious + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = gregarious + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2180 # Hold up X as an example for the court! + trigger = { + any_courtier = { + trait = shy + } + NOT = { trait = shy } + } + ai_chance = { + factor = 10 + modifier = { + factor = 0 + trait = shy + } + modifier = { + factor = 10 + trait = proud + } + } + if = { + limit = { + diplomacy = 10 + } + FROM = { change_diplomacy = 1} + } + any_courtier = { + limit = { + trait = shy + } + opinion = { + modifier = opinion_envy + who = FROM + years = 5 + } + } + FROM = { + prestige = 5 + } + } + + option = { + name = EVTOPTC2180 # Thank God for X's virtues! + trigger = { + NOT = { trait = cynical } + NOT = { religion = buddhist } + NOT = { religion = jain } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + piety = 5 + random_list = { + 90 = { } + 10 = { + FROM = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 + } + } + character_event = { + id = 38263 + } + } + } + } + } + } + + option = { + name = EVTOPTD2180 # discourage + trigger = { + NOT = { trait = temperate } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = shy + } + modifier = { + factor = 5 + trait = humble + } + modifier = { + factor = 5 + trait = honest + } + } + + random_list = { + 50 = { + FROM = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 + } + } + character_event = { + id = 38263 + } + } + } + } + 40 = { + FROM = { + remove_trait = gregarious + hidden_tooltip = { + character_event = { + id = 1681 + } + } + } + } + 10 = { } + } + } +} + +################################################## + +#Event ID 2190-2199 is reserved for Ambitious events# +#Fosterling is Ambitious +character_event = { + id = 2190 + desc = EVTDESC2190 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2190 # Encourage + ai_chance = { + factor = 50 + modifier = { + factor = 4 + trait = ambitious + } + modifier = { + factor = 2 + trait = proud + } + } + FROM = { + add_trait = ambitious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38178 #Notify Child is ambitious + } + } + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + + option = { + name = EVTOPTB2190 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = content + } + modifier = { + factor = 10 + trait = humble + } + } + FROM = { + remove_trait = ambitious + hidden_tooltip = { + character_event = { + id = 1691 + } + } + } + } +} + +################################################## + +#Event ID 2200-2209 is reserved for Content events# +#Fosterling is Content +character_event = { + id = 2200 + desc = EVTDESC2200 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2200 # Encourage + ai_chance = { + factor = 50 + modifier = { + factor = 4 + trait = content + } + modifier = { + factor = 2 + trait = humble + } + } + FROM = { + tooltip = { + add_trait = content + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2200 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = ambitious + } + modifier = { + factor = 10 + trait = proud + } + } + FROM = { + remove_trait = content + hidden_tooltip = { + character_event = { + id = 1701 + } + } + } + } +} + +################################################## + +#Event ID 2210-2219 is reserved for Arbitrary events# +#Fosterling is Arbitrary +character_event = { + id = 2210 + desc = EVTDESC2210 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2210 # Encourage + ai_chance = { + factor = 50 + modifier = { + factor = 4 + trait = arbitrary + } + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = deceitful + } + } + FROM = { + tooltip = { + add_trait = arbitrary + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2210 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = just + } + modifier = { + factor = 10 + trait = diligent + } + modifier = { + factor = 10 + trait = honest + } + } + FROM = { + remove_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 1711 + } + } + } + } +} + +################################################## + +#Event ID 2220-2229 is reserved for Just events# +#Fosterling is Just +character_event = { + id = 2220 + desc = EVTDESC2220 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2220 # Encourage + ai_chance = { + factor = 50 + modifier = { + factor = 4 + trait = just + } + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = honest + } + } + FROM = { + tooltip = { + add_trait = just + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2220 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 20 + trait = arbitrary + } + modifier = { + factor = 10 + trait = slothful + } + modifier = { + factor = 10 + trait = deceitful + } + } + FROM = { + remove_trait = just + hidden_tooltip = { + character_event = { + id = 1721 + } + } + } + } +} + +################################################## + +#Event ID 2230-2239 is reserved for Cynical events# +#Fosterling is Cynical +character_event = { + id = 2230 + desc = EVTDESC2230 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA2230 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = cynical + } + modifier = { + factor = 0 + trait = zealous + } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + if = { + limit = { + intrigue = 10 + } + FROM = { change_intrigue = 1} + } + FROM = { + tooltip = { + add_trait = cynical + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2230 # Discourage + ai_chance = { + factor = 10 + modifier = { + factor = 200 + trait = zealous + } + modifier = { + factor = 0 + trait = cynical + } + } + FROM = { + remove_trait = cynical + hidden_tooltip = { + character_event = { + id = 1731 + } + } + } + } +} + +################################################## + +#Fosterling gains trait Cruel +character_event = { + id = 2465 + desc = EVTDESC2465 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2465 # Encourage + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = impaler + } + modifier = { + factor = 5 + trait = greedy + } + } + + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + if = { + limit = { trait = kind } + prestige = -5 + } + if = { + limit = { + trait = cruel + } + prestige = 5 + } + FROM = { + tooltip = { + add_trait = cruel + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB2465 # Beat some respect into Him! + trigger = { + NOT = { trait = kind } + } + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = wroth + } + modifier = { + factor = 0 + trait = cruel + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 60 = { } + 40 = { + FROM = { + remove_trait = cruel + hidden_tooltip = { + character_event = { + id = 1966 + } + } + } + } + } + } + + option = { + name = EVTOPTC2465 # Discourage + trigger = { + NOT = { trait = cruel } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = kind + } + modifier = { + factor = 5 + trait = just + } + } + + random_list = { + 50 = { + FROM = { + add_trait = kind + hidden_tooltip = { + ROOT = { + character_event = { + id = 38168 + } + } + character_event = { + id = 38268 + } + } + } + } + 40 = { + FROM = { + remove_trait = cruel + hidden_tooltip = { + character_event = { + id = 1966 + } + } + } + } + 10 = { } + } + } + + option = { + name = EVTOPTD2465 # Pray for his soul! + trigger = { + NOT = { trait = cynical } + } + ai_chance = { + factor = 2 + modifier = { + factor = 150 + trait = zealous + } + } + + piety = 5 + random_list = { + 80 = { } + 20 = { + FROM = { + remove_trait = cruel + hidden_tooltip = { + character_event = { + id = 1966 + } + } + } + } + } + } +} + +################################################## + +# Vassal wants to be guardian for liege's child +character_event = { + id = 2480 + desc = EVTDESC2480 + picture = GFX_evt_council + + min_age = 20 + max_age = 70 + only_rulers = yes + prisoner = no + capable_only = yes + + trigger = { + independent = no + NOT = { trait = stressed } + NOT = { trait = depressed } + NOT = { trait = leper } + health = 4 + + # Not if already having a ward + NOT = { + any_ward = { + age = 6 + } + } + liege = { + NOT = { + character = ROOT + } + any_child = { + age = 6 + is_ruler = no + is_alive = yes + NOT = { age = 16 } + prisoner = no + #NOT = { + # AND = { + # is_female = yes + # religion_group = muslim + # } + #} + has_guardian = no + } + } + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 5.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = shy + } + modifier = { + factor = 0.6 + trait = diligent + } + modifier = { + factor = 0.6 + trait = gregarious + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + martial = 12 + } + modifier = { + factor = 0.5 + stewardship = 12 + } + } + + option = { + name = EVTOPTA2480 + ai_chance = { factor = 100} + liege = { + letter_event = { + id = 2481 + tooltip = EVTTOOLTIP2481 + } + } + } + option = { + name = EVTOPTB2480 + ai_chance = { factor = 0} + } +} + +# The liege is asked by a vassal to let him/her raise the child +letter_event = { + id = 2481 + desc = EVTDESC2481 + + is_triggered_only = yes + + option = { + name = EVTOPTA2481 + random_child = { + limit = { + age = 6 + NOT = { age = 16} + has_guardian = no + is_alive = yes + prisoner = no + } + set_character_flag = guardian_child + character_event = { id = 2484 tooltip = EVTTOOLTIP2484 } + } + FROM = { + letter_event = { + id = 2482 + tooltip = EVTTOOLTIP2482 + } + } + } + option = { + name = EVTOPTB2481 + FROM = { + letter_event = { + id = 2483 + tooltip = EVTTOOLTIP2483 + } + } + } +} + +# The vassal becomes the guardian of the child +letter_event = { + id = 2482 + desc = EVTDESC2482 + + is_triggered_only = yes + + option = { + name = EVTOPTA2482 + if = { + limit = { + liege = { + any_child = { + age = 6 + NOT = { age = 16} + has_guardian = no + prisoner = no + has_character_flag = guardian_child + } + } + } + liege = { + random_child = { + limit = { + age = 6 + NOT = { age = 16} + has_guardian = no + has_character_flag = guardian_child + } + set_guardian = ROOT + clr_character_flag = guardian_child + } + } + opinion = { + modifier = opinion_granted_guardianship + who = FROM + months = 24 + } + } + } +} + +# The vassal's request is denied +letter_event = { + id = 2483 + desc = EVTDESC2483 + + is_triggered_only = yes + + option = { + name = EVTOPTA2483 + opinion = { + modifier = opinion_denied_guardianship + who = FROM + months = 24 + } + } +} + +# The child is informed of the guardianship +character_event = { + id = 2484 + desc = EVTDESC2484 + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = EVTOPTA2484 + } +} + +################################### + +# Child asks guardian about religion +character_event = { + id = 38100 + desc = EVTDESC38100 + picture = GFX_evt_guardian + + min_age = 6 + max_age = 15 + only_capable = yes + lacks_dlc = "Zeus" + + trigger = { + has_guardian = yes + guardian = { + NOT = { religion = ROOT } + employer = { + religion = PREV + } + } + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.5 + guardian = { + trait = zealous + } + } + modifier = { + factor = 0.5 + guardian = { + trait = diligent + } + } + modifier = { + factor = 0.2 + guardian = { + is_priest = yes + } + } + modifier = { + factor = 2.0 + guardian = { + trait = slothful + } + } + modifier = { + factor = 2.0 + guardian = { + trait = cynical + } + } + } + + option = { + name = EVTOPTA38100 # Ask the guardian about God + #trigger = { + # NOT = { + # religion_group = muslim + # } + #} + ai_chance = { factor = 100} + guardian = { + character_event = { + id = 38101 + days = 2 + tooltip = EVTTOOLTIP38101 + } + } + piety = 5 + } + option = { + name = EVTOPTB38100 # Go play with my friends + ai_chance = { factor = 0} + piety = -5 + } + #option = { + # name = EVTOPTC38100 # Ask the guardian about Allah + # trigger = { + # religion_group = muslim + # } + # ai_chance = { factor = 100} + # guardian = { + # character_event = { + # id = 38101 + # days = 2 + # tooltip = EVTTOOLTIPA38101 + # } + # } + # piety = 5 + #} +} + +# Guardian chooses whether to convert the child +character_event = { + id = 38101 + desc = EVTDESC38101 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38101 # Teach the child the true faith + ai_chance = { factor = 100} + FROM = { + character_event = { + id = 38102 + tooltip = EVTTOOLTIP38102 + } + } + } + + option = { + name = EVTOPTB38101 # He/she will sort it out... + tooltip_info = cynical + trigger = { + trait = cynical + } + ai_chance = { factor = 0} + piety = -5 + } +} + +# Guardian chooses whether to convert the child +character_event = { + id = 38102 + desc = EVTDESC38102 + picture = GFX_evt_guardian + + is_triggered_only = yes + + option = { + name = EVTOPTA38102 # Conversion + religion = FROM + } +} + +################################### + +# Child is influenced by the culture of his or her guardian +character_event = { + id = 38110 + desc = EVTDESC38110 + picture = GFX_evt_guardian + + min_age = 6 + max_age = 15 + only_capable = yes + lacks_dlc = "Zeus" + + trigger = { + has_guardian = yes + father = { + NOT = { is_nomadic = yes } + } + guardian = { + NOT = { culture = ROOT } + employer = { + culture = PREV + } + } + } + + mean_time_to_happen = { + months = 120 + modifier = { + factor = 0.5 + guardian = { + trait = diligent + } + } + modifier = { + factor = 0.5 + guardian = { + trait = gregarious + } + } + modifier = { + factor = 2.0 + guardian = { + trait = shy + } + } + modifier = { + factor = 2.0 + guardian = { + trait = slothful + } + } + } + + option = { + name = EVTOPTA38110 + ai_chance = { factor = 100} + guardian = { + reverse_culture = ROOT + hidden_tooltip = { + character_event = { + id = 38111 + } + } + } + } + option = { + name = EVTOPTB38100 # Go play with my friends + ai_chance = { factor = 0 } + } +} + +character_event = { + id = 38111 + desc = EVTDESC38111 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38111 # What a bright child + prestige = 1 + } +} + + + + +###################################### +#38200 - CK1 ported events by Johan +###################################### + + +# Child is slow to learn to talk. +character_event = { + id = 38200 + desc = EVTDESC38200 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38200 # Encourage the child by example + + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = trusting} + } + modifier = { + factor = 2 + father = { trait = kind} + } + modifier = { + factor = 0 + father = { trait = cruel} + } + } + + random_list = { + 50 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + 25 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + 15 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + 10 = { FROM = { add_trait = stutter hidden_tooltip = { ROOT = { character_event = { id = 38153}} character_event = { id = 38253} }}} + } + + } + option = { + name = EVTOPTB38200 # Birch the words from the child + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = cruel} + } + modifier = { + factor = 2 + father = { trait = wroth} + } + modifier = { + factor = 0 + father = { trait = kind} + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 80 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254}}}} + 15 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255}}}} + 5 = { FROM = { add_trait = stutter hidden_tooltip = { ROOT = { character_event = { id = 38153}} character_event = { id = 38253}}}} + } + } + option = { + name = EVTOPTC38200 # Let the child take its time + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = arbitrary} + } + } + random_list = { + 50 = { FROM = { add_trait = stutter hidden_tooltip = { ROOT = { character_event = { id = 38153}} character_event = { id = 38253}}}} + 45 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256}}}} + 5 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + } + } + option = { + name = EVTOPTD38200 # Send this child to the nannies instead + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = slothful} + } + } + random_list = { + 50 = { FROM = { add_trait = stutter hidden_tooltip = { ROOT = { character_event = { id = 38153}} character_event = { id = 38253}}}} + 50 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + } + + } + + +} + + + +# Daddy, where do children come from? +character_event = { + id = 38201 + desc = EVTDESC38201 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38201 # Daddy will tell you when you get older + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = cynical} + } + modifier = { + factor = 2 + father = { trait = arbitrary} + } + } + random_list = { + 50 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + 30 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 20 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255} }}} + } + + } + + option = { + name = EVTOPTB38201 # You know there are bees and flowers... + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = deceitful} + } + modifier = { + factor = 2 + father = { trait = kind} + } + } + random_list = { + 50 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + 30 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255} }}} + 20 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + } + + } + + option = { + name = EVTOPTC38201 # Be silent or I'll slap you! + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = cruel} + } + modifier = { + factor = 2 + father = { trait = wroth} + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 40 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + 40 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 20 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } +} + + +# Your child is afraid of the dark +character_event = { + id = 38202 + desc = EVTDESC38202 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38202 # Ridicule the child, that should do it + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = cruel} + } + modifier = { + factor = 2 + father = { trait = slothful} + } + } + random_list = { + 50 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + 30 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 20 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + } + } + + option = { + name = EVTOPTB38202 # Try to adress the causes of the fear + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = kind} + } + modifier = { + factor = 2 + father = { trait = diligent} + } + } + random_list = { + 50 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + 30 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 20 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + } + } + option = { + name = EVTOPTC38202 # Let the child handle this alone + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = craven} + } + modifier = { + factor = 2 + father = { trait = cruel} + } + } + random_list = { + 50 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + 30 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 20 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + } + } +} + +# Your child is often involved in fights with other toddlers +character_event = { + id = 38203 + desc = EVTDESC38203 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38203 # That's good news + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = proud} + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 40 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + 30 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 20 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 10 = { FROM = { add_trait = cruel hidden_tooltip = { ROOT = { character_event = { id = 38159}} character_event = { id = 38259} }}} + } + } + + option = { + name = EVTOPTB38203 # Try to steer the child's energy elsewhere + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = diligent} + } + } + random_list = { + 50 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + 25 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 25 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } + + option = { + name = EVTOPTC38203 # Discipline the child + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = wroth} + } + } + random_list = { + 50 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 30 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + 20 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + } + } + + option = { + name = EVTOPTD38203 # Let the monks purge sin from the child + trigger = { + religion_group = christian + } + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = humble} + } + } + random_list = { + 70 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 20 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + 10 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + } + } +} + +# Your child always wants more toys +character_event = { + id = 38204 + desc = EVTDESC38204 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38204 # Let the child have them + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = slothful} + } + } + random_list = { + 70 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + 20 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 10 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + } + } + option = { + name = EVTOPTB38204 # Encourage the child to play outside instead + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = diligent} + } + } + random_list = { + 60 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 40 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + } + } + option = { + name = EVTOPTC38204 # Teach the child some humility + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = humble} + } + modifier = { + factor = 4 + father = { trait = charitable} + } + } + random_list = { + 80 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 20 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } + option = { + name = EVTOPTD38204 # Off to the nannies with you, leech! + ai_chance = { + factor = 10 + modifier = { + factor = 4 + father = { trait = greedy} + } + } + random_list = { + 90 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + 10 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } +} + +# Dad, Where is mom? +character_event = { + id = 38205 + desc = EVTDESC38205 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38205 # Mom is an angel now + trigger = { + OR = { + religion_group = christian + #religion_group = muslim + #religion_group = jewish_group + } + } + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = honest + } + modifier = { + factor = 2 + trait = zealous + } + } + random_list = { + 50 = { FROM = { add_trait = honest hidden_tooltip = { ROOT = { character_event = { id = 38162}} character_event = { id = 38262} }}} + 30 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 20 = { FROM = { add_trait = shy hidden_tooltip = { ROOT = { character_event = { id = 38163}} character_event = { id = 38263 } }}} + } + } + option = { + name = EVTOPTB38205 # Mom has gone to a long journey + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = patient + } + modifier = { + factor = 2 + trait = diligent + } + } + random_list = { + 40 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 40 = { FROM = { add_trait = patient hidden_tooltip = { ROOT = { character_event = { id = 38164}} character_event = { id = 38264} }}} + 20 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + + } + } + option = { + name = EVTOPTC38205 # Don't me ask me things like that! + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = cynical + } + modifier = { + factor = 2 + trait = deceitful + } + } + random_list = { + 50 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + 30 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255} }}} + 20 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + } + } +} + +# Your child has trouble making friends +character_event = { + id = 38206 + desc = EVTDESC38206 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38206 # Friends are overvalued commodity anyway + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = shy + } + modifier = { + factor = 2 + trait = proud + } + } + random_list = { + 50 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + 30 = { FROM = { add_trait = shy hidden_tooltip = { ROOT = { character_event = { id = 38163}} character_event = { id = 38263 } }}} + 20 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } + option = { + name = EVTOPTB38206 # Help the child along + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = gregarious + } + modifier = { + factor = 2 + trait = honest + } + } + random_list = { + 60 = { FROM = { add_trait = gregarious hidden_tooltip = { ROOT = { character_event = { id = 38165}} character_event = { id = 38265} }}} + 40 = { FROM = { add_trait = honest hidden_tooltip = { ROOT = { character_event = { id = 38162}} character_event = { id = 38262} }}} + } + } + option = { + name = EVTOPTC38206 # Give the child toys to attract friends with + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = deceitful + } + modifier = { + factor = 2 + trait = greedy + } + } + random_list = { + 60 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255}}}} + 40 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + } + } +} + +# Your child wants to play with friends instead of studying +character_event = { + id = 38207 + desc = EVTDESC38207 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38207 # He can play only after school + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = just + } + modifier = { + factor = 2 + trait = humble + } + } + random_list = { + 50 = { FROM = { add_trait = just hidden_tooltip = { ROOT = { character_event = { id = 38167}} character_event = { id = 38267 } }}} + 45 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 5 = { FROM = { add_trait = shy hidden_tooltip = { ROOT = { character_event = { id = 38163}} character_event = { id = 38263 } }}} + } + } + option = { + name = EVTOPTB38207 # Play all you like then + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = gregarious + } + modifier = { + factor = 2 + trait = proud + } + } + random_list = { + 60 = { FROM = { add_trait = gregarious hidden_tooltip = { ROOT = { character_event = { id = 38165}} character_event = { id = 38265} }}} + 30 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + 10 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + } + } + option = { + name = EVTOPTC38207 # You can play with a birch if you like, go to school! + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = wroth + } + modifier = { + factor = 2 + trait = cruel + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 70 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 30 = { FROM = { add_trait = deceitful hidden_tooltip = { ROOT = { character_event = { id = 38155}} character_event = { id = 38255}}}} + } + } +} + +# Where do heathens come from? +character_event = { + id = 38208 + desc = EVTDESC38208 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38208 # Heathens are people just like us + ai_chance = { + factor = 10 + modifier = { + factor = 4 + trait = kind + } + modifier = { + factor = 2 + trait = honest + } + modifier = { + factor = 0 + trait = zealous + } + } + random_list = { + 50 = { FROM = { add_trait = kind hidden_tooltip = { ROOT = { character_event = { id = 38168}} character_event = { id = 38268 } }}} + 40 = { FROM = { add_trait = honest hidden_tooltip = { ROOT = { character_event = { id = 38162}} character_event = { id = 38262} }}} + 10 = { FROM = { add_trait = gregarious hidden_tooltip = { ROOT = { character_event = { id = 38165}} character_event = { id = 38265} }}} + } + } + + option = { + name = EVTOPTB38208 # They are demons from Hell! + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = wroth + } + modifier = { + factor = 10 + trait = zealous + } + } + + random_list = { + 60 = { FROM = { add_trait = zealous hidden_tooltip = { ROOT = { character_event = { id = 38169}} character_event = { id = 38269 } }}} + 30 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 10 = { FROM = { add_trait = cruel hidden_tooltip = { ROOT = { character_event = { id = 38159}} character_event = { id = 38259} }}} + } + } + option = { + name = EVTOPTC38208 # They are men like us, but unbeliever enemies + ai_chance = { + factor = 10 + modifier = { + factor = 6 + trait = just + } + } + + random_list = { + 80 = { FROM = { add_trait = just hidden_tooltip = { ROOT = { character_event = { id = 38167}} character_event = { id = 38267 } }}} + 20 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + } + } +} + +#Your child is often playing very daring games with other children +character_event = { + id = 38209 + desc = EVTDESC38209 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38209 # Let the child play, what harm could there be? + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = brave + } + modifier = { + factor = 0 + trait = craven + } + } + random_list = { + 95 = { FROM = { add_trait = brave hidden_tooltip = { ROOT = { character_event = { id = 38170}} character_event = { id = 38270 } }}} + 5 = { + FROM = { + death = { + death_reason = death_accident + } + } + } + } + } + + option = { + name = EVTOPTB38209 # Try to limit the child's games a bit + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = craven + } + modifier = { + factor = 2 + trait = humble + } + } + random_list = { + 50 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 50 = { FROM = { add_trait = honest hidden_tooltip = { ROOT = { character_event = { id = 38162}} character_event = { id = 38262 } }}} + } + } + option = { + name = EVTOPTC38209 # Curfew the child! + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = slothful + } + modifier = { + factor = 2 + trait = cruel + } + } + random_list = { + 60 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + 40 = { FROM = { add_trait = shy hidden_tooltip = { ROOT = { character_event = { id = 38163}} character_event = { id = 38263 } }}} + } + } +} + +# Daddy, does God exist? +character_event = { + id = 38210 + desc = EVTDESC38210 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38210 # Of course my child, go to play now + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = trusting + } + modifier = { + factor = 2 + trait = humble + } + } + random_list = { + 70 = { FROM = { add_trait = trusting hidden_tooltip = { ROOT = { character_event = { id = 38150}} character_event = { id = 38250} }}} + 30 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + } + } + + option = { + name = EVTOPTB38210 # Certainly child, let me tell you all about Him + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = zealous + } + modifier = { + factor = 0 + trait = cynical + } + } + random_list = { + 90 = { FROM = { add_trait = zealous hidden_tooltip = { ROOT = { character_event = { id = 38169}} character_event = { id = 38269 } }}} + 10 = { FROM = { add_trait = kind hidden_tooltip = { ROOT = { character_event = { id = 38168}} character_event = { id = 38268 } }}} + } + } + option = { + name = EVTOPTC38210 # My child, let me explain how things really are... + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = cynical + } + modifier = { + factor = 0 + trait = zealous + } + } + random_list = { + 70 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + 30 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + } + } +} + +# Why do people die? +character_event = { + id = 38211 + desc = EVTDESC38211 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38211 # Because they are too carefree + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = patient + } + modifier = { + factor = 2 + trait = craven + } + } + random_list = { + 60 = { FROM = { add_trait = patient hidden_tooltip = { ROOT = { character_event = { id = 38164}} character_event = { id = 38264} }}} + 30 = { FROM = { add_trait = craven hidden_tooltip = { ROOT = { character_event = { id = 38157}} character_event = { id = 38257} }}} + 10 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } + + option = { + name = EVTOPTB38211 # Everyone dies, sooner or later + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = brave + } + modifier = { + factor = 2 + trait = arbitrary + } + } + random_list = { + 50 = { FROM = { add_trait = brave hidden_tooltip = { ROOT = { character_event = { id = 38170}} character_event = { id = 38270 } }}} + 50 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + } + } + option = { + name = EVTOPTC38211 # It's all part of God's plan + trigger = { + religion_group = christian + } + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = honest + } + modifier = { + factor = 8 + trait = zealous + } + } + random_list = { + 70 = { FROM = { add_trait = honest hidden_tooltip = { ROOT = { character_event = { id = 38162}} character_event = { id = 38262 } }}} + 30 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + } + } +} + +# Will I rule one day? +character_event = { + id = 38212 + desc = EVTDESC38212 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38212 # Of course you will... + trigger = { + FROM = { + OR = { + father = { is_ruler = yes} + is_primary_heir = yes + } + } + } + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = proud + } + modifier = { + factor = 0 + trait = envious + } + } + random_list = { + 80 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + 10 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + 10 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } + + option = { + name = EVTOPTB38212 # If you deserve it, you shall + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = gregarious + } + modifier = { + factor = 5 + trait = diligent + } + modifier = { + factor = 5 + trait = ambitious + } + } + random_list = { + 40 = { FROM = { add_trait = ambitious hidden_tooltip = { ROOT = { character_event = { id = 38178}} character_event = { id = 38278} }}} + 40 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 20 = { FROM = { add_trait = gregarious hidden_tooltip = { ROOT = { character_event = { id = 38165}} character_event = { id = 38265} }}} + } + } + option = { + name = EVTOPTC38212 # No you won't, silly child! + ai_chance = { + factor = 10 + modifier = { + factor = 10 + trait = envious + } + modifier = { + factor = 0 + FROM = { + is_father = prev + } + } + } + random_list = { + 70 = { FROM = { add_trait = envious hidden_tooltip = { ROOT = { character_event = { id = 38171}} character_event = { id = 38271 } }}} + 20 = { FROM = { add_trait = humble hidden_tooltip = { ROOT = { character_event = { id = 38160}} character_event = { id = 38260 } }}} + 10 = { FROM = { add_trait = slothful hidden_tooltip = { ROOT = { character_event = { id = 38151}} character_event = { id = 38251} }}} + } + } +} + +# Your child has developed a habit for wild parties. +character_event = { + id = 38213 + desc = EVTDESC38213 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38213 # There is nothing I can do + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 5 + trait = lustful + } + } + random_list = { + 60 = { + FROM = { + add_trait = charitable + hidden_tooltip = { + ROOT = { + character_event = { + id = 38173 + } + } + character_event = { + id = 38273 + } + } + } + } + 40 = { + FROM = { + add_trait = lustful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38172 + } + } + character_event = { + id = 38272 + } + } + } + } + } + } + + option = { + name = EVTOPTB38213 # Curfews! + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = arbitrary + } + modifier = { + factor = 20 + trait = chaste + } + } + + random_list = { + 60 = { + FROM = { + add_trait = arbitrary + hidden_tooltip = { + ROOT = { + character_event = { + id = 38166 + } + } + character_event = { + id = 38266 + } + } + } + } + 40 = { + FROM = { + add_trait = chaste + hidden_tooltip = { + ROOT = { + character_event = { + id = 38174 + } + } + character_event = { + id = 38274 + } + } + } + } + } + } +} + +# If we're Catholic and our enemies are Catholic, why are we fighting? +character_event = { + id = 38214 + desc = EVTDESC38214 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38214 # Fighting heathens is just silly church thing + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = cynical + } + modifier = { + factor = 2 + trait = arbitrary + } + } + + random_list = { + 50 = { FROM = { add_trait = cynical hidden_tooltip = { ROOT = { character_event = { id = 38158}} character_event = { id = 38258} }}} + 50 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + } + } + option = { + name = EVTOPTB38214 # I fight who I like! + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 2 + trait = cruel + } + } + + random_list = { + 50 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 30 = { FROM = { add_trait = cruel hidden_tooltip = { ROOT = { character_event = { id = 38159}} character_event = { id = 38259} }}} + 20 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + } + } + option = { + name = EVTOPTC38214 # Sometimes, even your brother can be an enemy + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { trait = paranoid} + } + } + + random_list = { + 50 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + 45 = {} + 5 = { FROM = { add_trait = paranoid hidden_tooltip = { ROOT = { character_event = { id = 38175}} character_event = { id = 38275} }}} + } + } +} + +# Why is the church so rich when the peasants are starving and poor? +character_event = { + id = 38215 + desc = EVTDESC38215 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38215 # Because for the poor is the kingdom of heaven + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = greedy + } + modifier = { + factor = 5 + trait = zealous + } + } + + random_list = { + 70 = { FROM = { add_trait = zealous hidden_tooltip = { ROOT = { character_event = { id = 38169}} character_event = { id = 38269 } }}} + 30 = { FROM = { add_trait = greedy hidden_tooltip = { ROOT = { character_event = { id = 38152}} character_event = { id = 38252} }}} + } + } + option = { + name = EVTOPTB38215 # How about sharing of your own then? + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 3 + trait = just + } + } + + random_list = { + 70 = { FROM = { add_trait = charitable hidden_tooltip = { ROOT = { character_event = { id = 38173}} character_event = { id = 38273} }}} + 30 = { FROM = { add_trait = just hidden_tooltip = { ROOT = { character_event = { id = 38167}} character_event = { id = 38267 } }}} + } + } +} + +# Why did you let off that peasant accused from poaching? +character_event = { + id = 38216 + desc = EVTDESC38216 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38216 # Because he needed the deer more than me + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = just + } + modifier = { + factor = 5 + trait = kind + } + } + + random_list = { + 70 = { FROM = { add_trait = kind hidden_tooltip = { ROOT = { character_event = { id = 38168}} character_event = { id = 38268 } }}} + 30 = { FROM = { add_trait = just hidden_tooltip = { ROOT = { character_event = { id = 38167}} character_event = { id = 38267 } }}} + } + } + + option = { + name = EVTOPTB38216 # A good deed in a day keeps man happy + ai_chance = { + factor = 10 + modifier = { + factor = 3 + trait = arbitrary + } + modifier = { + factor = 5 + trait = kind + } + } + + random_list = { + 70 = { FROM = { add_trait = kind hidden_tooltip = { ROOT = { character_event = { id = 38168}} character_event = { id = 38268 } }}} + 30 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + } + } +} + +# These peasants we have are all mine to command like little slaves, right? +character_event = { + id = 38217 + desc = EVTDESC38217 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38217 # That's right child + ai_chance = { + factor = 10 + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 5 + trait = arbitrary + } + } + + random_list = { + 50 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + 40 = { FROM = { add_trait = cruel hidden_tooltip = { ROOT = { character_event = { id = 38159}} character_event = { id = 38259} }}} + 10 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + } + } + + option = { + name = EVTOPTB38217 # That's it, you're under curfew! + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = wroth + } + modifier = { + factor = 2 + trait = proud + } + } + + random_list = { + 80 = { FROM = { add_trait = wroth hidden_tooltip = { ROOT = { character_event = { id = 38154}} character_event = { id = 38254} }}} + 20 = { FROM = { add_trait = proud hidden_tooltip = { ROOT = { character_event = { id = 38161}} character_event = { id = 38261} }}} + } + } +} + +# If a tree falls in the woods and there's nobody there to hear it, does it make a noise? +character_event = { + id = 38218 + desc = EVTDESC38218 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38218 # Good question, you should ponder it on your own + random_list = { + 70 = { change_learning = 1} + 30 = { FROM = { add_trait = shy hidden_tooltip = { ROOT = { character_event = { id = 38163}} character_event = { id = 38263 } }}} + } + } + + option = { + name = EVTOPTB38218 # You should concentrate on something useful instead + random_list = { + 70 = { FROM = { add_trait = diligent hidden_tooltip = { ROOT = { character_event = { id = 38156}} character_event = { id = 38256} }}} + 20 = { FROM = { add_trait = arbitrary hidden_tooltip = { ROOT = { character_event = { id = 38166}} character_event = { id = 38266} }}} + 10 = { change_learning = -1} + } + } +} + +# Since we all die anyway, why to be so hassled about life? +character_event = { + id = 38219 + desc = EVTDESC38219 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38219 # I suppose you are right + ai_chance = { + factor = 10 + modifier = { + factor = 3 + trait = chaste + } + modifier = { + factor = 3 + trait = temperate + } + } + + random_list = { + 50 = { + FROM = { + add_trait = chaste + hidden_tooltip = { + ROOT = { + character_event = { + id = 38174 + } + } + character_event = { + id = 38274 + } + } + } + } + 50 = { FROM = { add_trait = temperate hidden_tooltip = { ROOT = { character_event = { id = 38176}} character_event = { id = 38276 } }}} + } + } + + option = { + name = EVTOPTB38219 # But what about the enjoyment? + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = lustful + } + modifier = { + factor = 5 + trait = gluttonous + } + } + + random_list = { + 50 = { FROM = { add_trait = lustful hidden_tooltip = { ROOT = { character_event = { id = 38172}} character_event = { id = 38272} }}} + 50 = { FROM = { add_trait = gluttonous hidden_tooltip = { ROOT = { character_event = { id = 38177}} character_event = { id = 38277 } }}} + } + } +} + +#How can I best serve God? +character_event = { + id = 38220 + desc = EVTDESC38220 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38220 # Be brave against His enemies! + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = brave + } + } + random_list = { + 80 = { FROM = { add_trait = brave hidden_tooltip = { ROOT = { character_event = { id = 38170}} character_event = { id = 38270 } }}} + 20 = { FROM = { add_trait = zealous hidden_tooltip = { ROOT = { character_event = { id = 38169}} character_event = { id = 38269 } }}} + } + } + + option = { + name = EVTOPTB38220 # Be just to all His children + ai_chance = { + factor = 10 + modifier = { + factor = 5 + trait = just + } + } + random_list = { + 80 = { FROM = { add_trait = just hidden_tooltip = { ROOT = { character_event = { id = 38167}} character_event = { id = 38267 } }}} + 20 = { FROM = { add_trait = zealous hidden_tooltip = { ROOT = { character_event = { id = 38169}} character_event = { id = 38269 } }}} + } + } +} + +# Female Ward is playing with swords instead of sewing +character_event = { + id = 38221 + desc = EVTDESC38221 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38221 #Let her do it + ai_chance = { + factor = 10 + + modifier = { + factor = 100 + trait = arbitrary + } + modifier = { + factor = 100 + trait = brave + } + } + FROM = { + random_list = { + 75 = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is brave + } + } + character_event = { + id = 38270 #Notify Brave + } + } + } + 25 = { + add_trait = wounded + hidden_tooltip = { + ROOT = { + character_event = { + id = 38180 #Notify Child is brave + } + } + character_event = { + id = 38280 #Notify Brave + } + } + } + } + } + } + option = { + name = EVTOPTB38221 + ai_chance = { + factor = 10 + + modifier = { + factor = 100 + trait = just + } + } + FROM = { + random_list = { + 75 = { + add_trait = just + hidden_tooltip = { + ROOT = { + character_event = { + id = 38167 #Notify Child is just + } + } + character_event = { + id = 38267 #Notify Just + } + } + } + 25 = { + add_trait = humble + hidden_tooltip = { + ROOT = { + character_event = { + id = 38160 #Notify Child is humble + } + } + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + } +} + +# Ward is ridiculed for cowardness +character_event = { + id = 38222 + desc = EVTDESC38222 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38222 #Show him how to fight yourself + tooltip_info = martial + trigger = { + martial = 10 + } + FROM = { + change_martial = 1 + change_learning = -1 + } + } + option = { + name = EVTOPTB38222 #Speak up for the child + trigger = { + any_courtier = { + age = 8 + NOT = { age = 16} + NOT = { character = FROM } + } + } + any_courtier = { + limit = { + age = 8 + NOT = { age = 16} + NOT = { character = FROM } + } + opinion = { + modifier = opinion_coward + who = FROM + years = 2 + } + } + FROM = { + random = { + chance = 10 + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 #Notify Child is shy + } + } + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } + option = { + name = EVTOPTC38222 #Tell him/her not to worry + FROM = { + change_learning = 1 + random_list = { + 50 = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 #Notify Child is shy + } + } + character_event = { + id = 38263 #Notify Shy + } + } + } + 50 = { + add_trait = humble + hidden_tooltip = { + ROOT = { + character_event = { + id = 38160 #Notify Child is humble + } + } + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + } +} + +# Ward is sneaking through the dungeons, and comes up with a bloody knife it found +character_event = { + id = 38223 + desc = EVTDESC38223 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38223 #I'll teach him/her some useful skills + #tooltip_info = + trigger = { + OR = { + trait = cruel + trait = impaler + trait = wroth + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + FROM = { + random_list = { + 50 = { + add_trait = cruel + hidden_tooltip = { + ROOT = { + character_event = { + id = 38159 #Notify Child is cruel + } + } + character_event = { + id = 38259 #Notify Cruel + } + } + } + 25 = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 #Notify Child is wroth + } + } + character_event = { + id = 38254 #Notify Wroth + } + } + } + 25 = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 #Notify Child is craven + } + } + character_event = { + id = 38257 #Notify Craven + } + } + } + } + opinion = { + modifier = opinion_happy_with_guardian + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB38223 # + tooltip_info = arbitrary + trigger = { + trait = arbitrary + } + FROM = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify deceitful + } + } + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC38223 + trigger = { + NOT = { + trait = cruel + } + NOT = { + trait = impaler + } + NOT = { + trait = wroth + } + NOT = { + trait = arbitrary + } + } + FROM = { + random_list = { + 50 = { + add_trait = kind + hidden_tooltip = { + ROOT = { + character_event = { + id = 38168 #Notify Child is kind + } + } + character_event = { + id = 38268 #Notify Kind + } + } + } + 25 = { + add_trait = patient + hidden_tooltip = { + ROOT = { + character_event = { + id = 38164 #Notify Child is patient + } + } + character_event = { + id = 38264 #Notify Patient + } + } + } + 25 = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is brave + } + } + character_event = { + id = 38270 #Notify Brave + } + } + } + } + } + } +} + +# Ward hides away to read books +character_event = { + id = 38224 + desc = EVTDESC38224 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38224 #Take pride in your learning + FROM = { + if = { + limit = { + ROOT = { + learning = 10 + } + } + change_learning = 1 + } + random_list = { + 65 = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 #Notify Child is proud + } + } + character_event = { + id = 38261 #Notify Proud + } + } + } + 35 = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 #Notify Child is shy + } + } + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } + } + option = { + name = EVTOPTB38224 #Joke about bookworm + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = cruel + } + } + FROM = { + random_list = { + 75 = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 #Notify Child is shy + } + } + character_event = { + id = 38263 #Notify Shy + } + } + } + 25 = { + add_trait = humble + hidden_tooltip = { + ROOT = { + character_event = { + id = 38160 #Notify Child is humble + } + } + character_event = { + id = 38260 #Notify Humble + } + } + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 5 + } + } + } + } + } + + option = { + name = EVTOPTC38224 #Encourage more activities with others. + FROM = { + random_list = { + 50 = { + add_trait = gregarious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38165 #Notify Child is gregarious + } + } + character_event = { + id = 38265 #Notify Gregarious + } + } + } + 50 = { + add_trait = humble + hidden_tooltip = { + ROOT = { + character_event = { + id = 38160 #Notify Child is humble + } + } + character_event = { + id = 38260 #Notify Humble + } + } + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 5 + } + } + } + } + } +} + +# Ugly Ward +character_event = { + id = 38225 + desc = EVTDESC38225 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38225 #You can never be as good looking + FROM = { + random_list = { + 80 = { + add_trait = envious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38171 #Notify Child is envious + } + } + character_event = { + id = 38271 #Notify Envious + } + } + } + 20 = { + add_trait = ambitious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38178 #Notify Child is ambitious + } + } + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + } + } + option = { + name = EVTOPTB38225 #You look fine to me + FROM = { + random_list = { + 75 = { + add_trait = arbitrary + hidden_tooltip = { + ROOT = { + character_event = { + id = 38166 #Notify Child is arbitrary + } + } + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + 25 = { + add_trait = content + hidden_tooltip = { + ROOT = { + character_event = { + id = 38179 #Notify Child is content + } + } + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + } +} + +# Fair ward +character_event = { + id = 38226 + desc = EVTDESC38226 + picture = GFX_evt_child_play + + is_triggered_only = yes + + trigger = { + has_guardian = yes + } + + option = { + name = EVTOPTA38226 #Encourage flaunting beauty + FROM = { + random_list = { + 80 = { + add_trait = envious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38171 #Notify Child is envious + } + } + character_event = { + id = 38271 #Notify Envious + } + } + } + 30 = { + add_trait = ambitious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38178 #Notify Child is ambitious + } + } + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + } + } + option = { + name = EVTOPTB38226 + FROM = { + random_list = { + 75 = { + add_trait = arbitrary + hidden_tooltip = { + ROOT = { + character_event = { + id = 38166 #Notify Child is arbitrary + } + } + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + 25 = { + add_trait = content + hidden_tooltip = { + ROOT = { + character_event = { + id = 38179 #Notify Child is content + } + } + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + } +} + +# Ward shows a tendency to count money whenever possible... +character_event = { + id = 38227 + desc = EVTDESC38227 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38227 #Teach X about joys of money + if = { + limit = { + stewardship = 10 + } + FROM = { + change_stewardship = 1 + } + } + if = { + limit = { + FROM = { + is_smart_trigger = yes + } + } + FROM = { + change_stewardship = 1 + } + } + FROM = { + random_list = { + 75 = { + add_trait = greedy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38152 #Notify Child is greedy + } + } + character_event = { + id = 38252 #Notify Greedy + } + } + } + 25 = { + add_trait = charitable + hidden_tooltip = { + ROOT = { + character_event = { + id = 38173 #Notify Child is charitable + } + } + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + } + } + option = { + name = EVTOPTB38227 #Tell about the joys of giving money + if = { + limit = { + trait = greedy + } + prestige = -5 + } + FROM = { + random_list = { + 75 = { + add_trait = charitable + hidden_tooltip = { + ROOT = { + character_event = { + id = 38173 #Notify Child is charitable + } + } + character_event = { + id = 38273 #Notify Charitable + } + } + } + 25 = { + change_stewardship = 1 + } + } + } + } + option = { + name = EVTOPTC38227 #Money is for god + trigger = { + religion_group = christian + } + FROM = { + random_list = { + 75 = { + add_trait = zealous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38169 #Notify Child is zealous + } + } + character_event = { + id = 38269 #Notify Zealous + } + } + } + 25 = { + add_trait = charitable + hidden_tooltip = { + ROOT = { + character_event = { + id = 38173 #Notify Child is charitable + } + } + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + } + } +} + +# Ward shows interest in visitors to the court +character_event = { + id = 38228 + desc = EVTDESC38228 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38228 #Introduce him to visitors + ai_chance = { + factor = 99 + + modifier = { + factor = 0.01 + trait = shy + } + } + if = { + limit = { + diplomacy = 10 + } + FROM = { + change_diplomacy = 1 + } + } + if = { + limit = { + FROM = { + is_smart_trigger = yes + } + } + FROM = { + change_diplomacy = 1 + } + } + FROM = { + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + option = { + name = EVTOPTB38228 #Tell him to stop it! + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = shy + } + } + if = { + limit = { + trait = gregarious + } + prestige = -5 + } + FROM = { + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38163 #Notify Child is gregarious + } + } + character_event = { + id = 38263 #Notify Gregarious + } + } + } + 20 = { + add_trait = gregarious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38165 #Notify Child is gregarious + } + } + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + } + } +} + +# Ward constantly plays with swords and practices fighting with older men +character_event = { + id = 38229 + desc = EVTDESC38229 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38229 #This will turn him into a great knight! + #trigger = { + # NOT = { + # religion_group = muslim + # } + #} + if = { + limit = { + martial = 10 + } + FROM = { + change_martial = 1 + } + } + if = { + limit = { + FROM = { + is_smart_trigger = yes + } + } + FROM = { + change_martial = 1 + } + } + if = { + limit = { + FROM = { + NOT = { + trait = brave + } + } + } + FROM = { + random_list = { + 40 = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is brave + } + } + character_event = { + id = 38270 #Notify Brave + } + } + } + 30 = { + add_trait = diligent + hidden_tooltip = { + ROOT = { + character_event = { + id = 38156 #Notify Child is diligent + } + } + character_event = { + id = 38256 #Notify Diligent + } + } + } + 20 = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 #Notify Child is proud + } + } + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } + } + if = { + limit = { + FROM = { + trait = brave + } + } + FROM = { + random_list = { + 60 = { + add_trait = diligent + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is Diligent + } + } + character_event = { + id = 38270 #Notify Diligent + } + } + } + 40 = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 #Notify Child is proud + } + } + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } + } + } + option = { + name = EVTOPTB38229 #Make sure he does not hurt himself + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = craven + } + modifier = { + factor = 100 + NOT = { trait = cruel } + } + } + if = { + limit = { + OR = { + trait = brave + trait = proud + trait = diligent + } + } + prestige = -5 + } + FROM = { + random_list = { + 80 = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 #Notify Child is craven + } + } + character_event = { + id = 38257 #Notify Craven + } + } + } + 20 = { + add_trait = proud + hidden_tooltip = { + ROOT = { + character_event = { + id = 38161 #Notify Child is proud + } + } + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } + } +} + +### Ward's first kiss ### +character_event = { + id = 38230 + desc = EVTDESC38230 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38230 #Teach about courtly love + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = kind + } + modifier = { + factor = 100 + trait = gregarious + } + } + FROM = { + if = { + limit = { + NOT = { + uses_decadence = yes + } + } + random_list = { + 75 = { + add_trait = chaste + hidden_tooltip = { + ROOT = { + character_event = { + id = 38174 #Notify Child is chaste + } + } + character_event = { + id = 38274 #Notify Chaste + } + } + } + 25 = { + add_trait = lustful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38172 #Notify Child is chaste + } + } + character_event = { + id = 38272 #Notify Chaste + } + } + } + } + } + } + } + option = { + name = EVTOPTB38230 #Lecture about virtues and sins + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = zealous + } + } + FROM = { + random_list = { + 40 = { + if = { + limit = { + NOT = { + uses_decadence = yes + } + } + add_trait = chaste + hidden_tooltip = { + ROOT = { + character_event = { + id = 38174 #Notify Child is chaste + } + } + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + 30 = { + add_trait = deceitful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38155 #Notify Child is deceitful + } + } + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 25 = { + add_trait = zealous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38169 #Notify Child is zealous + } + } + character_event = { + id = 38269 #Notify Zealous + } + } + } + 5 = { + add_trait = paranoid + hidden_tooltip = { + ROOT = { + character_event = { + id = 38175 #Notify Child is zealous + } + } + character_event = { + id = 38275 #Notify Zealous + } + } + } + } + } + } +} + +#Boy is spending all his time in the kitchen, risk becoming gluttonous and craven +character_event = { + id = 38231 + desc = EVTDESC38231 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38231 #Force him to learn how to fight + FROM = { + random_list = { + 80 = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is brave + } + } + character_event = { + id = 38270 #Notify Brave + } + } + } + 10 = { + add_trait = gluttonous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38177 #Notify Child is gluttonous + } + } + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + 10 = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 #Notify Child is craven + } + } + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } + } + option = { + name = EVTOPTB38231 #This is not my concern (Let him eat until he bursts!) + FROM = { + random_list = { + 80 = { + add_trait = gluttonous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38177 #Notify Child is gluttonous + } + } + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + 20 = { + change_martial = -1 + } + } + } + } +} + +# Too curious a child: Find ward in the highest tower +character_event = { + id = 38232 + desc = EVTDESC38232 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38232 #Curiousity has never killed anyone! + FROM = { + random_list = { + 50 = { + add_trait = honest + hidden_tooltip = { + ROOT = { + character_event = { + id = 38162 #Notify Child is honest + } + } + character_event = { + id = 38262 #Notify Honest + } + } + } + 35 = { + add_trait = brave + hidden_tooltip = { + ROOT = { + character_event = { + id = 38170 #Notify Child is brave + } + } + character_event = { + id = 38270 #Notify Brave + } + } + } + 10 = { + add_trait = wounded + hidden_tooltip = { + ROOT = { + character_event = { + id = 38180 #Notify Child is wounded + } + } + character_event = { + id = 38280 #Notify Wounded + } + } + } + 5 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + ROOT = { + character_event = { + id = 38181 #Notify Child is maimed + } + } + } + } + } + } + } + option = { + name = EVTOPTB38232 #Teach her/him a lesson! + ai_chance = { + factor = 1 + modifier = { + factor = 0 + NOT = { trait = cruel } + NOT = { trait = wroth } + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + FROM = { + random_list = { + 80 = { + add_maimed_trait_effect = yes + hidden_tooltip = { + ROOT = { + character_event = { + id = 38181 #Notify Child is maimed + } + } + } + opinion = { + modifier = opinion_murder_attempt + who = ROOT + years = 5 + } + } + 20 = { + set_character_flag = murdered_by_guardian + death = { + death_reason = death_murder_unknown_fall + killer = ROOT + } + } + } + } + set_character_flag = murdered_fosterling + } + option = { + name = EVTOPTC38232 #Strictly forbid + if = { + limit = { + FROM = { + OR = { + intrigue = 6 + martial = 6 + } + } + } + FROM = { + random_list = { + 90 = { + add_trait = deceitful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38155 #Notify Child is deceitful + } + } + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 10 = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 #Notify Child is craven + } + } + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } + } + if = { + limit = { + FROM = { + NOT = { + intrigue = 6 + } + NOT = { + martial = 6 + } + } + } + FROM = { + random_list = { + 50 = { + add_trait = deceitful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38155 #Notify Child is deceitful + } + } + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 50 = { + add_trait = craven + hidden_tooltip = { + ROOT = { + character_event = { + id = 38157 #Notify Child is craven + } + } + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } + } + } +} + +# Ward is Ill +character_event = { + id = 38233 + desc = EVTDESC38233 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38233 #Make the child fast to atone for its sins + trigger = { + religion_group = christian + } + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + trait = zealous + } + } + FROM = { + random_list = { + 45 = { + add_trait = pneumonic + } + 50 = { + remove_trait = ill #Not triggered with Reapers + hidden_tooltip = { + ROOT = { + character_event = { + id = 38183 #Notify Child is no longer ill + } + } + character_event = { + id = 38283 #Notify Remove Ill + } + } + } + 5 = { + death = { + death_reason = death_murder_unknown + killer = ROOT + } + set_character_flag = murdered_by_guardian + } + } + if = { + limit = { + trait = gluttonous + NOT = { + trait = zealous + } + } + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 2 + } + } + } + } + option = { + name = EVTOPTB38233 #Pay a doctor to cure ward + ai_chance = { + factor = 1 + + modifier = { + factor = 100 + NOT = { trait = cruel } + } + modifier = { + factor = 100 + trait = kind + } + } + scaled_wealth = -0.5 + FROM = { + random_list = { + 50 = { + remove_trait = ill + hidden_tooltip = { + ROOT = { + character_event = { + id = 38183 #Notify Child is no longer ill + } + } + character_event = { + id = 38283 #Notify Remove Ill + } + } + } + 5 = { + death = { + death_reason = death_trait + } + } + 45 = {} + } + } + } + option = { + name = EVTOPTC38233 #Only God decides over life and death + trigger = { + religion_group = christian + } + FROM = { + random = { + chance = 60 + + death = { + death_reason = death_trait + } + if = { + limit = { + father = { + is_alive = yes + } + } + father = { + opinion = { + modifier = opinion_killed_close_kin + who = ROOT + years = 5 + } + } + } + if = { + limit = { + father_even_if_dead = { + is_alive = no + } + mother = { + is_alive = yes + } + } + mother = { + opinion = { + modifier = opinion_killed_close_kin + who = ROOT + years = 5 + } + } + } + } + } + } +} + +# Homosexual Ward +character_event = { + id = 38234 + desc = EVTDESC38234 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38234 #Make the child fast to atone for its sins + trigger = { + religion_group = christian + } + ai_chance = { + factor = 10 + + modifier = { + factor = 9 + trait = zealous + } + } + FROM = { + random = { + chance = 20 + + remove_trait = homosexual + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 5 + } + } + } + } + option = { + name = EVTOPTB38234 #Try to beat it out of him/her + ai_chance = { + factor = 10 + + modifier = { + factor = 9 + trait = cruel + } + } + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + FROM = { + random = { + chance = 10 + + remove_trait = homosexual + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 5 + } + } + } + } + option = { + name = EVTOPTC38234 #S/he will grow out of it + FROM = { + random = { + chance = 25 + + add_trait = trusting + hidden_tooltip = { + ROOT = { + character_event = { + id = 38150 #Notify Child is trusting + } + } + character_event = { + id = 38250 #Notify Trusting + } + } + } + } + } +} + +# Ward is good at talking to people, and have no problem getting friends +character_event = { + id = 38235 + desc = EVTDESC38235 + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA38235 #the goal justifies the means. + ai_chance= { + factor = 1 + + modifier = { + factor = 100 + trait = deceitful + } + } + if = { + limit = { + intrigue = 10 + } + FROM = { + change_intrigue = 1 + } + } + FROM = { + if = { + limit = { + is_smart_trigger = yes + } + change_intrigue = 1 + } + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Trusting + } + } + } + } + option = { + name = EVTOPTB38235 #your tongue will cause you problems! + ai_chance= { + factor = 1 + + modifier = { + factor = 100 + trait = honest + } + } + if = { + limit = { + trait = deceitful + } + prestige = -10 + } + FROM = { + random_list = { + 80 = { + add_trait = honest + hidden_tooltip = { + ROOT = { + character_event = { + id = 38162 #Notify Child is honest + } + } + character_event = { + id = 38262 #Notify Honest + } + } + } + 20 = { + add_trait = deceitful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38155 #Notify Child is deceitful + } + } + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + } + } +} + + +#A child is missing a guardian +character_event = { + id = 2490 + desc = EVTDESC2490 + picture = GFX_evt_child_bully + + is_triggered_only = yes + + option = { + name = EVTOPTA2490 + trigger = { + age = 16 + } + FROM = { + set_guardian = ROOT + } + prestige = -2 + } + + option = { + name = EVTOPTB2490 + random_list = { + 10 = { + FROM = { + add_trait = arbitrary + hidden_tooltip = { + ROOT = { + character_event = { + id = 38166 #Notify ROOT child is arbitrary + } + } + character_event = { + id = 38266 #Notify arbitrary + } + } + } + } + 10 = { + FROM = { + add_trait = cruel + hidden_tooltip = { + ROOT = { + character_event = { + id = 38159 #Notify ROOT child is cruel + } + } + character_event = { + id = 38259 #Notify cruel + } + } + } + } + 10 = { + FROM = { + add_trait = gluttonous + hidden_tooltip = { + ROOT = { + character_event = { + id = 38177 #Notify ROOT child is gluttonous + } + } + character_event = { + id = 38277 #Notify gluttonous + } + } + } + } + 10 = { + FROM = { + add_trait = slothful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38151 #Notify ROOT child is slothful + } + } + character_event = { + id = 38251 #Notify slothful + } + } + } + } + 10 = { + FROM = { + add_trait = lustful + hidden_tooltip = { + ROOT = { + character_event = { + id = 38172 #Notify ROOT child is lustful + } + } + character_event = { + id = 38272 #Notify lustful + } + } + } + } + 10 = { + FROM = { + add_trait = wroth + hidden_tooltip = { + ROOT = { + character_event = { + id = 38154 #Notify ROOT child is wroth + } + } + character_event = { + id = 38254 #Notify wroth + } + } + } + } + 10 = { + FROM = { + add_trait = envious + hidden_tooltip = { + ROOT = { + character_event = { + id = 38171 #Notify ROOT child is envious + } + } + character_event = { + id = 38271 #Notify envious + } + } + } + } + 10 = { + FROM = { + add_trait = greedy + hidden_tooltip = { + ROOT = { + character_event = { + id = 38152 #Notify ROOT child is greedy + } + } + character_event = { + id = 38252 #Notify greedy + } + } + } + } + } + } +} diff --git a/After the End/events/health_events.txt b/After the End/events/health_events.txt new file mode 100644 index 000000000..149daadab --- /dev/null +++ b/After the End/events/health_events.txt @@ -0,0 +1,4038 @@ +################################### +# +# Health Events +# +# Id 6000-6499 is reserved +# +################################### +# +# Written by Sara Wendel-Örtqvist +# and Chris King +# and Henrik Eklund + +#Syphilitic +character_event = { + id = 6000 + desc = EVTDESC6000 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + lacks_dlc = "Reapers" + + trigger = { + NOT = { + trait = syphilitic + } + NOT = { + trait = celibate + } + NOT = { + trait = infirm + } + OR = { + NOT = { trait = chaste } + spouse = { + is_alive = yes + is_abroad = no + trait = syphilitic + } + } + } + + mean_time_to_happen = { + months = 20000 + + modifier = { + factor = 0.1 + spouse = { + trait = syphilitic + } + } + modifier = { + factor = 0.5 + in_command = yes + } + modifier = { + factor = 0.5 + trait = lustful + } + modifier = { + factor = 0.6 + trait = hedonist + } + + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA6000 + add_trait = syphilitic + blessing_removes_disease_effect = yes + deaths_gift_removes_disease_effect = yes + } +} + +#Remove Syphilitic +character_event = { + id = 6001 + desc = EVTDESC6001 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + min_age = 16 + is_sick = yes + only_capable = yes + lacks_dlc = "Reapers" + + trigger = { + health = 6 + trait = syphilitic + } + + mean_time_to_happen = { + months = 25000 + + modifier = { + factor = 0.5 + health = 8 + } + modifier = { + factor = 0.5 + health = 9 + } + } + + option = { + name = EVTOPTA6001 + remove_trait = syphilitic + } +} + +#Leper +character_event = { + id = 6010 + desc = EVTDESC6010 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + min_age = 10 + only_capable = yes + + trigger = { + NOT = { + trait = leper + } + NOT = { health = 5 } + } + + mean_time_to_happen = { + months = 25000 + + modifier = { + factor = 0.5 + NOT = { + health = 4 + } + } + modifier = { + factor = 0.5 + in_command = yes + } + modifier = { + factor = 0.5 + any_courtier = { + trait = leper + } + } + modifier = { + factor = 0.5 + is_weak_trigger = yes + } + modifier = { + factor = 0.5 + OR = { + trait = infection + trait = severely_injured + trait = wounded + } + } + modifier = { + factor = 0.5 + trait = charitable + } + + } + + option = { + name = EVTOPTA6010 + add_trait = leper + if = { + limit = { + has_dlc = "Reapers" + } + set_character_flag = new_leper_character + host = { + random_courtier_or_vassal = { + limit = { + liege = { character = PREVPREV } + has_minor_title = title_court_physician + } + character_event = { id = RIP.11031 days = 1 } + } + } + character_event = { id = RIP.11063 days = 20 } + } + + hidden_tooltip = { + random_list ={ + 100 = { + character_event = { id = RIP.5041 days = 365 random = 50 } + } + 75 = { + character_event = { id = RIP.5041 days = 1500 random = 300 } + } + 30 = { + character_event = { id = RIP.5041 days = 3000 random = 600 } + } + } + } + } +} + +#Remove Leper +character_event = { + id = 6011 + desc = EVTDESC6011 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + min_age = 16 + is_sick = yes + only_capable = yes + + trigger = { + health = 4 + treasury = 25 + trait = leper + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + } + + mean_time_to_happen = { + months = 25000 + } + + option = { + name = EVTOPTA6011 + remove_trait = leper + treasury = -25 + } +} + +# Become Lunatic +character_event = { + id = 6020 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + desc = { + text = EVTDESC6020 + trigger = { + is_ill = no + NOT = { trait = paranoid } + NOT = { trait = zealous } + NOT = { trait = incapable } + prisoner = no + } + } + desc = { + text = EVTDESC6020_PARA + trigger = { + trait = paranoid + NOT = { trait = incapable } + } + } + desc = { + text = EVTDESC6020_FEVER + trigger = { + is_ill = yes + NOT = { trait = incapable } + } + } + desc = { + text = EVTDESC6020_ZEAL + trigger = { + trait = zealous + NOT = { trait = incapable } + } + } + desc = { + text = EVTDESC6020_PRISON + trigger = { + prisoner = yes + NOT = { trait = incapable } + } + } + desc = { + text = EVTDESC6020_COMA + trigger = { trait = incapable } + } + + min_age = 10 + + trigger = { + NOT = { + trait = lunatic + } + OR = { + #Senile/comatose due to old age do not gain lunatic, immortals get a pass though + NOT = { age = 65 } + immortal = yes + NOT = { trait = incapable } + } + } + + mean_time_to_happen = { + months = 48000 # once in 4000 years on average + + modifier = { + factor = 0.003 # 12 years on average + OR = { + trait = syphilitic + trait = has_aztec_disease + } + } + modifier = { + factor = 0.006 # 24 years on average + prisoner = yes + has_character_modifier = the_oubliette + } + modifier = { + factor = 0.02 # 80 years on average + OR = { + trait = has_typhoid_fever + trait = has_typhus + } + } + modifier = { + factor = 0.1 + prisoner = yes + NOT = { has_character_modifier = the_oubliette } + NOT = { has_character_modifier = house_arrest } + } + modifier = { + factor = 0.2 # 800 years on average + is_ill = yes + NOR = { + trait = has_typhoid_fever + trait = has_typhus + trait = syphilitic + trait = has_aztec_disease + } + } + modifier = { + factor = 0.0025 # 1 year on average, rabies will also be ill + trait = rabies + } + modifier = { + factor = 0.1 + trait = incapable # Coma due to brain damage. Wakes up a lunatic. + } + modifier = { + factor = 0.1 + AND = { + trait = incapable + immortal = yes # Incapable immortals more likely to wake up nuts + } + } + modifier = { + factor = 0.25 + trait = paranoid + } + modifier = { + factor = 0.25 + trait = stressed + } + modifier = { + factor = 0.5 + trait = depressed + } + modifier = { + factor = 0.5 + trait = zealous + } + modifier = { + factor = 0.5 + trait = inbred + } + modifier = { + factor = 0.5 + trait = imbecile + } + modifier = { + factor = 0.5 + trait = genius + } + modifier = { + factor = 0.75 + trait = drunkard + } + } + + option = { + name = { + text = EVTOPTA6020 + trigger = { + is_ill = no + NOT = { trait = paranoid } + NOT = { trait = zealous } + NOT = { trait = incapable } + prisoner = no + } + } + name = { + text = EVTOPTA6020_PARA + trigger = { + trait = paranoid + NOT = { trait = incapable } + } + } + name = { + text = EVTOPTA6020_FEVER + trigger = { + is_ill = yes + NOT = { trait = incapable } + } + } + name = { + text = EVTOPTA6020_ZEAL + trigger = { + trait = zealous + NOT = { trait = incapable } + } + } + name = { + text = EVTOPTA6020_PRISON + trigger = { + prisoner = yes + NOT = { trait = incapable } + } + } + name = { + text = EVTOPTA6020_COMA + trigger = { trait = incapable } + } + + add_trait = lunatic + + if = { + limit = { trait = depressed } + remove_trait = depressed + } + if = { + limit = { trait = stressed } + remove_trait = stressed + } + if = { + limit = { trait = incapable } + remove_trait = incapable + } + } +} + +### Remove Lunatic ### +character_event = { + id = 6021 + desc = EVTDESC6021 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + min_age = 16 + only_capable = yes + + trigger = { + health = 4 + trait = lunatic + NOT = { + OR = { + trait = syphilitic + trait = has_aztec_disease + } + } + } + + mean_time_to_happen = { + months = 12000 + modifier = { + factor = 0.5 + health = 6 + } + } + + option = { + name = EVTOPTA6021 + remove_trait = lunatic + } +} + +### Possessed ### +character_event = { + id = 6030 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + desc = EVTDESC6030 + + min_age = 10 + only_capable = yes + + trigger = { + NOT = { trait = possessed } + } + + mean_time_to_happen = { + months = 15000 + + modifier = { + factor = 0.9 + NOT = { + prestige = 20 + } + } + + modifier = { + factor = 0.9 + NOT = { + piety = 10 + } + } + + modifier = { + factor = 0.9 + trait = zealous + } + } + + option = { + name = EVTOPTA6030 + add_trait = possessed + } +} + +### Remove Possessed ### +character_event = { + id = 6031 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + desc = { + text = EVTDESC6031 + trigger = { religion_group = christian } + } + desc = { + text = EVTDESC6031_ALL + trigger = { + #NOT = { religion_group = muslim } + NOT = { religion_group = christian } + } + } + + min_age = 10 + only_capable = yes + + trigger = { + health = 4 + trait = possessed + } + + mean_time_to_happen = { + months = 15000 + + modifier = { + factor = 0.9 + prestige = 20 + } + + modifier = { + factor = 0.9 + piety = 10 + } + } + + immediate = { + remove_character_modifier = voice_of_satan + remove_character_modifier = voice_of_jesus + remove_character_modifier = holy_comet + remove_character_modifier = lycanthropy + clr_character_flag = demon_child + clr_character_flag = demon_child_fake + clr_character_flag = child_exorcism + } + + option = { + name = EVTOPTA6031 + trigger = { religion_group = christian } + remove_trait = possessed + } + + option = { + name = EVTOPTA6031_ALL + trigger = { NOT = { religion_group = christian } } + remove_trait = possessed + } +} + +#Stressed +character_event = { + id = 6040 + desc = EVTDESC6040 + picture = GFX_evt_bad_news + border = GFX_event_normal_frame_religion + + min_age = 16 + only_capable = yes + + trigger = { + OR = { + is_ruler = yes + is_councillor = yes + has_minor_title = title_regent + } + NOT = { trait = stressed } + NOT = { trait = infirm } + } + + mean_time_to_happen = { + months = 2000 + + modifier = { + factor = 0.75 + trait = diligent + } + + modifier = { + factor = 0.8 + in_command = yes + } + + modifier = { + factor = 10.0 + trait = slothful + } + } + + option = { + name = EVTOPTA6040 + add_trait = stressed + } +} + +#Remove Stressed +character_event = { + id = 6041 + desc = EVTDESC6041 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + min_age = 16 + only_capable = yes + + trigger = { + trait = stressed + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 0.005 + is_ruler = no + is_councillor = no + in_command = no + NOT = { has_minor_title = title_regent } + } + modifier = { + factor = 0.75 + is_ruler = no + } + modifier = { + factor = 0.75 + is_councillor = no + } + modifier = { + factor = 0.75 + in_command = no + } + modifier = { + factor = 0.75 + NOT = { has_minor_title = title_regent } + } + } + + option = { + name = EVTOPTA6041 + remove_trait = stressed + } +} + +#Depressed +character_event = { + id = 6050 + desc = EVTDESC6050 + picture = GFX_evt_bad_news + border = GFX_event_normal_frame_religion + + min_age = 10 + only_capable = yes + + trigger = { + NOT = { trait = depressed } + NOT = { trait = zealous } + NOT = { trait = content } + } + + mean_time_to_happen = { + months = 12000 + + modifier = { + factor = 0.5 + NOT = { age = 20 } + mother_even_if_dead = { is_alive = no } + } + modifier = { + factor = 0.75 + NOT = { age = 20 } + father_even_if_dead = { is_alive = no } + } + + modifier = { + factor = 0.5 + trait = cynical + } + modifier = { + factor = 0.5 + trait = stressed + } + modifier = { + factor = 0.5 + is_ill = yes + } + modifier = { + factor = 0.7 + trait = slothful + } + modifier = { + factor = 0.7 + trait = ugly + } + modifier = { + factor = 0.8 + trait = ambitious + } + modifier = { + factor = 0.8 + in_command = yes + } + modifier = { + factor = 2.0 + trait = diligent + } + } + + option = { + name = EVTOPTA6050 + add_trait = depressed + } +} + +#Remove Depressed +character_event = { + id = 6051 + desc = EVTDESC6051 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + min_age = 10 + only_capable = yes + + trigger = { + trait = depressed + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 0.1 + trait = content + } + modifier = { + factor = 0.1 + trait = zealous + } + modifier = { + factor = 0.5 + trait = diligent + } + modifier = { + factor = 2.0 + trait = cynical + } + modifier = { + factor = 2.0 + trait = stressed + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 1.5 + trait = slothful + } + modifier = { + factor = 1.5 + trait = ugly + } + modifier = { + factor = 1.3 + trait = ambitious + } + modifier = { + factor = 1.3 + in_command = yes + } + } + + option = { + name = EVTOPTA6051 + remove_trait = depressed + } +} + +#Ill +character_event = { + id = 6060 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + desc = EVTDESC6060 + + is_triggered_only = yes + + option = { + name = EVTOPTA6060 + add_trait = ill + blessing_removes_disease_effect = yes + deaths_gift_removes_disease_effect = yes + } +} + +#Meta ill +character_event = { + id = 6063 + + hide_window = yes + + trigger = { + health = 3.0 + is_ill = no + + NOT = { + has_game_rule = { + name = non_epidemic_diseases + value = none + } + } + } + + mean_time_to_happen = { + months = 360 + + modifier = { + factor = 0.5 + trait = depressed + } + modifier = { + factor = 0.5 + trait = stressed + } + modifier = { + factor = 0.5 + is_weak_trigger = yes + } + modifier = { + factor = 0.75 + prisoner = yes + has_character_modifier = the_oubliette + } + modifier = { + factor = 0.9 + prisoner = yes + has_character_modifier = the_dungeon + } + modifier = { + factor = 1.5 + base_health = 6 + } + modifier = { + factor = 1.5 + is_strong_trigger = yes + } + modifier = { + factor = 2.0 + base_health = 7 + } + modifier = { + factor = 2.0 + base_health = 8 + } + modifier = { + factor = 0.5 + has_game_rule = { + name = non_epidemic_diseases + value = more + } + } + modifier = { + factor = 2 + has_game_rule = { + name = non_epidemic_diseases + value = fewer + } + } + modifier = { + factor = 4 + has_game_rule = { + name = non_epidemic_diseases + value = rare + } + } + } + + immediate = { + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + character_event = { id = 6060 } + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + } +} + +#Remove Ill +character_event = { + id = 6061 + desc = EVTDESC6061 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + + trigger = { + base_health = 3 + trait = ill + } + + mean_time_to_happen = { + months = 12 + + modifier = { + factor = 2.0 + trait = depressed + } + modifier = { + factor = 2.0 + trait = stressed + } + modifier = { + factor = 0.3 + base_health = 5 + } + modifier = { + factor = 0.2 + base_health = 6 + } + modifier = { + factor = 0.1 + base_health = 7 + } + } + + option = { + name = EVTOPTA6061 + remove_trait = ill + } +} + +#Remove Sickly +character_event = { + id = 6062 + desc = EVTDESC6062 + picture = GFX_evt_child_play + border = GFX_event_normal_frame_religion + + max_age = 7 + is_sick = yes + + trigger = { + trait = sickly + age = 2 + } + + mean_time_to_happen = { + months = 12 + + modifier = { + factor = 0.5 + age = 3 + } + modifier = { + factor = 0.5 + age = 4 + } + modifier = { + factor = 0.01 + age = 5 + } + } + + option = { + name = EVTOPTA6062 + remove_trait = sickly + } +} + +#Pneumonic +character_event = { + id = 6070 + desc = EVTDESC6070 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + OR = { + trait = ill + trait = has_measles + } + NOT = { trait = pneumonic } + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.5 + NOT = { base_health = 5 } + } + modifier = { + factor = 0.5 + NOT = { base_health = 4 } + } + modifier = { + factor = 0.75 + trait = depressed + } + modifier = { + factor = 0.75 + trait = stressed + } + modifier = { + factor = 2.0 + base_health = 6 + } + modifier = { + factor = 2.0 + base_health = 7 + } + modifier = { + factor = 2.0 + base_health = 8 + } + modifier = { + factor = 0.25 + NOT = { month = 2 } #jan and feb + in_command = yes + } + } + + option = { + name = EVTOPTA6070 + add_trait = pneumonic + blessing_removes_disease_effect = yes + deaths_gift_removes_disease_effect = yes + } +} + +#Remove Pneumonic +character_event = { + id = 6071 + desc = EVTDESC6071 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + base_health = 4 + trait = pneumonic + } + + mean_time_to_happen = { + months = 4 + modifier = { + factor = 2.0 + NOT = { base_health = 5 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4 } + } + modifier = { + factor = 1.5 + trait = depressed + } + modifier = { + factor = 1.5 + trait = stressed + } + modifier = { + factor = 0.5 + base_health = 6 + } + modifier = { + factor = 0.5 + base_health = 7 + } + modifier = { + factor = 0.5 + base_health = 8 + } + } + + option = { + name = EVTOPTA6071 + remove_trait = pneumonic + } +} + +#Wounded +character_event = { + id = 6080 + desc = EVTDESC6080 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + min_age = 16 + only_capable = yes + prisoner = no + + trigger = { + OR = { + trait = hunter + in_command = yes + trait = brave + } + NOR = { + trait = wounded + is_maimed_trigger = yes + } + } + + mean_time_to_happen = { + months = 10000 + + modifier = { + factor = 0.9 + trait = brave + } + + modifier = { + factor = 0.8 + in_command = yes + } + + modifier = { + factor = 0.7 + is_ruler = yes + } + + modifier = { + factor = 0.6 + trait = misguided_warrior + } + + modifier = { + factor = 1.1 + trait = paranoid + } + } + + option = { + name = EVTOPTA6080 + add_trait = wounded + } +} + +#Remove Wounded +character_event = { + id = 6081 + desc = EVTDESC6081 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + trigger = { + base_health = 4 + trait = wounded + NOT = { trait = infection } + } + + mean_time_to_happen = { + months = 24 + + modifier = { + factor = 0.5 + base_health = 5.1 + } + + modifier = { + factor = 0.4 + base_health = 6 + } + } + + option = { + name = EVTOPTA6081 + remove_trait = wounded + add_trait = scarred + } +} + + +#illness from wound.. +character_event = { + id = 6082 + desc = EVTDESC6082 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + trigger = { + trait = wounded + NOT = { base_health = 8 } + is_ill = no + } + + mean_time_to_happen = { + months = 240 + + modifier = { + factor = 0.9 + in_command = yes + } + + modifier = { + factor = 0.8 + trait = leper + } + + modifier = { + factor = 0.8 + NOT = { base_health = 6 } + } + modifier = { + factor = 0.8 + age = 60 + } + modifier = { + factor = 0.8 + age = 70 + } + } + + option = { + name = EVTOPTA6082 + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + blessing_removes_disease_effect = yes + deaths_gift_removes_disease_effect = yes + } + if = { + limit = { + has_dlc = "Reapers" + } + add_trait = infection + hidden_tooltip = { + character_event = { id = RIP.11001 days = 365 random = 1095 } + } + } + } +} + + +#Infirm +character_event = { + id = 6100 + desc = EVTDESC6100 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + min_age = 45 + only_capable = yes + + trigger = { + NOT = { trait = infirm } + immortal = no + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 0.8 + age = 60 + } + modifier = { + factor = 0.7 + age = 70 + } + modifier = { + factor = 0.5 + age = 80 + } + modifier = { + factor = 0.5 + age = 90 + } + modifier = { + factor = 0.5 + trait = cancer + } + modifier = { + factor = 0.5 + is_weak_trigger = yes + } + modifier = { + factor = 0.75 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 0.75 + NOT = { base_health = 4.0 } + } + modifier = { + factor = 2.0 + base_health = 5.1 + } + modifier = { + factor = 2.0 + base_health = 6.0 + } + } + + option = { + name = EVTOPTA6100 + add_trait = infirm + } +} + +#Incapable +character_event = { + id = 6110 + desc = EVTDESC6110 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + trigger = { + OR = { + trait = infirm + trait = inbred + } + NOT = { trait = incapable } + immortal = no + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.5 + NOT = { health = 3.0 } + } + modifier = { + factor = 0.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { trait = infirm } + } + modifier = { + factor = 2.0 + base_health = 5.1 + } + modifier = { + factor = 2.0 + base_health = 6.0 + } + } + + option = { + name = EVTOPTA6110 + add_trait = incapable + remove_trait = infirm + } +} + +#Recovery from Tuberculosis +character_event = { + id = 6111 + desc = EVTDESC6111 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_tuberculosis + } + + mean_time_to_happen = { + months = 24 + + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6111 + remove_trait = has_tuberculosis + } +} + +#Recovery from Typhoid Fever +character_event = { + id = 6112 + desc = EVTDESC6112 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_typhoid_fever + } + + mean_time_to_happen = { + months = 4 + + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6112 + remove_trait = has_typhoid_fever + } +} + +#Recovery from Typhus +character_event = { + id = 6113 + desc = EVTDESC6113 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_typhus + } + + mean_time_to_happen = { + months = 12 + + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6113 + remove_trait = has_typhus + } +} + +#Recovery from the PLAGUE! +character_event = { + id = 6114 + desc = EVTDESC6114 + picture = GFX_evt_plague_doctor + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_bubonic_plague + } + + mean_time_to_happen = { + months = 3 + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6114 + remove_trait = has_bubonic_plague + } +} + +#Recovery from Measles +character_event = { + id = 6115 + desc = EVTDESC6115 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_measles + } + + mean_time_to_happen = { + months = 5 + + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6115 + remove_trait = has_measles + } +} + +#Recovery from Smallpox +character_event = { + id = 6116 + desc = EVTDESC6116 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + is_sick = yes + lacks_dlc = "Reapers" + + trigger = { + trait = has_small_pox + } + + mean_time_to_happen = { + months = 5 + + modifier = { + factor = 0.75 + base_health = 5.1 + } + modifier = { + factor = 0.5 + base_health = 6.0 + } + modifier = { + factor = 0.5 + base_health = 7.0 + } + modifier = { + factor = 1.5 + NOT = { base_health = 5.0 } + } + modifier = { + factor = 2.0 + NOT = { base_health = 4.1 } + } + modifier = { + factor = 0.66 + NOT = { age = 20 } + } + modifier = { + factor = 0.75 + NOT = { age = 30 } + } + modifier = { + factor = 0.75 + NOT = { age = 40 } + } + modifier = { + factor = 2.0 + age = 50 + } + modifier = { + factor = 2.0 + age = 70 + } + modifier = { + factor = 2.0 + is_ill = yes + } + modifier = { + factor = 4.0 + trait = infirm + } + modifier = { + factor = 5.0 + trait = incapable + } + } + + option = { + name = EVTOPTA6116 + remove_trait = has_small_pox + } +} + +#I hear the voice of Jesus +character_event = { + id = 6200 + desc = EVTDESC6200 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + religion_group = christian + + trigger = { + is_devil_worshiper_trigger = no + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + trait = possessed + NOT = { has_character_modifier = voice_of_jesus } + NOT = { has_character_modifier = voice_of_satan } + NOT = { has_character_modifier = holy_comet } + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 2 + NOT = { + piety = 0 + } + } + + modifier = { + factor = 0.9 + piety = 100 + } + + modifier = { + factor = 0.9 + piety = 250 + } + + modifier = { + factor = 0.9 + piety = 500 + } + + + modifier = { + factor = 0.9 + piety = 1000 + } + + modifier = { + factor = 0.75 + trait = zealous + } + + modifier = { + factor = 1.2 + trait = cynical + } + + modifier = { + factor = 0.9 + trait = crusader + } + + modifier = { + factor = 1.2 + trait = homosexual + } + + modifier = { + factor = 0.9 + trait = celibate + } + + modifier = { + factor = 1.2 + trait = hedonist + } + + modifier = { + factor = 0.5 + trait = mystic + } + + } + + option = { + name = EVTOPTA6200 + add_character_modifier = { + name = voice_of_jesus + duration = -1 + } + } +} + +#I give to the poor +character_event = { + id = 6201 + desc = EVTDESC6201 + picture = GFX_evt_stone_church + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6201 + wealth = -50 + piety = 100 + } +} + +# I will wear a Cilice +character_event = { + id = 6202 + desc = EVTDESC6202 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6202 + prestige = -50 + piety = 100 + } +} + +# Comet Sighted +character_event = { + id = 6203 + desc = EVTDESC6203 + picture = GFX_evt_comet + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + OR = { + has_character_modifier = voice_of_jesus + has_character_modifier = voice_of_satan + } + NOT = { has_character_modifier = holy_comet } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6203 + add_character_modifier = { + name = holy_comet + duration = -1 + } + } +} + +# I must leave behind my lust +character_event = { + id = 6204 + desc = EVTDESC6204 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = lustful + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6204 + remove_trait = lustful + } +} + +# I must lead life of the chaste +character_event = { + id = 6205 + desc = EVTDESC6205 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = lustful + trait = chaste + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6205 + add_trait = chaste + } +} + +# I must leave behind my gluttony +character_event = { + id = 6206 + desc = EVTDESC6206 + picture = GFX_evt_feast + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = gluttonous + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6206 + remove_trait = gluttonous + } +} + +# I must show temperance +character_event = { + id = 6207 + desc = EVTDESC6207 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = gluttonous + trait = temperate + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6207 + add_trait = temperate + } +} + +# I must leave behind my greed +character_event = { + id = 6208 + desc = EVTDESC6208 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = greedy + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6208 + remove_trait = greedy + } +} + +# I must show charity +character_event = { + id = 6209 + desc = EVTDESC6209 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = greedy + trait = charitable + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6209 + add_trait = charitable + } +} + +# I must leave behind my sloth +character_event = { + id = 6210 + desc = EVTDESC6210 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = slothful + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6210 + remove_trait = slothful + } +} +#I must be more diligent +character_event = { + id = 6211 + desc = EVTDESC6211 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = slothful + trait = diligent + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6211 + add_trait = diligent + } +} + +# I must stop being envious +character_event = { + id = 6212 + desc = EVTDESC6212 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = envious + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6212 + remove_trait = envious + } +} +#I must be kind +character_event = { + id = 6213 + desc = EVTDESC6213 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = envious + trait = kind + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6213 + add_trait = kind + } +} + +# My anger is consuming me +character_event = { + id = 6214 + desc = EVTDESC6214 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = wroth + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6214 + remove_trait = wroth + } +} + +# I must be more patient +character_event = { + id = 6215 + desc = EVTDESC6215 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = wroth + trait = patient + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6215 + add_trait = patient + } +} + +# My pride is too great +character_event = { + id = 6216 + desc = EVTDESC6216 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = proud + has_character_modifier = voice_of_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6216 + remove_trait = proud + } +} + +# I must be more patient +character_event = { + id = 6217 + desc = EVTDESC6217 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_jesus + NOT = { + OR = { + trait = proud + trait = humble + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6217 + add_trait = humble + } +} + +# Jesus admits that the Bible is not 100% accurate +character_event = { + id = 6218 + desc = EVTDESC6218 + picture = GFX_evt_heretic + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = holy_comet + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6218 + become_heretic = yes + } +} + +# Jesus hands out military advice +character_event = { + id = 6219 + desc = EVTDESC6219 + picture = GFX_evt_battle + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = holy_comet + NOT = { + OR = { + has_character_modifier = military_jesus + has_character_modifier = speaking_in_tounges + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6219 + add_character_modifier = { + name = military_jesus + duration = -1 + } + } +} + +#Jesus falls silent on military matters +character_event = { + id = 6220 + desc = EVTDESC6220 + picture = GFX_evt_battle + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = military_jesus + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6220 + remove_character_modifier = military_jesus + } +} + +#The Holy Spirit Fills me +character_event = { + id = 6221 + desc = EVTDESC6221 + picture = GFX_evt_battle + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = holy_comet + NOT = { + OR = { + has_character_modifier = military_jesus + has_character_modifier = speaking_in_tounges + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6221 + add_character_modifier = { + name = speaking_in_tounges + duration = -1 + } + } +} + +#The Holy Spirit leaves me +character_event = { + id = 6222 + desc = EVTDESC6222 + picture = GFX_evt_battle + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = speaking_in_tounges + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6222 + remove_character_modifier = speaking_in_tounges + } +} + +#I hear the voice, but I don't think it is Jesus +character_event = { + id = 6223 + desc = EVTDESC6223 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + NOT = { has_character_modifier = voice_of_jesus } + NOT = { has_character_modifier = voice_of_satan } + NOT = { has_character_modifier = holy_comet } + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 0.3 + is_devil_worshiper_trigger = yes + } + + modifier = { + factor = 0.5 + NOT = { + piety = 0 + } + } + + modifier = { + factor = 2 + piety = 100 + } + + modifier = { + factor = 1.2 + trait = zealous + } + + modifier = { + factor = 0.9 + trait = cynical + } + + modifier = { + factor = 1.2 + trait = crusader + } + + modifier = { + factor = 0.9 + trait = homosexual + } + + modifier = { + factor = 1.2 + trait = celibate + } + + modifier = { + factor = 0.9 + trait = hedonist + } + + modifier = { + factor = 0.5 + trait = mystic + } + + } + + option = { + name = EVTOPTA6223 + add_character_modifier = { + name = voice_of_satan + duration = -1 + } + } +} + +#Satan - torture prisoner +character_event = { + id = 6224 + desc = EVTDESC6224 + picture = GFX_evt_torture + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + any_courtier = { + prisoner = yes + host = { character = ROOT } + NOT = { has_character_modifier = house_arrest } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6224 + random_courtier = { + limit = { + prisoner = yes + host = { character = ROOT } + NOT = { has_character_modifier = house_arrest } + } + health = -1 + } + } +} + +#Demon - homosexual +character_event = { + id = 6225 + desc = EVTDESC6225 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + trait = homosexual + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6225 + add_trait = homosexual + } +} + +#Fish - intrigue +character_event = { + id = 6226 + desc = EVTDESC6226 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + has_character_modifier = intrigue_advice + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6226 + add_character_modifier = { + name = intrigue_advice + duration = 365 + } + } +} + +#Asmodeus - remove chaste +character_event = { + id = 6227 + desc = EVTDESC6227 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = chaste + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6227 + remove_trait = chaste + } +} + +#Asmodeus - remove chaste +character_event = { + id = 6228 + desc = EVTDESC6228 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = chaste + trait = lustful + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6228 + add_trait = lustful + } +} + +#Satan - patient +character_event = { + id = 6229 + desc = EVTDESC6229 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = patient + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6229 + remove_trait = patient + } +} + +#Voice - wroth +character_event = { + id = 6230 + desc = EVTDESC6230 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = patient + trait = wroth + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6230 + add_trait = wroth + } +} + +#Morning Star - humble +character_event = { + id = 6231 + desc = EVTDESC6231 + picture = GFX_evt_shadow + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = humble + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6231 + remove_trait = humble + } +} + +#Lucifer - proud +character_event = { + id = 6232 + desc = EVTDESC6232 + picture = GFX_evt_shadow + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = humble + trait = proud + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6232 + add_trait = proud + } +} + +#Lord of the Flies - remove temperate +character_event = { + id = 6233 + desc = EVTDESC6233 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = temperate + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6233 + remove_trait = temperate + } +} + +#Beelzebub - gluttonous +character_event = { + id = 6234 + desc = EVTDESC6234 + picture = GFX_evt_feast + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = temperate + trait = gluttonous + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6234 + add_trait = gluttonous + } +} + +#Mammon - remove charitable +character_event = { + id = 6235 + desc = EVTDESC6235 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = charitable + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6235 + remove_trait = charitable + } +} + +#Mammon - Greedy +character_event = { + id = 6236 + desc = EVTDESC6236 + picture = GFX_evt_feast + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = charitable + trait = greedy + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6236 + add_trait = greedy + } +} + +#Leviathan - Remove Kind +character_event = { + id = 6237 + desc = EVTDESC6237 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = kind + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6237 + remove_trait = kind + } +} + +#Leviathan - Envious +character_event = { + id = 6238 + desc = EVTDESC6238 + picture = GFX_evt_feast + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = kind + trait = envious + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6238 + add_trait = envious + } +} + +#Belphegor - Diligent +character_event = { + id = 6239 + desc = EVTDESC6239 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + trait = diligent + has_character_modifier = voice_of_satan + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6239 + remove_trait = diligent + } +} + +#Belphegor - Slothful +character_event = { + id = 6240 + desc = EVTDESC6240 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 10 + only_capable = yes + prisoner = no + religion_group = christian + + trigger = { + trait = possessed + has_character_modifier = voice_of_satan + NOT = { + OR = { + trait = diligent + trait = slothful + } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = EVTOPTA6240 + add_trait = slothful + } +} + +### Lunacy Events + +# Ruler Implements New Law +character_event = { + id = 6300 + desc = EVTDESC6300 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + min_age = 16 + prisoner = no + only_playable = yes + only_independent = yes + + trigger = { + trait = lunatic + } + + mean_time_to_happen = { + months = 420 + } + + option = { + name = EVTOPTA6300 + tooltip_info = lunatic + narrative_event = { id = 6305 tooltip = EVTTOOLTIP6305 } + hidden_tooltip = { + any_vassal = { + narrative_event = { id = 6301 } + } + } + } + option = { + name = EVTOPTB6300 + tooltip_info = lunatic + narrative_event = { id = 6306 tooltip = EVTTOOLTIP6306 } + hidden_tooltip = { + any_vassal = { + narrative_event = { id = 6302 } + } + } + } + option = { + name = EVTOPTC6300 + tooltip_info = lunatic + narrative_event = { id = 6307 tooltip = EVTTOOLTIP6307 } + hidden_tooltip = { + any_vassal = { + narrative_event = { id = 6303 } + } + } + } + option = { + name = EVTOPTD6300 + tooltip_info = lunatic + narrative_event = { id = 6308 tooltip = EVTTOOLTIP6308 } + hidden_tooltip = { + any_vassal = { + narrative_event = { id = 6304 } + } + } + } +} + +# Turnip Law (Vassals) +narrative_event = { + id = 6301 + title = EVTNAME6301 + desc = EVTDESC6301 + picture = GFX_evt_recieve_letter + + is_triggered_only = yes + + option = { + name = EVTOPTA6301 + custom_tooltip = { text = ignore_law } + } +} + +# Pants Law (Vassals) +narrative_event = { + id = 6302 + title = EVTNAME6302 + desc = EVTDESC6302 + picture = GFX_evt_recieve_letter + + is_triggered_only = yes + + option = { + name = EVTOPTA6302 + custom_tooltip = { text = ignore_law } + } +} + +# Hole Law (Vassals) +narrative_event = { + id = 6303 + title = EVTNAME6303 + desc = EVTDESC6303 + picture = GFX_evt_recieve_letter + + is_triggered_only = yes + + option = { + name = EVTOPTA6303 + custom_tooltip = { text = ignore_law } + } +} + +# Violence Law (Vassals) +narrative_event = { + id = 6304 + title = EVTNAME6304 + desc = EVTDESC6304 + picture = GFX_evt_recieve_letter + + is_triggered_only = yes + + option = { + name = EVTOPTA6304 + custom_tooltip = { text = ignore_law } + } +} + +# Turnip Law (Liege) +narrative_event = { + id = 6305 + title = EVTNAME6301 + desc = EVTDESC6305 + picture = GFX_evt_courier + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA6305 + custom_tooltip = { + text = ALL_VASSALS_INSANE_LAW + hidden_tooltip = { + any_vassal = { + opinion = { + modifier = opinion_insane_law + who = ROOT + } + } + } + } + } +} + + +# Pants Law (Liege) +narrative_event = { + id = 6306 + title = EVTNAME6302 + desc = EVTDESC6306 + picture = GFX_evt_courier + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA6305 + custom_tooltip = { + text = ALL_VASSALS_INSANE_LAW + hidden_tooltip = { + any_vassal = { + opinion = { + modifier = opinion_insane_law + who = ROOT + } + } + } + } + } +} + +# Hole Law (Liege) +narrative_event = { + id = 6307 + title = EVTNAME6303 + desc = EVTDESC6307 + picture = GFX_evt_courier + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA6305 + custom_tooltip = { + text = ALL_VASSALS_INSANE_LAW + hidden_tooltip = { + any_vassal = { + opinion = { + modifier = opinion_insane_law + who = ROOT + } + } + } + } + } +} + +# Violence Law (Liege) +narrative_event = { + id = 6308 + title = EVTNAME6304 + desc = EVTDESC6308 + picture = GFX_evt_courier + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA6305 + custom_tooltip = { + text = ALL_VASSALS_INSANE_LAW + hidden_tooltip = { + any_vassal = { + opinion = { + modifier = opinion_insane_law + who = ROOT + } + } + } + } + } +} + +### Random Madness + +# Gopher Maid +character_event = { + id = 6315 + desc = EVTDESC6315 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + + trigger = { + trait = lunatic + } + + mean_time_to_happen = { + months = 420 + } + + option = { + name = EVTOPTA6315 + tooltip_info = lunatic + prestige = -20 + } +} + +# Howling at the Moon +character_event = { + id = 6316 + desc = EVTDESC6316 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + + trigger = { + trait = lunatic + } + + mean_time_to_happen = { + months = 420 + } + + option = { + name = EVTOPTA6316 + tooltip_info = lunatic + prestige = -20 + } +} + +### Horse Chancellor +character_event = { + id = 6317 + desc = EVTDESC6317 + picture = GFX_evt_courier + border = GFX_event_normal_frame_religion + + min_age = 16 + prisoner = no + only_capable = yes + only_playable = yes + lacks_dlc = "Zeus" + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + trait = lunatic + any_courtier = { + has_job_title = job_chancellor + } + } + + mean_time_to_happen = { + months = 420 + } + + option = { + name = EVTOPTA6317 + tooltip_info = lunatic + job_chancellor = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { id = 6318 } + } + remove_title = job_chancellor + } + } +} + +# Chancellor informed +character_event = { + id = 6318 + desc = EVTDESC6318 + picture = GFX_evt_courier + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA6318 + prestige = -20 + custom_tooltip = { text = horse_chancellor } + } +} + +### Lunatic Pagan series + +# Rats in the walls +character_event = { + id = 6350 + desc = EVTDESC6350 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + only_playable = yes + religion_group = pagan_group + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion = norse_pagan + religion = norse_pagan_reformed + religion = slavic_pagan + religion = slavic_pagan_reformed + religion = baltic_pagan + religion = baltic_pagan_reformed + religion = finnish_pagan + religion = finnish_pagan_reformed + } + NOT = { has_character_flag = the_old_ones_are_waking } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = the_old_ones_are_waking + } + + mean_time_to_happen = { + months = 1000 + modifier = { + factor = 100 + NOT = { trait = lunatic } + } + } + + option = { + name = EVTOPTA6350 + if = { + limit = { NOT = { trait = lunatic } } + add_trait = lunatic + } + character_event = { id = 6354 days = 14 tooltip = EVTTOOLTIP6354 } + } + option = { + name = EVTOPTB6350 + trigger = { + NOT = { trait = lunatic } + } + } +} + +# Something in the well +character_event = { + id = 6351 + desc = EVTDESC6351 + picture = GFX_evt_garden + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + only_playable = yes + religion_group = pagan_group + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion = norse_pagan + religion = norse_pagan_reformed + religion = slavic_pagan + religion = slavic_pagan_reformed + religion = baltic_pagan + religion = baltic_pagan_reformed + religion = finnish_pagan + religion = finnish_pagan_reformed + } + NOT = { has_character_flag = the_old_ones_are_waking } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = the_old_ones_are_waking + } + + mean_time_to_happen = { + months = 1000 + modifier = { + factor = 100 + NOT = { trait = lunatic } + } + } + + option = { + name = EVTOPTA6351 + if = { + limit = { NOT = { trait = lunatic } } + add_trait = lunatic + } + character_event = { id = 6354 days = 14 tooltip = EVTTOOLTIP6354 } + } + option = { + name = EVTOPTB6351 + trigger = { + NOT = { trait = lunatic } + } + } +} + +# Tomb raiding +character_event = { + id = 6352 + desc = EVTDESC6352 + picture = GFX_evt_death + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + only_playable = yes + religion_group = pagan_group + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion = norse_pagan + religion = norse_pagan_reformed + religion = slavic_pagan + religion = slavic_pagan_reformed + religion = baltic_pagan + religion = baltic_pagan_reformed + religion = finnish_pagan + religion = finnish_pagan_reformed + } + NOT = { has_character_flag = the_old_ones_are_waking } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = the_old_ones_are_waking + } + + mean_time_to_happen = { + months = 1000 + modifier = { + factor = 100 + NOT = { trait = lunatic } + } + } + + option = { + name = EVTOPTA6352 + if = { + limit = { NOT = { trait = lunatic } } + add_trait = lunatic + } + character_event = { id = 6354 days = 14 tooltip = EVTTOOLTIP6354 } + } + option = { + name = EVTOPTB6352 + trigger = { + NOT = { trait = lunatic } + } + } +} + +# A law against the killing of cats +character_event = { + id = 6353 + desc = EVTDESC6353 + picture = GFX_evt_burning_house + border = GFX_event_normal_frame_religion + + ai = no + min_age = 16 + prisoner = no + only_playable = yes + religion_group = pagan_group + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion = norse_pagan + religion = norse_pagan_reformed + religion = slavic_pagan + religion = slavic_pagan_reformed + religion = baltic_pagan + religion = baltic_pagan_reformed + religion = finnish_pagan + religion = finnish_pagan_reformed + } + NOT = { has_character_flag = the_old_ones_are_waking } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = the_old_ones_are_waking + } + + mean_time_to_happen = { + months = 1000 + modifier = { + factor = 100 + NOT = { trait = lunatic } + } + } + + option = { + name = EVTOPTA6353 + if = { + limit = { NOT = { trait = lunatic } } + add_trait = lunatic + } + character_event = { id = 6354 days = 14 tooltip = EVTTOOLTIP6354 } + } + option = { + name = EVTOPTB6353 + trigger = { + NOT = { trait = lunatic } + } + } +} + +# Visiting a quaint village +character_event = { + id = 6354 + desc = EVTDESC6354 + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_religion + + hide_from = yes + is_triggered_only = yes + + option = { + name = EVTOPTA6354 + character_event = { id = 6355 days = 7 tooltip = EVTTOOLTIP6355 } + } +} + +# A seaside ritual +character_event = { + id = 6355 + desc = EVTDESC6355 + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_religion + + hide_from = yes + is_triggered_only = yes + + option = { + name = EVTOPTA6355 + change_learning = 1 + character_event = { id = 6356 days = 1 tooltip = EVTTOOLTIP6356 } + } +} + +# Something rises from the sea... +character_event = { + id = 6356 + desc = EVTDESC6356 + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_religion + + hide_from = yes + is_triggered_only = yes + + option = { + name = EVTOPTA6356 + piety = 100 + death = { death_reason = death_sacrificed } + } + option = { + name = EVTOPTB6356 + character_event = { id = 6357 days = 1 tooltip = EVTTOOLTIP6357 } + } +} + +# Commendeer a longship +character_event = { + id = 6357 + desc = EVTDESC6357 + picture = GFX_evt_kraken + border = GFX_event_normal_frame_religion + + hide_from = yes + is_triggered_only = yes + + option = { + name = EVTOPTA6357 + character_event = { id = 6358 days = 1 tooltip = EVTTOOLTIP6358 } + } +} + +# Waking up +character_event = { + id = 6358 + desc = EVTDESC6358 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + hide_from = yes + is_triggered_only = yes + + option = { + name = EVTOPTA6358 + prestige = 100 + if = { + limit = { lifestyle_traits = 1 } + change_learning = 1 + } + if = { + limit = { + NOT = { lifestyle_traits = 1 } + NOT = { has_dlc = "Way of Life" } + } + add_trait = scholar + } + } + option = { + name = EVTOPTB6358 + add_character_modifier = { name = "killed_an_old_one" duration = -1 } + } +} + +#Lover's pox adding and notification +character_event = { + id = 6359 + picture = GFX_evt_recovery + border = GFX_event_normal_frame_religion + + desc = { + text = EVTDESC_WOL_40_NC + trigger = { + is_female = yes + has_DLC = "Sons of Abraham" + } + picture = GFX_evt_bad_news_female + } + desc = { + text = EVTDESC_WOL_40_NC + trigger = { + is_female = no + has_DLC = "Sons of Abraham" + } + picture = GFX_evt_bad_news + } + desc = { + trigger = { NOT = { has_DLC = "Sons of Abraham" } } + text = EVTDESC_WOL_40_NC + picture = GFX_evt_recovery + } + + is_triggered_only = yes + + trigger = { + NOR = { + trait = lovers_pox + has_character_modifier = minor_disease_herpes + } + } + + option = { + name = CURSES + add_trait = lovers_pox + } +} \ No newline at end of file diff --git a/After the End/events/hl_extra_events.txt.txt b/After the End/events/hl_extra_events.txt similarity index 100% rename from After the End/events/hl_extra_events.txt.txt rename to After the End/events/hl_extra_events.txt diff --git a/After the End/events/imprisoned_events.txt b/After the End/events/imprisoned_events.txt new file mode 100644 index 000000000..e0172cf78 --- /dev/null +++ b/After the End/events/imprisoned_events.txt @@ -0,0 +1,925 @@ +################################################ +# +# Imprisoned Events +# +# ID 50000 - 54999 are reserved +# +################################################## +# +# Written by Sara Wendel-Örtqvist & Henrik Fåhraeus + +#Escape from prison: Rope in flagon of wine #No more escaping. +#character_event = { +# id = 50000 +# desc = "EVTDESC50000" +# picture = "GFX_evt_into_the_dungeon" +# +# min_age = 14 +# capable_only = yes +# prisoner = yes +# +# trigger = { +# NOT = { trait = craven } +# NOT = { religion_group = muslim } +# has_character_modifier = house_arrest +# } +# +# mean_time_to_happen = { +# months = 60 +# +# modifier = { +# factor = 0.5 +# trait = deceitful +# } +# modifier = { +# factor = 0.75 +# trait = ambitious +# } +# modifier = { +# factor = 0.75 +# trait = diligent +# } +# modifier = { +# factor = 0.75 +# intrigue = 7 +# } +# modifier = { +# factor = 0.75 +# intrigue = 9 +# } +# modifier = { +# factor = 0.75 +# intrigue = 11 +# } +# modifier = { +# factor = 2.0 +# NOT = { intrigue = 5 } +# } +# modifier = { +# factor = 2.0 +# NOT = { intrigue = 3 } +# } +# modifier = { +# factor = 2.0 +# trait = slothful +# } +# modifier = { +# factor = 2.0 +# trait = content +# } +# } +# +# option = { +# name = "EVTOPTA50000" +# trigger = { +# NOT = { trait = brave } +# } +# add_trait = craven +# } +# +# option = { +# name = "EVTOPTB50000" #Do I risk it? Yes! +# hidden_tooltip = { +# random_list = { +# 30 = { +# host = { +# character_event = { +# id = 50040 +# } +# } +# character_event = { +# id = 50001 +# } +# } +# 70 = { +# host = { +# character_event = { +# id = 50002 +# } +# } +# } +# } +# } +# } +#} +# +##I'm free! +#character_event = { +# id = 50001 +# desc = "EVTDESC50001" +# picture = "GFX_evt_into_the_dungeon" +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA50001" +# prestige = 10 +# hidden_tooltip = { +# if = { +# limit = { +# is_ruler = no +# employer = { +# ROOT = { +# host = { +# character = PREVPREV +# } +# } +# } +# } +# prisoner = no +# banish = yes +# break = yes +# } +# } +# prisoner = no +# } +#} +# +## The host is notified of the escape +#character_event = { +# id = 50040 +# desc = "EVTDESC50040" +# picture = GFX_evt_spymaster +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA50040" +# prestige = -10 +# } +#} +# +##A prisoner tried to escape! +#character_event = { +# id = 50002 +# desc = "EVTDESC50002" +# picture = "GFX_evt_into_the_dungeon" +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA50002" +# ai_chance = { factor = 20 } +# +# hidden_tooltip = { +# FROM = { +# character_event = { +# id = 50003 +# } +# } +# } +# } +# +# option = { +# name = "EVTOPTB50002" +# ai_chance = { factor = 20 } +# +# FROM = { +# hidden_tooltip = { +# remove_character_modifier = house_arrest +# remove_character_modifier = the_oubliette +# remove_character_modifier = the_dungeon +# } +# add_character_modifier = { +# name = the_dungeon +# duration = -1 +# } +# hidden_tooltip = { +# character_event = { +# id = 50003 +# } +# } +# } +# } +# +# option = { +# name = "EVTOPTC50002" +# ai_chance = { +# factor = 20 +# modifier = { +# factor = 0 +# trait = kind +# } +# modifier = { +# factor = 2 +# trait = envious +# } +# modifier = { +# factor = 5 +# trait = wroth +# } +# modifier = { +# factor = 5 +# trait = cruel +# } +# } +# +# FROM = { +# hidden_tooltip = { +# remove_character_modifier = house_arrest +# remove_character_modifier = the_dungeon +# remove_character_modifier = the_oubliette +# } +# add_character_modifier = { +# name = the_oubliette +# duration = -1 +# } +# hidden_tooltip = { +# character_event = { +# id = 50003 +# } +# } +# } +# } +#} +# +##Failed to escape! +#character_event = { +# id = 50003 +# desc = "EVTDESC50003" +# picture = "GFX_evt_into_the_dungeon" +# +# is_triggered_only = yes +# +# option = { +# name = "EVTOPTA50003" +# trigger = { +# has_character_modifier = house_arrest +# } +# } +# +# option = { +# name = "EVTOPTB50003" +# trigger = { +# has_character_modifier = the_oubliette +# } +# random = { +# chance = 25 +# add_trait = stressed +# } +# } +# +# option = { +# name = "EVTOPTC50003" +# trigger = { +# has_character_modifier = the_dungeon +# } +# random = { +# chance = 25 +# add_trait = depressed +# } +# } +#} + +############################################### + +# Request better accomodations +character_event = { + id = 50005 + desc = "EVTDESC50005" + picture = "GFX_evt_into_the_dungeon" + border = GFX_event_normal_frame_intrigue + + min_age = 14 + capable_only = yes + only_rulers = yes + prisoner = yes + + trigger = { + host = { + war = no + } + NOT = { has_character_modifier = zun_judgement } + NOT = { has_character_modifier = the_oubliette } + NOT = { has_character_modifier = house_arrest } + NOT = { has_character_flag = asked_for_better_prison } + } + + mean_time_to_happen = { + months = 12 + modifier = { + factor = 0.5 + trait = gregarious + } + modifier = { + factor = 2.0 + trait = content + } + } + + option = { + name = "EVTOPTA50005" + set_character_flag = asked_for_better_prison + hidden_tooltip = { + host = { + character_event = { + id = 50006 + days = 2 + } + } + } + } + + option = { + name = "EVTOPTB50005" #I deserve this + set_character_flag = asked_for_better_prison + } +} + +#Host responds to the prisoner's request +character_event = { + id = 50006 + desc = "EVTDESC50006" + picture = "GFX_evt_into_the_dungeon" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + trigger = { + FROM = { + prisoner = yes + is_alive = yes + } + } + + option = { + name = "EVTOPTA50006" # Denied + trigger = { + FROM = { + prisoner = yes + } + } + ai_chance = { factor = 34 } + } + + option = { + name = "EVTOPTB50006" # Granted + trigger = { + FROM = { + prisoner = yes + } + } + ai_chance = { + factor = 33 + modifier = { + factor = 0 + trait = paranoid + } + modifier = { + factor = 0 + trait = wroth + } + modifier = { + factor = 5 + trait = kind + } + } + tooltip = { + FROM = { + add_character_modifier = { + name = house_arrest + duration = -1 + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 50007 + } + } + } + } + + option = { + name = "EVTOPTC50006" # The Oubliette! + trigger = { + FROM = { + prisoner = yes + } + } + ai_chance = { + factor = 33 + modifier = { + factor = 0 + trait = kind + } + modifier = { + factor = 2 + trait = envious + } + modifier = { + factor = 5 + trait = paranoid + } + modifier = { + factor = 5 + trait = cruel + } + modifier = { + factor = 5 + trait = wroth + } + } + + tooltip = { + FROM = { + add_character_modifier = { + name = the_oubliette + duration = -1 + } + } + } + + hidden_tooltip = { + FROM = { + character_event = { + id = 50008 + } + } + } + } + option = { + name = "EVTOPTD50006" # Already released + trigger = { + FROM = { + prisoner = no + } + } + } + + option = { + name = "EVTOPTE50006" # Release for favor + trigger = { + has_dlc = "Zeus" + NOT = { + holds_favor_on = FROM + } + FROM = { + prisoner = yes + } + } + tooltip = { + add_favor = FROM + FROM = { + prisoner = no + opinion = { + modifier = opinion_released_prisoner + who = ROOT + months = 30 + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 50009 + } + } + } + } +} + +# House Arrest +character_event = { + id = 50007 + desc = "EVTDESC50007" + picture = "GFX_evt_into_the_dungeon" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50007" + clr_character_flag = asked_for_better_prison + hidden_tooltip = { + remove_character_modifier = house_arrest + remove_character_modifier = the_dungeon + remove_character_modifier = the_oubliette + } + if = { + limit = { + prisoner = yes + } + add_character_modifier = { + name = house_arrest + duration = -1 + } + character_event = { id = ZE.12219 } # Loses pet rat + } + } +} + +# The Oubliette +character_event = { + id = 50008 + desc = "EVTDESC50008" + picture = "GFX_evt_into_the_dungeon" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50008" + clr_character_flag = asked_for_better_prison + hidden_tooltip = { + remove_character_modifier = house_arrest + remove_character_modifier = the_dungeon + remove_character_modifier = the_oubliette + } + if = { + limit = { + prisoner = yes + } + add_character_modifier = { + name = the_oubliette + duration = -1 + } + } + } +} + +# Released for favor +character_event = { + id = 50009 + desc = "EVTDESC50009" + picture = "GFX_evt_into_the_dungeon" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50009" + clr_character_flag = asked_for_better_prison + hidden_tooltip = { + remove_character_modifier = house_arrest + remove_character_modifier = the_dungeon + remove_character_modifier = the_oubliette + } + reverse_add_favor = FROM + prisoner = no + opinion = { + modifier = opinion_released_prisoner + who = FROM + months = 30 + } + } +} + +############################################### + +# Torture a prisoner! +character_event = { + id = 50010 + desc = "EVTDESC50010" + picture = "GFX_evt_torture" + border = GFX_event_normal_frame_intrigue + + min_age = 14 + only_playable = yes + prisoner = no + capable_only = yes + + trigger = { + NOT = { trait = kind } + NOT = { trait = just } + OR = { + trait = envious + trait = wroth + trait = arbitrary + trait = lunatic + trait = possessed + trait = paranoid + trait = impaler + trait = cruel + } + any_courtier = { + age = 14 + prisoner = yes + host = { character = ROOT } + NOT = { has_character_modifier = house_arrest } + } + } + + mean_time_to_happen = { + months = 240 + modifier = { + factor = 0.25 + trait = impaler + } + modifier = { + factor = 0.5 + trait = possessed + } + modifier = { + factor = 0.5 + trait = cruel + } + modifier = { + factor = 0.75 + trait = paranoid + } + modifier = { + factor = 3.0 + trait = slothful + } + } + + option = { + name = EVTOPTA50010 # Resist my foul impulse + piety = 10 + trigger = { + NOT = { has_character_flag = demon_child_non_pagan } + } + } + + option = { + name = EVTOPTB50010 # Oil up the rack! + if = { + limit = { NOT = { religion = jain } } + piety = -10 + } + if = { + limit = { religion = jain } + piety = -30 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_courtier = { + limit = { + age = 14 + prisoner = yes + host = { character = ROOT } + NOT = { has_character_modifier = house_arrest } + } + random_list = { + 30 = { + character_event = { + id = 50011 + tooltip = "EVTTOOLTIP50011" + } + } + 30 = { + character_event = { + id = 50012 + tooltip = "EVTTOOLTIP50012" + } + } + 30 = { + character_event = { + id = 50013 + tooltip = "EVTTOOLTIP50013" + } + } + 10 = { + character_event = { + id = 50014 + tooltip = "EVTTOOLTIP50014" + } + } + } + } + } +} + +# Tortured +character_event = { + id = 50011 + desc = "EVTDESC50011" + picture = "GFX_evt_torture" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50011" + + add_character_modifier = { + name = tortured + duration = 60 + } + } +} + +# Wounded +character_event = { + id = 50012 + desc = "EVTDESC50012" + picture = "GFX_evt_torture" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50012" + add_trait = wounded + } +} + +# Maimed +character_event = { + id = 50013 + desc = "EVTDESC50013" + picture = "GFX_evt_torture" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50013" + maim_hand_effect = yes + } +} + +# Killed +character_event = { + id = 50014 + desc = "EVTDESC50014" + picture = "GFX_evt_death" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50014" + hidden_tooltip = { + FROM = { + character_event = { + id = 50015 + } + } + } + death = { + death_reason = death_dungeon + killer = FROM + } + } +} + +# Host notified of death +character_event = { + id = 50015 + desc = "EVTDESC50015" + picture = "GFX_evt_death" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA50015" + prestige = -10 + } +} + + +############################################### + +# Ruler is notified of the capture of an enemy commander +character_event = { + id = 50020 + desc = "EVTDESC50020" + picture = "GFX_evt_battle" + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA50020" + } +} + +############################################### + +#Petition liege to release prisoner +character_event = { + id = 50025 + desc = "EVTDESC50025" + picture = GFX_evt_emissary + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + trigger = { + in_command = no + is_abroad = no + independent = no + liege = { + num_of_prisoners = 1 + NOT = { character = ROOT } + any_realm_lord = { + prisoner = yes + host = { + character = PREV + } + is_friend = ROOT + NOT = { + has_character_modifier = petition_release_prisoner_timer + } + } + } + } + + mean_time_to_happen = { + months = 50 + } + + option = { + name = "EVTOPTA50025" + liege = { + random_realm_lord = { + limit = { + host = { + character = PREV + } + prisoner = yes + is_friend = ROOT + } + hidden_tooltip = { + add_character_modifier = { + name = petition_release_prisoner_timer + duration = -1 + hidden = yes + } + } + } + } + liege = { + character_event = { + id = 50026 + tooltip = "EVTTOOLTIP50026" + } + } + } + + option = { + name = "EVTOPTB50025" + liege = { + random_realm_lord = { + limit = { + host = { + character = PREV + } + prisoner = yes + OR = { + opinion = { who = ROOT value = 25 } + reverse_opinion = { who = ROOT value = 25 } + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 5 + } + } + } + } +} + +#Liege responds +character_event = { + id = 50026 + desc = "EVTDESC50026" + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = "EVTOPTA50026" + prestige = -50 + random_realm_lord = { + limit = { + prisoner = yes + has_character_modifier = petition_release_prisoner_timer + } + prisoner = no + } + any_vassal = { + limit = { + prisoner = no + } + opinion = { + modifier = opinion_released_prisoner + who = ROOT + months = 30 + } + } + } + option = { + name = "EVTOPTB50026" + any_vassal = { + limit = { + liege = { + character = ROOT + } + } + opinion = { + modifier = opinion_not_release_prisoner + who = ROOT + years = 5 + } + } + } +} + diff --git a/After the End/events/job_flavour_events.txt b/After the End/events/job_flavour_events.txt new file mode 100644 index 000000000..fd4932a4b --- /dev/null +++ b/After the End/events/job_flavour_events.txt @@ -0,0 +1,2862 @@ +################################################ +# +# Events for Job Flavour +# +# ID 75000 - 75999 are reserved +# +################################################## +# +# Written by Sara Wendel-Örtqvist + +### Councillors are good at their work ### + +#Chancellor is good at his/her job +character_event = { + id = 75000 + desc = EVTDESC75000 + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_diplomacy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + is_nomadic = no + is_tribal = no + job_chancellor = { + diplomacy = 12 + is_smart_trigger = yes + } + NOT = { + has_character_modifier = town_appreciate + } + NOT = { + has_character_modifier = castle_appreciate + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA75000" + add_character_modifier = { + name = town_appreciate + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75000" + add_character_modifier = { + name = castle_appreciate + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } +} + +#Marshal is good at his/her job +character_event = { + id = 75001 + desc = "EVTDESC75001" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_war + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + job_marshal = { + martial = 12 + is_smart_trigger = yes + location = { + NOT = { + has_province_modifier = troops_increases + } + } + } + NOT = { + has_character_modifier = troops_likes_marshal + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA75001" + add_character_modifier = { + name = troops_likes_marshal + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75001" + job_marshal = { + location = { + add_province_modifier = { + name = troops_increases + duration = 432 + } + } + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + job_marshal = { + location = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + } +} + +#Steward is good at his/her job +character_event = { + id = 75002 + desc = "EVTDESC75002" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_economy + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + NOT = { + treasury = 50 + } + any_demesne_province = { + revolt_risk = 0.02 + } + job_treasurer = { + stewardship = 12 + is_smart_trigger = yes + } + NOT = { + has_character_modifier = steward_taxincome + } + NOT = { + has_character_modifier = steward_revoltrisk + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA75002" + add_character_modifier = { + name = steward_taxincome + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75002" + add_character_modifier = { + name = steward_revoltrisk + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } +} + +#Spymaster is good at his/her job +character_event = { + id = 75003 + desc = "EVTDESC75003" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + job_spymaster = { + intrigue = 12 + is_smart_trigger = yes + } + NOT = { + has_character_modifier = increase_arrest_chance + } + NOT = { + has_character_modifier = increase_plot_power + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA75003" + add_character_modifier = { + name = increase_arrest_chance + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75003" + add_character_modifier = { + name = increase_plot_power + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } +} + +### Lord Spiritual is good at his/her job ### +character_event = { + id = 75004 + desc = "EVTDESC75004" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_religion + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + #NOT = { + # religion_group = muslim + #} + job_spiritual = { + learning = 12 + #NOT = { + # religion_group = muslim + #} + is_smart_trigger = yes + } + NOT = { + has_character_modifier = church_appreciates + } + NOT = { + has_character_modifier = spiritual_increase_piety + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA75004" + add_character_modifier = { + name = church_appreciates + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75004" + add_character_modifier = { + name = spiritual_increase_piety + duration = 432 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = capital_prospers_custom_tooltip + hidden_tooltip = { + capital_scope = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } +} + + +### Lustful Chancellor ### + +#The Chancellor is after my wife! +character_event = { + id = 75010 + desc = "EVTDESC75010" + picture = GFX_evt_lovers + + only_rulers = yes + only_men = yes + min_age = 16 + capable_only = yes + is_married = yes + + is_triggered_only = yes + + trigger = { + in_command = no + independent = no + prisoner = no + liege = { + war = no + NOT = { + character = ROOT + } + NOT = { + has_character_modifier = lustful_chancellor_timer + } + job_chancellor = { + age = 16 + NOT = { + age = 60 + } + at_location = ROOT + is_female = no + trait = lustful + NOR = { + character = ROOT + trait = celibate + trait = blinded + } + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + hidden_tooltip = { + liege = { + add_character_modifier = { + name = lustful_chancellor_timer + duration = 365 + hidden = yes + } + } + } + } + + option = { + name = "EVTOPTA75010" + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + trait = envious + } + modifier = { + factor = 0.05 + trait = kind + } + } + liege = { + character_event = { + id = 75011 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75011" + } + } + } + option = { + name = "EVTOPTB75010" + ai_chance = { + factor = 50 + + modifier = { + factor = 0.05 + trait = envious + } + modifier = { + factor = 3 + trait = kind + } + } + prestige = -5 + } +} + +#Liege hears about FROM's complains about Chancellor chasing FROM's wife +character_event = { + id = 75011 + desc = "EVTDESC75011" + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = "EVTOPTA75011" + FROM = { + character_event = { + id = 75012 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75012" + } + } + job_chancellor = { + character_event = { + id = 75013 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75013" + } + } + } + option = { + name = "EVTOPTB75011" + job_chancellor = { + character_event = { + id = 75014 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75014" + } + } + FROM = { + character_event = { + id = 75015 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75015" + } + } + } +} + +#Imprison Chancellor: Notify Vassal +character_event = { + id = 75012 + desc = "EVTDESC75012" + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = "EVTOPTA75012" + FROM = { + opinion = { + modifier = opinion_complaining + who = ROOT + years = 3 + } + } + } +} + +#Imprison Chancellor +character_event = { + id = 75013 + desc = "EVTDESC75013" + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = "EVTOPTA75013" + FROM = { + reverse_imprison = ROOT + } + } +} + +#Clear Chancellor: Notify Chancellor +character_event = { + id = 75014 + desc = "EVTDESC75014" + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = "EVTOPTA75014" + opinion = { + modifier = opinion_my_saviour + who = FROM + years = 2 + } + } +} + +#Clear Chancellor: Notify Vassal +character_event = { + id = 75015 + desc = "EVTDESC75015" + picture = GFX_evt_lunatic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75015" + opinion = { + modifier = opinion_betrayed + who = ROOT + years = 2 + } + } +} + +### Diligent Chancellor ### + +#Chancellor is diligent +character_event = { + id = 75020 + desc = "EVTDESC75020" + picture = GFX_evt_spymaster + + only_rulers = yes + min_age = 16 + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_job_title = job_chancellor + trait = diligent + liege = { prisoner = no } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75020" + trigger = { + liege = { + NOT = { + character = ROOT + } + any_vassal = { + NOT = { opinion = { who = PREV value = 0 } } + } + } + } + liege = { + character_event = { + id = 75021 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75021" + } + random_vassal = { + limit = { + NOT = { opinion = { who = PREV value = 0 } } + } + character_event = { + id = 75022 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75022" + } + } + } + } + option = { + name = "EVTOPTB75020" + trigger = { + liege = { + NOT = { + character = ROOT + } + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + NOT = { opinion = { who = PREV value = 0 } } + } + } + } + liege = { + character_event = { + id = 75023 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75023" + } + spouse = { + character_event = { + id = 75024 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75024" + } + } + } + } + option = { + name = "EVTOPTC75020" + liege = { + character_event = { + id = 75025 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75025" + } + } + } +} + +#Liege finds random vassal likes him/her more +character_event = { + id = 75021 + desc = "EVTDESC75021" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75021" + random_vassal = { + limit = { + NOT = { opinion = { who = PREV value = 0 } } + } + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + scaled_wealth = -0.1 + FROM = { + reverse_opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + character_event = { + id = 75026 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75026" + } + } + } + + option = { + name = "EVTOPTB75021" #It's just his/her job + random_vassal = { + limit = { + NOT = { opinion = { who = PREV value = 0 } } + } + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + prestige = 10 + FROM = { + character_event = { + id = 75027 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75027" + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Vassal likes liege more +character_event = { + id = 75022 + desc = "EVTDESC75022" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75022" + liege = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + } +} + +#Liege likes spouse more +character_event = { + id = 75023 + desc = "EVTDESC75023" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75023" + spouse = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + scaled_wealth = -0.1 + FROM = { + reverse_opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + character_event = { + id = 75026 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75026" + } + } + } + option = { + name = "EVTOPTB75023" #It's just his/her job + spouse = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + prestige = 10 + FROM = { + character_event = { + id = 75027 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75027" + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Spouse likes liege more +character_event = { + id = 75024 + desc = "EVTDESC75024" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75024" + spouse = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + } +} + +#Courtiers like liege +character_event = { + id = 75025 + desc = "EVTDESC75025" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75025" #Reward + any_courtier = { + opinion = { + modifier = opinion_impressed + who = ROOT + years = 2 + } + } + scaled_wealth = -0.1 + FROM = { + reverse_opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + character_event = { + id = 75026 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75026" + } + } + } + option = { + name = "EVTOPTB75025" #It's just his/her job + any_courtier = { + opinion = { + modifier = opinion_impressed + who = ROOT + years = 2 + } + } + prestige = 10 + FROM = { + character_event = { + id = 75027 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75027" + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Chancellor is rewarded +character_event = { + id = 75026 + desc = "EVTDESC75026" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75026" + treasury = 5 + } +} + +#Chancellor: Liege does not appreciate me +character_event = { + id = 75027 + desc = "EVTDESC75027" + picture = GFX_evt_spymaster + + is_triggered_only = yes + + option = { + name = "EVTOPTA75027" + remove_trait = diligent + } +} + +### Slothful Chancellor ### + +#Chancellor is slothful +character_event = { + id = 75030 + desc = "EVTDESC75030" + picture = GFX_evt_scandal + + min_age = 16 + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_job_title = job_chancellor + trait = slothful + independent = no + liege = { + NOT = { + character = ROOT + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75030" + prestige = -5 + liege = { + hidden_tooltip = { + character_event = { + id = 75031 + days = 1 + random = 2 + } + } + } + } +} + +#Liege is notified about slothful Chancellor +character_event = { + id = 75031 + desc = "EVTDESC75031" + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = "EVTOPTA75031" #Give a stern talking to Chancellor + FROM = { + character_event = { + id = 75032 + tooltip = "EVTTOOLTIP75032" + } + } + } + option = { + name = "EVTOPTB75031" #Ignore it + random = { + chance = 25 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify slothful + } + } + } + hidden_tooltip = { + FROM = { + character_event = { + id = 75033 + tooltip = "EVTTOOLTIP75033" + } + } + } + } + option = { + name = "EVTOPTC75031" #This is worth throwing someone in jail over + trigger = { + FROM = { + is_ruler = no + } + } + FROM = { + character_event = { + id = 75034 + tooltip = "EVTTOOLTIP75034" + } + } + } +} + +#Chancellor is talked sternly to by Liege +character_event = { + id = 75032 + desc = "EVTDESC75032" + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = "EVTOPTA75032" + FROM = { + character_event = { + id = 75035 + days = 3 + random = 3 + tooltip = "EVTTOOLTIP75035" + } + } + random = { + chance = 25 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + option = { + name = "EVTOPTB75032" + prestige = -5 + remove_trait = slothful + FROM = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75036 + } + } + } + } +} + +#The issue is ignored +character_event = { + id = 75033 + desc = "EVTDESC75033" + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = "EVTOPTA75033" + } +} + +#Chancellor is thrown in jail +character_event = { + id = 75034 + desc = "EVTDESC75034" + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = "EVTOPTA75034" + FROM = { + reverse_imprison = ROOT + } + } +} + +#Liege: Chancellor is angry +character_event = { + id = 75035 + desc = "EVTDESC75035" + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = "EVTOPTA75035" + opinion = { + modifier = opinion_angry + who = FROM + years = 2 + } + } +} + +#Liege: Chancellor is no longer slothful +character_event = { + id = 75036 + desc = "EVTDESC75036" + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = "EVTOPTA75036" + opinion = { + modifier = opinion_glad + who = FROM + years = 2 + } + } +} + +### Lord Spiritual ### + +#Lord Spiritual finds infidel +character_event = { + id = 75040 + desc = "EVTDESC75040" + picture = GFX_evt_heretic + + capable_only = yes + + is_triggered_only = yes + + trigger = { + independent = no + has_job_title = job_spiritual + trait = zealous + liege = { + is_nomadic = no + religion = ROOT + NOT = { + character = ROOT + } + any_courtier = { + age = 16 + NOT = { + religion_group = ROOT + } + NOT = { + has_character_flag = banished_religion + } + NOT = { + character = ROOT + } + prisoner = no + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + liege = { + random_courtier = { + limit = { + age = 16 + NOT = { + religion_group = ROOT + } + NOT = { + has_character_flag = banished_religion + } + NOT = { + character = ROOT + } + prisoner = no + } + save_event_target_as = target_infidel + } + } + } + + option = { + name = "EVTOPTA75040" #Demand to liege that vassal should be burned at the stake + liege = { + character_event = { + id = 75041 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75041" + } + } + } + option = { + name = "EVTOPTB75040" #Demand to liege that X should be exiled. + liege = { + character_event = { + id = 75042 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75042" + } + } + } +} + +#Liege burns infidel? +character_event = { + id = 75041 + desc = "EVTDESC75041" + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75041" + event_target:target_infidel = { + any_courtier = { + limit = { + religion = PREV + prisoner = no + NOT = { + character = ROOT + } + NOT = { + character = PREV + } + } + opinion = { + modifier = opinion_burned_same_faith + who = ROOT + years = 5 + } + } + death = { + death_reason = death_execution_burning + killer = ROOT + } + } + FROM = { + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75043 + days = 1 + random = 2 + } + } + } + } + option = { + name = "EVTOPTB75041" + event_target:target_infidel = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + any_courtier = { + limit = { + trait = zealous + religion = ROOT + NOT = { + character = ROOT + } + prisoner = no + } + opinion = { + modifier = opinion_ignored_infidel + who = ROOT + years = 5 + } + } + FROM = { + hidden_tooltip = { + character_event = { + id = 75044 + days = 1 + random = 2 + } + } + } + } +} + +#Liege banish infidel? +character_event = { + id = 75042 + desc = "EVTDESC75042" + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75042" + event_target:target_infidel = { + banish = yes + any_courtier = { + limit = { + religion = PREV + NOT = { + character = ROOT + } + NOT = { + character = PREV + } + prisoner = no + } + opinion = { + modifier = opinion_banished_same_faith + who = ROOT + years = 5 + } + } + } + FROM = { + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75045 + days = 1 + random = 2 + } + } + } + } + option = { + name = "EVTOPTB75042" + event_target:target_infidel = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + any_courtier = { + limit = { + trait = zealous + religion = ROOT + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = opinion_ignored_infidel + who = ROOT + years = 5 + } + } + FROM = { + hidden_tooltip = { + character_event = { + id = 75046 + days = 1 + random = 2 + } + } + } + } +} + +#Lord Spiritual: Liege burned X +character_event = { + id = 75043 + desc = "EVTDESC75043" + picture = GFX_evt_beheading + + is_triggered_only = yes + + option = { + name = "EVTOPTA75043" + prestige = 10 + } +} + +#Lord Spiritual: Liege ignored demands +character_event = { + id = 75044 + desc = "EVTDESC75044" + picture = GFX_evt_lunatic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75044" + prestige = -10 + } +} + +#Lord Spiritual: Liege banished X +character_event = { + id = 75045 + desc = "EVTDESC75045" + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = "EVTOPTA75045" + prestige = 10 + } +} + +#Lord Spiritual: Liege ignored demands +character_event = { + id = 75046 + desc = "EVTDESC75046" + picture = GFX_evt_lunatic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75046" + prestige = -10 + } +} + +#Lord Spiritual finds a heretic +character_event = { + id = 75050 + desc = "EVTDESC75050" + picture = GFX_evt_heretic + + capable_only = yes + + is_triggered_only = yes + + trigger = { + independent = no + has_job_title = job_spiritual + trait = zealous + liege = { + religion = ROOT + NOT = { + character = ROOT + } + any_courtier = { + age = 16 + is_heresy_of = ROOT + prisoner = no + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + liege = { + random_courtier = { + limit = { + age = 16 + is_heresy_of = ROOT + prisoner = no + } + save_event_target_as = target_heretic + } + } + } + + option = { + name = "EVTOPTA75050" #Demand to liege that vassal should be burned at the stake + liege = { + character_event = { + id = 75051 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75051" + } + } + } + option = { + name = "EVTOPTB75050" #Demand to liege that X should be exiled. + liege = { + character_event = { + id = 75052 + days = 1 + random = 2 + tooltip = "EVTTOOLTIP75052" + } + } + } +} + +#Liege burns heretic? +character_event = { + id = 75051 + desc = "EVTDESC75051" + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75051" + event_target:target_heretic = { + any_courtier = { + limit = { + religion = PREV + NOT = { + character = ROOT + } + NOT = { + character = PREV + } + prisoner = no + } + opinion = { + modifier = opinion_burned_same_faith + who = ROOT + years = 5 + } + } + death = { + death_reason = death_execution_burning + killer = ROOT + } + } + FROM = { + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75053 + days = 1 + random = 2 + } + } + } + } + option = { + name = "EVTOPTB75051" + event_target:target_heretic = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + any_courtier = { + limit = { + trait = zealous + religion = ROOT + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = opinion_ignored_infidel + who = ROOT + years = 5 + } + } + FROM = { + hidden_tooltip = { + character_event = { + id = 75054 + days = 1 + random = 2 + } + } + } + } +} + +#Liege banish X +character_event = { + id = 75052 + desc = "EVTDESC75052" + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = "EVTOPTA75052" + event_target:target_heretic = { + banish = yes + any_courtier = { + limit = { + religion = PREV + prisoner = no + NOT = { + character = ROOT + } + NOT = { + character = PREV + } + } + opinion = { + modifier = opinion_banished_same_faith + who = ROOT + years = 5 + } + } + } + FROM = { + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75055 + days = 1 + random = 2 + } + } + } + } + option = { + name = "EVTOPTB75052" + event_target:target_heretic = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + any_courtier = { + limit = { + trait = zealous + religion = ROOT + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = opinion_ignored_infidel + who = ROOT + years = 5 + } + } + FROM = { + hidden_tooltip = { + character_event = { + id = 75056 + days = 1 + random = 2 + } + } + } + } +} + +#Lord Spiritual: Liege burned X +character_event = { + id = 75053 + desc = "EVTDESC75053" + picture = GFX_evt_beheading + + is_triggered_only = yes + + option = { + name = "EVTOPTA75053" + prestige = 10 + } +} + +#Lord Spiritual: Liege ignored demands +character_event = { + id = 75054 + desc = "EVTDESC75054" + picture = GFX_evt_lunatic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75054" + prestige = -10 + } +} + +#Lord Spiritual: Liege banished X +character_event = { + id = 75055 + desc = "EVTDESC75055" + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = "EVTOPTA75055" + prestige = 10 + } +} + +#Lord Spiritual: Liege ignored demands +character_event = { + id = 75056 + desc = "EVTDESC75056" + picture = GFX_evt_lunatic + + is_triggered_only = yes + + option = { + name = "EVTOPTA75056" + prestige = -10 + } +} + +### Steward ### + +#Steward is Arbitrary: Ruler +character_event = { + id = 75060 + desc = "EVTDESC75060" + picture = GFX_evt_peasants + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + trait = arbitrary + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75060" + job_treasurer = { + character_event = { + id = 75061 + tooltip = "EVTTOOLTIP75061" + } + } + } +} + +#Steward is Arbitrary: Steward +character_event = { + id = 75061 + desc = "EVTDESC75061" + picture = GFX_evt_peasants + + is_triggered_only = yes + + option = { + name = "EVTOPTA75061" + FROM = { + random_demesne_province = { + add_province_modifier = { + name = arbitrary_steward + duration = 1825 + } + } + } + } +} + +#Steward is Just: Ruler +character_event = { + id = 75065 + desc = "EVTDESC75065" + picture = GFX_evt_throne_room + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + trait = just + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75065" + job_treasurer = { + character_event = { + id = 75066 + tooltip = "EVTTOOLTIP75066" + } + } + } +} + +#Steward is Just: Steward +character_event = { + id = 75066 + desc = "EVTDESC75066" + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = "EVTOPTA75066" + FROM = { + random_demesne_province = { + add_province_modifier = { + name = just_steward + duration = 1825 + } + } + } + } +} + +#Steward is Kind/Charitable: Ruler +character_event = { + id = 75070 + desc = "EVTDESC75070" + picture = GFX_evt_throne_room + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + OR = { + trait = kind + trait = charitable + } + } + any_demesne_province = { + has_disease = yes + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75070" + job_treasurer = { + character_event = { + id = 75071 + tooltip = "EVTTOOLTIP75071" + } + } + } +} + +#Steward is Kind/Charitable: Steward +character_event = { + id = 75071 + desc = "EVTDESC75071" + picture = GFX_evt_throne_room + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75071" + FROM = { + random_demesne_province = { + limit = { + has_disease = yes + } + reduce_disease = 0.33 + } + } + } +} + +#Steward is Cruel: Ruler +character_event = { + id = 75075 + desc = "EVTDESC75075" + picture = GFX_evt_peasants + border = GFX_event_normal_frame_economy + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + trait = cruel + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75075" + scaled_wealth = 0.2 + random_demesne_province = { + add_province_modifier = { + name = peasants_upset + duration = 365 + } + } + } + option = { + name = "EVTOPTB75075" + job_treasurer = { + character_event = { + id = 75076 + tooltip = "EVTTOOLTIP75076" + } + } + } +} + +#Steward is Cruel: Steward +character_event = { + id = 75076 + desc = "EVTDESC75076" + picture = GFX_evt_shadow + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75076" + change_stewardship = -1 + opinion = { + modifier = opinion_betrayed + who = FROM + years = 2 + } + } +} + +#Steward is Diligent: Ruler +character_event = { + id = 75080 + desc = "EVTDESC75080" + picture = GFX_evt_throne_room + border = GFX_event_normal_frame_economy + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + trait = diligent + } + any_demesne_province = { + has_province_modifier = thieves_guild + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75080" + if = { + limit = { + trait = just + } + remove_trait = just + } + random_vassal = { + opinion = { + modifier = opinion_associating_with_thieves + who = ROOT + years = 2 + } + } + random_demesne_province = { + limit = { + has_province_modifier = thieves_guild + } + remove_province_modifier = thieves_guild + } + } + option = { + name = "EVTOPTB75080" + prestige = 5 + } +} + +#Steward and the Economy: Ruler +character_event = { + id = 75085 + desc = "EVTDESC75085" + picture = GFX_evt_throne_room + border = GFX_event_normal_frame_economy + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_treasurer = { + stewardship = 15 + } + any_demesne_province = { + is_capital = yes + NOT = { + has_province_modifier = intelligent_steward + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75085" #Adapt his ideas + scaled_wealth = -0.1 + random_demesne_province = { + limit = { + is_capital = yes + } + add_province_modifier = { + name = intelligent_steward + duration = 1825 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75085" + job_treasurer = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 1 + } + } + } +} + +#Steward is Deceitful +character_event = { + id = 75090 + desc = "EVTDESC75090" + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_economy + + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_job_title = job_treasurer + trait = deceitful + NOT = { wealth = 1500 } + any_demesne_province = { + OR = { + has_province_modifier = highway_robber_band + has_province_modifier = thieves_guild + has_province_modifier = smugglers_ring + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75090" + treasury = 50 + random = { + chance = 33 + + liege = { + character_event = { + id = 75091 + tooltip = "EVTTOOLTIP75091" + } + } + } + } + option = { + name = "EVTOPTB75090" + treasury = 10 + random = { + chance = 10 + + liege = { + character_event = { + id = 75091 + tooltip = "EVTTOOLTIP75091" + } + } + } + } +} + +#Steward is Deceitful: Liege +character_event = { + id = 75091 + desc = "EVTDESC75091" + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75091" + FROM = { + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 75092 + } + } + } + } + option = { + name = "EVTOPTB75091" + add_trait = arbitrary + if = { + limit = { + FROM = { + treasury = 50 + } + } + wealth = 50 + } + FROM = { + hidden_tooltip = { + character_event = { + id = 75093 + } + } + } + } +} + +#Steward is Deceitful: Steward +character_event = { + id = 75092 + desc = "EVTDESC75092" + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75092" + } +} + +#Steward is Deceitful: Steward +character_event = { + id = 75093 + desc = "EVTDESC75093" + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75093" + wealth = -50 + } +} + +#Steward is Greedy: Ruler +character_event = { + id = 75095 + desc = "EVTDESC75095" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + only_rulers = yes + capable_only = yes + lacks_dlc = "Conclave" + + is_triggered_only = yes + + trigger = { + job_treasurer = { + trait = greedy + NOT = { + has_character_modifier = greedy_steward_timer + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 3 + trait = diligent + } + + modifier = { + factor = 3 + stewardship = 10 + } + } + + option = { + name = "EVTOPTA75095" + job_treasurer = { + hidden_tooltip = { + add_character_modifier = { + name = greedy_steward_timer + duration = 1095 + hidden = yes + } + } + character_event = { + id = 75096 + tooltip = "EVTTOOLTIP75096" + } + } + } + option = { + name = "EVTOPTB75095" + random_list = { + 80 = { + } + 10 = { + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + 10 = { + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + } +} + +#Steward is greedy: Steward +character_event = { + id = 75096 + desc = "EVTDESC75096" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75096" #Deny + random_list = { + 90 = { + FROM = { + character_event = { + id = 75097 + tooltip = "EVTTOOLTIP75097" + } + } + } + 10 = { + FROM = { + character_event = { + id = 75098 + tooltip = "EVTTOOLTIP75098" + } + } + } + } + } + option = { + name = "EVTOPTB75096" #Admit it + FROM = { + character_event = { + id = 75098 + tooltip = "EVTTOOLTIP75098" + } + } + } +} + +#Steward is Greedy: Liege is shown proof +character_event = { + id = 75097 + desc = "EVTDESC75097" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75097" + prestige = 5 + } +} + +#Steward is Greedy: Liege knows Steward stole money +character_event = { + id = 75098 + desc = "EVTDESC75098" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75098" #Fine the Steward + if = { + limit = { + FROM = { + treasury = 1 + } + } + wealth = FROM + } + + FROM = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 75099 + } + } + } + } + option = { + name = "EVTOPTB75098" + FROM = { + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 75100 + } + } + } + } + option = { + name = "EVTOPTC75098" + add_trait = arbitrary + FROM = { + opinion = { + modifier = opinion_upset + who = ROOT + years = 2 + } + } + } +} + +#Steward is fined +character_event = { + id = 75099 + desc = "EVTDESC75099" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75099" + clear_wealth = yes + remove_trait = greedy + } +} + +#Steward is imprisoned +character_event = { + id = 75100 + desc = "EVTDESC75100" + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = "EVTOPTA75100" + remove_trait = greedy + } +} + +### Marshal ### + +#Marshal deals with highway robber +character_event = { + id = 75105 + desc = "EVTDESC75105" + picture = GFX_evt_bandits + border = GFX_event_normal_frame_war + + capable_only = yes + + is_triggered_only = yes + + trigger = { + has_job_title = job_marshal + war = no + in_command = no + liege = { + any_demesne_province = { + has_province_modifier = highway_robber_band + } + } + OR = { + trait = diligent + trait = brave + martial = 10 + } + NOT = { + trait = slothful + } + NOT = { + trait = craven + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75105" + liege = { + character_event = { + id = 75106 + tooltip = "EVTTOOLTIP75106" + } + } + } + option = { + name = "EVTOPTB75105" + ai_chance = { + factor = 0 + } + if = { + limit = { NOR = { trait = berserker trait = craven } } + add_trait = craven + } + } +} + +#Marshal deals with highway robber: Liege decides +character_event = { + id = 75106 + desc = "EVTDESC75106" + picture = GFX_evt_bandits + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA75106" + random_list = { + 95 = { + random_demesne_province = { + limit = { + has_province_modifier = highway_robber_band + } + remove_province_modifier = highway_robber_band + } + add_character_modifier = { + name = marshal_highway_robbers + duration = 1825 + } + } + 5 = { + FROM = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify wounded + } + } + } + } + } + } + option = { + name = "EVTOPTB75106" + random_list = { + 50 = { + random_demesne_province = { + limit = { + has_province_modifier = highway_robber_band + } + remove_province_modifier = highway_robber_band + } + add_character_modifier = { + name = marshal_highway_robbers + duration = 1825 + } + } + 20 = { + FROM = { + add_maimed_trait_effect = yes + } + } + 20 = { + FROM = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify wounded + } + } + } + } + 10 = { + FROM = { + add_trait = infirm + hidden_tooltip = { + character_event = { + id = 38284 #Notify maimed + } + } + } + } + } + } +} + +#Marshal is wroth & demesne_size <1 & liege has a city vassal somewhere. +character_event = { + id = 75110 + desc = "EVTDESC75110" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_war + + min_age = 16 + capable_only = yes + + is_triggered_only = yes + + trigger = { + independent = no + has_job_title = job_marshal + trait = wroth + NOT = { demesne_size = 1 } + liege = { + NOT = { + character = ROOT + } + any_vassal = { + is_republic = yes + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75110" + liege = { + character_event = { + id = 75111 + tooltip = "EVTTOOLTIP75111" + } + } + } +} + +#Liege decides if Marshal is guilty or not +character_event = { + id = 75111 + desc = "EVTDESC75111" + picture = GFX_evt_scandal + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA75111" + FROM = { + opinion = { + modifier = opinion_insulted + who = ROOT + years = 2 + } + tooltip = { treasury = -20 } + hidden_tooltip = { + character_event = { + id = 75112 + } + } + } + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + + random_demesne_province = { + add_province_modifier = { + name = peasants_upset + duration = 2 + } + } + } + option = { + name = "EVTOPTB75111" + FROM = { + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 75113 + } + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 3 + } + any_courtier = { + limit = { + opinion = { who = PREV value = 30 } + } + opinion = { + modifier = opinion_upset + who = ROOT + years = 3 + } + } + } + random = { + chance = 25 + + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + option = { + name = "EVTOPTC75111" + FROM = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 3 + } + character_event = { + id = 75114 + tooltip = "EVTTOOLTIP75114" + } + } + random = { + chance = 25 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + random_demesne_province = { + add_province_modifier = { + name = peasants_upset + duration = 2 + } + } + } +} + +#Marshal is fined +character_event = { + id = 75112 + desc = "EVTDESC75112" + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA75112" + wealth = -20 + } +} + +#Marshal is imprisoned +character_event = { + id = 75113 + desc = "EVTDESC75113" + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA75113" + } +} + +#Marshal is cleared +character_event = { + id = 75114 + desc = "EVTDESC75114" + picture = GFX_evt_emissary + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = "EVTOPTA75114" + } +} + +#Ruler: Marshal has 15+ martial +character_event = { + id = 75120 + desc = "EVTDESC75120" + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_war + + only_rulers = yes + capable_only = yes + + is_triggered_only = yes + + trigger = { + job_marshal = { + martial = 15 + } + any_demesne_province = { + is_capital = yes + NOT = { + has_province_modifier = marshal_improves_capital + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA75120" #Adapt his ideas + scaled_wealth = -0.1 + random_demesne_province = { + limit = { + is_capital = yes + } + add_province_modifier = { + name = marshal_improves_capital + duration = 1825 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + option = { + name = "EVTOPTB75120" + job_marshal = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} diff --git a/After the End/events/job_lord_spiritual.txt b/After the End/events/job_lord_spiritual.txt index b48747c07..c4b8b1318 100644 --- a/After the End/events/job_lord_spiritual.txt +++ b/After the End/events/job_lord_spiritual.txt @@ -594,9 +594,9 @@ character_event = { option = { name = "EVTOPTA20021" trigger = { - NOT = { - religion_group = muslim - } + #NOT = { + # religion_group = muslim + #} NOT = { trait = wroth } @@ -615,20 +615,20 @@ character_event = { add_trait = zealous liege = { letter_event = { id = 20022 tooltip = "EVTTOOLTIP20022" } } } - option = { - name = "EVTOPTC20021" - trigger = { - religion_group = muslim - NOT = { - AND = { - trait = wroth - NOT = { trait = humble } - } - } - } - add_trait = wounded - liege = { letter_event = { id = 20022 tooltip = "EVTTOOLTIP20022" } } - } + #option = { + # name = "EVTOPTC20021" + # trigger = { + # religion_group = muslim + # NOT = { + # AND = { + # trait = wroth + # NOT = { trait = humble } + # } + # } + # } + # add_trait = wounded + # liege = { letter_event = { id = 20022 tooltip = "EVTTOOLTIP20022" } } + #} } # 20022: Inform the Liege about wounding @@ -796,20 +796,6 @@ character_event = { option = { name = "EVTOPTA20030" - trigger = { - NOT = { - religion_group = muslim - } - } - FROM = { - liege = { letter_event = { id = 20032 tooltip = "EVTTOOLTIP20032" } } - } - } - option = { - name = "EVTOPTB20030" - trigger = { - religion_group = muslim - } FROM = { liege = { letter_event = { id = 20032 tooltip = "EVTTOOLTIP20032" } } } @@ -893,18 +879,6 @@ letter_event = { option = { name = "EVTOPTA20033" - trigger = { - NOT = { - religion_group = muslim - } - } - piety = 5 - } - option = { - name = "EVTOPTB20033" - trigger = { - religion_group = muslim - } piety = 5 } } @@ -1883,15 +1857,15 @@ character_event = { has_secret_religion = no OR = { religion_group = christian - religion_group = muslim - religion_group = jewish_group + religion_group = oldworld + religion_group = latter_day_saints } liege = { is_heretic = no OR = { religion_group = christian - religion_group = muslim - religion_group = jewish_group + religion_group = oldworld + religion_group = latter_day_saints } } NOT = { @@ -2486,7 +2460,7 @@ character_event = { using_cb = religious_revolt using_cb = pagan_holy_war using_cb = buddhist_holy_war - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = manifest_destiny_invasion } } @@ -2655,7 +2629,7 @@ character_event = { using_cb = religious_revolt using_cb = pagan_holy_war using_cb = buddhist_holy_war - using_cb = muslim_invasion + #using_cb = muslim_invasion using_cb = manifest_destiny_invasion } } diff --git a/After the End/events/job_offmap.txt b/After the End/events/job_offmap.txt new file mode 100644 index 000000000..12486626e --- /dev/null +++ b/After the End/events/job_offmap.txt @@ -0,0 +1,3799 @@ +############################## +# CHANCELLOR +# JOB: Perform Statecraft +############################## + +namespace = MNM + +character_event = { + id = MNM.78000 + title = MNM.78000.t + desc = MNM.78000.d + picture = GFX_evt_emissary + border = GFX_event_normal_frame_diplomacy + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_statecraft + NOT = { has_character_modifier = in_seclusion } + liege = { + NOT = { + has_character_modifier = popular_ruler + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 1.25 + NOT = { diplomacy = 2 } + } + modifier = { + factor = 1.25 + NOT = { diplomacy = 3 } + } + modifier = { + factor = 1.25 + NOT = { diplomacy = 4 } + } + modifier = { + factor = 1.25 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 0.75 + diplomacy = 10 + } + modifier = { + factor = 0.75 + diplomacy = 11 + } + modifier = { + factor = 0.75 + diplomacy = 12 + } + modifier = { + factor = 0.75 + diplomacy = 13 + } + modifier = { + factor = 0.75 + diplomacy = 15 + } + modifier = { + factor = 0.75 + diplomacy = 18 + } + } + + option = { + name = OK + liege = { + letter_event = { id = MNM.78001 } + } + } +} + +character_event = { + id = MNM.78001 + + is_triggered_only = yes + + hide_window = yes + + immediate = { #pick best target, if no good one add a small general opinion bonus for a time. don't fire these events while that modifier is active + save_event_target_as = chancellor_employer + if = { + limit = { + any_vassal = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + random_vassal = { + limit = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + save_event_target_as = statecraft_target + } + break = yes + } + if = { + limit = { + independent = no + liege = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + liege = { + save_event_target_as = statecraft_target + } + break = yes + } + if = { + limit = { + any_realm_province = { + any_neighbor_province = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + } + } + random_realm_province = { + limit = { + any_neighbor_province = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + } + random_neighbor_province = { + limit = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 40 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + owner = { + top_liege = { + save_event_target_as = statecraft_target + } + } + } + } + break = yes + } + if = { + limit = { + any_vassal = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + random_vassal = { + limit = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + save_event_target_as = statecraft_target + } + break = yes + } + if = { + limit = { + independent = no + liege = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + liege = { + save_event_target_as = statecraft_target + } + break = yes + } + if = { + limit = { + any_realm_province = { + any_neighbor_province = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + } + } + random_realm_province = { + limit = { + any_neighbor_province = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + } + random_neighbor_province = { + limit = { + owner = { + NOT = { same_realm = ROOT } + top_liege = { + NOT = { + opinion = { who = ROOT value = 80 } + } + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + } + } + owner = { + top_liege = { + save_event_target_as = statecraft_target + } + } + } + } + break = yes + } + if = { + limit = { + NOT = { event_target:statecraft_target = { always = yes } } + } + set_character_flag = statecraft_pop_ruler + job_chancellor = { + letter_event = { id = MNM.78006 } + } + } + } + + after = { + event_target:statecraft_target = { + character_event = { id = MNM.78004 } + } + } +} + +character_event = { + id = MNM.78004 + + is_triggered_only = yes + + hide_window = yes + + immediate = { + event_target:chancellor_employer = { + letter_event = { id = MNM.78005 } + } + } +} + +letter_event = { + id = MNM.78005 + desc = 78001.d + + is_triggered_only = yes + + notification = yes + + option = { + name = EXCELLENT + } + + after = { + if = { + limit = { + event_target:statecraft_target = { + always = yes + } + } + event_target:statecraft_target = { + opinion = { + modifier = opinion_improved_relations + who = ROOT + years = 4 + } + letter_event = { id = MNM.78002 days = 7 } + } + } + } +} + +character_event = { + id = MNM.78006 + + is_triggered_only = yes + + hide_window = yes + + immediate = { + event_target:chancellor_employer = { + letter_event = { id = MNM.78009 } + } + } +} + +letter_event = { + id = MNM.78009 + desc = 78001.d2 + + is_triggered_only = yes + + notification = yes + + trigger = { + NOT = { + has_character_modifier = popular_ruler + } + } + + option = { + name = I_SEE + } + + after = { + if = { + limit = { + has_character_flag = statecraft_pop_ruler + } + add_character_modifier = { + name = popular_ruler + days = 730 + } + clr_character_flag = statecraft_pop_ruler + } + } +} + +#Inform the target +letter_event = { + id = MNM.78002 + desc = MNM.78002.d + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = MNM.78002.a + tooltip = { + opinion = { + modifier = opinion_improved_relations + who = event_target:chancellor_employer + years = 4 + } + } + } +} + +# The Chancellor's attempts to improve relations with lord is sabotaged +character_event = { + id = MNM.78003 + title = "EVTNAME911" + desc = MNM.78003.d + picture = GFX_evt_emissary + border = GFX_event_normal_frame_diplomacy + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_improve_relations + NOT = { has_character_modifier = in_seclusion } + liege = { + any_vassal = { + is_priest = no + NOT = { character = ROOT } + } + } + } + + mean_time_to_happen = { + months = 220 + + modifier = { + factor = 0.75 + NOT = { diplomacy = 2 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 3 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 4 } + } + modifier = { + factor = 0.75 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 1.25 + diplomacy = 10 + } + modifier = { + factor = 1.25 + diplomacy = 11 + } + modifier = { + factor = 1.25 + diplomacy = 12 + } + modifier = { + factor = 1.25 + diplomacy = 13 + } + modifier = { + factor = 1.25 + diplomacy = 15 + } + modifier = { + factor = 1.25 + diplomacy = 18 + } + } + + option = { + name = "EVTOPTA911" + hidden_tooltip = { + liege = { + random_vassal = { + limit = { + is_priest = no + NOT = { character = ROOT } + } + character_event = { id = 20110 days = 7 } + } + } + } + } +} + + +#Steward + +character_event = { + id = MNM.70005 + title = MNM.70005.t + desc = MNM.70005.d + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_administer_realm + NOT = { has_character_modifier = in_seclusion } + } + + mean_time_to_happen = { + months = 220 + + modifier = { + factor = 1.25 + NOT = { stewardship = 2 } + } + modifier = { + factor = 1.25 + NOT = { stewardship = 3 } + } + modifier = { + factor = 1.25 + NOT = { stewardship = 4 } + } + modifier = { + factor = 1.25 + NOT = { stewardship = 5 } + } + modifier = { + factor = 0.75 + stewardship = 10 + } + modifier = { + factor = 0.75 + stewardship = 11 + } + modifier = { + factor = 0.75 + stewardship = 12 + } + modifier = { + factor = 0.75 + stewardship = 13 + } + modifier = { + factor = 0.75 + stewardship = 15 + } + modifier = { + factor = 0.75 + stewardship = 18 + } + } + + option = { + name = "EVTOPTA920" + liege = { character_event = { id = MNM.70006 } } + } +} + +character_event = { + id = MNM.70006 + desc = MNM.70006.d + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + immediate = { + if = { + limit = { + any_demesne_province = { + can_add_admin_bonus_trigger = yes + } + } + random_demesne_province = { + limit = { + can_add_admin_bonus_trigger = yes + } + save_event_target_as = admin_bonus_province + } + break = yes + } + capital_scope = { + save_event_target_as = admin_bonus_province # For localisation + } + set_character_flag = no_possible_bonus + } + + is_triggered_only = yes + + notification = yes + + option = { + name = EXCELLENT + if = { + limit = { + NOT = { has_character_flag = no_possible_bonus } + } + event_target:admin_bonus_province = { + random_list = { + 100 = { + modifier = { + factor = 0 + has_province_modifier = harvest_festivals + } + add_province_modifier = { + name = harvest_festivals + years = 3 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + 100 = { + modifier = { + factor = 0 + has_province_modifier = inspired_peasantry + } + add_province_modifier = { + name = inspired_peasantry + years = 3 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + 100 = { + modifier = { + factor = 0 + has_province_modifier = new_roads + } + add_province_modifier = { + name = new_roads + years = 3 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + } + } + } + } + + if = { + limit = { + has_character_flag = no_possible_bonus + } + scaled_wealth = { value = 0.15 min = 10 } + clr_character_flag = no_possible_bonus + } + } + +} + +# The Steward allows a smugglers ring to appear +character_event = { + id = MNM.78007 + title = MNM.78007.t + desc = MNM.78007.d + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_administer_realm + NOT = { has_character_modifier = in_seclusion } + liege = { + any_demesne_province = { + NOT = { + has_province_modifier = smugglers_ring + } + } + } + } + + mean_time_to_happen = { + months = 220 + + modifier = { + factor = 0.75 + NOT = { stewardship = 2 } + } + modifier = { + factor = 0.75 + NOT = { stewardship = 3 } + } + modifier = { + factor = 0.75 + NOT = { stewardship = 4 } + } + modifier = { + factor = 0.75 + NOT = { stewardship = 5 } + } + modifier = { + factor = 1.25 + stewardship = 10 + } + modifier = { + factor = 1.25 + stewardship = 11 + } + modifier = { + factor = 1.25 + stewardship = 12 + } + modifier = { + factor = 1.25 + stewardship = 13 + } + modifier = { + factor = 1.25 + stewardship = 15 + } + modifier = { + factor = 1.25 + stewardship = 18 + } + } + + option = { + name = CURSES + hidden_tooltip = { + liege = { + character_event = { id = MNM.78008 } + } + } + } +} + +character_event = { + id = MNM.78008 + title = MNM.78007.t + desc = MNM.78008.d + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + min_age = 16 + capable_only = yes + prisoner = no + + immediate = { + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = smugglers_ring + } + } + save_event_target_as = smuggler_province + } + } + + option = { + name = CURSES + event_target:smuggler_province = { + add_province_modifier = { + name = smugglers_ring + years = 2 + } + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = decrease_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = -6 } + } + } + } + } + } +} + +#Marshal +# Drill Commanders +character_event = { + id = MNM.70010 + title = MNM.70010.t + desc = MNM.70010.d + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_organize_army + NOT = { has_character_modifier = in_seclusion } + liege = { + any_courtier_or_vassal = { + has_minor_title = title_commander + NAND = { + martial = 20 + OR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + NOT = { + has_character_modifier = drill_cooldown_timer + } + } + } + } + + immediate = { + liege = { + random_courtier_or_vassal = { + limit = { + has_minor_title = title_commander + NAND = { + martial = 20 + OR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + NOT = { + has_character_modifier = drill_cooldown_timer + } + } + save_event_target_as = commander_improved + } + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 1.25 + NOT = { martial = 2 } + } + modifier = { + factor = 1.25 + NOT = { martial = 3 } + } + modifier = { + factor = 1.25 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + NOT = { martial = 5 } + } + modifier = { + factor = 0.75 + martial = 10 + } + modifier = { + factor = 0.75 + martial = 11 + } + modifier = { + factor = 0.75 + martial = 12 + } + modifier = { + factor = 0.75 + martial = 13 + } + modifier = { + factor = 0.75 + martial = 15 + } + modifier = { + factor = 0.75 + martial = 18 + } + } + + option = { + name = EXCELLENT + liege = { character_event = { id = MNM.70011 } } + } +} + +character_event = { + id = MNM.70011 + title = MNM.70010.t + desc = MNM.70011.d + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + immediate = { + if = { + limit = { + event_target:commander_improved = { + NOR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + } + event_target:commander_improved = { + hidden_tooltip = { + add_character_modifier = { + name = drill_cooldown_timer + hidden = yes + years = 5 + } + } + random_list = { + 10 = { + set_character_flag = light_foot_leader + } + 10 = { + set_character_flag = heavy_infantry_leader + } + 10 = { + set_character_flag = cavalry_leader + } + 10 = { + set_character_flag = trickster + } + 10 = { + set_character_flag = organizer + } + 10 = { + set_character_flag = defensive_leader + } + 10 = { + set_character_flag = experimenter + } + 10 = { + set_character_flag = flanker + } + 10 = { + set_character_flag = aggressive_leader + } + 10 = { + set_character_flag = siege_leader + } + } + } + } + } + + option = { + name = EXCELLENT + prestige = 5 + if = { + limit = { + event_target:commander_improved = { + has_character_flag = light_foot_leader + } + } + event_target:commander_improved = { + add_trait = light_foot_leader + clr_character_flag = light_foot_leader + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = heavy_infantry_leader + } + } + event_target:commander_improved = { + add_trait = heavy_infantry_leader + clr_character_flag = heavy_infantry_leader + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = cavalry_leader + } + } + event_target:commander_improved = { + add_trait = cavalry_leader + clr_character_flag = cavalry_leader + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = trickster + } + } + event_target:commander_improved = { + add_trait = trickster + clr_character_flag = trickster + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = organizer + } + } + event_target:commander_improved = { + add_trait = organizer + clr_character_flag = organizer + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = defensive_leader + } + } + event_target:commander_improved = { + add_trait = defensive_leader + clr_character_flag = defensive_leader + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = experimenter + } + } + event_target:commander_improved = { + add_trait = experimenter + clr_character_flag = experimenter + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = flanker + } + } + event_target:commander_improved = { + add_trait = flanker + clr_character_flag = flanker + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = aggressive_leader + } + } + event_target:commander_improved = { + add_trait = aggressive_leader + clr_character_flag = aggressive_leader + } + } + if = { + limit = { + event_target:commander_improved = { + has_character_flag = siege_leader + } + } + event_target:commander_improved = { + add_trait = siege_leader + clr_character_flag = siege_leader + } + } + event_target:commander_improved = { + random_list = { + 70 = { + modifier = { + factor = 0 + OR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + change_martial = 1 + } + 20 = { + change_martial = 2 + } + 10 = { + change_martial = 3 + } + } + } + } +} + +#Find Commander +character_event = { + id = MNM.70012 + title = MNM.70012.t + desc = MNM.70012.d + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_organize_army + NOT = { has_character_modifier = in_seclusion } + OR = { + ai = no + NOR = { + AND = { + tier = COUNT + NOT = { + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = DUKE + NOT = { + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = KING + is_nomadic = no + NOT = { + any_realm_character = { + count = 6 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = EMPEROR + is_nomadic = no + NOT = { + any_realm_character = { + count = 8 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = KING + is_nomadic = yes + NOT = { + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = EMPEROR + is_nomadic = yes + NOT = { + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + } + } + } + + mean_time_to_happen = { + months = 320 + + modifier = { + factor = 1.25 + NOT = { martial = 2 } + } + modifier = { + factor = 1.25 + NOT = { martial = 3 } + } + modifier = { + factor = 1.25 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + NOT = { martial = 5 } + } + modifier = { + factor = 0.85 + martial = 10 + } + modifier = { + factor = 0.85 + martial = 11 + } + modifier = { + factor = 0.85 + martial = 12 + } + modifier = { + factor = 0.85 + martial = 13 + } + modifier = { + factor = 0.85 + martial = 15 + } + modifier = { + factor = 0.85 + martial = 18 + } + } + + option = { + name = EXCELLENT + liege = { character_event = { id = MNM.70013 } } + } +} + +character_event = { + id = MNM.70013 + desc = MNM.70013.d + picture = GFX_evt_large_army + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + immediate = { + create_random_soldier = { + random_traits = yes + dynasty = none + female = no + attributes = { + martial = 10 + } + } + new_character = { + remove_trait = weak + remove_trait = slow + remove_trait = imbecile + remove_trait = dull + remove_trait = craven + + if = { + limit = { + trait = misguided_warrior + } + remove_trait = misguided_warrior + add_trait = tough_soldier + } + + remove_trait = mystic + remove_trait = socializer + remove_trait = gamer + remove_trait = hedonist + remove_trait = duelist + remove_trait = hunter + remove_trait = strategist + remove_trait = administrator + remove_trait = architect + remove_trait = gardener + remove_trait = schemer + remove_trait = impaler + remove_trait = seducer + remove_trait = seductress + remove_trait = theologian + remove_trait = scholar + + random_list = { # Flavor Randomization + 15 = { + change_martial = 2 + } + 10 = { + add_trait = robust + } + 10 = { + add_trait = duelist + } + 10 = { + add_trait = hunter + } + 5 = { + add_trait = strategist + } + 5 = { + change_martial = 4 + } + 5 = { + if = { + limit = { + has_dlc = "Reapers" + } + add_trait = one_eyed + change_martial = 1 + } + } + 5 = { + add_trait = shrewd + } + } + hidden_tooltip = { + if = { + limit = { + religion_group = indian_group + } + add_trait = kshatriya + character_event = { id = RoI.30121 } + } + } + save_event_target_as = found_commander + } + } + + + option = { + name = EXCELLENT + event_target:found_commander = { + opinion = { + modifier = opinion_loyal_servant + who = ROOT + years = 5 + } + } + if = { + limit = { + OR = { + AND = { + tier = COUNT + NOT = { + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = DUKE + NOT = { + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = KING + is_nomadic = no + NOT = { + any_realm_character = { + count = 6 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = EMPEROR + is_nomadic = no + NOT = { + any_realm_character = { + count = 8 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = KING + is_nomadic = yes + NOT = { + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + AND = { + tier = EMPEROR + is_nomadic = yes + NOT = { + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + } + } + event_target:found_commander = { + give_minor_title = title_commander + } + } + } + + option = { + name = MNM.70013.o + + trigger = { + any_realm_character = { + NOT = { + higher_tier_than = BARON + } + liege = { character = ROOT } + has_minor_title = title_commander + NOT = { + martial = 10 + } + } + OR = { + AND = { + tier = COUNT + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + AND = { + tier = DUKE + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + AND = { + tier = KING + is_nomadic = no + any_realm_character = { + count = 6 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + AND = { + tier = EMPEROR + is_nomadic = no + any_realm_character = { + count = 8 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + AND = { + tier = KING + is_nomadic = yes + any_realm_character = { + count = 2 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + AND = { + tier = EMPEROR + is_nomadic = yes + any_realm_character = { + count = 4 + liege = { character = ROOT } + has_minor_title = title_commander + } + } + } + } + + random_realm_character = { + limit = { + NOT = { + higher_tier_than = BARON + } + liege = { character = ROOT } + has_minor_title = title_commander + NOT = { + martial = 10 + } + } + remove_title = title_commander + opinion = { + modifier = insulted + who = ROOT + years = 2 + } + } + + event_target:found_commander = { + give_minor_title = title_commander + opinion = { + modifier = opinion_loyal_servant + who = ROOT + years = 5 + } + } + } +} + +# Commander/Marshal Fight +character_event = { + id = MNM.70015 + title = MNM.70015.t + desc = MNM.70015.d + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_organize_army + NOT = { has_character_modifier = in_seclusion } + can_be_maimed_trigger = yes + liege = { + any_courtier_or_vassal = { + has_minor_title = title_commander + can_be_maimed_trigger = yes + } + } + } + + mean_time_to_happen = { + months = 280 + + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 3 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 0.75 + NOT = { martial = 5 } + } + modifier = { + factor = 1.25 + martial = 10 + } + modifier = { + factor = 1.25 + martial = 11 + } + modifier = { + factor = 1.25 + martial = 12 + } + modifier = { + factor = 1.25 + martial = 13 + } + modifier = { + factor = 1.25 + martial = 15 + } + modifier = { + factor = 1.25 + martial = 18 + } + } + + immediate = { + save_event_target_as = marshal_character + liege = { + any_courtier_or_vassal = { + limit = { + has_minor_title = title_commander + NOT = { + character = ROOT + } + } + save_event_target_as = commander_character + } + } + } + + option = { + name = CURSES + event_target:commander_character = { + add_rival = event_target:marshal_character + random_list = { + 40 = { + + } + 45 = { + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + 15 = { + add_maimed_trait_effect = yes + } + } + } + event_target:marshal_character = { + add_rival = event_target:commander_character + random_list = { + 40 = { + + } + 45 = { + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + 15 = { + add_maimed_trait_effect = yes + } + } + } + liege = { + character_event = { id = MNM.70016 } + } + } +} + +character_event = { + id = MNM.70016 + title = MNM.70015.t + desc = MNM.70016.d + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = CURSES + prestige = -10 + event_target:commander_character = { + add_rival = event_target:marshal_character + } + } +} + +#Spymaster +character_event = { + id = MNM.70020 + title = MNM.70020.t + desc = MNM.70020.d + picture = GFX_evt_burning_house + border = GFX_event_normal_frame_intrigue + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_sabotage_province + NOT = { has_character_modifier = in_seclusion } + location = { + can_be_sabotaged_trigger = yes #TODO maybe have intimidate check and give letter if all done + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 1.25 + NOT = { intrigue = 2 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 3 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 4 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 5 } + } + modifier = { + factor = 0.75 + intrigue = 10 + } + modifier = { + factor = 0.75 + intrigue = 11 + } + modifier = { + factor = 0.75 + intrigue = 12 + } + modifier = { + factor = 0.75 + intrigue = 13 + } + } + + option = { + name = EXCELLENT + liege = { + letter_event = { id = MNM.70021 } + } + location = { + if = { + limit = { + has_dlc = "Reapers" + } + custom_tooltip = { + text = decrease_prosperity_custom_tooltip + hidden_tooltip = { + change_variable = { which = prosperity_value value = -6 } + } + } + } + random_list = { + 100 = { + modifier = { + factor = 0 + has_province_modifier = sabotaged_buildings #TODO Maybe hide list, have letter events telling liege what happened + } + add_province_modifier = { + name = sabotaged_buildings + duration = 720 + } + } + 100 = { + modifier = { + factor = 0 + has_province_modifier = sabotaged_defences + } + add_province_modifier = { + name = sabotaged_defences + duration = 720 + } + } + 100 = { + modifier = { + factor = 0 + has_province_modifier = sabotaged_unrest + } + add_province_modifier = { + name = sabotaged_unrest + duration = 720 + } + } + } + } + } +} + +letter_event = { + id = MNM.70021 + desc = MNM.70021.d + picture = GFX_evt_council + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = MNM.70021.o + } +} + +# Generic Plot Uncovering event +character_event = { + id = MNM.70022 + title = "EVTNAME929" + desc = MNM.70022.d + picture = GFX_evt_council + border = GFX_event_normal_frame_intrigue + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_uncover_plots_offmap + NOT = { has_character_modifier = in_seclusion } + liege = { + any_realm_lord = { + NOT = { is_liege_of = ROOT } + NOT = { character = ROOT } + OR = { + has_plot = plot_gain_title + has_plot = plot_kill_character + has_plot = plot_kill_spouse + has_plot = plot_weaken_fellow_vassal + has_plot = plot_gain_liege_title + has_plot = plot_gain_fellow_vassal_title + } + } + } + } + + mean_time_to_happen = { + months = 280 + + modifier = { + factor = 1.25 + NOT = { intrigue = 2 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 3 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 4 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 5 } + } + modifier = { + factor = 0.75 + intrigue = 10 + } + modifier = { + factor = 0.75 + intrigue = 11 + } + modifier = { + factor = 0.75 + intrigue = 12 + } + modifier = { + factor = 0.75 + intrigue = 13 + } + modifier = { + factor = 0.75 + intrigue = 16 + } + } + + option = { + name = "EVTOPTA929" + hidden_tooltip = { + liege = { + random_realm_lord = { + limit = { + NOT = { is_liege_of = ROOT } + NOT = { character = ROOT } + OR = { + has_plot = plot_gain_title + has_plot = plot_kill_character + has_plot = plot_kill_spouse + has_plot = plot_weaken_fellow_vassal + has_plot = plot_gain_liege_title + has_plot = plot_gain_fellow_vassal_title + } + } + character_event = { id = 20290 days = 7 } + } + } + } + } +} + +# The Spymaster is attacked by a Noble's thugs (Gets away, Is wounded, Is maimed, Is killed) +character_event = { + id = MNM.70023 + title = "EVTNAME931" + desc = MNM.70023.d + picture = GFX_evt_peasants + border = GFX_event_normal_frame_intrigue + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_uncover_plots_offmap + NOT = { has_character_modifier = in_seclusion } + liege = { + any_realm_lord = { + NOT = { is_liege_of = ROOT } + NOT = { character = ROOT } + OR = { + has_plot = plot_gain_title + has_plot = plot_kill_character + has_plot = plot_kill_spouse + has_plot = plot_weaken_fellow_vassal + has_plot = plot_gain_liege_title + has_plot = plot_gain_fellow_vassal_title + } + } + } + } + + immediate = { + liege = { + random_realm_lord = { + limit = { + NOT = { is_liege_of = ROOT } + NOT = { character = ROOT } + OR = { + has_plot = plot_gain_title + has_plot = plot_kill_character + has_plot = plot_kill_spouse + has_plot = plot_weaken_fellow_vassal + has_plot = plot_gain_liege_title + has_plot = plot_gain_fellow_vassal_title + } + } + save_event_target_as = killer_target + } + } + } + + mean_time_to_happen = { + months = 200 + + modifier = { + factor = 0.75 + NOT = { intrigue = 2 } + } + modifier = { + factor = 0.75 + NOT = { intrigue = 3 } + } + modifier = { + factor = 0.75 + NOT = { intrigue = 4 } + } + modifier = { + factor = 0.75 + NOT = { intrigue = 5 } + } + modifier = { + factor = 1.25 + intrigue = 10 + } + modifier = { + factor = 1.25 + intrigue = 11 + } + modifier = { + factor = 1.25 + intrigue = 12 + } + modifier = { + factor = 1.25 + intrigue = 13 + } + } + + option = { + name = "EVTOPTA902" + trigger = { + NOT = { martial = 5 } + } + random_list = { + 25 = { character_event = { id = 20310 tooltip = "EVTTOOLTIP20310" } } + 50 = { character_event = { id = 20311 tooltip = "EVTTOOLTIP20311" } } + 25 = { + hidden_tooltip = { + liege = { character_event = { id = 20313 } } + } + death = { + death_reason = death_murder_unknown + killer = event_target:killer_target + } + } + } + } + option = { + name = "EVTOPTA902" + tooltip_info = martial + trigger = { + martial = 5 + NOT = { martial = 10 } + } + random_list = { + 35 = { character_event = { id = 20310 tooltip = "EVTTOOLTIP20310" } } + 50 = { character_event = { id = 20311 tooltip = "EVTTOOLTIP20311" } } + 15 = { + hidden_tooltip = { + liege = { character_event = { id = 20313 } } + } + death = { + death_reason = death_murder_unknown + killer = event_target:killer_target + } + } + } + } + option = { + name = "EVTOPTA902" + tooltip_info = martial + trigger = { + martial = 10 + } + random_list = { + 50 = { character_event = { id = 20310 tooltip = "EVTTOOLTIP20310" } } + 40 = { character_event = { id = 20311 tooltip = "EVTTOOLTIP20311" } } + 10 = { + hidden_tooltip = { + liege = { character_event = { id = 20313 } } + } + death = { + death_reason = death_murder_unknown + killer = event_target:killer_target + } + } + } + } +} + +# Faction Prevention - Spymaster finds Faction Member +character_event = { + id = MNM.70024 + title = "EVTNAME9000" + desc = MNM.70024.d + picture = GFX_evt_council + border = GFX_event_normal_frame_intrigue + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_uncover_plots_offmap + NOT = { has_character_modifier = in_seclusion } + liege = { + any_vassal = { + NOT = { character = ROOT } + NOT = { trait = incapable } + NOT = { has_opinion_modifier = { who = liege modifier = opinion_coerced_into_leaving_faction } } + NOT = { has_character_flag = faction_member } + age = 16 + prisoner = no + primary_title = { higher_tier_than = BARON } + } + } + } + + mean_time_to_happen = { + months = 300 + + modifier = { + factor = 1.25 + NOT = { intrigue = 2 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 3 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 4 } + } + modifier = { + factor = 1.25 + NOT = { intrigue = 5 } + } + modifier = { + factor = 0.75 + intrigue = 10 + } + modifier = { + factor = 0.75 + intrigue = 11 + } + modifier = { + factor = 0.75 + intrigue = 12 + } + modifier = { + factor = 0.75 + intrigue = 13 + } + modifier = { + factor = 0.75 + intrigue = 16 + } + } + + immediate = { + liege = { + random_vassal = { + limit = { + NOT = { character = ROOT } + NOT = { trait = incapable } + NOT = { has_opinion_modifier = { who = liege modifier = opinion_coerced_into_leaving_faction } } + NOT = { has_character_flag = faction_member } + age = 16 + prisoner = no + primary_title = { higher_tier_than = BARON } + } + set_character_flag = faction_member + } + } + } + + option = { + name = "EVTOPTA9000" + liege = { letter_event = { id = 9001 tooltip = EVTTOOLTIP9001 } } + } +} + +# Suspectometer +character_event = { # Yearly decrease + id = MNM.70030 + hide_window = yes + + is_in_society = yes + + is_triggered_only = yes + + immediate = { + decrease_visibility_effect = yes + } +} + +# Court Chaplain +# Hunt Apostates + +character_event = { # Hunt Apostates meta event + id = MNM.70100 + title = MNM.70031.t + hide_window = yes + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + has_job_action = action_hunt_heretics + NOT = { has_character_modifier = in_seclusion } + liege = { + OR = { + # There is someone who is highly suspect + any_realm_character = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = PREV } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = PREV } # Nor liege's brethren + NAND = { # If you share the same secret religion, dont catch them + has_roots_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NAND = { # If they share secret religion with the liege, dont catch them + has_prevs_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = PREV + } + } + is_in_society = yes + society_is_criminal = yes + has_character_modifier = highly_suspect + } + + # There is someone moderately suspect + any_realm_character = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = PREV } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = PREV } # Nor liege's brethren + NAND = { # If you share the same secret religion, dont catch them + has_roots_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NAND = { # If they share secret religion with the liege, dont catch them + has_prevs_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = PREV + } + } + is_in_society = yes + society_is_criminal = yes + has_character_modifier = under_suspicion + } + + # Someone with a secret religion + any_realm_character = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = PREV } # Don't catch your liege + OR = { # Nor your brethren + NOT = { same_society_as = ROOT } + is_in_society = no + } + OR = { # Nor liege's brethren + NOT = { same_society_as = PREV } + is_in_society = no + } + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_prevs_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = PREV + } + } + religion = PREV + age = 16 + has_secret_religion_trait_trigger = yes + } + + # A devil worshiper, and I'm amazingly good at my job + any_realm_character = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = PREV } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = PREV } # Nor liege's brethren + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_prevs_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = PREV + } + } + age = 16 + is_devil_worshiper_trigger = yes + ai = yes + NOR = { + has_character_modifier = highly_suspect + has_character_modifier = under_suspicion + } + ROOT = { + OR = { + learning = 16 + AND = { + learning = 12 + is_in_society = monastic_order_dominican + } + } + } + } + + # Someone random, and I'm incompetent + any_realm_character = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = PREV } # Don't catch your liege + OR = { # Nor your brethren + NOT = { same_society_as = ROOT } + is_in_society = no + } + OR = { # Nor liege's brethren + NOT = { same_society_as = PREV } + is_in_society = no + } + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_prevs_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = PREV + } + } + NOT = { + higher_tier_than = BARON + } + age = 16 + NOR = { + has_character_modifier = highly_suspect + has_character_modifier = under_suspicion + has_secret_religion_trait_trigger = yes + } + ROOT = { + OR = { + NOT = { + learning = 8 + } + is_dumb_trigger = yes + } + } + } + } + } + } + + immediate = { + # Mark targets + liege = { + save_event_target_as = my_liege + # Extremely suspect people + random_realm_character = { + limit = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = event_target:my_liege } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = event_target:my_liege } # Nor liege's brethren + NAND = { # If you share the same secret religion, dont catch them + has_my_liege_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NAND = { # If they share secret religion with the liege, dont catch them + has_prevs_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = event_target:my_liege + } + } + is_in_society = yes + society_is_criminal = yes + has_character_modifier = highly_suspect + } + save_event_target_as = highly_suspected_society_member + set_character_flag = apostate_extremely_suspect + } + + # Moderatley suspect people + random_realm_character = { + limit = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = event_target:my_liege } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = event_target:my_liege } # Nor liege's brethren + NAND = { # If you share the same secret religion, dont catch them + has_my_liege_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NAND = { # If they share secret religion with the liege, dont catch them + has_prevs_secret_religion_truly_trigger = yes + is_devil_worshiper_trigger = no + } + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = event_target:my_liege + } + } + is_in_society = yes + society_is_criminal = yes + has_character_modifier = under_suspicion + } + save_event_target_as = suspected_society_member + set_character_flag = apostate_moderate_suspect + } + + # Characters with a secret religion + random_realm_character = { + limit = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = event_target:my_liege } # Don't catch your liege + OR = { # Nor your brethren + NOT = { same_society_as = ROOT } + is_in_society = no + } + OR = { # Nor liege's brethren + NOT = { same_society_as = event_target:my_liege } + is_in_society = no + } + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_my_liege_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = event_target:my_liege + } + } + religion = event_target:my_liege + age = 16 + has_secret_religion_trait_trigger = yes + } + save_event_target_as = suspected_apostate + set_character_flag = apostate_secret_religion + } + + # Devil worshipers without any suspicion + random_realm_character = { + limit = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = event_target:my_liege } # Don't catch your liege + NOT = { same_society_as = ROOT } # Nor your brethren + NOT = { same_society_as = event_target:my_liege } # Nor liege's brethren + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_prevs_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = event_target:my_liege + } + } + age = 16 + is_devil_worshiper_trigger = yes + ai = yes + NOR = { + has_character_modifier = highly_suspect + has_character_modifier = under_suspicion + } + ROOT = { + OR = { + learning = 16 + AND = { + learning = 12 + is_in_society = monastic_order_dominican + } + } + } + } + save_event_target_as = no_suspicion + set_character_flag = apostate_no_suspicion + } + + # Innocent person! + random_realm_character = { + limit = { + prisoner = no + NOT = { character = ROOT } # Don't catch yourself + NOT = { character = event_target:my_liege } # Don't catch your liege + OR = { # Nor your brethren + NOT = { same_society_as = ROOT } + is_in_society = no + } + OR = { # Nor liege's brethren + NOT = { same_society_as = event_target:my_liege } + is_in_society = no + } + NOT = { has_roots_secret_religion_truly_trigger = yes } # If you share the same secret religion, dont catch them + NOT = { has_prevs_secret_religion_truly_trigger = yes } # If they share secret religion with the liege, dont catch them + NOT = { + reverse_has_opinion_modifier = { + modifier = opinion_accused_apostate + who = event_target:my_liege + } + } + NOT = { + higher_tier_than = BARON + } + age = 16 + NOR = { + is_devil_worshiper_trigger = yes + has_character_modifier = highly_suspect + has_character_modifier = under_suspicion + has_secret_religion_trait_trigger = yes + } + } + save_event_target_as = innocent_victim + set_character_flag = apostate_innocent + } + } + + if = { # If you're incompetent its more usual to accuse someone innocent + limit = { + OR = { + NOT = { + learning = 8 + } + is_dumb_trigger = yes + } + event_target:innocent_victim = { + is_alive = yes + } + } + random_list = { + 20 = { + modifier = { + factor = 1.25 + NOT = { learning = 2 } + } + modifier = { + factor = 1.25 + NOT = { learning = 4 } + } + modifier = { + factor = 1.25 + NOT = { learning = 6 } + } + modifier = { + factor = 1.25 + NOT = { learning = 8 } + } + event_target:innocent_victim = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + 80 = { + + } + } + } + + if = { # If there is someone who is highly suspicious, always succeed + limit = { + event_target:highly_suspected_society_member = { + is_alive = yes + } + } + event_target:highly_suspected_society_member = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + + if = { # If there is someone semi-suspicious, succeed a bit less often + limit = { + event_target:suspected_society_member = { + is_alive = yes + } + } + random_list = { + 30 = { + modifier = { + factor = 0 + event_target:suspected_society_member = { + ai = no + NOT = { check_variable = { which = visibility_value value = 19 } } + } + } + modifier = { + factor = 0.25 + event_target:suspected_society_member = { + ai = no + } + } + modifier = { + factor = 1.25 + learning = 10 + } + modifier = { + factor = 1.25 + learning = 12 + } + modifier = { + factor = 1.25 + learning = 14 + } + modifier = { + factor = 1.25 + learning = 16 + } + modifier = { + factor = 1.25 + learning = 18 + } + modifier = { + factor = 1.25 + learning = 20 + } + modifier = { + factor = 1.25 + learning = 22 + } + modifier = { + factor = 1.25 + society_member_of = monastic_order_dominican + } + event_target:suspected_society_member = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + 70 = { + + } + } + } + + if = { # If there is someone with a secret religion, only succeed if you're really good + limit = { + event_target:suspected_apostate = { + is_alive = yes + } + } + random_list = { + 25 = { + modifier = { + factor = 0 + event_target:suspected_apostate = { + ai = no + } + } + modifier = { + factor = 1.25 + learning = 10 + } + modifier = { + factor = 1.25 + learning = 12 + } + modifier = { + factor = 1.25 + learning = 14 + } + modifier = { + factor = 1.25 + learning = 16 + } + modifier = { + factor = 1.25 + learning = 18 + } + modifier = { + factor = 1.25 + learning = 20 + } + modifier = { + factor = 1.25 + learning = 22 + } + modifier = { + factor = 1.25 + society_member_of = monastic_order_dominican + } + event_target:suspected_apostate = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + 75 = { + + } + } + } + + if = { # If there is a devil worshiper without any level of suspicion, only succeed if you're amazingly good + limit = { + event_target:no_suspicion = { + is_alive = yes + } + } + random_list = { + 25 = { + modifier = { + factor = 1.25 + learning = 18 + } + modifier = { + factor = 1.25 + learning = 20 + } + modifier = { + factor = 1.25 + learning = 22 + } + modifier = { + factor = 1.25 + society_member_of = monastic_order_dominican + } + event_target:no_suspicion = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + 75 = { + + } + } + } + + if = { # Accidently accuse someone innocent! + limit = { + event_target:innocent_victim = { + is_alive = yes + } + } + random_list = { + 5 = { + modifier = { + factor = 1.25 + NOT = { learning = 2 } + } + modifier = { + factor = 1.25 + NOT = { learning = 4 } + } + modifier = { + factor = 1.25 + NOT = { learning = 6 } + } + modifier = { + factor = 1.25 + NOT = { learning = 8 } + } + modifier = { + factor = 1.25 + is_dumb_trigger = yes + } + event_target:innocent_victim = { + save_event_target_as = accused_apostate + } + character_event = { id = MNM.70110 } + break = yes + } + 95 = { + + } + } + } + } + + mean_time_to_happen = { + months = 100 + + modifier = { + factor = 1.25 + NOT = { learning = 2 } + } + modifier = { + factor = 1.25 + NOT = { learning = 4 } + } + modifier = { + factor = 1.25 + NOT = { learning = 6 } + } + modifier = { + factor = 1.25 + NOT = { learning = 8 } + } + modifier = { + factor = 0.75 + learning = 10 + } + modifier = { + factor = 0.75 + learning = 12 + } + modifier = { + factor = 0.75 + learning = 14 + } + modifier = { + factor = 0.75 + learning = 16 + } + modifier = { + factor = 0.75 + learning = 18 + } + modifier = { + factor = 0.75 + learning = 20 + } + modifier = { + factor = 0.75 + learning = 22 + } + modifier = { + factor = 0.75 + society_member_of = monastic_order_dominican + } + modifier = { + factor = 2 + NOT = { religion_authority = 0.1 } + } + modifier = { + factor = 1.5 + NOT = { religion_authority = 0.2 } + } + modifier = { + factor = 1.25 + NOT = { religion_authority = 0.3 } + } + modifier = { + factor = 1.25 + NOT = { religion_authority = 0.4 } + } + modifier = { + factor = 1.25 + NOT = { religion_authority = 0.5 } + } + modifier = { + factor = 0.9 + religion_authority = 0.6 + } + modifier = { + factor = 0.9 + religion_authority = 0.7 + } + modifier = { + factor = 0.9 + religion_authority = 0.8 + } + modifier = { + factor = 0.9 + religion_authority = 0.9 + } + } +} + +character_event = { # Outcome event + id = MNM.70110 + title = MNM.70031.t + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:innocent_victim } + } + text = MNM.70110.d.innocent_victim + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:highly_suspected_society_member } + } + text = MNM.70110.d.highly_suspected_society_member + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:suspected_society_member } + } + text = MNM.70110.d.suspected_society_member + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:suspected_apostate } + } + text = MNM.70110.d.suspected_apostate + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:no_suspicion } + } + text = MNM.70110.d.no_suspicion + } + + is_triggered_only = yes + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + + } + + immediate = { + event_target:my_liege = { + random_realm_character = { + limit = { + age = 16 + ai = yes + is_rival = ROOT + NOT = { + character = event_target:my_liege + } + NOT = { + character = event_target:accused_apostate + } + } + save_event_target_as = rival_target + } + } + + } + + option = { + name = MNM.70110.a + + ai_chance = { + factor = 90 + + modifier = { + factor = 2 + trait = zealous + } + } + + event_target:accused_apostate = { + opinion = { + modifier = opinion_hate + who = ROOT + years = 100 + } + } + + custom_tooltip = { + text = apostate_found_tooltip + } + + hidden_tooltip = { + if = { + limit = { + has_nickname = no + NOT = { + event_target:accused_apostate = { character = event_target:innocent_victim } + } + } + random_list = { + 500 = { + # No Nickname + } + 50 = { + give_nickname = nick_the_cleansing_flame + } + 50 = { + give_nickname = nick_the_witch_hunter + } + 50 = { + give_nickname = nick_the_inquisitor + } + 50 = { + give_nickname = nick_the_purifier + } + } + } + } + + liege = { + character_event = { id = MNM.70200 } + } + } + + option = { + name = MNM.70110.b + tooltip_info = deceitful + + trigger = { + trait = deceitful + event_target:rival_target = { + is_alive = yes + } + } + + ai_chance = { + factor = 1000 + + modifier = { + factor = 2 + trait = lunatic + } + modifier = { + factor = 2 + trait = possessed + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = arbitrary + } + } + + custom_tooltip = { + text = accuse_rival_tooltip + } + + event_target:rival_target = { + save_event_target_as = accused_apostate + set_character_flag = apostate_rival_accused + } + liege = { + character_event = { id = MNM.70200 } + } + } +} + +character_event = { # What does the liege wish to do with the apostate? + id = MNM.70200 + title = MNM.70031.t + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + trigger = { + event_target:accused_apostate = { + is_alive = yes + } + } + + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:innocent_victim } + } + text = MNM.70200.d.innocent_victim + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:highly_suspected_society_member } + } + text = MNM.70200.d.highly_suspected_society_member + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:suspected_society_member } + } + text = MNM.70200.d.suspected_society_member + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:suspected_apostate } + } + text = MNM.70200.d.suspected_apostate + } + desc = { + trigger = { + event_target:accused_apostate = { character = event_target:no_suspicion } + } + text = MNM.70200.d.no_suspicion + } + + is_triggered_only = yes + + option = { # Execute them! + name = MNM.70200.a + + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + trait = lunatic + } + modifier = { + factor = 2 + trait = possessed + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 100 + trait = zealous + } + } + + piety = 10 + + tooltip = { + event_target:accused_apostate = { + death = { + death_reason = death_execution_burning + killer = ROOT + } + } + } + if = { + limit = { + NOT = { trait = kinslayer } + #NOT = { religion_group = muslim } + event_target:accused_apostate = { + dynasty = ROOT + } + } + add_trait = kinslayer + } + hidden_tooltip = { + event_target:accused_apostate = { + if = { + limit = { + is_devil_worshiper_trigger = yes + OR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + add_character_modifier = { + name = known_satanist + duration = -1 + } + } + if = { + limit = { + OR = { + is_devil_worshiper_trigger = no + AND = { + is_devil_worshiper_trigger = yes + NOR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + } + } + add_character_modifier = { + name = accused_apostate + duration = -1 + } + } + if = { + limit = { + religion = ROOT + controls_religion = no + OR = { + religion = catholic + religion = fraticelli + religion = orthodox + religion = miaphysite + religion = monophysite + religion = monothelite + religion = paulician + religion = nestorian + religion = yazidi + } + } + add_trait = excommunicated + } + } + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 100 + } + event_target:accused_apostate = { + character_event = { id = MNM.70300 } + } + if = { + limit = { + has_nickname = no + NOT = { + event_target:accused_apostate = { character = event_target:innocent_victim } + } + } + random_list = { + 500 = { + # No Nickname + } + 5 = { + give_nickname = nick_the_cleansing_flame + } + 5 = { + give_nickname = nick_the_witch_hunter + } + 5 = { + give_nickname = nick_the_inquisitor + } + 5 = { + give_nickname = nick_the_purifier + } + } + } + } + } + + option = { # Imprison them + name = MNM.70200.b + + ai_chance = { + factor = 40 + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 3 + event_target:accused_apostate = { + ai = no + } + } + modifier = { + factor = 5 + event_target:accused_apostate = { + dynasty = ROOT + } + } + } + + event_target:accused_apostate = { + imprison = ROOT + } + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 100 + } + event_target:accused_apostate = { + if = { + limit = { + is_devil_worshiper_trigger = yes + OR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + add_character_modifier = { + name = known_satanist + duration = -1 + } + } + if = { + limit = { + OR = { + is_devil_worshiper_trigger = no + AND = { + is_devil_worshiper_trigger = yes + NOR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + } + } + add_character_modifier = { + name = accused_apostate + duration = -1 + } + } + if = { + limit = { + religion = ROOT + controls_religion = no + OR = { + religion = catholic + religion = fraticelli + religion = orthodox + religion = miaphysite + religion = monophysite + religion = monothelite + religion = paulician + religion = nestorian + religion = yazidi + } + } + add_trait = excommunicated + } + } + hidden_tooltip = { + event_target:accused_apostate = { + character_event = { id = MNM.70310 } + } + } + } + + option = { # Brand them + name = MNM.70200.c + + ai_chance = { + factor = 100 + + modifier = { + factor = 0 + NOT = { + trait = trusting + } + } + } + + hidden_tooltip = { + event_target:accused_apostate = { + character_event = { id = MNM.70320 } + } + } + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 100 + } + event_target:accused_apostate = { + if = { + limit = { + is_devil_worshiper_trigger = yes + OR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + add_character_modifier = { + name = known_satanist + duration = -1 + } + } + if = { + limit = { + OR = { + is_devil_worshiper_trigger = no + AND = { + is_devil_worshiper_trigger = yes + NOR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + } + } + add_character_modifier = { + name = accused_apostate + duration = -1 + } + } + if = { + limit = { + religion = ROOT + controls_religion = no + OR = { + religion = catholic + religion = fraticelli + religion = orthodox + religion = miaphysite + religion = monophysite + religion = monothelite + religion = paulician + religion = nestorian + religion = yazidi + } + } + add_trait = excommunicated + } + } + } + + option = { # Let them go + name = MNM.70200.d + + ai_chance = { + factor = 10 + + modifier = { + factor = 0 + NOT = { + trait = trusting + } + } + } + + piety = -10 + + hidden_tooltip = { + event_target:accused_apostate = { + character_event = { id = MNM.70330 } + } + } + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 10 + } + reverse_opinion = { + modifier = opinion_outraged + who = FROM + years = 10 + } + } +} + +character_event = { # The Apostate reacts to Execution + id = MNM.70300 + desc = MNM.70300.d + picture = GFX_evt_witch_burning + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = MNM.70300.a + trigger = { + is_devil_worshiper_trigger = yes + } + death = { + death_reason = death_execution_burning + killer = FROM + } + hidden_tooltip = { # Inform players that fellow society member has been executed + any_player = { + limit = { + OR = { + same_realm = ROOT + is_close_relative = ROOT + is_friend = ROOT + } + same_society_as = ROOT + NOT = { + character = ROOT + } + } + character_event = { id = MNM.70400 } + } + } + } + option = { + name = MNM.70300.b + trigger = { + is_devil_worshiper_trigger = no + } + death = { + death_reason = death_execution_burning + killer = FROM + } + hidden_tooltip = { # Inform players that fellow society member has been executed + any_player = { + limit = { + OR = { + same_realm = ROOT + is_close_relative = ROOT + is_friend = ROOT + } + same_society_as = ROOT + NOT = { + character = ROOT + } + } + character_event = { id = MNM.70400 } + } + } + } +} + +character_event = { # The Apostate reacts to Imprisonment + id = MNM.70310 + desc = MNM.70310.d + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = MNM.70310.a + tooltip = { + imprison = FROM + event_target:my_liege = { + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 100 + } + } + if = { + limit = { + is_devil_worshiper_trigger = yes + OR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + add_character_modifier = { + name = known_satanist + duration = -1 + } + } + if = { + limit = { + OR = { + is_devil_worshiper_trigger = no + AND = { + is_devil_worshiper_trigger = yes + NOR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + } + } + add_character_modifier = { + name = accused_apostate + duration = -1 + } + } + if = { + limit = { + religion = FROM + controls_religion = no + OR = { + religion = catholic + religion = fraticelli + religion = orthodox + religion = miaphysite + religion = monophysite + religion = monothelite + religion = paulician + religion = nestorian + religion = yazidi + } + } + add_trait = excommunicated + } + } + hidden_tooltip = { # Inform players that fellow society member has been imprisoned + any_player = { + limit = { + primary_title = { always = yes } + OR = { + same_realm = ROOT + is_close_relative = ROOT + is_friend = ROOT + } + same_society_as = ROOT + NOT = { + character = ROOT + } + } + character_event = { id = MNM.70400 } + } + } + } +} + +character_event = { # The Apostate reacts to Branding + id = MNM.70320 + desc = MNM.70320.d + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = MNM.70320.a + + tooltip = { + event_target:my_liege = { + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 100 + } + } + if = { + limit = { + is_devil_worshiper_trigger = yes + OR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + add_character_modifier = { + name = known_satanist + duration = -1 + } + } + if = { + limit = { + OR = { + is_devil_worshiper_trigger = no + AND = { + is_devil_worshiper_trigger = yes + NOR = { + has_character_modifier = under_suspicion + has_character_modifier = highly_suspect + } + } + } + } + add_character_modifier = { + name = accused_apostate + duration = -1 + } + } + if = { + limit = { + religion = FROM + controls_religion = no + OR = { + religion = catholic + religion = fraticelli + religion = orthodox + religion = miaphysite + religion = monophysite + religion = monothelite + religion = paulician + religion = nestorian + religion = yazidi + } + } + add_trait = excommunicated + } + } + hidden_tooltip = { # Inform players that fellow society member has been branded + any_player = { + limit = { + OR = { + same_realm = ROOT + is_close_relative = ROOT + is_friend = ROOT + } + same_society_as = ROOT + NOT = { + character = ROOT + } + } + character_event = { id = MNM.70400 } + } + } + } +} + +character_event = { # The Apostate reacts to Mercy + id = MNM.70330 + desc = MNM.70330.d + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = MNM.70320.a + + tooltip = { + event_target:my_liege = { + opinion = { + modifier = opinion_accused_apostate + who = event_target:accused_apostate + years = 10 + } + } + } + } +} + +character_event = { # Player society members are informed that a fellow member has been caught + id = MNM.70400 + picture = GFX_evt_catching_heretic + border = GFX_event_normal_frame_religion + + desc = { + trigger = { + FROM = { + is_alive = no + } + } + text = MNM.70400.d.executed + picture = GFX_evt_witch_burning + } + desc = { + trigger = { + FROM = { + is_alive = yes + prisoner = yes + } + } + text = MNM.70400.d.imprisoned + } + desc = { + trigger = { + FROM = { + is_alive = yes + prisoner = no + } + } + text = MNM.70400.d.caught + } + + is_triggered_only = yes + + option = { + name = MNM.70400.a + tooltip_info = paranoid + + trigger = { + trait = paranoid + } + + event_target:my_liege = { + set_character_flag = portrait_flag + clr_character_flag = portrait_flag + } + + event_target:my_liege = { + job_spiritual = { + set_character_flag = portrait_flag + clr_character_flag = portrait_flag + } + } + + decrease_visibility_effect = yes + } + + option = { + name = CURSES + + event_target:my_liege = { + set_character_flag = portrait_flag + clr_character_flag = portrait_flag + } + + event_target:my_liege = { + job_spiritual = { + set_character_flag = portrait_flag + clr_character_flag = portrait_flag + } + } + } +} \ No newline at end of file diff --git a/After the End/events/lifestyle_event.txt b/After the End/events/lifestyle_event.txt new file mode 100644 index 000000000..4908072ee --- /dev/null +++ b/After the End/events/lifestyle_event.txt @@ -0,0 +1,1960 @@ +################################### +# +# Events for Lifestyle +# +# Id 5000-5999 is reserved +# +################################### +# +# Written by Sara Wendel-Örtqvist + +######################################################################################## +#Scholar/Mystic - New Book +######################################################################################## +character_event = { + id = 5000 + desc = "EVTDESC5000" + picture = GFX_evt_library + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + NOT = { trait = blinded } + in_command = no + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + } + + immediate = { + set_character_flag = LE_ST + } + + mean_time_to_happen = { + months = 260 + + modifier = { + factor = 1.2 + trait = content + } + modifier = { + factor = 0.75 + learning = 10 + } + modifier = { + factor = 0.75 + learning = 9 + } + modifier = { + factor = 0.75 + learning = 8 + } + modifier = { + factor = 1.4 + trait = cynical + } + modifier = { + factor = 0.2 + trait = ambitious + } + modifier = { + factor = 0.4 + trait = zealous + } + modifier = { + factor = 1.1 + trait = detached_priest + } + modifier = { + factor = 0.75 + trait = scholarly_theologian + } + modifier = { + factor = 0.5 + trait = mastermind_theologian + } + } + + option = { + name = "EVTOPTA5000" + piety = 20 + character_event = { + id = 5002 + days = 10 + tooltip = "EVTTOOLTIP5002" + } + } + + option = { + name = "EVTOPTB5000" + add_character_modifier = { + name = illumination + duration = -1 + } + } +} + +#Scholar/Mystic - A mystery is revealed +character_event = { + id = 5001 + desc = "EVTDESC5001" + picture = GFX_evt_library + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = illumination + NOT = { + lifestyle_traits = 1 + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 1.2 + trait = content + } + modifier = { + factor = 1.4 + trait = cynical + } + modifier = { + factor = 0.2 + trait = ambitious + } + modifier = { + factor = 0.4 + trait = zealous + } + } + + option = { + name = "EVTOPTA5001" + character_event = { + id = 5002 + days = 20 + tooltip = "EVTTOOLTIP5002" + } + } + + option = { + name = "EVTOPTB5001" + character_event = { + id = 5003 + days = 30 + tooltip = "EVTTOOLTIP5003" + } + } +} + +#Mysterious man revealed +character_event = { + id = 5002 + desc = "EVTDESC5002" + picture = "GFX_evt_monk" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5002" + add_trait = scholar + clr_character_flag = LE_ST + remove_character_modifier = illumination + } +} + +#Descend into the depths of mysticism +character_event = { + id = 5003 + desc = "EVTDESC5003" + picture = "GFX_evt_comet" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5003" + add_trait = mystic + clr_character_flag = LE_ST + remove_character_modifier = illumination + } +} + +######################################################################################## +#Gardener/Impaler - Start +######################################################################################## +character_event = { + id = 5020 + desc = "EVTDESC5020" + picture = GFX_evt_garden + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + in_command = no + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + NOT = { + has_character_modifier = the_impaler + } + NOT = { + has_character_modifier = the_gardener + } + } + + immediate = { + set_character_flag = LE_ST + } + + mean_time_to_happen = { + months = 260 + + + modifier = { + factor = 0.8 + martial = 10 + } + modifier = { + factor = 0.8 + martial = 9 + } + modifier = { + factor = 0.8 + trait = indulgent_wastrel + } + modifier = { + factor = 0.8 + trait = misguided_warrior + } + modifier = { + factor = 0.8 + trait = tough_soldier + } + } + + option = { + name = "EVTOPTA5020" + piety = 20 + set_character_flag = red_rose + } + + option = { + name = "EVTOPTB5020" + prestige = 20 + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + set_character_flag = stake_pole + } +} + +#Stake/Pole +character_event = { + id = 5021 + desc = "EVTDESC5021" + picture = "GFX_evt_pale_rider" + + min_age = 25 + capable_only = yes + prisoner = no + has_character_flag = LE_ST + lacks_dlc = "Way of Life" + + trigger = { + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = red_rose + } + has_character_flag = stake_pole + NOT = { + has_character_modifier = the_impaler + } + NOT = { + has_character_modifier = the_gardener + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 1.2 + trait = shy + } + modifier = { + factor = 1.4 + trait = craven + } + modifier = { + factor = 0.2 + trait = gregarious + } + modifier = { + factor = 0.4 + trait = brave + } + } + + option = { + name = "EVTOPTA5021" + prestige = 20 + clr_character_flag = stake_pole + } + + option = { + name = "EVTOPTB5021" + character_event = { + id = 5023 + days = 30 + tooltip = "EVTTOOLTIP5023" + } + } +} + +#Red Rose +character_event = { + id = 5022 + desc = "EVTDESC5022" + picture = GFX_evt_garden + + min_age = 25 + capable_only = yes + prisoner = no + has_character_flag = LE_ST + lacks_dlc = "Way of Life" + + trigger = { + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = stake_pole + } + has_character_flag = red_rose + NOT = { + has_character_modifier = the_impaler + } + NOT = { + has_character_modifier = the_gardener + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 0.2 + trait = shy + } + modifier = { + factor = 0.4 + trait = craven + } + modifier = { + factor = 1.2 + trait = gregarious + } + modifier = { + factor = 1.4 + trait = brave + } + } + + option = { + name = "EVTOPTA5022" + piety = 20 + clr_character_flag = red_rose + } + + option = { + name = "EVTOPTB5022" + set_character_flag = rose_gardener + character_event = { + id = 5025 + days = 30 + random = 10 + tooltip = "EVTTOOLTIP5025" + } + } +} + +#Atone for thy sins or ignore it and become an Impaler +character_event = { + id = 5023 + desc = "EVTDESC5023" + picture = "GFX_evt_garden" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5023" + trigger = { + NOT = { religion = jain } + } + prestige = 20 + clr_character_flag = red_rose + clr_character_flag = stake_pole + set_character_flag = vlad_impaler + } + + option = { + name = "EVTOPTB5023" + piety = 20 + clr_character_flag = red_rose + clr_character_flag = stake_pole + set_character_flag = rose_gardener + } +} + +#Impaler +character_event = { + id = 5024 + desc = "EVTDESC5024" + picture = "GFX_evt_pale_rider" + + min_age = 25 + capable_only = yes + prisoner = no + has_character_flag = LE_ST + lacks_dlc = "Way of Life" + + trigger = { + NOT = { + lifestyle_traits = 1 + } + has_character_flag = vlad_impaler + NOT = { + has_character_modifier = the_impaler + } + NOT = { + has_character_modifier = the_gardener + } + } + + mean_time_to_happen = { + months = 36 + } + + immediate = { + clr_character_flag = vlad_impaler + clr_character_flag = rose_gardener + } + + option = { + name = "EVTOPTA5024" + add_trait = impaler + clr_character_flag = LE_ST + } + option = { + name = "EVTOPTB5024" + clr_character_flag = LE_ST + add_character_modifier = { + name = the_impaler + duration = 365 + } + } +} + +#Gardener +character_event = { + id = 5025 + desc = "EVTDESC5025" + picture = "GFX_evt_garden" + + min_age = 25 + capable_only = yes + prisoner = no + has_character_flag = LE_ST + lacks_dlc = "Way of Life" + + trigger = { + NOT = { + lifestyle_traits = 1 + } + has_character_flag = rose_gardener + NOT = { + has_character_modifier = the_gardener + } + NOT = { + has_character_modifier = the_impaler + } + } + + mean_time_to_happen = { + months = 36 + } + + immediate = { + clr_character_flag = rose_gardener + clr_character_flag = vlad_impaler + } + + option = { + name = "EVTOPTA5025" + add_trait = gardener + clr_character_flag = LE_ST + + } + option = { + name = "EVTOPTB5025" + clr_character_flag = LE_ST + add_character_modifier = { + name = the_gardener + duration = 365 + } + } +} + +#Atone for thy sins or ignore it and become an Impaler - Muslim +character_event = { + id = 5026 + desc = "EVTDESC5026" + picture = "GFX_evt_garden" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5026" + prestige = 20 + clr_character_flag = red_rose + clr_character_flag = stake_pole + set_character_flag = vlad_impaler + } + + option = { + name = "EVTOPTB5023" + piety = 20 + clr_character_flag = red_rose + clr_character_flag = stake_pole + set_character_flag = rose_gardener + } +} + +######################################################################################## +#Duelist/Poet - Start +######################################################################################## +character_event = { + id = 5030 + desc = "EVTDESC5030" + picture = "GFX_evt_library" + + only_men = yes + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + is_married = no + + trigger = { + in_command = no + has_lover = no + NOT = { + trait = homosexual + } + NOT = { + lifestyle_traits = 1 + } + #NOT = { + # religion_group = muslim + #} + any_courtier = { + has_lover = no + is_married = no + age = 25 + NOT = { + age = 35 + } + is_female = yes + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + NOT = { + opinion = { who = ROOT value = 20 } + } + reverse_opinion = { who = ROOT value = 20 } + } + NOT = { + has_character_flag = LE_ST + } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = LE_ST + random_courtier = { + limit = { + age = 25 + NOT = { + age = 35 + } + is_female = yes + is_married = no + has_lover = no + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + NOT = { + opinion = { who = ROOT value = 20 } + } + reverse_opinion = { who = ROOT value = 20 } + } + save_event_target_as = target_courtier + } + } + + mean_time_to_happen = { + months = 260 + + modifier = { + factor = 0.2 + trait = charismatic_negotiator + } + modifier = { + factor = 0.4 + trait = skilled_tactician + } + modifier = { + factor = 1.2 + trait = misguided_warrior + } + modifier = { + factor = 1.3 + trait = naive_appeaser + } + } + + option = { + name = "EVTOPTA5030" #Poetry! + random_list = { + 50 = { + character_event = { #Ignored + id = 5031 + days = 14 + tooltip = "EVTTOOLTIPA5031" + } + event_target:target_courtier = { + set_character_flag = ignore_courtship + opinion = { + modifier = opinion_disgusted + who = ROOT + years = 1 + } + } + } + 50 = { + character_event = { #She likes it! + id = 5032 + days = 14 + tooltip = "EVTTOOLTIP5032" + } + event_target:target_courtier = { + set_character_flag = encourage_courtship + opinion = { + modifier = opinion_approves + who = ROOT + years = 1 + } + } + } + } + } + + option = { + name = "EVTOPTB5030" #Duelist! + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 50 = { + character_event = { #Ignored + id = 5031 + days = 14 + tooltip = "EVTTOOLTIPB5031" + } + event_target:target_courtier = { + set_character_flag = ignore_courtship + opinion = { + modifier = opinion_disgusted + who = ROOT + years = 1 + } + } + } + 50 = { + character_event = { #She likes it! + id = 5033 + days = 14 + tooltip = "EVTTOOLTIP5033" + } + event_target:target_courtier = { + set_character_flag = encourage_courtship + opinion = { + modifier = opinion_approves + who = ROOT + years = 1 + } + } + } + } + } +} + +#Ignored +character_event = { + id = 5031 + desc = "EVTDESC5031" + picture = "GFX_evt_bad_news" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5031" #Forget it + prestige = -15 + random_courtier = { + limit = { + has_character_flag = ignore_courtship + } + clr_character_flag = ignore_courtship + opinion = { + modifier = opinion_disgusted + who = ROOT + years = 1 + } + } + } + + option = { + name = "EVTOPTB5031" #Try something else + set_character_flag = never_giveup + random_courtier = { + limit = { + has_character_flag = ignore_courtship + } + opinion = { + modifier = opinion_disgusted + who = ROOT + years = 1 + } + } + } +} + +#She likes it! - poetry +character_event = { + id = 5032 + desc = "EVTDESC5032" + picture = "GFX_evt_library" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5032" + add_character_modifier = { + name = "aspiring_poet" + duration = -1 + } + random_courtier = { + limit = { + has_character_flag = encourage_courtship + } + opinion = { + modifier = opinion_approves + who = ROOT + years = 1 + } + } + } +} + +#She likes it! - duelist +character_event = { + id = 5033 + desc = "EVTDESC5033" + picture = "GFX_evt_joust" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5033" + add_character_modifier = { + name = "aspiring_duelist" + duration = -1 + } + random_courtier = { + limit = { + has_character_flag = encourage_courtship + } + opinion = { + modifier = opinion_approves + who = ROOT + years = 1 + } + } + } +} + +#I will fight for her honour! +character_event = { + id = 5034 + desc = "EVTDESC5034" + picture = "GFX_evt_joust" + + only_men = yes + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + in_command = no + NOT = { + lifestyle_traits = 1 + } + OR = { + has_character_flag = never_giveup + has_character_modifier = aspiring_duelist + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 1.25 + trait = tough_soldier + } + modifier = { + factor = 0.25 + trait = skilled_tactician + } + modifier = { + factor = 0.5 + trait = brilliant_strategist + } + } + + immediate = { + clr_character_flag = never_giveup + remove_character_modifier = aspiring_duelist + } + + option = { + name = "EVTOPTA5034" + character_event = { + id = 5036 + days = 30 + tooltip = "EVTTOOLTIP5036" + } + } +} + +#I will write poems +character_event = { + id = 5035 + desc = "EVTDESC5035" + picture = "GFX_evt_library" + + only_men = yes + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + in_command = no + NOT = { + lifestyle_traits = 1 + } + OR = { + has_character_flag = never_giveup + has_character_modifier = aspiring_poet + } + } + + mean_time_to_happen = { + months = 260 + + modifier = { + factor = 1.3 + trait = naive_appeaser + } + modifier = { + factor = 1.2 + trait = underhanded_rogue + } + modifier = { + factor = 0.2 + trait = grey_eminence + } + modifier = { + factor = 0.4 + trait = charismatic_negotiator + } + } + + immediate = { + clr_character_flag = never_giveup + remove_character_modifier = aspiring_poet + } + + option = { + name = "EVTOPTA5035" + character_event = { + id = 5037 + days = 30 + tooltip = "EVTTOOLTIP5037" + } + } +} + +#I won! +character_event = { + id = 5036 + desc = "EVTDESC5036" + picture = "GFX_evt_joust" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5036" + add_trait = duelist + clr_character_flag = LE_ST + random_courtier = { + limit = { + OR = { + has_character_flag = encourage_courtship + has_character_flag = ignore_courtship + } + } + clr_character_flag = encourage_courtship + clr_character_flag = ignore_courtship + add_lover = ROOT + } + } + + option = { + name = "EVTOPTB5036" + prestige = 20 + clr_character_flag = LE_ST + random_courtier = { + limit = { + OR = { + has_character_flag = encourage_courtship + has_character_flag = ignore_courtship + } + } + clr_character_flag = encourage_courtship + clr_character_flag = ignore_courtship + add_lover = ROOT + } + } +} + +#I have been published! +character_event = { + id = 5037 + desc = "EVTDESC5037" + picture = "GFX_evt_library" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5037" + add_trait = poet + clr_character_flag = LE_ST + random_courtier = { + limit = { + OR = { + has_character_flag = encourage_courtship + has_character_flag = ignore_courtship + } + } + clr_character_flag = encourage_courtship + clr_character_flag = ignore_courtship + add_lover = ROOT + } + } + + option = { + name = "EVTOPTB5037" + clr_character_flag = LE_ST + random_courtier = { + limit = { + OR = { + has_character_flag = encourage_courtship + has_character_flag = ignore_courtship + } + } + clr_character_flag = encourage_courtship + clr_character_flag = ignore_courtship + add_lover = ROOT + } + } +} + +######################################################################################## +#Hunter/Falconer - Start +######################################################################################## +character_event = { + id = 5040 + desc = "EVTDESC5040" + picture = "GFX_evt_hunt" + + min_age = 25 + prisoner = no + only_men = yes + capable_only = yes + lacks_dlc = "Way of Life" + + trigger = { + in_command = no + NOT = { religion = jain } + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + set_character_flag = LE_ST + } + + mean_time_to_happen = { + months = 360 + + modifier = { + factor = 0.75 + martial = 8 + } + modifier = { + factor = 0.5 + has_nickname = nick_the_fowler + } + modifier = { + factor = 0.25 + has_nickname = nick_the_hunter + } + modifier = { + factor = 4.0 + trait = slothful + } + modifier = { + factor = 2.0 + trait = wroth + } + } + + option = { + name = "EVTOPTA5040" #Hunting + random_list = { + 50 = { + character_event = { + id = 5041 + days = 14 + tooltip = "EVTTOOLTIP5041" + } + } + 50 = { + character_event = { + id = 5042 + days = 14 + tooltip = "EVTTOOLTIP5042" + } + } + } + } + + option = { + name = "EVTOPTB5040" #Falconry + random_list = { + 50 = { + character_event = { + id = 5043 + days = 14 + tooltip = "EVTTOOLTIP5043" + } + } + 50 = { + character_event = { + id = 5044 + days = 14 + tooltip = "EVTTOOLTIP5044" + } + } + } + } +} + +#Hunting - no fun +character_event = { + id = 5041 + desc = "EVTDESC5041" + picture = "GFX_evt_hunt" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5041" #Forget it + add_trait = depressed + } + + option = { + name = "EVTOPTB5041" #Try something else + add_character_modifier = { + name = aspiring_falconer + duration = 90 + } + } +} + +#Hunting - Really fun! +character_event = { + id = 5042 + desc = "EVTDESC5042" + + picture = "GFX_evt_hunt" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5042" + add_character_modifier = { + name = aspiring_hunter + duration = -1 + } + } +} + +#Falconry - no fun +character_event = { + id = 5043 + desc = "EVTDESC5043" + picture = "GFX_evt_falconing" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5043" #Forget it + add_trait = depressed + } + + option = { + name = "EVTOPTB5043" #Try something else + add_character_modifier = { + name = aspiring_hunter + duration = 90 + } + } +} + +#Falconry - Really fun! +character_event = { + id = 5044 + desc = "EVTDESC5044" + picture = "GFX_evt_falconing" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5044" + add_character_modifier = { + name = aspiring_falconer + duration = -1 + } + } +} + +#Hunter +character_event = { + id = 5045 + desc = "EVTDESC5045" + picture = "GFX_evt_hunt" + + min_age = 25 + prisoner = no + only_men = yes + capable_only = yes + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = aspiring_hunter + in_command = no + NOT = { + lifestyle_traits = 1 + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 0.2 + trait = diligent + } + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 1.2 + trait = slothful + } + modifier = { + factor = 1.3 + trait = wroth + } + } + + immediate = { + remove_character_modifier = aspiring_hunter + } + + option = { + name = "EVTOPTA5045" + add_trait = hunter + clr_character_flag = LE_ST + } + + option = { + name = "EVTOPTB5045" #Booring + prestige = 15 + clr_character_flag = LE_ST + } +} + +#Falconer +character_event = { + id = 5046 + desc = "EVTDESC5046" + picture = "GFX_evt_falconing" + + min_age = 25 + prisoner = no + only_men = yes + capable_only = yes + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = aspiring_falconer + in_command = no + NOT = { + trait = falconer + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 0.2 + trait = diligent + } + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 1.2 + trait = slothful + } + modifier = { + factor = 1.3 + trait = wroth + } + } + + immediate = { + remove_character_modifier = aspiring_falconer + } + + option = { + name = "EVTOPTA5046" + add_trait = falconer + clr_character_flag = LE_ST + } + + option = { + name = "EVTOPTB5046" #Booring + prestige = 15 + clr_character_flag = LE_ST + } +} + + +######################################################################################## +#Female: Poet/Falconer - Start #Opened up to male characters in 2.4 +######################################################################################## +character_event = { + id = 5050 + desc = "EVTDESC5050" + picture = "GFX_evt_falconing" + + only_playable = yes + min_age = 25 + capable_only = yes + prisoner = no + + trigger = { + NOT = { religion = jain } + in_command = no + NOT = { + has_character_flag = LE_ST + } + NOT = { is_inaccessible_trigger = yes } + NOR = { + trait = falconer + trait = poet + } + } + + immediate = { + set_character_flag = LE_ST + } + + mean_time_to_happen = { + months = 260 + + modifier = { + factor = 4.0 + trait = slothful + } + modifier = { + factor = 2.0 + trait = wroth + } + } + + option = { + name = "EVTOPTA5050" #Poet + random_list = { + 50 = { + character_event = { + id = 5051 + days = 14 + tooltip = "EVTTOOLTIP5051" + } + } + 50 = { + character_event = { + id = 5052 + days = 14 + tooltip = "EVTTOOLTIP5052" + } + } + } + } + + option = { + name = "EVTOPTB5050" #Falconry + random_list = { + 50 = { + character_event = { + id = 5053 + days = 14 + tooltip = "EVTTOOLTIP5043" + } + } + 50 = { + character_event = { + id = 5054 + days = 14 + tooltip = "EVTTOOLTIP5044" + } + } + } + } +} + +#Poetry - Boring +character_event = { + id = 5051 + desc = "EVTDESC5051" + picture = "GFX_evt_library" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5051" #Forget it + add_trait = depressed + } + + option = { + name = "EVTOPTB5051" #Try something else + add_character_modifier = { + name = aspiring_falconer + duration = 120 + } + hidden_tooltip = { + random_list = { + 60 = { + modifier = { + factor = 1.8 + trait = diligent + } + modifier = { + factor = 1.6 + trait = patient + } + modifier = { + factor = 1.4 + trait = gregarious + } + + character_event = { id = 5056 days = 60 random = 60 } + } + 40 = { + modifier = { + factor = 1.5 + trait = slothful + } + } + } + } + } +} + +#Poetry - Nice +character_event = { + id = 5052 + desc = "EVTDESC5052" + picture = "GFX_evt_library" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5052" + add_character_modifier = { + name = aspiring_poet + duration = -1 + } + hidden_tooltip = { + character_event = { id = 5055 days = 60 random = 120 } + } + } +} + +#Falconry - Boring +character_event = { + id = 5053 + desc = "EVTDESC5053" + picture = "GFX_evt_falconing" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5053" #Forget it + add_trait = depressed + } + + option = { + name = "EVTOPTB5053" #Try something else + add_character_modifier = { + name = aspiring_poet + duration = 120 + } + hidden_tooltip = { + random_list = { + 60 = { + modifier = { + factor = 1.8 + trait = diligent + } + modifier = { + factor = 1.6 + trait = patient + } + modifier = { + factor = 1.4 + trait = erudite + } + + character_event = { id = 5055 days = 60 random = 60 } + } + 40 = { + modifier = { + factor = 1.5 + trait = slothful + } + } + } + } + } +} + +#Falconry - Nice +character_event = { + id = 5054 + desc = "EVTDESC5044" + picture = "GFX_evt_falconing" + + is_triggered_only = yes + + option = { + name = "EVTOPTA5044" + add_character_modifier = { + name = aspiring_falconer + duration = -1 + } + hidden_tooltip = { + character_event = { id = 5056 days = 60 random = 120 } + } + } +} + +#Poet +character_event = { + id = 5055 + desc = "EVTDESC5055" + picture = "GFX_evt_library" + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + immediate = { + remove_character_modifier = aspiring_poet + } + + option = { + name = "EVTOPTA5055" + add_trait = poet + clr_character_flag = LE_ST + } + + option = { + name = "EVTOPTB5055" #Booring + prestige = 15 + clr_character_flag = LE_ST + } +} + +#Falconer +character_event = { + id = 5056 + desc = "EVTDESC5046" + picture = "GFX_evt_falconing" + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + immediate = { + remove_character_modifier = aspiring_falconer + } + + option = { + name = "EVTOPTA5046" + add_trait = falconer + clr_character_flag = LE_ST + + } + + option = { + name = "EVTOPTB5046" #Booring + prestige = 15 + clr_character_flag = LE_ST + } +} + +######################################################################################## +#Celibate/Hedonist - Start +######################################################################################## +character_event = { + id = 5060 + desc = EVTDESC5060 + picture = GFX_evt_brothel + + min_age = 25 + capable_only = yes + prisoner = no + religion_group = christian + lacks_dlc = "Way of Life" + + trigger = { + NOT = { + lifestyle_traits = 1 + } + NOT = { + has_character_flag = LE_ST + } + } + + immediate = { + set_character_flag = LE_ST + } + + mean_time_to_happen = { + months = 260 + + modifier = { + factor = 1.2 + trait = detached_priest + } + modifier = { + factor = 0.3 + trait = martial_cleric + } + modifier = { + factor = 1.4 + trait = scholarly_theologian + } + modifier = { + factor = 0.5 + trait = mastermind_theologian + } + modifier = { + factor = 0.25 + trait = gregarious + } + } + + option = { + name = "EVTOPTA5060" + add_character_modifier = { + name = one_hedonist + duration = -1 + } + } + option = { + name = "EVTOPTB5060" + add_character_modifier = { + name = one_celibate + duration = -1 + } + } +} + +#On the road towards Hedonism +character_event = { + id = 5061 + desc = "EVTDESC5061" + picture = "GFX_evt_brothel" + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = one_hedonist + NOT = { + lifestyle_traits = 1 + } + OR = { + trait = chaste + trait = lustful + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 1.2 + trait = detached_priest + } + modifier = { + factor = 1.3 + trait = martial_cleric + } + modifier = { + factor = 1.4 + trait = scholarly_theologian + } + modifier = { + factor = 1.5 + trait = mastermind_theologian + } + } + + option = { + name = "EVTOPTA5061" + remove_character_modifier = one_hedonist + add_character_modifier = { + name = "sweet_temptation" + duration = -1 + } + } + option = { + name = "EVTOPTB5061" + remove_character_modifier = one_hedonist + add_character_modifier = { + name = "stay_strong" + duration = -1 + } + } +} + +#On the road towards Celibacy +character_event = { + id = 5062 + desc = "EVTDESC5062" + picture = "GFX_evt_heretic" + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = one_celibate + OR = { + trait = chaste + trait = lustful + } + NOT = { + lifestyle_traits = 1 + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 0.2 + trait = detached_priest + } + modifier = { + factor = 0.3 + trait = martial_cleric + } + modifier = { + factor = 0.4 + trait = scholarly_theologian + } + modifier = { + factor = 0.5 + trait = mastermind_theologian + } + } + + option = { + name = "EVTOPTA5062" + remove_character_modifier = one_celibate + add_character_modifier = { + name = "sweet_temptation" + duration = -1 + } + } + option = { + name = "EVTOPTB5062" + remove_character_modifier = one_celibate + add_character_modifier = { + name = "stay_strong" + duration = -1 + } + } +} + +#Sweet Temptation +character_event = { + id = 5063 + desc = "EVTDESC5063" + picture = "GFX_evt_brothel" + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + has_character_modifier = sweet_temptation + NOT = { + lifestyle_traits = 1 + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 1.5 + trait = chaste + } + } + + option = { + name = "EVTOPTA5063" + character_event = { + id = 5065 + days = 30 + tooltip = "EVTTOOLTIP5065" + } + } + + option = { + name = "EVTOPTB5063" + character_event = { + id = 5066 + days = 30 + tooltip = "EVTTOOLTIP5066" + } + } +} + +#Stay Strong +character_event = { + id = 5064 + desc = "EVTDESC5064" + picture = "GFX_evt_heretic" + + min_age = 25 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + OR = { + AND = { + has_character_modifier = stay_strong + NOT = { + lifestyle_traits = 1 + } + } + has_ambition = obj_buddhist_abstain_sexual_excess + } + } + + mean_time_to_happen = { + months = 36 + + modifier = { + factor = 1.5 + trait = lustful + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 5 + has_ambition = obj_buddhist_abstain_sexual_excess + } + } + + option = { + name = "EVTOPTA5064" + piety = 10 + character_event = { + id = 5065 + days = 30 + tooltip = "EVTTOOLTIP5065" + } + } + + option = { + name = "EVTOPTB5064" + prestige = 10 + character_event = { + id = 5066 + days = 30 + tooltip = "EVTTOOLTIP5066" + } + } +} + +#Celibacy! +character_event = { + id = 5065 + desc = "EVTDESC5065" + picture = "GFX_evt_heretic" + + is_triggered_only = yes + + immediate = { + remove_character_modifier = sweet_temptation + remove_character_modifier = stay_strong + } + + option = { + name = "EVTOPTA5065" + add_trait = celibate + clr_character_flag = LE_ST + + if = { + limit = { + trait = lustful + } + remove_trait = lustful + } + } + option = { + name = "EVTOPTB5065" + prestige = 20 + clr_character_flag = LE_ST + } +} + +#Hedonism! +character_event = { + id = 5066 + desc = "EVTDESC5066" + picture = "GFX_evt_brothel" + + is_triggered_only = yes + + immediate = { + remove_character_modifier = sweet_temptation + remove_character_modifier = stay_strong + } + + option = { + name = "EVTOPTA5066" + add_trait = hedonist + clr_character_flag = LE_ST + if = { + limit = { + trait = chaste + } + remove_trait = chaste + } + } + option = { + name = "EVTOPTB5066" + piety = 20 + clr_character_flag = LE_ST + } +} diff --git a/After the End/events/lovers_events.txt b/After the End/events/lovers_events.txt new file mode 100644 index 000000000..356e70e63 --- /dev/null +++ b/After the End/events/lovers_events.txt @@ -0,0 +1,4084 @@ +################################################ +# +# Events for Lovers +# +# ID 64000 - 64499 are reserved +# +################################################## +# +# Designed by Johan Andersson +# Written by Sara Wendel-Örtqvist + +#Confront cheating spouse/spouse's lover +character_event = { + id = 64000 + desc = EVTDESC64000 + picture = GFX_evt_quarrel + + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + #NOT = { + # religion_group = muslim + #} + spouse = { + #NOT = { + # religion_group = muslim + #} + in_command = no + war = no + is_abroad = no + is_alive = yes + has_lover = yes + prisoner = no + NOT = { + is_lover = ROOT + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = envious + } + } + + option = { + name = "EVTOPTA64000" + spouse = { + character_event = { + id = 64001 + tooltip = "EVTTOOLTIP64001" + } + } + } + option = { + name = "EVTOPTB64000" + spouse = { + random_lover = { + character_event = { + id = 64002 + tooltip = "EVTTOOLTIP64002" + } + } + } + } +} + +#Spouse Confronted! +character_event = { + id = 64001 + desc = "EVTDESC64001" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64001" + FROM = { + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTB64001" + random_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + FROM = { + reverse_opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + } +} + +#Lover Confronted! +character_event = { + id = 64002 + desc = "EVTDESC64002" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64002" # Refuse + FROM = { + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + + option = { + name = "EVTOPTB64002" # Break up + FROM = { + spouse = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + reverse_opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + } + + option = { + name = "EVTOPTC64002" # I will claw your eyes out! + tooltip_info = martial + trigger = { + martial = 10 + FROM = { + NOT = { + trait = wounded + } + } + } + FROM = { + random = { + chance = 20 + + character_event = { + id = 64003 + tooltip = "EVTTOOLTIP64003" + } + } + reverse_opinion = { + modifier = opinion_love_rival + who = ROOT + years = 5 + } + } + } + option = { + name = "EVTOPTD64002" # Your meddling will cost you dearly + tooltip_info = intrigue + trigger = { + intrigue = 10 + FROM = { + NOT = { + trait = wounded + } + } + } + FROM = { + random = { + chance = 10 + + set_character_flag = wounded_by_lover + character_event = { + id = 64004 + days = 14 + tooltip = "EVTTOOLTIP64003" + } + } + random = { + chance = 10 + + set_character_flag = made_infirm + character_event = { + id = 64004 + days = 7 + tooltip = "EVTTOOLTIP64004" + } + } + reverse_opinion = { + modifier = opinion_love_rival + who = ROOT + years = 5 + } + } + } +} + +#Rival hurts lover's spouse: Martial wounded +character_event = { + id = 64003 + desc = "EVTDESC64003" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64003" + add_trait = wounded + FROM = { + reverse_opinion = { + modifier = opinion_love_rival + who = ROOT + years = 5 + } + } + } +} + +#Rival hurts lover's spouse: Intrigue wounded/infirm +character_event = { + id = 64004 + desc = "EVTDESC64004" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64004" + trigger = { + has_character_flag = wounded_by_lover + } + add_trait = wounded + clr_character_flag = wounded_by_lover + FROM = { + reverse_opinion = { + modifier = opinion_love_rival + who = ROOT + years = 5 + } + } + } + option = { + name = "EVTOPTB64004" + trigger = { + has_character_flag = made_infirm + } + add_trait = infirm + clr_character_flag = made_infirm + FROM = { + reverse_opinion = { + modifier = opinion_love_rival + who = ROOT + years = 5 + } + } + } +} + +#Sick lover: Pneumonic or ill +character_event = { + id = 64005 + desc = EVTDESC64005 + picture = GFX_evt_illness + + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + NOT = { + has_dlc = "Reapers" + } + any_lover = { + is_abroad = no + OR = { + is_ill = yes + trait = pneumonic + } + } + NOT = { + trait = cruel + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + is_ill = yes + } + modifier = { + factor = 2 + trait = kind + } + } + + immediate = { + random_lover = { + limit = { + is_abroad = no + OR = { + is_ill = yes + trait = pneumonic + } + } + set_character_flag = lover_ill_flag_64005 + } + } + + option = { + name = "EVTOPTA64005" + trigger = { + any_lover = { + is_female = no + has_character_flag = lover_ill_flag_64005 + } + } + ai_chance = { factor = 50 } + random_lover = { + limit = { + has_character_flag = lover_ill_flag_64005 + } + clr_character_flag = lover_ill_flag_64005 + if = { + limit = { + is_ill = yes + } + random = { + chance = 10 + remove_trait = ill + } + } + if = { + limit = { + trait = pneumonic + } + random = { + chance = 10 + remove_trait = pneumonic + } + } + opinion = { + modifier = opinion_glad + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTB64005" + ai_chance = { factor = 50 } + scaled_wealth = -0.2 + random_lover = { + limit = { + has_character_flag = lover_ill_flag_64005 + } + clr_character_flag = lover_ill_flag_64005 + if = { + limit = { + is_ill = yes + } + random = { + chance = 10 + remove_trait = ill + } + } + if = { + limit = { + trait = pneumonic + } + random = { + chance = 10 + remove_trait = pneumonic + } + } + } + } + + option = { + name = "EVTOPTC64005" + ai_chance = { factor = 0 } + random_lover = { + limit = { + has_character_flag = lover_ill_flag_64005 + } + clr_character_flag = lover_ill_flag_64005 + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + + option = { + name = "EVTOPTD64005" + trigger = { + any_lover = { + is_female = yes + has_character_flag = lover_ill_flag_64005 + } + } + ai_chance = { factor = 50 } + random_lover = { + limit = { + is_female = yes + has_character_flag = lover_ill_flag_64005 + } + clr_character_flag = lover_ill_flag_64005 + if = { + limit = { + is_ill = yes + } + random = { + chance = 10 + remove_trait = ill + } + } + if = { + limit = { + trait = pneumonic + } + random = { + chance = 10 + remove_trait = pneumonic + } + } + opinion = { + modifier = opinion_glad + who = ROOT + years = 1 + } + } + } +} + +#Sick lover: Wounded +character_event = { + id = 64006 + desc = EVTDESC64006 + picture = GFX_evt_illness + + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + any_lover = { + is_abroad = no + trait = wounded + } + NOT = { + trait = cruel + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + is_ill = yes + } + modifier = { + factor = 2 + trait = kind + } + } + + immediate = { + random_lover = { + limit = { + is_abroad = no + trait = wounded + } + set_character_flag = lover_wounded_flag_64006 + } + } + + option = { + name = "EVTOPTA64006" + ai_chance = { factor = 50 } + random_lover = { + limit = { + has_character_flag = lover_wounded_flag_64006 + } + clr_character_flag = lover_wounded_flag_64006 + random = { + chance = 10 + remove_trait = wounded + } + } + } + option = { + name = "EVTOPTB64006" + ai_chance = { factor = 50 } + scaled_wealth = -0.2 + random_lover = { + limit = { + has_character_flag = lover_wounded_flag_64006 + } + clr_character_flag = lover_wounded_flag_64006 + random = { + chance = 20 + remove_trait = wounded + } + } + } + + option = { + name = "EVTOPTC64006" + ai_chance = { factor = 0 } + random_lover = { + limit = { + has_character_flag = lover_wounded_flag_64006 + } + clr_character_flag = lover_wounded_flag_64006 + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +#You have become infatuated with someone in the same court +character_event = { + id = 64010 + desc = EVTDESC64010 + picture = GFX_evt_lovers + + prisoner = no + min_age = 12 + max_age = 18 + lacks_dlc = "Way of Life" + is_married = no + + is_triggered_only = yes + + trigger = { + has_epidemic = no + is_ill = no + is_pregnant = no + NOR = { + trait = homosexual + trait = celibate + trait = incapable + trait = eunuch + } + any_courtier = { + is_married = no + has_epidemic = no + is_ill = no + prisoner = no + is_abroad = no + is_pregnant = no + age = 12 + NOR = { + trait = homosexual + trait = celibate + trait = incapable + trait = eunuch + family = ROOT + age = 18 + } + OR = { + AND = { + is_female = no + ROOT = { + is_female = yes + } + } + AND = { + is_female = yes + ROOT = { + is_female = no + } + } + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA64010" + trigger = { + is_female = no + } + ai_chance = { + factor = 95 + } + random_courtier = { + limit = { + age = 12 + is_female = yes + is_married = no + has_epidemic = no + is_ill = no + NOT = { + trait = homosexual + } + NOT = { + trait = celibate + } + NOT = { + trait = incapable + } + NOT = { + trait = eunuch + } + NOT = { + family = ROOT + } + NOT = { + age = 18 + } + } + random_list = { + 80 = { + set_character_flag = good_reply + character_event = { + id = 64011 + tooltip = "EVTTOOLTIPA64011" + } + } + 20 = { + set_character_flag = bad_reply + character_event = { + id = 64011 + tooltip = "EVTTOOLTIPB64011" + } + } + } + } + } + option = { + name = "EVTOPTA64010" + trigger = { + is_female = yes + } + ai_chance = { + factor = 95 + } + random_courtier = { + limit = { + age = 12 + is_female = no + is_married = no + has_epidemic = no + NOT = { + trait = homosexual + } + NOT = { + trait = celibate + } + NOT = { + trait = incapable + } + NOT = { + trait = eunuch + } + is_ill = no + NOT = { + family = ROOT + } + NOT = { + age = 18 + } + } + random_list = { + 80 = { + set_character_flag = good_reply + character_event = { + id = 64011 + tooltip = "EVTTOOLTIPA64011" + } + } + 20 = { + set_character_flag = bad_reply + character_event = { + id = 64011 + tooltip = "EVTTOOLTIPB64011" + } + } + } + } + } + option = { + name = "EVTOPTB64010" #Not that pretty anyway... + ai_chance = { + factor = 5 + + modifier = { + factor = 15 + trait = craven + } + modifier = { + factor = 15 + trait = shy + } + } + if = { + limit = { + OR = { + trait = craven + trait = berserker + } + NOT = { + trait = shy + } + } + add_trait = shy + } + if = { + limit = { + trait = shy + NOR = { + trait = craven + trait = berserker + } + } + add_trait = craven + } + } +} + +#Object answers +character_event = { + id = 64011 + desc = "EVTDESC64011" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64011" + trigger = { + has_character_flag = good_reply + } + opinion = { + modifier = teenage_infatuation + who = FROM + years = 10 + } + set_character_flag = teenage_infatuation + FROM = { + character_event = { + id = 64012 + tooltip = "EVTTOOLTIP64012" + } + } + } + option = { + name = "EVTOPTB64011" #Scorn reply + trigger = { + has_character_flag = bad_reply + } + FROM = { + character_event = { + id = 64013 + tooltip = "EVTTOOLTIP64013" + } + } + } +} + +#Object positive +character_event = { + id = 64012 + desc = "EVTDESC64012" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64012" + opinion = { + modifier = teenage_infatuation + who = FROM + years = 10 + } + set_character_flag = teenage_infatuation + } +} + +#Object negative +character_event = { + id = 64013 + desc = "EVTDESC64013" + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = "EVTOPTA64013" #Accept I'm a failure + random_list = { + 30 = { + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + 30 = { + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + 30 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } + option = { + name = "EVTOPTB64013" #Who dares wins + random_list = { + 30 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify ambitious + } + } + } + 30 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify proud + } + } + } + 30 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify brave + } + } + } + } + } +} + +#Old and ugly wife: take a mistress? +character_event = { + id = 64015 + desc = EVTDESC64015 + picture = GFX_evt_lovers + + capable_only = yes + only_men = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + fertility = 0.5 + has_epidemic = no + is_ill = no + has_lover = no + NOT = { + trait = homosexual + } + NOT = { + has_character_flag = never_lover + } + any_courtier = { + is_female = yes + prisoner = no + NOT = { is_close_relative = ROOT } + NOT = { + trait = homosexual + trait = incapable + } + NOT = { + trait = celibate + } + age = 16 + NOT = { + age = 50 + } + has_epidemic = no + is_ill = no + has_lover = no + } + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + OR = { + has_epidemic = yes + is_ill = yes + age = 45 + NOT = { + fertility = 0.2 + } + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + random_courtier = { + limit = { + is_female = yes + prisoner = no + NOT = { is_close_relative = ROOT } + NOT = { + trait = homosexual + trait = incapable + } + NOT = { + trait = celibate + } + age = 16 + NOT = { + age = 50 + } + has_epidemic = no + is_ill = no + has_lover = no + } + save_event_target_as = target_lover + } + } + + option = { + name = "EVTOPTA64015" #I'm sure my wife will allow me to indulge myself + piety = -10 + if = { + limit = { + NOT = { + trait = lustful + } + } + add_trait = lustful + } + spouse = { + random = { + chance = 50 + + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { + id = 64016 + } + } + } + } + event_target:target_lover = { + character_event = { + id = 64017 + tooltip = "EVTTOOLTIP64017" + } + } + } + option = { + name = "EVTOPTB64015" + add_trait = deceitful + spouse = { + random = { + chance = 25 + + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { + id = 64016 + } + } + } + } + event_target:target_lover = { + character_event = { + id = 64017 + tooltip = "EVTTOOLTIP64017" + } + } + } + option = { + name = "EVTOPTC64015" #No, it's a sin + piety = 10 + random_list = { + 50 = { + } + 20 = { + modifier = { + factor = 1.25 + NOT = { religion_group = christian } + } + if = { + limit = { + religion_group = christian + } + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + if = { + limit = { + NOT = { religion_group = christian } + } + piety = 5 + } + } + 25 = { + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + 5 = { + modifier = { + factor = 0 + NOT = { religion_group = christian } + } + add_trait = celibate + hidden_tooltip = { + character_event = { + id = 38285 #Notify Celibate + } + } + } + } + } +} + +#Wife is angry +character_event = { + id = 64016 + desc = "EVTDESC64016" + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = "EVTOPTA64016" + add_trait = stressed + spouse = { + character_event = { + id = 64020 + tooltip = "EVTTOOLTIP64020" + } + } + } +} + +#Courtier accepts or scorn liege's advances +character_event = { + id = 64017 + desc = "EVTDESC64017" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64017" + FROM = { + character_event = { + id = 64018 + tooltip = "EVTTOOLTIP64018" + } + } + } + option = { + name = "EVTOPTB64017" + FROM = { + character_event = { + id = 64019 + tooltip = "EVTTOOLTIP64019" + } + } + } +} + +#Liege gets courtier's answer: Accepts +character_event = { + id = 64018 + desc = "EVTDESC64018" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64018" + add_lover = FROM + } +} + +#Liege gets courtier's answer: Scorns +character_event = { + id = 64019 + desc = "EVTDESC64019" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64019" + set_character_flag = never_lover + prestige = -10 + opinion = { + modifier = opinion_dislike + who = FROM + years = 5 + } + } +} + +#Wife is angry: liege +character_event = { + id = 64020 + desc = "EVTDESC64020" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64020" + FROM = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 1 + } + } + } +} + +#You have fallen in love with your spouse +character_event = { + id = 64025 + desc = "EVTDESC64025" + picture = GFX_evt_lovers + + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + OR = { + AND = { + is_married = yes + NOT = { + trait = homosexual + } + NOT = { + trait = celibate + } + has_lover = no + spouse = { + is_ruler = no + prisoner = no + is_alive = yes + is_abroad = no + reverse_opinion = { who = ROOT value = 20 } + has_lover = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_spurned } + } + NOT = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_spurned } + } + } + } + has_character_flag = poet_spouse_muse + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + trait = charitable + } + modifier = { + factor = 2 + trait = gregarious + } + modifier = { + factor = 0.1 + trait = cruel + } + modifier = { + factor = 0.1 + trait = wroth + } + modifier = { + factor = 0.1 + trait = envious + } + + modifier = { + factor = 2 + spouse = { trait = kind } + } + modifier = { + factor = 2 + spouse = { trait = charitable } + } + modifier = { + factor = 2 + spouse = { trait = gregarious } + } + modifier = { + factor = 0.1 + spouse = { trait = cruel } + } + modifier = { + factor = 0.1 + spouse = { trait = wroth } + } + modifier = { + factor = 0.1 + spouse = { trait = envious } + } + } + + option = { + name = "EVTOPTA64025" #Embrace the love + piety = 5 + clr_character_flag = poet_spouse_muse + spouse = { + add_lover = ROOT + } + } + option = { + name = "EVTOPTB64025" #Deny it + clr_character_flag = poet_spouse_muse + spouse = { + opinion = { + modifier = opinion_spurned + who = ROOT + years = 10 + } + } + } +} + +#A week with my lover... +character_event = { + id = 64030 + desc = EVTDESC64030 + picture = GFX_evt_lovers + + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + is_abroad = no + has_lover = yes + any_lover = { + is_female = yes + prisoner = no + NOT = { + trait = incapable + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + random_lover = { + limit = { + is_female = yes + prisoner = no + NOT = { trait = incapable } + } + set_character_flag = lover_retreat_64030 + } + } + + option = { + name = "EVTOPTA64030" #I shall take her to my isolated country cottage + random_lover = { + limit = { + has_character_flag = lover_retreat_64030 + } + clr_character_flag = lover_retreat_64030 + add_character_modifier = { + name = lovers_retreat + duration = 365 + } + } + add_character_modifier = { + name = for_the_sake_of_love + duration = 30 + } + } + option = { + name = "EVTOPTB64030" #I'll sponsor entertainment at the local court + scaled_wealth = -0.05 + random_lover = { + limit = { + has_character_flag = lover_retreat_64030 + } + clr_character_flag = lover_retreat_64030 + add_character_modifier = { + name = lovers_entertainment + duration = 365 + } + } + if = { + limit = { + is_married = yes + spouse = { + is_alive = yes + prisoner = no + is_abroad = no + NOT = { any_lover = { character = ROOT } } + } + } + spouse = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + } + option = { + name = "EVTOPTC64030" #I'll spend the time with my mates instead + random_lover = { + limit = { + has_character_flag = lover_retreat_64030 + } + clr_character_flag = lover_retreat_64030 + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +#Your lover complains to you that you two never do anything exciting +character_event = { + id = 64035 + desc = EVTDESC64035 + picture = GFX_evt_quarrel + + capable_only = yes + only_rulers = yes + only_men = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + NOT = { + trait = homosexual + } + NOT = { + spouse = { is_lover = ROOT } + } + any_lover = { + is_female = yes + is_pregnant = no + prisoner = no + NOT = { trait = incapable } + OR = { + trait = ambitious + trait = arbitrary + trait = wroth + } + } + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + random_lover = { + limit = { + is_female = yes + is_pregnant = no + prisoner = no + NOT = { trait = incapable } + OR = { + trait = ambitious + trait = arbitrary + trait = wroth + } + } + set_character_flag = lover_dostuff_64035 + } + } + + option = { + name = "EVTOPTA64035" #Throw a big party for her entertainment + scaled_wealth = -0.1 + prestige = 10 + add_trait = charitable + if = { + limit = { + is_married = no + } + piety = -5 + any_vassal = { + limit = { + OR = { + piety = 50 + trait = zealous + is_theocracy = yes + } + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + random_lover = { + limit = { + has_character_flag = lover_dostuff_64035 + } + clr_character_flag = lover_dostuff_64035 + prestige = 20 + } + } + option = { + name = "EVTOPTB64035" #Take her to do something dangerous, like hunting + prestige = 10 + random_lover = { + limit = { + has_character_flag = lover_dostuff_64035 + } + clr_character_flag = lover_dostuff_64035 + random = { + chance = 10 + add_trait = wounded + } + } + } + option = { + name = "EVTOPTC64035" #She gets what she deserves + if = { + limit = { + trait = greedy + } + prestige = 10 + } + add_trait = greedy + random_lover = { + limit = { + has_character_flag = lover_dostuff_64035 + } + clr_character_flag = lover_dostuff_64035 + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64045" + } + } + } +} + +# Ruler confronts cheating spouse +character_event = { + id = 64040 + desc = EVTDESC64040 + picture = GFX_evt_quarrel + + only_rulers = yes + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + is_triggered_only = yes + + trigger = { + spouse = { + in_command = no + war = no + is_abroad = no + is_alive = yes + prisoner = no + NOT = { trait = incapable } + has_lover = yes + any_lover = { + is_abroad = no + prisoner = no + NOT = {trait = incapable } + NOT = { character = ROOT } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = envious + } + } + + option = { + name = "EVTOPTA64040" + spouse = { + character_event = { + id = 64041 + tooltip = "EVTTOOLTIP64041" + } + } + } +} + +#Spouse Confronted! +character_event = { + id = 64041 + desc = "EVTDESC64041" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64041" + FROM = { + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTB64041" + random_lover = { + limit = { + is_abroad = no + prisoner = no + NOT = { trait = incapable } + NOT = { character = FROM } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + FROM = { + reverse_opinion = { + modifier = opinion_irritated + who = ROOT + years = 2 + } + } + } +} + +#You have lost that loving feeling +character_event = { + id = 64045 + desc = EVTDESC64045 + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + has_lover = yes + any_lover = { + OR = { + NOT = { + opinion = { who = ROOT value = 25 } + } + NOT = { + reverse_opinion = { who = ROOT value = 25 } + } + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.8 + trait = wroth + } + modifier = { + factor = 0.8 + trait = envious + } + modifier = { + factor = 0.8 + trait = cruel + } + modifier = { + factor = 0.8 + trait = drunkard + } + } + + option = { + name = "EVTOPTA64045" + clr_character_flag = lost_loving_feeling # Set in chief Qadi event chain (105035). Zina. + random_lover = { + limit = { + OR = { + NOT = { + opinion = { who = ROOT value = 25 } + } + NOT = { + reverse_opinion = { who = ROOT value = 25 } + } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +#Lover is notified +character_event = { + id = 64046 + desc = "EVTDESC64046" + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = "EVTOPTA64046" + remove_lover = FROM + } +} + +#Infatuation turned into love? +character_event = { + id = 64050 + desc = EVTDESC64050 + picture = GFX_evt_lovers + + min_age = 18 + max_age = 25 + capable_only = yes + prisoner = no + has_character_flag = teenage_infatuation + lacks_dlc = "Way of Life" + + trigger = { + has_lover = no + any_courtier = { + has_character_flag = teenage_infatuation + has_lover = no + age = 18 + is_abroad = no + same_realm = ROOT + has_opinion_modifier = { who = ROOT modifier = teenage_infatuation } + reverse_has_opinion_modifier = { who = ROOT modifier = teenage_infatuation } + opinion = { who = ROOT value = 25 } + their_opinion = { who = ROOT value = 25 } + } + } + + mean_time_to_happen = { + months = 120 + } + + immediate = { + random_courtier = { + limit = { + has_character_flag = teenage_infatuation + has_lover = no + age = 18 + is_abroad = no + same_realm = ROOT + has_opinion_modifier = { who = ROOT modifier = teenage_infatuation } + reverse_has_opinion_modifier = { who = ROOT modifier = teenage_infatuation } + opinion = { who = ROOT value = 25 } + their_opinion = { who = ROOT value = 25 } + } + save_event_target_as = infatuated_love_64050 + } + } + + option = { + name = "EVTOPTA64050" #Our infatuation has turned into love + event_target:infatuated_love_64050 = { + hidden_tooltip = { + remove_opinion = { who = ROOT modifier = teenage_infatuation } + reverse_remove_opinion = { who = ROOT modifier = teenage_infatuation } + } + character_event = { + id = 64051 + tooltip = "EVTTOOLTIP64051" + } + } + } + option = { + name = "EVTOPTB64050" #This was just something for us growing up + event_target:infatuated_love_64050 = { + hidden_tooltip = { + remove_opinion = { who = ROOT modifier = teenage_infatuation } + reverse_remove_opinion = { who = ROOT modifier = teenage_infatuation } + } + reverse_opinion = { + modifier = childhood_sweetheart + who = ROOT + years = 50 + } + character_event = { + id = 64052 + tooltip = "EVTTOOLTIP64052" + } + } + } +} + +#Infatuation has turned into love +character_event = { + id = 64051 + desc = "EVTDESC64051" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64051" + add_lover = FROM + } +} + +#Infatuation has turned into affection? +character_event = { + id = 64052 + desc = "EVTDESC64052" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64052" #Yes, it was... + opinion = { + modifier = childhood_sweetheart + who = FROM + years = 50 + } + } + option = { + name = "EVTOPTB64052" #But I loved you... + opinion = { + modifier = love_scorned + who = FROM + years = 50 + } + } +} + +#Ruler: Child has teenage_infatuation with courtier +character_event = { + id = 64055 + desc = "EVTDESC64055" + picture = GFX_evt_lovers + + only_rulers = yes + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + any_child = { + age = 13 + NOT = { age = 20 } + has_character_flag = teenage_infatuation + is_abroad = no + prisoner = no + NOT = { trait = incapable } + is_ruler = no + any_courtier = { + has_character_flag = teenage_infatuation + is_abroad = no + prisoner = no + has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + reverse_has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + } + } + } + + mean_time_to_happen = { + months = 120 + } + + immediate = { + random_child = { + limit = { + age = 13 + NOT = { age = 20 } + has_character_flag = teenage_infatuation + is_abroad = no + prisoner = no + any_courtier = { + has_character_flag = teenage_infatuation + is_abroad = no + prisoner = no + NOT = { + spouse = { + character = PREV + } + } + has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + reverse_has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + } + } + save_event_target_as = teenage_infatuation_flag_64055 + } + } + + option = { + name = "EVTOPTA64055" #Ahh, how sweet... + event_target:teenage_infatuation_flag_64055 = { + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTB64055" #Maybe it will pass + if = { + limit = { + trait = chaste + } + prestige = -10 + } + event_target:teenage_infatuation_flag_64055 = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTC64055" #Separate them + event_target:teenage_infatuation_flag_64055 = { + random_courtier = { + limit = { + has_character_flag = teenage_infatuation + is_abroad = no + prisoner = no + NOT = { + spouse = { + character = PREV + } + } + has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + reverse_has_opinion_modifier = { who = PREV modifier = teenage_infatuation } + } + add_trait = stressed + remove_opinion = { who = PREV modifier = teenage_infatuation } + reverse_remove_opinion = { who = PREV modifier = teenage_infatuation } + clr_character_flag = teenage_infatuation + } + add_trait = stressed + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + clr_character_flag = teenage_infatuation + } + } +} + +# Loving a married woman is being quite a pain to your soul +character_event = { + id = 64060 + desc = EVTDESC64060 + picture = GFX_evt_bad_news + + min_age = 16 + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = no + + trigger = { + in_command = no + is_ill = no + OR = { + trait = kind + trait = just + trait = charitable + trait = honest + } + NOT = { trait = drunkard } + any_lover = { + is_female = yes + is_married = yes + prisoner = no + NOT = { trait = incapable } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = "EVTOPTA64060" #I will write a poem of my pain + if = { + limit = { + NOT = { + trait = humble + } + } + random = { + chance = 25 + + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + option = { + name = "EVTOPTB64060" #Wine will cure my pains + trigger = { + OR = { + NOT = { religion_group = latter_day_saints } + trait = cynical + } + } + if = { + limit = { + NOT = { + trait = drunkard + } + } + random = { + chance = 25 + + add_trait = drunkard + hidden_tooltip = { + character_event = { + id = 38286 #Notify Drunkard + } + } + } + } + } + option = { + name = "EVTOPTC64060" #I shall seek help from prayer + if = { + limit = { + NOT = { + trait = zealous + } + } + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + } + option = { + name = "EVTOPTD64060" #She's married, I should forget her + random_lover = { + limit = { + is_female = yes + is_married = yes + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +#This kind of unsatisfying relationship to a married woman is really becoming irksome to you +character_event = { + id = 64065 + desc = EVTDESC64065 + picture = GFX_evt_bad_news + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + + trigger = { + in_command = no + OR = { + trait = kind + trait = just + trait = charitable + trait = honest + } + any_lover = { + is_female = yes + is_married = yes + spouse = { + NOT = { character = ROOT } + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 1.5 + trait = lustful + } + } + + option = { + name = "EVTOPTA64065" #And thus it ends.. + random_lover = { + limit = { + is_female = yes + is_married = yes + spouse = { + NOT = { character = ROOT } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + option = { + name = "EVTOPTB64065" #Maybe it can still work... + if = { + limit = { + NOT = { + trait = stressed + } + } + random = { + chance = 10 + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } + random = { + chance = 25 + + random_lover = { + limit = { + is_female = yes + is_married = yes + spouse = { + NOT = { character = ROOT } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } + option = { + name = "EVTOPTC64065" #No, I will make it work! + if = { + limit = { + NOT = { + trait = stressed + } + } + random = { + chance = 25 + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } + } +} + +#Seeing someone else behind your spouse's back is becoming quite troublesome for you +character_event = { + id = 64070 + desc = EVTDESC64070 + picture = GFX_evt_lovers + border = GFX_event_normal_frame_intrigue + + capable_only = yes + prisoner = no + min_age = 16 + lacks_dlc = "Way of Life" + is_married = yes + + trigger = { + has_polygamy = no + in_command = no + + spouse = { + prisoner = no + in_command = no + NOT = { + trait = incapable + } + } + + any_lover = { + prisoner = no + NOR = { + trait = incapable + spouse = { + character = ROOT + } + consort = { + character = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 1.5 + trait = lustful + } + } + + option = { + name = "EVTOPTA64070" #It's time to end such affairs and settle down + any_lover = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + random = { + chance = 25 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + option = { + name = "EVTOPTB64070" #It will work out if I give it a bit more effort + random_list = { + 50 = { + } + 30 = { + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + 10 = { + any_lover = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + 10 = { + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + } + } + option = { + name = "EVTOPTC64070" #I don't care for my wife + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + random_list = { + 50 = { + } + 25 = { + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + 25 = { + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + } + } +} + +#You are having a special occasion with your lover in the near future, but your wife is insistent on alternate plans +character_event = { + id = 64075 + desc = EVTDESC64075 + picture = GFX_evt_lovers + + min_age = 16 + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + spouse = { + is_alive = yes + prisoner = no + is_abroad = no + NOT = { trait = incapable } + } + fertility = 0.5 + any_lover = { + is_female = yes + NOT = { + spouse = { + character = ROOT + } + } + is_pregnant = no + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.8 + trait = stressed + } + modifier = { + factor = 0.8 + trait = drunkard + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 1.5 + trait = lustful + } + } + + immediate = { + random_lover = { + limit = { + is_female = yes + NOT = { + spouse = { + character = ROOT + } + } + is_pregnant = no + prisoner = no + NOT = { trait = incapable } + NOT = { is_inaccessible_trigger = yes } + } + save_event_target_as = target_lover + } + } + + option = { + name = "EVTOPTA64075" #Ignore your wife, and go visit lover + random = { + chance = 25 + + spouse = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + } + } + if = { + limit = { + NOT = { + trait = deceitful + } + } + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + option = { + name = "EVTOPTB64075" #Arrange a ball and invite your lover + random_list = { + 80 = { + } + 10 = { + event_target:target_lover = { + impregnate_cuckoo = ROOT + hidden_tooltip = { + ROOT = { + character_event = { + id = 64101 + days = 2 + random = 2 + } + } + } + } + } + 10 = { + spouse = { + character_event = { + id = 64076 + tooltip = "EVTTOOLTIP64076" + } + } + } + } + } + option = { + name = "EVTOPTC64075" #Spend time with wife instead + random = { + chance = 50 + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } +} + +#Spouse meets lover +character_event = { + id = 64076 + desc = EVTDESC64076 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64076" + opinion = { + modifier = opinion_hate + who = ROOT + years = 10 + } + FROM = { + character_event = { + id = 64077 + tooltip = "EVTTOOLTIP64077" + } + } + } +} + +#Spouse hates you +character_event = { + id = 64077 + desc = "EVTDESC64077" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64077" + reverse_opinion = { + modifier = opinion_hate + who = FROM + years = 10 + } + } +} + +#Your wife has retired to the convent for a short while +character_event = { + id = 64080 + desc = EVTDESC64080 + picture = GFX_evt_monastery_nuns + + min_age = 16 + only_men = yes + capable_only = yes + only_rulers = yes + religion_group = christian + lacks_dlc = "Way of Life" + is_married = yes + + trigger = { + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + religion_group = christian + NOT = { trait = incapable } + } + fertility = 0.5 + any_lover = { + NOT = { + spouse = { + character = ROOT + } + } + NOT = { trait = incapable } + is_female = yes + prisoner = no + is_pregnant = no + fertility = 0.5 + NOT = { + age = 40 + } + } + } + + mean_time_to_happen = { + months = 120 + } + + immediate = { + random_lover = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + NOT = { trait = incapable } + is_female = yes + prisoner = no + is_pregnant = no + fertility = 0.5 + NOT = { + age = 40 + } + } + save_event_target_as = target_lover + } + + } + + option = { + name = "EVTOPTA64080" #Perfect occasion to spend time with your lover + random = { + chance = 25 + if = { + limit = { NOT = { trait = lustful } } + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + random = { + chance = 50 + + piety = -10 + event_target:target_lover = { + impregnate_cuckoo = ROOT + hidden_tooltip = { + ROOT = { + character_event = { + id = 64101 + days = 2 + random = 2 + } + } + } + } + } + } + option = { + name = "EVTOPTB64080" #Be discreet about it + random = { + chance = 25 + if = { + limit = { NOT = { trait = deceitful } } + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + random = { + chance = 20 + + piety = -10 + event_target:target_lover = { + impregnate_cuckoo = ROOT + hidden_tooltip = { + ROOT = { + character_event = { + id = 64101 + days = 2 + random = 2 + } + } + } + } + } + } + option = { + name = "EVTOPTC64080" #Only see your lover on friendship terms + random_list = { + 50 = { + } + 25 = { + if = { + limit = { NOR = { trait = craven trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + 25 = { + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } + } + option = { + name = "EVTOPTD64080" #Spend the time working instead + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +#Two adult character are lovers and neither are married +character_event = { + id = 64085 + desc = EVTDESC64085 + picture = GFX_evt_lovers + + min_age = 16 + max_age = 40 + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + + trigger = { + is_married = no + is_ruler = no + has_lover = yes + is_consort = no + NOT = { num_of_lovers = 2 } + OR = { + trait = ambitious + trait = gregarious + trait = proud + } + any_lover = { + is_ruler = no + is_married = no + is_consort = no + prisoner = no + NOT = { trait = incapable } + can_marry = ROOT + ROOT = { + can_marry = PREV + } + NOT = { num_of_lovers = 2 } + } + } + + mean_time_to_happen = { + months = 120 + } + + option = { + name = "EVTOPTA64085" #They elope to get married + piety = 5 + random_lover = { + limit = { + is_ruler = no + is_married = no + is_consort = no + prisoner = no + NOT = { trait = incapable } + can_marry = ROOT + ROOT = { + can_marry = PREV + } + NOT = { num_of_lovers = 2 } + } + add_spouse = ROOT + } + liege = { + character_event = { + id = 64086 + tooltip = "EVTTOOLTIP64086" + } + } + } +} + +#Liege is notified +character_event = { + id = 64086 + desc = "EVTDESC64086" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64086" + random_list = { + 75 = { + FROM = { + character_event = { + id = 64087 + tooltip = "EVTTOOLTIP64087" + } + spouse = { + character_event = { + id = 64087 + tooltip = "EVTTOOLTIP64087" + } + } + } + } + 25 = { + FROM = { + character_event = { + id = 64088 + tooltip = "EVTTOOLTIP64088" + } + spouse = { + character_event = { + id = 64088 + tooltip = "EVTTOOLTIP64088" + } + } + } + } + } + } + option = { + name = "EVTOPTB64086" + prestige = -10 + } +} + +#Imprisoned! +character_event = { + id = 64087 + desc = EVTDESC64087 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + immediate = { + imprison = FROM + } + + option = { + name = "EVTOPTA64087" + opinion = { + modifier = opinion_angry + who = FROM + years = 10 + } + } +} + +#Banished! +character_event = { + id = 64088 + desc = "EVTDESC64088" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA64088" + banish = yes + opinion = { + modifier = opinion_angry + who = FROM + years = 10 + } + } +} + +#Childless marriage +character_event = { + id = 64090 + desc = EVTDESC64090 + picture = GFX_evt_lovers + + min_age = 25 + max_age = 40 + only_rulers = yes + capable_only = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + NOT = { + num_of_children = 1 + } + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + any_lover = { character = ROOT } + + NOT = { + num_of_children = 1 + } + } + } + + mean_time_to_happen = { + months = 120 + + modifier = { + factor = 0.5 + NOT = { + fertility = 0.4 + } + } + } + + option = { + name = "EVTOPTA64090" #Ask for God's help with our childless marriage + #trigger = { + # NOT = { religion = buddhist } + # NOT = { religion = jain } + # NOT = { religion_group = muslim } + #} + random_list = { + 70 = { + } + 20 = { + spouse = { + fertility = 0.2 + } + } + 10 = { + spouse = { + fertility = 0.1 + } + } + } + } + option = { + name = "EVTOPTB64090" #Meet with X every night + add_trait = stressed + random_list = { + 40 = { + } + 30 = { + spouse = { + fertility = 0.2 + } + } + 20 = { + spouse = { + fertility = 0.1 + } + } + 10 = { + health = -2 + } + } + } + #option = { + # name = "EVTOPTC64090" #Ask for Allah's help with our childless marriage + # trigger = { + # religion_group = muslim + # } + # random_list = { + # 70 = { + # } + # 20 = { + # spouse = { + # fertility = 0.2 + # } + # } + # 10 = { + # spouse = { + # fertility = 0.1 + # } + # } + # } + #} +} + +#Your lover is eager to comfort you after you have had a particularly fiery row with your wife +character_event = { + id = 64100 + desc = EVTDESC64100 + picture = GFX_evt_lovers + + min_age = 16 + capable_only = yes + only_rulers = yes + only_men = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + is_inaccessible_trigger = no + in_command = no + trait = stressed + fertility = 0.4 + any_lover = { + is_inaccessible_trigger = no + prisoner = no + NOT = { trait = incapable } + is_pregnant = no + is_female = yes + fertility = 0.5 + NOT = { + age = 40 + } + NOT = { + spouse = { + character = ROOT + } + } + } + spouse = { + has_opinion_modifier = { who = ROOT modifier = opinion_dislike } + is_ruler = no + } + } + + mean_time_to_happen = { + months = 120 + } + + immediate = { + random_lover = { + limit = { + is_inaccessible_trigger = no + prisoner = no + NOT = { trait = incapable } + is_pregnant = no + is_female = yes + fertility = 0.5 + NOT = { + age = 40 + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = target_lover + } + } + + option = { + name = "EVTOPTA64100" #Retire to the country manor with her for a while + remove_trait = stressed + event_target:target_lover = { + random = { + chance = 25 + + impregnate_cuckoo = ROOT + hidden_tooltip = { + ROOT = { + character_event = { + id = 64101 + days = 2 + random = 2 + } + } + } + } + } + } + option = { + name = "EVTOPTB64100" #I can have her in my castle + random_list = { + 50 = { + remove_trait = stressed + } + 25 = { + event_target:target_lover = { + impregnate_cuckoo = ROOT + } + hidden_tooltip = { + ROOT = { + character_event = { + id = 64101 + days = 2 + random = 2 + } + } + } + } + 25 = { + spouse = { + character_event = { + id = 64102 + tooltip = "EVTTOOLTIP64102" + } + } + } + } + } + option = { + name = "EVTOPTC64100" #I don't need comfort + random_list = { + 50 = { + } + 25 = { + if = { + limit = { NOT = { trait = proud } } + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + 25 = { + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } + } +} + +#I am going to be a father +character_event = { + id = 64101 + desc = "EVTDESC64101" + picture = GFX_evt_pregnancy + + is_triggered_only = yes + + option = { + name = "EVTOPTA64101" + prestige = 5 + } +} + +#My husband is unfaithful! +character_event = { + id = 64102 + desc = "EVTDESC64102" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64102" + add_trait = wroth + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } +} + +#FALLOUT! +character_event = { + id = 64105 + desc = "EVTDESC64105" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA64105" + spouse = { + add_rival = ROOT + ROOT = { + opinion = { + modifier = grievously_offended + who = PREV + years = 10 + } + } + } + } +} + +#Your spouse has grown suspicious of your behaviour +character_event = { + id = 64110 + desc = EVTDESC64110 + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + spouse = { + NOT = { trait = incapable } + is_alive = yes + is_abroad = no + prisoner = no + } + any_lover = { + NOT = { trait = incapable } + prisoner = no + ROOT = { NOT = { is_consort = PREV } } + NOT = { + spouse = { + character = ROOT + } + } + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA64110" #Tell her it's none of her business + random_list = { + 50 = { + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + 25 = { + if = { + limit = { NOT = { trait = proud } } + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + 25 = { + } + } + } + option = { + name = "EVTOPTB64110" #Tell her you do important things + random_list = { + 50 = { + } + 25 = { + if = { + limit = { NOT = { trait = deceitful } } + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + 25 = { + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + } + } + option = { + name = "EVTOPTC64110" #Make empty promises to her about spending more time + random_list = { + 70 = { + } + 20 = { + if = { + limit = { NOT = { trait = deceitful } } + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + 10 = { + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + } + } + option = { + name = "EVTOPTD64110" #Spend more time at home as she wishes + random_list = { + 50 = { + } + 25 = { + if = { + limit = { NOT = { trait = humble } } + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + 25 = { + random_lover = { + limit = { + NOT = { trait = incapable } + prisoner = no + ROOT = { NOT = { is_consort = PREV } } + NOT = { + spouse = { + character = ROOT + } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } + } +} + +#Lover thinks you love spouse more than him/her +character_event = { + id = 64115 + desc = EVTDESC64115 + picture = GFX_evt_quarrel + + min_age = 16 + prisoner = no + capable_only = yes + only_rulers = yes + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + NOT = { trait = incapable } + } + OR = { + is_female = no + AND = { + is_female = yes + is_pregnant = no + } + } + any_lover = { + prisoner = no + is_abroad = no + NOT = { trait = incapable } + NOT = { + spouse = { + character = ROOT + } + } + OR = { + is_female = no + AND = { + is_female = yes + is_pregnant = no + } + } + } + } + + mean_time_to_happen = { + months = 360 + } + + immediate = { + random_lover = { + limit = { + prisoner = no + is_abroad = no + NOT = { trait = incapable } + NOT = { + spouse = { + character = ROOT + } + } + OR = { + is_female = no + AND = { + is_female = yes + is_pregnant = no + } + } + } + save_event_target_as = target_lover + } + } + + option = { + name = "EVTOPTA64115" #Buy him/her an expensive gift to prove your love + scaled_wealth = -0.2 + random = { + chance = 25 + + + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + } + option = { + name = "EVTOPTB64115" #Take him/her to your country manor for some quality time + if = { + limit = { NOT = { trait = lustful } } + random_list = { + 75 = { + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + 25 = { + } + } + } + random = { + chance = 50 + + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + } + option = { + name = "EVTOPTC64115" #Assure him/her of him/her importance by words only + random_list = { + 50 = { + } + 30 = { + if = { + limit = { NOT = { trait = slothful } } + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + 10 = { + spouse = { + character_event = { + id = 64105 + tooltip = "EVTTOOLTIP64105" #FALLOUT! + } + } + } + 10 = { + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } + } + } + option = { + name = "EVTOPTD64115" #Tell him/her that s/he is absolutely correct + random_list = { + 50 = { + if = { + limit = { NOT = { trait = cruel } } + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + } + 50 = { + if = { + limit = { NOT = { trait = honest } } + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + } + event_target:target_lover = { + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + } +} + +# Your spouse has made your adulterous affair public! +character_event = { + id = 64120 + desc = EVTDESC64120 + picture = GFX_evt_scandal + + min_age = 16 + capable_only = yes + only_rulers = yes + prisoner = no + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + has_lover = yes + any_lover = { + NOT = { + spouse = { + character = ROOT + } + } + } + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + NOT = { + has_character_flag = adulterous_affair_public + } + NOT = { + opinion = { who = ROOT value = -20 } + } + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA64120" #Disown affair + spouse = { + set_character_flag = adulterous_affair_public + } + prestige = -25 + any_lover = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + } + character_event = { + id = 64046 + tooltip = "EVTTOOLTIP64046" + } + } + random_list = { + 50 = { + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + 50 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + option = { + name = "EVTOPTB64120" #Disregard her talks + spouse = { + set_character_flag = adulterous_affair_public + } + piety = -25 + random = { + chance = 25 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } +} + +#Your wife has humiliated you publicly by too open association with her lover +character_event = { + id = 64125 + desc = EVTDESC64125 + picture = GFX_evt_scandal + + min_age = 16 + only_men = yes + capable_only = yes + prisoner = no + only_rulers = yes + lacks_dlc = "Way of Life" + war = no + is_married = yes + + trigger = { + in_command = no + has_lover = no + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + is_ruler = no + has_lover = yes + any_lover = { + NOT = { character = ROOT } + } + } + } + + mean_time_to_happen = { + months = 360 + } + + option = { + name = "EVTOPTA64125" #Bear it stoically + prestige = -50 + random = { + chance = 10 + if = { limit = { NOT = { trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } + option = { + name = "EVTOPTB64125" #Arrest him + trigger = { + spouse = { + any_lover = { + NOT = { character = ROOT } + is_liege_or_above = ROOT + } + } + } + + prestige = -10 + spouse = { + random_lover = { + limit = { + NOT = { character = ROOT } + is_liege_or_above = ROOT + } + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 64126 + } + } + any_dynasty_member = { + limit = { + family = PREV + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + } + } + option = { + name = "EVTOPTC64125" #Arrest her + prestige = -20 + spouse = { + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 64127 + } + } + any_dynasty_member = { + limit = { + family = PREV + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + } + option = { + name = "EVTOPTD64125" #Arrest both of them + trigger = { + spouse = { + any_lover = { + NOT = { character = ROOT } + is_liege_or_above = ROOT + } + } + } + + prestige = -25 + spouse = { + random_lover = { + limit = { + NOT = { character = ROOT } + is_liege_or_above = ROOT + } + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 64126 + } + } + any_dynasty_member = { + limit = { + family = PREV + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 64127 + } + } + any_dynasty_member = { + limit = { + family = PREV + } + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + } + } +} + +#Wife's lover is imprisoned +character_event = { + id = 64126 + desc = "EVTDESC64126" + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = "EVTOPTA64126" + } +} + +#Wife is imprisoned +character_event = { + id = 64127 + desc = "EVTDESC64127" + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = "EVTOPTA64127" + } +} + +# Being married to someone you love is a blissful state +character_event = { + id = 64130 + desc = EVTDESC64130 + picture = GFX_evt_lovers + border = GFX_event_normal_frame_religion + + capable_only = yes + prisoner = no + min_age = 16 + is_married = yes + + trigger = { + OR = { + trait = stressed + trait = depressed + trait = ill + } + any_spouse = { + is_lover = ROOT + prisoner = no + NOT = { trait = incapable } + in_command = no + } + in_command = no + NOT = { + has_character_modifier = blissful_timer + } + } + + mean_time_to_happen = { + months = 240 + + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + OR = { + has_focus = focus_family + any_spouse = { + is_lover = ROOT + has_focus = focus_family + } + } + } + modifier = { + factor = 0.75 + trait = charitable + } + modifier = { + factor = 1.25 + trait = wroth + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 1.5 + trait = arbitrary + } + modifier = { + factor = 5.0 + trait = cruel + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = blissful_timer + duration = 1825 # 5 years + hidden = yes + } + } + } + + option = { + name = EVTOPTA64130 + trigger = { + trait = stressed + } + remove_trait = stressed + } + + option = { + name = EVTOPTB64130 + trigger = { + trait = ill + } + remove_trait = ill + } + + option = { + name = EVTOPTC64130 + trigger = { + trait = depressed + } + remove_trait = depressed + } + +} + +#You want to give a special surprise to your loved one, what shall it be? +character_event = { + id = 64135 + desc = "EVTDESC64135" + picture = GFX_evt_market + + min_age = 16 + capable_only = yes + only_rulers = yes + lacks_dlc = "Way of Life" + war = no + + trigger = { + in_command = no + is_married = no + has_lover = yes + any_lover = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 600 + + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 1.5 + trait = wroth + } + modifier = { + factor = 1.5 + trait = cruel + } + modifier = { + factor = 2.5 + trait = depressed + } + } + + option = { + name = "EVTOPTA64135" #I shall craft a love poem + random_lover = { + limit = { + is_abroad = no + prisoner = no + is_alive = yes + } + random = { + chance = 50 + + add_character_modifier = { + name = love_poem + duration = 360 + } + } + } + } + option = { + name = "EVTOPTB64135" + random_lover = { + limit = { + is_abroad = no + prisoner = no + is_alive = yes + } + add_character_modifier = { + name = beautiful_flower + duration = 360 + } + } + } + option = { + name = "EVTOPTC64135" + scaled_wealth = -0.05 + random_lover = { + limit = { + is_abroad = no + prisoner = no + is_alive = yes + } + add_character_modifier = { + name = precious_item + duration = 360 + } + } + } +} + +#Being separated from your love by the needs of war is heart-aching +character_event = { + id = 64140 + desc = EVTDESC64140 + picture = GFX_evt_bad_news + + capable_only = yes + prisoner = no + only_men = yes + min_age = 16 + lacks_dlc = "Way of Life" + war = yes + + trigger = { + in_command = yes + has_lover = yes + NOT = { num_of_lovers = 2 } + NOT = { + trait = honest + } + NOT = { + trait = chaste + } + NOT = { + trait = deceitful + } + NOT = { + num_of_traits = 7 + } + } + + mean_time_to_happen = { + months = 1200 + + modifier = { + factor = 0.5 + trait = stressed + } + modifier = { + factor = 0.5 + trait = depressed + } + } + + option = { + name = "EVTOPTA64140" + random = { + chance = 25 + + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + option = { + name = "EVTOPTB64140" + random_list = { + 50 = { + } + 25 = { + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + 25 = { + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + } + option = { + name = "EVTOPTC64140" + add_trait = deceitful + random = { + chance = 25 + + character_event = { + id = 64045 + tooltip = "EVTTOOLTIP64045" + } + } + } +} diff --git a/After the End/events/married_life_events.txt b/After the End/events/married_life_events.txt new file mode 100644 index 000000000..9822d02f6 --- /dev/null +++ b/After the End/events/married_life_events.txt @@ -0,0 +1,5336 @@ +############################################# +# +# Events for Married Life +# +# Event ID 30000-30999 is reserved +# +############################################# +# +# Written by Sara Wendel-Örtqvist + +#Unhappy marriage, separate bedchambers +character_event = { + id = 30000 + desc = "EVTDESC30000" + picture = "GFX_evt_quarrel" + + min_age = 20 + max_age = 100 + capable_only = yes + prisoner = no + is_married = yes + + is_triggered_only = yes + + trigger = { + is_pregnant = no + spouse = { + NOT = { trait = incapable } + is_pregnant = no + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + opinion = { who = ROOT value = -20 } + } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 1.25 + trait = stressed + } + modifier = { + factor = 1.25 + trait = depressed + } + modifier = { + factor = 1.5 + trait = lunatic + } + modifier = { + factor = 1.5 + trait = possessed + } + modifier = { + factor = 1.1 + is_ill = yes + } + modifier = { + factor = 1.25 + trait = pneumonic + } + modifier = { + factor = 1.25 + trait = syphilitic + } + modifier = { + factor = 2.0 + trait = leper + } + modifier = { + factor = 1.15 + trait = wounded + } + modifier = { + factor = 1.25 + is_maimed_trigger = yes + } + modifier = { + factor = 2.0 + trait = infirm + } + modifier = { + factor = 3.0 + trait = incapable + } + modifier = { + factor = 1.1 + trait = drunkard + } + modifier = { + factor = 1.1 + trait = has_tuberculosis + } + modifier = { + factor = 1.1 + trait = has_typhoid_fever + } + modifier = { + factor = 1.5 + trait = has_typhus + } + modifier = { + factor = 1.5 + trait = has_bubonic_plague + } + modifier = { + factor = 1.1 + trait = has_measles + } + modifier = { + factor = 1.1 + trait = has_small_pox + } + } + + option = { + name = "EVTOPTA30000" #Separate bedchambers? Sure! + prestige = 2 + spouse = { + opinion = { + modifier = insulted + who = ROOT + } + } + } + + option = { + name = "EVTOPTB30000" #Let us rekindle our love! + piety = 2 + spouse = { + opinion = { + modifier = opinion_rekindle_love + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTC30000" #Whatever you say, honey + prestige = -5 + piety = 5 + spouse = { + opinion = { + modifier = opinion_whipped + who = ROOT + years = 1 + } + } + } +} + +#Try to divorce spouse +character_event = { + id = 30001 + desc = "EVTDESC30001" + picture = "GFX_evt_quarrel" + + max_age = 60 + only_men = yes + capable_only = yes + prisoner = no + religion = catholic + is_married = yes + + is_triggered_only = yes + + trigger = { + num_of_children = 1 + any_child = { + is_primary_heir = yes + NOT = { + trait = bastard + } + } + spouse = { + NOT = { trait = incapable } + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + num_of_children = 1 + } + NOT = { + opinion = { who = ROOT value = -50 } + } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA30001" #I don't ever want to see you again! + spouse = { + random = { + chance = 25 + character_event = { + id = 30002 + tooltip = "EVTTOOLTIP30002" + } + } + } + remove_spouse = spouse + prestige = -5 + } + option = { + name = "EVTOPTB30001" #Let us try this one more time + piety = 5 + spouse = { + reverse_opinion = { + modifier = opinion_rekindle_love + who = ROOT + years = 2 + } + } + } +} + +#Protests against divorce +character_event = { + id = 30002 + desc = "EVTDESC30002" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30002" + FROM = { + character_event = { + id = 30003 + days = 14 + tooltip = "EVTTOOLTIP30003" + } + } + } +} + +#The head of religion interferes +character_event = { + id = 30003 + desc = "EVTDESC30003" + picture = "GFX_evt_scandal" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30003" #If I have to.. + add_spouse = FROM + } + + option = { + name = "EVTOPTB30003" #Never! + add_character_modifier = { + name = unrighteous_spouse + duration = -1 + } + religion_head = { + opinion = { + modifier = no_annulment + who = FROM + years = 5 + } + } + } +} + +#Poisoning stepchildren: Marie of Brabant, Sikelgaita +character_event = { + id = 30004 + desc = "EVTDESC30004" + picture = "GFX_evt_shadow" + + only_women = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = ambitious + trait = envious + spouse = { + NOT = { trait = incapable } + is_female = no + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + tier = king + } + NOT = { + tier = emperor + } + any_child = { + is_primary_heir = yes + is_female = no + } + } + NOT = { + any_child = { + is_primary_heir = yes + } + } + any_child = { + is_pretender = yes + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = wroth + } + + modifier = { + factor = 0.5 + trait = kind + } + } + + option = { + name = "EVTOPTA30004" #Poison! + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + spouse = { + random_child = { + limit = { + is_primary_heir = yes + is_female = no + } + random_list = { + 33 = { + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + set_character_flag = disease_not_serious + add_trait = vomiting + character_event = { id = RIP.11005 days = 10 random = 30 } + } + ROOT = { + random_list = { + 50 = { + prestige = 15 + } + 25 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + 25 = { + character_event = { + id = 30006 + days = 7 + tooltip = "EVTTOOLTIP30006" + } + } + } + } + } + 33 = { + add_trait = infirm + ROOT = { + random_list = { + 20 = { + prestige = 15 + } + 40 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + 40 = { + character_event = { + id = 30006 + days = 7 + tooltip = "EVTTOOLTIP30006" + } + } + } + } + } + 33 = { + death = { + death_reason = death_murder_poison + killer = ROOT + } + ROOT = { + random_list = { + 10 = { + prestige = 15 + } + 45 = { + spouse = { + character_event = { #Husband accuses spouse of heir's death + id = 30007 + days = 14 + tooltip = "EVTTOOLTIP30007" + } + } + } + 45 = { + character_event = { #Courtier accuses spouse of heir's death + id = 30008 + days = 7 + tooltip = "EVTTOOLTIP30008" + } + } + } + } + } + } + } + } + } + + option = { + name = "EVTOPTB30004" #Don't do anything + piety = 20 + } +} + +#Spouse accuses woman of poisoning primary_heir +character_event = { + id = 30005 + desc = "EVTDESC30005" + picture = "GFX_evt_shadow" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30005" #Imprison! + spouse = { + character_event = { + id = 30009 + tooltip = "EVTTOOLTIP30009" + } + } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTB30005" #Execute! + spouse = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + + option = { + name = "EVTOPTC30005" #Pardon + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + character_event = { #I was pardoned! + id = 30010 + days = 10 + tooltip = "EVTTOOLTIP3010" + } + } + } +} + +#Courtier accuses woman of poisoning primary_heir +character_event = { + id = 30006 + desc = "EVTDESC30006" + picture = "GFX_evt_shadow" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30006" #Snitch + random_list = { + 50 = { + random_courtier = { + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + 50 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + } + } + + option = { + name = "EVTOPTB30006" #Bribe courtier + scaled_wealth = -0.25 + random_list = { + 80 = { + random_courtier = { + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + 20 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + } + } + + option = { + name = "EVTOPTC30006" #Poison courtier + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 50 = { + random_courtier = { + death = { + death_reason = death_murder_unknown_poison + killer = ROOT + } + } + } + 50 = { + random_courtier = { + add_maimed_trait_effect = yes + + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + spouse = { + character_event = { + id = 30009 + days = 14 + tooltip = "EVTTOOLTIP30009" + } + } + } + } + } +} + +#Husband accuses spouse of poisoning and murdering primary_heir +character_event = { + id = 30007 + desc = "EVTDESC30007" + picture = "GFX_evt_shadow" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30007" #Imprison! + spouse = { + character_event = { + id = 30009 + tooltip = "EVTTOOLTIP30009" + } + } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTB30007" #Execute! + spouse = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + + option = { + name = "EVTOPTC30007" #Pardon + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + character_event = { #I was pardoned! + id = 30010 + days = 10 + tooltip = "EVTTOOLTIP30010" + } + } + } +} + +#Courtier accuses woman of poisoning and murdering primary_heir +character_event = { + id = 30008 + desc = "EVTDESC30008" + picture = "GFX_evt_emissary" + + is_triggered_only = yes + + immediate = { + random_courtier = { + save_event_target_as = target_courtier + } + } + + option = { + name = "EVTOPTA30006" #Snitch + random_list = { + 50 = { + event_target:target_courtier = { + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + 50 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + } + } + + option = { + name = "EVTOPTB30006" #Bribe courtier + scaled_wealth = -0.25 + random_list = { + 70 = { + event_target:target_courtier = { + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + 30 = { + spouse = { + character_event = { + id = 30005 + days = 14 + tooltip = "EVTTOOLTIP30005" + } + } + } + } + } + + option = { + name = "EVTOPTC30006" #Poison courtier + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_list = { + 50 = { + event_target:target_courtier = { + death = { + death_reason = death_murder_unknown_poison + killer = ROOT + } + } + } + 50 = { + event_target:target_courtier = { + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + hidden_tooltip = { character_event = { id = 38290 } } + } + if = { + limit = { + has_dlc = "Reapers" + } + add_trait = abdominal_pain + set_character_flag = disease_not_serious + hidden_tooltip = { character_event = { id = RIP.11010 days = 10 random = 30 } } + } + + opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + spouse = { + character_event = { + id = 30011 + days = 14 + tooltip = "EVTTOOLTIP30011" + } + } + } + } + } +} + +#Poisonous woman is imprisoned +character_event = { + id = 30009 + desc = "EVTDESC30009" + picture = "GFX_evt_into_the_dungeon" + + is_triggered_only = yes + + immediate = { + imprison = FROM + } + + option = { + name = "EVTOPTA30009" #This is not how it should end! + } +} + +#Poisonous woman is pardoned +character_event = { + id = 30010 + desc = "EVTDESC30010" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30010" + prestige = -15 + piety = -10 + } +} + +#Spouse accuses woman of poisoning primary_heir and courtier +character_event = { + id = 30011 + desc = "EVTDESC30011" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30011" #Imprison! + ai_chance = { factor = 50 } + FROM = { + character_event = { + id = 30009 + tooltip = "EVTTOOLTIP30009" + } + } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTB30011" #Execute! + ai_chance = { factor = 20 } + FROM = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + + option = { + name = "EVTOPTC30011" #Pardon + ai_chance = { factor = 30 } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + FROM = { + character_event = { #I was pardoned! + id = 30010 + days = 10 + tooltip = "EVTTOOLTIP3010" + } + } + } +} + +#Accuses spouse of poisoning primary heir (unrelated to previous events) +character_event = { + id = 30020 + desc = "EVTDESC30020" + picture = "GFX_evt_quarrel" + + min_age = 20 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + any_child = { + is_primary_heir = yes + is_female = no + NOT = { + age = 16 + } + OR = { + is_ill = yes + is_maimed_trigger = yes + trait = infirm + } + } + OR = { + trait = paranoid + trait = cynical + trait = wroth + } + spouse = { + NOT = { trait = incapable } + prisoner = no + is_alive = yes + OR = { + trait = diligent + trait = deceitful + trait = ambitious + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = paranoid + } + + modifier = { + factor = 0.5 + trait = trusting + } + } + + option = { + name = "EVTOPTA30020" #Imprison! + spouse = { + character_event = { + id = 30009 + tooltip = "EVTTOOLTIP30009" + } + } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTB30020" #Execute! + spouse = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + + option = { + name = "EVTOPTC30020" #Pardon + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + spouse = { + character_event = { #I was pardoned! + id = 30010 + days = 10 + tooltip = "EVTTOOLTIP3010" + } + } + } +} + +#Spouse accuses spouse of poisoning her/him +character_event = { + id = 30021 + desc = "EVTDESC30021" + picture = "GFX_evt_quarrel" + + min_age = 20 + capable_only = yes + only_rulers = yes + prisoner = no + is_married = yes + + is_triggered_only = yes + + trigger = { + spouse = { + NOT = { trait = incapable } + is_ruler = no + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + opinion = { who = ROOT value = -30 } + } + } + OR = { + is_ill = yes + trait = infirm + trait = syphilitic + trait = paranoid + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = cynical + } + + modifier = { + factor = 0.5 + trait = trusting + } + } + + option = { + name = "EVTOPTA30021" #Imprison! + spouse = { + character_event = { + id = 30009 + tooltip = "EVTTOOLTIP30009" + } + } + spouse = { + reverse_opinion = { + modifier = opinion_poisonous_woman + who = ROOT + years = 5 + } + } + } + + option = { + name = "EVTOPTB30021" #Execute! + spouse = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + + option = { + name = "EVTOPTC30021" #Pardon + spouse = { + reverse_opinion = { + modifier = opinion_betrayed + who = ROOT + } + } + spouse = { + character_event = { #I was pardoned! + id = 30010 + days = 10 + tooltip = "EVTTOOLTIP3010" + } + } + } +} + +#Homosexual spouse +character_event = { + id = 30025 + desc = "EVTDESC30025" + picture = "GFX_evt_bad_news" + + only_women = yes + min_age = 20 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + OR = { + trait = ambitious + trait = diligent + trait = elusive_shadow + trait = intricate_webweaver + } + any_child = { + OR = { + mother = { + character = ROOT + } + father = { + character = ROOT + } + } + OR = { + is_primary_heir = yes + is_pretender = yes + } + } + spouse = { + NOT = { trait = incapable } + trait = homosexual + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = charismatic_negotiator + } + + modifier = { + factor = 0.5 + trait = content + } + } + + option = { + name = "EVTOPTA30025" + ai_chance = { factor = 100 } + piety = 15 + } + + option = { + name = "EVTOPTB30025" + spouse = { + character_event = { + id = 30026 + days = 14 + tooltip = "EVTTOOLTIP30026" + } + } + } + option = { + name = "EVTOPTC30025" + spouse = { + character_event = { + id = 30027 + days = 14 + tooltip = "EVTTOOLTIP30027" + } + } + } +} + +# Spouse spreads evil rumors +character_event = { + id = 30026 + desc = "EVTDESC30026" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30026" + FROM = { + reverse_opinion = { + modifier = opinion_betrayed + who = ROOT + years = 3 + } + character_event = { + id = 30029 + tooltip = "EVTTOOLTIP30029" + } + } + } +} + +# Spouse asks husband/wife to spend more time +character_event = { + id = 30027 + desc = "EVTDESC30027" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30027" #Yes + ai_chance = { + factor = 60 + + modifier = { + factor = 1.5 + FROM = { + reverse_opinion = { who = ROOT value = 20 } + } + } + } + FROM = { + set_character_flag = spouse_said_yes + character_event = { + id = 30028 + days = 14 + tooltip = "EVTTOOLTIPA30028" + } + } + } + + option = { + name = "EVTOPTB30027" #No + ai_chance = { + factor = 40 + + modifier = { + factor = 2 + FROM = { + NOT = { + reverse_opinion = { who = ROOT value = 20 } + } + } + } + } + FROM = { + set_character_flag = spouse_said_no + character_event = { + id = 30028 + days = 14 + tooltip = "EVTTOOLTIPB30028" + } + } + } +} + +# Spouse gets answer +character_event = { + id = 30028 + desc = "EVTDESC30028" + picture = "GFX_evt_bad_news" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30028" + trigger = { + has_character_flag = spouse_said_yes + } + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTB30028" + trigger = { + has_character_flag = spouse_said_no + } + FROM = { + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Spouse chastisies spouse about rumors +character_event = { + id = 30029 + desc = "EVTDESC30029" + picture = "GFX_evt_bad_news" + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + FROM = { + remove_opinion = { + modifier = opinion_betrayed + who = ROOT + } + } + } + } + + option = { + name = "EVTOPTA30029" + FROM = { + opinion = { + modifier = opinion_betrayed + who = ROOT + years = 3 + } + } + } +} + +#Spouse in prison: spouse is trying to free her/him +character_event = { + id = 30030 + desc = "EVTDESC30030" + picture = "GFX_evt_into_the_dungeon" + + min_age = 20 + capable_only = yes + prisoner = yes + is_married = yes + + is_triggered_only = yes + + trigger = { + any_spouse = { + reverse_opinion = { who = ROOT value = 20 } + opinion = { who = ROOT value = 20 } + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOR = { + trait = incapable + host = { character = PREV } + } + } + NOT = { has_character_flag = prisoner_spouse } + } + + weight_multiplier = { + days = 20 + } + + immediate = { + set_character_flag = prisoner_spouse #see if we can remove this + save_event_target_as = prisoner_spouse + random_spouse = { + limit = { + reverse_opinion = { who = ROOT value = 20 } + opinion = { who = ROOT value = 20 } + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOR = { + trait = incapable + host = { character = PREV } + } + } + save_event_target_as = outside_spouse + } + host = { save_event_target_as = prisoner_host } + } + + option = { + name = "EVTOPTA30030" + event_target:prisoner_host = { + character_event = { + id = 30031 + days = 5 + tooltip = "EVTTOOLTIP30031" + } + } + } + + option = { + name = "EVTOPTB30030" + event_target:outside_spouse = { + character_event = { + id = 30032 + days = 4 + tooltip = "EVTTOOLTIP30032" + } + } + } + + option = { + name = "EVTOPTC30030" + add_trait = depressed + } +} + +#Spouse in prison: host is contacted +character_event = { + id = 30031 + desc = "EVTDESC30031" + picture = "GFX_evt_into_the_dungeon" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30031" + prestige = 10 + custom_tooltip = { + text = "EVTTOOLTIP30033" + hidden_tooltip = { + event_target:outside_spouse = { + character_event = { + id = 30033 + days = 5 + } + } + event_target:prisoner_spouse = { + death = { + death_reason = death_execution_beheading + killer = ROOT + } + } + } + } + } + option = { + name = "EVTOPTB30031" #Release her/him + ai_chance = { factor = 10 } + scaled_wealth = 1.0 + event_target:prisoner_spouse = { + prisoner = no + character_event = { + id = 30034 + days = 1 + tooltip = "EVTTOOLTIP30034" + } + } + } + + option = { + name = "EVTOPTC30031" #Throw her/him into the dungeon + ai_chance = { factor = 80 } + event_target:outside_spouse = { + character_event = { + id = 30035 + days = 1 + tooltip = "EVTTOOLTIP30035" + } + } + } + + option = { + name = "EVTOPTD30031" #Warn spouse about freeing prisoner spouse + ai_chance = { factor = 10 } + event_target:outside_spouse = { + letter_event = { + id = 30036 + days = 1 + tooltip = "EVTTOOLTIP30036" + } + } + } +} + +#Spouse to spouse prisoner: Save me! +character_event = { + id = 30032 + desc = "EVTDESC30032" + picture = "GFX_evt_into_the_dungeon" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30032" + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + } + } + option = { + name = "EVTOPTB30032" + event_target:prisoner_host = { + character_event = { + id = 30037 + days = 2 + tooltip = "EVTTOOLTIPA30037" + } + } + } +} + +#Spouse is dead! +character_event = { + id = 30033 + desc = "EVTDESC30033" + picture = "GFX_evt_bad_news" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30033" + add_trait = depressed + event_target:prisoner_host = { + reverse_opinion = { + modifier = opinion_dishonorable_scum + who = ROOT + } + } + } + option = { + name = "EVTOPTB30033" + add_trait = wroth + event_target:prisoner_host = { + reverse_opinion = { + modifier = opinion_dishonorable_scum + who = ROOT + } + } + } + option = { + name = "EVTOPTC30033" + add_trait = envious + event_target:prisoner_host = { + reverse_opinion = { + modifier = opinion_dishonorable_scum + who = ROOT + } + } + } +} + +#Spouse is free! +character_event = { + id = 30034 + desc = "EVTDESC30034" + picture = "GFX_evt_lovers" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30034" + event_target:prisoner_host = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 1 + } + } + } +} + +#Spouse is thrown into dungeon! +character_event = { + id = 30035 + desc = "EVTDESC30035" + picture = "GFX_evt_into_the_dungeon" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30035" + add_character_modifier = { + name = the_dungeon + duration = 365 + } + } +} + +#Spouse is warned about consequences of freeing prisoner spouse +letter_event = { + id = 30036 + desc = "EVTDESC30036" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30036" + prestige = -10 + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + } + } + + option = { + name = "EVTOPTB30036" + event_target:prisoner_host = { + character_event = { + id = 30037 + days = 1 + tooltip = "EVTTOOLTIPB30037" + } + } + } +} + +#Host: is asked to release prisoner spouse +character_event = { + id = 30037 + desc = "EVTDESC30037" + picture = "GFX_evt_into_the_dungeon" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30037" #Fine! + event_target:prisoner_spouse = { + prisoner = no + character_event = { + id = 30034 + tooltip = "EVTTOOLTIP30034" + } + } + } + + option = { + name = "EVTOPTB30037" + event_target:prisoner_spouse = { + character_event = { + id = 30035 + tooltip = "EVTTOOLTIP30035" + } + } + } + option = { + name = "EVTOPTC30037" + event_target:prisoner_spouse = { + death = { + death_reason = death_execution_hanging + killer = ROOT + } + } + event_target:outside_spouse = { + character_event = { + id = 30033 + tooltip = "EVTTOOLTIP30033" + } + } + } +} + +#Annoying courtier +character_event = { + id = 30040 + desc = "EVTDESC30040" + picture = "GFX_evt_council" + border = GFX_event_normal_frame_intrigue + + only_women = yes + capable_only = yes + prisoner = no + is_married = yes + + is_triggered_only = yes + + trigger = { + NOT = { demesne_size = 1 } + NOT = { trait = humble } + NOT = { trait = kind } + spouse = { + NOT = { trait = incapable } + prisoner = no + is_alive = yes + higher_tier_than = BARON + is_councillor = no + is_abroad = no + at_location = ROOT + any_courtier = { + is_councillor = yes + NOT = { character = ROOT } + NOT = { opinion = { who = ROOT value = 30 } } + OR = { + trait = envious + trait = wroth + trait = paranoid + trait = deceitful + trait = arbitrary + trait = ambitious + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = wroth + } + + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 1.25 + trait = cruel + } + } + + immediate = { + spouse = { + random_courtier = { + limit = { + is_councillor = yes + NOT = { character = ROOT } + NOT = { opinion = { who = ROOT value = 30 } } + OR = { + trait = envious + trait = wroth + trait = paranoid + trait = deceitful + trait = arbitrary + trait = ambitious + } + } + save_event_target_as = annoying_courtier + } + } + } + + option = { + name = "EVTOPTA30040" + trigger = { + NOT = { personality_traits = 5 } + } + add_trait = humble + } + + option = { + name = "EVTOPTB30040" + ai_chance = { + factor = 1 + modifier = { + factor = 5 + trait = ambitious + } + } + spouse = { + character_event = { + id = 30041 + tooltip = "EVTTOOLTIP30040" + } + } + } + + option = { + name = "EVTOPTC30040" + event_target:annoying_courtier = { + opinion = { + modifier = opinion_mocked + who = ROOT + years = 2 + } + } + spouse = { + character_event = { + id = 30042 + days = 2 + tooltip = "EVTTOOLTIP30042" + } + } + } +} + +#Spouse might fire chancellor, etc +character_event = { + id = 30041 + desc = "EVTDESC30041" + picture = "GFX_evt_quarrel" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA30041" + event_target:annoying_courtier = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + remove_title = job_treasurer + remove_title = job_chancellor + remove_title = job_marshal + remove_title = job_spymaster + remove_title = job_spiritual + } + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + } + + option = { + name = "EVTOPTB30041" + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Spouse hears about punishment +character_event = { + id = 30042 + desc = "EVTDESC30042" + picture = "GFX_evt_quarrel" + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = "EVTOPTA30042" + event_target:annoying_courtier = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + spouse = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + + option = { + name = "EVTOPTB30042" + spouse = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + event_target:annoying_courtier = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Push courtier into river? +character_event = { + id = 30045 + desc = "EVTDESC30045" + picture = "GFX_evt_quarrel" + + only_women = yes + capable_only = yes + prisoner = no + is_married = yes + + is_triggered_only = yes + + trigger = { + spouse = { + NOT = { trait = incapable } + prisoner = no + is_alive = yes + any_courtier = { + is_female = no + is_councillor = yes + OR = { + trait = gregarious + trait = paranoid + trait = cynical + trait = zealous + } + } + } + OR = { + trait = wroth + trait = envious + trait = arbitrary + } + NOT = { is_inaccessible_trigger = yes } + } + + immediate = { + spouse = { + random_courtier = { + limit = { + is_female = no + is_councillor = yes + OR = { + trait = gregarious + trait = paranoid + trait = cynical + trait = zealous + } + } + save_event_target_as = chosen_courtier + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = shy + } + + modifier = { + factor = 0.5 + trait = gregarious + } + } + + option = { + name = "EVTOPTA30045" + random_list = { + 20 = { + character_event = { + id = 30046 + tooltip = "EVTTOOLTIP30046" + } + } + 80 = { + character_event = { + id = 30047 + tooltip = "EVTTOOLTIP30047" + } + } + } + } + + option = { + name = "EVTOPTB30045" + event_target:chosen_courtier = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + + option = { + name = "EVTOPTC30045" + piety = 10 + } +} + +#Courtier drowns +character_event = { + id = 30046 + desc = "EVTDESC30046" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30046" + event_target:chosen_courtier = { + death = { + death_reason = death_murder_unknown_drowning + killer = ROOT + } + } + spouse = { + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = the_apologetic + duration = 365 + } + } + + option = { + name = "EVTOPTB30046" + event_target:chosen_courtier = { + death = { + death_reason = death_murder_unknown_drowning + killer = ROOT + } + } + spouse = { + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = the_sincere + duration = 365 + } + } + + option = { + name = "EVTOPTC30046" + event_target:chosen_courtier = { + death = { + death_reason = death_murder_unknown_drowning + killer = ROOT + } + } + spouse = { + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = the_regretful + duration = 365 + } + } + option = { + name = "EVTOPTD30046" + event_target:chosen_courtier = { + death = { + death_reason = death_murder_unknown_drowning + killer = ROOT + } + } + spouse = { + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = the_cruel + duration = 365 + } + } +} + +#Courtier survives +character_event = { + id = 30047 + desc = "EVTDESC30047" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30047" + piety = -10 + } +} + +#Give spouse a gift: jewellery +character_event = { + id = 30050 + desc = "EVTDESC30050" + picture = "GFX_evt_quarrel" + + is_triggered_only = yes + + capable_only = yes + only_men = yes + prisoner = no + min_age = 20 + + trigger = { + spouse = { + NOT = { trait = incapable } + is_alive = yes + is_abroad = no + prisoner = no + at_location = ROOT + NOT = { + opinion = { who = ROOT value = 50 } + } + } + treasury = 50 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = kind + } + + modifier = { + factor = 0.5 + trait = greedy + } + modifier = { + factor = 0.5 + trait = wroth + } + } + + option = { + name = "EVTOPTA30050" + treasury = -5 + spouse = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTB30050" + treasury = -10 + spouse = { + opinion = { + modifier = opinion_infatuated + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTC30050" + trigger = { + has_lover = no + spouse = { has_lover = no } + } + treasury = -15 + spouse = { + add_lover = ROOT + } + } + option = { + name = "EVTOPTD30050" + prestige = -5 + spouse = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +#Give spouse a gift: horse +character_event = { + id = 30051 + desc = "EVTDESC30051" + picture = "GFX_evt_quarrel" + + only_men = yes + capable_only = yes + prisoner = no + min_age = 20 + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + spouse = { + NOT = { trait = incapable } + is_female = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + opinion = { who = ROOT value = 50 } + } + } + treasury = 50 + NOT = { + has_plot = plot_kill_spouse + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = slothful + } + } + + option = { + name = "EVTOPTA30051" + treasury = -5 + spouse = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTB30051" + treasury = -10 + spouse = { + opinion = { + modifier = opinion_infatuated + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTC30051" + treasury = -15 + trigger = { + has_lover = no + spouse = { has_lover = no } + } + spouse = { + add_lover = ROOT + } + } + option = { + name = "EVTOPTD30051" + spouse = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +#Give spouse a gift: falcon +character_event = { + id = 30052 + desc = "EVTDESC30052" + picture = "GFX_evt_falconing" + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + NOT = { religion = jain } + spouse = { + NOT = { trait = incapable } + NOT = { religion = jain } + is_female = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + opinion = { who = ROOT value = 50 } + } + NOT = { + trait = craven + } + } + treasury = 70 + NOT = { + has_plot = plot_kill_spouse + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = charitable + } + + modifier = { + factor = 0.5 + trait = wroth + } + } + + option = { + name = "EVTOPTA30052" + treasury = -5 + spouse = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTB30052" + treasury = -10 + spouse = { + opinion = { + modifier = opinion_infatuated + who = ROOT + years = 2 + } + } + } + option = { + name = "EVTOPTC30052" + spouse = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +# Wife offers advice: Diplomacy +character_event = { + id = 30055 + desc = "EVTDESC30055" + picture = GFX_evt_council + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + is_councillor = no + job_chancellor = { + always = yes + } + NOT = { + diplomacy = 8 + } + capital_scope = { + NOT = { + has_province_modifier = diplomacy_advice + } + } + spouse = { + NOT = { trait = incapable } + NOT = { has_job_title = job_chancellor } + diplomacy = 10 + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + is_dumb_trigger = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_denied_advice } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + spouse = { trait = diligent } + } + modifier = { + factor = 0.5 + spouse = { trait = content } + } + } + + option = { + name = "EVTOPTA30055" + random_demesne_province = { + limit = { + is_capital = yes + } + add_province_modifier = { + name = diplomacy_advice + duration = 1825 + } + } + random_list = { + 20 = { + change_diplomacy = 1 + } + 80 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + + option = { + name = "EVTOPTB30055" + prestige = 10 + spouse = { + opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 2 + } + } + } +} + +# Wife offers advice: Martial +character_event = { + id = 30056 + desc = "EVTDESC30056" + picture = GFX_evt_council + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + is_councillor = no + job_marshal = { + always = yes + } + NOT = { + martial = 8 + } + capital_scope = { + NOT = { + has_province_modifier = martial_advice + } + } + spouse = { + NOT = { trait = incapable } + NOT = { has_job_title = job_marshal } + martial = 10 + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + is_dumb_trigger = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_denied_advice } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + spouse = { trait = diligent } + } + modifier = { + factor = 0.5 + spouse = { trait = content } + } + } + + option = { + name = "EVTOPTA30056" + random_demesne_province = { + limit = { + is_capital = yes + } + add_province_modifier = { + name = martial_advice + duration = 1825 + } + } + random_list = { + 20 = { + change_martial = 1 + } + 80 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + + option = { + name = "EVTOPTB30056" + prestige = 10 + spouse = { + opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 2 + } + } + } +} + +# Wife offers advice: Stewardship +character_event = { + id = 30057 + desc = "EVTDESC30057" + picture = GFX_evt_council + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + is_councillor = no + job_treasurer = { + always = yes + } + NOT = { + stewardship = 8 + } + capital_scope = { + NOT = { + has_province_modifier = stewardship_advice + } + } + spouse = { + NOT = { trait = incapable } + NOT = { has_job_title = job_treasurer } + stewardship = 10 + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + is_dumb_trigger = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_denied_advice } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + spouse = { trait = diligent } + } + modifier = { + factor = 0.5 + spouse = { trait = content } + } + } + + option = { + name = "EVTOPTA30057" + random_demesne_province = { + limit = { + is_capital = yes + } + add_province_modifier = { + name = stewardship_advice + duration = 1825 + } + } + random_list = { + 20 = { + change_stewardship = 1 + } + 80 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + + option = { + name = "EVTOPTB30057" + prestige = 10 + spouse = { + opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 2 + } + } + } +} + +# Wife offers advice: Intrigue +character_event = { + id = 30058 + desc = "EVTDESC30058" + picture = GFX_evt_council + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + is_councillor = no + job_spymaster = { + always = yes + } + NOT = { + intrigue = 8 + } + NOT = { + has_character_modifier = intrigue_advice + } + spouse = { + NOT = { trait = incapable } + NOT = { has_job_title = job_spymaster } + intrigue = 10 + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + is_dumb_trigger = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_denied_advice } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.5 + spouse = { trait = diligent } + } + modifier = { + factor = 0.5 + spouse = { trait = content } + } + + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = trusting + } + } + + option = { + name = "EVTOPTA30058" + add_character_modifier = { + name = intrigue_advice + duration = 1825 + } + random_list = { + 20 = { + change_intrigue = 1 + } + 80 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + } + + option = { + name = "EVTOPTB30058" + prestige = 10 + spouse = { + opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 2 + } + } + } +} + +### Wife offers advice: Learning ### +character_event = { + id = 30059 + desc = "EVTDESC30059" + picture = GFX_evt_council + + min_age = 20 + only_men = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + is_councillor = no + job_spiritual = { + always = yes + } + NOT = { + learning = 8 + } + NOT = { + has_character_modifier = learning_advice + } + #NOT = { + # religion_group = muslim + #} + spouse = { + NOT = { trait = incapable } + NOT = { has_job_title = job_spiritual } + learning = 10 + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + is_dumb_trigger = no + NOT = { + has_opinion_modifier = { who = ROOT modifier = opinion_denied_advice } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + spouse = { trait = diligent } + } + modifier = { + factor = 0.5 + spouse = { trait = content } + } + } + + option = { + name = "EVTOPTA30059" + add_character_modifier = { + name = learning_advice + duration = 1825 + } + random_list = { + 20 = { + change_learning = 1 + } + 80 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + } + + option = { + name = "EVTOPTB30059" + prestige = 10 + spouse = { + opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 2 + } + } + } +} + +### Wife suggests new councillors ### + +# Wife suggests new Chancellor: Start +character_event = { + id = 30060 + desc = "EVTDESC30060" + picture = GFX_evt_council + + min_age = 20 + only_rulers = no + only_women = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + independent = no + NOT = { + demesne_size = 1 + } + any_courtier = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + diplomacy = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + OR = { + trait = ambitious + trait = diligent + trait = charitable + } + spouse = { + NOT = { trait = incapable } + is_ruler = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + job_chancellor = { + NOT = { + character = ROOT + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + spouse = { + trait = wroth + } + } + modifier = { + factor = 2 + spouse = { + trait = trusting + } + } + } + + option = { + name = "EVTOPTA30060" + random_courtier = { + limit = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + diplomacy = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = new_chancellor + } + spouse = { + character_event = { + id = 30061 + tooltip = "EVTTOOLTIP30061" + } + } + } +} + +#Wife suggests new Chancellor: Husband decides +character_event = { + id = 30061 + desc = "EVTDESC30061" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30061" + job_chancellor = { + opinion = { + modifier = opinion_revoked_chancellor_title + who = ROOT + years = 5 + } + } + event_target:new_chancellor = { + give_job_title = job_chancellor + } + FROM = { + set_character_flag = husband_accepted_chancellor + character_event = { + id = 30062 + tooltip = "EVTTOOLTIPA30062" + } + } + } + option = { + name = "EVTOPTB30061" + FROM = { + set_character_flag = husband_denied_chancellor + character_event = { + id = 30062 + tooltip = "EVTTOOLTIPB30062" + } + } + } +} + +#Wife suggests new Chancellor: The End +character_event = { + id = 30062 + desc = "EVTDESC30062" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30062" + trigger = { + has_character_flag = husband_accepted_chancellor + } + clr_character_flag = husband_accepted_chancellor + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + } + option = { + name = "EVTOPTB30062" + trigger = { + has_character_flag = husband_denied_chancellor + } + clr_character_flag = husband_denied_chancellor + FROM = { + reverse_opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 5 + } + } + } +} + +# Wife suggests new Marshal: Start +character_event = { + id = 30063 + desc = "EVTDESC30063" + picture = GFX_evt_council + + min_age = 20 + only_rulers = no + only_women = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + NOT = { + demesne_size = 1 + } + independent = no + any_courtier = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + martial = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + spouse = { + NOT = { trait = incapable } + is_ruler = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + OR = { + trait = ambitious + trait = diligent + trait = charitable + } + job_marshal = { + NOT = { character = ROOT } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + spouse = { + trait = wroth + } + } + modifier = { + factor = 2 + spouse = { + trait = trusting + } + } + } + + option = { + name = "EVTOPTA30063" + random_courtier = { + limit = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + martial = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = new_marshal + } + spouse = { + character_event = { + id = 30064 + tooltip = "EVTTOOLTIP30064" + } + } + } +} + +#Wife suggests new Marshal: Husband decides +character_event = { + id = 30064 + desc = "EVTDESC30064" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30064" + job_marshal = { + opinion = { + modifier = opinion_revoked_marshal_title + who = ROOT + years = 5 + } + } + event_target:new_marshal = { + give_job_title = job_marshal + } + FROM = { + set_character_flag = husband_accepted_marshal + character_event = { + id = 30065 + tooltip = "EVTTOOLTIPA30065" + } + } + } + option = { + name = "EVTOPTB30064" + FROM = { + set_character_flag = husband_denied_marshal + character_event = { + id = 30065 + tooltip = "EVTTOOLTIPB30065" + } + } + } +} + +#Wife suggests new Marshal: The End +character_event = { + id = 30065 + desc = "EVTDESC30065" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30065" + trigger = { + has_character_flag = husband_accepted_marshal + } + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + clr_character_flag = husband_accepted_marshal + } + option = { + name = "EVTOPTB30065" + trigger = { + has_character_flag = husband_denied_marshal + } + FROM = { + reverse_opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 5 + } + } + clr_character_flag = husband_denied_marshal + } +} + +# Wife suggests new Steward: Start +character_event = { + id = 30066 + desc = "EVTDESC30066" + picture = GFX_evt_council + + min_age = 20 + only_rulers = no + only_women = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + NOT = { + demesne_size = 1 + } + independent = no + any_courtier = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + stewardship = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + OR = { + trait = ambitious + trait = diligent + trait = charitable + } + spouse = { + NOT = { trait = incapable } + is_ruler = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + job_treasurer = { + NOT = { + character = ROOT + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + spouse = { + trait = wroth + } + } + modifier = { + factor = 2 + spouse = { + trait = trusting + } + } + } + + option = { + name = "EVTOPTA30066" + random_courtier = { + limit = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + stewardship = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = new_steward + } + spouse = { + character_event = { + id = 30067 + tooltip = "EVTTOOLTIP30067" + } + } + } +} + +#Wife suggests new Steward: Husband decides +character_event = { + id = 30067 + desc = "EVTDESC30067" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30067" + job_treasurer = { + opinion = { + modifier = opinion_revoked_steward_title + who = ROOT + years = 5 + } + } + event_target:new_steward = { + give_job_title = job_treasurer + } + FROM = { + set_character_flag = husband_accepted_steward + character_event = { + id = 30068 + tooltip = "EVTTOOLTIPA30067" + } + } + } + option = { + name = "EVTOPTB30067" + FROM = { + set_character_flag = husband_denied_steward + character_event = { + id = 30068 + tooltip = "EVTTOOLTIPB30067" + } + } + } +} + +#Wife suggests new Steward: The End +character_event = { + id = 30068 + desc = "EVTDESC30068" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30068" + trigger = { + has_character_flag = husband_accepted_steward + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 5 + } + clr_character_flag = husband_accepted_steward + } + option = { + name = "EVTOPTB30068" + trigger = { + has_character_flag = husband_denied_steward + } + clr_character_flag = husband_denied_steward + FROM = { + reverse_opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 5 + } + } + } +} + +# Wife suggests new Spymaster: Start +character_event = { + id = 30069 + desc = "EVTDESC30069" + picture = GFX_evt_council + + min_age = 20 + only_rulers = no + only_women = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + NOT = { + demesne_size = 1 + } + independent = no + any_courtier = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + intrigue = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + OR = { + trait = ambitious + trait = diligent + trait = charitable + } + spouse = { + NOT = { trait = incapable } + is_ruler = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + job_spymaster = { + NOT = { + character = ROOT + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + spouse = { + trait = wroth + } + } + modifier = { + factor = 2 + spouse = { + trait = trusting + } + } + } + + option = { + name = "EVTOPTA30069" + random_courtier = { + limit = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + intrigue = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = new_spymaster + } + spouse = { + character_event = { + id = 30070 + tooltip = "EVTTOOLTIP30070" + } + } + } +} + +#Wife suggests new Spymaster: Husband decides +character_event = { + id = 30070 + desc = "EVTDESC30070" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30070" + job_spymaster = { + opinion = { + modifier = opinion_revoked_spymaster_title + who = ROOT + years = 5 + } + } + event_target:new_spymaster = { + give_job_title = job_spymaster + } + FROM = { + set_character_flag = husband_accepted_spymaster + character_event = { + id = 30071 + tooltip = "EVTTOOLTIPA30071" + } + } + } + option = { + name = "EVTOPTB30070" + FROM = { + set_character_flag = husband_denied_spymaster + character_event = { + id = 30071 + tooltip = "EVTTOOLTIPB30071" + } + } + } +} + +#Wife suggests new Spymaster: The End +character_event = { + id = 30071 + desc = "EVTDESC30071" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30071" + trigger = { + has_character_flag = husband_accepted_spymaster + } + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + clr_character_flag = husband_accepted_spymaster + } + option = { + name = "EVTOPTB30071" + trigger = { + has_character_flag = husband_denied_spymaster + } + FROM = { + reverse_opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 5 + } + } + clr_character_flag = husband_denied_spymaster + } +} + +# Wife suggests new Lord Spiritual: Start +character_event = { + id = 30072 + desc = "EVTDESC30072" + picture = GFX_evt_council + + min_age = 20 + only_rulers = no + only_women = yes + prisoner = no + capable_only = yes + + is_triggered_only = yes + + trigger = { + NOT = { + demesne_size = 1 + } + #NOT = { + # religion_group = muslim + #} + #spouse = { + # NOT = { + # religion_group = muslim + # } + #} + independent = no + any_courtier = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + is_councillor = no + can_be_spiritual_trigger = yes + learning = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + OR = { + trait = ambitious + trait = diligent + trait = charitable + } + spouse = { + NOT = { trait = incapable } + is_ruler = yes + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + } + job_spiritual = { + NOT = { + character = ROOT + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + spouse = { + trait = wroth + } + } + modifier = { + factor = 2 + spouse = { + trait = trusting + } + } + } + + option = { + name = "EVTOPTA30072" + random_courtier = { + limit = { + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + can_be_spiritual_trigger = yes + is_councillor = no + learning = 10 + age = 16 + is_female = no + prisoner = no + NOT = { trait = incapable } + liege = { + NOT = { + character = PREV + } + } + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = new_lord_spiritual + } + spouse = { + character_event = { + id = 30073 + tooltip = "EVTTOOLTIP30073" + } + } + } +} + +#Wife suggests new Lord Spiritual: Husband decides +character_event = { + id = 30073 + desc = "EVTDESC30073" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30073" + job_spiritual = { + opinion = { + modifier = opinion_revoked_lord_spiritual_title + who = ROOT + years = 5 + } + } + event_target:new_lord_spiritual = { + give_job_title = job_spiritual + } + FROM = { + set_character_flag = husband_accepted_lord_spiritual + character_event = { + id = 30074 + tooltip = "EVTTOOLTIPA30074" + } + } + } + option = { + name = "EVTOPTB30073" + FROM = { + set_character_flag = husband_denied_lord_spiritual + character_event = { + id = 30074 + tooltip = "EVTTOOLTIPB30074" + } + } + } +} + +#Wife suggests new Lord Spiritual: The End +character_event = { + id = 30074 + desc = "EVTDESC30074" + picture = GFX_evt_council + + is_triggered_only = yes + + option = { + name = "EVTOPTA30074" + trigger = { + has_character_flag = husband_accepted_lord_spiritual + } + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + clr_character_flag = husband_accepted_lord_spiritual + } + option = { + name = "EVTOPTB30074" + trigger = { + has_character_flag = husband_denied_lord_spiritual + } + FROM = { + reverse_opinion = { + modifier = opinion_denied_advice + who = ROOT + years = 5 + } + } + clr_character_flag = husband_denied_lord_spiritual + } +} + +#Pregnant with courtier: Start +character_event = { + id = 30075 + desc = "EVTDESC30075" + picture = "GFX_evt_pregnancy" + + min_age = 16 + max_age = 25 + only_women = yes + capable_only = yes + prisoner = no + is_married = yes + + is_triggered_only = yes + + trigger = { + is_ruler = no + spouse = { + NOT = { trait = incapable } + is_alive = yes + age = 40 + prisoner = no + NOT = { fertility = 0.5 } + } + is_pregnant = no + fertility = 0.6 + NOT = { + num_of_children = 1 + } + any_courtier = { + is_close_relative = no + is_female = no + age = 20 + NOR = { + age = 65 + trait = chaste + trait = celibate + trait = homosexual + trait = eunuch + is_ascetic_trigger = yes + family = ROOT + } + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = lustful + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 2 + fertility = 0.75 + } + modifier = { + factor = 3 + spouse = { NOT = { num_of_children = 1 } } + } + } + + option = { + name = "EVTOPTA30075" + ai_chance = { factor = 80 } + random_courtier = { + limit = { + is_close_relative = no + is_female = no + age = 20 + NOR = { + age = 65 + trait = chaste + trait = celibate + trait = homosexual + trait = eunuch + is_ascetic_trigger = yes + family = ROOT + } + OR = { + any_lover = { character = ROOT } + reverse_opinion = { who = ROOT value = 40 } + } + } + impregnate_cuckoo = ROOT + save_event_target_as = sire_bastard + } + hidden_tooltip = { + character_event = { + days = 90 + id = 30076 + } + } + } +} + +#Pregnant with courtier: What to do? +character_event = { + id = 30076 + desc = "EVTDESC30076" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30076" #Deny + spouse = { + character_event = { + id = 30077 + days = 30 + tooltip = "EVTTOOLTIP30077" + } + } + } + option = { + name = "EVTOPTB30076" #Tell + ai_chance = { factor = 10 } + spouse = { + character_event = { + id = 30078 + days = 30 + tooltip = "EVTTOOLTIP30078" + } + } + } + option = { + name = "EVTOPTC30076" #Blame + ai_chance = { factor = 10 } + spouse = { + character_event = { + id = 30079 + days = 30 + tooltip = "EVTTOOLTIP30079" + } + } + } +} + +#Pregnant with courtier: Deny +character_event = { + id = 30077 + desc = "EVTDESC30077" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30077" + FROM = { + reverse_opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + hidden_tooltip = { + random = { + chance = 10 + character_event = { + id = 404 + } + } + } + } +} + +#Pregnant with courtier: Tell +character_event = { + id = 30078 + desc = "EVTDESC30078" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30078" #Raise the child as my own + prestige = -10 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 10 + } + } + } + option = { + name = "EVTOPTB30078" #Raise the child as my own and punish courtier + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 10 + } + } + character_event = { + id = 30080 + tooltip = "EVTTOOLTIP30080" + } + } + option = { + name = "EVTOPTC30078" #Punish courtier and spouse + character_event = { + id = 30081 + tooltip = "EVTTOOLTIP30081" + } + } +} + +#Pregnant with courtier: Blame +character_event = { + id = 30079 + desc = "EVTDESC30079" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30078" #Raise the child as my own + prestige = -10 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 10 + } + } + } + option = { + name = "EVTOPTB30078" #Raise the child as my own and punish courtier + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 10 + } + } + character_event = { + id = 30080 + tooltip = "EVTTOOLTIP30080" + } + } + option = { + name = "EVTOPTC30078" #Punish courtier and spouse + character_event = { + id = 30081 + tooltip = "EVTTOOLTIP30081" + } + } +} + +#Pregnant with courtier: Husband punish courtier +character_event = { + id = 30080 + desc = "EVTDESC30080" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30080" #Imprison courtier + event_target:sire_bastard = { + imprison = yes + } + } + option = { + name = "EVTOPTB30080" #Execute courtier + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + event_target:sire_bastard = { + death = { + death_reason = death_execution_hanging + killer = ROOT + } + } + } + option = { + name = "EVTOPTC30080" #Banish + ai_chance = { factor = 1000 } + event_target:sire_bastard = { + banish = yes + } + } + + option = { + name = "EVTOPTD30080" #Does nothing + event_target:sire_bastard = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 5 + } + } + FROM = { + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + } + } +} + +#Pregnant with courtier: Husband punish both +character_event = { + id = 30081 + desc = "EVTDESC30081" + picture = "GFX_evt_pregnancy" + + is_triggered_only = yes + + option = { + name = "EVTOPTA30081" #Imprison + event_target:sire_bastard = { + imprison = yes + } + FROM = { + FROM = { + imprison = yes + } + } + } + option = { + name = "EVTOPTB30081" #Execute + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + event_target:sire_bastard = { + death = { + death_reason = death_execution_hanging + killer = ROOT + } + } + FROM = { + FROM = { + death = { + death_reason = death_execution_hanging + killer = ROOT + } + } + } + } + option = { + name = "EVTOPTC30081" #Banish + ai_chance = { factor = 1000 } + event_target:sire_bastard = { + banish = yes + } + FROM = { + FROM = { + banish = yes + } + } + } + option = { + name = "EVTOPTD30081" #Does nothing + event_target:sire_bastard = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 5 + } + } + character_event = { + id = 30080 + tooltip = "EVTTOOLTIP30080" + } + } +} + +# Bored wife +character_event = { + id = 30085 + desc = "EVTDESC30085" + picture = GFX_evt_quarrel + + hide_from = yes + + min_age = 40 + only_men = yes + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + spouse = { + NOT = { trait = incapable } + prisoner = no + is_alive = yes + is_abroad = no + at_location = ROOT + NOT = { + age = 30 + } + is_smart_trigger = no + NOT = { + is_inaccessible_trigger = yes + } + } + NOT = { + has_character_modifier = for_the_sake_of_love + } + NOT = { + has_character_flag = best_friends_forever + } + spouse = { + any_courtier = { + age = 16 + is_councillor = no + ai = yes + spouse = { + prisoner = no + is_alive = yes + NOT = { + character = PREVPREV + } + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.5 + spouse = { + OR = { + trait = slow + trait = dull + } + } + } + modifier = { + factor = 3 + spouse = { trait = imbecile } + } + } + + immediate = { + spouse = { + random_courtier = { + limit = { + age = 16 + is_councillor = no + ai = yes + spouse = { + prisoner = no + is_alive = yes + NOT = { + character = PREVPREV + } + } + } + save_event_target_as = target_courtier + } + } + } + + option = { + name = "EVTOPTA30085" #Fine, I'll humor you + add_character_modifier = { + name = for_the_sake_of_love + duration = 365 + } + spouse = { + opinion = { + modifier = opinion_happy + who = ROOT + years = 1 + } + } + } + option = { + name = "EVTOPTB30085" #Befriend others! I have a *insert kingdom, duchy, county etc* to rule! + set_character_flag = best_friends_forever + spouse = { + character_event = { + id = 30086 + tooltip = "EVTTOOLTIP30086" + } + } + } +} + +#Spouse befriends courtier +character_event = { + id = 30086 + desc = "EVTDESC30086" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EVTOPTA30086" + event_target:target_courtier = { + opinion = { + modifier = opinion_acquaintance + who = ROOT + years = 5 + } + reverse_opinion = { + modifier = opinion_acquaintance + who = ROOT + years = 5 + } + hidden_tooltip = { + character_event = { + id = 30087 + } + } + } + } +} + +#Courtier - New Friend +character_event = { + id = 30087 + hide_window = yes + + is_triggered_only = yes + + option = { #Great! + FROM = { + character_event = { + id = 30088 + } + } + } +} + +#Bored wife: Choose an activity +character_event = { + id = 30088 + desc = "EVTDESC30088" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EVTOPTA30088" + trigger = { + NOT = { + has_character_flag = failed_lake + has_character_flag = perfect_lake + } + } + character_event = { + id = 30089 + tooltip = "EVTTOOLTIP30089" + } + } + option = { + name = "EVTOPTB30088" + trigger = { + NOT = { + has_character_flag = failed_picnic + has_character_flag = perfect_picnic + } + } + character_event = { + id = 30090 + tooltip = "EVTTOOLTIP30090" + } + } + option = { + name = "EVTOPTC30088" + trigger = { + NOT = { religion = jain } + NOT = { + has_character_flag = failed_hunt + has_character_flag = perfect_hunt + } + } + character_event = { + id = 30091 + tooltip = "EVTTOOLTIP30091" + } + } + option = { + name = "EVTOPTD30088" + trigger = { + NOT = { + has_character_flag = failed_dinner + has_character_flag = perfect_dinner + } + } + character_event = { + id = 30092 + tooltip = "EVTTOOLTIP30092" + } + } + option = { + name = "EVTOPTE30088" + trigger = { + OR = { + has_character_flag = failed_dinner + has_character_flag = perfect_dinner + has_character_flag = failed_hunt + has_character_flag = perfect_hunt + has_character_flag = failed_picnic + has_character_flag = perfect_picnic + has_character_flag = failed_lake + has_character_flag = perfect_lake + } + event_target:target_courtier = { + always = yes + } + } + event_target:target_courtier = { + add_friend = ROOT + } + clr_character_flag = best_friends_forever + clr_character_flag = perfect_activity + clr_character_flag = failed_activity + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Bored wife: Lake +character_event = { + id = 30089 + desc = "EVTDESC30089" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + immediate = { + random_list = { + 60 = { + set_character_flag = failed_lake + } + 40 = { + set_character_flag = perfect_lake + } + } + } + + option = { + name = "EVTOPTA30089" + trigger = { + has_character_flag = failed_lake + } + event_target:target_courtier = { + character_event = { + id = 30093 + days = 5 + tooltip = "EVTTOOLTIPA30093" + } + } + } + option = { + name = "EVTOPTB30089" + trigger = { + has_character_flag = perfect_lake + } + event_target:target_courtier = { + character_event = { + id = 30094 + days = 5 + tooltip = "EVTTOOLTIPA30094" + } + } + } + option = { + name = "EVTOPTC30089" + clr_character_flag = best_friends_forever + clr_character_flag = perfect_activity + clr_character_flag = failed_activity + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Bored wife: Picnic +character_event = { + id = 30090 + desc = "EVTDESC30090" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + immediate = { + random_list = { + 60 = { + set_character_flag = perfect_picnic + } + 40 = { + set_character_flag = failed_picnic + } + } + } + + option = { + name = "EVTOPTA30090" + trigger = { + has_character_flag = failed_picnic + } + event_target:target_courtier = { + character_event = { + id = 30093 + days = 5 + tooltip = "EVTTOOLTIPB30093" + } + } + } + option = { + name = "EVTOPTB30090" + trigger = { + has_character_flag = perfect_picnic + } + event_target:target_courtier = { + character_event = { + id = 30094 + days = 5 + tooltip = "EVTTOOLTIPB30094" + } + } + } + option = { + name = "EVTOPTC30089" + clr_character_flag = best_friends_forever + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Bored wife: Hunt +character_event = { + id = 30091 + desc = "EVTDESC30091" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + immediate = { + random_list = { + 60 = { + set_character_flag = failed_hunt + } + 40 = { + set_character_flag = perfect_hunt + } + } + } + + option = { + name = "EVTOPTA30091" + trigger = { + has_character_flag = perfect_hunt + } + event_target:target_courtier = { + character_event = { + id = 30093 + days = 5 + tooltip = "EVTTOOLTIPC30093" + } + } + } + option = { + name = "EVTOPTB30091" + trigger = { + has_character_flag = failed_hunt + } + event_target:target_courtier = { + character_event = { + id = 30094 + days = 5 + tooltip = "EVTTOOLTIPC30094" + } + } + } + option = { + name = "EVTOPTC30089" + clr_character_flag = best_friends_forever + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Bored wife: Dinner +character_event = { + id = 30092 + desc = "EVTDESC30092" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + immediate = { + random_list = { + 60 = { + set_character_flag = perfect_dinner + } + 40 = { + set_character_flag = failed_dinner + } + } + } + + option = { + name = "EVTOPTA30092" + trigger = { + has_character_flag = perfect_dinner + } + event_target:target_courtier = { + character_event = { + id = 30093 + days = 5 + tooltip = "EVTTOOLTIPD30093" + } + } + } + option = { + name = "EVTOPTB30092" + trigger = { + has_character_flag = failed_dinner + } + event_target:target_courtier = { + character_event = { + id = 30094 + days = 5 + tooltip = "EVTTOOLTIPD30094" + } + } + } + option = { + name = "EVTOPTC30089" + clr_character_flag = best_friends_forever + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Courtier: Perfect activity +character_event = { + id = 30093 + hide_window = yes + + is_triggered_only = yes + + option = { #Friends forever! + ai_chance = { + factor = 10 + + modifier = { + factor = 2 + has_character_flag = failed_lake + } + modifier = { + factor = 2 + has_character_flag = failed_picnic + } + modifier = { + factor = 2 + has_character_flag = failed_hunt + } + modifier = { + factor = 2 + has_character_flag = failed_dinner + } + } + clr_character_flag = best_friends_forever + FROM = { + character_event = { + id = 30096 + } + } + } + option = { #Let's try again! + ai_chance = { factor = 90 } + FROM = { + character_event = { + id = 30088 + } + } + } +} + +#Courtier: Failed Activity +character_event = { + id = 30094 + hide_window = yes + + is_triggered_only = yes + + option = { #Too bad! + ai_chance = { + factor = 10 + + modifier = { + factor = 2 + has_character_flag = perfect_lake + } + modifier = { + factor = 2 + has_character_flag = perfect_picnic + } + modifier = { + factor = 2 + has_character_flag = perfect_hunt + } + modifier = { + factor = 2 + has_character_flag = perfect_dinner + } + } + FROM = { + character_event = { + id = 30095 + } + } + } + option = { #Let's try again! + ai_chance = { factor = 90 } + FROM = { + character_event = { + id = 30088 + } + } + } +} + +#Bored Wife: Courtier Dislike +character_event = { + id = 30095 + desc = "EVTDESC30095" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EVTOPTA30095" + clr_character_flag = best_friends_forever + FROM = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 5 + } + reverse_opinion = { + modifier = opinion_dislike + who = ROOT + years = 5 + } + } + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Bored Wife: Friend +character_event = { + id = 30096 + desc = "EVTDESC30096" + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EVTOPTA30096" + clr_character_flag = best_friends_forever + FROM = { + add_friend = ROOT + } + clr_character_flag = perfect_lake + clr_character_flag = perfect_picnic + clr_character_flag = perfect_hunt + clr_character_flag = perfect_dinner + clr_character_flag = failed_lake + clr_character_flag = failed_picnic + clr_character_flag = failed_hunt + clr_character_flag = failed_dinner + } +} + +#Active ***life +character_event = { + id = 30100 + desc = EVTDESC30100 + picture = GFX_evt_lovers + + min_age = 16 + only_women = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + fertility = 0.65 + NOT = { is_ascetic_trigger = yes } + NOT = { trait = celibate } + spouse = { + NOT = { trait = incapable } + NOT = { trait = celibate } + NOT = { is_ascetic_trigger = yes } + NOT = { trait = eunuch } + age = 40 + war = no + in_command = no + is_abroad = no + at_location = ROOT + prisoner = no + is_alive = yes + } + NOT = { + has_character_modifier = spouse_active_timer + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 4 + NOT = { age = 25 } + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 1.5 + trait = lustful + } + modifier = { + factor = 2 + spouse = { has_character_modifier = for_the_sake_of_love } + } + } + + immediate = { + add_character_modifier = { + name = spouse_active_timer + duration = 365 + hidden = yes + } + } + + option = { + name = "EVTOPTA30100" #Take him on a wild ride + spouse = { + set_character_flag = wild_ride + character_event = { + id = 30101 + tooltip = "EVTTOOLTIPA30101" + } + } + } + + option = { + name = "EVTOPTD30100" #Make sure he knows who is the boss in the bedchamber + spouse = { + set_character_flag = boss_in_bedchamber + character_event = { + id = 30101 + tooltip = "EVTTOOLTIPB30101" + } + } + } + option = { + name = "EVTOPTB30100" #Be gentle to him + spouse = { + set_character_flag = gentle_loving + character_event = { + id = 30102 + tooltip = "EVTTOOLTIPA30102" + } + } + } + option = { + name = "EVTOPTC30100" #Make sweet, sweet love + spouse = { + set_character_flag = sweet_love + character_event = { + id = 30102 + tooltip = "EVTTOOLTIPB30102" + } + } + } +} + +#Active ***live: Wild ride and Boss in Bed +character_event = { + id = 30101 + desc = EVTDESC30101 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA30101 + trigger = { + has_character_flag = wild_ride + NOT = { + age = 55 + } + } + clr_character_flag = wild_ride + prestige = 20 + if = { + limit = { immortal = no } + random = { + chance = 10 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30103 + tooltip = "EVTTOOLTIP30103" + } + } + break = yes + } + } + + random = { + chance = 40 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + option = { + name = "EVTOPTB30101" + trigger = { + has_character_flag = wild_ride + age = 55 + } + clr_character_flag = wild_ride + prestige = 20 + if = { + limit = { immortal = no } + random = { + chance = 30 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30103 + tooltip = "EVTTOOLTIP30103" + } + } + break = yes + } + } + random = { + chance = 40 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + option = { + name = "EVTOPTC30101" + trigger = { + has_character_flag = boss_in_bedchamber + NOT = { + age = 55 + } + } + clr_character_flag = boss_in_bedchamber + prestige = 20 + if = { + limit = { immortal = no } + random = { + chance = 10 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30103 + tooltip = "EVTTOOLTIP30103" + } + } + break = yes + } + } + random = { + chance = 40 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + option = { + name = "EVTOPTD30101" + trigger = { + has_character_flag = boss_in_bedchamber + age = 55 + } + clr_character_flag = boss_in_bedchamber + prestige = 20 + if = { + limit = { immortal = no } + random = { + chance = 10 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30103 + tooltip = "EVTTOOLTIP30103" + } + } + break = yes + } + } + random = { + chance = 40 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } +} + +#Active ***live: Gentle and Sweet Love +character_event = { + id = 30102 + desc = "EVTDESC30102" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA30102" + trigger = { + has_character_flag = gentle_loving + NOT = { + age = 55 + } + } + clr_character_flag = gentle_loving + random = { + chance = 60 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + if = { + limit = { immortal = no } + random = { + chance = 10 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30104 + tooltip = "EVTTOOLTIP30104" + } + } + } + } + } + option = { + name = "EVTOPTB30102" + trigger = { + has_character_flag = gentle_loving + age = 55 + } + clr_character_flag = gentle_loving + random = { + chance = 40 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + if = { + limit = { immortal = no } + random = { + chance = 20 + + death = { + death_reason = death_accident + } + spouse = { + character_event = { + id = 30104 + tooltip = "EVTTOOLTIP30104" + } + } + } + } + } + option = { + name = "EVTOPTC30102" + trigger = { + has_character_flag = sweet_love + NOT = { + age = 60 + } + } + clr_character_flag = sweet_love + random = { + chance = 30 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + if = { + limit = { immortal = no } + random = { + chance = 20 + + spouse = { + character_event = { + id = 30104 + tooltip = "EVTTOOLTIP30104" + } + } + death = { + death_reason = death_accident + } + } + } + } + option = { + name = "EVTOPTD30102" + trigger = { + has_character_flag = sweet_love + age = 60 + } + clr_character_flag = sweet_love + random = { + chance = 20 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + if = { + limit = { immortal = no } + random = { + chance = 40 + + spouse = { + character_event = { + id = 30104 + tooltip = "EVTTOOLTIP30104" + } + } + death = { + death_reason = death_accident + } + } + } + } +} + +#Active ***life: Killed Spouse by loving him too fiercely +character_event = { + id = 30103 + desc = "EVTDESC30103" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA30103" + add_trait = depressed + if = { + limit = { + trait = lustful + } + remove_trait = lustful + } + } +} + +#Active ***life: Killed Spouse by loving him too much +character_event = { + id = 30104 + desc = "EVTDESC30104" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = "EVTOPTA30104" + add_trait = depressed + if = { + limit = { + trait = lustful + } + remove_trait = lustful + } + } +} + +# Wife, suspecting husband is infertile, tries to produce an heir with someone else +character_event = { + id = 30105 + desc = "EVTDESC30105" + picture = "GFX_evt_pregnancy" + + only_women = yes + capable_only = yes + prisoner = no + max_age = 40 + min_age = 20 + is_married = yes + + is_triggered_only = yes + + trigger = { + has_lover = no + fertility = 0.3 + spouse = { + NOT = { trait = incapable } + war = no + in_command = no + is_abroad = no + at_location = ROOT + prisoner = no + is_alive = yes + NOT = { + num_of_children = 1 + } + NOT = { + fertility = 0.5 + } + } + is_pregnant = no + NOT = { + num_of_children = 1 + } + any_courtier = { + reverse_opinion = { who = ROOT value = 40 } + is_female = no + fertility = 0.5 + has_lover = no + age = 20 + NOR = { + age = 35 + trait = eunuch + is_ascetic_trigger = yes + trait = chaste + trait = celibate + family = ROOT + } + is_close_relative = no + } + NOT = { + has_character_modifier = suitable_father_timer + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 3 + has_ambition = obj_have_a_daughter + } + modifier = { + factor = 0.5 + trait = chaste + } + modifier = { + factor = 3 + has_ambition = obj_have_a_son + } + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = suitable_father_timer + duration = 365 + hidden = yes + } + } + } + + option = { + name = "EVTOPTA30105" + ai_chance = { factor = 80 } + piety = -15 + random_courtier = { + limit = { + reverse_opinion = { who = ROOT value = 40 } + is_female = no + fertility = 0.5 + has_lover = no + age = 20 + NOR = { + age = 35 + trait = eunuch + is_ascetic_trigger = yes + trait = chaste + trait = celibate + family = ROOT + } + is_close_relative = no + } + add_lover = ROOT + random = { + chance = 15 + impregnate_cuckoo = ROOT + } + } + } + option = { + name = "EVTOPTB30105" + piety = 10 + } +} diff --git a/After the End/events/mnm_artifacts_events.txt b/After the End/events/mnm_artifacts_events.txt index 868d456c9..88647a07d 100644 --- a/After the End/events/mnm_artifacts_events.txt +++ b/After the End/events/mnm_artifacts_events.txt @@ -979,21 +979,21 @@ character_event = { #Sword option = { - trigger = { NOT = { religion_group = muslim } } + #trigger = { NOT = { religion_group = muslim } } name = EVTOPTA_MNM_9118 custom_tooltip = { text = EVTOPTA_MNM_9118_TT } hidden_tooltip = { FROM = { set_character_flag = weapon_sword } } ai_chance = { factor = 2 } } - #Scimitar - option = { - trigger = { religion_group = muslim } - name = EVTOPTB_MNM_9118 - custom_tooltip = { text = EVTOPTB_MNM_9118_TT } - hidden_tooltip = { FROM = { set_character_flag = weapon_scimitar } } - ai_chance = { factor = 2 } - } + #Scimitar # So Christians get longswords and Muslims get scimitars; there's a possibility to make some AtE culture/religion the scimitar wielders instead. + #option = { + # trigger = { religion_group = muslim } + # name = EVTOPTB_MNM_9118 + # custom_tooltip = { text = EVTOPTB_MNM_9118_TT } + # hidden_tooltip = { FROM = { set_character_flag = weapon_scimitar } } + # ai_chance = { factor = 2 } + #} #Lance option = { diff --git a/After the End/events/mourning_events.txt b/After the End/events/mourning_events.txt new file mode 100644 index 000000000..091915c98 --- /dev/null +++ b/After the End/events/mourning_events.txt @@ -0,0 +1,623 @@ +####################################################### +# +# Events that trigger for characters when they die +# +####################################################### +# Written by Johan Andersson + +#Death of a loved wife... +character_event = { + id = 24500 + desc = EVTDESC24500 + picture = GFX_evt_death + + only_women = yes + is_married = yes + + is_triggered_only = yes + + trigger = { + immortal = no + spouse = { + is_alive = yes + is_abroad = no + is_ruler = yes + opinion = { who = ROOT value = 50 } + OR = { + trait = kind + trait = charitable + } + NOR = { + trait = kinslayer + trait = celibate + trait = depressed + trait = eunuch + } + } + } + + option = { + name = EVTOPTA24500 + spouse = { character_event = { id = 24501 days = 64 tooltip = EVTTOOLTIP24501 } } + } +} + +# and what happens... +character_event = { + id = 24501 + desc = EVTDESC24501 + picture = GFX_evt_death + + is_triggered_only = yes + trigger = { + spouse_even_if_dead = { + is_alive = no + is_female = yes + } + } + + option = { + name = EVTOPTA24501 + random_list = { + 90 = { + add_trait = lustful + } + 10 = { + add_trait = incapable + } + } + } + + option = { + name = EVTOPTB24501 + add_trait = depressed + if = { + limit = { + religion_group = christian + } + add_trait = celibate + } + } +} + + +#Death of a good son +character_event = { + id = 24502 + desc = EVTDESC24502 + picture = GFX_evt_death + + is_triggered_only = yes + + only_men = yes + min_age = 15 + + trigger = { + is_primary_heir = yes + martial = 8 + stewardship = 8 + + father = { + is_alive = yes + is_ruler = yes + NOT = { trait = stressed } + } + any_sibling = { + is_adult = yes + is_female = no + is_alive = yes + NOT = { martial = 8 } + } + } + + option = { + name = EVTOPTA24502 + father = { character_event = { id = 24503 days = 128 tooltip = EVTTOOLTIP24503 } } + } +} + +# and what happens first... +character_event = { + id = 24503 + desc = EVTDESC24503 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA24503 + trigger = { + is_married = yes + spouse = { + NOT = { age = 30 } + is_pregnant = no + } + } + character_event = { id = 24504 days = 2 tooltip = EVTTOOLTIP24504 } + } + + option = { + name = EVTOPTB24503 + random_child = { + limit = { + is_adult = yes + is_female = no + is_alive = yes + NOT = { martial = 8 } + } + random_list = { + 90 = { + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + } + } + 10 = { + add_trait = brave + } + } + } + } +} + +#and the final part... +character_event = { + id = 24504 + desc = EVTDESC24504 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA24504 + spouse = { + impregnate_cuckoo = PREV + add_trait = stressed + } + } +} + +#Suspicious death: Start +character_event = { + id = 24505 + desc = EVTDESC24505 + picture = GFX_evt_death + + is_triggered_only = yes + + trigger = { + death_murder_unknown_trigger = yes + NOT = { has_character_flag = was_murdered_by_plot } + OR = { + AND = { + age = 15 + NOT = { + age = 35 + } + any_courtier = { + is_abroad = no + in_command = no + prisoner = no + age = 14 + NOT = { trait = incapable } + NOT = { character = ROOT } + opinion = { who = ROOT value = 50 } + NOT = { + is_liege_of = ROOT + } + } + NOT = { + has_character_flag = murdered_by_guardian + } + } + has_character_flag = murdered_by_guardian + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = EVTOPTA24505 + trigger = { + NOT = { + has_character_flag = murdered_by_guardian + } + } + random_courtier = { + limit = { + is_abroad = no + in_command = no + prisoner = no + age = 14 + NOT = { trait = incapable } + NOT = { character = ROOT } + NOT = { + is_liege_of = ROOT + } + opinion = { who = ROOT value = 50 } + } + character_event = { + id = 24506 + tooltip = EVTTOOLTIP24506 + } + } + } + + option = { + name = EVTOPTA24505 + trigger = { + has_character_flag = murdered_by_guardian + } + if = { + limit = { + father = { + is_alive = yes + } + } + father = { + set_character_flag = guardian_murdered_child + character_event = { + id = 24506 + tooltip = EVTTOOLTIP24506 + } + } + } + if = { + limit = { + mother = { + is_alive = yes + } + father_even_if_dead = { + is_alive = no + } + } + mother = { + set_character_flag = guardian_murdered_child + character_event = { + id = 24506 + tooltip = EVTTOOLTIP24506 + } + } + } + clr_character_flag = murdered_by_guardian + } +} + +#Suspicious death: Courtier +character_event = { + id = 24506 + desc = EVTDESC24506 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA24506 #Keep my grudge + trigger = { + NOT = { + has_character_flag = guardian_murdered_child + } + } + random_courtier = { + limit = { + intrigue = 8 + NOT = { character = ROOT } + NOT = { character = FROM } + prisoner = no + age = 16 + NOT = { trait = incapable } + } + reverse_opinion = { + modifier = suspect_of_murder + who = ROOT + years = 10 + } + } + any_courtier = { + limit = { + has_character_flag = murder_suspect + } + clr_character_flag = murder_suspect + } + } + + option = { + name = EVTOPTB24506 + trigger = { + is_ruler = yes + NOT = { + has_character_flag = guardian_murdered_child + } + } + random_courtier = { + limit = { + intrigue = 8 + NOT = { character = ROOT } + NOT = { character = FROM } + prisoner = no + age = 16 + NOT = { trait = incapable } + } + imprison = ROOT + } + any_courtier = { + limit = { + has_character_flag = murder_suspect + } + clr_character_flag = murder_suspect + } + } + option = { + name = EVTOPTC24506 + trigger = { + is_ruler = no + NOT = { + has_character_flag = guardian_murdered_child + } + } + random_courtier = { + limit = { + intrigue = 8 + NOT = { character = ROOT } + NOT = { character = FROM } + prisoner = no + age = 16 + NOT = { trait = incapable } + } + set_character_flag = murder_suspect + } + liege = { + character_event = { + id = 24507 + tooltip = EVTTOOLTIP24507 + } + } + } + option = { + name = EVTOPTA24506 #Keep my grudge + trigger = { + has_character_flag = guardian_murdered_child + } + FROM = { + any_courtier = { + limit = { + has_character_flag = murdered_fosterling + } + reverse_opinion = { + modifier = suspect_of_murder + who = ROOT + years = 10 + } + } + } + } + + option = { + name = EVTOPTB24506 + trigger = { + is_ruler = yes + has_character_flag = guardian_murdered_child + } + FROM = { + any_courtier = { + limit = { + has_character_flag = murdered_fosterling + } + reverse_opinion = { + modifier = suspect_of_murder + who = ROOT + years = 10 + } + } + } + } + option = { + name = EVTOPTC24506 + trigger = { + is_ruler = no + has_character_flag = guardian_murdered_child + } + FROM = { + any_courtier = { + limit = { + has_character_flag = murdered_fosterling + } + reverse_opinion = { + modifier = suspect_of_murder + who = ROOT + years = 10 + } + set_character_flag = murder_suspect + } + } + liege = { + character_event = { + id = 24507 + tooltip = EVTTOOLTIP24507 + } + } + } +} + +#Suspicious death: Liege +character_event = { + id = 24507 + desc = EVTDESC24507 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA24507 #Ignore + random_courtier = { + limit = { + has_character_flag = murder_suspect + } + clr_character_flag = murder_suspect + } + any_courtier = { + limit = { + has_character_flag = murder_suspect + } + clr_character_flag = murder_suspect + } + FROM = { + opinion = { + modifier = opinion_betrayed + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB24507 #Imprison + random_courtier = { + limit = { + has_character_flag = murder_suspect + } + imprison = ROOT + + clr_character_flag = murder_suspect + } + any_courtier = { + limit = { + has_character_flag = murder_suspect + } + clr_character_flag = murder_suspect + } + FROM = { + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + } + } +} + +#Death of a Councillor +character_event = { + id = 24510 + desc = EVTDESC24510 + picture = GFX_evt_death + + is_triggered_only = yes + + trigger = { + is_councillor = yes + independent = no + NOT = { + age = 50 + } + OR = { + diplomacy = 15 + martial = 15 + intrigue = 15 + learning = 15 + stewardship = 15 + } + liege = { + NOT = { + character = ROOT + } + OR = { + tier = duke + tier = count + } + NOT = { + spouse = { + character = ROOT + } + } + NOT = { is_inaccessible_trigger = yes } + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = EVTOPTA24510 + liege = { + character_event = { + id = 4140 + tooltip = EVTTOOLTIP4140 + } + } + } +} + +#Funeral Procession +character_event = { + id = 4140 + desc = EVTDESC4140 + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = EVTOPTA4140 + trigger = { + religion_group = christian + } + add_character_modifier = { + name = the_sincere + years = 5 + } + } + #option = { + # name = EVTOPTD4140 + # trigger = { + # religion_group = muslim + # } + # add_character_modifier = { + # name = the_sincere + # years = 5 + # } + #} + option = { + name = EVTOPTE4140 + trigger = { + NOT = { + #religion_group = muslim + religion_group = christian + } + } + add_character_modifier = { + name = the_sincere + years = 5 + } + } + + option = { + name = EVTOPTB4140 + add_character_modifier = { + name = the_cynical + years = 5 + } + } + + option = { + name = EVTOPTC4140 + trigger = { + FROM = { + spouse = { + is_alive = yes + } + } + wealth = -10 + } + FROM = { + spouse = { + opinion = { + modifier = charitable_pos + who = ROOT + years = 10 + } + } + } + } +} \ No newline at end of file diff --git a/After the End/events/news_flavor_events.txt b/After the End/events/news_flavor_events.txt new file mode 100644 index 000000000..290d181b2 --- /dev/null +++ b/After the End/events/news_flavor_events.txt @@ -0,0 +1 @@ +#Disabled \ No newline at end of file diff --git a/After the End/events/on_action_events.txt b/After the End/events/on_action_events.txt index 26935b713..9c0def5c2 100644 --- a/After the End/events/on_action_events.txt +++ b/After the End/events/on_action_events.txt @@ -4393,38 +4393,27 @@ narrative_event = { } if = { limit = { religion = norse_pagan_reformed } - d_jomsvikings = { - religion = norse_pagan_reformed # This Holy Order now changes religion - } set_global_flag = norse_reformation } if = { - limit = { religion = tengri_pagan_reformed } - set_global_flag = tengri_reformation - } - if = { - limit = { religion = baltic_pagan_reformed } - set_global_flag = baltic_reformation - } - if = { - limit = { religion = finnish_pagan_reformed } - set_global_flag = finnish_reformation + limit = { religion = occultist_reformed } + set_global_flag = occultist_reformation } if = { - limit = { religion = aztec_reformed } - set_global_flag = aztec_reformation + limit = { religion = rust_cultist_reformed } + set_global_flag = rust_cultist_reformation } if = { - limit = { religion = slavic_pagan_reformed } - set_global_flag = slavic_reformation + limit = { religion = thelemic_reformed } + set_global_flag = thelemic_reformation } if = { - limit = { religion = west_african_pagan_reformed } - set_global_flag = west_african_reformation + limit = { religion = revelationist_reformed } + set_global_flag = revelationist_reformation } if = { - limit = { religion = zun_pagan_reformed } - set_global_flag = zun_reformation + limit = { religion = espiritista_reformed } + set_global_flag = espiritista_reformation } } diff --git a/After the End/events/on_hajj.txt b/After the End/events/on_hajj.txt new file mode 100644 index 000000000..290d181b2 --- /dev/null +++ b/After the End/events/on_hajj.txt @@ -0,0 +1 @@ +#Disabled \ No newline at end of file diff --git a/After the End/events/personality_traits_events.txt b/After the End/events/personality_traits_events.txt new file mode 100644 index 000000000..f000cafe7 --- /dev/null +++ b/After the End/events/personality_traits_events.txt @@ -0,0 +1,4881 @@ +################################### +# +# Events for Adult Personality Traits +# +# Id 1000-1499 is reserved +# +################################### +# +# Written by Sara Wendel-Örtqvist + +# Lustful/Chaste - male +character_event = { + id = 1000 + desc = "EVTDESC1000" + picture = "GFX_evt_lovers" + + min_age = 16 + only_men = yes + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + #NOT = { + # religion_group = muslim + #} + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = greedy + } + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = temperate + } + } + + option = { + name = "EVTOPTA1000" + if = { + limit = { + trait = honest + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + NOT = { + trait = honest + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = honest + trait = slothful + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + } + option = { + name = "EVTOPTB1000" + if = { + limit = { + trait = arbitrary + NOT = { + trait = proud + } + } + random = { + chance = 70 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + NOT = { + trait = proud + } + NOT = { + trait = arbitrary + } + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + trait = arbitrary + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + } +} + +#Gluttonous/Temperate +character_event = { + id = 1001 + desc = "EVTDESC1001" + picture = "GFX_evt_feast" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = gluttonous + } + NOT = { + trait = temperate + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = lustful + } + modifier = { + factor = 1.7 + trait = slothful + } + } + + option = { + name = "EVTOPTA1001" + add_character_modifier = { + name = well_fed + years = 5 + } + if = { + limit = { + trait = lustful + } + random = { + chance = 70 + + add_trait = gluttonous + + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + if = { + limit = { + trait = chaste + NOT = { + trait = lustful + } + } + random = { + chance = 20 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + if = { + limit = { + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + } + random = { + chance = 45 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + } + option = { + name = "EVTOPTB1001" + if = { + limit = { + trait = zealous + NOT = { + trait = greedy + } + } + random = { + chance = 70 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + trait = greedy + NOT = { + trait = zealous + } + } + random = { + chance = 20 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + NOT = { + trait = greedy + } + NOT = { + trait = zealous + } + } + random = { + chance = 45 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + trait = greedy + trait = zealous + } + random = { + chance = 45 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + } +} + +#Gluttonous/Temperate +character_event = { + id = 1002 + desc = "EVTDESC1002" + picture = "GFX_evt_feast" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = gluttonous + } + NOT = { + trait = temperate + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = lustful + } + modifier = { + factor = 1.7 + trait = slothful + } + } + + option = { + name = "EVTOPTA1001" + add_character_modifier = { + name = well_fed + years = 5 + } + if = { + limit = { + trait = lustful + NOT = { + trait = chaste + } + } + random = { + chance = 70 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + if = { + limit = { + trait = chaste + NOT = { + trait = lustful + } + } + random = { + chance = 20 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + if = { + limit = { + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + } + random = { + chance = 45 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + if = { + limit = { + trait = chaste + trait = lustful + } + random = { + chance = 45 + + add_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 38277 #Notify Gluttonous + } + } + } + } + } + option = { + name = "EVTOPTB1001" + if = { + limit = { + trait = zealous + NOT = { + trait = greedy + } + } + random = { + chance = 70 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + trait = greedy + NOT = { + trait = zealous + } + } + random = { + chance = 20 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + NOT = { + trait = greedy + } + NOT = { + trait = zealous + } + } + random = { + chance = 45 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + if = { + limit = { + trait = greedy + trait = zealous + } + random = { + chance = 45 + + add_trait = temperate + hidden_tooltip = { + character_event = { + id = 38276 #Notify Temperate + } + } + } + } + } +} + +#Charitable/Greedy +character_event = { + id = 1003 + desc = "EVTDESC1003" + picture = "GFX_evt_market" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = greedy + } + NOT = { + trait = charitable + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = kind + } + } + + option = { + name = "EVTOPTA1003" + if = { + limit = { + trait = honest + NOT = { + trait = envious + } + } + random = { + chance = 70 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + if = { + limit = { + trait = envious + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + if = { + limit = { + NOT = { + trait = envious + } + NOT = { + trait = honest + } + } + random = { + chance = 45 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + if = { + limit = { + trait = envious + trait = honest + } + random = { + chance = 45 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + } + option = { + name = "EVTOPTB1003" + if = { + limit = { + trait = proud + NOT = { + trait = content + } + } + random = { + chance = 70 + + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + if = { + limit = { + trait = content + NOT = { + trait = proud + } + } + random = { + chance = 20 + + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + if = { + limit = { + NOT = { + trait = content + } + NOT = { + trait = proud + } + } + random = { + chance = 45 + + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + if = { + limit = { + trait = content + trait = proud + } + random = { + chance = 45 + + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + } +} + +#Slothful/Diligent +character_event = { + id = 1004 + desc = "EVTDESC1004" + picture = "GFX_evt_drunk" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = diligent + } + NOT = { + trait = slothful + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 1.7 + trait = lustful + } + modifier = { + factor = 1.7 + trait = hedonist + } + } + + option = { + name = "EVTOPTA1004" + if = { + limit = { + trait = cruel + NOT = { + trait = ambitious + } + } + random = { + chance = 70 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + if = { + limit = { + trait = ambitious + NOT = { + trait = cruel + } + } + random = { + chance = 20 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + if = { + limit = { + NOT = { + trait = ambitious + } + NOT = { + trait = cruel + } + } + random = { + chance = 45 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + if = { + limit = { + trait = ambitious + trait = cruel + } + random = { + chance = 45 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + } + option = { + name = "EVTOPTB1004" + if = { + limit = { + trait = patient + NOT = { + trait = cynical + } + } + random = { + chance = 70 + + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + if = { + limit = { + trait = cynical + NOT = { + trait = patient + } + } + random = { + chance = 20 + + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + if = { + limit = { + NOT = { + trait = cynical + } + NOT = { + trait = patient + } + } + random = { + chance = 45 + + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + if = { + limit = { + trait = cynical + trait = patient + } + random = { + chance = 45 + + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } +} + +#Kind/Envious - female +character_event = { + id = 1005 + desc = "EVTDESC1005" + picture = "GFX_evt_shadowy_cabal" + + only_women = yes + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = envious + } + NOT = { + trait = kind + } + NOT = { + trait = homosexual + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = greedy + } + modifier = { + factor = 1.7 + trait = proud + } + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = "EVTOPTA1005" + if = { + limit = { + trait = gregarious + NOT = { + trait = wroth + } + } + random = { + chance = 70 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + trait = wroth + NOT = { + trait = gregarious + } + } + random = { + chance = 20 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + NOT = { + trait = wroth + } + NOT = { + trait = gregarious + } + } + random = { + chance = 45 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + trait = wroth + trait = gregarious + } + random = { + chance = 45 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + } + option = { + name = "EVTOPTB1005" + if = { + limit = { + trait = gregarious + NOT = { + trait = wroth + } + } + random = { + chance = 70 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + NOT = { + trait = gregarious + } + } + random = { + chance = 20 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + NOT = { + trait = wroth + } + NOT = { + trait = gregarious + } + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + trait = gregarious + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + } +} + +#Kind/Envious - male +character_event = { + id = 1006 + desc = "EVTDESC1006" + picture = "GFX_evt_shadowy_cabal" + + only_men = yes + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = envious + } + NOT = { + trait = kind + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + trait = greedy + } + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 1.7 + trait = charitable + } + modifier = { + factor = 1.7 + trait = humble + } + } + + option = { + name = "EVTOPTA1006" + if = { + limit = { + trait = gregarious + NOT = { + trait = wroth + } + } + random = { + chance = 70 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + NOT = { + trait = gregarious + } + } + random = { + chance = 20 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + NOT = { + trait = wroth + } + NOT = { + trait = gregarious + } + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + trait = gregarious + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + } + option = { + name = "EVTOPTB1006" + if = { + limit = { + trait = lustful + NOT = { + trait = trusting + } + } + random = { + chance = 70 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + trait = trusting + NOT = { + trait = lustful + } + } + random = { + chance = 20 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + NOT = { + trait = trusting + } + NOT = { + trait = lustful + } + } + random = { + chance = 45 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + if = { + limit = { + trait = trusting + trait = lustful + } + random = { + chance = 45 + + add_trait = envious + hidden_tooltip = { + character_event = { + id = 38271 #Notify Envious + } + } + } + } + } +} + +#Wroth/Patient +character_event = { + id = 1007 + desc = "EVTDESC1007" + picture = "GFX_evt_spymaster" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = wroth + } + NOT = { + trait = patient + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = envious + } + modifier = { + factor = 1.7 + trait = cruel + } + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = temperate + } + } + + option = { + name = "EVTOPTA1007" + if = { + limit = { + trait = paranoid + NOT = { + trait = trusting + } + } + random = { + chance = 70 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + if = { + limit = { + trait = trusting + } + random = { + chance = 20 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + if = { + limit = { + NOT = { + trait = trusting + } + NOT = { + trait = paranoid + } + } + random = { + chance = 45 + + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + } + option = { + name = "EVTOPTB1007" + if = { + limit = { + trait = temperate + NOT = { + trait = craven + } + } + random = { + chance = 70 + + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + if = { + limit = { + trait = craven + NOT = { + trait = temperate + } + } + random = { + chance = 20 + + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + if = { + limit = { + NOT = { + trait = temperate + } + NOT = { + trait = craven + } + } + random = { + chance = 45 + + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + if = { + limit = { + trait = temperate + trait = craven + } + random = { + chance = 45 + + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + } +} + +#Proud/Humble +character_event = { + id = 1008 + desc = "EVTDESC1008" + picture = "GFX_evt_throne_room" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = proud + } + NOT = { + trait = humble + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = content + } + } + + option = { + name = "EVTOPTA1008" + if = { + limit = { + trait = fair + NOT = { + trait = honest + } + } + random = { + chance = 70 + + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + if = { + limit = { + NOT = { + trait = fair + } + NOT = { + trait = honest + } + } + random = { + chance = 45 + + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + if = { + limit = { + trait = fair + trait = honest + } + random = { + chance = 45 + + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + if = { + limit = { + NOT = { + trait = fair + } + trait = honest + } + random = { + chance = 20 + + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } + option = { + name = "EVTOPTB1008" + if = { + limit = { + trait = ugly + NOT = { + trait = ambitious + } + } + random = { + chance = 60 + + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + if = { + limit = { + NOT = { + trait = ugly + } + NOT = { + trait = ambitious + } + } + random = { + chance = 45 + + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + if = { + limit = { + trait = ugly + trait = ambitious + } + random = { + chance = 45 + + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + if = { + limit = { + NOT = { + trait = ugly + } + trait = ambitious + } + random = { + chance = 20 + + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Deceitful/Honest +character_event = { + id = 1009 + desc = "EVTDESC1009" + picture = "GFX_evt_whispers" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = deceitful + } + NOT = { + trait = honest + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = envious + } + modifier = { + factor = 1.7 + trait = cruel + } + modifier = { + factor = 1.7 + trait = arbitrary + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = just + } + } + + option = { + name = "EVTOPTA1009" + if = { + limit = { + trait = kind + NOT = { + trait = gregarious + } + } + random = { + chance = 70 + + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + if = { + limit = { + trait = gregarious + NOT = { + trait = kind + } + } + random = { + chance = 20 + + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + if = { + limit = { + NOT = { + trait = kind + } + NOT = { + trait = gregarious + } + } + random = { + chance = 45 + + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + if = { + limit = { + trait = kind + trait = gregarious + } + random = { + chance = 45 + + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + } + option = { + name = "EVTOPTB1009" + if = { + limit = { + trait = zealous + NOT = { + trait = cynical + } + } + random = { + chance = 70 + + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify honest + } + } + } + } + if = { + limit = { + trait = cynical + NOT = { + trait = zealous + } + } + random = { + chance = 20 + + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify honest + } + } + } + } + if = { + limit = { + NOT = { + trait = zealous + } + NOT = { + trait = cynical + } + } + random = { + chance = 45 + + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify honest + } + } + } + } + if = { + limit = { + trait = zealous + trait = cynical + } + random = { + chance = 45 + + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify honest + } + } + } + } + } +} + +#Craven/Brave +character_event = { + id = 1010 + desc = "EVTDESC1010" + picture = "GFX_evt_courier" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOR = { + trait = incapable + personality_traits = 5 + trait = craven + trait = brave + trait = berserker + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = "EVTOPTA1010" + if = { + limit = { + trait = paranoid + NOT = { + trait = cruel + } + } + random = { + chance = 70 + + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + if = { + limit = { + trait = cruel + NOT = { + trait = paranoid + } + } + random = { + chance = 20 + + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + if = { + limit = { + NOT = { + trait = paranoid + } + NOT = { + trait = cruel + } + } + random = { + chance = 45 + + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + if = { + limit = { + trait = paranoid + trait = cruel + } + random = { + chance = 45 + + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + } + option = { + name = "EVTOPTB1010" + if = { + limit = { + trait = ambitious + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify brave + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = ambitious + } + } + random = { + chance = 20 + + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify brave + } + } + } + } + if = { + limit = { + NOT = { + trait = ambitious + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify brave + } + } + } + } + if = { + limit = { + trait = ambitious + trait = slothful + } + random = { + chance = 45 + + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify brave + } + } + } + } + } +} + +#Shy/Gregarious +character_event = { + id = 1011 + desc = "EVTDESC1011" + picture = "GFX_evt_garden" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = shy + } + NOT = { + trait = gregarious + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = chaste + } + modifier = { + factor = 0.7 + trait = celibate + } + modifier = { + factor = 1.5 + trait = lustful + } + modifier = { + factor = 0.5 + trait = hedonist + } + } + + option = { + name = "EVTOPTA1011" + if = { + limit = { + trait = craven + NOT = { + trait = cynical + } + } + random = { + chance = 70 + + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify shy + } + } + } + } + if = { + limit = { + trait = cynical + NOT = { + trait = craven + } + } + random = { + chance = 20 + + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify shy + } + } + } + } + if = { + limit = { + NOT = { + trait = craven + } + NOT = { + trait = cynical + } + } + random = { + chance = 45 + + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify shy + } + } + } + } + if = { + limit = { + trait = craven + trait = cynical + } + random = { + chance = 45 + + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify shy + } + } + } + } + } + option = { + name = "EVTOPTB1011" + if = { + limit = { + trait = brave + NOT = { + trait = paranoid + } + } + random = { + chance = 70 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + if = { + limit = { + trait = paranoid + NOT = { + trait = brave + } + } + random = { + chance = 20 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + if = { + limit = { + NOT = { + trait = brave + } + NOT = { + trait = paranoid + } + } + random = { + chance = 45 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + if = { + limit = { + trait = brave + trait = paranoid + } + random = { + chance = 45 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + } +} + +#Ambitious/Content +character_event = { + id = 1012 + desc = "EVTDESC1012" + picture = "GFX_evt_council" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = ambitious + } + NOT = { + trait = content + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = proud + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = "EVTOPTA1012" + if = { + limit = { + trait = proud + NOT = { + trait = shy + } + } + random = { + chance = 70 + + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + if = { + limit = { + trait = shy + NOT = { + trait = proud + } + } + random = { + chance = 20 + + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + if = { + limit = { + NOT = { + trait = proud + } + NOT = { + trait = shy + } + } + random = { + chance = 45 + + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + if = { + limit = { + trait = proud + trait = shy + } + random = { + chance = 45 + + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + } + option = { + name = "EVTOPTB1012" + if = { + limit = { + trait = patient + NOT = { + trait = lustful + } + } + random = { + chance = 70 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + if = { + limit = { + trait = lustful + NOT = { + trait = patient + } + } + random = { + chance = 20 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + if = { + limit = { + NOT = { + trait = patient + } + NOT = { + trait = lustful + } + } + random = { + chance = 45 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + if = { + limit = { + trait = patient + trait = lustful + } + random = { + chance = 45 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + } +} + +#Arbitrary/Just +character_event = { + id = 1013 + desc = "EVTDESC1013" + picture = "GFX_evt_beheading" + border = GFX_event_normal_frame_economy + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = arbitrary + } + NOT = { + trait = just + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = deceitful + } + modifier = { + factor = 1.7 + trait = cruel + } + modifier = { + factor = 0.5 + trait = honest + } + } + + option = { + name = "EVTOPTA1013" + if = { + limit = { + trait = diligent + NOT = { + trait = shy + } + } + random = { + chance = 70 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + if = { + limit = { + trait = shy + NOT = { + trait = diligent + } + } + random = { + chance = 20 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + if = { + limit = { + NOT = { + trait = diligent + } + NOT = { + trait = shy + } + } + random = { + chance = 45 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + if = { + limit = { + trait = diligent + trait = shy + } + random = { + chance = 45 + + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify Arbitrary + } + } + } + } + } + option = { + name = "EVTOPTB1013" + if = { + limit = { + trait = honest + NOT = { + trait = content + } + } + random = { + chance = 70 + + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + if = { + limit = { + trait = content + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + if = { + limit = { + NOT = { + trait = honest + } + NOT = { + trait = content + } + } + random = { + chance = 45 + + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + if = { + limit = { + trait = honest + trait = content + } + random = { + chance = 45 + + add_trait = just + hidden_tooltip = { + character_event = { + id = 38267 #Notify Just + } + } + } + } + } +} + +#Cynical/Zealous +character_event = { + id = 1014 + desc = "EVTDESC1014" + picture = "GFX_evt_bishop" + + min_age = 16 + religion_group = christian + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = cynical + } + NOT = { + trait = zealous + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + OR = { + trait = quick + trait = shrewd + } + } + modifier = { + factor = 1.5 + trait = genius + } + modifier = { + factor = 0.5 + OR = { + trait = slow + trait = dull + } + } + modifier = { + factor = 2 + trait = imbecile + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2 + trait = mastermind_theologian + } + modifier = { + factor = 2 + trait = scholarly_theologian + } + } + + option = { + name = "EVTOPTA1014" + if = { + limit = { + trait = patient + NOT = { + trait = paranoid + } + } + random = { + chance = 70 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + } + if = { + limit = { + trait = paranoid + NOT = { + trait = patient + } + } + random = { + chance = 20 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + } + if = { + limit = { + NOT = { + trait = patient + } + NOT = { + trait = paranoid + } + } + random = { + chance = 45 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + } + if = { + limit = { + trait = patient + trait = paranoid + } + random = { + chance = 45 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + } + } + } + option = { + name = "EVTOPTB1014" + if = { + limit = { + trait = wroth + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = wroth + } + } + random = { + chance = 20 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } + if = { + limit = { + NOT = { + trait = wroth + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } + if = { + limit = { + trait = wroth + trait = slothful + } + random = { + chance = 45 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + } + } +} + +#Lustful/chaste - female +character_event = { + id = 1015 + desc = "EVTDESC1015" + picture = "GFX_evt_lovers" + + min_age = 16 + only_women = yes + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + #NOT = { + # religion_group = muslim + #} + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + NOT = { + trait = celibate + } + NOT = { + trait = homosexual + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = greedy + } + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = temperate + } + } + + option = { + name = "EVTOPTA1015" + if = { + limit = { + trait = honest + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + NOT = { + trait = honest + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = honest + trait = slothful + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + } + option = { + name = "EVTOPTB1015" + if = { + limit = { + trait = arbitrary + NOT = { + trait = proud + } + } + random = { + chance = 70 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + NOT = { + trait = proud + } + NOT = { + trait = arbitrary + } + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + trait = arbitrary + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + } +} + +#Paranoid/Trusting +character_event = { + id = 1016 + desc = "EVTDESC1016" + picture = "GFX_evt_lunatic" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = paranoid + } + NOT = { + trait = trusting + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = ambitious + } + modifier = { + factor = 1.7 + trait = envious + } + modifier = { + factor = 1.5 + trait = content + } + modifier = { + factor = 0.5 + trait = kind + } + } + + option = { + name = "EVTOPTA1016" + if = { + limit = { + trait = cynical + NOT = { + trait = charitable + } + } + random = { + chance = 70 + + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Notify Paranoid + } + } + } + } + if = { + limit = { + trait = charitable + NOT = { + trait = cynical + } + } + random = { + chance = 20 + + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Notify Paranoid + } + } + } + } + if = { + limit = { + NOT = { + trait = cynical + } + NOT = { + trait = charitable + } + } + random = { + chance = 45 + + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Notify Paranoid + } + } + } + } + if = { + limit = { + trait = cynical + trait = charitable + } + random = { + chance = 45 + + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Notify Paranoid + } + } + } + } + } + option = { + name = "EVTOPTB1016" + if = { + limit = { + trait = gregarious + NOT = { + trait = deceitful + } + } + random = { + chance = 70 + + add_trait = trusting + hidden_tooltip = { + character_event = { + id = 38250 #Notify Trusting + } + } + } + } + if = { + limit = { + trait = deceitful + NOT = { + trait = gregarious + } + } + random = { + chance = 20 + + add_trait = trusting + hidden_tooltip = { + character_event = { + id = 38250 #Notify Trusting + } + } + } + } + if = { + limit = { + NOT = { + trait = gregarious + } + NOT = { + trait = deceitful + } + } + random = { + chance = 45 + + add_trait = trusting + hidden_tooltip = { + character_event = { + id = 38250 #Notify Trusting + } + } + } + } + if = { + limit = { + trait = gregarious + trait = deceitful + } + random = { + chance = 45 + + add_trait = trusting + hidden_tooltip = { + character_event = { + id = 38250 #Notify Trusting + } + } + } + } + } +} + +#Cruel/Kind +character_event = { + id = 1017 + desc = "EVTDESC1017" + picture = "GFX_evt_lunatic" + + min_age = 16 + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + NOT = { + trait = kind + } + NOT = { + trait = cruel + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = envious + } + modifier = { + factor = 1.7 + trait = content + } + modifier = { + factor = 1.7 + trait = kind + } + } + + option = { + name = "EVTOPTA1017" + if = { + limit = { + trait = arbitrary + NOT = { + trait = honest + } + } + random = { + chance = 70 + + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify + } + } + } + } + if = { + limit = { + trait = honest + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify + } + } + } + } + if = { + limit = { + NOT = { + trait = arbitrary + } + NOT = { + trait = honest + } + } + random = { + chance = 45 + + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify + } + } + } + } + if = { + limit = { + trait = arbitrary + trait = honest + } + random = { + chance = 45 + + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify + } + } + } + } + } + option = { + name = "EVTOPTB1017" + if = { + limit = { + trait = gregarious + NOT = { + trait = wroth + } + } + random = { + chance = 70 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + NOT = { + trait = gregarious + } + } + random = { + chance = 20 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + NOT = { + trait = wroth + } + NOT = { + trait = gregarious + } + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + trait = wroth + trait = gregarious + } + random = { + chance = 45 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + } +} + +#Lustful/chaste - Homosexual female +character_event = { + id = 1018 + desc = "EVTDESC1018" + picture = "GFX_evt_lovers" + + min_age = 16 + only_women = yes + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + #NOT = { + # religion_group = muslim + #} + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + NOT = { + trait = celibate + } + trait = homosexual + any_courtier = { + is_female = yes + age = 16 + trait = homosexual + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = greedy + } + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = temperate + } + } + + option = { + name = "EVTOPTA1018" + if = { + limit = { + trait = honest + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + NOT = { + trait = honest + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = honest + trait = slothful + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + } + option = { + name = "EVTOPTB1018" + if = { + limit = { + trait = arbitrary + NOT = { + trait = proud + } + } + random = { + chance = 70 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + NOT = { + trait = proud + } + NOT = { + trait = arbitrary + } + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + trait = arbitrary + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + } +} + +#Lustful/chaste - Homosexual male +character_event = { + id = 1019 + desc = "EVTDESC1019" + picture = "GFX_evt_lovers" + + min_age = 16 + only_men = yes + + is_triggered_only = yes + + trigger = { + NOT = { + personality_traits = 5 + } + #NOT = { + # religion_group = muslim + #} + NOT = { + trait = chaste + } + NOT = { + trait = lustful + } + NOT = { + trait = celibate + } + trait = homosexual + any_courtier = { + is_female = no + age = 16 + trait = homosexual + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.7 + trait = greedy + } + modifier = { + factor = 1.7 + trait = hedonist + } + modifier = { + factor = 1.7 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = temperate + } + } + + option = { + name = "EVTOPTA1019" + if = { + limit = { + trait = honest + NOT = { + trait = slothful + } + } + random = { + chance = 70 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = honest + } + } + random = { + chance = 20 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + NOT = { + trait = honest + } + NOT = { + trait = slothful + } + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + if = { + limit = { + trait = honest + trait = slothful + } + random = { + chance = 45 + + add_trait = lustful + hidden_tooltip = { + character_event = { + id = 38272 #Notify Lustful + } + } + } + } + } + option = { + name = "EVTOPTB1019" + if = { + limit = { + trait = arbitrary + NOT = { + trait = proud + } + } + random = { + chance = 70 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + NOT = { + trait = arbitrary + } + } + random = { + chance = 20 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + NOT = { + trait = proud + } + NOT = { + trait = arbitrary + } + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + if = { + limit = { + trait = proud + trait = arbitrary + } + random = { + chance = 45 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } + } +} + +### THESE EVENTS REMOVES TRAITS ### + +# Remove Lustful - male +character_event = { + id = 1028 + desc = "EVTDESC1028" + picture = "GFX_evt_lovers" + + min_age = 16 + only_men = yes + only_capable = yes + + is_triggered_only = yes + + trigger = { + trait = lustful + personality_traits = 6 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1028" + remove_trait = lustful + } +} + +# Remove Chaste +character_event = { + id = 1029 + desc = "EVTDESC1029" + picture = "GFX_evt_lovers" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + trait = chaste + personality_traits = 6 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1000" + trigger = { + OR = { + AND = { + is_female = yes + trait = homosexual + } + AND = { + is_female = no + NOT = { trait = homosexual } + } + } + } + remove_trait = chaste + } + + option = { + name = "EVTOPTB1029" + trigger = { + OR = { + AND = { + is_female = yes + NOT = { + trait = homosexual + } + } + AND = { + is_female = no + trait = homosexual + } + } + } + remove_trait = chaste + } +} + +#Remove Temperate +character_event = { + id = 1030 + desc = "EVTDESC1030" + picture = "GFX_evt_feast" + + min_age = 16 + only_capable = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = temperate + personality_traits = 6 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1030" + remove_trait = temperate + } +} + +#Remove Gluttonous +character_event = { + id = 1031 + desc = "EVTDESC1031" + picture = "GFX_evt_feast" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_temperance_food + } + trait = gluttonous + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 10 + has_ambition = obj_buddhist_temperance_food + } + } + + option = { + name = "EVTOPTA1031" + remove_trait = gluttonous + } +} + +#Remove Charitable +character_event = { + id = 1032 + desc = "EVTDESC1032" + picture = "GFX_evt_market" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = charitable + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1032" + remove_trait = charitable + } +} + +#Remove Greedy +character_event = { + id = 1033 + desc = "EVTDESC1033" + picture = "GFX_evt_market" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_reject_greed + } + trait = greedy + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_reject_greed + } + } + + option = { + name = "EVTOPTA1033" + remove_trait = greedy + } +} + +#Remove Diligent +character_event = { + id = 1034 + desc = "EVTDESC1034" + picture = "GFX_evt_emissary" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = diligent + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1034" + remove_trait = diligent + } +} + +#Remove Slothful +character_event = { + id = 1035 + desc = "EVTDESC1035" + picture = "GFX_evt_drunk" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = slothful + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1035" + remove_trait = slothful + } +} + +#Remove Kind +character_event = { + id = 1036 + desc = "EVTDESC1036" + picture = "GFX_evt_family" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = kind + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1036" + remove_trait = kind + } +} + +#Remove Envious +character_event = { + id = 1037 + desc = "EVTDESC1037" + picture = "GFX_evt_shadowy_cabal" + + min_age = 16 + only_capable = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_reject_envy + } + trait = envious + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_reject_envy + } + } + + option = { + name = "EVTOPTA1037" + remove_trait = envious + } +} + +#Remove Patient +character_event = { + id = 1038 + desc = "EVTDESC1038" + picture = "GFX_evt_emissary" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = patient + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1038" + remove_trait = patient + } +} + +#Remove Wroth +character_event = { + id = 1039 + desc = "EVTDESC1039" + picture = "GFX_evt_melee" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_reject_hate + } + trait = wroth + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_reject_hate + } + } + + option = { + name = "EVTOPTA1039" + remove_trait = wroth + } +} + +#Remove Humble +character_event = { + id = 1040 + desc = "EVTDESC1040" + picture = "GFX_evt_garden" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = humble + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1040" + remove_trait = humble + } +} + +#Remove Proud +character_event = { + id = 1041 + desc = "EVTDESC1041" + picture = "GFX_evt_throne_room" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_reject_pride + } + trait = proud + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_reject_pride + } + } + + option = { + name = "EVTOPTA1041" + remove_trait = proud + } +} + +#Remove Lustful - female +character_event = { + id = 1042 + desc = "EVTDESC1042" + picture = "GFX_evt_lovers" + + min_age = 16 + only_capable = yes + only_women = yes + + is_triggered_only = yes + + trigger = { + trait = lustful + personality_traits = 6 + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1028" + remove_trait = lustful + } +} + +#Remove Honest +character_event = { + id = 1043 + desc = "EVTDESC1043" + picture = "GFX_evt_quarrel" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = honest + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1043" + remove_trait = honest + } +} + +# Remove Deceitful +character_event = { + id = 1044 + desc = "EVTDESC1044" + picture = "GFX_evt_shadowy_cabal" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = deceitful + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1044" + remove_trait = deceitful + } +} + +# Remove Brave +character_event = { + id = 1045 + desc = "EVTDESC1045" + picture = "GFX_evt_melee" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = brave + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1045" + remove_trait = brave + } +} + +# Remove Craven +character_event = { + id = 1046 + desc = "EVTDESC1046" + picture = "GFX_evt_courier" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_defeat_fear + } + trait = craven + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_defeat_fear + } + } + + option = { + name = "EVTOPTA1046" + remove_trait = craven + } +} + +# Remove Gregarious +character_event = { + id = 1047 + desc = "EVTDESC1047" + picture = "GFX_evt_feast" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = gregarious + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1047" + remove_trait = gregarious + } +} + +# Remove Shy +character_event = { + id = 1048 + desc = "EVTDESC1048" + picture = "GFX_evt_family" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = shy + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1048" + remove_trait = shy + } +} + +# Remove Content +character_event = { + id = 1049 + desc = "EVTDESC1049" + picture = "GFX_evt_garden" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = content + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1049" + remove_trait = content + } +} + +# Remove Ambitious +character_event = { + id = 1050 + desc = "EVTDESC1050" + picture = "GFX_evt_emissary" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = ambitious + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1050" + remove_trait = ambitious + } +} + +# Remove Just +character_event = { + id = 1051 + desc = "EVTDESC1051" + picture = "GFX_evt_emissary" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = just + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1051" + remove_trait = just + } +} + +# Remove Arbitrary +character_event = { + id = 1052 + desc = "EVTDESC1052" + picture = "GFX_evt_beheading" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = arbitrary + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1052" + remove_trait = arbitrary + } +} + +# Remove Zealous +character_event = { + id = 1053 + desc = "EVTDESC1053" + picture = "GFX_evt_beheading" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = zealous + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1053" + remove_trait = zealous + } +} + +# Remove Cynical +character_event = { + id = 1054 + desc = "EVTDESC1054" + picture = "GFX_evt_jugglers" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = cynical + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1054" + remove_trait = cynical + } +} + +# Remove Paranoid +character_event = { + id = 1057 + desc = "EVTDESC1057" + picture = "GFX_evt_lunatic" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + OR = { + personality_traits = 6 + has_ambition = obj_buddhist_defeat_fear + } + trait = paranoid + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + modifier = { + factor = 20 + has_ambition = obj_buddhist_defeat_fear + } + } + + option = { + name = "EVTOPTA1057" + remove_trait = paranoid + } +} + +# Remove Trusting +character_event = { + id = 1058 + desc = "EVTDESC1058" + picture = "GFX_evt_family" + + min_age = 16 + only_capable = yes + + is_triggered_only = yes + + trigger = { + personality_traits = 6 + trait = trusting + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + personality_traits = 6 + } + } + + option = { + name = "EVTOPTA1058" + remove_trait = trusting + } +} diff --git a/After the End/events/plot_events.txt b/After the End/events/plot_events.txt index 0c1ee4403..1ede6a4a9 100644 --- a/After the End/events/plot_events.txt +++ b/After the End/events/plot_events.txt @@ -256,7 +256,7 @@ character_event = { } is_plot_active = no OR = { - NOT = { religion_group = muslim } + NOT = { religion_group = latter_day_saints } trait = hedonist trait = drunkard } @@ -397,7 +397,7 @@ character_event = { } is_plot_active = no OR = { - NOT = { religion_group = muslim } + NOT = { religion_group = latter_day_saints } trait = hedonist trait = drunkard } @@ -3755,7 +3755,7 @@ character_event = { NOT = { trait = incapable } NOT = { is_inaccessible_trigger = yes } OR = { - NOT = { religion_group = muslim } + NOT = { religion_group = latter_day_saints } trait = decadent trait = hedonist trait = drunkard diff --git a/After the End/events/polygamy_events.txt b/After the End/events/polygamy_events.txt new file mode 100644 index 000000000..bce948fe1 --- /dev/null +++ b/After the End/events/polygamy_events.txt @@ -0,0 +1,1184 @@ +###################################### +# +# Polygamy Events +# +# Event ID 89000 - 89249 reserved +# +###################################### + +### Wives fall in love with each other +character_event = { + id = 89000 + desc = "EVTDESC89000" + picture = GFX_evt_lovers + + min_age = 16 + only_capable = yes + prisoner = no + only_women = yes + religion_group = latter_day_saints + is_married = yes + + trigger = { + trait = homosexual + spouse = { + any_spouse = { + NOT = { character = ROOT } + trait = homosexual + is_alive = yes + at_location = ROOT + } + } + NOT = { + has_character_flag = thelma + has_character_flag = louise + } + } + + mean_time_to_happen = { + months = 3 + } + + option = { + name = "EVTOPTA89000" + set_character_flag = thelma + spouse = { + any_spouse = { + limit = { + trait = homosexual + NOT = { character = ROOT } + } + set_character_flag = louise + add_lover = ROOT + } + hidden_tooltip = { + character_event = { id = 89001 days = 14 } + } + } + } +} + +# Husband finds out +character_event = { + id = 89001 + desc = "EVTDESC89001" + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { # Accept it. + name = "EVTOPTA89001" + decadence = 2 + any_spouse = { + limit = { has_character_flag = thelma } + opinion = { + modifier = opinion_grateful + who = ROOT + months = 12 + } + } + any_spouse = { + limit = { has_character_flag = louise } + opinion = { + modifier = opinion_grateful + who = ROOT + months = 12 + } + } + } + option = { # Order them to stop. + name = "EVTOPTB89001" + hidden_tooltip = { + character_event = { id = 89002 days = 30 } + } + piety = 20 + } + option = { # Execute them + name = "EVTOPTC89001" + any_spouse = { + limit = { has_character_flag = thelma } + death = { death_reason = death_execution killer = ROOT } + } + any_spouse = { + limit = { has_character_flag = louise } + death = { death_reason = death_execution killer = ROOT } + } + } +} + +# Husband finds out they've fled! +character_event = { + id = 89002 + desc = "EVTDESC89002" + picture = GFX_evt_bad_news + + is_triggered_only = yes + + option = { + name = "EVTOPTA89002" + character_event = { id = 89003 tooltip = "EVTTOOLTIP89003" } + } +} + +# The wives drive their carriage over a cliff +character_event = { + id = 89003 + desc = "EVTDESC89003" + picture = GFX_evt_moors + + is_triggered_only = yes + + option = { + name = "EVTOPTA89003" + any_spouse = { + limit = { has_character_flag = thelma } + death = { death_reason = death_suicide_fall } + } + any_spouse = { + limit = { has_character_flag = louise } + death = { death_reason = death_suicide_fall } + } + } +} + +### Secondary Wife schemes to become First Wife + +# Secondary Wife thinks she should be First Wife +character_event = { + id = 89005 + desc = "EVTDESC89005" + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + only_women = yes + religion_group = latter_day_saints + is_married = yes + + trigger = { + is_pregnant = no + NOT = { is_inaccessible_trigger = yes } + is_main_spouse = no + } + + mean_time_to_happen = { + months = 420 + modifier = { + factor = 0.25 + trait = envious + } + modifier = { + factor = 0.25 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = deceitful + } + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 2.0 + trait = shy + } + modifier = { + factor = 4.0 + trait = content + } + } + + option = { # Kill First Wife! + name = "EVTOPTA89005" + #tooltip_info = + trigger = { + OR = { + trait = cruel + trait = deceitful + trait = lunatic + } + } + set_character_flag = plotting_second_wife + ai_chance = { factor = 40 } + random_list = { + 50 = { + spouse = { + random_spouse = { + limit = { is_main_spouse = yes } + death = { + death_reason = death_murder_poison + killer = ROOT + } + } + character_event = { id = 89006 days = 4 tooltip = "EVTTOOLTIP89007" } + } + } + 50 = { + spouse = { + random_spouse = { + limit = { is_main_spouse = yes } + character_event = { id = 89007 days = 4 tooltip = "EVTTOOLTIP89007" } + } + } + } + } + } + option = { # Woo husband + name = "EVTOPTB89005" + set_character_flag = plotting_second_wife + ai_chance = { factor = 40 } + spouse = { + character_event = { id = 89010 days = 4 tooltip = "EVTTOOLTIP89010" } + } + } + option = { # Do nothing + name = "EVTOPTC89005" + ai_chance = { factor = 20 } + random_list = { + 50 = { + if = { + limit = { + NOT = { + trait = content + trait = ambitious + } + } + add_trait = content + piety = 20 + } + } + 50 = { + piety = 20 + } + } + } +} + +# First Wife is murdered by Second Wife +character_event = { + id = 89006 + desc = "EVTDESC89006" + picture = GFX_evt_death + + is_triggered_only = yes + + option = { # Accept it + name = "EVTOPTA89006" + } + option = { # Send killer to prison + name = "EVTOPTB89006" + random_spouse = { + limit = { has_character_flag = plotting_second_wife } + imprison = yes + clr_character_flag = plotting_second_wife + } + } + option = { # Have killer executed + name = "EVTOPTC89006" + random_spouse = { + limit = { has_character_flag = plotting_second_wife } + death = { + death_reason = death_execution_poison + killer = ROOT + } + clr_character_flag = plotting_second_wife + } + } +} + +# First Wife is informed of failed murder attempt +character_event = { + id = 89007 + desc = "EVTDESC89007" + picture = GFX_evt_shadow + + is_triggered_only = yes + + option = { + name = "EVTOPTA89007" + spouse = { + character_event = { id = 89008 days = 4 tooltip = "EVTTOOLTIP89008" } + } + } +} + +# Husband is informed of failed murder attempt +character_event = { + id = 89008 + desc = "EVTDESC89008" + picture = GFX_evt_shadow + + is_triggered_only = yes + + option = { # Execute wife + name = "EVTOPTA89008" + random_spouse = { + limit = { has_character_flag = plotting_second_wife } + death = { + death_reason = death_execution + killer = ROOT + } + clr_character_flag = plotting_second_wife + } + } + option = { # Imprison wife + name = "EVTOPTB89008" + random_spouse = { + limit = { has_character_flag = plotting_second_wife } + imprison = yes + clr_character_flag = plotting_second_wife + } + } + option = { # Tell wife to fight own battles + name = "EVTOPTC89008" + random_spouse = { + limit = { is_main_spouse = yes } + hidden_tooltip = { + character_event = { id = 89009 days = 4 } + } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + } + } +} + +# First Wife told to fight her own battles. +character_event = { + id = 89009 + desc = "EVTDESC89009" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89009" + } +} + +# Second Wife tries to manipulate Husband +character_event = { + id = 89010 + desc = "EVTDESC89010" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89010" + random_spouse = { + limit = { is_main_spouse = yes } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 4 + } + hidden_tooltip = { + character_event = { id = 89011 days = 16 } + } + } + FROM = { + make_primary_spouse = yes + opinion = { + who = ROOT + modifier = opinion_happy + years = 2 + } + } + } + option = { + name = "EVTOPTB89010" + FROM = { + opinion = { + who = ROOT + modifier = opinion_disappointed + years = 2 + } + } + } +} + +# Former First Wife schemes against new First Wife +character_event = { + id = 89011 + desc = "EVTDESC89011" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89011" + ai_chance = { factor = 30 } + random_list = { + 30 = { + spouse = { + random_spouse = { + limit = { is_main_spouse = yes } + death = { + death_reason = death_murder_poison + killer = ROOT + } + } + hidden_tooltip = { + character_event = { id = 89012 } + } + } + } + 70 = { + } + } + } + option = { + name = "EVTOPTB89011" + ai_chance = { factor = 70 } + } +} + +# Former First Wife murders new First Wife +character_event = { + id = 89012 + desc = "EVTDESC89012" + picture = GFX_evt_death + + is_triggered_only = yes + + option = { + name = "EVTOPTA89012" + decadence = 5 + } + option = { + name = "EVTOPTB89012" + FROM = { imprison = yes } + } + option = { + name = "EVTOPTC89012" + FROM = { + death = { + death_reason = death_execution + killer = ROOT + } + } + } +} + +### First Wife thinks her son should get a county if he is not heir +character_event = { + id = 89015 + desc = "EVTDESC89015" + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = latter_day_saints + only_women = yes + is_married = yes + + trigger = { + num_of_children = 1 + is_pregnant = no + is_main_spouse = yes + spouse = { demesne_size = 5 } + spouse = { religion_group = latter_day_saints } + NOT = { has_character_flag = envious_mother } + any_child = { + is_female = no + is_primary_heir = no + is_alive = yes + age = 14 + father = { any_spouse = { character = ROOT } } + } + NOT = { any_child = { is_primary_heir = yes } } + NOT = { any_child = { has_character_flag = first_wife_son } } + } + + mean_time_to_happen = { + months = 320 + modifier = { + factor = 0.25 + trait = envious + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 4.0 + trait = content + } + } + + + option = { # Speak to husband + name = "EVTOPTA89015" + ai_chance = { factor = 100 } + set_character_flag = envious_mother + random_child = { + limit = { + is_female = no + age = 14 + is_primary_heir = no + father = { any_spouse = { character = ROOT } } + } + set_character_flag = first_wife_son + character_event = { id = 89016 days = 2 tooltip = "EVTTOOLTIP89016" } + } + } + option = { # Do nothing + ai_chance = { factor = 0 } + name = "EVTOPTB89015" + } +} + +# Son informed +character_event = { + id = 89016 + desc = "EVTDESC89016" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89016" + father = { character_event = { id = 89017 days = 2 tooltip = "EVTTOOLTIP89017" } } + } +} + +# Husband informed +character_event = { + id = 89017 + desc = "EVTDESC89017" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { # Grant county + name = "EVTOPTA89017" + random_demesne_title = { + limit = { + NOT = { tier = duke } + NOT = { tier = king } + NOT = { tier = emperor } + NOT = { location = { is_capital = yes } } + } + ROOT = { + any_child = { + limit = { has_character_flag = first_wife_son } + grant_title = PREVPREV + } + } + } + } + option = { # Say no + name = "EVTOPTB89017" + FROM = { + mother = { + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + } + } + hidden_tooltip = { + any_child = { + limit = { has_character_flag = first_wife_son } + character_event = { id = 89018 days = 2 } + } + } + } +} + +# Son informed he is not getting county +character_event = { + id = 89018 + desc = "EVTDESC89018" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89018" + FROM = { + opinion = { + who = ROOT + modifier = opinion_disappointed + years = 2 + } + } + } +} + + +### Secondary Wife plots to kill heir +character_event = { + id = 89020 + desc = "EVTDESC89020" + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = latter_day_saints + only_women = yes + is_married = yes + + trigger = { + num_of_children = 1 + is_pregnant = no + NOT = { is_inaccessible_trigger = yes } + spouse = { + is_ruler = yes + any_child = { + is_primary_heir = yes + ai = yes + is_alive = yes + NOT = { age = 16 } + mother = { NOT = { character = ROOT } } + at_location = ROOT + } + } + any_child = { + is_female = no + is_alive = yes + is_primary_heir = no + is_pretender = yes + } + NOT = { + any_child = { is_primary_heir = yes } + has_character_flag = murdering_wife + } + } + + mean_time_to_happen = { + months = 420 + modifier = { + factor = 0.25 + trait = envious + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 4.0 + trait = content + } + } + + option = { # Murder heir + name = "EVTOPTA89020" + ai_chance = { factor = 100 } + set_character_flag = murdering_wife + random_list = { + 35 = { + spouse = { + any_child = { + limit = { is_primary_heir = yes } + character_event = { id = 89023 days = 4 tooltip = "EVTTOOLTIP89023" } + } + hidden_tooltip = { + random_list = { + 50 = { + character_event = { id = 89024 tooltip = "EVTTOOLTIP89024" } + any_child = { + limit = { is_primary_heir = yes } + death = { + death_reason = death_murder_unknown_poison + killer = ROOT + } + } + } + 50 = { + character_event = { id = 89025 tooltip = "EVTTOOLTIP89025" } + any_child = { + limit = { is_primary_heir = yes } + death = { + death_reason = death_murder_unknown_poison + killer = ROOT + } + } + } + } + } + } + } + 65 = { + spouse = { + any_child = { + limit = { is_primary_heir = yes } + character_event = { id = 89021 days = 4 tooltip = "EVTTOOLTIP89021" } + } + hidden_tooltip = { + character_event = { id = 89022 tooltip = "EVTTOOLTIP89022" } + } + } + } + } + } + option = { # Do nothing + ai_chance = { factor = 0 } + name = "EVTOPTB89020" + } +} + +# Heir is informed of failed attempt +character_event = { + id = 89021 + desc = "EVTDESC89021" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89021" + } +} + +# Husband is informed of failed attempt +character_event = { + id = 89022 + desc = "EVTDESC89022" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { # Kill wife + name = "EVTOPTA89022" + FROM = { death = { death_reason = death_execution killer = ROOT } } + } + option = { # Imprison wife + name = "EVTOPTB89022" + FROM = { imprison = yes } + hidden_tooltip = { + any_child = { + limit = { is_primary_heir = yes } + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + mother = { + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + } + } + } + } + option = { # Do nothing + name = "EVTOPTC89022" + any_child = { + limit = { is_primary_heir = yes } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + mother = { + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + } + } + hidden_tooltip = { + any_child = { + limit = { is_primary_heir = yes } + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + mother = { + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + } + } + } + } +} + +# Heir is killed +character_event = { + id = 89023 + desc = "EVTDESC89023" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89023" + } +} + +# Husband informed heir is killed, killer is unknown +character_event = { + id = 89024 + desc = "EVTDESC89024" + picture = GFX_evt_quarrel + + hide_from = yes + + is_triggered_only = yes + + option = { + name = "EVTOPTA89024" + } +} + +# Husband informed heir is killed, killer is known +character_event = { + id = 89025 + desc = "EVTDESC89025" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { # Kill wife + name = "EVTOPTA89025" + FROM = { death = { death_reason = death_execution killer = ROOT } } + } + option = { # Imprison wife + name = "EVTOPTB89025" + FROM = { imprison = yes } + hidden_tooltip = { + any_spouse = { + limit = { + NOT = { character = FROM } + } + opinion = { + who = FROM + modifier = evil_murderer + years = 40 + } + } + } + } + option = { # Do nothing + name = "EVTOPTC89025" + any_spouse = { + limit = { + NOT = { character = FROM } + } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 8 + } + opinion = { + who = FROM + modifier = evil_murderer + years = 40 + } + } + } +} + +### Evil wife plots to kill sons that aren't hers +character_event = { + id = 89030 + desc = "EVTDESC89030" + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = latter_day_saints + only_women = yes + is_married = yes + + trigger = { + num_of_children = 1 + is_pregnant = no + NOT = { is_inaccessible_trigger = yes } + any_child = { + is_female = no + is_alive = yes + } + spouse = { + any_child = { + ai = yes + is_alive = yes + is_female = no + NOT = { age = 16 } + mother = { NOT = { character = ROOT } } + is_primary_heir = no + at_location = ROOT + } + } + NOT = { trait = kind } + } + + mean_time_to_happen = { + months = 820 + modifier = { + factor = 0.25 + trait = envious + } + modifier = { + factor = 0.25 + trait = cruel + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.75 + trait = greedy + } + modifier = { + factor = 5.0 + trait = honest + } + modifier = { + factor = 5.0 + trait = just + } + modifier = { + factor = 5.0 + trait = content + } + } + + option = { # Murder son + name = "EVTOPTA89020" + ai_chance = { factor = 100 } + random_list = { + 50 = { + spouse = { + random_child = { + limit = { + NOT = { age = 16 } + is_female = no + mother = { NOT = { character = ROOT } } + is_primary_heir = no + is_alive = yes + } + set_character_flag = victim_son + character_event = { id = 89033 days = 4 tooltip = "EVTTOOLTIP89023" } + } + hidden_tooltip = { + random_list = { + 50 = { + character_event = { id = 89034 } + any_child = { + limit = { has_character_flag = victim_son } + death = { death_reason = death_murder_unknown_poison killer = ROOT } + } + } + 50 = { + character_event = { id = 89035 } + any_child = { + limit = { has_character_flag = victim_son } + death = { death_reason = death_murder_poison killer = ROOT } + } + } + } + } + } + } + 50 = { + spouse = { + random_child = { + limit = { + NOT = { age = 16 } + is_female = no + mother = { NOT = { character = ROOT } } + is_primary_heir = no + is_alive = yes + } + character_event = { id = 89031 days = 4 tooltip = "EVTTOOLTIP89021" } + } + hidden_tooltip = { + character_event = { id = 89032 } + } + } + } + } + } + option = { # Do nothing + ai_chance = { factor = 0 } + name = "EVTOPTB89020" + } +} + +# Son is informed of failed attempt +character_event = { + id = 89031 + desc = "EVTDESC89021" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89021" + clr_character_flag = victim_son + } +} + +# Husband is informed of failed attempt +character_event = { + id = 89032 + desc = "EVTDESC89032" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { # Kill wife + name = "EVTOPTA89022" + FROM = { death = { death_reason = death_execution killer = ROOT } } + } + option = { # Imprison wife + name = "EVTOPTB89022" + FROM = { imprison = yes } + hidden_tooltip = { + any_child = { + limit = { has_character_flag = victim_son } + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + mother = { + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + } + } + } + } + option = { # Do nothing + name = "EVTOPTC89022" + any_child = { + limit = { has_character_flag = victim_son } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + mother = { + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 2 + } + } + } + hidden_tooltip = { + any_child = { + limit = { has_character_flag = victim_son } + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + mother = { + opinion = { + who = FROM + modifier = attempted_murder + years = 30 + } + } + } + } + } +} + +# Son is killed +character_event = { + id = 89033 + desc = "EVTDESC89023" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = "EVTOPTA89023" + clr_character_flag = victim_son + } +} + +# Husband informed son is killed, killer is unknown +character_event = { + id = 89034 + desc = "EVTDESC89034" + picture = GFX_evt_quarrel + + hide_from = yes + + is_triggered_only = yes + + option = { + name = "EVTOPTA89024" + } +} + +# Husband informed son is killed, killer is known +character_event = { + id = 89035 + desc = "EVTDESC89035" + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { # Kill wife + name = "EVTOPTA89025" + FROM = { death = { death_reason = death_execution killer = ROOT } } + } + option = { # Imprison wife + name = "EVTOPTB89025" + FROM = { imprison = yes } + hidden_tooltip = { + any_spouse = { + limit = { + NOT = { character = FROM } + } + opinion = { + who = FROM + modifier = evil_murderer + years = 40 + } + } + } + } + option = { # Do nothing + name = "EVTOPTC89025" + any_spouse = { + limit = { + NOT = { character = FROM } + } + opinion = { + who = ROOT + modifier = opinion_very_disappointed + years = 8 + } + opinion = { + who = FROM + modifier = evil_murderer + years = 40 + } + } + } +} \ No newline at end of file diff --git a/After the End/events/province_lordship_events.txt b/After the End/events/province_lordship_events.txt new file mode 100644 index 000000000..7a5948a51 --- /dev/null +++ b/After the End/events/province_lordship_events.txt @@ -0,0 +1,568 @@ +################################### +# +# Province Lordship Events +# +# Id 77000 - 77999 is reserved +# +################################### +# +# Designed by Johan Andersson +# Written by Sara Wendel-Örtqvist + +# The Clergy demands a stop to commerce in all church squares +province_event = { + id = 77000 + desc = EVTDESC77000 + picture = GFX_evt_market + + trigger = { + religion_group = christian + owner = { + religion_group = christian + } + NOT = { + has_province_modifier = stop_commerce + } + any_province_lord = { + is_theocracy = yes + } + any_province_lord = { + is_republic = yes + } + } + + mean_time_to_happen = { + months = 36000 + } + + option = { + name = EVTOPTA77000 + owner = { + piety = 5 + } + add_province_modifier = { + name = stop_commerce + duration = 3650 + } + random_province_lord = { + limit = { + is_theocracy = yes + } + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB77000 + random_province_lord = { + limit = { + is_theocracy = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# Burghers demands that city laws is set higher than canonical law +province_event = { + id = 77001 + desc = EVTDESC77001 + picture = GFX_evt_cathedral + + trigger = { + religion_group = christian + owner = { + religion_group = christian + } + any_province_lord = { + is_theocracy = yes + } + any_province_lord = { + is_republic = yes + } + } + + mean_time_to_happen = { + months = 36000 + } + + option = { + name = EVTOPTA77001 + random_province_lord = { + limit = { + is_theocracy = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB77001 + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# The Nobility demands Prima Noctae rights +province_event = { + id = 77002 + desc = EVTDESC77002 + picture = GFX_evt_peasants + + trigger = { + religion_group = christian + NOT = { + has_province_modifier = prima_noctae + } + any_province_lord = { + is_adult = yes + is_female = no + is_feudal = yes + ROOT = { + owner = { + NOT = { + character = PREVPREV + } + } + } + } + } + + immediate = { + random_province_lord = { + limit = { + is_adult = yes + is_female = no + is_feudal = yes + ROOT = { + owner = { + NOT = { + character = PREVPREV + } + } + } + } + save_event_target_as = target_province_lord + } + } + + mean_time_to_happen = { + months = 36000 + } + + option = { + name = EVTOPTA77002 + event_target:target_province_lord = { + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + add_province_modifier = { + name = prima_noctae + duration = 3650 + } + } + option = { + name = EVTOPTB77002 + event_target:target_province_lord = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# The Burgers demands that peasants be forbidden to sell goods within the city walls +province_event = { + id = 77003 + desc = EVTDESC77003 + picture = GFX_evt_market + + trigger = { + #owner = { + # NOT = { religion_group = muslim } + # NOT = { religion_group = jewish_group } + #} + any_province_lord = { + is_republic = yes + } + NOT = { + has_province_modifier = peasants_forbidden_sale + } + } + + mean_time_to_happen = { + months = 36000 + + } + + option = { + name = EVTOPTA77003 + add_province_modifier = { + name = peasants_forbidden_sale + duration = 3650 + } + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB77003 + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# The Nobles demands hunting rights on church lands +province_event = { + id = 77004 + desc = EVTDESC77004 + picture = GFX_evt_hunt + + trigger = { + religion_group = christian + owner = { + religion_group = christian + } + any_province_lord = { + is_adult = yes + is_feudal = yes + is_female = no + NOT = { trait = incapable } + } + any_province_lord = { + NOT = { trait = incapable } + is_theocracy = yes + } + } + + mean_time_to_happen = { + months = 36000 + + } + + immediate = { + random_province_lord = { + limit = { + is_adult = yes + is_feudal = yes + is_female = no + NOT = { trait = incapable } + } + save_event_target_as = target_feudal + } + random_province_lord = { + limit = { + NOT = { trait = incapable } + is_theocracy = yes + } + save_event_target_as = target_bishop + } + } + + option = { + name = EVTOPTA77004 + event_target:target_feudal = { + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + event_target:target_bishop = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB77004 + event_target:target_bishop = { + opinion = { + modifier = opinion_happy + who = ROOT + years = 2 + } + } + event_target:target_feudal = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# The Clergy demands right to collect extra tithe on free peasants +province_event = { + id = 77005 + desc = EVTDESC77005 + picture = GFX_evt_stone_church + + trigger = { + religion_group = christian + owner = { + religion_group = christian + } + NOT = { + has_province_modifier = clergy_extra_tithe + } + any_province_lord = { + is_theocracy = yes + } + } + + mean_time_to_happen = { + months = 36000 + + } + + option = { + name = EVTOPTA77005 + add_province_modifier = { + name = clergy_extra_tithe + duration = 3650 + } + } + option = { + name = EVTOPTB77005 + random_province_lord = { + limit = { + is_theocracy = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# Sell titles to rich merchants +province_event = { + id = 77006 + desc = EVTDESC77006 + picture = GFX_evt_market + + trigger = { + any_province_lord = { + is_feudal = yes + ROOT = { + owner = { + NOT = { + character = PREVPREV + } + } + } + } + any_province_lord = { + is_republic = yes + } + } + + mean_time_to_happen = { + months = 36000 + + } + + option = { + name = EVTOPTA77006 + owner = { + scaled_wealth = 0.25 + } + random_province_lord = { + limit = { + is_feudal = yes + ROOT = { + owner = { + NOT = { + character = PREVPREV + } + } + } + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB77006 + random_province_lord = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } +} + +# Rights to spoils from shipwrecks +province_event = { + id = 77007 + desc = EVTDESC77007 + picture = GFX_evt_merchant_ship_at_sea_republic + + trigger = { + port = yes + religion_group = christian + owner = { + religion_group = christian + } + any_province_lord = { + is_feudal = yes + } + any_province_lord = { + is_republic = yes + } + any_province_lord = { + is_theocracy = yes + } + } + + mean_time_to_happen = { + months = 36000 + + } + + option = { + name = EVTOPTA77007 + trigger = { + owner = { + NOT = { + is_theocracy = yes + } + } + } + random_province_lord = { + limit = { + is_theocracy = yes + } + opinion ={ + modifier = opinion_happy + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB77007 + trigger = { + owner = { + NOT = { + is_republic = yes + } + } + } + random_province_lord = { + limit = { + is_republic = yes + } + opinion ={ + modifier = opinion_happy + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC77007 + trigger = { + owner = { + NOT = { + is_feudal = yes + } + } + } + random_province_lord = { + limit = { + is_feudal = yes + ROOT = { + owner = { + NOT = { + character = PREVPREV + } + } + } + } + opinion ={ + modifier = opinion_happy + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTD77007 + owner = { + scaled_wealth = { value = 0.05 min = 10 } + } + } +} \ No newline at end of file diff --git a/After the End/events/ramadan_events.txt b/After the End/events/ramadan_events.txt new file mode 100644 index 000000000..290d181b2 --- /dev/null +++ b/After the End/events/ramadan_events.txt @@ -0,0 +1 @@ +#Disabled \ No newline at end of file diff --git a/After the End/events/religious_events.txt b/After the End/events/religious_events.txt index 56ce86200..5d92595e5 100644 --- a/After the End/events/religious_events.txt +++ b/After the End/events/religious_events.txt @@ -1661,9 +1661,8 @@ character_event = { NOT = { has_character_flag = pope_dislikes_heathen_employed } any_courtier = { prisoner = no - OR = { - religion_group = muslim - religion_group = pagan_group + NOT = { + religion_group = christian # Why was this set up individually in vanilla? And apparently the Pope doesn't care about Hindu councillors? } OR = { has_job_title = job_chancellor diff --git a/After the End/events/rip_eternal_life_events.txt b/After the End/events/rip_eternal_life_events.txt index 8651d8930..0ea51f321 100644 --- a/After the End/events/rip_eternal_life_events.txt +++ b/After the End/events/rip_eternal_life_events.txt @@ -1602,24 +1602,35 @@ narrative_event = { if = { limit = { - FROM = { religion_group = muslim } + FROM = { religion_group = oldworld } NOT = { - trait = sympathy_islam + trait = sympathy_oldworld FROM = { religion_group = ROOT } } } - add_trait = sympathy_islam + add_trait = sympathy_oldworld } if = { limit = { - FROM = { religion_group = indian_group } + FROM = { religion_group = afro_syncretic } NOT = { - trait = sympathy_indian + trait = sympathy_afro_syncretic FROM = { religion_group = ROOT } } } - add_trait = sympathy_indian + add_trait = sympathy_afro_syncretic + } + + if = { + limit = { + FROM = { religion_group = american_native } + NOT = { + trait = sympathy_american_native + FROM = { religion_group = ROOT } + } + } + add_trait = sympathy_american_native } } #Leave for different religion diff --git a/After the End/events/rip_flavor_events.txt b/After the End/events/rip_flavor_events.txt new file mode 100644 index 000000000..cc8f9287f --- /dev/null +++ b/After the End/events/rip_flavor_events.txt @@ -0,0 +1,13738 @@ +########################################### +# # +# RIP Flavor Events # +# ID RIP.4010 - RIP.4499 # +# ID RIP.29000 - +# # +########################################### + +#Court physician events written by Alexander Oltner & Mathilda Bjarnehed +#Mourning events written by Mathilda Bjarnehed +#Maimed events written by Mathilda Bjarnehed +#Child reaction events written by Mathilda Bjarnehed +#Suicide events written by Mathilda Bjarnehed +#Chess with death events written by Mathilda Bjarnehed + +namespace = RIP + +###COURT PHYSICIAN FLAVOR EVENTS### + +### Court Physician recommends that you "Take it Easy" + +character_event = { + id = RIP.4010 + desc = EVTDESC_RIP_4010 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Reapers" + NOR = { + has_character_flag = stress_relief + is_tribal = yes + is_nomadic = yes + trait = slothful + } + OR = { + NOT = { health = 5 } + trait = stressed + trait = diligent + trait = wroth + } + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = stressed + } + modifier = { + factor = 1.5 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + learning = 16 + } + } + modifier = { + factor = 0.2 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 14 + } + } + } + modifier = { + factor = 0.1 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 10 + } + } + } + } + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + save_event_target_as = physician_target + } + set_character_flag = stress_relief + } + + option = { + name = EVTOPTA_RIP_4010 + prestige = -50 + if = { + limit = { + trait = stressed + } + random = { + chance = 50 + remove_trait = stressed + hidden_tooltip = { + character_event = { id = 38313 days = 1 } # Notify lost Stressed + } + } + } + if = { + limit = { + trait = diligent + } + remove_trait = diligent + } + add_character_modifier = { + modifier = taking_it_easy + duration = 10950 + } + } + + option = { + name = EVTOPTB_RIP_4010 + prestige = 50 + if = { + limit = { + NOT = { trait = stressed } + } + random = { + chance = 30 + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } + if = { + limit = { + NOT = { trait = diligent } + } + random = { + chance = 30 + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + } + } +} + +### Court Physician gifts you a guide dog + +character_event = { + id = RIP.4011 + desc = EVTDESC_RIP_4011 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Reapers" + trait = blinded + NOR = { + has_character_modifier = guide_dog + has_character_flag = denied_guide_dog + is_tribal = yes + is_nomadic = yes + } + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 1.5 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + learning = 16 + } + } + modifier = { + factor = 0.2 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 14 + } + } + } + modifier = { + factor = 0.1 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 10 + } + } + } + } + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + save_event_target_as = physician_target + } + } + + option = { + name = EVTOPTA_RIP_4011 + tooltip_info = charitable + + trigger = { + trait = charitable + } + + transfer_scaled_wealth = { + to = event_target:physician_target + value = 0.3 + } + + event_target:physician_target = { + opinion = { + modifier = opinion_was_praised + who = ROOT + years = 10 + } + } + + add_character_modifier = { + modifier = guide_dog + duration = -1 + } + hidden_tooltip = { character_event = { id = RIP.4012 days = 3500 random = 2000 } } # Dog dies + } + + option = { + name = EVTOPTB_RIP_4011 + add_character_modifier = { + modifier = guide_dog + duration = -1 + } + hidden_tooltip = { character_event = { id = RIP.4012 days = 3500 random = 2000 } } # Dog dies + } + + option = { + name = EVTOPTC_RIP_4011 + + event_target:physician_target = { + opinion = { + modifier = opinion_insulted + who = ROOT + years = 10 + } + set_character_flag = denied_guide_dog + } + } +} + +# Guide Dog Dies +character_event = { + id = RIP.4012 + desc = EVTDESC_RIP_4012 + picture = GFX_evt_hunting_scene + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + has_character_modifier = guide_dog + } + + option = { # She taught me a lot + name = EVTOPTA_RIP_4012 + remove_character_modifier = guide_dog + prestige = 5 + } + option = { # Give in to despair + name = EVTOPTB_RIP_4012 + remove_character_modifier = guide_dog + if = { + limit = { + NOT = { + trait = depressed + } + } + random = { + chance = 50 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } + } +} + +### Court Physician suggests fertility treatment + +character_event = { + id = RIP.4013 + desc = EVTDESC_RIP_4013 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + only_men = yes + has_dlc = "Reapers" + is_married = yes + + is_triggered_only = yes + + trigger = { + spouse = { + NOT = { age = 45 } + is_pregnant = no + ai = yes + } + NOR = { + has_character_flag = fertility_treatment + is_ascetic_trigger = yes + trait = celibate + trait = eunuch + num_of_children = 1 + is_merchant_republic = yes + } + any_courtier_or_vassal = { + #is_female = no + ai = yes + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + age = 40 + } + modifier = { + factor = 2 + age = 60 + } + modifier = { + factor = 1.5 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + learning = 16 + } + } + } + + immediate = { + random_courtier_or_vassal = { + limit = { + ai = yes + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + save_event_target_as = physician_target + } + spouse = { + save_event_target_as = spouse_target + } + } + + option = { # Yes, I need children! + name = EVTOPTA_RIP_4013 + custom_tooltip = { + text = fertility_treatment_custom_tooltip + hidden_tooltip = { + set_character_flag = fertility_treatment + event_target:physician_target = { + character_event = { id = RIP.4014 } + } + } + } + } + + option = { # No, I know I can do it without help + name = EVTOPTB_RIP_4013 + prestige = 5 + } +} + +# Fertility treatment outcome tombola +character_event = { + id = RIP.4014 + hide_window = yes + + is_triggered_only = yes + + immediate = { + random_list = { + 10 = { # Physician seduces and impregnates your spouse + modifier = { + factor = 0 + event_target:physician_target = { + is_female = yes + } + } + modifier = { + factor = 0 + event_target:spouse_target = { + is_lover = FROM + } + } + modifier = { + factor = 0 + event_target:spouse_target = { + is_friend = FROM + } + } + modifier = { + factor = 0 + OR = { + is_ascetic_trigger = yes + trait = celibate + trait = eunuch + trait = chaste + } + } + modifier = { + factor = 0.1 + NOR = { + trait = deceitful + trait = lustful + trait = hedonist + trait = seducer + } + } + modifier = { + factor = 5 + AND = { + OR = { + trait = deceitful + trait = lustful + trait = hedonist + trait = seducer + } + event_target:spouse_target = { + OR = { + trait = deceitful + trait = lustful + trait = hedonist + trait = seductress + } + } + } + } + + FROM = { character_event = { id = RIP.4015 } } + } + + 10 = { # Physician concocts a herbal mixture that is TOO effective... + modifier = { + factor = 0 + has_game_rule = { + name = supernatural_events + value = off + } + } + modifier = { + factor = 0.5 + FROM = { ai = yes } + } + modifier = { + factor = 5 + trait = lunatic + } + modifier = { + factor = 5 + trait = possessed + } + + FROM = { + set_character_flag = fertility_increased_too_much + character_event = { id = RIP.4016 days = 14 random = 7 } + } + } + + 50 = { # Physician concocts a herbal mixture that increases your fertility + modifier = { + factor = 2 + learning = 14 + } + modifier = { + factor = 2 + learning = 18 + } + + FROM = { + set_character_flag = fertility_increased + character_event = { id = RIP.4016 days = 14 random = 7 } + } + } + + 30 = { # Physician concocts a herbal mixture that DECREASES your fertility + modifier = { + factor = 0.1 + learning = 12 + } + modifier = { + factor = 2 + NOT = { learning = 10 } + } + modifier = { + factor = 2 + NOT = { learning = 8 } + } + modifier = { + factor = 2 + has_character_flag = physician_is_quack + } + + FROM = { + set_character_flag = fertility_decreased + character_event = { id = RIP.4016 days = 14 random = 7 } + } + } + } + } +} + +# Wife seduced and impregnated +character_event = { + id = RIP.4015 + desc = EVTDESC_RIP_4015 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + event_target:physician_target = { + is_alive = yes + } + event_target:spouse_target = { + is_alive = yes + } + } + + immediate = { + event_target:spouse_target = { + add_lover = event_target:physician_target + impregnate_cuckoo = event_target:physician_target + } + } + + option = { # Something is fishy here! + name = EVTOPTA_RIP_4015 + tooltip_info = paranoid + + trigger = { + trait = paranoid + } + + event_target:spouse_target = { + father_of_unborn_known = yes + } + + } + + option = { # But... you didn't do anything? + name = EVTOPTB_RIP_4015 + + trigger = { + NOT = { trait = paranoid } + } + + } +} + +# You receive the concoction, last chance to back out! +character_event = { + id = RIP.4016 + desc = EVTDESC_RIP_4016 + picture = GFX_evt_performing_experiments + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + event_target:physician_target = { + is_alive = yes + } + } + + immediate = { + + } + + option = { # Drink it + name = EVTOPTA_RIP_4016 + + custom_tooltip = { + text = drink_the_concoction_custom_tooltip + hidden_tooltip = { + if = { + limit = { + has_character_flag = fertility_increased_too_much + } + character_event = { id = RIP.4017 days = 3 random = 5 } + } + if = { + limit = { + has_character_flag = fertility_increased + } + character_event = { id = RIP.4018 days = 14 random = 7 } + } + if = { + limit = { + has_character_flag = fertility_decreased + } + character_event = { id = RIP.4019 days = 14 random = 7 } + } + } + } + + } + + option = { # Back out + name = EVTOPTB_RIP_4016 + + ai_chance = { + factor = 0 + } + + prestige = -5 + event_target:physician_target = { + opinion = { + modifier = opinion_insulted + who = ROOT + years = 10 + } + } + } +} + +# The concoction works TOO well! +character_event = { + id = RIP.4017 + desc = EVTDESC_RIP_4017 + picture = GFX_evt_performing_experiments + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + hide_new = yes + + trigger = { + + } + + immediate = { + random_realm_character = { + limit = { + prisoner = no + is_female = yes + NOT = { character = ROOT } + NOT = { character = event_target:lover_2 } + NOT = { character = event_target:lover_3 } + NOT = { age = 45 } + is_marriage_adult = yes + is_pregnant = no + NOT = { trait = incapable } + has_lover = no + NOT = { + spouse = { + character = ROOT + } + } + NOT = { + consort = { + character = ROOT + } + } + } + impregnate = ROOT + save_event_target_as = lover_1 + } + random_realm_character = { + limit = { + prisoner = no + is_female = yes + NOT = { character = ROOT } + NOT = { character = event_target:lover_1 } + NOT = { character = event_target:lover_3 } + NOT = { age = 45 } + is_marriage_adult = yes + is_pregnant = no + NOT = { trait = incapable } + has_lover = no + NOT = { + spouse = { + character = ROOT + } + } + NOT = { + consort = { + character = ROOT + } + } + } + impregnate = ROOT + save_event_target_as = lover_2 + } + random_realm_character = { + limit = { + prisoner = no + is_female = yes + NOT = { character = ROOT } + NOT = { character = event_target:lover_1 } + NOT = { character = event_target:lover_2 } + NOT = { character = ROOT } + NOT = { age = 45 } + is_marriage_adult = yes + is_pregnant = no + NOT = { trait = incapable } + has_lover = no + NOT = { + spouse = { + character = ROOT + } + } + NOT = { + consort = { + character = ROOT + } + } + } + impregnate = ROOT + save_event_target_as = lover_3 + } + random_realm_character = { + limit = { + prisoner = no + is_female = no + is_adult = yes + has_lover = no + trait = homosexual + NOT = { character = ROOT } + NOT = { trait = incapable } + NOT = { character = event_target:lover_h_2 } + } + save_event_target_as = lover_h_1 + } + random_realm_character = { + limit = { + prisoner = no + is_female = no + is_adult = yes + has_lover = no + trait = homosexual + NOT = { character = ROOT } + NOT = { trait = incapable } + NOT = { character = event_target:lover_h_1 } + } + save_event_target_as = lover_h_2 + } + } + + option = { # Worked TOO well! + name = EVTOPTA_RIP_4017 + + if = { + limit = { + trait = chaste + } + remove_trait = chaste + } + add_trait = lustful + if = { + limit = { + NOT = { trait = homosexual } + } + add_trait = homosexual + } + fertility = 0.25 + + any_spouse = { + limit = { + prisoner = no + NOT = { trait = incapable } + } + hidden_tooltip = { + if = { + limit = { + NOT = { age = 45 } + is_female = yes + is_pregnant = no + } + impregnate = ROOT + } + } + if = { + limit = { + NOT = { is_lover = ROOT } + } + add_lover = ROOT + } + } + + any_consort = { + limit = { + prisoner = no + NOT = { trait = incapable } + } + hidden_tooltip = { + if = { + limit = { + NOT = { age = 45 } + is_female = yes + is_pregnant = no + } + impregnate = ROOT + } + } + if = { + limit = { + NOT = { is_lover = ROOT } + } + add_lover = ROOT + } + } + event_target:lover_1 = { + add_lover = ROOT + } + event_target:lover_2 = { + add_lover = ROOT + } + event_target:lover_3 = { + add_lover = ROOT + } + event_target:lover_h_1 = { + add_lover = ROOT + } + event_target:lover_h_2 = { + add_lover = ROOT + } + } +} + +# Successful fertility treatment! +character_event = { + id = RIP.4018 + desc = EVTDESC_RIP_4018 + picture = GFX_evt_performing_experiments + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + event_target:physician_target = { + is_alive = yes + } + } + + immediate = { + event_target:spouse_target = { + impregnate = ROOT + } + } + + option = { # Fantastic, I shall reward you! + name = EVTOPTA_RIP_4018 + + trigger = { + trait = charitable + } + + prestige = 15 + + fertility = 0.1 + + transfer_scaled_wealth = { + to = event_target:physician_target + value = 0.3 + } + + event_target:physician_target = { + opinion = { + modifier = opinion_was_praised + who = ROOT + years = 10 + } + } + + } + + option = { # You have done well + name = EVTOPTB_RIP_4018 + + prestige = 5 + fertility = 0.1 + } +} + +# Botched fertility treatment! +character_event = { + id = RIP.4019 + desc = EVTDESC_RIP_4019 + picture = GFX_evt_experiments_failed + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + event_target:physician_target = { + is_alive = yes + } + } + + immediate = { + event_target:spouse_target = { + impregnate = ROOT + } + } + + option = { # I shall have your head for this! + name = EVTOPTA_RIP_4019 + + fertility = -0.05 + + if = { + limit = { + NOR = { + trait = kind + trait = wroth + } + } + add_trait = wroth + } + + if = { + limit = { + trait = kind + } + remove_trait = kind + } + + opinion = { + who = event_target:physician_target + modifier = opinion_traitor + } + + event_target:physician_target = { + imprison = ROOT + } + + } + + option = { # Oh well + name = EVTOPTB_RIP_4019 + + prestige = -5 + fertility = -0.05 + } +} + +# Court Physician Friend teaches you medicine +character_event = { + id = RIP.4020 + desc = EVTDESC_RIP_4020 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + NOT = { + has_character_flag = physician_learning + } + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + is_friend = ROOT + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = scholar + } + modifier = { + factor = 2 + trait = mystic + } + modifier = { + factor = 1.5 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + is_friend = ROOT + learning = 16 + } + } + modifier = { + factor = 0.2 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + is_friend = ROOT + NOT = { + learning = 14 + } + } + } + modifier = { + factor = 0.1 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + is_friend = ROOT + NOT = { + learning = 10 + } + } + } + } + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + is_friend = ROOT + } + save_event_target_as = physician_target + } + set_character_flag = physician_learning + } + + option = { # This seems interesting! + name = EVTOPTA_RIP_4020 + + custom_tooltip = { + text = physician_learning_custom_tooltip + hidden_tooltip = { + random_list = { + 15 = { + modifier = { + factor = 3 + trait = scholar + } + modifier = { + factor = 2 + trait = mystic + } + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = patient + } + set_character_flag = physician_learning_excellent_outcome + } + 20 = { + modifier = { + factor = 3 + trait = scholar + } + modifier = { + factor = 2 + trait = mystic + } + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = patient + } + set_character_flag = physician_learning_good_outcome + } + 50 = { + set_character_flag = physician_learning_middling_outcome + } + 10 = { + modifier = { + factor = 2 + trait = wroth + } + modifier = { + factor = 2 + trait = arbitrary + } + set_character_flag = physician_learning_poor_outcome + } + 5 = { + modifier = { + factor = 2 + trait = wroth + } + modifier = { + factor = 2 + trait = arbitrary + } + set_character_flag = physician_learning_disastrous_outcome + } + } + character_event = { id = RIP.4021 days = 7 random = 10 } + } + } + + } + + option = { # Rather not disturb + name = EVTOPTB_RIP_4020 + + prestige = 5 + } +} + +# Court Physician Friend teaches you medicine RESULT +character_event = { + id = RIP.4021 + picture = GFX_evt_performing_experiments + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + desc = { + text = EVTDESC_RIP_4021_EXCELLENT + picture = GFX_evt_performing_experiments + trigger = { + has_character_flag = physician_learning_excellent_outcome + } + } + + desc = { + text = EVTDESC_RIP_4021_GOOD + picture = GFX_evt_performing_experiments + trigger = { + has_character_flag = physician_learning_good_outcome + } + } + + desc = { + text = EVTDESC_RIP_4021_MIDDLING + picture = GFX_evt_performing_experiments + trigger = { + has_character_flag = physician_learning_middling_outcome + } + } + + desc = { + text = EVTDESC_RIP_4021_BAD + picture = GFX_evt_experiments_failed + trigger = { + has_character_flag = physician_learning_poor_outcome + } + } + + desc = { + text = EVTDESC_RIP_4021_TERRIBLE + picture = GFX_evt_experiments_failed + trigger = { + has_character_flag = physician_learning_disastrous_outcome + } + } + + option = { + name = EVTOPTA_RIP_4021 + trigger = { + has_character_flag = physician_learning_excellent_outcome + } + + prestige = 5 + + change_learning = 2 + add_character_modifier = { + name = invigorated + duration = 5475 + } + + } + + option = { + name = EVTOPTB_RIP_4021 + trigger = { + has_character_flag = physician_learning_good_outcome + } + + prestige = 5 + + change_learning = 1 + add_character_modifier = { + name = new_insights + duration = 1095 + } + + } + + option = { + name = EVTOPTC_RIP_4021 + trigger = { + has_character_flag = physician_learning_middling_outcome + } + + prestige = 5 + + change_learning = 1 + + } + + option = { + name = EVTOPTD_RIP_4021 + trigger = { + has_character_flag = physician_learning_poor_outcome + } + + prestige = -5 + + change_learning = 1 + + add_trait = headache + set_character_flag = disease_not_serious + hidden_tooltip = { character_event = { id = RIP.11009 days = 100 random = 365 } } + + } + + option = { + name = EVTOPTE_RIP_4021 + trigger = { + has_character_flag = physician_learning_disastrous_outcome + } + + prestige = -5 + + add_trait = infection + hidden_tooltip = { + character_event = { id = RIP.11001 days = 365 random = 1095 } + } + + } + +} + +# Court Physician wants you to invest in provincial apothecaries +character_event = { + id = RIP.4022 + desc = EVTDESC_RIP_4022 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + higher_tier_than = COUNT + NOT = { + has_character_flag = physician_apothecaries + } + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = charitable + } + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 1.5 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + learning = 16 + } + } + modifier = { + factor = 0.2 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 14 + } + } + } + modifier = { + factor = 0.1 + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + NOT = { + learning = 10 + } + } + } + } + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + OR = { + has_character_flag = is_court_physician + trait = physician + } + } + save_event_target_as = physician_target + } + set_character_flag = physician_apothecaries + } + + option = { # I will invest in this! + name = EVTOPTA_RIP_4022 + + ai_chance = { + factor = 50 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.5 + + prestige = 50 + + custom_tooltip = { + text = physician_apothecaries_custom_tooltip + hidden_tooltip = { + any_demesne_province = { + limit = { + NOR = { + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + change_variable = { which = prosperity_value value = 15 } + } + } + } + + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4022 + ai_chance = { + factor = 50 + } + } +} + +###Court physician wants to write book### +character_event = { + id = RIP.4030 + desc = EVTDESC_RIP_4030 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + NOT = { has_character_flag = physician_wants_to_research } + } + } + + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + NOT = { has_character_flag = physician_wants_to_research } + } + + save_event_target_as = physician + set_character_flag = physician_wants_to_research + } + } + + #Sure + option = { + name = EVTOPTA_RIP_4030 + custom_tooltip = { text = EVTOPTA_RIP_4030_TOOLTIP } + + scaled_wealth = { value = -0.2 min = -20 } + + reverse_opinion = { + who = event_target:physician + modifier = opinion_grateful + years = 5 + } + + hidden_tooltip = { event_target:physician = { character_event = { id = RIP.4031 days = 3 } } } + } + + #Nope + option = { + name = EVTOPTB_RIP_4030 + custom_tooltip = { text = EVTOPTB_RIP_4030_TOOLTIP } + + reverse_opinion = { + who = event_target:physician + modifier = opinion_disappointed + years = 5 + } + } +} + +#Notification of patronage +character_event = { + id = RIP.4031 + desc = EVTDESC_RIP_4031 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4031 + custom_tooltip = { text = EVTOPTA_RIP_4031_TOOLTIP } + + treasury = 20 + + hidden_tooltip = { + random_list = { + #Writes a great book + 15 = { + modifier = { + factor = 1.5 + is_smart_trigger = yes + } + modifier = { + factor = 1.5 + physician_good_trigger = yes + } + modifier = { + factor = 1.2 + learning = 25 + } + modifier = { + factor = 1.2 + learning = 20 + } + modifier = { + factor = 1.2 + learning = 15 + } + modifier = { + factor = 0.8 + NOT = { learning = 15 } + } + modifier = { + factor = 0.8 + NOT = { learning = 10 } + } + + random_list = { + 10 = { set_character_flag = physician_great_book_1 } + 10 = { set_character_flag = physician_great_book_2 } + 10 = { set_character_flag = physician_great_book_3 } + } + + FROM = { character_event = { id = RIP.4032 days = 400 } } + character_event = { id = RIP.4033 days = 401 } + } + #Writes a good book + 35 = { + modifier = { + factor = 1.2 + learning = 25 + } + modifier = { + factor = 1.2 + learning = 20 + } + modifier = { + factor = 1.2 + learning = 15 + } + modifier = { + factor = 0.8 + NOT = { learning = 15 } + } + modifier = { + factor = 0.8 + NOT = { learning = 10 } + } + + set_character_flag = physician_good_book + + FROM = { character_event = { id = RIP.4032 days = 400 } } + character_event = { id = RIP.4033 days = 401 } + } + #Writes a meh book + 35 = { + set_character_flag = physician_meh_book + + FROM = { character_event = { id = RIP.4032 days = 400 } } + character_event = { id = RIP.4033 days = 401 } + } + #Writes a laughable book + 15 = { + modifier = { + factor = 1.5 + is_dumb_trigger = yes + } + modifier = { + factor = 1.5 + physician_bad_trigger = yes + } + modifier = { + factor = 0.8 + learning = 25 + } + modifier = { + factor = 0.8 + learning = 20 + } + modifier = { + factor = 0.8 + learning = 15 + } + modifier = { + factor = 1.2 + NOT = { learning = 15 } + } + modifier = { + factor = 1.2 + NOT = { learning = 10 } + } + + set_character_flag = physician_bad_book + + FROM = { character_event = { id = RIP.4032 days = 400 } } + character_event = { id = RIP.4033 days = 401 } + } + } + } + } +} + +#Patron notification outcome +character_event = { + id = RIP.4032 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { FROM = { has_character_flag = physician_great_book_1 } } + text = EVTDESC_RIP_4032_GREAT_1 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { FROM = { has_character_flag = physician_great_book_2 } } + text = EVTDESC_RIP_4032_GREAT_2 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { FROM = { has_character_flag = physician_great_book_3 } } + text = EVTDESC_RIP_4032_GREAT_3 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { FROM = { has_character_flag = physician_good_book } } + text = EVTDESC_RIP_4032_GOOD + picture = GFX_evt_library + } + desc = { + trigger = { FROM = { has_character_flag = physician_meh_book } } + text = EVTDESC_RIP_4032_MEH + picture = GFX_evt_performing_experiments + } + desc = { + trigger = { FROM = { has_character_flag = physician_bad_book } } + text = EVTDESC_RIP_4032_BAD + picture = GFX_evt_experiments_failed + } + + trigger = { + FROM = { + is_alive = yes + prisoner = no + OR = { + has_character_flag = physician_great_book_1 + has_character_flag = physician_great_book_2 + has_character_flag = physician_great_book_3 + has_character_flag = physician_good_book + has_character_flag = physician_meh_book + has_character_flag = physician_bad_book + } + } + } + + is_triggered_only = yes + + #Good book outcome + option = { + trigger = { FROM = { has_character_flag = physician_good_book } } + + name = EVTOPTB_RIP_4032 + + tooltip = { FROM = { change_learning = 1 } } + } + + #Meh book outcome + option = { + trigger = { FROM = { has_character_flag = physician_meh_book } } + + name = EVTOPTC_RIP_4032 + } + + #Bad outcome + option = { + trigger = { FROM = { has_character_flag = physician_bad_book } } + + name = EVTOPTD_RIP_4032 + custom_tooltip = { text = EVTOPTD_RIP_4032_TOOLTIP } + + prestige = -50 + + tooltip = { + FROM = { + if = { + limit = { is_dumb_trigger = no } + add_trait = dull + } + } + } + + opinion = { + who = FROM + modifier = opinion_disappointed + years = 5 + } + } + #Great book outcome + option = { + trigger = { + OR = { + FROM = { has_character_flag = physician_great_book_1 } + FROM = { has_character_flag = physician_great_book_2 } + FROM = { has_character_flag = physician_great_book_3 } + } + } + + name = EVTOPTA_RIP_4032 + custom_tooltip = { text = EVTOPTA_RIP_4032_TOOLTIP } + + prestige = 100 + + tooltip = { + FROM = { + if = { + limit = { trait = physician } + change_learning = 2 + } + if = { + limit = { NOT = { trait = physician } } + add_trait = physician + } + } + } + + opinion = { + who = FROM + modifier = opinion_impressed + years = 5 + } + } +} + +#Doctor notification outcome +character_event = { + id = RIP.4033 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { has_character_flag = physician_great_book_1 } + text = EVTDESC_RIP_4033_GREAT_1 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { has_character_flag = physician_great_book_2 } + text = EVTDESC_RIP_4033_GREAT_2 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { has_character_flag = physician_great_book_3 } + text = EVTDESC_RIP_4033_GREAT_3 + picture = GFX_evt_doctor_crazy_treatment + } + desc = { + trigger = { has_character_flag = physician_good_book } + text = EVTDESC_RIP_4033_GOOD + picture = GFX_evt_library + } + desc = { + trigger = { has_character_flag = physician_meh_book } + text = EVTDESC_RIP_4033_MEH + picture = GFX_evt_experiments_failed + } + desc = { + trigger = { has_character_flag = physician_bad_book } + text = EVTDESC_RIP_4033_BAD + picture = GFX_evt_bloody_tools + } + + is_triggered_only = yes + + immediate = { + character_event = { id = RIP.4034 days = 10 } + } + + #Great book outcome + option = { + trigger = { + OR = { + has_character_flag = physician_great_book_1 + has_character_flag = physician_great_book_2 + has_character_flag = physician_great_book_3 + } + } + + name = EVTOPTA_RIP_4033 + custom_tooltip = { text = EVTOPTA_RIP_4033_TOOLTIP } + + prestige = 15 + + + if = { + limit = { trait = physician } + change_learning = 2 + } + if = { + limit = { NOT = { trait = physician } } + add_trait = physician + } + + tooltip = { + FROMFROM = { + opinion = { + who = ROOT + modifier = opinion_impressed + years = 5 + } + } + } + } + + #Good book outcome + option = { + trigger = { has_character_flag = physician_good_book } + + name = EVTOPTB_RIP_4033 + + change_learning = 1 + } + + #Meh book outcome + option = { + trigger = { has_character_flag = physician_meh_book } + + name = EVTOPTC_RIP_4033 + } + + #Bad book outcome outcome + option = { + trigger = { has_character_flag = physician_bad_book } + + name = EVTOPTD_RIP_4033 + custom_tooltip = { text = EVTOPTD_RIP_4033_TOOLTIP } + + prestige = -50 + + if = { + limit = { is_dumb_trigger = no } + add_trait = dull + } + + tooltip = { + FROMFROM = { + opinion = { + who = ROOT + modifier = opinion_disappointed + years = 5 + } + } + } + } +} + +character_event = { + id = RIP.4034 + + hide_window = yes + is_triggered_only = yes + + option = { + clr_character_flag = physician_great_book_1 + clr_character_flag = physician_great_book_2 + clr_character_flag = physician_great_book_3 + clr_character_flag = physician_good_book + clr_character_flag = physician_meh_book + clr_character_flag = physician_bad_book + } +} + + +###Court Physician training events### +character_event = { + id = RIP.4040 + + hide_window = yes + is_triggered_only = yes + + trigger = { + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + } + } + + option = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + } + + random_list = { + + #Nothing happens + 20 = { } + #Receives training + 10 = { + modifier = { + factor = 1.8 + NOT = { learning = 6 } + } + modifier = { + factor = 1.6 + NOT = { learning = 8 } + } + modifier = { + factor = 1.5 + NOT = { learning = 10 } + } + modifier = { + factor = 1.4 + NOT = { learning = 12 } + } + modifier = { + factor = 1.2 + NOT = { learning = 14 } + } + modifier = { + factor = 1.2 + NOT = { learning = 16 } + } + modifier = { + factor = 0 + trait = physician + } + ROOT = { character_event = { id = RIP.4041 } } + } + } + } + } +} + +#Training: buy herbs/tools/books/ +character_event = { + id = RIP.4041 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + desc = { + trigger = { has_character_flag = physician_books } + text = EVTDESC_RIP_4041_BOOKS + picture = GFX_evt_court_physician + } + desc = { + trigger = { has_character_flag = physician_herbs } + text = EVTDESC_RIP_4041_HERBS + picture = GFX_evt_garden + + } + desc = { + trigger = { has_character_flag = physician_tools } + text = EVTDESC_RIP_4041_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { has_character_flag = physician_lab_equipment } + text = EVTDESC_RIP_4041_LAB_EQUIPMENT + picture = GFX_evt_performing_experiments + } + + immediate = { + random_courtier_or_vassal = { + limit = { + liege = { character = ROOT } + has_minor_title = title_court_physician + } + save_event_target_as = physician + } + + random_list = { + 10 = { set_character_flag = physician_books } + 10 = { set_character_flag = physician_herbs } + 10 = { set_character_flag = physician_tools } + 10 = { set_character_flag = physician_lab_equipment } + } + } + + #Yes + option = { + name = EVTOPTA_RIP_4041 + custom_tooltip = { text = EVTOPTA_RIP_4041_TOOLTIP } + + scaled_wealth = { value = -0.15 min = -10 } + + ai_chance = { + factor = 10 + modifier = { + factor = 1.5 + trait = charitable + } + modifier = { + factor = 1.5 + is_smart_trigger = yes + } + modifier = { + factor = 1.5 + has_disease_trigger = yes + } + modifier = { + factor = 0 + NOT = { treasury = 10 } + } + } + + #Outcome + hidden_tooltip = { + save_event_target_as = physician_liege + + #outcome + event_target:physician = { + random_list = { + #Best outcome + 25 = { + modifier = { + factor = 1.5 + is_smart_trigger = yes + } + modifier = { + factor = 1.5 + physician_good_trigger = yes + } + modifier = { + factor = 1.2 + learning = 25 + } + modifier = { + factor = 1.2 + learning = 20 + } + modifier = { + factor = 1.2 + learning = 15 + } + modifier = { + factor = 0.8 + NOT = { learning = 15 } + } + modifier = { + factor = 0.8 + NOT = { learning = 10 } + } + + character_event = { id = RIP.4042 days = 30 } + } + #Good outcome + 50 = { + modifier = { + factor = 1.5 + is_dumb_trigger = yes + } + modifier = { + factor = 1.5 + physician_bad_trigger = yes + } + modifier = { + factor = 0.8 + learning = 25 + } + modifier = { + factor = 0.8 + learning = 20 + } + modifier = { + factor = 0.8 + learning = 15 + } + modifier = { + factor = 1.2 + NOT = { learning = 15 } + } + modifier = { + factor = 1.2 + NOT = { learning = 10 } + } + + character_event = { id = RIP.4044 days = 30 } + } + #Fail + 25 = { + character_event = { id = RIP.4046 days = 30 } + } + } + } + } + } + + #No + option = { + name = EVTOPTB_RIP_4041 + custom_tooltip = { text = EVTOPTB_RIP_4041_TOOLTIP } + + ai_chance = { + factor = 10 + modifier = { + factor = 1.5 + trait = greedy + } + modifier = { + factor = 1.5 + is_dumb_trigger = yes + } + } + + clr_character_flag = physician_books + clr_character_flag = physician_herbs + clr_character_flag = physician_tools + clr_character_flag = physician_lab_equipment + } +} + +#Best outcome training herbs/lab/book/tools, physician notification +character_event = { + id = RIP.4042 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { FROM = { has_character_flag = physician_books } } + text = EVTDESC_RIP_4042_BOOKS + picture = GFX_evt_court_physician + } + desc = { + trigger = { FROM = { has_character_flag = physician_herbs } } + text = EVTDESC_RIP_4042_HERBS + picture = GFX_evt_performing_experiments + + } + desc = { + trigger = { FROM = { has_character_flag = physician_tools } } + text = EVTDESC_RIP_4042_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { FROM = { has_character_flag = physician_lab_equipment } } + text = EVTDESC_RIP_4042_LAB_EQUIPMENT + picture = GFX_evt_performing_experiments + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4042 + + change_learning = 2 + + hidden_tooltip = { + if = { + limit = { NOT = { trait = physician } } + if = { + limit = { check_variable = { which = training_level value = 1 } } + change_variable = { which = training_level value = 1 } + } + if = { + limit = { NOT = { check_variable = { which = training_level value = 1 } } } + set_variable = { which = training_level value = 1 } + } + if = { + limit = { check_variable = { which = training_level value = 3 } } + character_event = { id = RIP.4060 days = 7 } + } + } + + FROM = { character_event = { id = RIP.4043 } } + } + } +} + +#Best outcome training herbs/lab/book/tools, liege notification +character_event = { + id = RIP.4043 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { has_character_flag = physician_books } + text = EVTDESC_RIP_4043_BOOKS + picture = GFX_evt_court_physician + } + desc = { + trigger = { has_character_flag = physician_herbs } + text = EVTDESC_RIP_4043_HERBS + picture = GFX_evt_performing_experiments + + } + desc = { + trigger = { has_character_flag = physician_tools } + text = EVTDESC_RIP_4043_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { has_character_flag = physician_lab_equipment } + text = EVTDESC_RIP_4043_LAB_EQUIPMENT + picture = GFX_evt_performing_experiments + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4043 + + tooltip = { FROM = { change_learning = 2 } } + + clr_character_flag = physician_books + clr_character_flag = physician_herbs + clr_character_flag = physician_tools + clr_character_flag = physician_lab_equipment + } +} + +#Good outcome training herbs/lab/book/tools, physician notification +character_event = { + id = RIP.4044 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { FROM = { has_character_flag = physician_books } } + text = EVTDESC_RIP_4044_BOOKS + picture = GFX_evt_court_physician + } + desc = { + trigger = { FROM = { has_character_flag = physician_herbs } } + text = EVTDESC_RIP_4044_HERBS + picture = GFX_evt_performing_experiments + + } + desc = { + trigger = { FROM = { has_character_flag = physician_tools } } + text = EVTDESC_RIP_4044_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { FROM = { has_character_flag = physician_lab_equipment } } + text = EVTDESC_RIP_4044_LAB_EQUIPMENT + picture = GFX_evt_performing_experiments + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4044 + + change_learning = 1 + + hidden_tooltip = { + if = { + limit = { NOT = { trait = physician } } + if = { + limit = { check_variable = { which = training_level value = 1 } } + change_variable = { which = training_level value = 1 } + } + if = { + limit = { NOT = { check_variable = { which = training_level value = 1 } } } + set_variable = { which = training_level value = 1 } + } + if = { + limit = { check_variable = { which = training_level value = 3 } } + character_event = { id = RIP.4060 days = 7 } + } + } + + FROM = { character_event = { id = RIP.4045 } } + } + } +} + +#Good outcome training herbs/lab/book/tools, liege notification +character_event = { + id = RIP.4045 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { has_character_flag = physician_books } + text = EVTDESC_RIP_4045_BOOKS + picture = GFX_evt_court_physician + } + desc = { + trigger = { has_character_flag = physician_herbs } + text = EVTDESC_RIP_4045_HERBS + picture = GFX_evt_performing_experiments + + } + desc = { + trigger = { has_character_flag = physician_tools } + text = EVTDESC_RIP_4045_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { has_character_flag = physician_lab_equipment } + text = EVTDESC_RIP_4045_LAB_EQUIPMENT + picture = GFX_evt_performing_experiments + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4045 + + tooltip = { FROM = { change_learning = 1 } } + + clr_character_flag = physician_books + clr_character_flag = physician_herbs + clr_character_flag = physician_tools + clr_character_flag = physician_lab_equipment + } +} + +#Fail outcome training herbs/lab/book/tools, physician notification +character_event = { + id = RIP.4046 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { FROM = { has_character_flag = physician_books } } + text = EVTDESC_RIP_4046_BOOKS + picture = GFX_evt_library + } + desc = { + trigger = { FROM = { has_character_flag = physician_herbs } } + text = EVTDESC_RIP_4046_HERBS + picture = GFX_evt_experiments_failed + + } + desc = { + trigger = { FROM = { has_character_flag = physician_tools } } + text = EVTDESC_RIP_4046_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { FROM = { has_character_flag = physician_lab_equipment } } + text = EVTDESC_RIP_4046_LAB_EQUIPMENT + picture = GFX_evt_experiments_failed + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4046 + custom_tooltip = { text = EVTOPTA_RIP_4046_TOOLTIP } + + hidden_tooltip = { FROM = { character_event = { id = RIP.4047 } } } + } +} + +#Fail outcome training herbs/lab/book/tools, liege notification +character_event = { + id = RIP.4047 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + desc = { + trigger = { has_character_flag = physician_books } + text = EVTDESC_RIP_4047_BOOKS + picture = GFX_evt_library + } + desc = { + trigger = { has_character_flag = physician_herbs } + text = EVTDESC_RIP_4047_HERBS + picture = GFX_evt_experiments_failed + + } + desc = { + trigger = { has_character_flag = physician_tools } + text = EVTDESC_RIP_4047_TOOLS + picture = GFX_evt_bloody_tools + } + desc = { + trigger = { has_character_flag = physician_lab_equipment } + text = EVTDESC_RIP_4047_LAB_EQUIPMENT + picture = GFX_evt_experiments_failed + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4047 + custom_tooltip = { text = EVTOPTA_RIP_4047_TOOLTIP } + + clr_character_flag = physician_books + clr_character_flag = physician_herbs + clr_character_flag = physician_tools + clr_character_flag = physician_lab_equipment + } +} + +#Now a physician notfication for physician +character_event = { + id = RIP.4060 + desc = EVTDESC_RIP_4060 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + NOT = { trait = physician } + } + + option = { + name = EVTOPTA_RIP_4060 + + add_trait = physician + hidden_tooltip = { liege = { character_event = { id = RIP.4061 } } } + } +} + +#Now a physician notification for liege +character_event = { + id = RIP.4061 + desc = EVTDESC_RIP_4061 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_4061 + + tooltip = { FROM = { add_trait = physician } } + } +} + +# A Physician-Missionary arrives in a Tribal or Nomadic Court +character_event = { + id = RIP.4100 + desc = EVTDESC_RIP_4100 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Reapers" + higher_tier_than = BARON + OR = { + is_tribal = yes + is_nomadic = yes + } + OR = { + NOT = { + has_character_flag = tribal_physician + } + had_character_flag = { flag = tribal_physician days = 9125 } + } + NOT = { + any_courtier_or_vassal = { + liege = { character = ROOT } + has_minor_title = title_court_physician + } + } + any_independent_ruler = { + ai = yes + is_adult = yes + is_feudal = yes + higher_tier_than = DUKE + NOT = { religion_group = ROOT } + is_within_diplo_range = ROOT + mercenary = no + holy_order = no + controls_religion = no + primary_title = { + is_landless_type_title = no + } + OR = { + NOT = { religion_group = pagan_group } + AND = { + religion_group = pagan_group + is_reformed_religion = yes + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + num_of_symptoms = 1 + } + modifier = { + factor = 2.5 + is_ill = yes + } + modifier = { + factor = 1.5 + trait = cynical + } + } + + immediate = { + set_character_flag = tribal_physician + random_independent_ruler = { + limit = { + ai = yes + is_adult = yes + is_feudal = yes + higher_tier_than = DUKE + NOT = { religion_group = ROOT } + is_within_diplo_range = ROOT + mercenary = no + holy_order = no + controls_religion = no + primary_title = { + is_landless_type_title = no + } + OR = { + NOT = { religion_group = pagan_group } + AND = { + religion_group = pagan_group + is_reformed_religion = yes + } + } + } + create_character = { + religion = THIS + culture = THIS + dynasty = none + age = 35 + random_traits = yes + female = no + attributes = { + learning = 6 + } + health = 6 + trait = scholarly_theologian + trait = zealous + trait = physician + flag = is_court_physician + } + new_character = { + remove_trait = cynical + remove_trait = mystic + remove_trait = poet + remove_trait = socializer + remove_trait = gamer + remove_trait = hedonist + remove_trait = duelist + remove_trait = hunter + remove_trait = strategist + remove_trait = administrator + remove_trait = architect + remove_trait = gardener + remove_trait = schemer + remove_trait = impaler + remove_trait = seducer + remove_trait = seductress + remove_trait = theologian + remove_trait = scholar + save_event_target_as = missionary_physician_target + move_character = ROOT + } + save_event_target_as = origin_realm_of_missionary_physician_target + } + } + + option = { # Recruit him + name = EVTOPTA_RIP_4100 + + ai_chance = { + factor = 70 + modifier = { + factor = 5 + trait = cynical + } + } + + event_target:missionary_physician_target = { + opinion = { + modifier = opinion_loyal_servant + who = ROOT + years = 10 + } + give_minor_title = title_court_physician + } + + if = { + limit = { controls_religion = no } + hidden_tooltip = { + character_event = { id = RIP.4101 days = 30 random = 30 } + } + } + + } + + option = { # Seize his assets and execute him! + name = EVTOPTB_RIP_4100 + + ai_chance = { + factor = 30 + modifier = { + factor = 5 + trait = zealous + } + } + + wealth = 50 + event_target:missionary_physician_target = { + death = { + death_reason = death_execution_burning + killer = ROOT + } + } + event_target:origin_realm_of_missionary_physician_target = { + opinion = { + modifier = opinion_dishonorable_scum + who = ROOT + years = 15 + } + } + } +} + +# Convert to the physicians religion? +character_event = { + id = RIP.4101 + desc = EVTDESC_RIP_4101 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + trigger = { + event_target:missionary_physician_target = { + NOT = { religion_group = ROOT } + } + controls_religion = no + } + + option = { + name = EVTOPTA_RIP_4101 + + ai_chance = { + factor = 60 + modifier = { + factor = 2 + trait = humble + } + modifier = { + factor = 2 + trait = craven + } + } + + event_target:missionary_physician_target = { + opinion = { + modifier = opinion_did_not_trust_me + who = ROOT + years = 10 + } + } + } + + option = { + name = EVTOPTB_RIP_4101 + + ai_chance = { + factor = 5 + modifier = { + factor = 3 + trait = cynical + } + modifier = { + factor = 1.5 + trait = arbitrary + } + modifier = { + factor = 1.5 + trait = trusting + } + modifier = { + factor = 0.75 + NOT = { + year = 900 + } + } + modifier = { + factor = 0.25 + OR = { + culture_group = yankee + culture_group = rostmann # The most stubborn pagans + } + } + #modifier = { + # factor = 0.25 + # culture_group = east_slavic # Like alcohol + # event_target:missionary_physician_target = { + # religion_group = muslim + # } + #} + #modifier = { + # factor = 0.25 + # culture_group = north_germanic # Vikings do like their alcohol + # event_target:missionary_physician_target = { + # religion_group = muslim + # } + #} + modifier = { + factor = 0.25 + trait = paranoid + } + modifier = { + factor = 0 + NOT = { + religion_group = pagan_group + } + } + } + + event_target:missionary_physician_target = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 10 + } + } + if = { + limit = { + religion_group = pagan_group + } + add_trait = sympathy_pagans + } + religion = event_target:missionary_physician_target + prestige = -500 + piety = 250 + any_courtier = { + limit = { + is_close_relative = ROOT + NOT = { trait = zealous } + } + religion = event_target:missionary_physician_target + } + any_spouse = { + limit = { + is_consort = no + NOT = { trait = zealous } + } + religion = event_target:missionary_physician_target + } + } + + option = { + name = EVTOPTC_RIP_4101 + + ai_chance = { + factor = 30 + modifier = { + factor = 5 + trait = zealous + } + modifier = { + factor = 2 + trait = stubborn + } + modifier = { + factor = 2 + trait = cruel + } + } + + wealth = 50 + event_target:missionary_physician_target = { + death = { + death_reason = death_execution_burning + killer = ROOT + } + } + event_target:origin_realm_of_missionary_physician_target = { + opinion = { + modifier = opinion_dishonorable_scum + who = ROOT + years = 15 + } + } + } +} + +#################################### +# RIP Prosperity Increasing Events # +#################################### + +# Steward suggests building new roads +character_event = { + id = RIP.4300 + desc = EVTDESC_RIP_4300 + picture = GFX_evt_culture_change + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + higher_tier_than = COUNT + job_treasurer = { + stewardship = 5 + } + any_demesne_province = { + NOT = { + has_province_modifier = new_roads + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + job_treasurer = { + stewardship = 12 + } + } + modifier = { + factor = 1.5 + job_treasurer = { + stewardship = 18 + } + } + } + + immediate = { + job_treasurer = { + save_event_target_as = councillor_target + } + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = new_roads + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4300 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + prestige = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = new_roads + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4300 + ai_chance = { + factor = 70 + } + } +} + +# Lord Spiritual suggests building shrines +character_event = { + id = RIP.4301 + desc = EVTDESC_RIP_4301 + picture = GFX_evt_tribal_shrine + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + higher_tier_than = COUNT + job_spiritual = { + learning = 5 + } + any_demesne_province = { + NOT = { + has_province_modifier = new_shrines + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + job_spiritual = { + stewardship = 12 + } + } + modifier = { + factor = 1.5 + job_spiritual = { + stewardship = 18 + } + } + } + + immediate = { + job_spiritual = { + save_event_target_as = councillor_target + } + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = new_shrines + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4301 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + piety = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = new_shrines + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4301 + ai_chance = { + factor = 70 + } + } +} + +# Marshal suggests building outposts +character_event = { + id = RIP.4302 + desc = EVTDESC_RIP_4302 + picture = GFX_evt_powerful_tower + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + higher_tier_than = COUNT + job_marshal = { + martial = 5 + } + any_demesne_province = { + NOT = { + has_province_modifier = peasants_protected + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + job_marshal = { + martial = 12 + } + } + modifier = { + factor = 1.5 + job_marshal = { + martial = 18 + } + } + } + + immediate = { + job_marshal = { + save_event_target_as = councillor_target + } + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = peasants_protected + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4302 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + prestige = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = peasants_protected + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4302 + ai_chance = { + factor = 70 + } + } +} + +# Spymaster suggests setting up local messenger stations +character_event = { + id = RIP.4303 + desc = EVTDESC_RIP_4303 + picture = GFX_evt_courier + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + higher_tier_than = COUNT + job_spymaster = { + intrigue = 5 + } + any_demesne_province = { + NOT = { + has_province_modifier = messenger_stations + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + job_spymaster = { + intrigue = 12 + } + } + modifier = { + factor = 1.5 + job_spymaster = { + intrigue = 18 + } + } + } + + immediate = { + job_spymaster = { + save_event_target_as = councillor_target + } + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = messenger_stations + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4303 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + prestige = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = messenger_stations + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4303 + ai_chance = { + factor = 70 + } + } +} + +# Chancellor suggests sponsoring local harvest festivals +character_event = { + id = RIP.4304 + desc = EVTDESC_RIP_4304 + picture = GFX_evt_dancing + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + higher_tier_than = COUNT + job_chancellor = { + diplomacy = 5 + } + any_demesne_province = { + NOT = { + has_province_modifier = harvest_festivals + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + job_chancellor = { + diplomacy = 12 + } + } + modifier = { + factor = 1.5 + job_chancellor = { + diplomacy = 18 + } + } + } + + immediate = { + job_chancellor = { + save_event_target_as = councillor_target + } + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = harvest_festivals + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4304 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + prestige = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = harvest_festivals + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4304 + ai_chance = { + factor = 70 + } + } +} + +# You decide upon personally visiting a province +character_event = { + id = RIP.4305 + desc = EVTDESC_RIP_4305 + picture = GFX_evt_noble_haughty_talking_to_peasants + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + is_tribal = no + is_nomadic = no + NOT = { is_inaccessible_trigger = yes } + higher_tier_than = COUNT + stewardship = 6 + any_demesne_province = { + NOT = { + has_province_modifier = inspired_peasantry + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2.5 + has_ambition = obj_see_the_realm_prosper + } + modifier = { + factor = 1.5 + trait = architect + } + modifier = { + factor = 1.5 + trait = diligent + } + } + + immediate = { + random_demesne_province = { + limit = { + NOT = { + has_province_modifier = inspired_peasantry + } + any_province_holding = { + OR = { + holding_type = city + holding_type = castle + holding_type = tribal + } + } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + has_province_modifier = prosperity_modifier_3 + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + save_event_target_as = prosperity_target + } + } + + option = { # A wise investment + name = EVTOPTA_RIP_4305 + + ai_chance = { + factor = 30 + modifier = { + factor = 0 + NOT = { treasury = 300 } + } + } + + scaled_wealth = -0.1 + + prestige = 25 + + event_target:prosperity_target = { + add_province_modifier = { + name = inspired_peasantry + duration = 730 + } + } + + custom_tooltip = { + text = increase_prosperity_event_custom_tooltip + hidden_tooltip = { + event_target:prosperity_target = { + change_variable = { which = prosperity_value value = 15 } + } + } + } + } + + option = { # I can't afford it + name = EVTOPTB_RIP_4305 + ai_chance = { + factor = 70 + } + } +} + +################# +# RIP Nicknames # +################# + +character_event = { # Execution nicknames + id = RIP.4400 + hide_window = yes + is_triggered_only = yes + + trigger = { + death_execution_trigger = yes + killer = { always = yes } + has_dlc = "Reapers" + } + + immediate = { + killer = { + if = { + limit = { + has_nickname = no + is_adult = yes + NOT = { trait = incapable } + } + random_list = { + 5 = { + give_nickname = nick_the_butcher + modifier = { + factor = 0 + NOR = { + trait = cruel + trait = wroth + trait = impaler + } + } + } + 50 = { + give_nickname = nick_the_impaler + modifier = { + factor = 0 + NOT = { ROOT = { death_reason = death_execution_impaling } } + } + } + 50 = { + give_nickname = nick_the_flayer + modifier = { + factor = 0 + NOT = { ROOT = { death_reason = death_execution_flaying } } + } + } + 50 = { + give_nickname = nick_the_cleansing_flame + modifier = { + factor = 0 + NAND = { + NOT = { religion = ROOT } + trait = zealous + piety = 100 + ROOT = { death_reason = death_execution_burning } + } + } + } + 50 = { + give_nickname = nick_the_witch_hunter + modifier = { + factor = 0 + NAND = { + OR = { + NOT = { religion = ROOT } + ROOT = { has_character_modifier = modifier_witch } + ROOT = { has_character_modifier = suspected_witch } + ROOT = { has_character_modifier = known_witch } + ROOT = { has_character_flag = bg_accused_witch } + ROOT = { has_character_flag = physician_witch } + } + trait = zealous + piety = 100 + ROOT = { + is_female = yes + OR = { + death_reason = death_execution_burning + death_reason = death_execution_drowning_pit + } + } + } + } + } + 50 = { + give_nickname = nick_the_vengeful + modifier = { + factor = 0 + NOT = { + is_rival = ROOT + } + } + } + 50 = { + give_nickname = nick_the_betrayer + modifier = { + factor = 0 + NOT = { + is_friend = ROOT + } + } + } + 500 = { + give_nickname = nick_the_kingslayer + modifier = { + factor = 0 + NAND = { + is_nomadic = no + liege = { + is_nomadic = no + character = ROOT + OR = { + tier = KING + tier = EMPEROR + } + } + } + } + } + 15 = { + give_nickname = nick_son_of_evilgod + modifier = { + factor = 0 + NOR = { + NOT = { piety = -50 } + trait = possessed + trait = kinslayer + } + } + } + 4 = { + give_nickname = nick_the_tyrant + modifier = { + factor = 0 + NOT = { + any_vassal = { + has_opinion_modifier = { who = ROOT modifier = opinion_tyrant } + } + } + } + } + 4 = { + give_nickname = nick_the_oppressor + modifier = { + factor = 0 + NOT = { + any_vassal = { + has_opinion_modifier = { who = ROOT modifier = opinion_tyrant } + } + } + } + } + 100 = {} + } + } + } + } +} + + +###MOURNING FLAVOR EVENTS### + +#Lovers/rivals/friends +character_event = { + id = RIP.29000 + + hide_window = yes + is_triggered_only = yes + + trigger = { + OR = { + any_lover = { is_alive = yes } + any_friend = { is_alive = yes } + any_rival = { is_alive = yes } + } + NOT = { death_reason = death_missing } + } + + option = { + save_event_target_as = rip_dead + + spouse = { save_event_target_as = rip_widow } + + random_child = { + limit = { is_adult = yes } + save_event_target_as = rip_child + } + + #Lover event + random_lover = { + limit = { block_general_event_trigger = no NOT = { has_character_modifier = grief_timer } } + character_event = { id = RIP.29001 days = 20 } + } + + #Friend event + random_friend = { + limit = { block_general_event_trigger = no NOT = { has_character_modifier = grief_timer } } + save_event_target_as = rip_friend_1 + + ROOT = { + random_friend = { + limit = { + block_general_event_trigger = no + NOR = { + is_rival = event_target:rip_friend_1 + character = event_target:rip_friend_1 + is_friend = event_target:rip_friend_1 + is_lover = event_target:rip_friend_1 + is_close_relative = event_target:rip_friend_1 + } + } + save_event_target_as = rip_friend_2 + } + } + + random_list = { + 75 = { character_event = { id = RIP.29005 days = 30 } } + 25 = { + modifier = { + factor = 0 + ROOT = { + NOT = { + any_child = { + age = 12 + NOR = { + character = event_target:rip_friend_1 + is_rival = event_target:rip_friend_1 + is_friend = event_target:rip_friend_1 + is_lover = event_target:rip_friend_1 + } + } + } + } + } + character_event = { id = RIP.29020 days = 30 } + } + } + } + + #Rival event + random_rival = { + limit = { block_general_event_trigger = no NOT = { has_character_modifier = grief_timer } } + save_event_target_as = rip_enemy_1 + + liege = { + any_courtier = { + limit = { + block_general_event_trigger = no + NOR = { + is_rival = event_target:rip_enemy_1 + character = event_target:rip_enemy_1 + is_friend = event_target:rip_enemy_1 + is_lover = event_target:rip_enemy_1 + } + } + save_event_target_as = rip_new_enemy + } + } + + ROOT = { + random_rival = { + limit = { + block_general_event_trigger = no + NOR = { + is_rival = event_target:rip_enemy_1 + character = event_target:rip_enemy_1 + is_friend = event_target:rip_enemy_1 + is_lover = event_target:rip_enemy_1 + } + } + save_event_target_as = rip_enemy_2 + } + random_child = { + limit = { + block_general_event_trigger = no + NOR = { + is_rival = event_target:rip_enemy_1 + character = event_target:rip_enemy_1 + is_friend = event_target:rip_enemy_1 + is_lover = event_target:rip_enemy_1 + } + } + save_event_target_as = rip_new_enemy + } + random_friend = { + limit = { + block_general_event_trigger = no + NOR = { + is_rival = event_target:rip_enemy_1 + character = event_target:rip_enemy_1 + is_friend = event_target:rip_enemy_1 + is_lover = event_target:rip_enemy_1 + } + } + save_event_target_as = rip_new_enemy + } + } + + character_event = { id = RIP.29010 days = 40 } + } + } +} + +#Lover +character_event = { + id = RIP.29001 + desc = EVTDSC_RIP_29001 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_death + + is_triggered_only = yes + + immediate = { + add_character_modifier = { + modifier = grief_timer + years = 10 + hidden = yes + } + } + + #Visit their tomb + option = { + name = EVTOPTA_RIP_29001 + custom_tooltip = { text = EVTOPTA_RIP_29001_TOOLTIP } + + if = { + limit = { + event_target:rip_widow = { always = yes } + NOT = { event_target:rip_widow = { character = ROOT } } + } + hidden_tooltip = { event_target:rip_widow = { character_event = { id = RIP.29002 days = 7 } } } + break = yes + } + + hidden_tooltip = { character_event = { id = RIP.29004 days = 7 } } + + ai_chance = { factor = 10 } + } + + #Stay in room and cry + option = { + trigger = { + NOR = { + trait = cruel + trait = cynical + trait = depressed + } + } + name = EVTOPTB_RIP_29001 + custom_tooltip = { text = EVTOPTB_RIP_29001_TOOLTIP } + + if = { + limit = { NOT = { trait = depressed } } + + random = { + chance = 50 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + + #Recover from depression + random_list = { + 10 = { character_event = { id = RIP.29015 days = 200 random = 600 } } + 20 = { + modifier = { + factor = 0 + has_character_modifier = pet_cat + } + character_event = { id = RIP.29016 days = 200 random = 600 } + } + 10 = { + modifier = { + factor = 0 + NOT = { + any_child = { + age = 3 + NOT = { age = 12 } + } + } + } + character_event = { id = RIP.29017 days = 200 random = 600 } + } + 20 = { } #Nothing + } + } + } + } + + ai_chance = { factor = 15 } + } + + option = { + trigger = { trait = depressed } + name = EVTOPTD_RIP_29001 + custom_tooltip = { text = EVTOPTD_RIP_29001_TOOLTIP } + + death = { death_reason = death_suicide_hanging } + + ai_chance = { factor = 1 } + } + + #Face the world. You're a badass! + option = { + trigger = { + NOR = { + trait = kind + trait = craven + } + } + + name = EVTOPTC_RIP_29001 + custom_tooltip = { text = EVTOPTC_RIP_29001_TOOLTIP } + + random_list = { + 33 = { + modifier = { + factor = 0 + trait = cynical + } + add_trait = cynical + hidden_tooltip = { character_event = { id = 38258 } } + } + 33 = { + modifier = { + factor = 0 + trait = cruel + } + add_trait = cruel + hidden_tooltip = { character_event = { id = 38259 } } + } + 33 = { + #Nothing + } + } + + ai_chance = { factor = 10 } + } +} + +#Widow finds lover at tomb +character_event = { + id = RIP.29002 + desc = EVTDSC_RIP_29002 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_death + + is_triggered_only = yes + + #Let it mourn + option = { + trigger = { + NOR = { + trait = cruel + trait = envious + trait = wroth + } + } + name = EVTOPTA_RIP_29002 + + if = { + limit = { NOT = { trait = kind } } + add_trait = kind + } + + FROM = { hidden_tooltip = { character_event = { id = RIP.29004 days = 3 } } } + } + + #Lash out + option = { + trigger = { NOT = { trait = kind } } + + ai_chance = { factor = 3 } + + name = EVTOPTB_RIP_29002 + + if = { + limit = { NOT = { is_rival = FROM } } + add_rival = FROM + } + + FROM = { hidden_tooltip = { character_event = { id = RIP.29003 days = 3 } } } + + if = { + limit = { NOT = { trait = envious } } + add_trait = envious + } + } +} + +#Lover visits tomb, meets widow +character_event = { + id = RIP.29003 + desc = EVTDSC_RIP_29003 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29003 + add_rival = FROM + } +} + +#Lover visits tomb, finds memento +character_event = { + id = RIP.29004 + desc = EVTDSC_RIP_29004 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_death + + is_triggered_only = yes + hide_from = yes + + option = { + name = EVTOPTA_RIP_29004 + add_character_modifier = { + name = lovers_memento + duration = -1 + } + + } +} + + +#Death of a friend +character_event = { + id = RIP.29005 + desc = EVTDSC_RIP_29005 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_death + + is_triggered_only = yes + + immediate = { + add_character_modifier = { + modifier = grief_timer + years = 10 + hidden = yes + } + } + + #Go out drinking + option = { + name = EVTOPTA_RIP_29005 + custom_tooltip = { text = EVTOPTA_RIP_29005_TOOLTIP } + + hidden_tooltip = { + if = { + limit = { event_target:rip_friend_2 = { always = yes } } + event_target:rip_friend_2 = { character_event = { id = RIP.29006 days = 3 } } + break = yes + } + + random_courtier = { + limit = { block_general_event_trigger = no NOT = { is_friend = ROOT } ai = yes } + character_event = { id = RIP.29006 days = 3 } + break = yes + } + + character_event = { id = RIP.29008 days = 3 } + } + + ai_chance = { factor = 20 } + + } + + #Be alone + option = { + trigger = { + NOR = { + trait = cruel + trait = cynical + trait = depressed + } + } + name = EVTOPTB_RIP_29005 + custom_tooltip = { text = EVTOPTB_RIP_29001_TOOLTIP } + + if = { + limit = { NOT = { trait = depressed } } + + random = { + chance = 50 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + + #Recover from depression + random_list = { + 10 = { character_event = { id = RIP.29015 days = 200 random = 600 } } + 20 = { + modifier = { + factor = 0 + has_character_modifier = pet_cat + } + character_event = { id = RIP.29016 days = 200 random = 600 } + } + 10 = { + modifier = { + factor = 0 + NOT = { + any_child = { + age = 3 + NOT = { age = 12 } + } + } + } + character_event = { id = RIP.29017 days = 200 random = 600 } + } + 20 = { } #Nothing + } + } + } + } + + ai_chance = { factor = 10 } + } + + #Suicide + option = { + trigger = { trait = depressed } + name = EVTOPTD_RIP_29001 + custom_tooltip = { text = EVTOPTD_RIP_29001_TOOLTIP } + + death = { death_reason = death_suicide_hanging } + + ai_chance = { factor = 1 } + } + + #Get rid of all of your friends + option = { + name = EVTOPTD_RIP_29005 + custom_tooltip = { text = EVTOPTD_RIP_29005_TOOLTIP } + trigger = { + any_friend = { is_alive = yes } + } + any_friend = { remove_friend = ROOT } + + ai_chance = { factor = 5 } + } +} + +#Ping new friend +character_event = { + id = RIP.29006 + desc = EVTDSC_RIP_29006 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_brothel + + is_triggered_only = yes + + #Approach + option = { + name = EVTOPTA_RIP_29007_A + hidden_tooltip = { FROM = { character_event = { id = RIP.29007 } } } + custom_tooltip = { text = EVTOPTA_RIP_29006_TOOLTIP } + + ai_chance = { factor = 3 } + } + + #Leave alone + option = { + name = EVTOPTB_RIP_29006 + hidden_tooltip = { FROM = { character_event = { id = RIP.29008 } } } + custom_tooltip = { text = EVTOPTB_RIP_29006_TOOLTIP } + + ai_chance = { factor = 1 } + } +} + +#Meet new friend +character_event = { + id = RIP.29007 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_brothel + + is_triggered_only = yes + + desc = { + trigger = { event_target:rip_friend_2 = { always = yes } } + text = EVTDSC_RIP_29007_A + } + desc = { + trigger = { NOT = { event_target:rip_friend_2 = { always = yes } } } + text = EVTDSC_RIP_29007_B + } + + #Let's be friends + option = { + name = { + trigger = { event_target:rip_friend_2 = { always = yes } } + text = EVTOPTA_RIP_29007_A + } + name = { + trigger = { NOT = { event_target:rip_friend_2 = { always = yes } } } + text = EVTOPTA_RIP_29007_B + } + + add_friend = FROM + + hidden_tooltip = { FROM = { character_event = { id = RIP.29009 days = 3 } } } + + ai_chance = { factor = 3 } + } + + #I don't want your company! + option = { + name = EVTOPTB_RIP_29007 + custom_tooltip = { text = EVTOPTB_RIP_29007_TOOLTIP } + + reverse_opinion = { + modifier = opinion_rejected_friend + who = FROM + years = 3 + } + + hidden_tooltip = { character_event = { id = RIP.29008 days = 3 } } + hidden_tooltip = { FROM = { character_event = { id = RIP.29009 days = 3 } } } + + ai_chance = { factor = 1 } + } +} + +#Become a drunkard +character_event = { + id = RIP.29008 + desc = EVTDSC_RIP_29008 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_drunk + + is_triggered_only = yes + hide_from = yes + + option = { + name = EVTOPTB_RIP_29008 + if = { + limit = { NOT = { trait = drunkard } } + add_trait = drunkard + } + } +} + +#Did approaching the drinking friend of friend work? +character_event = { + id = RIP.29009 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_feast + + is_triggered_only = yes + + desc = { + trigger = { is_friend = FROM } + text = EVTDSC_RIP_29009_A + picture = GFX_evt_feast + } + desc = { + trigger = { NOT = { is_friend = FROM } } + text = EVTDSC_RIP_29009_B + picture = GFX_evt_quarrel + } + + option = { + name = { + trigger = { is_friend = FROM } + text = EVTOPTA_RIP_29009_A + } + name = { + trigger = { NOT = { is_friend = FROM } } + text = EVTOPTA_RIP_29009_B + } + } +} + +#Death of a rival +character_event = { + id = RIP.29010 + desc = EVTDSC_RIP_29010 + border = GFX_event_normal_frame_war + picture = GFX_evt_death + + is_triggered_only = yes + + immediate = { + add_character_modifier = { + modifier = grief_timer + years = 10 + hidden = yes + } + } + + #Steal skull + option = { + name = EVTOPTA_RIP_29010 + custom_tooltip = { text = EVTOPTA_RIP_29010_TOOLTIP } + + trigger = { + OR = { + trait = cruel + trait = wroth + trait = impaler + trait = lunatic + trait = possessed + trait = arbitrary + } + } + + hidden_tooltip = { + random_list = { + #Fail + 40 = { + modifier = { + factor = 0 + OR = { + NOT = { event_target:rip_widow = { always = yes } } + NOT = { event_target:rip_child = { always = yes } } + event_target:rip_widow = { character = ROOT } + event_target:rip_child = { character = ROOT } + } + } + + if = { + limit = { event_target:rip_widow = { NOT = { character = ROOT } } } + event_target:rip_widow = { character_event = { id = RIP.29011 days = 7 } } + break = yes + } + if = { + limit = { event_target:rip_child = { NOT = { character = ROOT } } } + event_target:rip_child = { character_event = { id = RIP.29011 days = 7 } } + } + } + #Success + 60 = { + modifier = { + factor = 1.2 + intrigue = 9 + } + modifier = { + factor = 1.2 + intrigue = 12 + } + modifier = { + factor = 1.2 + intrigue = 15 + } + modifier = { + factor = 1.2 + intrigue = 18 + } + modifier = { + factor = 1.2 + intrigue = 21 + } + + character_event = { id = RIP.29013 days = 7 } + } + } + } + + ai_chance = { factor = 2 } + } + + #Enemy of my enemy + option = { + trigger = { event_target:rip_enemy_2 = { is_alive = yes } } + name = EVTOPTB_RIP_29010 + custom_tooltip = { text = EVTOPTB_RIP_29010_TOOLTIP } + + add_friend = event_target:rip_enemy_2 + + ai_chance = { factor = 10 } + } + + #Get a new enemy + option = { + trigger = { event_target:rip_new_enemy = { is_alive = yes } } + name = EVTOPTC_RIP_29010 + custom_tooltip = { text = EVTOPTC_RIP_29010_TOOLTIP } + + add_rival = event_target:rip_new_enemy + + ai_chance = { factor = 5 } + + } + #Repent + option = { + trigger = { + OR = { + any_rival = { is_alive = yes } + trait = cruel + trait = envious + NOT = { trait = kind } + } + } + + name = EVTOPTD_RIP_29010 + custom_tooltip = { text = EVTOPTD_RIP_29010_TOOLTIP } + + if = { + limit = { + NOR = { + trait = cruel + trait = envious + trait = kind + } + } + add_trait = kind + } + if = { + limit = { + trait = envious + NOT = { trait = cruel } + } + remove_trait = envious + } + if = { + limit = { trait = cruel } + remove_trait = cruel + } + + random_rival = { remove_rival = ROOT } + ai_chance = { factor = 5 } + } + + #No time + option = { + name = EVTOPTE_RIP_29010 + custom_tooltip = { text = EVTOPTE_RIP_29010_TOOLTIP } + + if = { + limit = { trait = stressed } + remove_trait = stressed + } + if = { + limit = { trait = depressed } + remove_trait = depressed + } + + ai_chance = { factor = 15 } + } +} + +#Spouse/child catches someone trying to steal skull +character_event = { + id = RIP.29011 + desc = EVTDSC_RIP_29011 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_bloody_tools + + is_triggered_only = yes + + #Imprison + option = { + trigger = { is_ruler = yes } + + name = EVTOPTA_RIP_29011 + + #adds rival + if = { + limit = { + NOT = { is_rival = FROM } + } + add_rival = FROM + } + + #If they are your liege, you become a traitor + if = { + limit = { is_liege_or_above = FROM } + + reverse_opinion = { + modifier = opinion_traitor + who = FROM + years = 20 + } + } + + #If you are their liege, they become a traitor + if = { + limit = { FROM = { is_liege_or_above = ROOT } } + opinion = { + modifier = opinion_traitor + who = FROM + years = 20 + } + } + + FROM = { imprison = ROOT } + + hidden_tooltip = { + FROM = { + set_character_flag = rip_imprisoned + character_event = { id = RIP.29012 } + } + } + + ai_chance = { + factor = 1 + + modifier = { + factor = 3 + trait = wroth + } + } + } + + #Get out + option = { + name = EVTOPTB_RIP_29011 + + if = { + limit = { + NOT = { is_rival = FROM } + } + add_rival = FROM + } + + #If you are their liege, they become a traitor + if = { + limit = { FROM = { is_liege_or_above = ROOT } } + opinion = { + modifier = opinion_traitor + who = FROM + years = 20 + } + } + + custom_tooltip = { text = EVTOPTB_RIP_29011_TOOLTIP } + + ai_chance = { + factor = 5 + } + + hidden_tooltip = { FROM = { character_event = { id = RIP.29012 } } } + } +} + +#Effects of getting caught +character_event = { + id = RIP.29012 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_bloody_tools + + is_triggered_only = yes + + desc = { + trigger = { has_character_flag = rip_imprisoned } + text = EVTDSC_RIP_29012_A + picture = GFX_evt_into_the_dungeon + } + desc = { + trigger = { NOT = { has_character_flag = rip_imprisoned } } + text = EVTDSC_RIP_29012_B + picture = GFX_evt_bloody_tools + } + + option = { + name = EVTOPTA_RIP_29012 + + add_rival = FROM + + #If they are your liege, you become a traitor + if = { + limit = { is_liege_or_above = FROM } + reverse_opinion = { + modifier = opinion_traitor + who = FROM + years = 20 + } + } + + add_character_modifier = { + name = graverobber + years = 10 + } + + if = { + limit = { has_character_flag = rip_imprisoned } + + imprison = FROM + + #If you are their liege, they become a traitor + if = { + limit = { FROM = { is_liege_or_above = ROOT } } + opinion = { + modifier = opinion_traitor + who = FROM + years = 20 + } + } + + clr_character_flag = rip_imprisoned + } + } +} + +#Successfully steal skull +character_event = { + id = RIP.29013 + border = GFX_event_normal_frame_intrigue + desc = EVTDSC_RIP_29013 + picture = GFX_evt_bloody_tools + + is_triggered_only = yes + hide_from = yes + + option = { + name = EVTOPTA_RIP_29013 + custom_tooltip = { text = EVTOPTA_RIP_29013_TT } + + hidden_effect = { + add_artifact = rival_skull + new_artifact = { + set_original_owner = event_target:rip_dead + } + } + + hidden_tooltip = { + event_target:rip_widow = { character_event = { id = RIP.29014 } } + event_target:rip_dead = { any_child = { character_event = { id = RIP.29014 } } } + } + } +} + +#Notification of stolen skull +character_event = { + id = RIP.29014 + border = GFX_event_normal_frame_intrigue + desc = EVTDSC_RIP_29014 + picture = GFX_evt_bloody_tools + + is_triggered_only = yes + hide_from = yes + + trigger = { NOT = { character = FROM } } + + option = { + name = EVTOPTA_RIP_29014 + + random_list = { + 30 = { + modifier = { + factor = 0 + trait = stressed + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + 20 = { + modifier = { + factor = 0 + trait = depressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + 60 = { + #Nothing + } + } + } +} + +#Done mourning, faith +character_event = { + id = RIP.29015 + border = GFX_event_normal_frame_religion + desc = EVTDSC_RIP_29015 + picture = GFX_evt_bishop + + trigger = { trait = depressed } + + is_triggered_only = yes + hide_from = yes + + option = { + name = EVTOPTA_RIP_29015 + remove_trait = depressed + + if = { + limit = { NOR = { trait = cynical trait = zealous } } + add_trait = zealous + } + if = { + limit = { trait = cynical } + remove_trait = cynical + } + } + option = { + name = EVTOPTB_RIP_29015 + + if = { + limit = { NOR = { trait = cynical trait = zealous } } + add_trait = cynical + } + if = { + limit = { trait = zealous } + remove_trait = zealous + } + } +} + +#Done mourning, cat +character_event = { + id = RIP.29016 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29016 + picture = GFX_evt_cat + + trigger = { trait = depressed } + + is_triggered_only = yes + hide_from = yes + + option = { + name = EVTOPTA_RIP_29016 + remove_trait = depressed + + add_cat_effect = yes + + } + option = { + name = EVTOPTB_RIP_29016 + } +} + +#Done mourning, child +character_event = { + id = RIP.29017 + + hide_window = yes + is_triggered_only = yes + + trigger = { + trait = depressed + + any_child = { + age = 3 + NOT = { age = 16 } + } + } + + option = { + random_child = { + limit = { age = 3 NOT = { age = 13 } } + character_event = { id = RIP.29018 } + } + } +} + +character_event = { + id = RIP.29018 + + hide_window = yes + is_triggered_only = yes + + option = { FROM = { character_event = { id = RIP.29019 } } } +} + +character_event = { + id = RIP.29019 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29019 + picture = GFX_evt_family + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29019 + custom_tooltip = { text = EVTOPTA_RIP_29019_TOOLTIP } + remove_trait = depressed + + add_friend = FROM + + } + option = { + name = EVTOPTB_RIP_29019 + custom_tooltip = { text = EVTOPTB_RIP_29019_TOOLTIP } + reverse_opinion = { + who = FROM + modifier = opinion_neglectful_parent + } + } +} + +#You promised friend to look after their child +character_event = { + id = RIP.29020 + border = GFX_event_normal_frame_religion + desc = EVTDSC_RIP_29020 + picture = GFX_evt_death + + is_triggered_only = yes + + immediate = { + add_character_modifier = { + modifier = grief_timer + years = 10 + hidden = yes + } + + event_target:rip_dead = { + if = { + limit = { any_child = { ai = no } } + + random_child = { + limit = { ai = no NOR = { is_rival = ROOT is_friend = ROOT is_lover = ROOT } } + save_event_target_as = rip_heir + } + break = yes + } + if = { + limit = { any_child = { is_heir = yes } NOR = { is_rival = ROOT is_friend = ROOT is_lover = ROOT } } + + random_child = { + limit = { is_heir = yes } + save_event_target_as = rip_heir + } + break = yes + } + random_child = { + limit = { age = 12 NOR = { is_rival = ROOT is_friend = ROOT is_lover = ROOT } } + save_event_target_as = rip_heir + } + } + } + + #Approach + option = { + name = EVTOPTA_RIP_29020 + custom_tooltip = { text = EVTOPTA_RIP_29020_TOOLTIP } + hidden_tooltip = { event_target:rip_heir = { character_event = { id = RIP.29021 days = 7 } } } + event_target:rip_heir = { + set_character_flag = rip_flag + clr_character_flag = rip_flag + } + + ai_chance = { + factor = 7 + modifier = { + factor = 2 + OR = { + trait = gregarious + trait = kind + trait = just + } + } + } + } + + #Or become lovers...? + option = { + trigger = { + #Must be appropriate love target + event_target:rip_heir = { + is_adult = yes + NOT = { is_close_relative = ROOT } + root_attraction_trigger = yes + } + + #Root must be motivated + OR = { + event_target:rip_heir = { trait = fair } + trait = lustful + trait = seducer + trait = seductress + AND = { + age = 40 + has_lover = no + is_married = no + } + } + + #Root can't be unmotivated + NOR = { + trait = chaste + trait = celibate + } + } + name = EVTOPTC_RIP_29020 + custom_tooltip = { text = EVTOPTC_RIP_29020_TOOLTIP } + hidden_tooltip = { event_target:rip_heir = { character_event = { id = RIP.29024 days = 7 } } } + + event_target:rip_heir = { + set_character_flag = rip_flag + clr_character_flag = rip_flag + } + + if = { + limit = { NOT = { trait = lustful } } + random = { + chance = 50 + add_trait = lustful + hidden_tooltip = { character_event = { id = 38272 } } #Notify Lustful + } + } + + ai_chance = { factor = 15 } + } + + #Don't approach + option = { + name = EVTOPTB_RIP_29020 + custom_tooltip = { text = EVTOPTB_RIP_29020_TOOLTIP } + + if = { + limit = { NOR = { trait = shy trait = gregarious } } + random = { + chance = 50 + add_trait = shy + hidden_tooltip = { character_event = { id = 38263 } } #Notify Shy + } + } + if = { + limit = { trait = gregarious } + random = { + chance = 50 + remove_trait = gregarious + hidden_tooltip = { character_event = { id = 38297 } } #Notify remove gregarious + } + } + ai_chance = { + factor = 3 + modifier = { + factor = 2 + OR = { + trait = shy + trait = cruel + trait = arbitrary + } + } + } + } +} + +#Getting approached by dead parent's friend +character_event = { + id = RIP.29021 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29021 + picture = GFX_evt_death + + is_triggered_only = yes + + #Let's be friends + option = { + name = EVTOPTA_RIP_29021 + + add_friend = FROM + hidden_tooltip = { FROM = { character_event = { id = RIP.29022 } } } + + ai_chance = { + factor = 7 + modifier = { + factor = 2 + OR = { + trait = gregarious + trait = kind + trait = just + } + } + } + } + + #I am fine on my own + option = { + name = EVTOPTB_RIP_29021 + + reverse_opinion = { + who = FROM + modifier = opinion_rejected_friend + years = 5 + } + hidden_tooltip = { FROM = { character_event = { id = RIP.29023 } } } + + ai_chance = { + factor = 3 + modifier = { + factor = 2 + OR = { + trait = shy + trait = cruel + trait = arbitrary + } + } + } + } +} + +#Confirmed friendship +character_event = { + id = RIP.29022 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29022 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29022 + + tooltip = { add_friend = FROM } + } +} + +#Denied friendship +character_event = { + id = RIP.29023 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29023 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29023 + + tooltip = { + opinion = { + who = FROM + modifier = opinion_rejected_friend + years = 5 + } + } + } +} + +#Getting approached by dead parent's friend, lover +character_event = { + id = RIP.29024 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29024 + picture = GFX_evt_death + + is_triggered_only = yes + + #Let's be lovers + option = { + name = EVTOPTA_RIP_29024 + + add_lover = FROM + hidden_tooltip = { FROM = { character_event = { id = RIP.29025 } } } + + ai_chance = { + factor = 1 + modifier = { + factor = 5 + OR = { + trait = lustful + trait = seducer + trait = seductress + } + } + modifier = { + factor = 0 + OR = { + FROM = { root_attraction_trigger = no } + trait = celibate + } + } + } + } + + #No! + option = { + name = EVTOPTB_RIP_29024 + + reverse_opinion = { + who = FROM + modifier = opinion_advance_rejected + years = 10 + } + + hidden_tooltip = { FROM = { character_event = { id = RIP.29026 } } } + + ai_chance = { + factor = 3 + modifier = { + factor = 2 + OR = { + trait = shy + trait = chaste + is_ascetic_trigger = yes + is_married = yes + } + } + modifier = { + factor = 5 + has_lover = yes + } + } + } +} + +#COnfirmed lovers +character_event = { + id = RIP.29025 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29025 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29022 + + tooltip = { add_lover = FROM } + } +} + +#Denied lover +character_event = { + id = RIP.29026 + border = GFX_event_normal_frame_diplomacy + desc = EVTDSC_RIP_29026 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29023 + + tooltip = { + opinion = { + who = FROM + modifier = opinion_advance_rejected + years = 10 + } + } + } +} + + +###MAIMED FLAVOUR EVENTS### + +#Disfigured events +character_event = { + id = RIP.29100 + + is_triggered_only = yes + hide_window = yes + + only_playable = yes + + trigger = { + trait = disfigured + NOT = { trait = severely_injured } + block_general_event_trigger = no + } + + option = { + random_list = { + #Golden mask + 10 = { + modifier = { + factor = 0 + OR = { + any_lover = { is_alive = yes } + has_character_modifier = golden_mask + } + } + character_event = { id = RIP.29101 } + } + #Scaring the children + 10 = { + modifier = { + factor = 0 + NOR = { + is_married = yes + any_child = { + age = 2 + NOT = { age = 13 } + NOT = { trait = brave } + NOT = { trait = willful } + NOT = { trait = rowdy } + } + } + } + random_spouse = { + limit = { + any_child = { + age = 2 + NOT = { age = 13 } + NOT = { trait = brave } + NOT = { trait = willful } + NOT = { trait = rowdy } + } + } + character_event = { id = RIP.29102 } + } + } + #Phantom pain + 10 = { + modifier = { + factor = 0 + OR = { + NOT = { any_courtier_or_vassal = { has_minor_title = title_court_physician } } + has_character_modifier = phantom_pain + } + } + character_event = { id = RIP.29500 } + } + #Masquerade + 10 = { + modifier = { + factor = 0 + OR = { + any_courtier = { has_character_modifier = forced_mask } + any_courtier = { has_character_modifier = attending_masquerade } + } + } + character_event = { id = RIP.29104 } + } + } + } +} + +#Golden mask +character_event = { + id = RIP.29101 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_courtiers_talking + + desc = { + trigger = { prefers_men_trigger = yes } + text = EVTDSC_RIP_29101_A + } + desc = { + trigger = { prefers_men_trigger = no } + text = EVTDSC_RIP_29101_B + } + + is_triggered_only = yes + + option = { + name = { + trigger = { prefers_men_trigger = yes } + text = EVTOPTA_RIP_29101_A + } + name = { + trigger = { prefers_men_trigger = no } + text = EVTOPTA_RIP_29101_B + } + + custom_tooltip = { text = EVTOPTA_RIP_29101_TOOLTIP } + + scaled_wealth = { value = -0.2 min = -25 } + add_character_modifier = { + name = golden_mask + duration = -1 + } + hidden_tooltip = { + remove_trait = disfigured + add_trait = disfigured + } + } + + option = { + name = EVTOPTB_RIP_29101 + custom_tooltip = { text = EVTOPTB_RIP_29101_TOOLTIP } + } +} + + +#Scaring the children +character_event = { + id = RIP.29102 + + is_triggered_only = yes + hide_window = yes + + immediate = { + random_child = { + limit = { + age = 2 + NOT = { age = 13 } + NOT = { trait = brave } + NOT = { trait = willful } + NOT = { trait = rowdy } + } + save_event_target_as = rip_scared_child + } + } + + option = { FROM = { character_event = { id = RIP.29103 } } } + +} + +character_event = { + id = RIP.29103 + desc = EVTDSC_RIP_29103 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_child_play + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29103 + custom_tooltip = { text = EVTOPTA_RIP_29103_TOOLTIP } + + reverse_opinion = { + who = FROM + modifier = opinion_did_not_take_my_advice + } + + random = { + chance = 50 + + event_target:rip_scared_child = { + + opinion = { + who = ROOT + modifier = opinion_repulsed_deformity + } + + if = { + limit = { + NOR = { + trait = craven + trait = berserker + } + NOT = { has_dlc = "Zeus" } + } + add_trait = craven + } + if = { + limit = { NOT = { trait = timid } has_dlc = "Zeus" } + add_trait = timid + } + } + } + } + + option = { + name = EVTOPTB_RIP_29103 + custom_tooltip = { text = EVTOPTB_RIP_29103_TOOLTIP } + + random = { + chance = 50 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } +} + +#Masquerade +character_event = { + id = RIP.29104 + desc = EVTDSC_RIP_29104 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29104 + custom_tooltip = { text = EVTOPTA_RIP_29104_TOOLTIP } + scaled_wealth = { value = -0.25 min = -25 } + + + hidden_tooltip = { + set_character_flag = do_not_disturb + + #Invitations + any_courtier = { + character_event = { id = RIP.29112 days = 3 } + } + any_vassal = { + character_event = { id = RIP.29112 days = 3 } + } + + if = { + limit = { + OR = { + trait = lunatic + trait = envious + } + } + character_event = { id = RIP.29105 days = 20 } + } + if = { + limit = { + NOR = { + trait = lunatic + trait = envious + } + } + character_event = { id = RIP.29110 days = 20 } + } + } + } + + option = { + name = EVTOPTB_RIP_29104 + custom_tooltip = { text = EVTOPTB_RIP_29104_TOOLTIP } + } +} + +#Notice of masquerade ball starting +character_event = { + id = RIP.29112 + desc = EVTDSC_RIP_29112 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_scandal + + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29112 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_courtiers_talking + text = EVTDSC_RIP_29112 + } + + is_triggered_only = yes + + #Attend + option = { + name = EVTOPTA_RIP_29112 + + add_character_modifier = { + name = attending_masquerade + duration = -1 + } + + set_character_flag = do_not_disturb + + character_event = { id = RIP.29114 days = 100 } + + ai_chance = { + factor = 30 + modifier = { + factor = 2 + OR = { + trait = gregarious + trait = disfigured + trait = hedonist + trait = gluttonous + trait = socializer + } + } + } + } + + #Decline + option = { + name = EVTOPTB_RIP_29112 + + reverse_opinion = { + modifier = opinion_declined_party + who = FROM + years = 10 + } + + hidden_tooltip = { + remove_character_modifier = attending_masquerade + } + ai_chance = { + factor = 1 + modifier = { + factor = 20 + OR = { + trait = shy + trait = paranoid + } + } + } + } +} + +#Masquerade for crazy people +character_event = { + id = RIP.29105 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_suspicious_noble + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29105 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_suspicious_noble + text = EVTDSC_RIP_29105 + } + + is_triggered_only = yes + + #YES (lunatic) + option = { + trigger = { trait = lunatic } + name = EVTOPTA_RIP_29105 + custom_tooltip = { text = EVTOPTA_RIP_29105_TOOLTIP } + + tooltip_info = lunatic + + if = { + limit = { NOT = { trait = lunatic } } + random = { + chance = 50 + add_trait = lunatic + character_event = { id = 38304 } + } + } + + hidden_tooltip = { character_event = { id = RIP.29106 } } + } + + #YES (envious) + option = { + trigger = { trait = envious NOT = { trait = lunatic } } + name = EVTOPTA_RIP_29105 + custom_tooltip = { text = EVTOPTA_RIP_29105_TOOLTIP } + + tooltip_info = envious + + if = { + limit = { NOT = { trait = lunatic } } + random = { + chance = 50 + add_trait = lunatic + character_event = { id = 38304 } + } + } + + hidden_tooltip = { character_event = { id = RIP.29106 } } + } + + #Nah + option = { + name = EVTOPTB_RIP_29105 + custom_tooltip = { text = EVTOPTB_RIP_29105_TOOLTIP } + + hidden_tooltip = { + + any_realm_character = { + limit = { has_character_modifier = attending_masquerade } + opinion = { + modifier = opinion_great_masquerade + who = ROOT + years = 10 + } + + character_event = { id = RIP.29113 } + + remove_character_modifier = attending_masquerade + } + } + } +} + +#Reactions to crazy (ruler) +character_event = { + id = RIP.29106 + desc = EVTDSC_RIP_29106 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29106 + custom_tooltip = { text = EVTOPTA_RIP_29106_TOOLTIP } + + hidden_tooltip = { + clr_character_flag = do_not_disturb + set_character_flag = crazy_masked_ruler + save_event_target_as = rip_masked_ruler + + any_realm_character = { + limit = { has_character_modifier = attending_masquerade } + + character_event = { id = RIP.29107 } + + } + } + } +} + +#Reactions to crazy ruler (everyone else) +character_event = { + id = RIP.29107 + desc = EVTDSC_RIP_29107 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29107 + custom_tooltip = { text = EVTOPTA_RIP_29107_TOOLTIP } + + hidden_tooltip = { + clr_character_flag = do_not_disturb + remove_character_modifier = attending_masquerade + character_event = { id = RIP.29108 days = 100 } + } + + opinion = { + who = FROM + modifier = opinion_insane_ruler + months = 1200 + } + + add_character_modifier = { + name = forced_mask + duration = -1 + } + + + } +} + +#Checking crazy ruler +character_event = { + id = RIP.29108 + + hide_window = yes + is_triggered_only = yes + + option = { + if = { + limit = { liege = { has_character_flag = crazy_masked_ruler } } + character_event = { id = RIP.29108 days = 100 } + } + if = { + limit = { liege = { NOT = { has_character_flag = crazy_masked_ruler } } } + character_event = { id = RIP.29109 } + } + } +} + +#Rejoice we can take mask of +character_event = { + id = RIP.29109 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_feast + + desc = { + trigger = { event_target:rip_masked_ruler = { is_alive = no } } + text = EVTDSC_RIP_29109_A + } + + desc = { + trigger = { event_target:rip_masked_ruler = { is_alive = yes } } + text = EVTDSC_RIP_29109_B + } + + is_triggered_only = yes + + immediate = { + remove_character_modifier = forced_mask + } + + option = { + name = EVTOPTA_RIP_29109 + custom_tooltip = { text = EVTOPTA_RIP_29109_TOOLTIP } + + tooltip = { remove_character_modifier = forced_mask } + } +} + +#29110 nice masquerade +character_event = { + id = RIP.29110 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_courtiers_talking + + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29110 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_courtiers_talking + text = EVTDSC_RIP_29110 + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29110 + custom_tooltip = { text = EVTOPTA_RIP_29110_TOOLTIP } + + add_character_modifier = { + name = great_dancer + years = 10 + } + + hidden_tooltip = { + clr_character_flag = do_not_disturb + + any_realm_character = { + limit = { has_character_modifier = attending_masquerade } + opinion = { + modifier = opinion_great_masquerade + who = ROOT + years = 10 + } + + remove_character_modifier = attending_masquerade + + character_event = { id = RIP.29113 } + } + } + } +} + +#Notice of masquerade ball ending well +character_event = { + id = RIP.29113 + desc = EVTDSC_RIP_29113 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_scandal + + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29113 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_courtiers_talking + text = EVTDSC_RIP_29113 + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29113 + + clr_character_flag = do_not_disturb + + tooltip = { + opinion = { + modifier = opinion_great_masquerade + who = FROM + years = 10 + } + } + } +} + +#Cleanup event attending_masquerade +character_event = { + id = RIP.29114 + + is_triggered_only = yes + hide_window = yes + + option = { + if = { + limit = { has_character_modifier = attending_masquerade } + remove_character_modifier = attending_masquerade + } + clr_character_flag = do_not_disturb + } +} + + + +#one-eyed events +character_event = { + id = RIP.29200 + + is_triggered_only = yes + hide_window = yes + + only_playable = yes + + trigger = { + trait = one_eyed + NOT = { trait = severely_injured } + block_general_event_trigger = no + } + + option = { + random_list = { + #Rock thrown at you + 10 = { + modifier = { + factor = 0 + NOR = { + any_child = { age = 4 NOT = { age = 16 } at_location = ROOT } + any_courtier = { age = 4 NOT = { age = 16 } } + } + } + character_event = { id = RIP.29201 } + } + #Glass eye + 10 = { + modifier = { + factor = 0 + has_character_modifier = glass_eye + } + character_event = { id = RIP.29205 } + } + #Phantom pain + 10 = { + modifier = { + factor = 0 + OR = { + NOT = { any_courtier_or_vassal = { has_minor_title = title_court_physician } } + has_character_modifier = phantom_pain + } + } + character_event = { id = RIP.29500 } + } + } + } +} + +#Rock thrown at you +character_event = { + id = RIP.29201 + desc = EVTDSC_RIP_29201 + border = GFX_event_normal_frame_war + picture = GFX_evt_child_bully + + is_triggered_only = yes + + immediate = { + random_child = { + limit = { age = 4 NOT = { age = 16 } at_location = ROOT } + save_event_target_as = rip_throwing_child + } + + if = { + limit = { NOT = { event_target:rip_throwing_child = { always = yes } } } + random_courtier = { + limit = { age = 4 NOT = { age = 16 } } + save_event_target_as = rip_throwing_child + } + } + } + + #Catch + option = { + name = EVTOPTA_RIP_29201 + + random_list = { + #Success + 60 = { + custom_tooltip = { text = EVTOPTA_RIP_29201_SUCCESS } + hidden_tooltip = { character_event = { id = RIP.29202 } } + } + + #Fail + 40 = { + custom_tooltip = { text = EVTOPTA_RIP_29201_FAILURE } + hidden_tooltip = { character_event = { id = RIP.29203 } } + } + } + } + + #Throw yourself at ground + option = { + name = EVTOPTB_RIP_29201 + custom_tooltip = { text = EVTOPTB_RIP_29201_TOOLTIP } + + if = { + limit = { NOR = { trait = craven trait = berserker } } + + random = { + chance = 20 + add_trait = craven + set_character_flag = became_craven + } + } + hidden_tooltip = { character_event = { id = RIP.29204 } } + } +} + +#Successful catch +character_event = { + id = RIP.29202 + desc = EVTDSC_RIP_29202 + border = GFX_event_normal_frame_war + picture = GFX_evt_guardian + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29202 + + prestige = 25 + change_martial = 1 + + reverse_opinion = { + who = event_target:rip_throwing_child + modifier = opinion_impressed + years = 5 + } + } +} + +#Failed catch +character_event = { + id = RIP.29203 + desc = EVTDSC_RIP_29203 + border = GFX_event_normal_frame_war + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29203 + + hidden_tooltip = { remove_trait = one_eyed } + add_trait = blinded + if = { + limit = { NOT = { trait = severely_injured } } + add_trait = severely_injured + resolve_severely_injured_effect = yes + } + + reverse_opinion = { + who = event_target:rip_throwing_child + modifier = opinion_afraid + years = 10 + } + } +} + +#Throwing yourself on the ground +character_event = { + id = RIP.29204 + desc = EVTDSC_RIP_29204 + border = GFX_event_normal_frame_war + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29204 + + prestige = -25 + + if = { + limit = { has_character_flag = became_craven } + tooltip = { add_trait = craven } + clr_character_flag = became_craven + } + + reverse_opinion = { + who = event_target:rip_throwing_child + modifier = opinion_scolded + } + } +} + +#Fake eye +character_event = { + id = RIP.29205 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_courtiers_talking + + desc = { + trigger = { prefers_men_trigger = yes } + text = EVTDSC_RIP_29205_A + } + desc = { + trigger = { prefers_men_trigger = no } + text = EVTDSC_RIP_29205_B + } + + is_triggered_only = yes + + #Get eye made + option = { + name = EVTOPTA_RIP_29205 + custom_tooltip = { text = EVTOPTA_RIP_29205_TOOLTIP } + + scaled_wealth = { value = -0.1 min = -15 } + + add_character_modifier = { + name = glass_eye + duration = -1 + } + hidden_tooltip = { + remove_trait = one_eyed + add_trait = one_eyed + } + + } + #Don't get eye made + option = { + name = EVTOPTB_RIP_29101 + custom_tooltip = { text = EVTOPTB_RIP_29101_TOOLTIP } + } +} + +#one-handed events +character_event = { + id = RIP.29300 + + is_triggered_only = yes + hide_window = yes + + only_playable = yes + + trigger = { + trait = one_handed + NOT = { trait = severely_injured } + block_general_event_trigger = no + } + + option = { + random_list = { + #Becoming ambidextrous + 10 = { + modifier = { + factor = 0 + OR = { + has_character_modifier = martially_ambidextrous + has_character_modifier = iron_hand + trait = blinded + } + } + character_event = { id = RIP.29301 } + } + #Getting a prosthetic hand + 10 = { + modifier = { + factor = 0 + OR = { + has_character_modifier = iron_hand + has_character_modifier = golden_hand + } + } + character_event = { id = RIP.29305 } + } + #Phantom pain + 10 = { + modifier = { + factor = 0 + OR = { + NOT = { any_courtier_or_vassal = { has_minor_title = title_court_physician } } + has_character_modifier = phantom_pain + } + } + character_event = { id = RIP.29500 } + } + } + } +} + +#Becoming ambidextrous +character_event = { + id = RIP.29301 + desc = EVTDSC_RIP_29301 + border = GFX_event_normal_frame_war + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29301 + custom_tooltip = { text = EVTOPTA_RIP_29301_TOOLTIP } + + random_list = { + #Success + 33 = { + modifier = { + factor = 1.2 + martial = 9 + } + modifier = { + factor = 1.2 + martial = 12 + } + modifier = { + factor = 1.2 + martial = 15 + } + modifier = { + factor = 1.2 + martial = 18 + } + modifier = { + factor = 1.2 + martial = 21 + } + + custom_tooltip = { text = EVTOPTA_RIP_29301_SUCCESS } + hidden_tooltip = { character_event = { id = RIP.29302 days = 60 random = 60 } } + } + #Nothing + 33 = { + custom_tooltip = { text = EVTOPTA_RIP_29301_FAILURE } + hidden_tooltip = { character_event = { id = RIP.29303 days = 60 random = 60 } } + } + 33 = { + custom_tooltip = { text = EVTOPTA_RIP_29301_INJURY } + hidden_tooltip = { character_event = { id = RIP.29304 days = 60 random = 60 } } + } + } + } + option = { + name = EVTOPTB_RIP_29301 + custom_tooltip = { text = EVTOPTB_RIP_29301_TOOLTIP } + + change_learning = 1 + } +} + +#Ambidextrous success +character_event = { + id = RIP.29302 + desc = EVTDSC_RIP_29302 + border = GFX_event_normal_frame_war + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29302 + add_character_modifier = { + name = martially_ambidextrous + duration = -1 + } + } +} + +#Ambidextrous failure +character_event = { + id = RIP.29303 + desc = EVTDSC_RIP_29303 + border = GFX_event_normal_frame_war + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29303 + } +} + +#Ambidextrous injury +character_event = { + id = RIP.29304 + desc = EVTDSC_RIP_29304 + border = GFX_event_normal_frame_war + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29304 + + random_list = { + #One-legged + 20 = { + modifier = { + factor = 0 + trait = one_legged + } + add_trait = one_legged + hidden_tooltip = { add_trait = severely_injured resolve_severely_injured_effect = yes } + hidden_tooltip = { character_event = { id = RIP.11503 } } #Notify one-legged + } + #One-eyed + 10 = { + modifier = { + factor = 0 + trait = one_eyed + } + add_trait = one_eyed + hidden_tooltip = { add_trait = severely_injured resolve_severely_injured_effect = yes } + hidden_tooltip = { character_event = { id = RIP.11501 } } #Notify one-eyed + } + #Disfigured + 10 = { + modifier = { + factor = 0 + trait = disfigured + } + add_trait = disfigured + hidden_tooltip = { add_trait = severely_injured resolve_severely_injured_effect = yes } + hidden_tooltip = { character_event = { id = RIP.11504 } } #Notify disfigured + } + #Mangled + 10 = { + modifier = { + factor = 0 + trait = mangled + } + add_trait = mangled + hidden_tooltip = { add_trait = severely_injured resolve_severely_injured_effect = yes } + hidden_tooltip = { character_event = { id = RIP.11505 } } #Notify mangled + } + 10 = { + modifier = { + factor = 0 + NAND = { + trait = one_legged + trait = one_eyed + trait = disfigured + trait = mangled + } + } + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } #Notify wounded + } + } + tooltip = { add_trait = severely_injured } + } +} + +#Get fake hand +character_event = { + id = RIP.29305 + desc = EVTDSC_RIP_29305 + border = GFX_event_normal_frame_religion + picture = GFX_evt_court_physician + + is_triggered_only = yes + + #Golden hand + option = { + name = EVTOPTA_RIP_29305 + custom_tooltip = { text = EVTOPTA_RIP_29305_TOOLTIP } + + scaled_wealth = { value = -0.75 min = -100 } + + add_character_modifier = { + name = golden_hand + duration = -1 + } + } + + #Iron hand + option = { + name = EVTOPTB_RIP_29305 + custom_tooltip = { text = EVTOPTB_RIP_29305_TOOLTIP } + + scaled_wealth = { value = -0.50 min = -50 } + + add_character_modifier = { + name = iron_hand + duration = -1 + } + + hidden_tooltip = { + random = { + chance = 50 + give_nickname = nick_iron_hand + } + } + } + + #No prosthetic hand + option = { + name = EVTOPTC_RIP_29305 + custom_tooltip = { text = EVTOPTC_RIP_29305_TOOLTIP } + } +} + + +#one-legged events +character_event = { + id = RIP.29400 + + is_triggered_only = yes + hide_window = yes + + only_playable = yes + + trigger = { + trait = one_legged + NOT = { trait = severely_injured } + block_general_event_trigger = no + } + + option = { + random_list = { + #Dancing + 10 = { + modifier = { + factor = 0 + prefers_men_trigger = yes + NOT = { + any_courtier = { + is_female = no + block_general_event_trigger = no + NOT = { is_lover = ROOT } + NOT = { is_close_relative = ROOT } + } + } + } + modifier = { + factor = 0 + prefers_men_trigger = no + NOT = { + any_courtier = { + is_female = yes + block_general_event_trigger = no + NOT = { is_lover = ROOT } + NOT = { is_close_relative = ROOT } + } + } + } + character_event = { id = RIP.29401 } + } + #Prosthesis + 10 = { + modifier = { + factor = 0 + OR = { + has_character_modifier = prosthetic_leg + has_character_modifier = peg_leg + } + } + character_event = { id = RIP.29404 } + } + #Phantom pain + 10 = { + modifier = { + factor = 0 + OR = { + NOT = { any_courtier_or_vassal = { has_minor_title = title_court_physician } } + has_character_modifier = phantom_pain + } + } + character_event = { id = RIP.29500 } + } + } + } +} + +#Dance with love interest? +character_event = { + id = RIP.29401 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_courtiers_talking + + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29401 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_courtiers_talking + text = EVTDSC_RIP_29401 + } + + immediate = { + if = { + limit = { prefers_men_trigger = yes } + + random_courtier = { + limit = { is_female = no block_general_event_trigger = no NOT = { is_lover = ROOT } NOT = { is_close_relative = ROOT } } + save_event_target_as = rip_love_interest + } + } + + if = { + limit = { prefers_men_trigger = no } + + random_courtier = { + limit = { is_female = yes block_general_event_trigger = no NOT = { is_lover = ROOT } NOT = { is_close_relative = ROOT } } + save_event_target_as = rip_love_interest + } + } + } + + is_triggered_only = yes + + #Try to dance + option = { + name = EVTOPTA_RIP_29401 + + random_list = { + 60 = { character_event = { id = RIP.29402 tooltip = EVTOPTA_RIP_29401_SUCCESS } } + 40 = { character_event = { id = RIP.29403 tooltip = EVTOPTA_RIP_29401_FAILURE } } + } + } + + #Avoid + option = { + name = EVTOPTB_RIP_29401 + custom_tooltip = { text = EVTOPTB_RIP_29401_TOOLTIP } + + random = { + chance = 33 + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } +} + +#Dance success +character_event = { + id = RIP.29402 + desc = EVTDSC_RIP_29402 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_courtiers_talking + + desc = { + trigger = { has_dlc = "Way of Life" } + picture = GFX_evt_dancing + text = EVTDSC_RIP_29402 + } + desc = { + trigger = { NOT = { has_dlc = "Way of Life" } } + picture = GFX_evt_courtiers_talking + text = EVTDSC_RIP_29402 + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29402 + add_lover = event_target:rip_love_interest + } +} + + + +#Dance fail +character_event = { + id = RIP.29403 + desc = EVTDSC_RIP_29403 + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29403 + + reverse_opinion = { + who = event_target:rip_love_interest + modifier = opinion_inept_dancer + } + } +} + +#Prosthetic leg +character_event = { + id = RIP.29404 + border = GFX_event_normal_frame_religion + picture = GFX_evt_court_physician + + desc = { + trigger = { NOT = { event_target:jester = { always = yes } } } + text = EVTDSC_RIP_29404_A + } + desc = { + trigger = { event_target:jester = { always = yes } } + text = EVTDSC_RIP_29404_B + } + + is_triggered_only = yes + + immediate = { + random_courtier = { + limit = { has_minor_title = title_court_jester } + save_event_target_as = jester + } + random_vassal = { + limit = { has_minor_title = title_court_jester } + save_event_target_as = jester + } + } + + #Fake leg + option = { + name = EVTOPTA_RIP_29404 + custom_tooltip = { text = EVTOPTA_RIP_29404_TOOLTIP } + + scaled_wealth = { value = -0.35 min = -35 } + + add_character_modifier = { + name = prosthetic_leg + duration = -1 + } + } + + #Peg leg + option = { + name = EVTOPTB_RIP_29404 + custom_tooltip = { text = EVTOPTB_RIP_29404_TOOLTIP } + + scaled_wealth = { value = -0.20 min = -20 } + + add_character_modifier = { + name = peg_leg + duration = -1 + } + + hidden_tooltip = { + random = { + chance = 50 + give_nickname = nick_peg_leg + } + } + } + + #No prosthetic leg + option = { + name = EVTOPTC_RIP_29404 + custom_tooltip = { text = EVTOPTC_RIP_29404_TOOLTIP } + } +} + + +#Phantom pain emerges +character_event = { + id = RIP.29500 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + desc = { + trigger = { trait = disfigured } + text = EVTDSC_RIP_29500_NOSE + } + desc = { + trigger = { trait = one_eyed } + text = EVTDSC_RIP_29500_EYE + } + desc = { + trigger = { trait = one_handed } + text = EVTDSC_RIP_29500_HAND + } + desc = { + trigger = { trait = one_legged } + text = EVTDSC_RIP_29500_LEG + } + + + is_triggered_only = yes + hide_from = yes + + immediate = { + any_courtier_or_vassal = { + limit = { has_minor_title = title_court_physician } + save_event_target_as = rip_physician + } + } + + option = { + name = EVTOPTA_RIP_29500 + + add_character_modifier = { + name = phantom_pain + duration = -1 + } + + hidden_tooltip = { character_event = { id = RIP.29501 days = 30 random = 60 } } + } +} + +#Court physician suggests treatments +character_event = { + id = RIP.29501 + desc = EVTDSC_RIP_29501 + border = GFX_event_normal_frame_religion + picture = GFX_evt_court_physician + + is_triggered_only = yes + + trigger = { + has_character_modifier = phantom_pain + } + + option = { + name = EVTOPTA_RIP_29501 + + random_list = { + 50 = { character_event = { id = RIP.29502 tooltip = EVTOPTA_RIP_29501_SUCCESS days = 30 } } + 50 = { character_event = { id = RIP.29503 tooltip = EVTOPTA_RIP_29501_FAILURE days = 15 } } #Gives food poisoning + } + } + + option = { + name = EVTOPTB_RIP_29501 + + random_list = { + 80 = { character_event = { id = RIP.29502 tooltip = EVTOPTA_RIP_29501_SUCCESS days = 30 } } + 20 = { character_event = { id = RIP.29504 tooltip = EVTOPTB_RIP_29501_FAILURE days = 15 } } #Gives infirm + } + } + + + option = { + name = EVTOPTC_RIP_29501 + custom_tooltip = { text = EVTOPTC_RIP_29501_TOOLTIP } + } +} + +#Phantom pain gone +character_event = { + id = RIP.29502 + desc = EVTDSC_RIP_29502 + border = GFX_event_normal_frame_religion + picture = GFX_evt_prospering_province + + is_triggered_only = yes + + trigger = { + has_character_modifier = phantom_pain + } + + option = { + name = EVTOPTA_RIP_29502 + + remove_character_modifier = phantom_pain + } +} + +#Failed mild treatment +character_event = { + id = RIP.29503 + desc = EVTDSC_RIP_29503 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29503 + + if = { + limit = { NOT = { has_character_flag = developing_illness } } + + tooltip = { add_trait = diarrhea } + set_character_flag = got_food_poisoning + set_character_flag = developing_illness + hidden_tooltip = { character_event = { id = RIP.5002 } } + } + } +} + +#Failed extreme treatment +character_event = { + id = RIP.29504 + desc = EVTDSC_RIP_29504 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_crazy_treatment + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29504 + + if = { + limit = { NOT = { trait = infirm } } + add_trait = infirm + } + + opinion = { + modifier = opinion_traitor + who = event_target:rip_physician + } + } +} + +#Spouse/lover/child or lover takes care of you +character_event = { + id = RIP.29511 + + is_triggered_only = yes + + hide_window = yes + + trigger = { + OR = { + any_child = { is_alive = yes } + any_lover = { is_alive = yes } + any_spouse = { is_alive = yes } + } + OR = { + trait = severely_injured + AND = { + has_character_modifier = bedridden_illness + OR = { + trait = gout + trait = cancer + trait = has_typhoid_fever + trait = flu + } + } + } + } + + option = { + random_spouse = { + limit = { + NOT = { has_minor_title = title_court_physician } + NOT = { is_lover = ROOT } + block_general_event_trigger = no + } + save_event_target_as = caretaker + } + + if = { + limit = { NOT = { event_target:caretaker = { always = yes } } } + random_child = { + limit = { + liege = { character = ROOT } + age = 16 + NOT = { has_minor_title = title_court_physician } + } + save_event_target_as = caretaker + } + } + + if = { + limit = { NOT = { event_target:caretaker = { always = yes } } } + random_lover = { + limit = { + NOT = { has_minor_title = title_court_physician } + block_general_event_trigger = no + } + save_event_target_as = caretaker + } + } + + event_target:caretaker = { character_event = { id = RIP.29505 } } + + } +} + +#Take care of sick person? +character_event = { + id = RIP.29505 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + desc = { + trigger = { FROM = { trait = severely_injured } } + text = EVTDSC_RIP_29505_A + } + desc = { + trigger = { FROM = { NOT = { trait = severely_injured } } } + text = EVTDSC_RIP_29505_B + } + + is_triggered_only = yes + + #Yes + option = { + name = EVTOPTA_RIP_29505 + custom_tooltip = { text = EVTOPTA_RIP_29505_TOOLTIP } + + hidden_tooltip = { FROM = { character_event = { id = RIP.29506 } } } + + ai_chance = { + factor = 60 + + modifier = { + trait = kind + factor = 2 + } + modifier = { + opinion = { who = FROM value = 40 } + factor = 2 + } + } + } + + #Yes, but badly... + option = { + trigger = { NOT = { opinion = { who = FROM value = 20 } } } + + name = EVTOPTB_RIP_29505 + custom_tooltip = { text = EVTOPTB_RIP_29505_TOOLTIP } + + set_character_flag = bad_caretaker + hidden_tooltip = { FROM = { character_event = { id = RIP.29506 } } } + + ai_chance = { + factor = 15 + + modifier = { + trait = ambitious + factor = 2 + } + modifier = { + trait = cruel + factor = 2 + } + modifier = { + trait = deceitful + factor = 2 + } + modifier = { + trait = honest + factor = 0.5 + } + modifier = { + NOT = { opinion = { who = FROM value = -20 } } + factor = 2 + } + } + } + + #No + option = { + name = EVTOPTC_RIP_29505 + + ai_chance = { + factor = 40 + } + } +} + +#Relation offers to take care +character_event = { + id = RIP.29506 + desc = EVTDSC_RIP_29506 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + trigger = { + OR = { + trait = severely_injured + AND = { + has_character_modifier = bedridden_illness + OR = { + trait = gout + trait = cancer + trait = has_typhoid_fever + trait = flu + } + } + } + } + + #Yes + option = { + name = EVTOPTA_RIP_29506 + custom_tooltip = { text = EVTOPTA_RIP_29506_TOOLTIP } + + hidden_tooltip = { + random_list = { + 60 = { + modifier = { + factor = 1.3 + physician_good_trigger = yes + } + modifier = { + factor = 1.3 + is_smart_trigger = yes + } + modifier = { + factor = 1.3 + learning = 12 + } + + character_event = { id = RIP.29507 days = 14 } + } + 40 = { + modifier = { + factor = 5 + FROM = { has_character_flag = bad_caretaker } + } + modifier = { + factor = 1.3 + physician_bad_trigger = yes + } + modifier = { + factor = 1.3 + is_dumb_trigger = yes + } + modifier = { + factor = 1.3 + NOT = { learning = 8 } + } + + character_event = { id = RIP.29509 days = 14 } + } + } + } + } + + #No + option = { + name = EVTOPTB_RIP_29506 + + prestige = 20 + + reverse_opinion = { + who = FROM + modifier = opinion_ungrateful + years = 3 + } + } +} + +#Recieving good care +character_event = { + id = RIP.29507 + desc = EVTDSC_RIP_29507 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + + option = { + name = EVTOPTA_RIP_29507 + + add_character_modifier = { + name = good_care + duration = 365 + } + + event_target:caretaker = { character_event = { id = RIP.29508 } } + + if = { + limit = { + NOT = { event_target:caretaker = { is_child_of = ROOT } } + NOT = { is_lover = event_target:caretaker } + NOT = { event_target:caretaker = { has_character_flag = bad_caretaker } } + } + + event_target:caretaker = { set_character_flag = make_lover } + tooltip = { add_lover = event_target:caretaker } + } + + if = { + limit = { + event_target:caretaker = { is_child_of = ROOT } + NOT = { is_friend = event_target:caretaker } + NOT = { event_target:caretaker = { has_character_flag = bad_caretaker } } + } + + event_target:caretaker = { set_character_flag = make_friend } + tooltip = { add_friend = event_target:caretaker } + } + + tooltip = { + opinion = { + who = event_target:caretaker + modifier = opinion_grateful + years = 10 + } + } + } +} + +#You took good care +character_event = { + id = RIP.29508 + desc = EVTDSC_RIP_29508 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = { + trigger = { NOT = { has_character_flag = bad_caretaker } } + text = EVTOPTA_RIP_29508 + } + name = { + trigger = { has_character_flag = bad_caretaker } + text = EVTOPTB_RIP_29508 + } + + clr_character_flag = bad_caretaker + + if = { + limit = { has_character_flag = make_lover } + FROM = { add_lover = ROOT } + clr_character_flag = make_lover + } + if = { + limit = { has_character_flag = make_friend } + add_lover = FROM + clr_character_flag = make_lover + } + + reverse_opinion = { + who = FROM + modifier = opinion_grateful + years = 10 + } + } +} + +#Recieving bad care +character_event = { + id = RIP.29509 + desc = EVTDSC_RIP_29509 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29509 + + add_character_modifier = { + name = bad_care + duration = 365 + } + + event_target:caretaker = { character_event = { id = RIP.29510 } } + + tooltip = { + opinion = { + who = event_target:caretaker + modifier = opinion_neglected + years = 10 + } + } + } +} + +#You took bad care +character_event = { + id = RIP.29510 + desc = EVTDSC_RIP_29510 + border = GFX_event_normal_frame_religion + picture = GFX_evt_doctor_tending_to_sick + + is_triggered_only = yes + + option = { + name = { + trigger = { NOT = { has_character_flag = bad_caretaker } } + text = EVTOPTA_RIP_29510 + } + name = { + trigger = { has_character_flag = bad_caretaker } + text = EVTOPTB_RIP_29510 + } + + clr_character_flag = bad_caretaker + + reverse_opinion = { + who = FROM + modifier = opinion_neglected + years = 10 + } + } +} + + +###REACTION CHILD### +character_event = { + id = RIP.29600 + + is_triggered_only = yes + hide_window = yes + + only_playable = yes + + option = { + mother = { + if = { + limit = { + is_ruler = yes + dynasty = ROOT + NOT = { num_of_children = 2 } + } + character_event = { id = RIP.29601 days = 7 } + } + } + father = { + if = { + limit = { + is_ruler = yes + dynasty = ROOT + NOT = { num_of_children = 2 } + } + character_event = { id = RIP.29601 days = 7 } + } + } + + #Finally a son + mother = { + if = { + limit = { + is_ruler = yes + + #First male will inherit + NOT = { primary_title = { has_law = true_cognatic_succession } } + OR = { + primary_title = { has_law = succ_primogeniture } + primary_title = { has_law = succ_gavelkind } + } + + #Child is legitimate and not firsborn + dynasty = ROOT + ROOT = { NOT = { trait = bastard } } + ROOT = { is_female = no } + num_of_children = 2 + + #There is no other legitimate son + NOT = { + any_child = { + NOT = { character = ROOT } + is_female = no + dynasty = ROOT + NOT = { trait = bastard } + } + } + } + character_event = { id = RIP.29602 days = 7 } + } + + + } + + father = { + if = { + limit = { + is_ruler = yes + + #First male will inherit + NOT = { primary_title = { has_law = true_cognatic_succession } } + OR = { + primary_title = { has_law = succ_primogeniture } + primary_title = { has_law = succ_gavelkind } + } + + #Child is legitimate and not firsborn + dynasty = ROOT + ROOT = { NOT = { trait = bastard } } + ROOT = { is_female = no } + num_of_children = 2 + + #There is no other legitimate son + NOT = { + any_child = { + NOT = { character = ROOT } + is_female = no + dynasty = ROOT + NOT = { trait = bastard } + } + } + } + character_event = { id = RIP.29602 days = 7 } + + } + } + } +} + +#Reactions to firstborn +character_event = { + id = RIP.29601 + border = GFX_event_normal_frame_religion + picture = GFX_evt_birth + + trigger = { + FROM = { is_child_of = ROOT } + NOT = { has_character_modifier = good_relationship_omen } + NOT = { has_character_modifier = bad_relationship_omen } + } + + immediate = { + #Child is ugly + if = { + limit = { FROM = { trait = ugly } } + set_character_flag = text_ugly + break = yes + } + + #Child is weak/sickly/inbred + if = { + limit = { + FROM = { + OR = { + trait = sickly + trait = inbred + trait = weak + } + } + } + set_character_flag = text_weak + break = yes + } + + #Child is strong + if = { + limit = { FROM = { trait = strong } } + set_character_flag = text_strong + break = yes + } + + #Child is bastard + if = { + limit = { FROM = { trait = bastard } } + set_character_flag = text_bastard + break = yes + } + #Female won't inherit + if = { + limit = { + FROM = { is_female = yes } + OR = { + primary_title = { has_law = agnatic_succession } + primary_title = { has_law = succ_patrician_elective } + #religion_group = muslim + } + } + set_character_flag = text_girl_cant_inherit + break = yes + } + #Firstborn will inherit + if = { + limit = { + FROM = { + OR = { + AND = { + is_female = yes + ROOT = { primary_title = { has_law = true_cognatic_succession } } + } + is_female = no + } + } + OR = { + has_law = succ_primogeniture + has_law = succ_gavelkind + } + } + set_character_flag = text_firstborn_inherits + break = yes + } + #All other outcomes + set_character_flag = text_unsure_future + } + + desc = { + trigger = { has_character_flag = text_bastard } + text = EVTDSC_RIP_29601_A + } + desc = { + trigger = { has_character_flag = text_girl_cant_inherit } + text = EVTDSC_RIP_29601_B + } + desc = { + trigger = { has_character_flag = text_firstborn_inherits } + text = EVTDSC_RIP_29601_C + } + desc = { + trigger = { has_character_flag = text_unsure_future } + text = EVTDSC_RIP_29601_D + } + desc = { + trigger = { has_character_flag = text_ugly } + text = EVTDSC_RIP_29601_E + } + desc = { + trigger = { has_character_flag = text_weak } + text = EVTDSC_RIP_29601_F + } + desc = { + trigger = { has_character_flag = text_strong } + text = EVTDSC_RIP_29601_G + } + + is_triggered_only = yes + + option = { + name = { + trigger = { has_character_flag = text_bastard } + text = EVTOPTA_RIP_29601_A + } + name = { + trigger = { has_character_flag = text_girl_cant_inherit } + text = EVTOPTA_RIP_29601_B + } + name = { + trigger = { has_character_flag = text_firstborn_inherits } + text = EVTOPTA_RIP_29601_C + } + name = { + trigger = { has_character_flag = text_unsure_future } + text = EVTOPTA_RIP_29601_A + } + name = { + trigger = { has_character_flag = text_ugly } + text = EVTOPTA_RIP_29601_D + } + name = { + trigger = { has_character_flag = text_weak } + text = EVTOPTA_RIP_29601_E + } + name = { + trigger = { has_character_flag = text_strong } + text = EVTOPTA_RIP_29601_F + } + + hidden_tooltip = { + if = { + limit = { has_character_flag = text_firstborn_inherits } + FROM = { prestige = 50 } + } + } + + if = { + limit = { + OR = { + has_character_flag = text_firstborn_inherits + has_character_flag = text_strong + } + NOT = { FROM = { mother = { character = ROOT } } } + } + + FROM = { mother = { save_event_target_as = firstborn_mother } } + + opinion = { + who = event_target:firstborn_mother + modifier = opinion_mother_of_my_child + years = 5 + } + } + + clr_character_flag = text_bastard + clr_character_flag = text_girl_cant_inherit + clr_character_flag = text_firstborn_inherits + clr_character_flag = text_unsure_future + clr_character_flag = text_ugly + clr_character_flag = text_weak + clr_character_flag = text_strong + } +} + + +#Firstborn son +character_event = { + id = RIP.29602 + desc = EVTDSC_RIP_29602 + border = GFX_event_normal_frame_religion + picture = GFX_evt_birth + + is_triggered_only = yes + + option = { + FROM = { prestige = 50 } + name = EVTOPTA_RIP_29601_C + + if = { + limit = { + NOT = { FROM = { mother = { character = ROOT } } } + } + + FROM = { mother = { save_event_target_as = firstborn_mother } } + + opinion = { + who = event_target:firstborn_mother + modifier = opinion_mother_of_my_child + years = 5 + } + } + } +} + + +###RECRUIT PRISONER EVENTS### + +# Imprisoned courtier defects to gaoler (from decision "recruit_prisoner") +character_event = { + id = RIP.29700 + desc = EVTDSC_RIP_29700 + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29700 + } +} + +### old ruler on deathbed talking about their child's similarities to parent + +character_event = { + id = RIP.29800 + hide_window = yes + + is_triggered_only = yes + + trigger = { + OR = { + ai = no + has_game_rule = { + name = supernatural_events + value = unrestricted + } + } + death_reason = death_natural + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + current_heir = { + is_child_of = ROOT + NOR = { + trait = reincarnation + trait = incapable + prisoner = yes + is_inaccessible_trigger = yes + } + } + OR = { + father_even_if_dead = { + is_alive = no + } + mother_even_if_dead = { + is_alive = no + } + } + } + + immediate = { + random_list = { + 50 = { + modifier = { + factor = 0 + father_even_if_dead = { + is_alive = yes + } + } + father_even_if_dead = { + save_event_target_as = reincarnation_target + } + } + 50 = { + modifier = { + factor = 0 + mother_even_if_dead = { + is_alive = yes + } + } + mother_even_if_dead = { + save_event_target_as = reincarnation_target + } + } + } + current_heir = { + character_event = { + id = RIP.29801 + days = 10 + random = 10 + } + } + } + + option = { + + } +} + +character_event = { + id = RIP.29801 + desc = EVTDESC_RIP_29801 + picture = GFX_evt_into_the_dungeon + + ai = no + + trigger = { + OR = { + father = { character = FROM } + mother = { character = FROM } + } + NOR = { + trait = reincarnation + trait = incapable + prisoner = yes + is_inaccessible_trigger = yes + } + } + + immediate = { + event_target:reincarnation_target = { + ROOT = { set_reincarnation = PREV } + } + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29801 + character_event = { + days = 20 + id = RIP.29802 + TOOLTIP = EVTOPTA_RIP_29801_TOOLTIP + } + } + + option = { + name = EVTOPTB_RIP_29801 + custom_tooltip = { + text = EVTOPTB_RIP_29801_TOOLTIP + } + } +} + +character_event = { + id = RIP.29802 + desc = EVTDESC_RIP_29802 + picture = GFX_evt_into_the_dungeon + hide_from = yes + + ai = no + + + trigger = { + NOR = { + trait = reincarnation + trait = incapable + prisoner = yes + is_inaccessible_trigger = yes + } + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29802 + custom_tooltip = { + text = EVTOPTA_RIP_29802_TOOLTIP + } + hidden_tooltip = { + random_list = { + 50 = { + #get possessed, reincarnation trait + character_event = { id = RIP.29803 days = 10 } + } + 50 = { + #find some money + character_event = { id = RIP.29804 days = 10 } + } + } + } + } + + option = { + name = EVTOPTB_RIP_29802 + custom_tooltip = { + text = EVTOPTB_RIP_29802_TOOLTIP + } + prestige = 50 + } +} + +#get reincarnation, and possessed +character_event = { + id = RIP.29803 + desc = EVTDESC_RIP_29803 + picture = GFX_evt_into_the_dungeon + + ai = no + + trigger = { + NOR = { + trait = reincarnation + trait = incapable + prisoner = yes + is_inaccessible_trigger = yes + } + } + + is_triggered_only = yes + + option = { #what is happening to meeeeeee + name = EVTOPTA_RIP_29803 + add_trait = possessed + add_trait = reincarnation + } +} + +#found valuables +character_event = { + id = RIP.29804 + desc = EVTDESC_RIP_29804 + picture = GFX_evt_into_the_dungeon + + ai = no + + trigger = { + NOR = { + trait = reincarnation + trait = incapable + prisoner = yes + is_inaccessible_trigger = yes + } + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29804 + scaled_wealth = 0.5 + } +} + +#child is reborn ancestor +character_event = { + id = RIP.29805 + hide_window = yes + + is_triggered_only = yes + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion = manichean + religion = west_african_pagan_reformed + religion = west_african_pagan + } + OR = { + father = { + ai = no + is_reincarnated = no + father_even_if_dead = { + OR = { + is_alive = no + father_even_if_dead = { + is_alive = no + } + } + } + NOT = { + any_sibling = { + is_reincarnated = yes + } + } + } + mother = { + ai = no + is_reincarnated = no + father_even_if_dead = { + OR = { + is_alive = no + father_even_if_dead = { + is_alive = no + } + } + } + NOT = { + any_sibling = { + is_reincarnated = yes + } + } + } + } + NOT = { + any_sibling = { + is_reincarnated = yes + } + } + } + + option = { + if = { + limit = { + father = { + ai = no + } + } + if = { + limit = { + father = { + father_even_if_dead = { + father_even_if_dead = { + is_alive = no + } + } + } + } + father = { + father_even_if_dead = { + father_even_if_dead = { + ROOT = { + set_reincarnation = PREV + } + } + } + } + } + if = { + limit = { + is_reincarnated = no + } + father = { + father_even_if_dead = { + ROOT = { + set_reincarnation = PREV + } + } + } + } + + father = { + character_event = { + id = RIP.29806 + days = 30 + } + } + } + if = { + limit = { + mother = { ai = no } + is_reincarnated = no + } + if = { + limit = { + mother = { + father_even_if_dead = { + father_even_if_dead = { + is_alive = no + } + } + } + } + mother = { + father_even_if_dead = { + father_even_if_dead = { + ROOT = { + set_reincarnation = PREV + } + } + } + } + } + if = { + limit = { + is_reincarnated = no + } + mother = { + father_even_if_dead = { + ROOT = { + set_reincarnation = PREV + } + } + } + } + + mother = { + character_event = { + id = RIP.29806 + days = 30 + } + } + } + } +} + +# Reincarnation: Player notices the similarities +character_event = { + id = RIP.29806 + desc = EVTDESC_RIP_29806 + picture = GFX_evt_into_the_dungeon + + ai = no + + trigger = { + NOT = { + block_general_event_trigger = yes + } + } + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_29806 + piety = 100 + FROM = { + add_trait = reincarnation + } + } + + option = { + name = EVTOPTB_RIP_29806 + if = { + limit = { + NOR = { + trait = zealous + trait = cynical + } + } + add_trait = cynical + } + } +} + +####################################### +# LIEGE INTERFERES IN VASSAL WARS +# by Henrik Fåhraeus +####################################### + +# Vassal is asked by Liege to stop war of aggression against another vassal +letter_event = { + id = RIP.30000 + desc = EVTDESC_RIP_30000 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30000 # Ask for money + ai_chance = { + factor = 100 + modifier = { + factor = 5.0 + trait = greedy + } + modifier = { + factor = 2.0 + trait = envious + } + } + tooltip = { + FROMFROM = { + transfer_scaled_wealth = { + value = 0.2 + to = ROOT + min = 20 + } + } + } + FROMFROM = { + character_event = { id = RIP.30003 days = 3 } + } + } + option = { + name = EVTOPTB_RIP_30000 # Ask for a Favor + ai_chance = { + factor = 100 + modifier = { + factor = 3.0 + trait = deceitful + } + modifier = { + factor = 3.0 + trait = ambitious + } + } + trigger = { + has_dlc = "Conclave" + FROMFROM = { NOT = { owes_favor_to = ROOT } } + } + FROMFROM = { + character_event = { id = RIP.30007 days = 3 } + } + } + + option = { + name = EVTOPTC_RIP_30000 # Ask for nothing + ai_chance = { + factor = 100 + modifier = { + factor = 0 + is_rival = FROMFROM + } + modifier = { + factor = 20.0 + OR = { + is_friend = FROMFROM + is_lover = FROMFROM + } + } + modifier = { + factor = 2.0 + opinion = { + who = FROMFROM + value = 50 + } + } + modifier = { + factor = 4.0 + opinion = { + who = FROMFROM + value = 90 + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_very_grateful + years = 5 + } + } + + FROMFROM = { + character_event = { id = RIP.30001 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000 # Refuse + + trigger = { + FROMFROM = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_refused_to_end_war + years = 5 + } + } + FROMFROM = { + character_event = { id = RIP.30006 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000_TRAITOR # Refuse and become a traitor + + trigger = { + FROMFROM = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 20 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_traitor + years = 5 + } + } + FROMFROM = { + character_event = { id = RIP.30006 days = 3 } + } + } + +} + +# Vassal agrees, asking for nothing +letter_event = { + id = RIP.30001 + desc = EVTDESC_RIP_30001 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + event_target:target_defender = { + character_event = { id = RIP.30002 } + } + + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 5 + } + + FROM = { + any_war = { + limit = { + defender = { character = event_target:target_defender } + } + end_war = whitepeace + } + set_pacified = { + years = 1 + } + } + } +} + +# The other vassal is notified +letter_event = { + id = RIP.30002 + desc = EVTDESC_RIP_30002 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30002 + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 5 + } + } +} + +# Vassal agrees, asking for money +letter_event = { + id = RIP.30003 + desc = EVTDESC_RIP_30003 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30003 # Very well... + ai_chance = { + factor = 100 + modifier = { + factor = 0 + NOT = { scaled_wealth = 0.2 } + } + } + + event_target:target_defender = { + character_event = { id = RIP.30002 } + } + + tooltip = { + transfer_scaled_wealth = { + value = 0.2 + to = FROM + min = 20 + } + } + + FROM = { + character_event = { id = RIP.30004 } + any_war = { + limit = { + defender = { character = event_target:target_defender } + } + end_war = whitepeace + } + set_pacified = { + years = 3 + } + } + } + + option = { + name = EVTOPTB_RIP_30003 # I can't afford that + ai_chance = { + factor = 1 + } + FROM = { + character_event = { id = RIP.30005 } + } + } +} + +# The attacker is notified and given money +letter_event = { + id = RIP.30004 + desc = EVTDESC_RIP_30004 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + FROM = { + transfer_scaled_wealth = { + value = 0.2 + to = ROOT + min = 20 + } + } + } +} + +# The attacker is notified - liege cannot afford to pay that much money +letter_event = { + id = RIP.30005 + desc = EVTDESC_RIP_30005 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30005 + } +} + +# Vassal refuses liege's request. Liege is notified. +letter_event = { + id = RIP.30006 + desc = EVTDESC_RIP_30006 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30006 + + trigger = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = opinion_refused_to_end_war + years = 5 + } + } + + option = { + name = EVTOPTA_RIP_30006_TRAITOR + + trigger = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = opinion_traitor + years = 5 + } + } +} + +# Vassal agrees, asking for a Favor +letter_event = { + id = RIP.30007 + desc = EVTDESC_RIP_30007 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30003 # Very well... + ai_chance = { + factor = 100 + } + + event_target:target_defender = { + character_event = { id = RIP.30002 } + } + + reverse_add_favor = FROM + + opinion = { + who = FROM + modifier = opinion_grateful + years = 5 + } + + FROM = { + character_event = { id = RIP.30008 } + any_war = { + limit = { + defender = { character = event_target:target_defender } + } + end_war = whitepeace + } + set_pacified = { + years = 3 + } + } + } + + option = { + name = EVTOPTB_RIP_30007 # No + ai_chance = { + factor = 0 + } + + FROM = { + character_event = { id = RIP.30009 } + } + } +} + +# The attacker is notified about the favor +letter_event = { + id = RIP.30008 + desc = EVTDESC_RIP_30008 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + tooltip = { + add_favor = FROM + reverse_opinion = { + who = FROM + modifier = opinion_grateful + years = 5 + } + } + } +} + +# The attacker is notified - liege not willing to owe a favor +letter_event = { + id = RIP.30009 + desc = EVTDESC_RIP_30009 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30005 + } +} + +# Vassal is asked by Liege to stop war of aggression against another vassal - can't refuse since the liege calls in a favor +letter_event = { + id = RIP.30010 + desc = EVTDESC_RIP_30010 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30010 + + any_war = { + limit = { + defender = { character = event_target:target_defender } + } + end_war = whitepeace + } + + set_pacified = { + years = 2 + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_grateful + years = 5 + } + + reverse_remove_favor = FROMFROM + } + + FROMFROM = { + character_event = { id = RIP.30011 } + } + } +} + +# Liege gets feedback on the stopped war. The favor is used up. +letter_event = { + id = RIP.30011 + desc = EVTDESC_RIP_30011 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + event_target:target_defender = { + character_event = { id = RIP.30002 } + } + + opinion = { + who = FROM + modifier = opinion_grateful + years = 5 + } + } +} + +# DEFENDER SURRENDER EVENTS + +# Vassal is asked by Liege to surrender to another vassal on an ongoing war +letter_event = { + id = RIP.30020 + desc = EVTDESC_RIP_30020 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30000 # Ask for money + ai_chance = { + factor = 100 + modifier = { + factor = 5.0 + trait = greedy + } + modifier = { + factor = 2.0 + trait = envious + } + } + tooltip = { + FROMFROM = { + transfer_scaled_wealth = { + value = 0.33 + to = ROOT + min = 30 + } + } + } + FROMFROM = { + character_event = { id = RIP.30023 days = 3 } + } + } + option = { + name = EVTOPTB_RIP_30020 # Ask for a Favor + ai_chance = { + factor = 100 + modifier = { + factor = 3.0 + trait = deceitful + } + modifier = { + factor = 3.0 + trait = ambitious + } + } + trigger = { + has_dlc = "Conclave" + FROMFROM = { NOT = { owes_favor_to = ROOT } } + } + FROMFROM = { + character_event = { id = RIP.30027 days = 3 } + } + } + + option = { + name = EVTOPTC_RIP_30000 # Ask for nothing + ai_chance = { + factor = 50 + modifier = { + factor = 0 + is_rival = FROMFROM + } + modifier = { + factor = 10.0 + OR = { + is_friend = FROMFROM + is_lover = FROMFROM + } + } + modifier = { + factor = 1.5 + opinion = { + who = FROMFROM + value = 50 + } + } + modifier = { + factor = 2.0 + opinion = { + who = FROMFROM + value = 90 + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_very_grateful + years = 10 + } + } + + prestige = 100 + + FROMFROM = { + character_event = { id = RIP.30021 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000 # Refuse + + trigger = { + FROMFROM = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_refused_to_end_war + years = 3 + } + } + FROMFROM = { + character_event = { id = RIP.30026 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000_TRAITOR # Refuse + + trigger = { + FROMFROM = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 20 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_traitor + years = 3 + } + } + FROMFROM = { + character_event = { id = RIP.30026 days = 3 } + } + } +} + +# Vassal agrees, asking for nothing +letter_event = { + id = RIP.30021 + desc = EVTDESC_RIP_30021 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + event_target:target_attacker = { + character_event = { id = RIP.30022 } + } + + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 10 + } + + FROM = { + any_war = { + limit = { + attacker = { character = event_target:target_attacker } + } + end_war = success + } + } + } +} + +# The other vassal is notified +letter_event = { + id = RIP.30022 + desc = EVTDESC_RIP_30022 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30002 + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 10 + } + reverse_add_favor = FROM + } +} + +# Vassal agrees, asking for money +letter_event = { + id = RIP.30023 + desc = EVTDESC_RIP_30023 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30003 # Very well... + ai_chance = { + factor = 100 + modifier = { + factor = 0 + NOT = { scaled_wealth = 0.33 } + } + } + + event_target:target_attacker = { + character_event = { id = RIP.30022 } + } + + tooltip = { + transfer_scaled_wealth = { + value = 0.33 + to = FROM + min = 30 + } + } + + FROM = { + character_event = { id = RIP.30024 } + any_war = { + limit = { + attacker = { character = event_target:target_attacker } + } + end_war = success + } + } + } + + option = { + name = EVTOPTB_RIP_30003 # I can't afford that + ai_chance = { + factor = 1 + } + FROM = { + character_event = { id = RIP.30025 } + } + } +} + +# The defender is notified and given money +letter_event = { + id = RIP.30024 + desc = EVTDESC_RIP_30024 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + prestige = 100 + FROM = { + transfer_scaled_wealth = { + value = 0.33 + to = ROOT + min = 30 + } + } + } +} + +# The defender is notified - liege cannot afford to pay that much money +letter_event = { + id = RIP.30025 + desc = EVTDESC_RIP_30025 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30025 + } +} + +# Vassal refuses liege's request. Liege is notified. +letter_event = { + id = RIP.30026 + desc = EVTDESC_RIP_30026 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30006 + trigger = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = opinion_refused_to_end_war + years = 3 + } + } + + option = { + name = EVTOPTA_RIP_30006_TRAITOR + + trigger = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = opinion_traitor + years = 3 + } + } + +} + +# Vassal agrees, asking for a Favor +letter_event = { + id = RIP.30027 + desc = EVTDESC_RIP_30027 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30003 # Very well... + ai_chance = { + factor = 100 + } + + event_target:target_attacker = { + character_event = { id = RIP.30022 } + } + + reverse_add_favor = FROM + + opinion = { + who = FROM + modifier = opinion_grateful + years = 10 + } + + FROM = { + character_event = { id = RIP.30028 } + any_war = { + limit = { + attacker = { character = event_target:target_attacker } + } + end_war = success + } + } + } + + option = { + name = EVTOPTB_RIP_30007 # No + ai_chance = { + factor = 0 + } + + FROM = { + character_event = { id = RIP.30029 } + } + } +} + +# The defender is notified about the favor +letter_event = { + id = RIP.30028 + desc = EVTDESC_RIP_30028 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + prestige = 100 + tooltip = { + add_favor = FROM + reverse_opinion = { + who = FROM + modifier = opinion_grateful + years = 10 + } + } + } +} + +# The defender is notified - liege not willing to owe a favor +letter_event = { + id = RIP.30029 + desc = EVTDESC_RIP_30029 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30005 + } +} + +# Vassal is asked by Liege to surrender to another vassal - can't refuse since the liege calls in a favor +letter_event = { + id = RIP.30030 + desc = EVTDESC_RIP_30030 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30010 + + any_war = { + limit = { + attacker = { character = event_target:target_attacker } + } + end_war = success + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_very_grateful + years = 10 + } + + reverse_remove_favor = FROMFROM + } + + FROMFROM = { + character_event = { id = RIP.30031 } + } + } +} + +# Liege gets feedback on the surrender. The favor is used up. +letter_event = { + id = RIP.30031 + desc = EVTDESC_RIP_30031 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + event_target:target_attacker = { + character_event = { id = RIP.30022 } + } + + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 10 + } + } +} + +##################################################### +# LIEGE DEMANDS GAVELKIND SUCCESSION LAW OF A VASSAL +# Decision: demand_gavelkind +##################################################### + +# Liege asks the vassal to change succession law to Gavelkind +letter_event = { + id = RIP.30040 + desc = EVTDESC_RIP_30040 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30000 # Ask for money + ai_chance = { + factor = 100 + modifier = { + factor = 5.0 + trait = greedy + } + modifier = { + factor = 2.0 + trait = envious + } + } + tooltip = { + FROMFROM = { + transfer_scaled_wealth = { + value = 0.25 + to = ROOT + min = 25 + } + } + } + FROMFROM = { + character_event = { id = RIP.30043 days = 3 } + } + } + option = { + name = EVTOPTB_RIP_30040 # Ask for a Favor + ai_chance = { + factor = 100 + modifier = { + factor = 3.0 + trait = deceitful + } + modifier = { + factor = 3.0 + trait = ambitious + } + } + trigger = { + has_dlc = "Conclave" + FROMFROM = { NOT = { owes_favor_to = ROOT } } + } + FROMFROM = { + character_event = { id = RIP.30047 days = 3 } + } + } + + option = { + name = EVTOPTC_RIP_30000 # Ask for nothing + ai_chance = { + factor = 50 + modifier = { + factor = 0 + is_rival = FROMFROM + } + modifier = { + factor = 10.0 + OR = { + is_friend = FROMFROM + is_lover = FROMFROM + } + } + modifier = { + factor = 1.5 + opinion = { + who = FROMFROM + value = 50 + } + } + modifier = { + factor = 2.0 + opinion = { + who = FROMFROM + value = 90 + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_very_grateful + years = 10 + } + } + + prestige = 100 + + FROMFROM = { + character_event = { id = RIP.30041 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000 # Refuse + + trigger = { + FROMFROM = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 100 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = succ_law_change + multiplier = 2 + years = 3 + } + } + FROMFROM = { + character_event = { id = RIP.30046 days = 3 } + } + } + + option = { + name = EVTOPTD_RIP_30000_TRAITOR # Refuse + + trigger = { + FROMFROM = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + } + + ai_chance = { + factor = 20 + modifier = { + factor = 20.0 + is_rival = FROMFROM + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -25 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -50 + } + } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { + who = FROMFROM + value = -75 + } + } + } + } + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_traitor + years = 3 + } + } + FROMFROM = { + character_event = { id = RIP.30046 days = 3 } + } + } +} + +# Vassal agrees, asking for nothing +letter_event = { + id = RIP.30041 + desc = EVTDESC_RIP_30041 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 10 + } + + FROM = { + primary_title = { + add_law_w_cooldown = succ_gavelkind + } + set_character_flag = liege_forced_succ_law + } + } +} + +# Vassal agrees, asking for money +letter_event = { + id = RIP.30043 + desc = EVTDESC_RIP_30043 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30043 # Very well... + ai_chance = { + factor = 100 + modifier = { + factor = 0 + NOT = { scaled_wealth = 0.25 } + } + } + + tooltip = { + transfer_scaled_wealth = { + value = 0.25 + to = FROM + min = 25 + } + } + + FROM = { + character_event = { id = RIP.30044 } + primary_title = { + add_law_w_cooldown = succ_gavelkind + } + set_character_flag = liege_forced_succ_law + } + } + + option = { + name = EVTOPTB_RIP_30003 # I can't afford that + ai_chance = { + factor = 1 + } + FROM = { + character_event = { id = RIP.30045 } + } + } +} + +# The vassal is notified and given money +letter_event = { + id = RIP.30044 + desc = EVTDESC_RIP_30044 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + prestige = 100 + FROM = { + transfer_scaled_wealth = { + value = 0.25 + to = ROOT + min = 25 + } + } + } +} + +# The vassal is notified - liege cannot afford to pay that much money +letter_event = { + id = RIP.30045 + desc = EVTDESC_RIP_30045 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30045 + } +} + +# Vassal refuses liege's request. Liege is notified. +letter_event = { + id = RIP.30046 + desc = EVTDESC_RIP_30046 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30006 + trigger = { + NOR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = succ_law_change + multiplier = 2 + years = 3 + } + } + + option = { + name = EVTOPTA_RIP_30006_TRAITOR + + trigger = { + OR = { + has_law = ze_administration_laws_1 + has_law = ze_administration_laws_2 + } + } + + opinion = { + who = FROM + modifier = opinion_traitor + years = 3 + } + } +} + +# Vassal agrees, asking for a Favor +letter_event = { + id = RIP.30047 + desc = EVTDESC_RIP_30047 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30043 # Very well... + ai_chance = { + factor = 100 + } + + reverse_add_favor = FROM + + opinion = { + who = FROM + modifier = opinion_grateful + years = 10 + } + + FROM = { + character_event = { id = RIP.30048 } + primary_title = { + add_law_w_cooldown = succ_gavelkind + } + set_character_flag = liege_forced_succ_law + } + } + + option = { + name = EVTOPTB_RIP_30007 # No + ai_chance = { + factor = 0 + } + + FROM = { + character_event = { id = RIP.30049 } + } + } +} + +# The vassal is notified about the favor +letter_event = { + id = RIP.30048 + desc = EVTDESC_RIP_30048 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + prestige = 100 + tooltip = { + add_favor = FROM + reverse_opinion = { + who = FROM + modifier = opinion_grateful + years = 10 + } + } + } +} + +# The vassal is notified - liege not willing to owe a favor +letter_event = { + id = RIP.30049 + desc = EVTDESC_RIP_30049 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30045 + } +} + +# Vassal is asked by Liege to institute Gavelkind Law - can't refuse since the liege calls in a favor +letter_event = { + id = RIP.30050 + desc = EVTDESC_RIP_30050 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30010 + + primary_title = { + add_law_w_cooldown = succ_gavelkind + } + + set_character_flag = liege_forced_succ_law + + tooltip = { + reverse_opinion = { + who = FROMFROM + modifier = opinion_very_grateful + years = 10 + } + + reverse_remove_favor = FROMFROM + } + + FROMFROM = { + character_event = { id = RIP.30051 } + } + } +} + +# Liege gets feedback on the law change. The favor is used up. +letter_event = { + id = RIP.30051 + desc = EVTDESC_RIP_30051 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 10 + } + } +} + + +################################################################### +# Vassals appreciate when the liege builds stuff in their Holdings +# Fired from 'on_holding_building_start' +################################################################### +letter_event = { + id = RIP.30100 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + if = { + limit = { + NOT = { FROM = { holder_scope = { character = ROOT } } } + } + FROM = { + holder_scope = { + opinion = { + who = ROOT + modifier = opinion_built_building + years = 5 + } + } + } + } + } +} + +###SUICIDE EVENT CHAIN### + +#Suicide, from commit_suicide_immortal and commit_suicide +character_event = { + id = RIP.30200 + picture = GFX_evt_depopulated_town + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + desc = { + trigger = { immortal = yes } + text = EVTDESC_RIP_30200_A + } + desc = { + trigger = { + immortal = no + NOR = { + any_child = { is_alive = yes } + any_lover = { is_alive = yes } + any_friend = { is_alive = yes } + } + } + text = EVTDESC_RIP_30200_B + } + desc = { + trigger = { + immortal = no + OR = { + any_child = { is_alive = yes } + any_lover = { is_alive = yes } + any_friend = { is_alive = yes } + } + } + text = EVTDESC_RIP_30200_C + } + + is_triggered_only = yes + + immediate = { + character_event = { id = RIP.30201 days = 365 } #Cleanup + + random_rival = { + limit = { block_general_event_trigger = no } + save_event_target_as = suicide_duel_target + + } + } + + #Challenge rival to duel + option = { + trigger = { + event_target:suicide_duel_target = { always = yes } + } + name = EVTOPTA_RIP_30200 + custom_tooltip = { text = EVTOPTA_RIP_30200_TOOLTIP } + + event_target:suicide_duel_target = { hidden_tooltip = { letter_event = { id = RIP.30202 days = 1 } } } + + } + + #Drink poison + option = { + name = EVTOPTB_RIP_30200 + + hidden_tooltip = { + random_list = { + 50 = { + set_character_flag = suicide_success + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 10 + immortal = no + } + } + 50 = { + modifier = { + factor = 1.3 + health = 7 + } + modifier = { + factor = 1.3 + health = 8 + } + modifier = { + factor = 1.3 + health = 9 + } + modifier = { + factor = 1.3 + health = 10 + } + modifier = { + factor = 2 + NOT = { intrigue = 10 } + } + set_character_flag = suicide_fail + } + } + character_event = { id = RIP.30207 days = 14 } + } + } + + #Hang yourself + option = { + name = EVTOPTC_RIP_30200 + + hidden_tooltip = { + random_list = { + 30 = { + modifier = { + factor = 10 + immortal = no + } + set_character_flag = suicide_success + } + 70 = { + modifier = { + factor = 0 + NOT = { + any_courtier = { + block_general_event_trigger = no + ai = yes + } + } + } + set_character_flag = suicide_fail + } + } + character_event = { id = RIP.30208 days = 14 } + } + } + + #Throw yourself off a cliff + option = { + name = EVTOPTD_RIP_30200 + + hidden_tooltip = { + random_list = { + 50 = { + modifier = { + factor = 2 + is_weak_trigger = yes + } + modifier = { + factor = 10 + immortal = no + } + set_character_flag = suicide_success + } + 50 = { + + modifier = { + factor = 1.3 + health = 7 + } + modifier = { + factor = 1.3 + health = 8 + } + modifier = { + factor = 1.3 + health = 9 + } + modifier = { + factor = 1.3 + health = 10 + } + modifier = { + factor = 2 + is_strong_trigger = yes + } + set_character_flag = suicide_fail + } + } + character_event = { id = RIP.30209 days = 14 } + } + } +} + +#Cleanup-event +character_event = { + id = RIP.30201 + hide_window = yes + is_triggered_only = yes + + option = { + clr_character_flag = suicide_fail + clr_character_flag = suicide_success + clr_character_flag = lost_suicide_duel + clr_character_flag = incapable_suicide_duel + clr_character_flag = won_suicide_duel + clr_character_flag = attempting_suicide + } +} + +#Rival recieves challenge +letter_event = { + id = RIP.30202 + desc = EVTDESC_RIP_30202 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + #Yes + option = { + name = EVTOPTA_RIP_30202 + + FROM = { letter_event = { id = RIP.30203 days = 14 } } + + ai_chance = { + factor = 100 + + modifier = { + factor = 0.01 + trait = craven + } + } + } + + #No + option = { + name = EVTOPTB_RIP_30202 + + FROM = { letter_event = { id = RIP.30204 days = 14 } } + + add_character_modifier = { + name = wol_refused_duel + years = 10 + } + + ai_chance = { factor = 2 } + } +} + +#Recieve accept +letter_event = { + id = RIP.30203 + desc = EVTDESC_RIP_30203 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30203 + + hidden_tooltip = { + random_list = { + 50 = { + modifier = { + factor = 2 + immortal = no + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 1 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 2 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 3 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 4 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 5 } + } + + set_character_flag = lost_suicide_duel + } + 20 = { + modifier = { + factor = 1.5 + FROM = { combat_rating = 1 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 2 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 3 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 4 } + } + modifier = { + factor = 1.5 + FROM = { combat_rating = 5 } + } + set_character_flag = incapable_suicide_duel + } + 30 = { + modifier = { + factor = 1.5 + FROM = { NOT = { combat_rating = 0 } } + } + set_character_flag = won_suicide_duel + } + } + + character_event = { id = RIP.30205 days = 14 } + } + } +} + +#Recieve decline +letter_event = { + id = RIP.30204 + desc = EVTDESC_RIP_30204 + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_30204 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + } +} + +#Duel outcome +character_event = { + id = RIP.30205 + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + desc = { + trigger = { has_character_flag = lost_suicide_duel } + text = EVTDESC_RIP_30205_LOST + } + desc = { + trigger = { has_character_flag = won_suicide_duel } + text = EVTDESC_RIP_30205_WON + } + desc = { + trigger = { has_character_flag = incapable_suicide_duel } + text = EVTDESC_RIP_30205_INCAPABLE + } + + is_triggered_only = yes + + #You died in the duel + option = { + trigger = { has_character_flag = lost_suicide_duel } + name = EVTOPTA_RIP_30205 + + prestige = -100 + + death = { + death_reason = death_duel + killer = event_target:suicide_duel_target + } + + event_target:suicide_duel_target = { + tooltip = { prestige = 100 } + hidden_tooltip = { character_event = { id = RIP.30206 } } + } + } + + #Rival didn't kill you + option = { + trigger = { has_character_flag = won_suicide_duel } + name = EVTOPTB_RIP_30205 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + + add_trait_wounded_effect = yes + hidden_tooltip = { event_target:suicide_duel_target = { character_event = { id = RIP.30206 } } } + } + + #Rival didn't kill you but you kill them + option = { + trigger = { + has_character_flag = won_suicide_duel + event_target:suicide_duel_target = { ai = yes } + NOT = { trait = kind } + } + name = EVTOPTC_RIP_30205 + + prestige = 100 + + add_trait_wounded_effect = yes + + random = { + chance = 50 + add_trait_wroth_effect = yes + } + + event_target:suicide_duel_target = { + prestige = -100 + + death = { + death_reason = death_duel + killer = ROOT + } + } + } + + #You become incapable in the duel + option = { + trigger = { has_character_flag = incapable_suicide_duel } + name = EVTOPTD_RIP_30205 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + + prestige = -100 + + event_target:suicide_duel_target = { + tooltip = { prestige = 100 } + hidden_tooltip = { character_event = { id = RIP.30206 } } + } + + add_trait = incapable + } +} + +#Rival outcome +character_event = { + id = RIP.30206 + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + desc = { + trigger = { + OR = { + FROM = { has_character_flag = lost_suicide_duel } + FROM = { has_character_flag = incapable_suicide_duel } + } + } + text = EVTDESC_RIP_30206_WON + } + desc = { + trigger = { FROM = { has_character_flag = won_suicide_duel } } + text = EVTDESC_RIP_30206_LOST + } + + is_triggered_only = yes + + option = { + trigger = { FROM = { has_character_flag = lost_suicide_duel } } + name = EVTOPTA_RIP_30206 + + prestige = 100 + + FROM = { + tooltip = { + prestige = -100 + death = { + death_reason = death_duel + killer = ROOT + } + } + } + } + + option = { + trigger = { FROM = { has_character_flag = incapable_suicide_duel } } + name = EVTOPTB_RIP_30206 + + prestige = 100 + + FROM = { + tooltip = { + prestige = -100 + add_trait = incapable + } + } + } + + option = { + trigger = { FROM = { has_character_flag = won_suicide_duel } } + name = EVTOPTC_RIP_30206 + } +} + + + +#Suicide attempt through poison +character_event = { + id = RIP.30207 + picture = GFX_evt_performing_experiments + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + desc = { + trigger = { has_character_flag = suicide_success } + text = EVTDESC_RIP_30207_SUCCESS + picture = GFX_evt_performing_experiments + } + desc = { + trigger = { has_character_flag = suicide_fail } + text = EVTDESC_RIP_30207_FAIL + picture = GFX_evt_experiments_failed + } + + is_triggered_only = yes + + option = { + trigger = { has_character_flag = suicide_success } + name = EVTOPTA_RIP_30207 + + prestige = -200 + add_character_modifier = { + modifier = suicide + duration = -1 + } + death = { death_reason = death_suicide_poison } + } + option = { + trigger = { has_character_flag = suicide_fail } + name = EVTOPTB_RIP_30207 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + give_food_poisoning_effect = yes + } +} + +#Suicide attempt through hanging +character_event = { + id = RIP.30208 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + desc = { + trigger = { has_character_flag = suicide_success } + text = EVTDESC_RIP_30208_SUCCESS + } + desc = { + trigger = { has_character_flag = suicide_fail } + text = EVTDESC_RIP_30208_FAIL + } + + is_triggered_only = yes + + immediate = { + random_courtier = { + limit = { + block_general_event_trigger = no + ai = yes + } + save_event_target_as = found_hanger + } + } + + option = { + trigger = { has_character_flag = suicide_success } + name = EVTOPTA_RIP_30207 + + prestige = -200 + add_character_modifier = { + modifier = suicide + duration = -1 + } + + death = { death_reason = death_suicide_hanging } + } + option = { + trigger = { has_character_flag = suicide_fail } + name = EVTOPTB_RIP_30207 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + + prestige = -100 + + opinion = { + who = event_target:found_hanger + modifier = opinion_distressing_encounter + years = 5 + } + reverse_opinion = { + who = event_target:found_hanger + modifier = opinion_distressing_encounter + years = 5 + } + } +} + +#Suicide attempt through fall +character_event = { + id = RIP.30209 + picture = GFX_evt_prospering_province + border = GFX_event_normal_frame_intrigue + + hide_from = yes + + desc = { + trigger = { has_character_flag = suicide_success } + text = EVTDESC_RIP_30209_SUCCESS + } + desc = { + trigger = { has_character_flag = suicide_fail } + text = EVTDESC_RIP_30209_FAIL + } + + is_triggered_only = yes + + option = { + trigger = { has_character_flag = suicide_success } + name = EVTOPTA_RIP_30207 + + prestige = -200 + add_character_modifier = { + modifier = suicide + duration = -1 + } + + death = { death_reason = death_suicide_fall } + } + option = { + trigger = { has_character_flag = suicide_fail } + name = EVTOPTD_RIP_30205 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + + prestige = -100 + + add_trait = incapable + } +} + + +#Incapable suicide help request +character_event = { + id = RIP.30210 + picture = GFX_evt_doctor_tending_to_sick + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { event_target:suicide_assistant = { always = yes } } + text = EVTDESC_RIP_30210_A + } + desc = { + trigger = { NOT = { event_target:suicide_assistant = { always = yes } } } + text = EVTDESC_RIP_30210_B + } + + is_triggered_only = yes + + immediate = { + random_friend = { + limit = { + block_general_event_trigger = no + NOT = { has_character_flag = refused_assisted_suicide } + } + save_event_target_as = suicide_assistant + } + if = { + limit = { NOT = { event_target:suicide_assistant = { always = yes } } } + random_lover = { + limit = { + block_general_event_trigger = no + NOT = { has_character_flag = refused_assisted_suicide } + } + save_event_target_as = suicide_assistant + } + } + if = { + limit = { NOT = { event_target:suicide_assistant = { always = yes } } } + host = { + random_courtier = { + limit = { + has_minor_title = title_court_physician + NOT = { has_character_flag = refused_assisted_suicide } + } + save_event_target_as = suicide_assistant + } + } + } + if = { + limit = { NOT = { event_target:suicide_assistant = { always = yes } } } + random_child = { + limit = { + block_general_event_trigger = no + NOT = { has_character_flag = refused_assisted_suicide } + } + save_event_target_as = suicide_assistant + } + } + } + + option = { + trigger = { event_target:suicide_assistant = { always = yes } } + name = EVTOPTA_RIP_30210 + + hidden_tooltip = { event_target:suicide_assistant = { character_event = { id = RIP.30211 days = 5 } } } + } + + option = { + trigger = { NOT = { event_target:suicide_assistant = { always = yes } } } + name = EVTOPTB_RIP_30210 + + hidden_tooltip = { + set_character_flag = suicide_success + character_event = { id = RIP.30212 days = 5 } + } + } +} + +#Suicide request response +character_event = { + id = RIP.30211 + picture = GFX_evt_doctor_tending_to_sick + desc = EVTDESC_RIP_30211 + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + #Yes + option = { + name = EVTOPTA_RIP_30211 + + FROM = { + tooltip = { + death = { + death_reason = death_murder_unknown_strangle + killer = ROOT + } + } + hidden_tooltip = { + set_character_flag = suicide_success + character_event = { id = RIP.30212 } + } + } + + ai_chance = { + factor = 33 + + modifier = { + factor = 2 + is_benevolent_trigger = yes + } + modifier = { + factor = 2 + trait = brave + } + modifier = { + factor = 4 + trait = ambitious + FROM = { + current_heir = { + character = ROOT + } + } + } + } + } + + #No + option = { + name = EVTOPTB_RIP_30211 + + opinion = { + who = FROM + modifier = opinion_distressing_encounter + years = 5 + } + reverse_opinion = { + who = FROM + modifier = opinion_distressing_encounter + years = 5 + } + + set_character_flag = refused_assisted_suicide + + FROM = { + hidden_tooltip = { + set_character_flag = suicide_fail + character_event = { id = RIP.30212 } + } + } + + ai_chance = { + factor = 67 + + modifier = { + factor = 2 + is_evil_trigger = yes + } + modifier = { + factor = 2 + trait = craven + } + } + } +} + + +#Incapable suicide request outcome +character_event = { + id = RIP.30212 + picture = GFX_evt_doctor_tending_to_sick + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { + has_character_flag = suicide_success + NOT = { FROM = { character = ROOT } } + } + text = EVTDESC_RIP_30212_SUCCESS_A + } + desc = { + trigger = { + has_character_flag = suicide_success + FROM = { character = ROOT } + } + text = EVTDESC_RIP_30212_SUCCESS_B + } + desc = { + trigger = { has_character_flag = suicide_fail } + text = EVTDESC_RIP_30212_FAIL + } + + is_triggered_only = yes + + option = { + trigger = { has_character_flag = suicide_success } + name = EVTOPTA_RIP_30207 + + death = { + death_reason = death_murder_unknown_strangle + killer = FROM + } + } + + option = { + trigger = { has_character_flag = suicide_fail } + name = EVTOPTB_RIP_30212 + custom_tooltip = { text = EVTOPTA_RIP_30204_TOOLTIP } + } +} + +###CHESS WITH DEATH### + +character_event = { + id = RIP.30220 + hide_window = yes + + min_age = 16 + only_playable = yes + only_capable = yes + war = no + has_dlc = "Reapers" + ai = no + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + OR = { + religion_group = christian + any_realm_province = { any_neighbor_province = { owner = { religion_group = christian } } } + } + is_nomadic = no + NOT = { has_character_flag = chess_with_death } + immortal = no + } + + is_triggered_only = yes + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + OR = { + any_realm_province = { disease = bubonic_plague } + any_realm_province = { any_neighbor_province = { disease = bubonic_plague } } + } + } + modifier = { + factor = 1.5 + age = 70 + } + modifier = { + factor = 1.4 + NOT = { health = 2 } + } + modifier = { + factor = 1.2 + NOT = { health = 4 } + } + modifier = { + factor = 1.3 + trait = gamer + } + } + + immediate = { + set_character_flag = chess_with_death + + + if = { + limit = { religion_group = christian } + random_list = { + 50 = { + create_character = { + random_traits = no + age = 32 + dynasty = none + female = yes + trait = mastermind_theologian + trait = nun + trait = chaste + trait = shrewd + trait = gamer + trait = patient + trait = fatigue + trait = on_pilgrimage + attributes = { + martial = 5 + } + } + new_character = { save_event_target_as = death } + } + 50 = { + create_character = { + random_traits = no + age = 32 + dynasty = none + female = no + trait = mastermind_theologian + trait = monk + trait = chaste + trait = shrewd + trait = gamer + trait = patient + trait = fatigue + trait = on_pilgrimage + attributes = { + martial = 5 + } + } + new_character = { save_event_target_as = death } + } + } + } + if = { + limit = { NOT = { religion_group = christian } } + random_list = { + 50 = { + create_character = { + random_traits = no + age = 32 + dynasty = none + female = yes + name = Eugenia + culture = italian + race = italian + religion = catholic + trait = mastermind_theologian + trait = nun + trait = chaste + trait = shrewd + trait = gamer + trait = patient + trait = fatigue + trait = on_pilgrimage + attributes = { + martial = 5 + } + } + new_character = { save_event_target_as = death } + } + 50 = { + create_character = { + random_traits = no + age = 32 + dynasty = none + female = no + name = Augusto + culture = italian + race = italian + religion = catholic + trait = mastermind_theologian + trait = monk + trait = chaste + trait = shrewd + trait = gamer + trait = patient + trait = fatigue + trait = on_pilgrimage + attributes = { + martial = 5 + } + } + new_character = { save_event_target_as = death } + } + } + } + + set_character_flag = chess_30222 + event_target:death = { + health = 10 + + character_event = { id = RIP.30221 } + } + } +} + +#General ping event +character_event = { + id = RIP.30221 + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { + trigger_switch = { + on_trigger = has_character_flag + chess_30222 = { character_event = { id = RIP.30222 } } #Seeing someone during a walk + chess_30223 = { character_event = { id = RIP.30223 days = 5 } } #Talking to the nun/monk, they want room & board + chess_30224 = { narrative_event = { id = RIP.30224 days = 14 random = 14 } } #Death comes for you + chess_30225 = { character_event = { id = RIP.30225 days = 1 } } #Outcome of attacking death + chess_30226 = { character_event = { id = RIP.30226 days = 5 } } #Picking chess pieces + chess_30227 = { character_event = { id = RIP.30227 days = 3 } } #First move + chess_30228 = { character_event = { id = RIP.30228 days = 1 } } #Outcome of first move + chess_30229 = { character_event = { id = RIP.30229 days = 5 } } #Another tactic + chess_30230 = { character_event = { id = RIP.30230 days = 1 } } #Outcome of the tactic + chess_30231 = { character_event = { id = RIP.30231 days = 5 } } #Last move + chess_30232 = { narrative_event = { id = RIP.30232 days = 1 } } #The end + } + clr_character_flag = chess_30222 + clr_character_flag = chess_30223 + clr_character_flag = chess_30224 + clr_character_flag = chess_30225 + clr_character_flag = chess_30226 + clr_character_flag = chess_30227 + clr_character_flag = chess_30228 + clr_character_flag = chess_30229 + clr_character_flag = chess_30230 + clr_character_flag = chess_30231 + clr_character_flag = chess_30232 + } + } +} + +#Notice someone when out on a walk +character_event = { + id = RIP.30222 + picture = GFX_evt_garden + desc = EVTDESC_RIP_30222 + border = GFX_event_normal_frame_religion + + hide_from = yes + hide_new = yes + is_triggered_only = yes + + #Have a chat + option = { + name = EVTOPTA_RIP_30222 + + random = { + chance = 20 + add_trait_gregarious_effect = yes + } + random = { + chance = 30 + remove_trait_shy_effect = yes + } + + set_character_flag = walked_with_death + set_character_flag = chess_30223 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Want to be alone + option = { + name = EVTOPTB_RIP_30222 + + random = { + chance = 20 + add_trait_shy_effect = yes + } + random = { + chance = 30 + remove_trait_gregarious_effect = yes + } + + set_character_flag = chess_30224 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#You talk, they want room and board +character_event = { + id = RIP.30223 + picture = GFX_evt_wise_woman + border = GFX_event_normal_frame_religion + + desc = { + trigger = { + religion = FROM + FROM = { is_female = yes } + } + text = EVTDESC_RIP_30223_A + picture = GFX_evt_wise_woman + } + desc = { + trigger = { + religion = FROM + FROM = { is_female = no } + } + text = EVTDESC_RIP_30223_B + picture = GFX_evt_monk + } + desc = { + trigger = { + NOT = { religion = FROM } + FROM = { is_female = yes } + } + text = EVTDESC_RIP_30223_C + picture = GFX_evt_wise_woman + } + desc = { + trigger = { + NOT = { religion = FROM } + FROM = { is_female = no } + } + text = EVTDESC_RIP_30223_D + picture = GFX_evt_monk + } + + is_triggered_only = yes + + #Come stay with me + option = { + name = EVTOPTA_RIP_30223 + custom_tooltip = { text = EVTOPTA_RIP_30223_TOOLTIP } + + if = { + limit = { NOT = { religion_group = christian } } + remove_trait_zealous_effect = yes + add_trait = sympathy_christendom + } + + set_character_flag = invited_death + set_character_flag = chess_30224 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Have some money, sleep at the inn + option = { + name = EVTOPTB_RIP_30223 + custom_tooltip = { text = EVTOPTB_RIP_30223_TOOLTIP } + + scaled_wealth = { value = -0.1 min = -15 } + + set_character_flag = gave_death_money + set_character_flag = chess_30224 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Go away! + option = { + name = { + trigger = { religion_group = christian } + text = EVTOPTC_RIP_30223_A + } + name = { + trigger = { NOT = { religion_group = christian } } + text = EVTOPTC_RIP_30223_B + } + + custom_tooltip = { text = EVTOPTC_RIP_30223_TOOLTIP } + + if = { + limit = { religion_group = christian } + + piety = -50 + + random = { + chance = 50 + remove_trait_zealous_effect = yes + } + } + + if = { + limit = { NOT = { trait = charitable } } + random = { + chance = 50 + add_trait_greedy_effect = yes + } + } + random = { + chance = 50 + remove_trait_charitable_effect = yes + } + + set_character_flag = chess_30224 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#The reveal +narrative_event = { + id = RIP.30224 + title = EVTNAME_RIP_30224 + border = GFX_event_narrative_frame_intrigue + picture = GFX_evt_shadow + + desc = { + trigger = { has_character_flag = invited_death } + text = EVTDESC_RIP_30224_A + } + desc = { + trigger = { + NOT = { has_character_flag = invited_death } + has_character_flag = walked_with_death + } + text = EVTDESC_RIP_30224_B + } + desc = { + trigger = { + NOR = { + has_character_flag = invited_death + has_character_flag = walked_with_death + } + } + text = EVTDESC_RIP_30224_C + } + + is_triggered_only = yes + + immediate = { + FROM = { + remove_trait = fatigue + remove_trait = on_pilgrimage + remove_trait = nun + remove_trait = monk + } + if = { + limit = { + OR = { + trait = seducer + trait = seductress + } + same_sex = FROM + } + FROM = { add_trait = homosexual } #To "enable" seduction + } + } + + #Play chess with me! + option = { + name = EVTOPTA_RIP_30224 + custom_tooltip = { text = EVTOPTA_RIP_30224_TOOLTIP } + + set_character_flag = chess_30226 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Do your worst! + option = { + name = EVTOPTB_RIP_30224 + custom_tooltip = { text = EVTOPTB_RIP_30224_TOOLTIP } + + random_list = { + #You die + 80 = { + death = { death_reason = death_murder_unknown killer = FROM } + + hidden_tooltip = { + FROM = { + leave_court_effect = yes + death = { death_reason = death_missing } + } + } + } + #You survive + 20 = { + modifier = { + factor = 0 + trait = wounded + trait = mangled + trait = one_eyed + trait = one_handed + } + custom_tooltip = { text = EVTOPTB_RIP_30224_TOOLTIP_SURVIVE } + set_character_flag = chess_30225 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + } + + clr_character_flag = walked_with_death + clr_character_flag = invited_death + clr_character_flag = gave_death_money + } +} + +#You survived but got injured +character_event = { + id = RIP.30225 + picture = GFX_evt_bloody_tools + desc = EVTDESC_RIP_30225 + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + immediate = { + random_list = { + 25 = { + modifier = { + factor = 0 + trait = wounded + } + set_character_flag = give_wounded + } + 25 = { + modifier = { + factor = 0 + trait = mangled + } + set_character_flag = give_mangled + } + 25 = { + modifier = { + factor = 0 + trait = one_eyed + } + set_character_flag = give_one_eyed + } + 25 = { + modifier = { + factor = 0 + trait = one_handed + } + set_character_flag = give_one_handed + } + } + } + + option = { + name = EVTOPTB_RIP_30225 + + trigger_switch = { + on_trigger = has_character_flag + give_wounded = { add_trait_wounded_effect = yes } + give_mangled = { mangle_effect = yes } + give_one_eyed = { add_trait_one_eyed_effect = yes } + give_one_handed = { add_trait_one_handed_effect = yes } + } + + clr_character_flag = give_wounded + clr_character_flag = give_mangled + clr_character_flag = give_one_eyed + clr_character_flag = give_one_handed + + FROM = { death = { death_reason = death_murder_unknown killer = ROOT } } + } +} + +#Chess starts, pick piece +character_event = { + id = RIP.30226 + picture = GFX_evt_court_physician + desc = EVTDESC_RIP_30226 + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + immediate = { + set_variable = { which = chess_score value = 0 } + + if = { + limit = { + OR = { + has_character_flag = invited_death + has_character_flag = gave_death_money + } + } + change_variable = { which = chess_score value = 1 } + clr_character_flag = invited_death + clr_character_flag = gave_death_money + } + clr_character_flag = walked_with_death + } + + #White + option = { + name = EVTOPTA_RIP_30226 + custom_tooltip = { text = EVTOPTA_RIP_30226_TOOLTIP } + + set_character_flag = picked_white + + set_character_flag = chess_30227 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Black + option = { + name = EVTOPTB_RIP_30226 + custom_tooltip = { text = EVTOPTB_RIP_30226_TOOLTIP } + + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + set_character_flag = picked_black + + set_character_flag = chess_30227 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#First move +character_event = { + id = RIP.30227 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { has_character_flag = picked_black } + text = EVTDESC_RIP_30226_BLACK + } + desc = { + trigger = { has_character_flag = picked_white } + text = EVTDESC_RIP_30226_WHITE + } + + is_triggered_only = yes + + #Play it safe + option = { + name = EVTOPTA_RIP_30227 + + random_list = { + 25 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + set_character_flag = good_move + } + 55 = { + custom_tooltip = { text = CHESS_NEUTRAL_MOVE } + set_character_flag = neutral_move + } + 20 = { + custom_tooltip = { text = CHESS_BAD_MOVE } + hidden_tooltip = { change_variable = { which = chess_score value = -1 } } + set_character_flag = bad_move + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Play it risky + option = { + name = EVTOPTB_RIP_30227 + + random_list = { + 20 = { + custom_tooltip = { text = CHESS_GREAT_MOVE } + set_character_flag = great_move + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + } + 40 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + 40 = { + custom_tooltip = { text = CHESS_TERRIBLE_MOVE } + set_character_flag = bad_move + hidden_tooltip = { change_variable = { which = chess_score value = -2 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Deceitful + option = { + trigger = { + trait = deceitful + NOT = { trait = schemer } + NOT = { + AND = { + trait = strategist + is_smart_trigger = yes + } + } + } + name = EVTOPTC_RIP_30227 + tooltip_info = deceitful + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Master schemer + option = { + trigger = { trait = schemer } + name = EVTOPTC_RIP_30227 + tooltip_info = schemer + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Gamer option + option = { + trigger = { trait = gamer } + name = EVTOPTD_RIP_30227 + tooltip_info = gamer + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GREAT_MOVE } + set_character_flag = great_move + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Strategist option + option = { + trigger = { + trait = strategist + } + name = EVTOPTD_RIP_30227 + tooltip_info = strategist + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Genius option + option = { + trigger = { + trait = genius + NOT = { trait = gamer } + } + name = EVTOPTE_RIP_30227 + tooltip_info = genius + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GREAT_MOVE } + set_character_flag = great_move + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Quick + option = { + trigger = { + trait = quick + NOT = { trait = gamer } + } + name = EVTOPTE_RIP_30227 + tooltip_info = quick + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Shrewd + option = { + trigger = { + trait = shrewd + NOT = { trait = gamer } + } + name = EVTOPTE_RIP_30227 + tooltip_info = shrewd + + random_list = { + 100 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + } + + set_character_flag = chess_30228 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#Death reacts to you move +character_event = { + id = RIP.30228 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { has_character_flag = great_move } + text = EVTDESC_RIP_30228_GREAT + } + desc = { + trigger = { has_character_flag = good_move } + text = EVTDESC_RIP_30228_GOOD + } + desc = { + trigger = { has_character_flag = neutral_move } + text = EVTDESC_RIP_30228_NEUTRAL + } + desc = { + trigger = { has_character_flag = bad_move } + text = EVTDESC_RIP_30228_BAD + } + + is_triggered_only = yes + + option = { + name = { + trigger = { + OR = { + has_character_flag = great_move + has_character_flag = good_move + } + } + text = EVTOPTA_RIP_30228_A + } + name = { + trigger = { + OR = { + has_character_flag = bad_move + has_character_flag = neutral_move + } + } + text = EVTOPTA_RIP_30228_B + } + + custom_tooltip = { text = EVTOPTA_RIP_30228_TOOLTIP } + clr_character_flag = great_move + clr_character_flag = good_move + clr_character_flag = neutral_move + clr_character_flag = bad_move + + set_character_flag = chess_30229 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#Some other tactic +character_event = { + id = RIP.30229 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { check_variable = { which = chess_score value = 3 } } + text = EVTDESC_RIP_30229_GOOD + } + desc = { + trigger = { + NOT = { check_variable = { which = chess_score value = 3 } } + check_variable = { which = chess_score value = 1 } + } + text = EVTDESC_RIP_30229_NEUTRAL + } + desc = { + trigger = { NOT = { check_variable = { which = chess_score value = 1 } } } + text = EVTDESC_RIP_30229_BAD + } + + is_triggered_only = yes + + #Drinking competition 1 + option = { + trigger = { trait = drunkard } + tooltip_info = drunkard + name = EVTOPTA_RIP_30229 + custom_tooltip = { text = EVTOPTA_RIP_30229_TOOLTIP } + + set_character_flag = chess_drinking_competition + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Drinking competition 2 + option = { + trigger = { trait = hedonist } + tooltip_info = hedonist + name = EVTOPTA_RIP_30229 + custom_tooltip = { text = EVTOPTA_RIP_30229_TOOLTIP } + + set_character_flag = chess_drinking_competition + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Seduce (as man) + option = { + trigger = { + trait = seducer + } + tooltip_info = seducer + name = EVTOPTB_RIP_30229 + custom_tooltip = { text = EVTOPTB_RIP_30229_TOOLTIP } + + set_character_flag = chess_seduction + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Seduce (as woman) + option = { + trigger = { + trait = seductress + } + tooltip_info = seductress + name = EVTOPTB_RIP_30229 + custom_tooltip = { text = EVTOPTB_RIP_30229_TOOLTIP } + + set_character_flag = chess_seduction + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Intimidate + option = { + trigger = { trait = impaler } + tooltip_info = impaler + name = EVTOPTC_RIP_30229 + custom_tooltip = { text = EVTOPTC_RIP_30229_TOOLTIP } + + set_character_flag = chess_intimidation + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Brag about past victories + option = { + trigger = { trait = gamer } + tooltip_info = gamer + name = EVTOPTF_RIP_30229 + custom_tooltip = { text = EVTOPTF_RIP_30229_TOOLTIP } + + set_character_flag = chess_brag + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Knock wine + option = { + name = EVTOPTD_RIP_30229 + custom_tooltip = { text = EVTOPTD_RIP_30229_TOOLTIP } + + random_list = { + 67 = { + custom_tooltip = { text = CHESS_GOOD_TRICK } + set_character_flag = good_trick + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + 33 = { + custom_tooltip = { text = CHESS_BAD_TRICK } + set_character_flag = bad_trick + } + } + set_character_flag = chess_30230 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Focus on the game, skips next event + option = { + name = EVTOPTE_RIP_30229 + + random_list = { + 25 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + 75 = { + custom_tooltip = { text = CHESS_NEUTRAL_MOVE } + } + } + + set_character_flag = chess_30231 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#Another tactic reaction +character_event = { + id = RIP.30230 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { has_character_flag = chess_drinking_competition } + text = EVTDESC_RIP_30230_DRINKING + picture = GFX_evt_drunk + } + desc = { + trigger = { has_character_flag = chess_seduction } + text = EVTDESC_RIP_30230_SEDUCTION + picture = GFX_evt_lovers + } + desc = { + trigger = { has_character_flag = chess_intimidation } + text = EVTDESC_RIP_30230_INTIMIDATION + picture = GFX_evt_impalement + } + desc = { + trigger = { has_character_flag = chess_brag } + text = EVTDESC_RIP_30230_BRAG + picture = GFX_evt_courtiers_talking + } + desc = { + trigger = { has_character_flag = good_trick } + text = EVTDESC_RIP_30230_GOOD_TRICK + picture = GFX_evt_drunk + } + desc = { + trigger = { has_character_flag = bad_trick } + text = EVTDESC_RIP_30230_BAD_TRICK + picture = GFX_evt_drunk + } + + is_triggered_only = yes + + option = { + trigger = { NOT = { has_character_flag = bad_trick } } + name = EVTOPTA_RIP_30230 + custom_tooltip = { text = EVTOPTA_RIP_30228_TOOLTIP } + + clr_character_flag = chess_drinking_competition + clr_character_flag = chess_seduction + clr_character_flag = chess_intimidation + clr_character_flag = chess_brag + clr_character_flag = good_trick + + #Randomness + hidden_tooltip = { + random_list = { + 50 = { change_variable = { which = chess_score value = -1 } } + 50 = {} + } + } + + set_character_flag = chess_30231 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + option = { + trigger = { has_character_flag = bad_trick } + name = EVTOPTB_RIP_30230 + custom_tooltip = { text = EVTOPTB_RIP_30230_TOOLTIP } + + clr_character_flag = bad_trick + + death = { death_reason = death_murder_unknown killer = FROM } + + hidden_tooltip = { + FROM = { + leave_court_effect = yes + death = { death_reason = death_missing } + } + } + } +} + +#Last move +character_event = { + id = RIP.30231 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_intrigue + + desc = { + trigger = { check_variable = { which = chess_score value = 5 } } + text = EVTDESC_RIP_30231_GOOD + } + desc = { + trigger = { + NOT = { check_variable = { which = chess_score value = 5 } } + check_variable = { which = chess_score value = 4 } + } + text = EVTDESC_RIP_30231_NEUTRAL + } + desc = { + trigger = { NOT = { check_variable = { which = chess_score value = 4 } } } + text = EVTDESC_RIP_30231_BAD + } + + is_triggered_only = yes + + immediate = { + hidden_tooltip = { + random_spouse = { + limit = { + is_alive = yes + ai = yes + liege = { character = ROOT } + } + save_event_target_as = chess_sacrifice + } + random_friend = { + limit = { + is_alive = yes + ai = yes + liege = { character = ROOT } + } + save_event_target_as = chess_sacrifice + } + random_lover = { + limit = { + is_alive = yes + ai = yes + liege = { character = ROOT } + } + save_event_target_as = chess_sacrifice + } + random_child = { + limit = { + is_alive = yes + ai = yes + liege = { character = ROOT } + } + save_event_target_as = chess_sacrifice + } + } + } + + #Trust my skill + option = { + name = EVTOPTA_RIP_30231 + + random_list = { + 20 = { + modifier = { + factor = 0 + NOR = { + trait = gamer + is_smart_trigger = yes + } + } + custom_tooltip = { text = CHESS_GREAT_MOVE } + set_character_flag = great_move + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + } + 20 = { + modifier = { + factor = 1.5 + OR = { + trait = gamer + is_smart_trigger = yes + } + } + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + 50 = { + modifier = { + factor = 0.6 + OR = { + trait = gamer + is_smart_trigger = yes + } + } + custom_tooltip = { text = CHESS_NEUTRAL_MOVE } + set_character_flag = neutral_move + } + 30 = { + modifier = { + factor = 0.67 + OR = { + trait = gamer + is_smart_trigger = yes + } + } + custom_tooltip = { text = CHESS_BAD_MOVE } + set_character_flag = bad_move + hidden_tooltip = { change_variable = { which = chess_score value = -1 } } + } + } + + set_character_flag = chess_30232 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } + + #Offer lover/friend + option = { + trigger = { event_target:chess_sacrifice = { always = yes } } + name = { + trigger = { any_spouse = { character = event_target:chess_sacrifice } } + text = EVTOPTB_RIP_30231_A + } + name = { + trigger = { any_friend = { character = event_target:chess_sacrifice } } + text = EVTOPTB_RIP_30231_B + } + name = { + trigger = { any_lover = { character = event_target:chess_sacrifice } } + text = EVTOPTB_RIP_30231_C + } + name = { + trigger = { any_child = { character = event_target:chess_sacrifice } } + text = EVTOPTB_RIP_30231_D + } + + event_target:chess_sacrifice = { save_event_target_as = kill_sacrifice } + + random_list = { + 15 = { + custom_tooltip = { text = CHESS_GREAT_MOVE } + set_character_flag = great_move + hidden_tooltip = { change_variable = { which = chess_score value = 2 } } + } + 35 = { + custom_tooltip = { text = CHESS_GOOD_MOVE } + set_character_flag = good_move + hidden_tooltip = { change_variable = { which = chess_score value = 1 } } + } + 35 = { + custom_tooltip = { text = CHESS_NEUTRAL_MOVE } + set_character_flag = neutral_move + } + 15 = { + custom_tooltip = { text = CHESS_BAD_MOVE } + set_character_flag = bad_move + hidden_tooltip = { change_variable = { which = chess_score value = -1 } } + } + } + + set_character_flag = chess_30232 + hidden_tooltip = { FROM = { character_event = { id = RIP.30221 } } } + } +} + +#The end of the game +narrative_event = { + id = RIP.30232 + title = EVTNAME_RIP_30232 + border = GFX_event_narrative_frame_intrigue + picture = GFX_evt_danse_macabre + + desc = { + trigger = { check_variable = { which = chess_score value = 5 } } + text = EVTDESC_RIP_30232_GOOD + } + desc = { + trigger = { NOT = { check_variable = { which = chess_score value = 5 } } } + text = EVTDESC_RIP_30232_BAD + } + + immediate = { + + } + + is_triggered_only = yes + + option = { + trigger = { check_variable = { which = chess_score value = 5 } } + name = EVTOPTA_RIP_30232 + custom_tooltip = { text = EVTOPTB_RIP_302232_TOOLTIP } + + if = { + limit = { NOT = { has_character_modifier = deaths_gift } } + add_character_modifier = { + name = deaths_gift + duration = -1 + } + } + + remove_disease_trait_effect = yes + + hidden_tooltip = { + FROM = { + leave_court_effect = yes + death = { death_reason = death_missing } + } + } + } + + option = { + trigger = { NOT = { check_variable = { which = chess_score value = 5 } } } + name = EVTOPTB_RIP_30232 + custom_tooltip = { text = EVTOPTB_RIP_30230_TOOLTIP } + + death = { death_reason = death_murder_unknown killer = FROM } + if = { + limit = { event_target:kill_sacrifice = { always = yes } } + event_target:kill_sacrifice = { death = { death_reason = death_murder_unknown killer = FROM } } + } + + hidden_tooltip = { + FROM = { + leave_court_effect = yes + death = { death_reason = death_missing } + } + } + } +} + +#Death's gift +character_event = { + id = RIP.30233 + desc = EVTDESC_TOG_7015 + border = GFX_event_normal_frame_religion + picture = GFX_evt_danse_macabre + + is_triggered_only = yes + + trigger = { + has_disease_trigger = yes + } + + option = { + name = EVTOPTA_RIP_30233 + remove_disease_trait_effect = yes + remove_character_modifier = deaths_gift + + if = { + limit = { trait = cynical } + remove_trait = cynical + } + } +} + +### Immortal rival events +narrative_event = { + id = RIP.30300 + picture = GFX_evt_suspicious_noble + border = GFX_event_narrative_frame_war + title = RIP.30300.title + + immediate = { + set_character_flag = immortal_rival_appeared + if = { + limit = { + NOR = { + has_character_flag = immortal_rival_highlander + has_character_flag = immortal_rival_evildude + has_character_flag = immortal_rival_goodguy + has_character_flag = immortal_rival_shieldmaiden + has_character_flag = immortal_rival_horse + } + } + random_list = { + 100 = { + set_character_flag = immortal_rival_highlander + } + 100 = { + modifier = { + factor = 2 + is_virtous = yes + } + set_character_flag = immortal_rival_evildude + } + 100 = { + modifier = { + factor = 2 + is_wicked = yes + } + modifier = { + factor = 2 + OR = { + trait = lunatic + trait = cruel + trait = wroth + trait = cannibal_trait + trait = impaler + } + } + set_character_flag = immortal_rival_goodguy + } + 100 = { + set_character_flag = immortal_rival_shieldmaiden + modifier = { + factor = 2 + combat_rating = 3 + } + modifier = { + factor = 1.5 + combat_rating = 4 + } + } + 25 = { + modifier = { + factor = 15 + any_courtier = { + culture = horse + } + } + modifier = { + factor = 10 + any_courtier = { + culture = horse + trait = immortal + } + } + set_character_flag = immortal_rival_horse + } + } + } + } + + desc = { + trigger = { + has_character_flag = immortal_rival_highlander + } + text = RIP.30300.d.highlander + } + desc = { + trigger = { + has_character_flag = immortal_rival_evildude + } + text = RIP.30300.d.evildude + } + desc = { + trigger = { + has_character_flag = immortal_rival_goodguy + } + text = RIP.30300.d.goodguy + } + desc = { + trigger = { + has_character_flag = immortal_rival_shieldmaiden + } + text = RIP.30300.d.shieldmaiden + } + desc = { + trigger = { + has_character_flag = immortal_rival_horse + } + text = RIP.30300.d.horse + } + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + + trigger = { + trait = immortal + NOT = { has_character_flag = immortal_rival_appeared } + } + + option = { + name = RIP.30300.a + trigger = { + NOR = { + trait = craven + trait = lunatic + trait = cruel + trait = wroth + trait = cannibal_trait + trait = impaler + } + } + character_event = { id = RIP.30301 days = 180 random = 100 tooltip = IMMORTAL_RIVAL_COMING_TOOLTIP } + } + option = { + trigger = { + trait = craven + } + name = RIP.30300.b + character_event = { id = RIP.30301 days = 180 random = 100 tooltip = IMMORTAL_RIVAL_COMING_TOOLTIP } + } + option = { + trigger = { + OR = { + trait = lunatic + trait = cruel + trait = wroth + trait = cannibal_trait + trait = impaler + } + } + name = RIP.30300.c + character_event = { id = RIP.30301 days = 180 random = 100 tooltip = IMMORTAL_RIVAL_COMING_TOOLTIP } + } + +} + +character_event = { + id = RIP.30301 + picture = GFX_evt_end_of_days + border = GFX_event_normal_frame_war + #desc = RIP.30301.d + #title = RIP.30301.title + + immediate = { + if = { + limit = { + has_character_flag = immortal_rival_highlander + } + create_character = { + random_traits = no + name = "Ramirez" + dynasty = none + religion = catholic + culture = scottish + female = no + age = 1500 + immortal_age = 40 + attributes = { + martial = 12 + diplomacy = 10 + stewardship = 9 + intrigue = 9 + learning = 15 + } + health = 6 + fertility = 0.8 + trait = skilled_tactician + trait = patient + trait = immortal + trait = just + trait = duelist + trait = cynical + historical = yes + } + } + if = { + limit = { + has_character_flag = immortal_rival_evildude + } + create_character = { + random_traits = no + name = "Uran" + dynasty = culture + religion = pagan + culture = random + female = no + age = 1800 + immortal_age = 25 + attributes = { + martial = 15 + diplomacy = 5 + stewardship = 4 + intrigue = 6 + learning = 8 + } + health = 6 + fertility = 0.8 + trait = brilliant_strategist + trait = wroth + trait = immortal + trait = proud + trait = impaler + trait = cynical + trait = strong + trait = berserker + trait = envious + trait = scarred + historical = yes + } + } + if = { + limit = { + has_character_flag = immortal_rival_goodguy + } + create_character = { + random_traits = no + name = "Arthur" + dynasty = none + religion = catholic + culture = breton + female = no + age = 950 + immortal_age = 30 + attributes = { + martial = 16 + diplomacy = 12 + stewardship = 15 + intrigue = 8 + learning = 14 + } + health = 6 + fertility = 0.8 + trait = brilliant_strategist + trait = patient + trait = immortal + trait = just + trait = kind + trait = temperate + trait = chaste + trait = strategist + historical = yes + } + } + if = { + limit = { + has_character_flag = immortal_rival_shieldmaiden + } + create_character = { + random_traits = no + name = "Torhild" + dynasty = none + religion = norse_pagan + culture = norse + female = yes + age = 1300 + immortal_age = 18 + attributes = { + martial = 15 + diplomacy = 8 + stewardship = 8 + intrigue = 10 + learning = 12 + } + health = 6 + fertility = 0.8 + trait = tough_soldier + trait = lustful + trait = immortal + trait = kind + trait = honest + trait = robust + trait = brave + trait = sea_queen + trait = hunter + historical = yes + } + } + if = { + limit = { + has_character_flag = immortal_rival_horse + } + create_character = { + random_traits = no + name = "Incitatus" + dynasty = none + religion = hellenic_pagan + culture = horse + female = no + age = 2200 + immortal_age = 4 + attributes = { + martial = 8 + diplomacy = 18 + stewardship = 12 + intrigue = 18 + learning = 16 + } + health = 6 + fertility = 0.8 + trait = elusive_shadow + trait = genius + trait = fair + trait = patient + trait = immortal + trait = cruel + trait = wroth + trait = strong + trait = robust + trait = stubborn + trait = schemer + trait = cynical + trait = ares_own + historical = yes + } + } + new_character = { + add_rival = ROOT + diplomatic_immunity = yes + save_event_target_as = immortal_rival + } + character_event = { id = RIP.30308 days = 1 } #clears flags in one spot, hidden event + hidden_effect = { + if = { + limit = { + has_character_flag = immortal_rival_horse + } + if = { #horse councillor? + limit = { + any_courtier = { + ai = yes + is_alive = yes + culture = horse + has_job_title = yes + } + } + random_courtier = { + limit = { + ai = yes + is_alive = yes + culture = horse + has_job_title = yes + } + save_event_target_as = immortal_horse_victim + death = { death_reason = death_execution_horses killer = event_target:immortal_rival } + } + break = yes + } + if = { #any horse? + limit = { + any_courtier = { + ai = yes + is_alive = yes + culture = horse + NOT = { + event_target:immortal_rival = { + character = THIS + } + } + } + } + random_courtier = { + limit = { + ai = yes + is_alive = yes + culture = horse + NOT = { + event_target:immortal_rival = { + character = THIS + } + } + } + save_event_target_as = immortal_horse_victim + death = { death_reason = death_execution_horses killer = event_target:immortal_rival } + } + break = yes + } + if = { #backup victim + limit = { + any_courtier = { + ai = yes + is_alive = yes + OR = { + has_job_title = yes + is_close_relative = ROOT + is_consort = ROOT + is_married = ROOT + } + } + } + random_courtier = { + limit = { + ai = yes + is_alive = yes + OR = { + has_job_title = yes + is_close_relative = ROOT + is_consort = ROOT + is_married = ROOT + } + } + save_event_target_as = immortal_horse_victim + death = { death_reason = death_execution_horses killer = event_target:immortal_rival } + } + } + } + } + } + + desc = { + trigger = { + has_character_flag = immortal_rival_highlander + } + text = RIP.30301.d.highlander + } + desc = { + trigger = { + has_character_flag = immortal_rival_evildude + } + text = RIP.30301.d.evildude + } + desc = { + trigger = { + has_character_flag = immortal_rival_goodguy + } + text = RIP.30301.d.goodguy + } + desc = { + trigger = { + has_character_flag = immortal_rival_shieldmaiden + } + text = RIP.30301.d.shieldmaiden + } + desc = { + trigger = { + has_character_flag = immortal_rival_horse + any_courtier = { + culture = horse + } + } + text = RIP.30301.d.horse + } + desc = { + trigger = { + has_character_flag = immortal_rival_horse + NOT = { + any_courtier = { + culture = horse + } + } + } + text = RIP.30301.d.horse2 + } + + is_triggered_only = yes + + option = { #fight. berserker and craven get the same option with custom text + name = placeholdername_31 #RIP.30301.fight + trigger = { + health = 2 + NOR = { + is_incapable = yes + trait = severely_injured + trait = infirm + trait = craven + trait = berserker + } + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + custom_tooltip = { text = holmgang_chances_great } #Tooltip reuse FTW + hidden_tooltip = { + random_list = { + 84 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 1 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_very_good } + hidden_tooltip = { + random_list = { + 70 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + } + } + custom_tooltip = { text = holmgang_chances_good } + hidden_tooltip = { + random_list = { + 60 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + } + } + custom_tooltip = { text = holmgang_chances_even } + hidden_tooltip = { + random_list = { + 20 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 40 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + } + } + custom_tooltip = { text = holmgang_chances_poor } + hidden_tooltip = { + random_list = { + 5 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 60 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + } + custom_tooltip = { text = holmgang_chances_very_poor } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 4 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 80 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_terrible } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 9 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 90 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + + } + option = { #fight. berserker + name = placeholdername_33 #RIP.30301.berserkfight + trigger = { + health = 2 + trait = berserker + NOR = { + is_incapable = yes + trait = severely_injured + trait = infirm + trait = craven + } + } + tooltip_info = berserker + custom_tooltip = { text = placeholdername_5 } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + custom_tooltip = { text = holmgang_chances_great } #Tooltip reuse FTW + hidden_tooltip = { + random_list = { + 84 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 1 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_very_good } + hidden_tooltip = { + random_list = { + 70 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + } + } + custom_tooltip = { text = holmgang_chances_good } + hidden_tooltip = { + random_list = { + 60 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + } + } + custom_tooltip = { text = holmgang_chances_even } + hidden_tooltip = { + random_list = { + 20 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 40 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + } + } + custom_tooltip = { text = holmgang_chances_poor } + hidden_tooltip = { + random_list = { + 5 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 60 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + } + custom_tooltip = { text = holmgang_chances_very_poor } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 4 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 80 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_terrible } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 9 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 90 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + + } + option = { #fight. craven. + name = placeholdername_31 #RIP.30301.fight + trigger = { + health = 2 + trait = craven + NOR = { + is_incapable = yes + trait = severely_injured + trait = infirm + trait = berserker + } + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + custom_tooltip = { text = holmgang_chances_great } #Tooltip reuse FTW + hidden_tooltip = { + random_list = { + 84 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 1 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_very_good } + hidden_tooltip = { + random_list = { + 70 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 10 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 3 } + } + } + custom_tooltip = { text = holmgang_chances_good } + hidden_tooltip = { + random_list = { + 60 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 5 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + NOT = { + combat_rating_diff = { who = event_target:immortal_rival value = 1 } + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + } + } + custom_tooltip = { text = holmgang_chances_even } + hidden_tooltip = { + random_list = { + 20 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 40 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 1 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + } + } + custom_tooltip = { text = holmgang_chances_poor } + hidden_tooltip = { + random_list = { + 5 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 20 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 60 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 3 } + } + NOT = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + } + custom_tooltip = { text = holmgang_chances_very_poor } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30302 days = 0 } + } + 4 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 15 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 80 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + if = { + limit = { + event_target:immortal_rival = { + combat_rating_diff = { who = ROOT value = 5 } + } + } + custom_tooltip = { text = holmgang_chances_terrible } + hidden_tooltip = { + random_list = { + 1 = { + long_character_event = { id = RIP.30303 days = 0 } + } + 9 = { + long_character_event = { id = RIP.30304 days = 0 } + } + 90 = { + long_character_event = { id = RIP.30305 days = 0 } + } + } + } + break = yes + } + + } + option = { #die + name = placeholdername_32 #RIP.30301.die + custom_tooltip = { text = placeholdername_35 } #RIP.30301.die.tooltip + death = { death_reason = death_duel killer = event_target:immortal_rival } + } + option = { #persuade + trigger = { + is_incapable = no + diplomacy = 18 + OR = { + NOT = { + calc_true_if = { + amount = 2 + intrigue = 18 + stewardship = 18 + learning = 18 + } + } + OR = { + has_education_diplomacy_trigger = yes + has_lifestyle_diplomacy_trigger = yes + } + } + } + tooltip_info = diplomacy + name = placeholdername_18 #RIP.30301.persuade + character_event = { id = RIP.30309 days = 0 } + } + option = { #trick + trigger = { + is_incapable = no + intrigue = 18 + OR = { + NOT = { + calc_true_if = { + amount = 2 + diplomacy = 18 + stewardship = 18 + learning = 18 + } + } + OR = { + has_education_intrigue_trigger = yes + has_lifestyle_intrigue_trigger = yes + } + } + } + tooltip_info = intrigue + name = placeholdername_10 #RIP.30301.trick + character_event = { id = RIP.30310 days = 0 } + } + option = { #money power + trigger = { + is_incapable = no + stewardship = 18 + OR = { + NOT = { + calc_true_if = { + amount = 2 + diplomacy = 18 + intrigue = 18 + learning = 18 + } + } + OR = { + has_education_stewardship_trigger = yes + has_lifestyle_stewardship_trigger = yes + } + } + } + tooltip_info = stewardship + name = EVTOPTBLoR.410 #Guards! + character_event = { id = RIP.30311 days = 0 } + } + option = { #debate + trigger = { + is_incapable = no + learning = 18 + OR = { + NOT = { + calc_true_if = { + amount = 2 + diplomacy = 18 + intrigue = 18 + stewardship = 18 + } + } + OR = { + has_education_learning_trigger = yes + has_lifestyle_learning_trigger = yes + is_learned_trigger = yes + } + } + } + tooltip_info = learning + name = placeholdername_22 #RIP.30301.debate + character_event = { id = RIP.30312 days = 0 } + } +} + +long_character_event = { # win - no wound + id = RIP.30302 + desc = RIP.30302.d + border = GFX_event_long_frame_war + picture = GFX_evt_melee + + desc = { + trigger = { + trait = berserker + } + text = placeholdername_3 #RIP.30302.d.berserker + + } + desc = { + trigger = { + trait = craven + } + text = placeholdername_7 #RIP.30302.d.craven + } + + is_triggered_only = yes + + option = { + trigger = { + NOR = { + trait = berserker + trait = craven + } + } + name = RIP.30302.a + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + } + option = { + trigger = { + trait = craven + } + name = placeholdername_8 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + custom_tooltip = { text = placeholdername_34 } + } + option = { + trigger = { + trait = berserker + } + name = placeholdername_4 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + custom_tooltip = { text = placeholdername_34 } + } +} + +long_character_event = { # win - wound + id = RIP.30303 + desc = RIP.30303.d + border = GFX_event_long_frame_war + picture = GFX_evt_melee + + desc = { + trigger = { + trait = berserker + } + text = placeholdername_3 #RIP.30302.d.berserker + } + desc = { + trigger = { + trait = craven + } + text = placeholdername_7 #RIP.30302.d.craven + } + + is_triggered_only = yes + + option = { + trigger = { + NOR = { + trait = berserker + trait = craven + } + } + name = RIP.30303.a + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + add_trait_wounded_effect = yes + } + option = { + trigger = { + trait = craven + } + name = placeholdername_9 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + add_trait_wounded_effect = yes + custom_tooltip = { text = placeholdername_34 } + } + option = { + trigger = { + trait = berserker + } + name = placeholdername_6 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + add_trait_wounded_effect = yes + custom_tooltip = { text = placeholdername_34 } + } +} + +long_character_event = { # win - maimed + id = RIP.30304 + desc = RIP.30304.d + border = GFX_event_long_frame_war + picture = GFX_evt_melee + + desc = { + trigger = { + trait = berserker + } + text = placeholdername_3 #RIP.30302.d.berserker + } + desc = { + trigger = { + trait = craven + } + text = placeholdername_7 #RIP.30302.d.craven + } + + is_triggered_only = yes + + option = { + name = RIP.30304.a + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + if = { + limit = { + can_be_maimed_trigger = yes + } + add_maimed_trait_effect = yes + break = yes + } + add_trait_wounded_effect = yes + } + option = { + trigger = { + trait = craven + } + name = placeholdername_9 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + if = { + limit = { + can_be_maimed_trigger = yes + } + add_maimed_trait_effect = yes + custom_tooltip = { text = placeholdername_34 } + break = yes + } + add_trait_wounded_effect = yes + custom_tooltip = { text = placeholdername_34 } + } + option = { + trigger = { + trait = berserker + } + name = placeholdername_6 + event_target:immortal_rival = { + death = { death_reason = death_duel killer = ROOT } + } + if = { + limit = { + can_be_maimed_trigger = yes + } + add_maimed_trait_effect = yes + custom_tooltip = { text = placeholdername_34 } + break = yes + } + add_trait_wounded_effect = yes + custom_tooltip = { text = placeholdername_34 } + } +} + +long_character_event = { # loss - death + id = RIP.30305 + desc = RIP.30305.d + border = GFX_event_long_frame_war + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = RIP.30305.a + long_character_event = { id = RIP.30306 days = 0 } + } +} + +long_character_event = { # loss - death2 + id = RIP.30306 + desc = RIP.30306.d + border = GFX_event_long_frame_war + picture = GFX_evt_beheading + + is_triggered_only = yes + + option = { + name = RIP.30306.a + death = { death_reason = death_duel killer = event_target:immortal_rival } + hidden_effect = { + event_target:immortal_rival = { + leave_court_and_die_effect = yes + } + } + } +} + +#character_event = { # loss - mercy +# id = RIP.30307 +# desc = RIP.30307.d +# border = GFX_event_normal_frame_war +# picture = GFX_evt_suspicious_noble #TODO better pic +# +# is_triggered_only = yes +# +# option = { +# name = RIP.30307.a +# +# } +#} + +character_event = { # flag clear + id = RIP.30308 + hide_window = yes + + is_triggered_only = yes + + option = { + clr_character_flag = immortal_rival_highlander + clr_character_flag = immortal_rival_evildude + clr_character_flag = immortal_rival_goodguy + clr_character_flag = immortal_rival_shieldmaiden + clr_character_flag = immortal_rival_horse + } +} + +character_event = { # + id = RIP.30309 + desc = placeholdername_19 #RIP.30309.d + border = GFX_event_normal_frame_diplomacy + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_20# RIP.30309.a + event_target:immortal_rival = { + add_friend = ROOT + } + } + option = { + name = placeholdername_21# RIP.30309.b + trigger = { + NOT = { trait = honest } + } + event_target:immortal_rival = { + death = { death_reason = death_murder_butchered killer = ROOT } + } + } +} + +character_event = { # trick + id = RIP.30310 + desc = placeholdername_11# RIP.30310.d + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_12 #RIP.30310.a + event_target:immortal_rival = { + death = { death_reason = death_execution_crushing killer = ROOT } + } + } + option = { + trigger = { + stewardship = 14 + } + name = placeholdername_13 #RIP.30310.b + tooltip_info = stewardship + capital_scope = { + add_province_modifier = { + name = trapped_immortal + duration = -1 + } + } + } +} + +character_event = { # the power of money + id = RIP.30311 + desc = placeholdername_14# RIP.30311.d + border = GFX_event_normal_frame_economy + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_15 #RIP.30311.a #prison + event_target:immortal_rival = { + imprison = ROOT + } + } + option = { + trigger = { + OR = { + trait = lunatic + trait = possessed + trait = hunter + } + } + name = placeholdername_17 #RIP.30311.e #platypus + tooltip_info = hunter + custom_tooltip = { text = immortal_hunter_tooltip } + event_target:immortal_rival = { + death = { death_reason = death_platypus killer = ROOT } + } + } + option = { + trigger = { + NOT = { + trait = kind + } + } + name = placeholdername_16 #RIP.30311.b #burn + event_target:immortal_rival = { + death = { death_reason = death_execution_burning killer = ROOT } + } + } + option = { + trigger = { + stewardship = 14 + } + name = placeholdername_13 #RIP.30310.c #work + tooltip_info = stewardship + event_target:immortal_rival = { + death = { death_reason = death_missing killer = ROOT } + } + capital_scope = { + add_province_modifier = { + name = trapped_immortal + duration = -1 + } + } + } +} + +character_event = { # debate + id = RIP.30312 + desc = placeholdername_23 #RIP.30312.d + border = GFX_event_normal_frame_religion + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_24 #RIP.30312.a #new + character_event = { id = RIP.30313 days = 0 } + } + + option = { + name = placeholdername_25 #RIP.30312.b #refuse + character_event = { id = RIP.30313 days = 0 } + } +} + +character_event = { # debate2 + id = RIP.30313 + desc = placeholdername_26 #RIP.30313.d + border = GFX_event_normal_frame_religion + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_27 #RIP.30313.a #argue on + character_event = { id = RIP.30314 days = 0 } + } + + option = { + name = placeholdername_28 #RIP.30313.b #kill + event_target:immortal_rival = { + death = { death_reason = death_accident killer = ROOT } + } + } +} + +character_event = { # debate3 + id = RIP.30314 + desc = placeholdername_29 #RIP.30314.d + border = GFX_event_normal_frame_religion + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = placeholdername_30 #RIP.30314.a + event_target:immortal_rival = { + death = { death_reason = death_missing killer = ROOT } + } + } + +} + +character_event = { # immortal suspicions + id = RIP.30315 + desc = placeholdername_43 #RIP.30315.d + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_suspicious_noble + + immediate = { + most_popular_vassal = { + limit = { + ai = yes + immortal = no + NOT = { opinion = { who = ROOT value = 50 } } + intrigue = 12 + } + save_event_target_as = immortal_suspector + } + } + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + + trigger = { + immortal = yes + age = 70 + NOR = { + has_character_flag = immortal_crisis + has_character_flag = immortal_crisis_confirmed + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + age = 100 + } + modifier = { + factor = 2 + age = 150 + } + + modifier = { + factor = 2 + age = 200 + } + + modifier = { + factor = 2 + age = 300 + } + + } + + option = { + name = EVTOPTA_CM_6000 #Sweet text reuse + set_character_flag = immortal_crisis + event_target:immortal_suspector = { + opinion = { modifier = immortal_suspicions who = ROOT years = 100 } + } + } + +} + +character_event = { # clean up immortal crisis + id = RIP.30316 + hide_window = yes + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + + trigger = { + immortal = yes + OR = { + has_character_flag = immortal_crisis + has_character_flag = immortal_crisis_confirmed + } + NOR = { + any_vassal = { + has_opinion_modifier = { who = ROOT modifier = immortal_hate } + } + any_vassal = { + has_opinion_modifier = { who = ROOT modifier = immortal_suspicions } + } + } + } + + option = { + clr_character_flag = immortal_crisis + clr_character_flag = immortal_crisis_confirmed + } + +} + +character_event = { # suspicions spread + id = RIP.30317 + hide_window = yes + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + + immediate = { + random_vassal = { + limit = { + ai = yes + immortal = no + NOR = { + opinion = { who = ROOT value = 50 } + has_opinion_modifier = { who = ROOT modifier = immortal_suspicions } + has_opinion_modifier = { who = ROOT modifier = immortal_loyalty } + has_opinion_modifier = { who = ROOT modifier = immortal_hate } + } + } + save_event_target_as = immortal_suspector + } + } + + trigger = { + has_character_flag = immortal_crisis + NOT = { has_character_flag = immortal_crisis_confirmed } + any_vassal = { + ai = yes + immortal = no + NOR = { + opinion = { who = ROOT value = 50 } + has_opinion_modifier = { who = ROOT modifier = immortal_suspicions } + has_opinion_modifier = { who = ROOT modifier = immortal_loyalty } + has_opinion_modifier = { who = ROOT modifier = immortal_hate } + } + } + } + + option = { + name = RIP.30302.a + random_list = { + 90 = { + event_target:immortal_suspector = { + opinion = { modifier = immortal_suspicions who = ROOT years = 100 } + } + } + 10 = { + event_target:immortal_suspector = { + opinion = { modifier = immortal_loyalty who = ROOT years = 100 } + } + } + } + } +} + +character_event = { # suspicions are confirmed + id = RIP.30318 + desc = placeholdername_44 #RIP.30318.d + border = GFX_event_normal_frame_intrigue + picture = GFX_evt_suspicious_noble + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + + trigger = { + immortal = yes + age = 70 + has_character_flag = immortal_crisis + any_vassal = { + ai = yes + immortal = no + has_opinion_modifier = { who = ROOT modifier = immortal_suspicions } + intrigue = 16 + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + age = 100 + } + modifier = { + factor = 2 + age = 150 + } + + modifier = { + factor = 2 + age = 200 + } + + modifier = { + factor = 2 + age = 300 + } + + } + + option = { + name = CURSES + set_character_flag = immortal_crisis_confirmed + any_vassal = { + limit = { + has_opinion_modifier = { who = ROOT modifier = immortal_suspicions } + } + hidden_effect = { remove_opinion = { who = ROOT modifier = immortal_suspicions } } + opinion = { modifier = immortal_hate who = ROOT years = 100 } + } + clr_character_flag = immortal_crisis + } + +} + +character_event = { # spare event + id = RIP.30400 + desc = RIP.30302.d + border = GFX_event_normal_frame_war + picture = GFX_evt_suspicious_noble #TODO better pic + + is_triggered_only = yes + + option = { + name = RIP.30302.a + + } + +} \ No newline at end of file diff --git a/After the End/events/rip_hospital_events.txt b/After the End/events/rip_hospital_events.txt new file mode 100644 index 000000000..3ef0386be --- /dev/null +++ b/After the End/events/rip_hospital_events.txt @@ -0,0 +1,894 @@ +######################################### +# # +# RIP Hospital Events # +# ID RIP.4500-RIP.4699 # +# # +######################################### +# +# Written by Emil Tisander + +namespace = RIP + +# Learned Pilgrim - Assists at hospital +character_event = { + id = RIP.4501 + desc = EVTDESC_RIP_4501 + picture = GFX_evt_court_physician + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + has_dlc = "Reapers" + + is_triggered_only = yes + + trigger = { + higher_tier_than = BARON + any_demesne_province = { + AND = { + hospital_level = 1 + religion = ROOT + } + } + OR = { + NOT = { + any_courtier_or_vassal = { + has_minor_title = title_court_physician + } + } + any_courtier_or_vassal = { + has_minor_title = title_court_physician + NOT = { learning = 13 } + } + } + } + + immediate = { + any_courtier_or_vassal = { + limit = { + has_minor_title = title_court_physician + } + save_event_target_as = previous_physician + } + random_demesne_province = { + limit = { + AND = { + hospital_level = 1 + religion = ROOT + } + } + save_event_target_as = pilgrim_physician_hospital + } + create_character = { + religion = ROOT + culture = ROOT + dynasty = none + age = 38 + random_traits = yes + female = no + attributes = { + learning = 6 + } + health = 6 + trait = scholarly_theologian + trait = theologian + trait = pilgrim + trait = humble + } + new_character = { + remove_trait = scholar + remove_trait = proud + remove_trait = socializer + remove_trait = gamer + remove_trait = hedonist + remove_trait = duelist + remove_trait = hunter + remove_trait = strategist + remove_trait = administrator + remove_trait = architect + remove_trait = gardener + remove_trait = schemer + remove_trait = impaler + remove_trait = seducer + remove_trait = seductress + remove_trait = mystic + random_list = { # Random chance to add Physician + 40 = { + remove_trait = theologian + add_trait = physician + change_learning = 2 + } + 60 = { + + } + } + if = { + limit = { + religion_group = christian + } + add_trait = monk + } + #if = { + # limit = { + # religion_group = muslim + # } + # remove_trait = pilgrim + # add_trait = hajjaj + #} + #if = { + # limit = { + # religion_group = indian_group + # } + # add_trait = brahmin + # character_event = { id = RoI.30121 } + #} + set_character_flag = is_court_physician + save_event_target_as = pilgrim_physician + } + } + + option = { # Appoint the pilgrim to be your Physician + name = EVTOPTA_RIP_4501 + event_target:previous_physician = { + remove_title = title_court_physician + } + event_target:pilgrim_physician = { + give_minor_title = title_court_physician + } + } + option = { # Ignore the pilgrim + name = { + text = EVTOPTB_RIP_4501_A + trigger = { + event_target:previous_physician = { + always = no + } + } + } + name = { + text = EVTOPTB_RIP_4501_B + trigger = { + event_target:previous_physician = { + always = yes + } + } + } + hidden_tooltip = { + event_target:pilgrim_physician = { + death = { + death_reason = death_missing + } + } + } + } +} + +# Perform charity - Make preperations +character_event = { + id = RIP.4504 + desc = EVTDESC_RIP_4504 + picture = GFX_evt_plague_spreading + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + has_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + any_demesne_province = { + hospital_level = 1 + } + } + + immediate = { + random_demesne_province = { + limit = { + hospital_level = 1 + } + save_event_target_as = hospital_location + } + } + + option = { + name = EVTOPTA_RIP_4504 + scaled_wealth = -0.5 + custom_tooltip = { + text = EVTOPTA_RIP_4504_tooltip + } + custom_tooltip = { + text = increase_prosperity_custom_tooltip + hidden_tooltip = { + event_target:hospital_location = { + change_variable = { which = prosperity_value value = 6 } + } + } + } + character_event = { id = RIP.4505 } + } + + option = { + name = EVTOPTB_RIP_4504 + } +} + +# Perform charity - Make a speech +character_event = { + id = RIP.4505 + desc = EVTDESC_RIP_4505 + picture = GFX_evt_culture_change + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + + is_triggered_only = yes + + option = { # Speak of your greatness + name = EVTOPTA_RIP_4505 + + prestige = 100 + if = { + limit = { + NOT = { trait = proud } + NOT = { trait = humble } + } + random = { + chance = 50 + add_trait = proud + hidden_tooltip = { + character_event = { id = 38261 } # Notify + } + } + } + } + + option = { # Speak of God + trigger = { + NOT = { trait = cynical } + } + name = EVTOPTB_RIP_4505 + + piety = 50 + add_character_modifier = { + name = religious_appreciate + months = 60 + } + if = { + limit = { + NOT = { trait = zealous } + } + random = { + chance = 50 + add_trait = zealous + hidden_tooltip = { + character_event = { id = 38269 } # Notify + } + } + } + } + + option = { # Speak of the realm + name = EVTOPTC_RIP_4505 + add_character_modifier = { + name = wol_respected_ruler + months = 60 + } + if = { + limit = { + NOT = { trait = gregarious } + NOT = { trait = shy } + } + random = { + chance = 50 + add_trait = gregarious + hidden_tooltip = { + character_event = { id = 38265 } # Notify + } + } + } + } + + option = { # Speak of the people + name = EVTOPTD_RIP_4505 + + add_character_modifier = { + name = gave_funny_speech + months = 36 + } + if = { + limit = { + NOT = { trait = proud } + NOT = { trait = humble } + } + random = { + chance = 50 + add_trait = humble + hidden_tooltip = { + character_event = { id = 38260 } # Notify + } + } + } + } +} + +# Religious authorities wants extra taxes from hospital +character_event = { + id = RIP.4512 + desc = EVTDESC_RIP_4512 + picture = GFX_evt_bloody_tools + border = GFX_event_normal_frame_religion + + religion_group = christian + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + has_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + higher_tier_than = BARON + any_demesne_province = { + AND = { + hospital_level = 1 + religion = ROOT + } + } + rightful_religious_head_scope = { + always = yes + NOT = { character = ROOT } + } + } + + immediate = { + random_demesne_province = { + limit = { + AND = { + hospital_level = 1 + religion = ROOT + } + } + save_event_target_as = hospital_location + } + rightful_religious_head_scope = { + save_event_target_as = religious_head_fee + } + } + + option = { # Accept demand + name = EVTOPTA_RIP_4512 + transfer_scaled_wealth = { + to = event_target:religious_head_fee + value = 0.40 + } + piety = 20 + event_target:religious_head_fee = { + opinion = { + who = ROOT + modifier = opinion_fulfilled_demands + months = 60 + } + } + + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + trait = zealous + } + modifier = { + factor = 1.5 + trait = humble + } + modifier = { + factor = 1.5 + trait = theologian + } + modifier = { + factor = 0 + NOT = { scaled_wealth = 1 } + } + } + } + option = { # Refuse demand + name = EVTOPTB_RIP_4512 + event_target:religious_head_fee = { + opinion = { + who = ROOT + modifier = opinion_ignored_demands + months = 60 + } + } + + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + trait = cynical + } + modifier = { + factor = 1.5 + trait = paranoid + } + } + } +} + +# Leper arrives +character_event = { + id = RIP.4514 + desc = EVTDESC_RIP_4514 + picture = GFX_evt_plague_spreading + border = GFX_event_normal_frame_religion + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + has_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + higher_tier_than = BARON + any_demesne_province = { + hospital_level = 1 + hospital_has_building = leper_colony_1 + } + } + + immediate = { + random_demesne_province = { + limit = { + hospital_level = 1 + hospital_has_building = leper_colony_1 + } + save_event_target_as = hospital_location + } + create_character = { + religion = ROOT + culture = ROOT + dynasty = none + age = 31 + random_traits = yes + trait = leper + trait = disfigured + } + new_character = { + save_event_target_as = homeless_leper + } + } + option = { # Offer a place to stay + name = EVTOPTA_RIP_4514 + piety = 300 + event_target:homeless_leper = { + opinion = { + who = ROOT + modifier = opinion_very_grateful + months = 60 + } + } + + ai_chance = { + factor = 20 + + modifier = { + factor = 3 + trait = kind + } + } + } + option = { # Send the leper away + name = EVTOPTB_RIP_4514 + custom_tooltip = { + text = EVTOPTB_RIP_4514_tooltip + hidden_tooltip = { + event_target:homeless_leper = { + death = { + death_reason = death_missing + } + } + } + } + + ai_chance = { + factor = 80 + + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 1.5 + trait = proud + } + modifier = { + factor = 1.5 + trait = cruel + } + } + } +} + +# Soup kitchen is damaged in a fire +character_event = { + id = RIP.4520 + desc = EVTDESC_RIP_4520 + picture = GFX_evt_end_of_days + border = GFX_event_normal_frame_religion + + only_playable = yes + has_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + higher_tier_than = BARON + any_demesne_province = { + owner = { character = ROOT } + NOT = { has_province_modifier = damaged_hospital } + hospital_level = 1 + hospital_has_building = soup_kitchen_1 + } + } + + immediate = { + random_demesne_province = { + limit = { + AND = { + owner = { character = ROOT } + NOT = { has_province_modifier = damaged_hospital } + hospital_level = 1 + hospital_has_building = soup_kitchen_1 + } + } + save_event_target_as = kitchen_hospital + } + } + + option = { # Pay for the repairs + name = EVTOPTA_RIP_4520 + scaled_wealth = -0.20 + if = { + limit = { + NOT = { trait = cruel } + NOT = { trait = envious } + NOT = { trait = kind } + } + random = { + chance = 25 + add_trait = kind + hidden_tooltip = { + character_event = { id = 38268 } + } + } + } + + ai_chance = { + factor = 30 + + modifier = { + factor = 2 + trait = kind + } + modifier = { + factor = 2 + trait = humble + } + modifier = { + factor = 0 + NOT = { scaled_wealth = 0.20 } + } + } + } + option = { # Pay for the repairs and send additional food + trigger = { + trait = charitable + } + tooltip_info = charitable + name = EVTOPTB_RIP_4520 + scaled_wealth = -0.50 + piety = 100 + + ai_chance = { + factor = 20 + + modifier = { + factor = 5 + trait = charitable + } + modifier = { + factor = 0 + NOT = { scaled_wealth = 0.50 } + } + } + } + option = { # Pay minimum costs + trigger = { + trait = greedy + } + tooltip_info = greedy + name = EVTOPTC_RIP_4520 + scaled_wealth = -0.10 + piety = -20 + + ai_chance = { + factor = 20 + + modifier = { + factor = 4 + trait = greedy + } + } + } + option = { # Let it be destroyed + name = EVTOPTD_RIP_4520 + event_target:kitchen_hospital = { + add_province_modifier = { + name = damaged_hospital + duration = 1825 + } + } + + ai_chance = { + factor = 20 + + modifier = { + factor = 2 + OR = { + trait = cruel + trait = wroth + } + } + modifier = { + factor = 2 + trait = arbitrary + } + } + } +} + +# Court physician seek learning - Ask for permisson to spend time at hospital +character_event = { + id = RIP.4530 + desc = EVTDESC_RIP_4530 + picture = GFX_evt_court_physician + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + has_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + any_demesne_province = { + hospital_level = 1 + OR = { + hospital_has_building = library_1 + hospital_has_building = pharmacology_laboratory_1 + hospital_has_building = medical_academy_1 + } + } + any_courtier_or_vassal = { + has_minor_title = title_court_physician + NOT = { has_character_flag = spent_time_at_hospital } + ai = yes + } + } + + immediate = { + random_demesne_province = { + limit = { + hospital_level = 1 + OR = { + hospital_has_building = library_1 + hospital_has_building = pharmacology_laboratory_1 + hospital_has_building = medical_academy_1 + } + } + save_event_target_as = hospital_location + } + any_courtier_or_vassal = { + limit = { + has_minor_title = title_court_physician + ai = yes + } + save_event_target_as = learning_physician + } + } + + option = { # Accept + name = EVTOPTA_RIP_4530 + scaled_wealth = -0.05 + hidden_tooltip = { + event_target:learning_physician = { + set_character_flag = spent_time_at_hospital + character_event = { id = RIP.4531 days = 30 random = 30 } + } + } + } + + option = { # Refuse + name = EVTOPTB_RIP_4530 + } +} + +# Court physician seek learning - Ping event +character_event = { + id = RIP.4531 + + hide_window = yes + + is_triggered_only = yes + + option = { + random_list = { + 40 = { # Good outcome + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = ambitious + } + modifier = { + factor = 2 + trait = erudite + } + modifier = { + factor = 2 + trait = physician + } + modifier = { + factor = 2 + OR = { + trait = genius + trait = quick + trait = shrewd + } + } + + if = { + limit = { + trait = physician + } + change_learning = 2 + FROM = { set_character_flag = physician_got_learning } + } + if = { + limit = { + NOT = { trait = physician } + } + add_trait = physician + FROM = { set_character_flag = physician_got_trait } + } + + FROM = { character_event = { id = RIP.4532 } } + } + 40 = { # Ok outcome + modifier = { + factor = 2 + trait = diligent + } + modifier = { + factor = 2 + trait = erudite + } + modifier = { + factor = 2 + trait = content + } + + change_learning = 1 + + FROM = { character_event = { id = RIP.4533 } } + } + 20 = { # Bad outcome + modifier = { + factor = 3 + trait = slothful + } + modifier = { + factor = 2 + trait = shy + } + + FROM = { character_event = { id = RIP.4534 } } + } + } + } +} + +# Court physician seek learning - Good outcome +character_event = { + id = RIP.4532 + desc = EVTDESC_RIP_4532 + picture = GFX_evt_court_physician + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + prisoner = no + + option = { + name = EXCELLENT + + if = { + limit = { + has_character_flag = physician_got_learning + } + tooltip = { + FROM = { change_learning = 2 } + } + } + if = { + limit = { + has_character_flag = physician_got_trait + } + tooltip = { + FROM = { add_trait = physician } + } + } + hidden_tooltip = { + clr_character_flag = physician_got_learning + clr_character_flag = physician_got_trait + } + } +} + +# Court physician seek learning - Ok outcome +character_event = { + id = RIP.4533 + desc = EVTDESC_RIP_4533 + picture = GFX_evt_court_physician + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + prisoner = no + + option = { + name = EXCELLENT + + tooltip = { + FROM = { change_learning = 1 } + } + } +} + +# Court physician seek learning - Bad outcome +character_event = { + id = RIP.4534 + desc = EVTDESC_RIP_4534 + picture = GFX_evt_court_physician + + is_triggered_only = yes + + only_playable = yes + only_capable = yes + prisoner = no + + option = { + name = I_SEE + } +} \ No newline at end of file diff --git a/After the End/events/rip_maimed_events.txt b/After the End/events/rip_maimed_events.txt new file mode 100644 index 000000000..7035fa1da --- /dev/null +++ b/After the End/events/rip_maimed_events.txt @@ -0,0 +1,667 @@ +### maimed trait gains for Reapers +## Written by: Markus +# RIP.11500 - RIP.11999 +namespace = RIP + +# Gain one eyed +character_event = { + id = RIP.11501 + desc = EVTDESC_RIP_11501 + picture = GFX_evt_doctor_tending_to_sick + + only_playable = yes + is_triggered_only = yes + ai = no + hide_from = yes + + option = { + name = EVTOPTA_RIP_11501 + tooltip = { + add_trait = one_eyed + } + } +} + +# Gain one handed +character_event = { + id = RIP.11502 + desc = EVTDESC_RIP_11502 + picture = GFX_evt_doctor_tending_to_sick + + only_playable = yes + is_triggered_only = yes + ai = no + hide_from = yes + + option = { + name = EVTOPTA_RIP_11502 + tooltip = { + add_trait = one_handed + } + } +} + +# Gain one legged +character_event = { + id = RIP.11503 + desc = EVTDESC_RIP_11503 + picture = GFX_evt_doctor_tending_to_sick + + only_playable = yes + is_triggered_only = yes + ai = no + hide_from = yes + + option = { + name = EVTOPTA_RIP_11503 + tooltip = { + add_trait = one_legged + } + } +} + +# Gain disfigured +character_event = { + id = RIP.11504 + desc = EVTDESC_RIP_11504 + picture = GFX_evt_doctor_tending_to_sick + + only_playable = yes + is_triggered_only = yes + ai = no + hide_from = yes + + option = { + name = EVTOPTA_RIP_11504 + tooltip = { + add_trait = disfigured + } + } +} + +# Gain mangled +character_event = { + id = RIP.11505 + desc = EVTDESC_RIP_11505 + picture = GFX_evt_doctor_tending_to_sick + + only_playable = yes + is_triggered_only = yes + ai = no + hide_from = yes + + option = { + name = EVTOPTA_RIP_11505 + tooltip = { + add_trait = mangled + } + } +} + +# Parrots flock to your banner +narrative_event = { + id = RIP.11506 + title = EVTTITLE_RIP_11506 + desc = EVTDESC_RIP_11506 + picture = GFX_evt_lunatic + + only_playable = yes + ai = no + + trigger = { + trait = one_eyed + trait = one_handed + trait = one_legged + NOT = { has_character_modifier = pet_parrot } + } + + mean_time_to_happen = { + months = 24 + } + + option = { + name = EVTOPTA_RIP_11506 + hidden_tooltip = { + character_event = { id = RIP.11507 } + } + } +} + +# Parrots flock to your banner +character_event = { + id = RIP.11507 + desc = EVTDESC_RIP_11507 + picture = GFX_evt_lunatic + + only_playable = yes + is_triggered_only = yes + ai = no + + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_11507 + add_character_modifier = { + name = pet_parrot + duration = -1 + } + } +} + +# Crazy cannibal eat character and gain traits +character_event = { + id = RIP.11510 + picture = GFX_evt_impalement + desc = EVTDESC_RIP_11510 + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_11510 + + ### Congenital traits + if = { + limit = { + FROM = { + trait = genius + } + NOT = { trait = genius } + } + if = { + limit = { + trait = imbecile + } + remove_trait = imbecile + } + if = { + limit = { + trait = slow + } + remove_trait = slow + } + if = { + limit = { + trait = dull + } + remove_trait = dull + } + if = { + limit = { + trait = quick + } + remove_trait = quick + } + add_trait = genius + } + if = { + limit = { + FROM = { + trait = quick + } + NOT = { trait = genius } + NOT = { trait = quick } + } + if = { + limit = { + trait = imbecile + } + remove_trait = imbecile + } + if = { + limit = { + trait = slow + } + remove_trait = slow + } + if = { + limit = { + trait = dull + } + remove_trait = dull + } + add_trait = quick + } + if = { + limit = { + FROM = { + trait = strong + } + NOT = { trait = strong } + } + if = { + limit = { + trait = weak + } + remove_trait = weak + } + if = { + limit = { + trait = feeble + } + remove_trait = feeble + } + add_trait = strong + } + if = { + limit = { + FROM = { + trait = fair + } + NOT = { trait = fair } + } + if = { + limit = { + trait = ugly + } + remove_trait = ugly + } + add_trait = fair + } + + ### Personality traits - Sins and virtues + if = { + limit = { + FROM = { + trait = chaste + } + NOT = { trait = chaste } + } + add_trait = chaste + } + if = { + limit = { + FROM = { + trait = lustful + } + NOT = { trait = lustful } + } + add_trait = lustful + } + if = { + limit = { + FROM = { + trait = temperate + } + NOT = { trait = temperate } + } + add_trait = temperate + } + if = { + limit = { + FROM = { + trait = gluttonous + } + NOT = { trait = gluttonous } + } + add_trait = gluttonous + } + if = { + limit = { + FROM = { + trait = charitable + } + NOT = { trait = charitable } + } + add_trait = charitable + } + if = { + limit = { + FROM = { + trait = greedy + } + NOT = { trait = greedy } + } + add_trait = greedy + } + if = { + limit = { + FROM = { + trait = diligent + } + NOT = { trait = diligent } + } + add_trait = diligent + } + if = { + limit = { + FROM = { + trait = slothful + } + NOT = { trait = slothful } + } + add_trait = slothful + } + if = { + limit = { + FROM = { + trait = patient + } + NOT = { trait = patient } + } + add_trait = patient + } + if = { + limit = { + FROM = { + trait = wroth + } + NOT = { trait = wroth } + } + add_trait = wroth + } + if = { + limit = { + FROM = { + trait = kind + } + NOT = { trait = kind } + } + add_trait = kind + } + if = { + limit = { + FROM = { + trait = envious + } + NOT = { trait = envious } + } + add_trait = envious + } + if = { + limit = { + FROM = { + trait = humble + } + NOT = { trait = humble } + } + add_trait = humble + } + if = { + limit = { + FROM = { + trait = proud + } + NOT = { trait = proud } + } + add_trait = proud + } + + ### Personality traits - Other + if = { + limit = { + FROM = { + trait = deceitful + } + NOT = { trait = deceitful } + } + add_trait = deceitful + } + if = { + limit = { + FROM = { + trait = honest + } + NOT = { trait = honest } + } + add_trait = honest + } + if = { + limit = { + FROM = { + trait = craven + } + NOR = { trait = craven trait = berserker } + } + add_trait = craven + } + if = { + limit = { + FROM = { + trait = brave + } + NOT = { trait = brave } + } + add_trait = brave + } + if = { + limit = { + FROM = { + trait = shy + } + NOT = { trait = shy } + } + add_trait = shy + } + if = { + limit = { + FROM = { + trait = gregarious + } + NOT = { trait = gregarious } + } + add_trait = gregarious + } + if = { + limit = { + FROM = { + trait = ambitious + } + NOT = { trait = ambitious } + } + add_trait = ambitious + } + if = { + limit = { + FROM = { + trait = content + } + NOT = { trait = content } + } + add_trait = content + } + if = { + limit = { + FROM = { + trait = arbitrary + } + NOT = { trait = arbitrary } + } + add_trait = arbitrary + } + if = { + limit = { + FROM = { + trait = just + } + NOT = { trait = just } + } + add_trait = just + } + if = { + limit = { + FROM = { + trait = cynical + } + NOT = { trait = cynical } + } + add_trait = cynical + } + if = { + limit = { + FROM = { + trait = zealous + } + NOT = { trait = zealous } + } + add_trait = zealous + } + if = { + limit = { + FROM = { + trait = paranoid + } + NOT = { trait = paranoid } + } + add_trait = paranoid + } + if = { + limit = { + FROM = { + trait = trusting + } + NOT = { trait = trusting } + } + add_trait = trusting + } + if = { + limit = { + FROM = { + trait = cruel + } + NOT = { trait = cruel } + } + add_trait = cruel + } + if = { + limit = { + FROM = { + trait = erudite + } + NOT = { trait = erudite } + } + add_trait = erudite + } + if = { + limit = { + FROM = { + trait = stubborn + } + NOT = { trait = stubborn } + } + add_trait = stubborn + } + + ### Other traits + if = { + limit = { + FROM = { + immortal = yes + } + immortal = no + } + add_trait = immortal + if = { + limit = { trait = incapable } + remove_trait = incapable + } + } + ### Controls religion + if = { + limit = { + has_character_flag = pope_eater + NOT = { trait = sympathy_christendom } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_christendom + } + if = { + limit = { + has_character_flag = president_eater + NOT = { trait = sympathy_oldworld } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_oldworld + } + if = { + limit = { + has_character_flag = fylkir_feast + NOT = { trait = sympathy_pagans } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_pagans + } + if = { + limit = { + has_character_flag = imperial_banquet + NOT = { trait = sympathy_pacific } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_pacific + } + if = { + limit = { + has_character_flag = apostle_eater + NOT = { trait = sympathy_latter_day_saints } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_latter_day_saints + } + if = { + limit = { + has_character_flag = potencia_eater + NOT = { trait = sympathy_afro_syncretic } + } + if = { + limit = { + trait = zealous + } + remove_trait = zealous + } + add_trait = sympathy_afro_syncretic + } + clr_character_flag = pope_eater + clr_character_flag = president_eater + clr_character_flag = fylkir_feast + clr_character_flag = imperial_banquet + clr_character_flag = apostle_eater + clr_character_flag = potencia_eater + + # Religious groups without heads (add here and in execute_eat if they gain them): + # american_native + # cult_of_saints + # mesoamerican_gods + # pirate + } +} + +# Crazy cannibal eat close relative of player +character_event = { + id = RIP.11511 + picture = GFX_evt_impalement + desc = EVTDESC_RIP_11511 + is_triggered_only = yes + + option = { + name = EVTOPTA_RIP_11511 + add_rival = FROMFROM + opinion = { + who = FROMFROM + modifier = opinion_killed_close_kin + months = 60 + } + } +} \ No newline at end of file diff --git a/After the End/events/rip_prosperity_events.txt b/After the End/events/rip_prosperity_events.txt new file mode 100644 index 000000000..68172304e --- /dev/null +++ b/After the End/events/rip_prosperity_events.txt @@ -0,0 +1,1478 @@ +namespace = RIP + +character_event = { + id = RIP.11700 + + hide_window = yes + + is_triggered_only = yes + + only_playable = yes + + trigger = { + has_dlc = "Reapers" + } + + immediate = { + any_realm_province = { + limit = { + any_province_holding = { #empty provinces (including provinces with ONLY a temple) do not prosper + OR = { + holding_type = city + #holding_type = temple + holding_type = castle + holding_type = tribal + } + } + owner = { character = ROOT } + NOR = { + has_province_modifier = depopulated_1 + has_province_modifier = depopulated_2 + has_province_modifier = depopulated_3 + } + } + province_event = { + id = RIP.11701 + } + } + } +} + +province_event = { #prosperity gain + id = RIP.11701 + + hide_window = yes + + is_triggered_only = yes + + option = { + random = { + chance = 50 #50/50 base chance to increase + modifier = { + factor = 1.5 #over 16 stewardship you have a 75% chance + owner = { + stewardship = 16 + } + } + modifier = { + factor = 1.5 #over 20 stewardship you increase 100% + owner = { + stewardship = 20 + } + } + modifier = { + factor = 1.2 #having trade posts increases the chance + has_trade_post = yes + } + modifier = { + factor = 0.9 #having under 10 stewardship slightly reduces the chance + owner = { + NOT = { stewardship = 10 } + } + } + modifier = { + factor = 0.8 #having under 4 stewardship significantly reduces the chance + owner = { + NOT = { stewardship = 4 } + } + } + modifier = { + factor = 0.9 #not being independent slightly reduces the chance + owner = { + NOT = { independent = yes } + } + } + modifier = { + factor = 0.6 #tribes prosper slower + AND = { + owner = { + is_tribal = yes + } + any_province_holding = { + holding_type = tribal + } + } + } + modifier = { + factor = 0.5 #bad province modifiers decrease chance + OR = { + has_province_modifier = incompetent_rule + has_province_modifier = thieves_guild + has_province_modifier = smugglers_ring + has_province_modifier = highway_robber_band + has_province_modifier = heretic_stronghold + has_province_modifier = religious_tension + has_province_modifier = temple_corruption + has_province_modifier = local_death_cult + has_province_modifier = extra_tax + } + } + modifier = { + factor = 0.7 #slightly lower chance if helping in a war + owner = { + any_war = { + NOR = { + is_primary_war_defender = yes + is_primary_war_attacker = yes + } + } + NOR = { + any_war = { + is_primary_war_defender = yes + } + any_war = { + is_primary_war_attacker = yes + } + } + } + } + modifier = { + factor = 0.5 #low chance if defending in a war + owner = { + any_war = { + is_primary_war_defender = yes + } + NOT = { + any_war = { + is_primary_war_attacker = yes + } + } + } + } + modifier = { + factor = 0.2 #very low chance if attacking in a war + owner = { + any_war = { + is_primary_war_attacker = yes + } + } + } + modifier = { + factor = 0 #no chance if under siege/occupied/diseased + OR = { + any_province_holding = { + has_siege = yes + } + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + + trigger_switch = { + on_trigger = terrain + farmlands = { change_variable = { which = prosperity_value value = 10 } } #gain depends on terrain type + plains = { change_variable = { which = prosperity_value value = 8 } } + steppe = { change_variable = { which = prosperity_value value = 8 } } + forest = { change_variable = { which = prosperity_value value = 6 } } + hills = { change_variable = { which = prosperity_value value = 6 } } + jungle = { change_variable = { which = prosperity_value value = 4 } } + desert = { change_variable = { which = prosperity_value value = 4 } } + mountain = { change_variable = { which = prosperity_value value = 2 } } + arctic = { change_variable = { which = prosperity_value value = 2 } } + } + + if = { # Coastal provinces prosper quicker because they get more trade/disease + limit = { + port = yes + any_province_holding = { + holding_type = city + } + } + change_variable = { which = prosperity_value value = 2 } + } + + if = { # Coastal Mountains/Arctic, i.e. Aden, prosper quicker than non-coastal terrain of the same type + limit = { + port = yes + any_province_holding = { + holding_type = city + } + OR = { + terrain = mountain + terrain = arctic + } + } + change_variable = { which = prosperity_value value = 4 } + } + + if = { # Coastal Desert/Jungle, i.e. Mecca, prosper quicker than non-coastal terrain of the same type + limit = { + port = yes + any_province_holding = { + holding_type = city + } + OR = { + terrain = desert + terrain = jungle + } + } + change_variable = { which = prosperity_value value = 2 } + } + } + if = { + limit = { + has_province_flag = crown_focus_province #provinces with crown focus set gain a bonus 1-5 prosperity progress per year regardless of other factors + NOR = { + any_province_holding = { + is_occupied = yes + } + has_disease = yes + } + } + random_list = { + 10 = { + change_variable = { which = prosperity_value value = 5 } + } + 10 = { + change_variable = { which = prosperity_value value = 4 } + } + 10 = { + change_variable = { which = prosperity_value value = 3 } + } + 10 = { + change_variable = { which = prosperity_value value = 2 } + } + 10 = { + change_variable = { which = prosperity_value value = 1 } + } + } + } + if = { + limit = { + has_province_flag = recent_depopulation_1 + } + change_variable = { which = prosperity_value value = 3 } + } + if = { + limit = { + has_province_flag = recent_depopulation_2 + } + change_variable = { which = prosperity_value value = 4 } + } + if = { + limit = { + has_province_flag = recent_depopulation_3 + } + change_variable = { which = prosperity_value value = 5 } + } + if = { + limit = { + check_variable = { which = prosperity_value value = 100 } #gain modifiers at 100/250/500 value + NOR = { + has_province_modifier = prosperity_modifier_1 + has_province_modifier = prosperity_modifier_2 + has_province_modifier = prosperity_modifier_3 + } + } + add_province_modifier = { name = prosperity_modifier_1 duration = -1 } + owner = { character_event = { id = RIP.11712 } } + break = yes + } + if = { + limit = { + check_variable = { which = prosperity_value value = 250 } + NOR = { + has_province_modifier = prosperity_modifier_2 + has_province_modifier = prosperity_modifier_3 + } + } + remove_province_modifier = prosperity_modifier_1 + add_province_modifier = { name = prosperity_modifier_2 duration = -1 } + owner = { character_event = { id = RIP.11712 } } + break = yes + } + if = { + limit = { + check_variable = { which = prosperity_value value = 500 } + NOT = { + has_province_modifier = prosperity_modifier_3 + } + } + remove_province_modifier = prosperity_modifier_2 + add_province_modifier = { name = prosperity_modifier_3 duration = -1 } + owner = { character_event = { id = RIP.11712 } } + } + } +} + +character_event = { #when sieged prosperity progress is wiped, with a major chance to drop a level + id = RIP.11702 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { + location = { + set_variable = { which = prosperity_value value = 0 } + random = { + chance = 75 #chance to lower by 1 step + if = { + limit = { + has_province_modifier = prosperity_modifier_1 + } + remove_province_modifier = prosperity_modifier_1 + break = yes + } + if = { + limit = { + has_province_modifier = prosperity_modifier_2 + } + remove_province_modifier = prosperity_modifier_2 + add_province_modifier = { name = prosperity_modifier_1 duration = -1 } + break = yes + } + if = { + limit = { + has_province_modifier = prosperity_modifier_3 + } + remove_province_modifier = prosperity_modifier_3 + add_province_modifier = { name = prosperity_modifier_2 duration = -1 } + } + } + } + } + } +} + +character_event = { #when looted prosperity progress is wiped, with a minor chance to drop a level + id = RIP.11720 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { + location = { + set_variable = { which = prosperity_value value = 0 } + random = { + chance = 15 #chance to lower by 1 step + if = { + limit = { + has_province_modifier = prosperity_modifier_1 + } + remove_province_modifier = prosperity_modifier_1 + break = yes + } + if = { + limit = { + has_province_modifier = prosperity_modifier_2 + } + remove_province_modifier = prosperity_modifier_2 + add_province_modifier = { name = prosperity_modifier_1 duration = -1 } + break = yes + } + if = { + limit = { + has_province_modifier = prosperity_modifier_3 + } + remove_province_modifier = prosperity_modifier_3 + add_province_modifier = { name = prosperity_modifier_2 duration = -1 } + } + } + } + } + } +} + +province_event = { #when epidemic appears prosperity progress is reduced based on prosperity level + id = RIP.11703 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + if = { + limit = { + has_province_modifier = prosperity_modifier_3 + } + set_variable = { which = prosperity_value value = 500 } + } + if = { + limit = { + has_province_modifier = prosperity_modifier_2 + } + set_variable = { which = prosperity_value value = 250 } + } + if = { + limit = { + has_province_modifier = prosperity_modifier_1 + } + set_variable = { which = prosperity_value value = 100 } + } + if = { + limit = { + NOR = { + has_province_modifier = prosperity_modifier_1 + has_province_modifier = prosperity_modifier_2 + has_province_modifier = prosperity_modifier_3 + } + } + set_variable = { which = prosperity_value value = 0 } + } + } +} + +character_event = { #prosperity notification + id = RIP.11712 + desc = RIP.11712.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11712.a + # + } +} + +character_event = { #removes flag on new holder + id = RIP.11715 + + hide_window = yes + + is_triggered_only = yes + + option = { + FROM = { + if = { + limit = { + tier = count + } + location = { + clr_province_flag = crown_focus_province + } + } + } + } +} + +##Events for Focus provinces + +province_event = { # Province Modifier Tombola + id = RIP.11719 + hide_window = yes + + has_flag = crown_focus_province + + trigger = { + has_province_modifier = prosperity_modifier_3 + } + + mean_time_to_happen = { + years = 45 + modifier = { + factor = 1.2 + owner = { + independent = no + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 12 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 16 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 18 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 12 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 16 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 18 + } + } + modifier = { + factor = 0.9 + owner = { + is_smart_trigger = yes + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = administrator + trait = architect + trait = scholar + trait = gardener + } + } + } + modifier = { + factor = 0.9 + owner = { + trait = diligent + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = charismatic_negotiator + trait = grey_eminence + trait = fortune_builder + trait = midas_touched + } + } + } + } + + immediate = { + random_list = { + + #10 = { # Jewish Settlement + # modifier = { + # factor = 0 + # NOR = { + # owner = { religion_group = christian } + # owner = { religion_group = muslim } + # owner = { religion_group = zoroastrian_group } + # } + # } + # modifier = { + # factor = 0 + # owner = { + # has_character_modifier = expelled_jewish + # } + # } + # modifier = { + # factor = 0 + # OR = { + # has_province_modifier = jewish_settlement_province + # has_province_modifier = religious_settlement_province + # religion_group = jewish_group + # } + # } + # modifier = { + # factor = 3 + # owner = { trait = cynical } + # } + # province_event = { id = RIP.11704 } + #} + 10 = { # Religious Settlement + modifier = { + factor = 0 + OR = { + owner = { religion_group = christian } + #owner = { religion_group = muslim } + #owner = { religion_group = zoroastrian_group } + } + } + modifier = { + factor = 0 + OR = { + has_province_modifier = jewish_settlement_province + has_province_modifier = religious_settlement_province + } + } + modifier = { + factor = 3 + owner = { trait = cynical } + } + province_event = { id = RIP.11718 } + } + 10 = { # Monument to Glory + modifier = { + factor = 0 + has_province_modifier = glorious_monument_province + } + modifier = { + factor = 5 + owner = { + trait = proud + } + } + province_event = { id = RIP.11707 } + } + 10 = { # Merchant Harbor + modifier = { + factor = 0 + has_province_modifier = merchant_harbor_province + } + modifier = { + factor = 0 + NOT = { + port = yes + } + } + province_event = { id = RIP.11708 } + } + 10 = { # Scholar Foundation + modifier = { + factor = 0 + has_province_modifier = scholar_foundation_province + } + modifier = { + factor = 3 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = scholar + trait = theologian + trait = mystic + } + } + } + province_event = { id = RIP.11709 } + } + 10 = { # Great Library + modifier = { + factor = 0 + has_province_modifier = great_library_province + } + modifier = { + factor = 3 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = scholar + } + } + } + province_event = { id = RIP.11710 } + } + 10 = { # Center of Worship + modifier = { + factor = 0 + has_province_modifier = center_of_worship_province + } + modifier = { + factor = 3 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = theologian + trait = mystic + } + } + } + province_event = { id = RIP.11711 } + } + 10 = { # Logging Company + modifier = { + factor = 0 + has_province_modifier = logging_company_province + } + modifier = { + factor = 0 + NOR = { + terrain = forest + terrain = jungle + } + } + modifier = { + factor = 3 + owner = { + OR = { + trait = diligent + trait = architect + trait = administrator + trait = fortune_builder + trait = midas_touched + } + } + } + province_event = { id = RIP.11716 } + } + 10 = { # Ore Mine + modifier = { + factor = 0 + has_province_modifier = ore_mine_province + } + modifier = { + factor = 0 + NOT = { + terrain = mountain + } + } + modifier = { + factor = 3 + owner = { + OR = { + trait = diligent + trait = architect + trait = administrator + trait = fortune_builder + trait = midas_touched + } + } + } + province_event = { id = RIP.11717 } + } + 10 = { # Regimental Grounds + modifier = { + factor = 0 + has_province_modifier = regimental_ground_province + } + modifier = { + factor = 3 + owner = { + OR = { + trait = skilled_tactician + trait = brilliant_strategist + martial = 14 + } + } + } + province_event = { id = RIP.11721 } + } + + } + } +} + +province_event = { #Reclaim Land + id = RIP.11705 + title = PROSPERITY_TITLE + desc = RIP.11705.d + picture = "GFX_evt_culture_change" + border = GFX_event_normal_frame_economy + + has_flag = crown_focus_province + + trigger = { + has_province_modifier = prosperity_modifier_3 + NOT = { + num_of_max_settlements = 7 + } + } + + mean_time_to_happen = { + years = 65 + modifier = { + factor = 1.2 + owner = { + independent = no + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 12 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 16 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 18 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 12 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 16 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 18 + } + } + modifier = { + factor = 0.9 + owner = { + is_smart_trigger = yes + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = administrator + trait = architect + trait = scholar + trait = gardener + } + } + } + modifier = { + factor = 0.9 + owner = { + trait = diligent + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = charismatic_negotiator + trait = grey_eminence + trait = fortune_builder + trait = midas_touched + } + } + } + } + + + option = { + name = RIP.11705.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -2.5 + } + add_holding_slot = 1 + } + option = { + name = RIP.11705.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #Monetary Incentives for culture conversion + id = RIP.11706 + title = PROSPERITY_TITLE + desc = RIP.11706.d + picture = "GFX_evt_culture_change" + border = GFX_event_normal_frame_economy + + has_flag = crown_focus_province + + trigger = { + OR = { + has_province_modifier = prosperity_modifier_2 + has_province_modifier = prosperity_modifier_3 + } + owner = { + NOT = { culture = ROOT } + } + } + + mean_time_to_happen = { + years = 40 + modifier = { + factor = 2 + owner = { + independent = no + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 12 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 16 + } + } + modifier = { + factor = 0.9 + owner = { + stewardship = 18 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 12 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 16 + } + } + modifier = { + factor = 0.9 + owner = { + learning = 18 + } + } + modifier = { + factor = 0.9 + owner = { + is_smart_trigger = yes + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = administrator + trait = architect + trait = scholar + trait = gardener + } + } + } + modifier = { + factor = 0.9 + owner = { + trait = diligent + } + } + modifier = { + factor = 0.9 + owner = { + OR = { + trait = scholarly_theologian + trait = mastermind_theologian + trait = charismatic_negotiator + trait = grey_eminence + trait = fortune_builder + trait = midas_touched + } + } + } + } + + option = { + name = RIP.11706.a + + ai_chance = { + factor = 50 + } + + owner = { + scaled_wealth = -1 + ROOT = { + culture = PREV + if = { + limit = { + NOT = { + religion = PREV + } + } + religion = PREV + } + if = { + limit = { + has_province_modifier = nomad_agitation + } + remove_province_modifier = nomad_agitation + } + } + } + } + option = { + name = RIP.11706.b + + ai_chance = { + factor = 50 + } + + } +} + +province_event = { #Jewish settlement + id = RIP.11704 + title = PROSPERITY_TITLE + desc = RIP.11704.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11704.a + + ai_chance = { + factor = 95 + + modifier = { + factor = 0.1 + owner = { trait = zealous } + } + } + + owner = { + scaled_wealth = -1 + piety = -200 + } + + add_province_modifier = { + name = jewish_settlement_province + duration = -1 + } + } + option = { + name = RIP.11704.b + + ai_chance = { + factor = 5 + } + + owner = { + piety = 200 + } + } +} + +province_event = { #Monument to Glory + id = RIP.11707 + title = PROSPERITY_TITLE + desc = RIP.11707.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11707.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -1.5 + } + + add_province_modifier = { + name = glorious_monument_province + duration = -1 + } + } + option = { + name = RIP.11707.b + + ai_chance = { + factor = 5 + } + + } +} + +character_event = { #Monument to Glory teardown + id = RIP.11713 + desc = RIP.11713.d + picture = "GFX_evt_siege" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + trigger = { + FROM = { + location = { + has_province_modifier = glorious_monument_province + } + NOT = { + owner = { character = ROOT } + } + } + } + + option = { + name = GREAT + wealth = 50 + FROM = { + location = { + remove_province_modifier = glorious_monument_province + } + } + } +} + +province_event = { #Merchant Harbor + id = RIP.11708 + title = PROSPERITY_TITLE + desc = RIP.11708.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11708.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -0.5 + } + add_province_modifier = { + name = merchant_harbor_province + duration = -1 + } + } + option = { + name = RIP.11708.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #Scholar Foundation + id = RIP.11709 + title = PROSPERITY_TITLE + desc = RIP.11709.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11709.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -1 + } + add_province_modifier = { + name = scholar_foundation_province + duration = -1 + } + } + option = { + name = RIP.11709.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #Great library + id = RIP.11710 + title = PROSPERITY_TITLE + desc = RIP.11710.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11709.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -0.5 + } + add_province_modifier = { + name = great_library_province + duration = -1 + } + } + option = { + name = RIP.11709.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #Center of Worship + id = RIP.11711 + title = PROSPERITY_TITLE + desc = RIP.11711.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11711.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -1 + } + add_province_modifier = { + name = center_of_worship_province + duration = -1 + } + } + option = { + name = RIP.11711.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #Logging Company + id = RIP.11716 + title = PROSPERITY_TITLE + desc = RIP.11716.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11716.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -0.5 + } + + add_province_modifier = { + name = logging_company_province + duration = -1 + } + } + option = { + name = RIP.11716.b + + ai_chance = { + factor = 5 + } + + owner = { + scaled_wealth = 0.3 + } + + ai_chance = { factor = 5 } + } +} + +province_event = { #Ore Mine + id = RIP.11717 + title = PROSPERITY_TITLE + desc = RIP.11717.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11717.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -0.5 + } + + add_province_modifier = { + name = ore_mine_province + duration = -1 + } + } + option = { + name = RIP.11717.b + + ai_chance = { + factor = 5 + } + + owner = { + scaled_wealth = 0.3 + } + } +} + +province_event = { #Religious settlement + id = RIP.11718 + title = PROSPERITY_TITLE + desc = RIP.11718.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11718.a + + ai_chance = { + factor = 95 + + modifier = { + factor = 0.1 + owner = { trait = zealous } + } + } + + owner = { + scaled_wealth = -1 + piety = -200 + } + add_province_modifier = { + name = religious_settlement_province + duration = -1 + } + } + option = { + name = RIP.11718.b + + ai_chance = { + factor = 5 + } + + owner = { + piety = 200 + } + } +} + +province_event = { #Regimental Grounds + id = RIP.11721 + title = PROSPERITY_TITLE + desc = RIP.11721.d + picture = "GFX_evt_prospering_province" + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = RIP.11721.a + + ai_chance = { + factor = 95 + } + + owner = { + scaled_wealth = -1.5 + } + add_province_modifier = { + name = regimental_ground_province + duration = -1 + } + } + option = { + name = RIP.11721.b + + ai_chance = { + factor = 5 + } + + } +} + +province_event = { #flag cleanup 1 + id = RIP.11722 + + hide_window = yes + + has_flag = recent_depopulation_1 + + trigger = { + had_province_flag = { flag = recent_depopulation_1 days = 7300 } + } + + mean_time_to_happen = { + years = 1 + } + + option = { + clr_province_flag = recent_depopulation_1 + } + +} + +province_event = { #flag cleanup 2 + id = RIP.11723 + + hide_window = yes + + has_flag = recent_depopulation_2 + + trigger = { + had_province_flag = { flag = recent_depopulation_2 days = 9125 } + } + + mean_time_to_happen = { + years = 1 + } + + option = { + clr_province_flag = recent_depopulation_2 + } + +} + +province_event = { #flag cleanup 3 + id = RIP.11724 + + hide_window = yes + + has_flag = recent_depopulation_3 + + trigger = { + had_province_flag = { flag = recent_depopulation_3 days = 10950 } + } + + mean_time_to_happen = { + years = 1 + } + + option = { + clr_province_flag = recent_depopulation_3 + } + +} \ No newline at end of file diff --git a/After the End/events/rumours_events.txt b/After the End/events/rumours_events.txt new file mode 100644 index 000000000..0d76cefbf --- /dev/null +++ b/After the End/events/rumours_events.txt @@ -0,0 +1,5323 @@ +################################### +# +# Events for Rumours +# +# Id 69000 - 69999 is reserved +# +# +################################### +# +# Designed by Johan Andersson +# Written by Sara Wendel-Örtqvist + +### Homosexual ### + +#Suspected Sodomite: Any Courtier +character_event = { + id = 69000 + desc = EVTDESC69000 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + NOT = { + has_character_flag = suspected_sodomite + } + is_female = no + age = 16 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69000 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + } + character_event = { + id = 69001 + days = 3 + tooltip = EVTTOOLTIP69001 + } + } + } + + option = { + name = EVTOPTB69000 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + } + set_character_flag = suspected_sodomite + character_event = { + id = 69080 + days = 3 + tooltip = EVTTOOLTIP69080 + } + } + } + + option = { + name = EVTOPTC69000 + ai_chance = { + factor = 40 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + } + character_event = { + id = 69002 + days = 3 + tooltip = EVTTOOLTIP69002 + } + } + } +} + +#Suspected Sodomite: Target is confronted +character_event = { + id = 69001 + desc = EVTDESC69001 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69001 #Deny + set_character_flag = suspected_sodomite + FROM = { + opinion = { + modifier = denied_sodomite_rumour + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69001 #Embrace + add_trait = homosexual + } +} + +#Suspected Sodomite: Target is blackmailed +character_event = { + id = 69002 + desc = EVTDESC69002 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69002 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB69002 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + trait = homosexual + } + NOT = { + character = ROOT + } + } + opinion = { + modifier = suspected_sodomite_rumour + who = ROOT + years = 3 + } + } + } +} + +#Suspected Sodomite: Ruler +character_event = { + id = 69003 + desc = EVTDESC69003 + picture = GFX_evt_whispers + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + NOT = { + has_character_flag = impotent_man + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69003 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + is_priest = no + age = 16 + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + } + character_event = { + id = 69004 + days = 3 + tooltip = EVTTOOLTIP69004 + } + } + } + + option = { + name = EVTOPTB69003 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + } + set_character_flag = suspected_sodomite + character_event = { + id = 69080 + days = 3 + tooltip = EVTTOOLTIP69080 + } + } + } +} + +#Suspected Sodomite: Ruler confront Target +character_event = { + id = 69004 + desc = EVTDESC69004 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69004 #Deny + set_character_flag = suspected_sodomite + FROM = { + opinion = { + modifier = denied_sodomite_rumour + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69004 #Embrace + add_trait = homosexual + } +} + +#People think I am homosexual! Brothel +character_event = { + id = 69005 + desc = EVTDESC69005 + picture = GFX_evt_brothel + + only_rulers = yes + only_men = yes + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_sodomite + + trigger = { + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { + has_character_modifier = whoremaster + } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69005 #Go to brothels + piety = -10 + add_character_modifier = { + name = whoremaster + duration = 365 + } + } + option = { + name = EVTOPTB69005 #Talk about it + prestige = -10 + } +} + +#People think I am homosexual! A Churchman denounces you +character_event = { + id = 69006 + desc = EVTDESC69006 + picture = GFX_evt_whispers + + only_rulers = yes + only_men = yes + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_sodomite + religion_group = christian + + trigger = { + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + NOT = { is_inaccessible_trigger = yes } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69006 + piety = -10 + } + option = { + name = EVTOPTB69006 + prestige = -10 + } +} + +#People think I am homosexual! Self-doubts +character_event = { + id = 69007 + desc = EVTDESC69007 + picture = GFX_evt_whispers + + only_rulers = yes + only_men = yes + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_sodomite + + trigger = { + OR = { + NOT = { + martial = 2 + } + trait = craven + trait = poet + trait = gardener + } + NOT = { + num_of_children = 1 + } + NOT = { + trait = homosexual + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69007 + add_trait = stressed + } +} + +#People think I am homosexual! An Imam denounces you +#character_event = { +# id = 69008 +# desc = EVTDESC69006 +# picture = GFX_evt_whispers +# +# only_rulers = yes +# only_men = yes +# min_age = 16 +# capable_only = yes +# prisoner = no +# religion_group = muslim +# has_character_flag = suspected_sodomite +# +# trigger = { +# OR = { +# NOT = { +# martial = 2 +# } +# trait = craven +# trait = poet +# trait = gardener +# } +# NOT = { +# num_of_children = 1 +# } +# NOT = { +# trait = homosexual +# } +# } +# +# mean_time_to_happen = { +# months = 60 +# } +# +# option = { +# name = EVTOPTA69006 +# piety = -10 +# } +# option = { +# name = EVTOPTB69006 +# prestige = -10 +# } +#} + +### Incest ### + +#Suspected of Incest: Any courtier +character_event = { + id = 69010 + desc = EVTDESC69010 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + #NOT = { + # religion_group = muslim + # religion_group = zoroastrian_group + #} + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = suspected_of_incest + } + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = PREV value = 75 } + opinion = { who = PREV value = 75 } + } + } + } + + weight_multiplier = { + days = 1 + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69010 + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = PREV value = 75 } + opinion = { who = PREV value = 75 } + } + } + character_event = { + id = 69011 + days = 3 + tooltip = EVTTOOLTIP69011 + } + } + } + option = { + name = EVTOPTB69010 + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = PREV value = 75 } + opinion = { who = PREV value = 75 } + } + } + set_character_flag = suspected_of_incest + character_event = { + id = 69081 + days = 3 + tooltip = EVTTOOLTIP69081 + } + } + } + option = { + name = EVTOPTC69010 + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = PREV value = 75 } + opinion = { who = PREV value = 75 } + } + } + } + character_event = { + id = 69012 + days = 3 + tooltip = EVTTOOLTIP69012 + } + } +} + +#Suspected of Incest: Target is confronted +character_event = { + id = 69011 + desc = EVTDESC69011 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69011 + set_character_flag = suspected_of_incest + FROM = { + opinion = { + modifier = denied_incest_rumour + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69011 + random_courtier = { + limit = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 50 + } + NOT = { + trait = chaste + } + NOT = { + trait = celibate + } + } + character_event = { + id = 69013 + days = 3 + tooltip = EVTTOOLTIP69013 + } + } + } +} + +#Suspected of Incest: Target is blackmailed +character_event = { + id = 69012 + desc = EVTDESC69012 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69012 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69012 + set_character_flag = suspected_of_incest + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + AND = { + sibling = ROOT + is_female = yes + } + } + NOT = { + character = ROOT + } + } + opinion = { + modifier = suspected_of_incest_rumour + who = ROOT + years = 3 + } + } + } +} + +#Suspected of Incest: Affair with female courtier +character_event = { + id = 69013 + desc = EVTDESC69013 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA69013 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + FROM = { + reverse_opinion = { who = ROOT value = 25 } + } + } + } + FROM = { + character_event = { + id = 453 + days = 3 + tooltip = EVTTOOLTIP453 + } + } + } + + option = { + name = EVTOPTB69013 + ai_chance = { + factor = 50 + + modifier = { + factor = 0.01 + FROM = { + NOT = { + reverse_opinion = { who = ROOT value = 25 } + } + } + } + } + FROM = { + character_event = { + id = 454 + days = 3 + tooltip = EVTTOOLTIP454 + } + } + } +} + +#Suspected of Incest: Start +character_event = { + id = 69014 + desc = EVTDESC69010 + picture = GFX_evt_whispers + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + NOT = { religion_group = zoroastrian_group } + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = suspected_of_incest + } + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + any_sibling = { + prisoner = no + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = ROOT value = 75 } + opinion = { who = ROOT value = 75 } + } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69010 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = ROOT value = 75 } + opinion = { who = ROOT value = 75 } + } + } + character_event = { + id = 69011 + days = 3 + tooltip = EVTTOOLTIP69011 + } + random_sibling = { + limit = { + prisoner = no + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = ROOT value = 75 } + opinion = { who = ROOT value = 75 } + } + set_character_flag = sister_suspected_of_incest + } + } + } + option = { + name = EVTOPTB69010 + ai_chance = { + factor = 90 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + at_location = ROOT + NOT = { + trait = chaste + } + NOT = { + age = 40 + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_sibling = { + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = ROOT value = 75 } + opinion = { who = ROOT value = 75 } + } + } + random_sibling = { + limit = { + prisoner = no + is_female = yes + at_location = ROOT + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = chaste + } + reverse_opinion = { who = ROOT value = 75 } + opinion = { who = ROOT value = 75 } + } + set_character_flag = sister_suspected_of_incest + } + set_character_flag = suspected_of_incest + character_event = { + id = 69081 + days = 3 + tooltip = EVTTOOLTIP69081 + } + } + } +} + +#Suspect of Incest: Confessor takes you aside +character_event = { + id = 69015 + desc = EVTDESC69015 + picture = GFX_evt_whispers + + only_men = yes + min_age = 16 + max_age = 40 + capable_only = yes + prisoner = no + religion_group = christian + has_character_flag = suspected_of_incest + + trigger = { + NOT = { + has_character_modifier = suspected_of_incest_timer + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69015 + clr_character_flag = suspected_of_incest + piety = 10 + add_trait = chaste + } + option = { + name = EVTOPTB69015 + piety = -10 + hidden_tooltip = { + add_character_modifier = { + name = suspected_of_incest_timer + duration = 90 + hidden = yes + } + } + } +} + +#Suspect of Incest: Child notices you and sister alone in a tower +character_event = { + id = 69016 + desc = EVTDESC69016 + picture = GFX_evt_whispers + + only_men = yes + min_age = 16 + max_age = 40 + capable_only = yes + prisoner = no + has_character_flag = suspected_of_incest + + trigger = { + any_sibling = { + has_character_flag = sister_suspected_of_incest + } + any_realm_character = { + prisoner = no + NOT = { + father = { + character = ROOT + } + } + NOT = { + mother = { + sibling = ROOT + } + } + age = 6 + NOT = { + age = 15 + } + can_be_maimed_trigger = yes + NOT = { trait = incapable } + NOT = { trait = blinded } + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69016 #The things I do for love + clr_character_flag = suspected_of_incest + random_realm_character = { + limit = { + prisoner = no + NOT = { + father = { + character = ROOT + } + } + NOT = { + mother = { + sibling = ROOT + } + } + age = 6 + NOT = { + age = 15 + } + can_be_maimed_trigger = yes + NOR = { + trait = incapable + trait = blinded + } + } + add_maimed_trait_effect = yes + } + } + option = { + name = EVTOPTB69016 #Ignore the child + clr_character_flag = suspected_of_incest + if = { + limit = { + religion = catholic + } + random = { + chance = 25 + character_event = { + id = 69017 + days = 7 + tooltip = EVTTOOLTIP69017 + } + } + } + if = { + limit = { + NOT = { + religion = catholic + } + } + piety = -10 + } + } +} + +#Suspect of Incest: Child talks +character_event = { + id = 69017 + desc = EVTDESC69017 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69017 + character_event = { + id = 38022 + days = 5 + tooltip = EVTTOOLTIP38022 + } + random_sibling = { + limit = { + has_character_flag = sister_suspected_of_incest + } + clr_character_flag = sister_suspected_of_incest + character_event = { + id = 38022 + days = 5 + tooltip = EVTTOOLTIP38022 + } + } + } +} + +### IMPOTENCE ### + +#Impotence: Any Courtier +character_event = { + id = 69020 + desc = EVTDESC69020 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + is_pregnant = no + NOT = { + age = 45 + } + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + NOT = { + has_character_flag = impotent_man + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69020 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + is_female = no + prisoner = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + } + character_event = { + id = 69021 + days = 3 + tooltip = EVTTOOLTIP69021 + } + } + } + + option = { + name = EVTOPTB69020 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + } + set_character_flag = impotent_man + character_event = { + id = 69082 + days = 3 + tooltip = EVTTOOLTIP69082 + } + } + } + + option = { + name = EVTOPTC69020 + ai_chance = { + factor = 40 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + } + character_event = { + id = 69022 + days = 3 + tooltip = EVTTOOLTIP69022 + } + } + } +} + +#Impotence: Target is confronted +character_event = { + id = 69021 + desc = EVTDESC69021 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69021 #Deny + set_character_flag = impotent_man + add_trait = stressed + FROM = { + opinion = { + modifier = denied_impotence_rumour + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69021 #Admit + prestige = -20 + random = { + chance = 20 + + add_trait = chaste + hidden_tooltip = { + character_event = { + id = 38274 #Notify Chaste + } + } + } + } +} + +#Impotence: Target is blackmailed +character_event = { + id = 69022 + desc = EVTDESC69022 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69022 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69022 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = not_a_real_man + who = ROOT + years = 3 + } + } + } +} + +#Impotence: Ruler +character_event = { + id = 69023 + desc = EVTDESC69020 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + NOT = { + has_character_flag = impotent_man + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69020 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + } + character_event = { + id = 69021 + days = 3 + tooltip = EVTTOOLTIP69021 + } + } + } + + option = { + name = EVTOPTB69020 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 30 + is_married = yes + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + num_of_children = 1 + } + } + set_character_flag = impotent_man + character_event = { + id = 69082 + days = 3 + tooltip = EVTTOOLTIP69082 + } + } + } +} + +#People laugh behind your back +character_event = { + id = 69024 + desc = EVTDESC69024 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + has_character_flag = impotent_man + + trigger = { + NOT = { + num_of_children = 1 + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69024 + prestige = -10 + hidden_tooltip = { + add_character_modifier = { + name = laughing_timer + duration = 365 + hidden = yes + } + } + } +} + +### ADULTERY ### + +#Adultery: Any Courtier +character_event = { + id = 69030 + desc = EVTDESC69030 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + diplomacy = 12 + is_married = yes + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = celibate + } + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + NOT = { + num_of_children = 1 + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69030 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + diplomacy = 12 + is_married = yes + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = celibate + } + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + character_event = { + id = 69031 + days = 3 + tooltip = EVTTOOLTIP69031 + } + } + } + + option = { + name = EVTOPTB69030 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + diplomacy = 12 + is_married = yes + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = celibate + } + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + set_character_flag = committed_adultery + character_event = { + id = 69083 + days = 3 + tooltip = EVTTOOLTIP69083 + } + } + } + + option = { + name = EVTOPTC69030 + ai_chance = { + factor = 40 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + diplomacy = 12 + is_married = yes + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 40 + } + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + character_event = { + id = 69036 + days = 3 + tooltip = EVTTOOLTIP69036 #Blackmailed + } + } + } +} + +#Adultery: Target is confronted +character_event = { + id = 69031 + desc = EVTDESC69031 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69031 #Deny + set_character_flag = committed_adultery + random_courtier = { + limit = { + prisoner = no + is_female = yes + age = 16 + NOT = { + age = 40 + } + NOT = { + trait = celibate + } + NOT = { + family = ROOT + } + opinion = { who = ROOT value = 40 } + reverse_opinion = { who = ROOT value = 40 } + spouse = { + NOT = { + character = ROOT + } + } + } + if = { + limit = { + any_lover = { character = root } + } + character_event = { + id = 64086 + tooltip = "EVTTOOLTIP64086" + } + } + opinion = { + modifier = opinion_denied_love + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69031 #Don't say a word + FROM = { + character_event = { + id = 69032 + days = 3 + tooltip = EVTTOOLTIP69032 + } + } + } +} + +#Adultery: tell spouse or no? +character_event = { + id = 69032 + desc = EVTDESC69032 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69032 + FROM = { + spouse = { + character_event = { + id = 69033 + days = 3 + tooltip = EVTTOOLTIP69033 + } + } + } + } + option = { + name = EVTOPTB69032 + } +} + +#Adultery: Spouse is told +character_event = { + id = 69033 + desc = EVTDESC69033 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69033 + spouse = { + character_event = { + id = 69034 + days = 3 + tooltip = EVTTOOLTIP69034 + } + } + } + + option = { + name = EVTOPTB69033 + spouse = { + character_event = { + id = 69035 + days = 3 + tooltip = EVTTOOLTIP69035 + } + } + } +} + +#Adultery: Spouse mad as hell +character_event = { + id = 69034 + desc = EVTDESC69034 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69034 + FROM = { + opinion = { + modifier = opinion_mad_as_hell + who = ROOT + years = 3 + } + } + } +} + +#Adultery: Spouse forgives +character_event = { + id = 69035 + desc = EVTDESC69035 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69035 + FROM = { + opinion = { + modifier = opinion_forgive + who = ROOT + years = 3 + } + } + } +} + +#Adultery: Target is blackmailed +character_event = { + id = 69036 + desc = EVTDESC69036 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69036 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69036 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 5 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + character = PREV + } + } + opinion = { + modifier = committed_adultery_rumour + who = PREV + years = 3 + } + } + } +} + +#Adultery: Ruler +character_event = { + id = 69037 + desc = EVTDESC69030 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + is_married = yes + age = 16 + diplomacy = 12 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69030 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + is_married = yes + age = 16 + diplomacy = 12 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + character_event = { + id = 69031 + days = 3 + tooltip = EVTTOOLTIP69031 + } + } + } + + option = { + name = EVTOPTB69030 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + is_married = yes + age = 16 + diplomacy = 12 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + any_courtier = { + prisoner = no + is_female = yes + NOT = { + family = PREV + } + opinion = { who = PREV value = 40 } + reverse_opinion = { who = PREV value = 40 } + spouse = { + NOT = { + character = PREV + } + } + } + } + set_character_flag = committed_adultery + character_event = { + id = 69083 + days = 3 + tooltip = EVTTOOLTIP69083 + } + } + } +} + +#Adultery: Spouse speaks badly about you to the children +character_event = { + id = 69038 + desc = EVTDESC69038 + picture = GFX_evt_quarrel + + capable_only = yes + prisoner = no + has_character_flag = committed_adultery + + trigger = { + num_of_children = 2 + any_child = { + age = 6 + } + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + has_opinion_modifier = { who = ROOT modifier = opinion_mad_as_hell } + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69038 + any_child = { + limit = { + age = 6 + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Spouse confronts lover +character_event = { + id = 69039 + desc = EVTDESC69039 + picture = GFX_evt_quarrel + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + any_lover = { + NOT = { + spouse = { + character = ROOT + } + } + } + spouse = { + has_opinion_modifier = { who = ROOT modifier = opinion_mad_as_hell } + } + } + + mean_time_to_happen = { + months = 60 + } + + immediate = { + random_lover = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + } + save_event_target_as = problem_lover + } + } + + option = { + name = EVTOPTA69039 + event_target:problem_lover = { + opinion = { + modifier = opinion_reassured_of_love + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB69039 #Confess to wife + clr_character_flag = committed_adultery + event_target:problem_lover = { + remove_lover = ROOT + } + spouse = { + remove_opinion = { who = ROOT modifier = opinion_mad_as_hell } + opinion = { + modifier = opinion_forgive + who = ROOT + years = 2 + } + } + } +} + +### OCCULTISM ### + +#Occultism: Any Courtier +character_event = { + id = 69040 + desc = EVTDESC69040 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + religion_group = christian + learning = 10 + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + is_smart_trigger = yes + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69040 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + character_event = { + id = 69041 + days = 3 + tooltip = EVTTOOLTIP69041 + } + } + } + + option = { + name = EVTOPTB69040 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + set_character_flag = suspected_occultist + character_event = { + id = 69084 + days = 3 + tooltip = EVTTOOLTIP69084 + } + } + } + + option = { + name = EVTOPTC69040 + ai_chance = { + factor = 40 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + character_event = { + id = 69042 + days = 3 + tooltip = EVTTOOLTIP69042 + } + } + } +} + +#Occultism: Target is confronted +character_event = { + id = 69041 + desc = EVTDESC69041 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69041 + set_character_flag = suspected_occultist + FROM = { + opinion = { + modifier = denied_occultist_rumour + who = ROOT + years = 3 + } + } + } + option = { + name = EVTOPTB69041 + prestige = -20 + } +} + +#Occultism: Target is blackmailed +character_event = { + id = 69042 + desc = EVTDESC69042 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69042 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69042 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + set_character_flag = suspected_occultist + any_courtier = { + limit = { + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = suspected_occultist_rumour + who = PREV + years = 3 + } + } + } +} + +#Occultism: Ruler +character_event = { + id = 69043 + desc = EVTDESC69040 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69040 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + character_event = { + id = 69041 + days = 3 + tooltip = EVTTOOLTIP69041 + } + } + } + + option = { + name = EVTOPTB69040 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + is_female = no + age = 16 + religion_group = christian + learning = 10 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + trait = zealous + } + NOT = { + has_character_flag = suspected_occultist + } + } + set_character_flag = suspected_occultist + character_event = { + id = 69084 + days = 3 + tooltip = EVTTOOLTIP69084 + } + } + } +} + +#A child is missing, you are suspect +character_event = { + id = 69044 + desc = EVTDESC69044 + picture = GFX_evt_scandal + + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_occultist + + trigger = { + any_courtier = { + prisoner = no + age = 5 + NOT = { + age = 15 + } + } + NOT = { + has_character_modifier = missing_child_timer + } + } + + mean_time_to_happen = { + months = 60 + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = missing_child_timer + duration = 730 + hidden = yes + } + } + } + + option = { + name = EVTOPTA69044 + random = { + chance = 25 + + add_trait = cynical + } + } + option = { + name = EVTOPTB69044 + random_list = { + 50 = { + piety = -15 + } + 50 = { + prestige = -15 + } + } + } +} + +#Whisper in the dark +character_event = { + id = 69045 + desc = EVTDESC69045 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_occultist + + trigger = { + NOT = { + has_character_modifier = voice_in_darkness_timer + } + } + + mean_time_to_happen = { + months = 60 + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = voice_in_darkness_timer + duration = 730 + hidden = yes + } + } + } + + option = { + name = EVTOPTA69045 + set_character_flag = occultist_flagged + prestige = 1 + } + option = { + name = EVTOPTB69045 + piety = 1 + } +} + +#Confessor talks to suspected occultist +character_event = { + id = 69046 + desc = EVTDESC69046 + picture = GFX_evt_bishop + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + has_character_flag = suspected_occultist + + trigger = { + NOT = { + has_character_modifier = confessor_and_occultist_timer + } + } + + mean_time_to_happen = { + months = 60 + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = confessor_and_occultist_timer + duration = 730 + hidden = yes + } + } + } + + option = { + name = EVTOPTA69046 + add_trait = zealous + piety = 1 + } + option = { + name = EVTOPTB69046 + add_character_modifier = { + name = ignored_confessor + duration = 730 + } + } +} + +#Dabble in the dark arts +character_event = { + id = 69047 + desc = EVTDESC69047 + picture = GFX_evt_torture + + min_age = 16 + capable_only = yes + prisoner = no + has_character_flag = suspected_occultist + + trigger = { + has_character_flag = occultist_flagged + NOT = { + has_character_modifier = dabble_dark_arts_timer + } + NOT = { + trait = possessed + } + NOT = { + trait = stressed + } + } + + mean_time_to_happen = { + months = 60 + } + + immediate = { + hidden_tooltip = { + add_character_modifier = { + name = dabble_dark_arts_timer + duration = 90 + hidden = yes + } + } + } + + option = { + name = EVTOPTA69047 + trigger = { + NOT = { + trait = paranoid + } + } + random_list = { + 25 = { + add_trait = fair + hidden_tooltip = { + character_event = { + id = 38301 #Notify Fair + } + } + } + 25 = { + change_martial = 1 + } + 25 = { + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Notify + } + } + } + 25 = { + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify + } + } + } + } + } + option = { + name = EVTOPTB69047 + clr_character_flag = suspected_occultist + clr_character_flag = occultist_flagged + piety = 10 + } + option = { + name = EVTOPTC69047 + trigger = { + trait = paranoid + religion_group = christian + } + tooltip_info = paranoid + piety = -5 + random = { + chance = 33 + + add_trait = possessed + character_event = { id = 38315 } # Notify Possessed + } + } +} + +### INCOMPETENCE AT WORK ### + +#Incompetence at work: Chancellor +character_event = { + id = 69050 + desc = EVTDESC69050 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + job_chancellor = { + prisoner = no + is_female = no + age = 16 + NOT = { + diplomacy = 12 + } + liege = { + ROOT = { + NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69050 + ai_chance = { + factor = 10 + } + job_chancellor = { + character_event = { + id = 69051 + tooltip = EVTTOOLTIP69051 + } + } + } + + option = { + name = EVTOPTB69050 + ai_chance = { + factor = 50 + } + job_chancellor = { + character_event = { + id = 69085 + days = 3 + tooltip = EVTTOOLTIP69085 + } + } + } + + option = { + name = EVTOPTC69050 + trigger = { + job_chancellor = { + treasury = 20 + } + } + treasury = 20 + job_chancellor = { + treasury = -20 + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 5 + } + } + } +} + +#Chancellor +character_event = { + id = 69051 + desc = EVTDESC69051 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69051 + opinion = { + modifier = opinion_unappreciated + who = FROM + years = 5 + } + random = { + chance = 25 + + change_diplomacy = 1 + } + } +} + +#Incompetence at work: Marshal +character_event = { + id = 69052 + desc = EVTDESC69052 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + job_marshal = { + NOT = { + martial = 12 + } + liege = { + ROOT = { + NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69052 + ai_chance = { + factor = 10 + } + job_marshal = { + character_event = { + id = 69053 + tooltip = EVTTOOLTIP69053 + } + } + } + + option = { + name = EVTOPTB69052 + ai_chance = { + factor = 50 + } + job_marshal = { + character_event = { + id = 69086 + days = 3 + tooltip = EVTTOOLTIP69086 + } + } + } + + option = { + name = EVTOPTC69052 + trigger = { + job_marshal = { + NOT = { + martial = 12 + } + treasury = 20 + } + } + treasury = 20 + job_marshal = { + treasury = -20 + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 3 + } + } + } +} + +#Marshal +character_event = { + id = 69053 + desc = EVTDESC69053 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69053 + opinion = { + modifier = opinion_unappreciated + who = FROM + years = 5 + } + random = { + chance = 25 + + change_martial = 1 + } + } +} + +#Incompetence at work: Steward +character_event = { + id = 69054 + desc = EVTDESC69054 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + job_treasurer = { + is_female = no + age = 16 + NOT = { + stewardship = 12 + } + liege = { + ROOT = { + NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69054 + ai_chance = { + factor = 10 + } + job_treasurer = { + character_event = { + id = 69055 + tooltip = EVTTOOLTIP69055 + } + } + } + + option = { + name = EVTOPTB69054 + ai_chance = { + factor = 50 + } + job_treasurer = { + character_event = { + id = 69087 + days = 3 + tooltip = EVTTOOLTIP69087 + } + } + } + + option = { + name = EVTOPTC69054 + trigger = { + job_treasurer = { + treasury = 20 + } + } + treasury = 20 + job_treasurer = { + treasury = -20 + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 3 + } + } + } +} + +#Steward +character_event = { + id = 69055 + desc = EVTDESC69055 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69055 + opinion = { + modifier = opinion_unappreciated + who = FROM + years = 3 + } + random = { + chance = 25 + + change_stewardship = 1 + } + } +} + +#Incompetence at work: Spymaster +character_event = { + id = 69056 + desc = EVTDESC69056 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + job_spymaster = { + is_female = no + age = 16 + NOT = { + intrigue = 12 + } + liege = { + ROOT = { + NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69056 + ai_chance = { + factor = 10 + } + job_spymaster = { + character_event = { + id = 69057 + tooltip = EVTTOOLTIP69057 + } + } + } + + option = { + name = EVTOPTB69056 + ai_chance = { + factor = 50 + } + job_spymaster = { + character_event = { + id = 69088 + days = 3 + tooltip = EVTTOOLTIP69088 + } + } + } + + option = { + name = EVTOPTC69056 + trigger = { + job_spymaster = { + is_female = no + age = 16 + NOT = { + intrigue = 12 + } + treasury = 20 + } + } + treasury = 20 + job_spymaster = { + treasury = -20 + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 3 + } + } + } +} + +#Spymaster +character_event = { + id = 69057 + desc = EVTDESC69057 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69057 + opinion = { + modifier = opinion_unappreciated + who = FROM + years = 3 + } + random = { + chance = 25 + + change_intrigue = 1 + } + } +} + +#Incompetence at work: Lord Spiritual +character_event = { + id = 69058 + desc = EVTDESC69058 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + intrigue = 10 + job_spiritual = { + is_female = no + age = 16 + NOT = { + learning = 12 + } + liege = { + ROOT = { + NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } + } + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69058 + ai_chance = { + factor = 10 + } + job_spiritual = { + character_event = { + id = 69059 + tooltip = EVTTOOLTIP69059 + } + } + } + + option = { + name = EVTOPTB69058 + ai_chance = { + factor = 50 + } + job_spiritual = { + character_event = { + id = 69089 + days = 3 + tooltip = EVTTOOLTIP69089 + } + } + } + + option = { + name = EVTOPTC69058 + trigger = { + job_spiritual = { + NOT = { + learning = 12 + } + treasury = 20 + } + } + treasury = 20 + job_spiritual = { + treasury = -20 + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 3 + } + } + } +} + +#Lord Spiritual +character_event = { + id = 69059 + desc = EVTDESC69059 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69059 + opinion = { + modifier = opinion_unappreciated + who = FROM + years = 3 + } + random = { + chance = 25 + + change_learning = 1 + } + } +} + +### LACK OF PIETY ### + +### Lack of Piety: Any Courtier ### +character_event = { + id = 69060 + desc = EVTDESC69060 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + age = 16 + religion_group = christian + NOT = { + has_character_flag = flag_unchristian + } + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + learning = 8 + } + NOT = { + trait = zealous + } + } + } + + immediate = { + set_character_flag = rumour_spreader + random_courtier = { + limit = { + prisoner = no + age = 16 + religion_group = christian + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_unchristian + } + NOT = { + piety = 50 + } + NOT = { + learning = 8 + } + NOT = { + trait = zealous + } + } + save_event_target_as = 69060_target_courtier + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + option = { + name = EVTOPTA69060 + ai_chance = { + factor = 10 + } + event_target:69060_target_courtier = { + character_event = { + id = 69061 + days = 3 + tooltip = EVTTOOLTIP69061 + } + } + } + + option = { + name = EVTOPTB69060 + ai_chance = { + factor = 50 + } + event_target:69060_target_courtier = { + set_character_flag = flag_unchristian + character_event = { + id = 69090 + days = 3 + tooltip = EVTTOOLTIP69090 + } + } + } + + option = { + name = EVTOPTC69060 + ai_chance = { + factor = 40 + } + event_target:69060_target_courtier = { + character_event = { + id = 69062 + days = 3 + tooltip = EVTTOOLTIP69062 + } + } + } +} + +#Lack of Piety: Target is confronted +character_event = { + id = 69061 + desc = EVTDESC69061 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69061 + add_character_modifier = { + name = good_deeds + duration = 730 + } + } + option = { + name = EVTOPTB69061 + set_character_flag = flag_unchristian + piety = -10 + } +} + +#Lack of Piety: Target is blackmailed +character_event = { + id = 69062 + desc = EVTDESC69062 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69062 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69062 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = opinion_unchristian + who = ROOT + years = 3 + } + } + } +} + +#Lack of Piety: Ruler +character_event = { + id = 69063 + desc = EVTDESC69060 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + NOT = { + has_character_flag = flag_unchristian + } + age = 16 + religion_group = christian + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + learning = 8 + } + NOT = { + trait = zealous + } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69060 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + has_character_flag = flag_unchristian + } + age = 16 + religion_group = christian + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + learning = 8 + } + NOT = { + trait = zealous + } + } + character_event = { + id = 69061 + tooltip = EVTTOOLTIP69061 + } + } + } + + option = { + name = EVTOPTB69060 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + has_character_flag = flag_unchristian + } + age = 16 + religion_group = christian + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + piety = 50 + } + NOT = { + learning = 8 + } + NOT = { + trait = zealous + } + } + set_character_flag = flag_unchristian + character_event = { + id = 69090 + days = 3 + tooltip = EVTTOOLTIP69090 + } + } + } +} + +#Dad/Mom, why will you burn in hell? +character_event = { + id = 69064 + desc = EVTDESC69064 + picture = GFX_evt_bishop + + capable_only = yes + prisoner = no + has_character_flag = flag_unchristian + + trigger = { + NOT = { + has_character_modifier = unchristian_timer + } + any_child = { + learning = 3 + age = 5 + NOT = { + age = 15 + } + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69064 + hidden_tooltip = { + add_character_modifier = { + name = unchristian_timer + duration = 90 + hidden = yes + } + } + random = { + chance = 25 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify Cynical + } + } + } + random_child = { + limit = { + learning = 3 + age = 5 + NOT = { + age = 15 + } + } + random = { + chance = 25 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 2 + } + } + } + } + option = { + name = EVTOPTB69064 + clr_character_flag = flag_unchristian + change_learning = 1 + change_intrigue = -1 + } +} + +### Legate from the pope ### +character_event = { + id = 69065 + desc = EVTDESC69065 + picture = GFX_evt_bishop + + only_rulers = yes + capable_only = yes + prisoner = no + has_character_flag = flag_unchristian + religion = catholic + + trigger = { + NOT = { + piety = 100 + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69065 + scaled_wealth = -0.2 + clr_character_flag = flag_unchristian + } + option = { + name = EVTOPTB69065 + piety = -10 + clr_character_flag = flag_unchristian + } + option = { + name = EVTOPTC69065 + prestige = -10 + clr_character_flag = flag_unchristian + } +} + +### Scolded by the Caliph ### +#character_event = { +# id = 69066 +# desc = EVTDESC69066 +# picture = GFX_evt_jerusalem +# +# only_rulers = yes +# capable_only = yes +# prisoner = no +# religion_group = muslim +# has_character_flag = flag_nomuslim +# +# trigger = { +# NOT = { +# piety = 100 +# } +# } +# +# mean_time_to_happen = { +# months = 60 +# } +# +# option = { +# name = EVTOPTA69066 +# ai_chance = { +# factor = 10 +# +# modifier = { +# factor = 5 +# scaled_wealth = 0.5 +# } +# modifier = { +# factor = 0.01 +# NOT = { scaled_wealth = 0.5 } +# } +# } +# piety = 5 +# scaled_wealth = -0.075 +# clr_character_flag = flag_nomuslim +# } +# option = { +# name = EVTOPTB69065 +# piety = -10 +# clr_character_flag = flag_nomuslim +# } +# option = { +# name = EVTOPTC69065 +# prestige = -10 +# clr_character_flag = flag_nomuslim +# } +#} + +### COWARDLINESS ### + +#Cowardliness: Any Courtier +character_event = { + id = 69070 + desc = EVTDESC69070 + picture = GFX_evt_whispers + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + is_ruler = no + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69070 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + is_female = no + age = 16 + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + character_event = { + id = 69071 + days = 3 + tooltip = EVTTOOLTIP69071 + } + } + } + + option = { + name = EVTOPTB69070 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + is_female = no + age = 16 + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + set_character_flag = flag_suspected_coward + character_event = { + id = 69091 + days = 3 + tooltip = EVTTOOLTIP69091 + } + } + } + + option = { + name = EVTOPTC69070 + ai_chance = { + factor = 40 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + is_female = no + age = 16 + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + character_event = { + id = 69072 + days = 3 + tooltip = EVTTOOLTIP69072 + } + } + } +} + +#Cowardliness: Target is confronted +character_event = { + id = 69071 + desc = EVTDESC69071 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69071 + add_character_modifier = { + name = proving_bravery + duration = 1825 + } + } + option = { + name = EVTOPTB69071 + set_character_flag = suspected_coward + FROM = { + opinion = { + modifier = denied_coward_rumour + who = ROOT + years = 3 + } + } + } +} + +#Cowardliness: Target is blackmailed +character_event = { + id = 69072 + desc = EVTDESC69072 + picture = GFX_evt_whispers + + is_triggered_only = yes + + option = { + name = EVTOPTA69072 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + treasury = 50 + } + } + treasury = -50 + FROM = { + treasury = 50 + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + } + option = { + name = EVTOPTB69072 + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + NOT = { + treasury = 50 + } + } + } + opinion = { + modifier = opinion_angry + who = FROM + years = 3 + } + any_courtier = { + limit = { + prisoner = no + NOT = { + character = ROOT + } + } + opinion = { + modifier = suspected_coward_rumour + who = ROOT + years = 3 + } + } + } +} + +#Cowardliness: Ruler +character_event = { + id = 69073 + desc = EVTDESC69070 + picture = GFX_evt_whispers + + min_age = 16 + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + intrigue = 10 + NOT = { + has_character_flag = rumour_spreader + } + any_courtier = { + prisoner = no + is_female = no + age = 16 + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + intrigue = 15 + } + modifier = { + factor = 2 + intrigue = 20 + } + } + + immediate = { + set_character_flag = rumour_spreader + } + + option = { + name = EVTOPTA69070 + ai_chance = { + factor = 10 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + is_female = no + age = 16 + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + character_event = { + id = 69071 + days = 3 + tooltip = EVTTOOLTIP69071 + } + } + } + + option = { + name = EVTOPTB69070 + ai_chance = { + factor = 50 + } + random_courtier = { + limit = { + prisoner = no + NOT = { + reverse_opinion = { who = ROOT value = 50 } + } + NOT = { + has_character_flag = flag_suspected_coward + } + NOT = { + has_character_modifier = proving_bravery + } + NOT = { + has_character_modifier = suspected_coward + } + is_female = no + age = 16 + OR = { + trait = craven + NOT = { + martial = 8 + } + } + NOT = { + trait = brave + } + NOT = { is_inaccessible_trigger = yes } + } + set_character_flag = flag_suspected_coward + character_event = { + id = 69091 + days = 3 + tooltip = EVTTOOLTIP69091 + } + } + } +} + +#You seem to be taking uneccesary risks when practising with the sword +character_event = { + id = 69074 + desc = EVTDESC69074 + picture = GFX_evt_melee + + capable_only = yes + prisoner = no + + trigger = { + has_character_modifier = proving_bravery + trait = craven + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69074 #I need to + random_list = { + 60 = { + } + 30 = { + remove_trait = craven + } + 10 = { + add_trait = wounded + } + } + } + option = { + name = EVTOPTB69074 + prestige = -5 + remove_character_modifier = proving_bravery + } +} + +#Women laugh behind your back +character_event = { + id = 69075 + desc = EVTDESC69075 + picture = GFX_evt_scandal + + capable_only = yes + prisoner = no + has_character_flag = flag_suspected_coward + + trigger = { + has_character_modifier = suspected_coward + NOT = { + trait = craven + } + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69075 #Admit that you are a coward + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + } + prestige = -5 + remove_character_modifier = suspected_coward + clr_character_flag = flag_suspected_coward + } + option = { + name = EVTOPTB69075 + remove_character_modifier = suspected_coward + add_character_modifier = { + name = proving_bravery + duration = 1825 #5 years + } + } +} + +#We have proven our bravery! +character_event = { + id = 69076 + desc = EVTDESC69076 + picture = GFX_evt_melee + + capable_only = yes + prisoner = no + + trigger = { + OR = { + has_character_modifier = suspected_coward + has_character_modifier = proving_bravery + } + trait = brave + } + + mean_time_to_happen = { + months = 60 + } + + option = { + name = EVTOPTA69076 + remove_character_modifier = suspected_coward + remove_character_modifier = proving_bravery + } +} + +#Suspected Sodomite Notification +character_event = { + id = 69080 + desc = EVTDESC69080 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69080 + any_courtier = { + limit = { + prisoner = no + NOT = { + trait = homosexual + } + } + opinion = { + modifier = suspected_sodomite_rumour + who = ROOT + years = 3 + } + } + } +} + +#Suspected Incest Notification +character_event = { + id = 69081 + desc = EVTDESC69081 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69081 + any_courtier = { + limit = { + prisoner = no + NOT = { + sibling = ROOT + } + } + opinion = { + modifier = suspected_of_incest_rumour + who = ROOT + years = 3 + } + } + } +} + +#Suspected Impotence Notification +character_event = { + id = 69082 + desc = EVTDESC69082 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69082 + any_courtier = { + opinion = { + modifier = not_a_real_man + who = ROOT + years = 3 + } + } + } +} + +#Suspected Adultery Notification +character_event = { + id = 69083 + desc = EVTDESC69083 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69083 + any_courtier = { + opinion = { + modifier = committed_adultery_rumour + who = ROOT + years = 3 + } + } + spouse = { + opinion = { + modifier = opinion_mad_as_hell + who = ROOT + years = 3 + } + } + } +} + +#Suspected Occultist Notification +character_event = { + id = 69084 + desc = EVTDESC69084 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69084 + any_courtier = { + opinion = { + modifier = suspected_occultist_rumour + who = ROOT + years = 3 + } + } + } +} + +#Incompetence: Chancellor Notification +character_event = { + id = 69085 + desc = EVTDESC69085 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69085 + any_courtier = { + opinion = { + modifier = opinion_ruler_do_not_trust_him + who = ROOT + years = 5 + } + } + } +} + +#Incompetence: Marshal Notification +character_event = { + id = 69086 + desc = EVTDESC69086 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69086 + any_courtier = { + opinion = { + modifier = opinion_ruler_do_not_trust_him + who = ROOT + years = 5 + } + } + } +} + +#Incompetence: Steward Notification +character_event = { + id = 69087 + desc = EVTDESC69087 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69087 + any_courtier = { + opinion = { + modifier = opinion_ruler_do_not_trust_him + who = ROOT + years = 5 + } + } + } +} + +#Incompetence: Spymaster Notification +character_event = { + id = 69088 + desc = EVTDESC69088 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69088 + any_courtier = { + opinion = { + modifier = opinion_ruler_do_not_trust_him + who = ROOT + years = 5 + } + } + } +} + +#Incompetence: Lord Spiritual Notification +character_event = { + id = 69089 + desc = EVTDESC69089 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69089 + any_courtier = { + opinion = { + modifier = opinion_ruler_do_not_trust_him + who = ROOT + years = 5 + } + } + } +} + +#Lack of Piety Notification +character_event = { + id = 69090 + desc = EVTDESC69090 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69090 + any_courtier = { + opinion = { + modifier = opinion_unchristian + who = ROOT + years = 5 + } + } + } +} + +#Coward Notification +character_event = { + id = 69091 + desc = EVTDESC69091 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA69091 + any_courtier = { + opinion = { + modifier = suspected_coward_rumour + who = PREV + years = 5 + } + } + add_character_modifier = { + name = suspected_coward + duration = 1825 + } + } +} + +### Incompetence at work: Chief Mufti - Muslim ### +#character_event = { +# id = 69095 +# desc = EVTDESC69095 +# picture = GFX_evt_whispers +# +# min_age = 16 +# only_rulers = yes +# capable_only = yes +# prisoner = no +# religion_group = muslim +# +# is_triggered_only = yes +# +# trigger = { +# intrigue = 10 +# job_spiritual = { +# is_female = no +# age = 16 +# NOT = { +# learning = 12 +# } +# liege = { +# ROOT = { +# NOT = { has_opinion_modifier = { who = PREV modifier = opinion_unappreciated } } +# } +# } +# } +# } +# +# weight_multiplier = { +# days = 1 +# +# modifier = { +# factor = 2 +# trait = deceitful +# } +# modifier = { +# factor = 2 +# intrigue = 15 +# } +# modifier = { +# factor = 2 +# intrigue = 20 +# } +# } +# +# option = { +# name = EVTOPTA69058 +# ai_chance = { +# factor = 10 +# } +# job_spiritual = { +# character_event = { +# id = 69096 +# tooltip = EVTTOOLTIP69059 +# } +# } +# } +# +# option = { +# name = EVTOPTB69058 +# ai_chance = { +# factor = 50 +# } +# job_spiritual = { +# character_event = { +# id = 69089 +# days = 3 +# tooltip = EVTTOOLTIP69089 +# } +# } +# } +# +# option = { +# name = EVTOPTC69058 +# trigger = { +# job_spiritual = { +# NOT = { +# learning = 12 +# } +# treasury = 20 +# } +# } +# treasury = 20 +# job_spiritual = { +# treasury = -20 +# opinion = { +# modifier = opinion_money_stolen +# who = ROOT +# years = 3 +# } +# } +# } +#} + +#Chief Mufti +#character_event = { +# id = 69096 +# desc = EVTDESC69096 +# picture = GFX_evt_whispers +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA69059 +# opinion = { +# modifier = opinion_unappreciated +# who = FROM +# years = 3 +# } +# random = { +# chance = 25 +# +# change_learning = 1 +# } +# } +#} + +### Lack of Piety: Any Courtier - Muslim ### +#character_event = { +# id = 69100 +# desc = EVTDESC69100 +# picture = GFX_evt_whispers +# +# min_age = 16 +# capable_only = yes +# prisoner = no +# religion_group = muslim +# +# is_triggered_only = yes +# +# trigger = { +# intrigue = 10 +# is_ruler = no +# NOT = { +# has_character_flag = rumour_spreader +# } +# any_courtier = { +# prisoner = no +# is_female = no +# age = 16 +# religion_group = muslim +# NOT = { +# has_character_flag = flag_nomuslim +# } +# NOT = { +# reverse_opinion = { who = ROOT value = 50 } +# } +# NOT = { +# piety = 50 +# } +# NOT = { +# learning = 8 +# } +# NOT = { +# trait = zealous +# } +# } +# } +# +# immediate = { +# set_character_flag = rumour_spreader +# } +# +# weight_multiplier = { +# days = 1 +# +# modifier = { +# factor = 2 +# trait = deceitful +# } +# modifier = { +# factor = 2 +# intrigue = 15 +# } +# modifier = { +# factor = 2 +# intrigue = 20 +# } +# } +# +# option = { +# name = EVTOPTA69060 +# ai_chance = { +# factor = 10 +# } +# random_courtier = { +# limit = { +# prisoner = no +# age = 16 +# religion_group = muslim +# NOT = { +# reverse_opinion = { who = ROOT value = 50 } +# } +# NOT = { +# has_character_flag = flag_nomuslim +# } +# NOT = { +# piety = 50 +# } +# NOT = { +# learning = 8 +# } +# NOT = { +# trait = zealous +# } +# } +# character_event = { +# id = 69101 +# days = 3 +# tooltip = EVTTOOLTIP69061 +# } +# } +# } +# +# option = { +# name = EVTOPTB69100 +# ai_chance = { +# factor = 50 +# } +# random_courtier = { +# limit = { +# prisoner = no +# is_female = no +# age = 16 +# religion_group = muslim +# NOT = { +# reverse_opinion = { who = ROOT value = 50 } +# } +# NOT = { +# has_character_flag = flag_nomuslim +# } +# NOT = { +# piety = 50 +# } +# NOT = { +# learning = 8 +# } +# NOT = { +# trait = zealous +# } +# } +# set_character_flag = flag_nomuslim +# character_event = { +# id = 69090 +# days = 3 +# tooltip = EVTTOOLTIP69090 +# } +# } +# } +# +# option = { +# name = EVTOPTC69060 +# ai_chance = { +# factor = 40 +# } +# random_courtier = { +# limit = { +# prisoner = no +# age = 16 +# religion_group = muslim +# NOT = { +# reverse_opinion = { who = ROOT value = 50 } +# } +# NOT = { +# has_character_flag = flag_nomuslim +# } +# NOT = { +# piety = 50 +# } +# NOT = { +# learning = 8 +# } +# NOT = { +# trait = zealous +# } +# } +# character_event = { +# id = 69102 +# days = 3 +# tooltip = EVTTOOLTIP69062 +# } +# } +# } +#} + +#Lack of Piety: Target is confronted +#character_event = { +# id = 69101 +# desc = EVTDESC69101 +# picture = GFX_evt_whispers +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA69061 +# add_character_modifier = { +# name = good_deeds +# duration = 730 +# } +# } +# option = { +# name = EVTOPTB69061 +# set_character_flag = flag_nomuslim +# piety = -10 +# } +#} + +#Lack of Piety: Target is blackmailed +#character_event = { +# id = 69102 +# desc = EVTDESC69102 +# picture = GFX_evt_whispers +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA69062 +# ai_chance = { +# factor = 50 +# +# modifier = { +# factor = 2 +# treasury = 50 +# } +# } +# treasury = -50 +# FROM = { +# treasury = 50 +# } +# opinion = { +# modifier = opinion_angry +# who = FROM +# years = 3 +# } +# } +# option = { +# name = EVTOPTB69062 +# ai_chance = { +# factor = 50 +# +# modifier = { +# factor = 2 +# NOT = { +# treasury = 50 +# } +# } +# } +# opinion = { +# modifier = opinion_angry +# who = FROM +# years = 3 +# } +# any_courtier = { +# limit = { +# prisoner = no +# religion_group = muslim +# NOT = { +# character = ROOT +# } +# } +# opinion = { +# modifier = opinion_nomuslim +# who = ROOT +# years = 3 +# } +# } +# } +#} \ No newline at end of file diff --git a/After the End/events/siege_events.txt b/After the End/events/siege_events.txt new file mode 100644 index 000000000..28950e036 --- /dev/null +++ b/After the End/events/siege_events.txt @@ -0,0 +1,1809 @@ +# Siege Events: 62000 - 62299 + +character_event = { + + id = 62000 + desc = EVTDESC62000 + title = EVTNAME62000 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + troops = { + who = troops + value = 0.1 + enemy = yes + } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + martial = 7 + } + } + } + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + martial = 10 + } + } + } + } + } + + immediate = { + siege = { + troops = -0.05 + } + + siege = { + enemy = { + morale = 0.1 + troops = -0.025 + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62030 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62030 } + } + } + } + } + } + + option = { + name = EVTOPTA62000 + + tooltip = { + siege = { + troops = -0.05 + } + + siege = { + enemy = { + morale = 0.1 + troops = -0.025 + } + } + } + } +} + +character_event = { # Other side gets event + id = 62030 + desc = EVTDESC62000 + title = EVTNAME62000 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62000 + custom_tooltip = { text = successful_sally } + } +} + +character_event = { + id = 62001 + desc = EVTDESC62000 + title = EVTNAME62001 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = no + troops = { + who = troops + value = 9 + enemy = yes + } + } + } + + weight_multiplier = { + months = 1 + + modifier = { + factor = 2.5 + trait = wroth + } + + modifier = { + factor = 0.75 + martial = 7 + } + modifier = { + factor = 0.75 + martial = 10 + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + NOT = { martial = 2 } + } + } + } + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + NOT = { martial = 4 } + } + } + } + } + } + + immediate = { + siege = { + morale = 0.1 + troops = -0.025 + } + + siege = { + enemy = { + troops = -0.05 + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62031 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62031 } + } + } + } + } + } + + option = { + name = EVTOPTA62000 + tooltip = { + siege = { + morale = 0.1 + troops = -0.025 + } + + siege = { + enemy = { + troops = -0.05 + } + } + } + } +} + +character_event = { # Other side gets event + id = 62031 + desc = EVTDESC62000 + title = EVTNAME62001 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62000 + custom_tooltip = { text = successful_sally_attacker } + } +} + +character_event = { + id = 62003 + desc = EVTDESC62002 + title = EVTNAME62003 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + troops = { + who = troops + value = 0.1 + enemy = yes + } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 2.5 + trait = patient + } + modifier = { + factor = 0.75 + NOT = { martial = 7 } + } + modifier = { + factor = 0.75 + NOT = { martial = 10 } + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + martial = 2 + } + } + } + } + modifier = { + factor = 1.25 + siege = { + enemy = { + leader = { + martial = 4 + } + } + } + } + } + + immediate = { + siege = { + troops = -0.025 + } + + siege = { + enemy = { + morale = -0.1 + troops = -0.05 + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62033 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62033 } + } + } + } + } + } + + option = { + name = EVTOPTA62002 + tooltip = { + siege = { + troops = -0.025 + } + + siege = { + enemy = { + morale = -0.1 + troops = -0.05 + } + } + } + } +} + +character_event = { # Other side gets event + id = 62033 + desc = EVTDESC62002 + title = EVTNAME62003 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62002 + custom_tooltip = { text = failed_sally } + } +} + +character_event = { + id = 62004 + desc = EVTDESC62004 + title = EVTNAME62004 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = no + troops = { + who = troops + value = 9 + enemy = yes + } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + trait = cruel + } + modifier = { + factor = 0.75 + intrigue = 8 + } + modifier = { + factor = 1.25 + trait = kind + } + modifier = { + factor = 1.25 + NOT = { intrigue = 4 } + } + } + + immediate = { + siege = { + morale = 0.1 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62034 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62034 } + } + } + } + } + } + + option = { + name = EVTOPTA62004 + tooltip = { + siege = { + morale = 0.1 + } + } + } +} + +character_event = { # Other side gets event + id = 62034 + desc = EVTDESC62004 + title = EVTNAME62004 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62034 + custom_tooltip = { text = siege_execute } + } +} + +character_event = { + id = 62005 + desc = EVTDESC62005 + title = EVTNAME62005 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + trait = elusive_shadow + } + modifier = { + factor = 0.75 + intrigue = 8 + } + modifier = { + factor = 1.25 + trait = amateurish_plotter + } + modifier = { + factor = 1.25 + NOT = { intrigue = 4 } + } + } + + immediate = { + siege = { + enemy = { + morale = -0.1 + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62035 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62035 } + } + } + } + } + } + + option = { + name = EVTOPTA62005 + tooltip = { + siege = { + enemy = { + morale = -0.1 + } + } + } + } +} + +character_event = { # Other side gets event + id = 62035 + desc = EVTDESC62005 + title = EVTNAME62005 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62005 + custom_tooltip = { text = siege_treachery } + } +} + +character_event = { + id = 62006 + desc = EVTDESC62006 + title = EVTNAME62006 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + martial = 6 + } + modifier = { + factor = 1.25 + martial = 8 + } + } + + immediate = { + siege = { + troops = -0.05 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62036 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62036 } + } + } + } + } + } + + option = { + name = EVTOPTA62006 + tooltip = { + siege = { + troops = -0.05 + } + } + } +} + +character_event = { # Other side gets event + id = 62036 + desc = EVTDESC62006 + title = EVTNAME62006 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62006 + custom_tooltip = { text = siege_disease } + } +} + +character_event = { + id = 62007 + desc = EVTDESC62007 + title = EVTNAME62007 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = no + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + martial = 6 + } + modifier = { + factor = 1.25 + martial = 8 + } + } + + immediate = { + siege = { + troops = -0.05 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62037 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62037 } + } + } + } + } + } + + option = { + name = EVTOPTA62007 + tooltip = { + siege = { + troops = -0.05 + } + } + } +} + +character_event = { # Other side gets event + id = 62037 + desc = EVTDESC62007 + title = EVTNAME62007 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62007 + custom_tooltip = { text = siege_hunger } + } +} + +character_event = { + id = 62008 + desc = EVTDESC62008 + title = EVTNAME62008 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + trigger = { + siege = { + is_attacker = no + } + } + + notification = yes + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + diplomacy = 6 + } + modifier = { + factor = 0.75 + trait = grey_eminence + } + modifier = { + factor = 1.25 + NOT = { diplomacy = 2 } + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + } + + immediate = { + siege = { + morale = 0.1 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62038 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62038 } + } + } + } + } + } + + option = { + name = EVTOPTA62008 + tooltip = { + siege = { + morale = 0.1 + } + } + } +} + +character_event = { # Other side gets event + id = 62038 + desc = EVTDESC62008 + title = EVTNAME62008 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62008 + custom_tooltip = { text = siege_trader } + } +} + +character_event = { + id = 62009 + desc = EVTDESC62009 + title = EVTNAME62009 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + } + location = { + NOT = { + OR = { + province_id = 323 + province_id = 328 + province_id = 330 + } + } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + martial = 6 + } + modifier = { + factor = 1.25 + martial = 8 + } + } + + immediate = { + siege = { + troops = -0.01 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62039 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62039 } + } + } + } + } + } + + option = { + name = EVTOPTA62009 + tooltip = { + siege = { + troops = -0.01 + } + } + } +} + +character_event = { # Other side gets event + id = 62039 + desc = EVTDESC62009 + title = EVTNAME62009 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62039 + custom_tooltip = { text = siege_raiders } + } +} + +character_event = { + id = 62010 + desc = EVTDESC62010 + title = EVTNAME62010 + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + trigger = { + siege = { + is_attacker = yes + } + location = { + OR = { + province_id = 323 + province_id = 328 + province_id = 330 + } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + NOT = { martial = 2 } + } + modifier = { + factor = 0.75 + NOT = { martial = 4 } + } + modifier = { + factor = 1.25 + martial = 6 + } + modifier = { + factor = 1.25 + martial = 8 + } + } + + immediate = { + siege = { + troops = -0.01 + } + siege = { + enemy = { + leader = { + any_liege = { + limit = { + war_with = ROOT + NOT = { + ROOT = { + liege = { has_landed_title = e_rebels } + } + } + } + character_event = { id = 62040 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62040 } + } + } + } + } + } + + option = { + name = EVTOPTA62010 + tooltip = { + siege = { + troops = -0.01 + } + } + } +} + +character_event = { # Other side gets event + id = 62040 + desc = EVTDESC62040 + title = EVTNAME62010 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62010 + custom_tooltip = { text = siege_raiders } + } +} + +narrative_event = { + id = 62011 + desc = EVTDESC62011 + title = EVTNAME62011 + picture = GFX_evt_siege + border = GFX_event_narrative_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = no + } + religion_group = christian + enemy = { + religion_group = pagan_group + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 0.75 + trait = zealous + } + modifier = { + factor = 0.75 + piety = 500 + } + modifier = { + factor = 1.25 + trait = cynical + } + modifier = { + factor = 1.25 + NOT = { piety = 0 } + } + } + + immediate = { + siege = { + morale = 1 + } + siege = { + enemy = { + morale = -0.9 + troops = -0.9 + leader = { + any_liege = { + limit = { + war_with = ROOT + } + narrative_event = { id = 62041 } + } + if = { + limit = { + war_with = ROOT + } + narrative_event = { id = 62041 } + } + } + } + } + } + + option = { + name = EVTOPTA62011 + tooltip = { + siege = { + morale = 1 + } + siege = { + enemy = { + morale = -0.9 + troops = -0.9 + } + } + } + } +} + +narrative_event = { # Other side gets event + id = 62041 + desc = EVTDESC62011 + title = EVTNAME62041 + + picture = GFX_evt_siege + border = GFX_event_narrative_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62041 + custom_tooltip = { text = siege_miracle } + } +} + +#narrative_event = { # Text refers to Muslim besiegers, could add it back and refluff as Americanist or whatever +# id = 62012 +# desc = EVTDESC62012 +# title = EVTNAME62011 +# picture = GFX_evt_siege +# border = GFX_event_narrative_frame_war +# +# is_triggered_only = yes +# +# notification = yes +# +# trigger = { +# siege = { +# is_attacker = no +# } +# religion_group = christian +# enemy = { +# religion_group = muslim +# } +# } +# +# weight_multiplier = { +# months = 1 +# modifier = { +# factor = 0.75 +# trait = zealous +# } +# modifier = { +# factor = 0.75 +# piety = 500 +# } +# modifier = { +# factor = 1.25 +# trait = cynical +# } +# modifier = { +# factor = 1.25 +# NOT = { piety = 0 } +# } +# } +# +# immediate = { +# siege = { +# morale = 1 +# } +# siege = { +# enemy = { +# morale = -0.9 +# troops = -0.9 +# leader = { +# any_liege = { +# limit = { +# war_with = ROOT +# } +# narrative_event = { id = 62042 } +# } +# if = { +# limit = { +# war_with = ROOT +# } +# narrative_event = { id = 62042 } +# } +# } +# } +# } +# } +# +# option = { +# name = EVTOPTA62012 +# tooltip = { +# siege = { +# morale = 1 +# } +# siege = { +# enemy = { +# morale = -0.9 +# troops = -0.9 +# } +# } +# } +# } +#} + +narrative_event = { # Other side gets event + id = 62042 + desc = EVTDESC62012 + title = EVTNAME62041 + + picture = GFX_evt_siege + border = GFX_event_narrative_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62041 + custom_tooltip = { text = siege_miracle } + } +} + +#Miracle +#narrative_event = { +# id = 62013 +# desc = EVTDESC62013 +# title = EVTNAME62011 +# picture = GFX_evt_siege +# border = GFX_event_narrative_frame_war +# +# is_triggered_only = yes +# +# notification = yes +# +# trigger = { +# siege = { +# is_attacker = no +# } +# religion_group = muslim +# enemy = { +# NOT = { religion_group = muslim } +# } +# } +# +# weight_multiplier = { +# months = 1 +# modifier = { +# factor = 0.75 +# trait = zealous +# } +# modifier = { +# factor = 0.75 +# piety = 500 +# } +# modifier = { +# factor = 1.25 +# trait = cynical +# } +# modifier = { +# factor = 1.25 +# NOT = { piety = 0 } +# } +# } +# +# immediate = { +# siege = { +# morale = 1 +# } +# siege = { +# enemy = { +# morale = -0.9 +# troops = -0.9 +# leader = { +# any_liege = { +# limit = { +# war_with = ROOT +# } +# narrative_event = { id = 62043 } +# } +# if = { +# limit = { +# war_with = ROOT +# } +# narrative_event = { id = 62043 } +# } +# } +# } +# } +# } +# +# option = { +# name = EVTOPTA62013 +# tooltip = { +# siege = { +# morale = 1 +# } +# siege = { +# enemy = { +# morale = -0.9 +# troops = -0.9 +# } +# } +# } +# } +#} + +narrative_event = { # Other side gets event + id = 62043 + desc = EVTDESC62013 + title = EVTNAME62041 + + picture = GFX_evt_siege + border = GFX_event_narrative_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62041 + custom_tooltip = { text = siege_miracle } + } +} + +#Assault +character_event = { + id = 62014 + desc = EVTDESC62014 + title = EVTNAME62014 + picture = GFX_evt_crusaders + border = GFX_event_normal_frame_religion + + religion_group = christian + + is_triggered_only = yes + + notification = yes + + trigger = { + siege = { + is_attacker = yes + } + NOT = { trait = craven } + NOT = { trait = cynical } + can_be_maimed_trigger = yes + NOT = { trait = wounded } + enemy = { + NOT = { religion_group = christian } + } + } + + weight_multiplier = { + months = 1 + modifier = { + factor = 2.0 + trait = zealous + } + modifier = { + factor = 2.0 + trait = brave + } + } + + immediate = { + siege = { + enemy = { + morale = -0.1 + leader = { + any_liege = { + limit = { + war_with = ROOT + } + character_event = { id = 62044 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62044 } + } + } + } + } + random_list = { + 80 = {add_trait = crusader } + 10 = { add_maimed_trait_effect = yes } + 10 = { add_trait = wounded hidden_tooltip = { character_event = { id = 38280 } } } + } + } + + option = { + name = EVTOPTA62014 + + tooltip = { + siege = { + enemy = { + morale = -0.1 + } + } + random_list = { + 80 = {add_trait = crusader } + 10 = { add_maimed_trait_effect = yes } + 10 = { add_trait = wounded hidden_tooltip = { character_event = { id = 38280 } } } + } + } + } +} + +character_event = { # Other side gets event + id = 62044 + desc = EVTDESC62044 + title = EVTNAME62044 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62044 + custom_tooltip = { text = siege_treachery } + } +} + +#Ill, pneumonic, leper or syphilitic +character_event = { + id = 62015 + desc = EVTDESC62015 + title = EVTNAME62015 + picture = GFX_evt_crusaders + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + trigger = { + is_ill = yes + NOT = { + trait = craven + } + } + + weight_multiplier = { + days = 1 + } + + option = { + name = EVTOPTA62015 + siege = { + troops = -0.1 + } + siege = { + enemy = { + morale = -0.2 + troops = -0.2 + leader = { + any_liege = { + limit = { + war_with = ROOT + } + character_event = { id = 62045 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62045 } + } + } + } + } + random_list = { + 60 = { + add_maimed_trait_effect = yes + prestige = 50 + } + 40 = { + death = { + death_reason = death_battle + killer = FROM + } + } + } + } + option = { + name = EVTOPTB62015 + siege = { + troops = -0.15 + } + siege = { + enemy = { + morale = -0.05 + troops = -0.05 + leader = { + any_liege = { + limit = { + war_with = ROOT + } + character_event = { id = 62046 } + } + if = { + limit = { + war_with = ROOT + } + character_event = { id = 62046 } + } + } + } + } + if = { + limit = { NOR = { trait = craven trait = berserker } } + random = { + chance = 50 + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + prestige = -50 + } +} + +character_event = { # Other side gets event + id = 62045 + desc = EVTDESC62045 + title = EVTNAME62044 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62045 + custom_tooltip = { text = siege_assault } + } +} + +character_event = { # Other side gets event + id = 62046 + desc = EVTDESC62045 + title = EVTNAME62044 + + picture = GFX_evt_siege + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + trigger = { + ai = no + } + + option = { + name = EVTOPTA62045 + custom_tooltip = { text = siege_hide } + } +} + +# Imprisoned by the winner. Fired from 'on_siege_over_loc_chars'. +# Siege winner unit owner in the 'new_character' scope, lost holding title in FROM, local character in ROOT. +character_event = { + id = 62100 + picture = GFX_evt_siege + + desc = EVTDESC62100 + + is_triggered_only = yes + + trigger = { + new_character = { + NOT = { has_landed_title = e_rebels } + rebel = no + NOT = { # Handled by SSI.61 + OR = { + has_landed_title = e_mexikha + any_liege = { + has_landed_title = e_mexikha + } + } + } + } + + OR = { + is_ruler = yes + AND = { + is_female = yes + NOT = { age = 40 } + } + + host = { + OR = { + is_close_relative = ROOT + any_spouse = { + character = ROOT + } + any_consort = { + character = ROOT + } + } + } + new_character = { + ROOT = { + prisoner = yes + employer = { + character = PREVPREV + } + } + } + + AND = { + new_character = { + ROOT = { + host = { + top_liege = { + war_with = PREVPREVPREV + } + } + } + } + + host = { + top_liege = { + is_close_relative = ROOT + } + } + } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 2 + is_female = yes + new_character = { + OR = { + religion_group = pagan_group + religion_group = zoroastrian_group + } + } + } + modifier = { + factor = 4 # Free prisoner + new_character = { + ROOT = { + prisoner = yes + employer = { + character = PREVPREV + } + } + } + } + } + + option = { + name = EVTOPTA62100 + trigger = { + center_flank_leader = { + mercenary = no + } + } + new_character = { + ROOT = { + imprison = PREV + } + } + hidden_tooltip = { + new_character = { + character_event = { id = 62101 } + } + } + } + + option = { + name = EVTOPTA62100 + trigger = { + center_flank_leader = { + mercenary = yes + } + } + center_flank_leader = { + ROOT = { + imprison = PREV + } + } + } +} + +# Jailor informed +character_event = { + id = 62101 + picture = GFX_evt_siege + desc = EVTDESC62101 + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + notification = yes + + ai = no + + option = { + name = EVTOPTA62101 + tooltip = { + FROM = { + imprison = yes + } + } + } +} diff --git a/After the End/events/traits_effects_events.txt b/After the End/events/traits_effects_events.txt new file mode 100644 index 000000000..0fa3df187 --- /dev/null +++ b/After the End/events/traits_effects_events.txt @@ -0,0 +1,21123 @@ +########################################### +# +# Events for Personality Traits Effects +# +# ID 3000-3999 is reserved +# +########################################### +# +# Written by Sara Wendel-örtqvist +# Revisions by Johan Andersson + +### Lustful positive ### +character_event = { + id = 3000 + desc = EVTDESC3000 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = lustful + in_command = no + NOT = { + has_job_title = job_spiritual + } + any_courtier = { + age = 16 + prisoner = no + has_job_title = job_spiritual + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = gluttonous + } + modifier = { + factor = 0.75 + trait = greedy + } + + modifier = { + factor = 4.0 + trait = temperate + } + modifier = { + factor = 3.0 + trait = charitable + } + } + + option = { + name = EVTOPTB3000 + piety = 10 + remove_trait = lustful + job_spiritual = { + opinion = { + modifier = opinion_approves + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTA3000 + piety = -5 + random = { + chance = 15 + add_trait = deceitful + hidden_tooltip = { + character_event = { id = 38255 } + } + } + job_spiritual = { + opinion = { + modifier = opinion_lying_about_confession + who = ROOT + years = 5 + } + } + } +} + +### Lustful negative ### +character_event = { + id = 3001 + desc = EVTDESC3001 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = lustful + in_command = no + OR = { + any_courtier = { + age = 16 + in_command = no + trait = lustful + opinion = { who = ROOT value = 50 } + } + spouse = { + is_alive = yes + is_abroad = no + NOT = { + trait = lustful + } + } + } + } + + weight_multiplier = { + factor = 1 + + + modifier = { + factor = 3.0 + trait = greedy + } + modifier = { + factor = 3.0 + trait = envious + } + + + modifier = { + factor = 0.4 + trait = charitable + } + + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3001 + scaled_wealth = -0.10 + } +} + +### Lustful positive ### +character_event = { + id = 3005 + desc = EVTDESC3005 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = lustful + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = wounded + trait = craven + } + any_courtier = { + is_female = yes + age = 16 + prisoner = no + NOR = { + age = 35 + trait = ugly + is_close_relative = ROOT + trait = incapable + is_inaccessible_trigger = yes + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = wroth + } + modifier = { + factor = 0.75 + trait = proud + } + + modifier = { + factor = 3.0 + trait = patient + } + modifier = { + factor = 4.0 + trait = humble + } + } + + option = { + name = EVTOPTA3005 + trigger = { + is_married = no + } + prestige = 15 + random_courtier = { + limit = { + age = 16 + is_female = yes + prisoner = no + NOR = { + is_close_relative = ROOT + age = 35 + trait = ugly + trait = incapable + is_inaccessible_trigger = yes + } + } + opinion = { + modifier = opinion_tourney_boost + who = ROOT + years = 5 + } + } + + random = { + chance = 10 + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + } + option = { + name = EVTOPTB3005 + trigger = { + is_married = yes + } + prestige = 15 + spouse = { + opinion = { + modifier = opinion_tourney_boost + who = ROOT + years = 5 + } + } + random = { + chance = 10 + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + } + option = { + name = EVTOPTC3005 + prestige = -5 + if = { + limit = { NOT = { trait = berserker } } + random = { + chance = 10 + add_trait = craven + hidden_tooltip = { character_event = { id = 38257 } } + } + } + } +} + +### Lustful negative ### +character_event = { + id = 3010 + desc = EVTDESC3010 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = lustful + in_command = no + NOT = { has_job_title = job_spiritual } + any_courtier = { + has_job_title = job_spiritual + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 0.3 + trait = diligent + } + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3010 + piety = -15 + job_spiritual = { + prestige = 15 + } + } +} + +### Lustful negative ### +character_event = { + id = 3011 + desc = EVTDESC3011 + picture = GFX_evt_brothel + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = lustful + has_job_title = job_spiritual + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + + + modifier = { + factor = 0.3 + trait = diligent + } + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3011 + piety = -15 + } +} + +### CHASTE ### + +### Chaste positive ### +character_event = { + id = 3020 + desc = EVTDESC3020 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion = catholic + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = chaste + NOR = { + has_landed_title = k_papal_state + trait = excommunicated + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.2 + trait = slothful + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 3.0 + trait = diligent + } + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 2.5 + NOT = { num_of_children = 1 } + } + } + + option = { + name = EVTOPTA3020 + trigger = { + religion_group = christian + NOT = { + lifestyle_traits = 1 + } + is_married = yes + } + ai_chance = { + factor = 0 + } + piety = 20 + add_trait = celibate + } + option = { + name = EVTOPTB3020 + tooltip_info = cynical + trigger = { + trait = cynical + } + remove_trait = chaste + piety = -5 + } + + option = { + name = EVTOPTC3020 + any_courtier = { + limit = { + age = 16 + in_command = no + OR = { + trait = lustful + trait = hedonist + } + } + opinion = { + modifier = opinion_despise_chaste + who = ROOT + years = 1 + } + } + piety = 10 + prestige = 5 + } + option = { + name = EVTOPTD3020 + piety = 5 + } +} + +### Chaste Positive (create character) ### +character_event = { + id = 3021 + desc = EVTDESC3021 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion = catholic + ai = no + war = no + + is_triggered_only = yes + + trigger = { + trait = chaste + in_command = no + NOR = { + trait = excommunicated + trait = cynical + } + piety = 25 + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.2 + trait = slothful + } + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 1.5 + trait = crusader + } + modifier = { + factor = 2.0 + trait = diligent + } + modifier = { + factor = 1.5 + trait = zealous + } + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 2.5 + trait = humble + } + } + + option = { + name = EVTOPTA3021 + create_character = { + learning = 9 + dynasty = random + age = 55 + is_female = no + trait = chaste + trait = zealous + trait = celibate + trait = mastermind_theologian + } + } + option = { + name = EVTOPTB3021 + piety = 5 + } +} + +### Old scholar ### +character_event = { + id = 3022 + desc = EVTDESC3022 + picture = GFX_evt_monk + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + max_age = 25 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + NOT = { trait = excommunicated } + any_courtier = { + learning = 9 + age = 55 + is_female = no + trait = chaste + trait = zealous + trait = celibate + } + trait = chaste + } + weight_multiplier = { + factor = 1 + modifier = { + factor = 4.0 + trait = zealous + } + } + option = { + name = EVTOPTA3022 + change_learning = 1 + add_character_modifier = { + name = chaste_learning + duration = 365 + } + } + option = { + name = EVTOPTB3022 + any_courtier = { + limit = { + learning = 9 + age = 55 + is_female = no + trait = chaste + trait = zealous + trait = celibate + } + opinion = { + modifier = opinion_chaste_advice_refused + who = ROOT + years = 2 + } + } + remove_trait = chaste + } +} + +### Chaste positive ### +character_event = { + id = 3025 + desc = EVTDESC3025 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = chaste + any_courtier = { + is_female = yes + age = 18 + is_married = no + NOT = { is_close_relative = ROOT } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = wroth + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 4.0 + trait = patient + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3025 + random_courtier = { + limit = { + is_female = yes + age = 16 + is_married = no + NOT = { is_close_relative = ROOT } + } + opinion = { + modifier = opinion_admire_chaste + who = ROOT + years = 15 + } + } + prestige = 5 + } + option = { + name = EVTOPTB3025 + random_courtier = { + limit = { + is_female = yes + age = 16 + is_married = no + NOT = { is_close_relative = ROOT } + } + opinion = { + modifier = opinion_admire_chaste + who = ROOT + years = 15 + } + } + piety = 5 + } +} + +### Cornered by woman ### +character_event = { + id = 3026 + desc = EVTDESC3026 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = chaste + in_command = no + NOR = { + trait = celibate + trait = homosexual + } + fertility = 0.4 + any_courtier = { + is_female = yes + age = 18 + is_pregnant = no + NOR = { + trait = celibate + age = 35 + trait = homosexual + is_close_relative = ROOT + } + has_opinion_modifier = { who = ROOT modifier = opinion_admire_chaste } + } + } + + immediate = { + random_courtier = { + limit = { + is_female = yes + age = 18 + is_pregnant = no + NOR = { + trait = celibate + age = 35 + trait = homosexual + is_close_relative = ROOT + } + has_opinion_modifier = { who = ROOT modifier = opinion_admire_chaste } + } + save_event_target_as = lovely_lady + } + } + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = wroth + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 4.0 + trait = patient + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3026 + event_target:lovely_lady = { + impregnate_cuckoo = ROOT + } + add_trait = stressed + } + + option = { + name = EVTOPTB3026 + event_target:lovely_lady = { + remove_opinion = { who = ROOT modifier = opinion_admire_chaste } + } + prestige = -5 + add_trait = wroth + } + +} + +### Chaste negative ### +character_event = { + id = 3030 + desc = EVTDESC3030 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + only_men = yes + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = chaste + num_of_rivals = 1 + has_nickname = no + NOR = { + prestige = 200 + has_nickname = nick_the_effeminate + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = deceitful + } + + modifier = { + factor = 0.5 + trait = honest + } + } + + option = { + name = EVTOPTA3030 + random_rival = { + prestige = 10 + } + give_nickname = nick_the_effeminate + prestige = -5 + } +} + +### Chaste negative ### +character_event = { + id = 3035 + desc = EVTDESC3035 + picture = GFX_evt_scandal + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + only_men = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = chaste + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + tier = baron + tier = count + tier = duke + tier = king + tier = emperor + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 5.0 + trait = proud + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.5 + trait = humble + } + + modifier = { + factor = 4.0 + trait = weak + } + modifier = { + factor = 5.0 + trait = poet + } + modifier = { + factor = 4.0 + trait = scholar + } + modifier = { + factor = 5.0 + trait = mystic + } + } + + option = { + name = EVTOPTB3035 + trigger = { + is_married = no + } + random = { + chance = 25 + add_trait = lustful + hidden_tooltip = { character_event = { id = 38272 } } + } + random_courtier = { + limit = { + is_female = yes + age = 16 + NOR = { + age = 35 + is_close_relative = ROOT + } + } + add_trait = lustful + hidden_tooltip = { character_event = { id = 38272 } } + opinion = { + modifier = opinion_infatuated + who = ROOT + years = 3 + } + } + } + + option = { + name = EVTOPTC3035 + trigger = { + is_married = yes + } + random = { + chance = 5 + remove_trait = chaste + } + spouse = { add_trait = lustful hidden_tooltip = { character_event = { id = 38272 } } } + } + + option = { + name = EVTOPTA3035 + scaled_wealth = -0.25 + prestige = -15 + random = { + chance = 25 + ROOT = { + remove_trait = chaste + } + } + } +} + +### TEMPERATE ### + +### Judge between knights ### +character_event = { + id = 3012 + desc = EVTDESC3012 + picture = GFX_evt_melee + border = GFX_event_normal_frame_economy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = temperate + in_command = no + any_courtier = { + martial = 8 + age = 16 + is_female = no + prisoner = no + religion_group = christian + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3012 + ai_chance = { + factor = 5 + modifier = { + factor = 0 + trait = greedy + } + modifier = { + factor = 0.1 + NOT = { wealth = 25 } + } + } + + random_courtier = { + limit = { + martial = 8 + age = 16 + is_female = no + prisoner = no + religion_group = christian + } + opinion = { + modifier = temperate_good_judgement + who = ROOT + years = 2 + } + + } + if = { + limit = { + trait = just + } + prestige = 5 + } + wealth = -20 + } + option = { + name = EVTOPTB3012 + trigger = { + religion_group = christian + } + ai_chance = { + factor = 1 + modifier = { + factor = 0 + trait = cynical + } + } + add_character_modifier = { + name = defer_to_church_decision + duration = 365 + } + } + option = { + name = EVTOPTC3012 + ai_chance = { + factor = 0 + } + wealth = 50 + remove_trait = temperate + add_trait = greedy + if = { + limit = { + trait = just + } + remove_trait = just + } + random_courtier = { + limit = { + martial = 8 + age = 16 + is_female = no + prisoner = no + religion_group = christian + } + opinion = { + modifier = temperate_bad_judgement + who = ROOT + years = 2 + } + + } + } +} + +### Sinful feast ### +character_event = { + id = 3013 + desc = EVTDESC3013 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = temperate + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_vassal = { + tier = baron + trait = gluttonous + is_female = no + } + } + + option = { + name = EVTOPTA3013 + random_vassal = { + limit = { + tier = baron + trait = gluttonous + is_female = no + } + opinion = { + modifier = temperate_annoyer + who = ROOT + years = 2 + } + } + prestige = -5 + } + option = { + name = EVTOPTB3013 + piety = -5 + } +} + +### GLUTTONOUS ### +character_event = { + id = 3040 + desc = EVTDESC3040 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gluttonous + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = charitable + trait = gregarious + stewardship = 8 + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.2 + trait = slothful + } + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 3.0 + trait = diligent + } + } + + option = { + name = EVTOPTB3040 + trigger = { + NOT = { personality_traits = 5 } + } + add_trait = greedy + } + option = { + name = EVTOPTA3040 + scaled_wealth = -0.05 + random_courtier = { + limit = { + age = 16 + NOT = { + trait = incapable + } + prisoner = no + } + opinion = { + modifier = opinion_enjoyed_feast + who = ROOT + years = 5 + } + } + } +} + +### Gluttonous: Start ### +character_event = { + id = 3045 + desc = EVTDESC3045 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gluttonous + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + in_command = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + trait = temperate + } + OR = { + trait = gregarious + trait = gluttonous + trait = trusting + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = gluttonous + } + + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3045 + random_courtier = { + limit = { + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + trait = temperate + } + OR = { + trait = gregarious + trait = gluttonous + trait = trusting + } + } + character_event = { + id = 3046 + days = 5 + tooltip = EVTTOOLTIP3046 + } + } + } +} + +#Gluttonous: Courtier +character_event = { + id = 3046 + desc = EVTDESC3046 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA3046 + FROM = { + opinion = { + modifier = gluttonous_pos + who = ROOT + years = 5 + } + character_event = { + id = 3047 + days = 5 + tooltip = EVTTOOLTIP3047 + } + } + } +} + +#New friend +character_event = { + id = 3047 + desc = EVTDESC3047 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA3047 + + FROM = { + opinion = { + modifier = gluttonous_pos + who = ROOT + years = 5 + } + } + } +} + +### Gluttonous negative ### +character_event = { + id = 3050 + desc = EVTDESC3050 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 40 + capable_only = yes + prisoner = no + only_men = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = gluttonous + health = 3 + OR = { + trait = greedy + trait = slothful + } + martial = 5 + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.4 + trait = patient + } + } + + option = { + name = EVTOPTA3050 + health = -2 + change_martial = -2 + } +} + +### Gluttonous negative: Start ### +character_event = { + id = 3055 + desc = EVTDESC3055 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = gluttonous + any_courtier = { + age = 16 + in_command = no + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = temperate + trait = honest + NAND = { + trait = hedonist + trait = content + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = greedy + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3055 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = temperate + trait = honest + NAND = { + trait = hedonist + trait = content + } + } + } + character_event = { + id = 3056 + tooltip = EVTTOOLTIP3056 + } + } + } +} + +#Gluttonous negative +character_event = { + id = 3056 + desc = EVTDESC3056 + picture = GFX_evt_feast + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA3056 + FROM = { + reverse_opinion = { + modifier = gluttonous_neg + who = ROOT + years = 5 + } + character_event = { + id = 3057 + tooltip = EVTTOOLTIP3057 + } + } + } +} + +#Gluttonous negative +character_event = { + id = 3057 + desc = EVTDESC3057 + picture = GFX_evt_bad_news + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA3057 + FROM = { + opinion = { + modifier = gluttonous_neg + who = ROOT + years = 5 + } + } + } +} + +####################################### +# Greedy +####################################### +character_event = { + id = 3060 + desc = EVTDESC3060 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_economy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = greedy + treasury = 100 + OR = { + trait = wroth + has_nickname = nick_the_cruel + trait = deceitful + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 4.0 + trait = patient + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3060 + scaled_wealth = 0.05 + prestige = -5 + } + option = { + name = EVTOPTB3060 + trigger = { + any_courtier = { + age = 16 + NOR = { + is_close_relative = ROOT + demesne_size = 1 + } + } + } + scaled_wealth = 0.10 + random_courtier = { + limit = { + age = 16 + NOR = { + is_close_relative = ROOT + demesne_size = 1 + } + } + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 5 + } + } + } +} + +### Greedy ### +character_event = { + id = 3065 + desc = EVTDESC3065 + picture = GFX_evt_lunatic + border = GFX_event_normal_frame_economy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = greedy + in_command = no + any_courtier = { + age = 16 + in_command = no + reverse_opinion = { who = ROOT value = 25 } + NOR = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_betrayed } + trait = slow + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3065 + random_courtier = { + limit = { + age = 16 + in_command = no + reverse_opinion = { who = ROOT value = 25 } + NOR = { + reverse_has_opinion_modifier = { who = ROOT modifier = opinion_betrayed } + trait = slow + } + } + opinion = { + modifier = opinion_betrayed + who = ROOT + years = 5 + } + scaled_wealth = 0.10 + } + } +} + +### Greedy negative: Start ### +character_event = { + id = 3070 + desc = EVTDESC3070 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_economy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = greedy + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = craven + } + any_courtier = { + age = 20 + prisoner = no + NOR = { + age = 70 + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = proud + } + + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3070 + ai_chance = { + factor = 99 + } + random_courtier = { + limit = { + age = 20 + prisoner = no + NOR = { + age = 70 + character = ROOT + trait = incapable + } + } + character_event = { + id = 3071 + tooltip = EVTTOOLTIP3071 + } + } + } + option = { + name = EVTOPTB3070 + ai_chance = { + factor = 1 + } + if = { + limit = { + NOT = { + trait = content + } + } + add_trait = content + } + if = { + limit = { + trait = content + NOT = { + trait = slothful + } + } + add_trait = slothful + } + if = { + limit = { + trait = content + trait = slothful + } + prestige = -15 + } + } +} + +#Greedy negative: Courtier +character_event = { + id = 3071 + desc = EVTDESC3071 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA3071 + FROM = { + reverse_opinion = { + modifier = greedy_neg + who = ROOT + years = 2 + } + character_event = { + id = 3072 + tooltip = EVTTOOLTIP3072 + } + } + } +} + +#Greedy negative: ROOT +character_event = { + id = 3072 + desc = EVTDESC3072 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA3072 + scaled_wealth = 0.10 + FROM = { + opinion = { + modifier = greedy_neg + who = ROOT + years = 2 + } + } + } +} + +### Greedy negative ### +character_event = { + id = 3075 + desc = EVTDESC3075 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_economy + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = greedy + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = wroth + trait = gluttonous + NOT = { + trait = kind + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.4 + trait = patient + } + } + + option = { + name = EVTOPTB3075 + random_list = { + 50 = { + scaled_wealth = 0.05 + } + 50 = { + piety = -30 + scaled_wealth = -0.02 + } + } + } + option = { + name = EVTOPTA3075 + piety = -15 + } +} + +### Charitable ### +character_event = { + id = 3080 + desc = EVTDESC3080 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = charitable + NOT = { is_inaccessible_trigger = yes } + OR = { + any_courtier = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + AND = { + is_ruler = yes + any_vassal = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = gregarious + + } + } + option = { + name = EVTOPTA3080 + trigger = { + any_courtier = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + } + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + opinion = { who = ROOT modifier = charitable_to_you } + } + } + option = { + name = EVTOPTB3080 + trigger = { + is_ruler = yes + any_vassal = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + } + random_vassal = { + limit = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + opinion = { who = ROOT value = 0 } + } + } + opinion = { who = ROOT modifier = charitable_to_you } + } + } +} + +### Caring for sick and infirm ### +character_event = { + id = 3081 + desc = EVTDESC3081 + picture = GFX_evt_illness + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = charitable + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + prisoner = no + OR = { + is_ill = yes + health_traits = 1 + } + NOR = { + is_inaccessible_trigger = yes + trait = incapable + has_opinion_modifier = { + who = ROOT + modifier = charitable_to_you + } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.05 + trait = slothful + } + } + + immediate = { + random_courtier = { + limit = { + prisoner = no + OR = { + is_ill = yes + health_traits = 1 + } + NOR = { + is_inaccessible_trigger = yes + trait = incapable + has_opinion_modifier = { + who = ROOT + modifier = charitable_to_you + } + } + } + save_event_target_as = ill_courtier + } + } + option = { + name = EVTOPTA3081 + event_target:ill_courtier = { + opinion = { who = ROOT modifier = charitable_to_you } + } + } + option = { + name = EVTOPTB3081 + trigger = { + NOR = { + trait = proud + personality_traits = 6 + } + } + opinion = { who = ROOT modifier = charitable_to_you } + add_trait = humble + piety = 10 + event_target:ill_courtier = { + opinion = { who = ROOT modifier = charitable_to_you } + } + } +} + +### Harbour the homeless ### +character_event = { + id = 3082 + desc = EVTDESC3082 + picture = GFX_evt_burning_house + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + trait = charitable + } + + weight_multiplier = { + factor = 1 + } + option = { + name = EVTOPTA3082 + ai_chance = { + factor = 1 + modifier = { + factor = 0 + OR = { + trait = cruel + trait = wroth + trait = slothful + } + } + modifier = { + factor = 1000 + OR = { + trait = zealous + trait = just + trait = kind + trait = trusting + } + } + } + random_demesne_province = { + add_province_modifier = { + name = harbour_the_homeless + duration = 365 + } + } + } + option = { + name = EVTOPTB3082 + piety = -10 + } +} + +### Love the sinner ### +character_event = { + id = 3083 + desc = EVTDESC3083 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + trait = charitable + trait = shy + any_courtier = { + age = 16 + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + } + } + + weight_multiplier = { + factor = 1 + } + option = { + name = EVTOPTA3083 + random_courtier = { + limit = { + age = 16 + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + } + opinion = { + modifier = charitable_neg + who = ROOT + years = 2 + } + } + + } + option = { + name = EVTOPTB3083 + piety = -10 + } +} + +### Thomas of Aquinas ### +character_event = { + id = 3084 + desc = EVTDESC3084 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + year = 1256 + trait = charitable + OR = { + any_courtier = { + NOT = { opinion = { who = ROOT value = -50 } } + } + AND = { + is_ruler = yes + any_vassal = { + NOT = { opinion = { who = ROOT value = -50 } } + } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2.0 + trait = patient + } + } + + option = { + name = EVTOPTA3084 + prestige = 5 + piety = 5 + } +} + +### Virtue of Charity ### +character_event = { + id = 3085 + desc = EVTDESC3085 + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + trait = charitable + any_courtier = { + prisoner = yes + host = { character = ROOT } + } + } + + weight_multiplier = { + factor = 1 + } + option = { + name = EVTOPTA3085 + random_courtier = { + limit = { + prisoner = yes + host = { character = ROOT } + } + prisoner = no + opinion = { who = ROOT modifier = charitable_to_you } + } + piety = 5 + + + } + option = { + name = EVTOPTB3085 + piety = -10 + } +} + +### Charitable positive: Start ### +character_event = { + id = 3095 + desc = EVTDESC3095 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = charitable + in_command = no + NOR = { + is_inaccessible_trigger = yes + job_treasurer = { + trait = charitable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = indulgent_wastrel + } + + modifier = { + factor = 0.3 + trait = midas_touched + } + + } + + option = { + name = EVTOPTA3095 + job_treasurer = { + character_event = { + id = 3096 + tooltip = EVTTOOLTIP3096 + days = 2 + } + } + } +} + +#Continue... +character_event = { + id = 3096 + desc = EVTDESC3096 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA3096 + FROM = { + character_event = { + id = 3097 + tooltip = EVTTOOLTIP3097 + days = 2 + } + reverse_opinion = { + modifier = charitable_neg + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3096 + FROM = { + reverse_opinion = { + modifier = charitable_pos + who = ROOT + years = 2 + } + } + random = { + chance = 65 + add_trait = charitable + } + } +} + +#Charitable negative: The end +character_event = { + id = 3097 + desc = EVTDESC3097 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_religion + + is_triggered_only = yes + + option = { + name = EVTOPTA3097 + ai_chance = { + factor = 1 + } + FROM = { + opinion = { + modifier = charitable_neg + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3097 + ai_chance = { + factor = 0 + } + FROM = { + opinion = { + modifier = charitable_pos + who = ROOT + years = 2 + } + } + random = { + chance = 50 + remove_trait = charitable + } + } +} + +### Slothful positive ### +character_event = { + id = 3100 + desc = EVTDESC3100 + picture = GFX_evt_spymaster + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = slothful + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.4 + trait = wroth + } + + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3100 + prestige = 10 + any_courtier = { + limit = { + is_councillor = yes + } + opinion = { + modifier = slothful_neg + who = ROOT + years = 5 + } + } + } + + option = { + name = EVTOPTB3100 + piety = -5 + } +} + +### Slothful positive ### +character_event = { + id = 3105 + desc = EVTDESC3105 + picture = GFX_evt_family + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = slothful + OR = { + any_courtier = { + reverse_opinion = { who = ROOT value = 25 } + } + spouse = { + is_alive = yes + is_abroad = no + reverse_opinion = { who = ROOT value = 25 } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3105 + random_courtier = { + limit = { + NOT = { spouse = { character = prev } } + } + opinion = { + modifier = slothful_pos + who = ROOT + years = 5 + } + } + } + + option = { + name = EVTOPTB3105 + trigger = { + is_married = yes + spouse = { + is_alive = yes + is_abroad = no + reverse_opinion = { who = ROOT value = 25 } + } + } + spouse = { + opinion = { + modifier = slothful_pos + who = ROOT + years = 5 + } + } + } +} + +### Slothful negative ### +character_event = { + id = 3110 + desc = EVTDESC3110 + picture = GFX_evt_castle_construction + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = slothful + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + OR = { + has_job_title = job_treasurer + has_job_title = job_chancellor + } + OR = { + trait = slothful + trait = paranoid + trait = slow + trait = depressed + trait = stressed + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = proud + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3110 + location = { + add_province_modifier = { + name = slothful_ruler + duration = 180 + } + } + } + option = { + name = EVTOPTB3110 + scaled_wealth = -0.05 + if = { + limit = { + NOT = { trait = stressed } + } + health = -1 + } + if = { + limit = { + NOT = { trait = stressed } + } + random = { + chance = 33 + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + + } + + } +} + +### Slothful negative: Start ### +character_event = { + id = 3115 + desc = EVTDESC3115 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_intrigue + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = slothful + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + is_priest = yes + trait = zealous + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = deceitful + } + + modifier = { + factor = 0.5 + trait = honest + } + } + + option = { + name = EVTOPTA3115 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + is_priest = yes + trait = zealous + } + } + character_event = { + id = 3116 + days = 1 + random = 3 + tooltip = EVTTOOLTIP3116 + } + } + } +} + +#Slothful negative: Courtier +character_event = { + id = 3116 + desc = EVTDESC3116 + picture = GFX_evt_bishop + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA3116 + FROM = { + character_event = { + id = 3117 + days = 1 + random = 3 + tooltip = EVTTOOLTIP3117 + } + } + } +} + +#ROOT is informed about courtier's opinion about him/her +character_event = { + id = 3117 + desc = EVTDESC3117 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3117 + FROM = { + opinion = { + modifier = slothful_neg + who = ROOT + years = 5 + } + } + } +} + +### Diligent ### +character_event = { + id = 3120 + desc = EVTDESC3120 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + independent = no + liege = { + NOR = { + character = ROOT + opinion = { who = ROOT value = 0 } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = gregarious + } + } + + option = { + name = EVTOPTA3120 + trigger = { + liege = { + NOR = { + trait = slothful + trait = envious + } + } + } + + liege = { + opinion = { + who = ROOT + modifier = diligent_pos + years = 10 + } + } + } + option = { + name = EVTOPTB3120 + liege = { + opinion = { + who = ROOT + modifier = diligent_pos + years = 2 + } + } + prestige = 10 + } +} + +### Improve relations with vassal ### +character_event = { + id = 3121 + desc = EVTDESC3121 + picture = GFX_evt_council + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_vassal = { + NOT = { opinion = { who = ROOT value = 0 } } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = gregarious + } + } + + option = { + name = EVTOPTA3121 + random_vassal = { + limit = { + NOT = { opinion = { who = ROOT value = 0 } } + } + opinion = { + who = ROOT + modifier = diligent_pos + years = 5 + } + + if = { + limit = { + trait = slothful + } + random = { + chance = 20 + character_event = { + id = 3122 + tooltip = EVTTOOLTIP3122 + } + } + } + } + } + option = { + name = EVTOPTB3121 + random_vassal = { + limit = { + NOT = { opinion = { who = ROOT value = 0 } } + } + opinion = { + who = ROOT + modifier = diligent_pos + years = 5 + } + } + prestige = 10 + } +} + +#Diligent ruler +character_event = { + id = 3122 + desc = EVTDESC3122 + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = EVTOPTA3122 + add_trait = diligent + prestige = -5 + } + option = { + name = EVTOPTB3122 + ai_chance = { factor = 0 } + piety = -20 + } +} + +### Strive for peaceful resolutions ### +character_event = { + id = 3123 + desc = EVTDESC3123 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_vassal = { + age = 16 + any_courtier = { + age = 16 + NOR = { + is_inaccessible_trigger = yes + demesne_size = 1 + opinion = { who = prev value = 0 } + } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = gregarious + } + } + + option = { + name = EVTOPTA3123 + random_vassal = { + limit = { + age = 16 + any_courtier = { + age = 16 + NOR = { + is_inaccessible_trigger = yes + demesne_size = 1 + opinion = { who = prev value = 0 } + } + } + } + random_courtier = { + limit = { + age = 16 + NOR = { + is_inaccessible_trigger = yes + demesne_size = 1 + opinion = { who = prev value = 0 } + } + } + opinion = { + who = PREV + modifier = liege_peaceful_resolution + years = 2 + } + } + } + } +} + +### Castle Construction ### +character_event = { + id = 3124 + desc = EVTDESC3124 + picture = GFX_evt_castle_construction + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + wealth = 50 + NOR = { + has_character_modifier = diligent_on_cost + has_character_modifier = diligent_on_time + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = just + } + } + + option = { + name = EVTOPTA3124 + add_character_modifier = { + name = diligent_on_cost + duration = 1825 + } + } + option = { + name = EVTOPTB3124 + add_character_modifier = { + name = diligent_on_time + duration = 1825 + } + } +} + +### Soldiers ### +character_event = { + id = 3125 + desc = EVTDESC3125 + picture = GFX_evt_council + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 1.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3125 + trigger = { + any_demesne_province = { + NOT = { has_province_modifier = diligent_liege_size } + } + } + random_demesne_province = { + limit = { + NOT = { has_province_modifier = diligent_liege_size } + } + add_province_modifier = { + name = diligent_liege_size + duration = 1825 + } + } + } + option = { + name = EVTOPTB3125 + add_character_modifier = { + name = diligent_liege_morale + duration = 730 + } + } +} + +### Ignored issues ### +character_event = { + id = 3126 + desc = EVTDESC3126 + picture = GFX_evt_castle_construction + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = diligent + in_command = no + OR = { + religion_group = christian + #religion_group = muslim + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 3.0 + trait = arbitrary + } + } + + option = { + name = EVTOPTA3126 + trigger = { + religion_group = christian + } + piety = -10 + } + option = { + name = EVTOPTB3126 + ai_chance = { + factor = 0 + } + remove_trait = diligent + prestige = -5 + + } +} + +############################### +# Envious +############################### + +### Envy someone's martial abilities... ### +character_event = { + id = 3140 + desc = EVTDESC3140 + picture = GFX_evt_melee + + only_playable = yes + only_men = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + is_female = no + martial = ROOT + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + option = { + name = EVTOPTA3140 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + is_female = no + martial = ROOT + } + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = proud + trait = wroth + } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3140 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + is_female = no + martial = ROOT + } + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3140 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + trait = zealous + } + } + change_martial = 1 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } +} + +### Envy someones diplomatic ability ### +character_event = { + id = 3141 + desc = EVTDESC3141 + picture = GFX_evt_emissary + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + diplomacy = ROOT + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + option = { + name = EVTOPTA3141 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + diplomacy = ROOT + } + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = proud + trait = wroth + } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3141 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + diplomacy = ROOT + } + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3141 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + trait = zealous + } + } + change_diplomacy = 1 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +### Envy Stewardship ### +character_event = { + id = 3142 + desc = EVTDESC3142 + picture = GFX_evt_throne_room + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + stewardship = ROOT + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + option = { + name = EVTOPTA3142 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + stewardship = ROOT + } + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = proud + trait = wroth + } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3142 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + stewardship = ROOT + } + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3142 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + trait = zealous + } + } + change_stewardship = 1 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +### Envy intrigue ### +character_event = { + id = 3143 + desc = EVTDESC3143 + picture = GFX_evt_throne_room + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + intrigue = ROOT + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + option = { + name = EVTOPTA3143 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + intrigue = ROOT + } + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOT = { personality_traits = 6 } + NOT = { trait = proud } + NOT = { trait = wroth } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3143 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + intrigue = ROOT + } + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3143 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + trait = zealous + } + } + change_intrigue = 1 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +### Envy learning ### +character_event = { + id = 3144 + desc = EVTDESC3144 + picture = GFX_evt_library + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + learning = ROOT + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + option = { + name = EVTOPTA3144 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + learning = ROOT + } + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = proud + trait = wroth + } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3144 + random_courtier = { + limit = { + age = 16 + NOT = { demesne_size = 1 } + prisoner = no + learning = ROOT + } + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3144 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + trait = zealous + } + } + change_martial = 1 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +### I have no children, and other women have it... ### +character_event = { + id = 3145 + desc = EVTDESC3145 + picture = GFX_evt_child_play + + max_age = 44 + prisoner = no + only_women = yes + capable_only = yes + war = no + is_married = no + + is_triggered_only = yes + + trigger = { + trait = envious + in_command = no + NOR = { + is_inaccessible_trigger = yes + num_of_children = 1 + } + any_courtier = { + is_female = yes + age = 16 + NOT = { + demesne_size = 1 + } + ROOT = { + age_diff = { + who = PREV + years = 5 + } + } + prisoner = no + num_of_children = 1 + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = ambitious + } + } + + immediate = { + random_courtier = { + limit = { + is_female = yes + age = 16 + NOT = { + demesne_size = 1 + } + ROOT = { + age_diff = { + who = PREV + years = 5 + } + } + prisoner = no + num_of_children = 1 + } + save_event_target_as = young_mother + } + } + + option = { + name = EVTOPTA3145 + event_target:young_mother = { + opinion = { who = ROOT modifier = envious_neg years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = proud + trait = wroth + } + } + random_list = { + 50 = {} + 30 = { add_trait = proud hidden_tooltip = { character_event = { id = 38261} }} + 20 = { add_trait = wroth hidden_tooltip = { character_event = { id = 38254} }} + } + } + } + option = { + name = EVTOPTB3145 + event_target:young_mother = { + opinion = { who = ROOT modifier = envious_pos years = 10 } + } + if = { + limit = { + NOR = { + personality_traits = 6 + trait = deceitful + trait = humble + } + } + random_list = { + 50 = {} + 30 = { add_trait = deceitful hidden_tooltip = { character_event = { id = 38255} }} + 20 = { add_trait = humble hidden_tooltip = { character_event = { id = 38260} }} + } + } + } + option = { + name = EVTOPTC3145 + #tooltip_info = + trigger = { + OR = { + trait = ambitious + trait = proud + trait = brave + } + } + fertility = 0.1 + random = { + chance = 33 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +### Kind positive: Start ### +character_event = { + id = 3160 + desc = EVTDESC3160 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = kind + in_command = no + any_courtier = { + age = 16 + prisoner = no + NOR = { + trait = envious + character = ROOT + trait = incapable + has_character_modifier = modifier_positive + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 0.5 + trait = charitable + } + + modifier = { + factor = 5.0 + trait = wroth + } + modifier = { + factor = 4.0 + trait = envious + } + } + + option = { + name = EVTOPTA3160 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + trait = envious + character = ROOT + trait = incapable + has_character_modifier = modifier_positive + } + } + character_event = { + id = 3161 + tooltip = EVTTOOLTIP3161 + } + } + } +} + +#Kind Positive: Courtier +character_event = { + id = 3161 + desc = EVTDESC3161 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA3161 + FROM = { + reverse_opinion = { + modifier = kind_pos + who = ROOT + years = 2 + } + character_event = { + id = 3162 + tooltip = EVTTOOLTIP3162 + } + } + } +} + +#Kind Positive: The End +character_event = { + id = 3162 + desc = EVTDESC3162 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA3162 + FROM = { + opinion = { + modifier = kind_pos + who = ROOT + years = 2 + } + } + } +} + +### Kind: Villagers ask for help ### +character_event = { + id = 3170 + desc = EVTDESC3170 + picture = GFX_evt_emissary + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = kind + in_command = no + NOT = { is_inaccessible_trigger = yes } + treasury = 20 + OR = { + trait = charitable + trait = diligent + diplomacy = 10 + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3170 + ai_chance = { + factor = 99 + } + scaled_wealth = -0.15 + piety = 5 + } + option = { + name = EVTOPTB3170 + ai_chance = { + factor = 1 + } + piety = -10 + remove_trait = kind + } +} + +### Kind negative: Start ### +character_event = { + id = 3175 + desc = EVTDESC3175 + picture = GFX_evt_courtiers_talking + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = kind + in_command = no + NOT = { + has_character_modifier = the_kind + } + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = envious + trait = cruel + NOT = { + trait = kind + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3175 + ai_chance = { factor = 90 } + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = envious + NOT = { + trait = kind + } + } + } + character_event = { + id = 3176 + tooltip = EVTTOOLTIP3176 + } + } + } +} + +#Kind Negative: Courtier +character_event = { + id = 3176 + desc = EVTDESC3176 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3176 + FROM = { + reverse_opinion = { + modifier = kind_neg + who = ROOT + years = 1 + } + character_event = { + id = 3177 + tooltip = EVTTOOLTIP3177 + } + } + } +} + +#Kind Negative: The End +character_event = { + id = 3177 + desc = EVTDESC3177 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3177 + add_character_modifier = { + name = the_kind + duration = 365 + } + FROM = { + opinion = { + modifier = kind_neg + who = ROOT + years = 1 + } + } + } +} + +### Wroth positive ### +character_event = { + id = 3180 + desc = EVTDESC3180 + picture = GFX_evt_lunatic + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = wroth + in_command = no + NOT = { has_character_modifier = the_vicious } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 3.0 + trait = diligent + } + } + + option = { + name = EVTOPTA3180 + add_character_modifier = { + name = the_vicious + duration = 1460 + } + } +} + +### Wroth positive: Start ### +character_event = { + id = 3185 + desc = EVTDESC3185 + picture = GFX_evt_market + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = wroth + in_command = no + tier = count + NOT = { + trait = kind + } + stewardship = 10 + any_courtier = { + age = 16 + trait = trusting + NOT = { + stewardship = 6 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 3.0 + trait = diligent + } + } + + option = { + name = EVTOPTA3185 + random_courtier = { + limit = { + age = 16 + trait = trusting + NOT = { + stewardship = 6 + } + } + character_event = { + id = 3186 + tooltip = EVTTOOLTIP3186 + } + } + } +} + +#Wroth Positive: Courtier +character_event = { + id = 3186 + desc = EVTDESC3186 + picture = GFX_evt_market + + is_triggered_only = yes + + option = { + name = EVTOPTA3186 + FROM = { + reverse_opinion = { + modifier = wroth_pos + who = ROOT + years = 2 + } + character_event = { + id = 3187 + days = 5 + tooltip = EVTTOOLTIP3187 + } + } + } +} + +#Wroth Positive: Liege +character_event = { + id = 3187 + desc = EVTDESC3187 + picture = GFX_evt_market + + is_triggered_only = yes + + option = { + name = EVTOPTA3187 + FROM = { + opinion = { + modifier = wroth_pos + who = ROOT + years = 2 + } + } + } +} + +### Wroth: Start ### +character_event = { + id = 3190 + desc = EVTDESC3190 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = wroth + in_command = no + any_courtier = { + age = 16 + prisoner = no + religion_group = christian + NOR = { + trait = incapable + trait = wroth + trait = patient + } + OR = { + trait = kind + trait = charitable + prestige = 60 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + is_priest = no + } + modifier = { + factor = 5.0 + trait = weak + } + + modifier = { + factor = 0.5 + trait = scholarly_theologian + } + modifier = { + factor = 0.3 + trait = mastermind_theologian + } + } + + option = { + name = EVTOPTA3190 + random_courtier = { + limit = { + age = 16 + prisoner = no + religion_group = christian + NOR = { + trait = incapable + trait = wroth + trait = patient + } + OR = { + trait = kind + trait = charitable + prestige = 60 + } + } + character_event = { + id = 3191 + days = 1 + tooltip = EVTTOOLTIP3191 + } + } + } +} + +#Wroth: Courtier +character_event = { + id = 3191 + desc = EVTDESC3191 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3191 + FROM = { + reverse_opinion = { + modifier = wroth_neg + who = ROOT + years = 2 + } + character_event = { + id = 3192 + days = 1 + tooltip = EVTTOOLTIP3192 + } + } + } + option = { + name = EVTOPTB3191 + FROM = { + reverse_opinion = { + modifier = wroth_pos + who = ROOT + years = 2 + } + character_event = { + id = 3193 + days = 1 + tooltip = EVTTOOLTIP3192 + } + } + } +} + +#Wroth neg: ROOT +character_event = { + id = 3192 + desc = EVTDESC3192 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3192 + FROM = { + opinion = { + modifier = wroth_neg + who = ROOT + years = 2 + } + } + } +} + +#Wroth pos: ROOT +character_event = { + id = 3193 + desc = EVTDESC3193 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3193 + FROM = { + opinion = { + modifier = wroth_pos + who = ROOT + years = 2 + } + } + } +} + +### Wroth negative ### +character_event = { + id = 3195 + desc = EVTDESC3195 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = wroth + in_command = no + any_courtier = { + NOR = { + opinion = { who = ROOT value = -20 } + trait = wroth + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3195 + prestige = -10 + } +} + +################################################## +# Patient +################################################## + +### Patient ### +character_event = { + id = 3200 + desc = EVTDESC3200 + picture = GFX_evt_courtiers_talking + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = patient + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + trait = wroth + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3200 + random_courtier = { + limit = { + age = 16 + trait = wroth + } + character_event = { id = 3201 tooltip = EVTTOOLTIP3201 } + } + } + option = { + name = EVTOPTB3200 + random_courtier = { + limit = { + age = 16 + trait = wroth + } + opinion = { + modifier = patient_pos + who = ROOT + years = 10 + } + } + } +} + +#Patient +character_event = { + id = 3201 + desc = EVTDESC3201 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3201 + remove_trait = wroth + } + option = { + name = EVTOPTB3201 + prestige = -5 + } +} + +### Patient ### +character_event = { + id = 3202 + desc = EVTDESC3202 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + max_age = 50 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = patient + NOT = { health = 8 } + in_command = no + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.1 + trait = gluttonous + } + modifier = { + factor = 0.1 + trait = drunkard + } + modifier = { + factor = 10 + OR = { + has_ambition = obj_buddhist_stop_drinking + has_ambition = obj_buddhist_temperance_food + } + } + } + + option = { + name = EVTOPTA3202 + trigger = { + NOT = { trait = gluttonous } + } + health = 0.25 + } + option = { + name = EVTOPTB3202 + trigger = { + NOT = { trait = drunkard } + } + health = 0.25 + } + option = { + name = EVTOPTC3202 + #tooltip_info = + trigger = { + OR = { + trait = drunkard + trait = gluttonous + } + } + if = { + limit = { + trait = drunkard + } + remove_trait = drunkard + } + if = { + limit = { + trait = gluttonous + } + remove_trait = gluttonous + } + } +} + +### Patient ### +character_event = { + id = 3203 + desc = EVTDESC3203 + picture = GFX_evt_knight_kneeling + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = patient + NOT = { trait = cruel } + in_command = no + any_vassal = { + age = 16 + NOT = { + reverse_opinion = { who = ROOT value = -10 } + } + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3203 + random_vassal = { + limit = { + age = 16 + NOT = { reverse_opinion = { who = ROOT value = -10 } } + } + character_event = { id = 3204 tooltip = EVTTOOLTIP3204 } + opinion = { + modifier = grace_to_forgive + who = ROOT + years = 10 + } + } + } + option = { + name = EVTOPTB3203 + piety = -10 + } +} + +#Patient +character_event = { + id = 3204 + desc = EVTDESC3204 + picture = GFX_evt_knight_kneeling + + is_triggered_only = yes + option = { + name = EVTOPTA3204 + reverse_opinion = { + modifier = grace_to_forgive + who = FROM + years = 10 + } + } +} + +### Patient ### +character_event = { + id = 3205 + desc = EVTDESC3205 + picture = GFX_evt_knight_kneeling + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + only_men = yes + + is_triggered_only = yes + + trigger = { + trait = patient + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = cynical + has_character_modifier = mercy_to_sinners + } + piety = 50 + learning = 7 + any_courtier = { + age = 16 + is_female = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = cynical + is_heretic = yes + NOT = { piety = 25 } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2.5 + piety = 100 + } + modifier = { + factor = 1.5 + trait = zealous + } + + } + + option = { + name = EVTOPTA3205 + random_courtier = { + limit = { + age = 16 + is_female = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = cynical + is_heretic = yes + NOT = { piety = 25 } + } + } + character_event = { id = 3206 tooltip = EVTTOOLTIP3206 } + } + add_character_modifier = { + name = mercy_to_sinners + duration = -1 + } + } + option = { + name = EVTOPTB3205 + piety = 5 + } +} + +#Patient +character_event = { + id = 3206 + desc = EVTDESC3206 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3206 + ai_chance = { + factor = 5 + modifier = { + factor = 0.05 + trait = cynical + } + modifier = { + factor = 10.0 + trait = zealous + } + modifier = { + factor = 0.05 + is_heretic = yes + } + modifier = { + factor = 1.5 + FROM = { trait = zealous } + } + modifier = { + factor = 2.0 + trait = trusting + } + modifier = { + factor = 1.5 + FROM = { trait = gregarious } + } + modifier = { + factor = 1.5 + FROM = { trait = kind } + } + } + piety = 10 + if = { + limit = { trait = cynical } + remove_trait = cynical + } + if = { + limit = { is_heretic = yes } + abandon_heresy = yes + } + FROM = { character_event = { id = 3207 tooltip = EVTTOOLTIP3207 } } + } + option = { + name = EVTOPTB3206 + FROM = { character_event = { id = 3208 tooltip = EVTTOOLTIP3208 } } + } +} + +#Patient +character_event = { + id = 3207 + desc = EVTDESC3207 + picture = GFX_evt_bishop + + is_triggered_only = yes + option = { + reverse_opinion = { + modifier = saved_my_soul + who = FROM + years = 5 + } + name = EVTOPTA3207 + piety = 10 + + } +} + +#Patient +character_event = { + id = 3208 + desc = EVTDESC3208 + picture = GFX_evt_bishop + + is_triggered_only = yes + option = { + name = EVTOPTA3208 + piety = 5 + + } +} + +### Proud positive ### +character_event = { + id = 3220 + desc = EVTDESC3220 + picture = GFX_evt_castle_construction + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = proud + in_command = no + health = 5 + OR = { + diplomacy = 10 + learning = 10 + intrigue = 10 + NOT = { + trait = wroth + } + has_ambition = obj_buddhist_reject_pride + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.3 + trait = envious + } + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 4.0 + trait = patient + } + modifier = { + factor = 10 + has_ambition = obj_buddhist_reject_pride + } + } + + option = { + name = EVTOPTA3220 + ai_chance = { + factor = 10 + } + random_list = { + 50 = {} + 10 = { change_martial = 1 } + 10 = { change_diplomacy = 1 } + 10 = { change_stewardship = 1 } + 10 = { change_intrigue = 1 } + 10 = { change_learning = 1 } + } + health = -0.5 + piety = -10 + cancel_ambition = yes + } + option = { + name = EVTOPTB3220 + piety = 10 + remove_trait = proud + } +} + +### Proud positive: Start ### +character_event = { + id = 3225 + desc = EVTDESC3225 + picture = GFX_evt_market + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = proud + in_command = no + NOT = { wealth = 100 } + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + has_job_title = job_treasurer + trait = indulgent_wastrel + trait = thrifty_clerk + trait = fortune_builder + trait = midas_touched + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = greedy + } + + modifier = { + factor = 4.0 + trait = charitable + } + } + + option = { + name = EVTOPTA3225 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + has_job_title = job_treasurer + trait = indulgent_wastrel + trait = thrifty_clerk + trait = fortune_builder + trait = midas_touched + } + } + character_event = { + id = 3226 + tooltip = EVTTOOLTIP3226 + } + } + } +} + +#Proud Positive: Courtier +character_event = { + id = 3226 + desc = EVTDESC3226 + picture = GFX_evt_market + + is_triggered_only = yes + + option = { + name = EVTOPTA3226 + FROM = { + reverse_opinion = { + modifier = proud_pos + who = ROOT + years = 10 + } + character_event = { + id = 3227 + tooltip = EVTTOOLTIP3227 + } + } + } +} + +#Proud Positive: Courtier +character_event = { + id = 3227 + desc = EVTDESC3227 + picture = GFX_evt_market + + is_triggered_only = yes + + option = { + name = EVTOPTA3227 + scaled_wealth = 0.25 + FROM = { + opinion = { + modifier = proud_pos + who = ROOT + years = 10 + } + } + } +} + +###Proud negative ### +character_event = { + id = 3230 + desc = EVTDESC3230 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = proud + NOT = { religion_group = pagan_group } + in_command = no + job_spiritual = { + NOT = { + trait = proud + } + OR = { + trait = trusting + trait = zealous + NOT = { + trait = cynical + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = greedy + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.4 + trait = patient + } + } + + option = { + name = EVTOPTA3230 + job_spiritual = { + opinion = { + modifier = proud_neg + who = ROOT + years = 1 + } + } + } +} + +###Proud negative: Start ### +character_event = { + id = 3235 + desc = EVTDESC3235 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = proud + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + trait = proud + is_inaccessible_trigger = yes + } + opinion = { who = ROOT value = 50 } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + + modifier = { + factor = 0.3 + trait = diligent + } + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3235 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + trait = proud + is_inaccessible_trigger = yes + } + opinion = { who = ROOT value = 50 } + } + character_event = { + id = 3236 + tooltip = EVTTOOLTIP3236 + } + } + } +} + +#Proud Negative: Courtier +character_event = { + id = 3236 + desc = EVTDESC3236 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3236 + FROM = { + reverse_opinion = { + modifier = proud_neg + who = ROOT + years = 2 + } + character_event = { + id = 3237 + tooltip = EVTTOOLTIP3237 + } + } + } +} + +#Proud Negative: The End +character_event = { + id = 3237 + desc = EVTDESC3237 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3237 + FROM = { + opinion = { + modifier = proud_neg + who = ROOT + years = 2 + } + } + } +} + +########################################### +# Humble +########################################### + +### Submitting legitimate authority ### +character_event = { + id = 3240 + desc = EVTDESC3240 + picture = GFX_evt_throne_room + + min_age = 16 + capable_only = yes + only_playable = yes + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + trait = humble + independent = no + NOR = { + opinion = { who = liege value = 10 } + has_opinion_modifier = { who = liege modifier = show_true_humility } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3240 #Submit + piety = 5 + liege = { + opinion = { + modifier = show_true_humility + who = ROOT + years = 5 + } + letter_event = { + id= 3241 + tooltip = EVTTOOLTIP3241 + } + } + } + option = { + name = EVTOPTB3240 #NOT submit + prestige = 5 + } +} + +#Submits +letter_event = { + id = 3241 + desc = EVTDESC3241 + + is_triggered_only = yes + option = { + name = EVTOPTA3241 + prestige = 5 + FROM = { + opinion = { + modifier = shown_true_humility + who = ROOT + years = 5 + } + } + } +} + +### Submitting to God ### +character_event = { + id = 3242 + desc = EVTDESC3242 + picture = GFX_evt_pope + + min_age = 16 + capable_only = yes + only_playable = yes + religion = catholic + + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + controls_religion = no + religion_head = { + NOR = { + reverse_opinion = { who = ROOT value = 10 } + reverse_has_opinion_modifier = { who = ROOT modifier = show_true_humility } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 3.5 + trait = zealous + } + } + + option = { + name = EVTOPTA3242 #Submit + piety = 5 + religion_head = { + opinion = { + who = ROOT + modifier = show_true_humility + years = 5 + } + letter_event = { + id= 3241 + tooltip = EVTTOOLTIP3241 + } + } + } + option = { + name = EVTOPTB3242 #NOT submit + prestige = 5 + } +} + +### Marshal is great ### +character_event = { + id = 3243 + desc = EVTDESC3243 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + job_marshal = { + martial = ROOT + NOT = { has_opinion_modifier = { who = ROOT modifier = talent_recognized }} + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3243 + job_marshal = { + opinion = { + who = ROOT + modifier = talent_recognized + months = 12 + } + letter_event = { + id = 3244 + tooltip = EVTTOOLTIP3244 + } + } + } + option = { + name = EVTOPTB3243 + piety = 10 + } +} + +#Courtier with job title is told how great she/he is +letter_event = { + id = 3244 + desc = EVTDESC3244 + + is_triggered_only = yes + + option = { + name = EVTOPTA3244 + prestige = 10 + } +} + +### Chancellor is great ### +character_event = { + id = 3245 + desc = EVTDESC3245 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = humble + job_chancellor = { + diplomacy = ROOT + NOT = { has_opinion_modifier = { who = ROOT modifier = talent_recognized }} + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3245 + job_chancellor = { + opinion = { + modifier = talent_recognized + who = ROOT + years = 5 + } + letter_event = { + id= 3244 + tooltip = EVTTOOLTIP3244 + } + } + } + option = { + name = EVTOPTB3245 + piety = 10 + } +} + +### Spymaster is great ### +character_event = { + id = 3246 + desc = EVTDESC3246 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + job_spymaster = { + intrigue = ROOT + NOT = { has_opinion_modifier = { who = ROOT modifier = talent_recognized }} + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3246 + job_spymaster = { + opinion = { + who = ROOT + modifier = talent_recognized + years = 5 + } + letter_event = { id= 3244 tooltip = EVTTOOLTIP3244 } + } + } + option = { + name = EVTOPTB3246 + piety = 10 + } +} + +### Lord Spiritual is great ### +character_event = { + id = 3247 + desc = EVTDESC3247 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + job_spiritual = { + learning = ROOT + NOT = { has_opinion_modifier = { who = ROOT modifier = talent_recognized }} + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3247 + job_spiritual = { + opinion = { + who = ROOT + modifier = talent_recognized + years = 5 + } + letter_event = { + id= 3244 + tooltip = EVTTOOLTIP3244 + } + } + } + option = { + name = EVTOPTB3247 + piety = 10 + } +} + +### Steward is great ### +character_event = { + id = 3248 + desc = EVTDESC3248 + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + job_treasurer = { + stewardship = ROOT + NOT = { has_opinion_modifier = { who = ROOT modifier = talent_recognized }} + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.5 + trait = ambitious + } + } + + option = { + name = EVTOPTA3248 + job_treasurer = { + opinion = { + who = ROOT + modifier = talent_recognized + years = 5 + } + letter_event = { + id= 3244 + tooltip = EVTTOOLTIP3244 + } + } + } + option = { + name = EVTOPTB3248 + piety = 10 + } +} + +### Limit my ambition ### +character_event = { + id = 3258 + desc = EVTDESC3258 + picture = GFX_evt_throne_room + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = humble + trait = ambitious + NAND = { + martial = 7 + learning = 7 + intrigue = 7 + diplomacy = 7 + stewardship = 7 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3258 + ai_chance = { + factor = 0 + } + remove_trait = ambitious + piety = 5 + } + option = { + name = EVTOPTB3258 + remove_trait = humble + piety = -5 + } +} + + +#################################### +# Deceitful +#################################### +character_event = { + id = 3260 + desc = { + text = EVTDESC3260 #Hide martial + trigger = { + religion_group = christian + } + } + desc = { + text = EVTDESC3264 + trigger = { + NOT = { + religion_group = christian + } + } + } + picture = GFX_evt_spymaster + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + only_men = yes + + is_triggered_only = yes + + trigger = { + trait = deceitful + in_command = no + job_marshal = { + martial = 10 + } + NOR = { + is_inaccessible_trigger = yes + martial = 7 + has_character_modifier = deceitful_martial + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3260 #Appear to be X + any_courtier = { + limit = { + age = 16 + OR = { + martial = 10 + trait = honest + } + NOT = { has_job_title = job_marshal } + } + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + add_character_modifier = { + name = deceitful_martial + duration = 730 + } + } + + option = { + name = EVTOPTB3260 #setup job for the blame. + job_marshal = { + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + } +} + +### Hide stewardship ### +character_event = { + id = 3261 + desc = EVTDESC3261 + picture = GFX_evt_council + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = deceitful + in_command = no + job_treasurer = { + stewardship = 10 + } + NOR = { + is_inaccessible_trigger = yes + stewardship = 7 + has_character_modifier = deceitful_stewardship + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3261 #Appear to be X + any_courtier = { + limit = { + age = 16 + OR = { + stewardship = 10 + trait = honest + } + NOT = { has_job_title = job_treasurer } + } + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + add_character_modifier = { + name = deceitful_stewardship + duration = 730 + } + } + + option = { + name = EVTOPTB3261 #setup job for the blame. + job_treasurer = { + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + } +} + +### Hide diplomacy ### +character_event = { + id = 3262 + desc = EVTDESC3262 + picture = GFX_evt_throne_room + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = deceitful + in_command = no + job_chancellor = { + diplomacy = 10 + } + NOR = { + diplomacy = 7 + is_inaccessible_trigger = yes + has_character_modifier = deceitful_diplomacy + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3262 #Appear to be X + any_courtier = { + limit = { + age = 16 + OR = { + diplomacy = 10 + trait = honest + } + NOT = { has_job_title = job_chancellor } + } + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + add_character_modifier = { + name = deceitful_diplomacy + duration = 730 + } + } + + option = { + name = EVTOPTB3262 #setup job for the blame. + job_chancellor = { + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + } +} + +### Hide learning ### +character_event = { + id = 3263 + desc = EVTDESC3263 + picture = GFX_evt_library + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = deceitful + in_command = no + job_spiritual = { + learning = 10 + } + NOR = { + learning = 7 + is_inaccessible_trigger = yes + has_character_modifier = deceitful_learning + } + } + + weight_multiplier = { + factor = 1 + + } + + option = { + name = EVTOPTA3263 #Appear to be X + any_courtier = { + limit = { + age = 16 + OR = { + learning = 10 + trait = honest + } + NOT = { has_job_title = job_spiritual } + } + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + add_character_modifier = { + name = deceitful_learning + duration = 730 + } + } + + option = { + name = EVTOPTB3263 #setup job for the blame. + job_spiritual = { + opinion = { + who = ROOT + modifier = deceitful_neg + years = 5 + } + } + } +} + +### Deceitful Martial - Muslim +#character_event = { +# id = 3264 +# desc = EVTDESC3264 #Hide martial +# picture = GFX_evt_spymaster +# +# min_age = 16 +# capable_only = yes +# prisoner = no +# is_triggered_only = yes +# religion_group = muslim +# only_playable = yes +# +# trigger = { +# trait = deceitful +# war = no +# in_command = no +# is_female = no +# NOT = { is_inaccessible_trigger = yes } +# job_marshal = { +# martial = 10 +# martial = ROOT +# } +# NOT = { +# martial = 7 +# } +# NOT = { has_character_modifier = deceitful_martial } +# +# } +# +# weight_multiplier = { +# factor = 1 +# +# } +# +# option = { +# name = EVTOPTA3260 #Appear to be X +# any_courtier = { +# limit = { +# age = 16 +# OR = { +# martial = 10 +# trait = honest +# } +# NOT = { has_job_title = job_marshal } +# } +# opinion = { +# who = ROOT +# modifier = deceitful_neg +# years = 5 +# } +# } +# add_character_modifier = { +# name = deceitful_martial +# duration = 730 +# } +# } +# +# option = { +# name = EVTOPTB3260 #setup job for the blame. +# job_marshal = { +# opinion = { +# who = ROOT +# modifier = deceitful_neg +# years = 5 +# } +# } +# } +#} + +####################################### +# HONEST +####################################### + +### Offend another courtier of a trait we dont have ### +character_event = { + id = 3280 + desc = EVTDESC3280 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = honest + in_command = no + NOR = { + trait = shy + is_inaccessible_trigger = yes + } + any_courtier = { + age = 16 + NOR = { + trait = honest + is_inaccessible_trigger = yes + } + OR = { + AND = { + trait = gluttonous + NOT = { ROOT = { trait = gluttonous } } + } + AND = { + trait = slothful + NOT = { ROOT = { trait = slothful } } + } + AND = { + trait = greedy + NOT = { ROOT = { trait = greedy } } + } + AND = { + trait = envious + NOT = { ROOT = { trait = envious } } + } + AND = { + trait = lustful + NOT = { ROOT = { trait = lustful } } + } + } + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 5 + trait = cruel + } + } + + option = { + name = EVTOPTA3280 + random_courtier = { + limit = { + age = 16 + NOR = { + trait = honest + is_inaccessible_trigger = yes + } + OR = { + AND = { + trait = gluttonous + NOT = { ROOT = { trait = gluttonous } } + } + AND = { + trait = slothful + NOT = { ROOT = { trait = slothful } } + } + AND = { + trait = greedy + NOT = { ROOT = { trait = greedy } } + } + AND = { + trait = envious + NOT = { ROOT = { trait = envious } } + } + AND = { + trait = lustful + NOT = { ROOT = { trait = lustful } } + } + } + } + character_event = { id = 3281 tooltip = EVTTOOLTIP3281 } + opinion = { + who = ROOT + modifier = honest_neg + years = 10 + } + } + } + option = { + name = EVTOPTB3280 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + } + } +} + +#Honest +character_event = { + id = 3281 + desc = EVTDESC3281 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3281 + prestige = -10 + } +} + +### High intrigue and honest... ### +character_event = { + id = 3282 + desc = EVTDESC3282 + picture = GFX_evt_emissary + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + is_triggered_only = yes + + trigger = { + trait = honest + in_command = no + intrigue = 12 + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2.5 + trait = stressed + } + } + + option = { + name = EVTOPTA3282 + ai_chance = { + factor = 10 + } + change_intrigue = -1 + change_diplomacy = 1 + } + option = { + name = EVTOPTB3282 + remove_trait = honest + + } +} + +### Praise liege for his virtues ### +#character_event = { +# id = 3283 +# desc = EVTDESC3283 +# picture = GFX_evt_throne_room +# +# min_age = 16 +# capable_only = yes +# prisoner = no +# is_triggered_only = yes +# +# trigger = { +# trait = honest +# war = no +# in_command = no +# independent = no +# liege = { +# age = 25 +# OR = { +# trait = charitable +# trait = kind +# trait = diligent +# trait = chaste +# trait = temperate +# trait = patient +# trait = humble +# } +# } +# } +# +# weight_multiplier = { +# factor = 1 +# } +# +# option = { +# name = EVTOPTA3283 +# liege = { +# character_event = { +# id = 3284 +# tooltip = EVTTOOLTIP3284 +# } +# } +# prestige = 10 +# } +# option = { +# name = EVTOPTB3283 +# liege = { +# letter_event = { +# id = 3285 +# tooltip = EVTTOOLTIP3285 +# } +# opinion = { +# who = ROOT +# modifier = honest_pos +# years = 10 +# } +# } +# } +#} + +#Vassal compliments Liege +#character_event = { +# id = 3284 +# desc = EVTDESC3284 +# picture = GFX_evt_throne_room +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA3284 +# prestige = 5 +# any_vassal = { +# limit = { +# NOT = { character = FROM } +# } +# if = { +# limit = { +# opinion = { who = ROOT value = 20 } +# } +# opinion = { +# modifier = honest_pos +# who = ROOT +# years = 5 +# } +# } +# if = { +# limit = { +# NOT = { +# opinion = { who = ROOT value = 20 } +# } +# } +# opinion = { +# modifier = honest_neg +# who = ROOT +# years = 5 +# } +# } +# } +# } +#} + +#Vassals agree (?) +#letter_event = { +# id = 3285 +# desc = EVTDESC3285 +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA3285 +# piety = 10 +# } +#} + +#################################### +# Craven +#################################### +character_event = { + id = 3300 + desc = EVTDESC3300 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = craven + in_command = no + NOR = { + trait = hunter + is_inaccessible_trigger = yes + } + any_courtier = { + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = hunter + trait = brave + NOT = { + trait = craven + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 4.0 + trait = charitable + } + } + + option = { + name = EVTOPTA3300 + prestige = -10 + } +} + +### Craven ### +character_event = { + id = 3305 + desc = EVTDESC3305 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = craven + OR = { + NOT = { demesne_size = 1 } + tier = count + } + any_courtier = { + age = 16 + prisoner = no + OR = { + is_priest = yes + has_job_title = job_spiritual + } + religion_group = christian + NOR = { + character = ROOT + trait = incapable + is_inaccessible_trigger = yes } + OR = { + trait = craven + NOT = { + trait = brave + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.4 + trait = wroth + } + + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3305 + random_courtier = { + limit = { + age = 16 + prisoner = no + OR = { + is_priest = yes + has_job_title = job_spiritual + } + religion_group = christian + NOR = { + character = ROOT + trait = incapable + is_inaccessible_trigger = yes + } + OR = { + trait = craven + NOT = { + trait = brave + } + } + } + character_event = { + id = 3306 + days = 1 + random = 2 + tooltip = EVTTOOLTIP3306 + } + } + } +} + +#Courtier +character_event = { + id = 3306 + desc = EVTDESC3306 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3306 + opinion = { + modifier = craven_pos + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3307 + days = 2 + random = 2 + tooltip = EVTTOOLTIP3307 + } + } + } +} + +#ROOT +character_event = { + id = 3307 + desc = EVTDESC3307 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3307 + FROM = { + opinion = { + modifier = craven_pos + who = ROOT + years = 2 + } + } + } +} + +### Craven negative ### +character_event = { + id = 3310 + desc = EVTDESC3310 + picture = GFX_evt_melee + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = craven + in_command = no + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 3.0 + trait = greedy + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3310 + prestige = -15 + } +} + +### Craven ### +character_event = { + id = 3315 + desc = EVTDESC3315 + picture = GFX_evt_melee + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + in_command = yes + in_battle = no + trait = craven + independent = no + top_liege = { + any_realm_character = { + age = 16 + prisoner = no + in_command = yes + at_location = ROOT + NOR = { + character = ROOT + trait = incapable + trait = craven + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.4 + trait = charitable + } + } + + option = { + name = EVTOPTA3315 + top_liege = { + random_realm_character = { + limit = { + age = 16 + prisoner = no + in_command = yes + at_location = ROOT + NOR = { + character = ROOT + trait = incapable + trait = craven + } + } + + opinion = { + modifier = craven_neg + who = ROOT + years = 10 + } + character_event = { + id = 3316 + tooltip = EVTTOOLTIP3316 + } + } + } + } + option = { + name = EVTOPTB3315 + prestige = -5 + } +} + +character_event = { + id = 3316 + desc = EVTDESC3316 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3316 + prestige = 5 + } +} + +### Brave positive ### +# on_five_year_pulse +character_event = { + id = 3320 + desc = EVTDESC3320 + picture = GFX_evt_hunt + border = GFX_event_normal_frame_war + + only_playable = yes + min_age = 16 + prisoner = no + only_men = yes + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = brave + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 20 + is_female = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + character = ROOT + } + NAND = { + trait = brave + martial = 7 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 5.0 + trait = chaste + } + } + immediate = { + random_courtier = { + limit = { + age = 20 + is_female = no + NOR = { + character = ROOT + trait = incapable + is_inaccessible_trigger = yes + AND = { + trait = brave + martial = 7 + } + } + prisoner = no + } + save_event_target_as = nagging_courtier + } + } + + option = { + name = EVTOPTA3320 + event_target:nagging_courtier = { + character_event = { + id = 3321 + tooltip = EVTTOOLTIP3321 + } + } + } + option = { + name = EVTOPTB3320 + event_target:nagging_courtier = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +#Brave Positive: Courtier +character_event = { + id = 3321 + desc = EVTDESC3321 + picture = GFX_evt_hunt + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA3321 + FROM = { + opinion = { + modifier = brave_pos + who = ROOT + years = 2 + } + character_event = { + id = 3322 + tooltip = EVTTOOLTIP3322 + } + } + } +} + +#Brave Positive: Courtier +character_event = { + id = 3322 + desc = EVTDESC3322 + picture = GFX_evt_hunt + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA3322 + prestige = 10 + FROM = { + random = { + chance = 30 + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3322 + FROM = { + opinion = { + modifier = brave_pos + who = ROOT + years = 2 + } + } + } +} + +### Brave positive ### +character_event = { + id = 3325 + desc = EVTDESC3325 + picture = GFX_evt_bandits + border = GFX_event_normal_frame_war + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = brave + in_command = no + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3325 + piety = 15 + } +} + +### Brave negative ### +character_event = { + id = 3330 + desc = EVTDESC3330 + picture = GFX_evt_bandits + border = GFX_event_normal_frame_war + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = brave + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + religion_group = christian + #religion_group = muslim + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 5.0 + trait = proud + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3330 + scaled_wealth = -0.1 + } +} + +### Brave negative ### +character_event = { + id = 3335 + desc = EVTDESC3335 + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + only_rulers = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + independent = no + liege = { + war = no + in_command = no + age = 25 + trait = brave + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + } + NOR = { + trait = brave + martial = 10 + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 1.5 + trait = gluttonous + } + modifier = { + factor = 1.5 + trait = wroth + } + modifier = { + factor = 2.0 + trait = craven + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3335 + ai_chance = { + factor = 30 + + modifier = { + factor = 2 + trait = honest + } + } + liege = { + character_event = { + id = 3336 + tooltip = EVTTOOLTIP3336 + } + } + } + option = { + name = EVTOPTB3335 + ai_chance = { + factor = 70 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 0.5 + trait = honest + } + } + prestige = 1 + } +} + +#Brave Negative: Liege +character_event = { + id = 3336 + desc = EVTDESC3336 + picture = GFX_evt_melee + border = GFX_event_normal_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA3336 + FROM = { + opinion = { + modifier = brave_neg + who = ROOT + years = 2 + } + } + } +} + +### Shy positive ### +character_event = { + id = 3340 + desc = EVTDESC3340 + picture = GFX_evt_garden + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = shy + in_command = no + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 3.0 + trait = diligent + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3340 + prestige = -2 + } +} + +### Shy positive ### +character_event = { + id = 3345 + desc = EVTDESC3345 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = shy + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + is_female = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + OR = { + is_priest = yes + has_job_title = job_spiritual + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.4 + trait = wroth + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 3.0 + trait = diligent + } + } + + option = { + name = EVTOPTA3345 + random_courtier = { + limit = { + age = 16 + prisoner = no + is_female = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + OR = { + is_priest = yes + has_job_title = job_spiritual + } + } + character_event = { + id = 3346 + tooltip = EVTTOOLTIP3346 + } + } + } +} + +#Shy Positive: Courtier +character_event = { + id = 3346 + desc = EVTDESC3346 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3346 + FROM = { + reverse_opinion = { + modifier = shy_pos + who = ROOT + years = 2 + } + character_event = { + id = 3347 + tooltip = EVTTOOLTIP3347 + } + } + } +} + +#Shy Positive: The End +character_event = { + id = 3347 + desc = EVTDESC3347 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3347 + FROM = { + opinion = { + modifier = shy_pos + who = ROOT + years = 2 + } + } + } +} + +### Shy negative ### +character_event = { + id = 3350 + desc = EVTDESC3350 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = shy + in_command = no + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3350 + prestige = -15 + } +} + +### Shy negative: Start ### +character_event = { + id = 3355 + desc = EVTDESC3355 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = shy + in_command = no + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + trait = shy + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.5 + trait = humble + } + + } + + option = { + name = EVTOPTA3355 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + trait = shy + } + } + character_event = { + id = 3356 + tooltip = EVTTOOLTIP3356 + } + } + } +} + +#Shy Negative: Courtier +character_event = { + id = 3356 + desc = EVTDESC3356 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3356 + FROM = { + reverse_opinion = { + modifier = shy_neg + who = ROOT + years = 2 + } + character_event = { + id = 3357 + tooltip = EVTTOOLTIP3357 + } + } + } +} + +#Shy Negative: Courtier +character_event = { + id = 3357 + desc = EVTDESC3357 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3357 + FROM = { + opinion = { + modifier = shy_neg + who = ROOT + years = 2 + } + } + } +} + +### Ambitious positive ### +character_event = { + id = 3360 + desc = EVTDESC3360 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = ambitious + in_command = no + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3360 + scaled_wealth = 0.2 + } +} + +### Ambitious positive: Start ### +character_event = { + id = 3365 + desc = EVTDESC3365 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = ambitious + in_command = no + OR = { + tier = duke + tier = king + tier = emperor + prestige = 500 + } + any_courtier = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = ambitious + trait = diligent + trait = envious + } + } + } + + weight_multiplier = { + factor = 1 + + + modifier = { + factor = 0.3 + trait = patient + } + modifier = { + factor = 0.4 + trait = humble + } + + modifier = { + factor = 4.0 + trait = greedy + } + modifier = { + factor = 5.0 + trait = wroth + } + } + + option = { + name = EVTOPTA3365 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + character = ROOT + trait = incapable + } + OR = { + trait = ambitious + trait = diligent + trait = envious + } + } + character_event = { + id = 3366 + tooltip = EVTTOOLTIP3366 + } + } + } +} + +#Ambitious Positive: Courtier +character_event = { + id = 3366 + desc = EVTDESC3366 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3366 + FROM = { + reverse_opinion = { + modifier = ambitious_pos + who = ROOT + years = 2 + } + character_event = { + id = 3367 + tooltip = EVTTOOLTIP3367 + } + } + } +} + +#Ambitious Positive: The End +character_event = { + id = 3367 + desc = EVTDESC3367 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3367 + FROM = { + opinion = { + modifier = ambitious_pos + who = ROOT + years = 5 + } + } + wealth = 10 + } + + option = { + name = EVTOPTA3376 + FROM = { + opinion = { + modifier = ambitious_neg + who = ROOT + years = 5 + } + } + prestige = 10 + } +} + +### Ambitious ### +character_event = { + id = 3370 + desc = EVTDESC3370 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = ambitious + in_command = no + is_priest = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + opinion = { who = ROOT value = 75 } + reverse_opinion = { who = ROOT value = 50 } + NOT = { is_inaccessible_trigger = yes } + OR = { + is_priest = yes + has_job_title = job_spiritual + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.3 + trait = diligent + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3370 + piety = 15 + } +} + +### Ambitious - Muslim ### +#character_event = { +# id = 3371 +# desc = EVTDESC3371 +# picture = GFX_evt_jerusalem +# +# only_playable = yes +# min_age = 16 +# capable_only = yes +# prisoner = no +# religion_group = muslim +# war = no +# +# is_triggered_only = yes +# +# trigger = { +# trait = ambitious +# in_command = no +# NOT = { is_inaccessible_trigger = yes } +# is_priest = no +# any_courtier = { +# religion_group = muslim +# in_command = no +# prisoner = no +# opinion = { who = ROOT value = 75 } +# reverse_opinion = { who = ROOT value = 50 } +# NOR = { +# is_inaccessible_trigger = yes +# trait = incapable +# } +# OR = { +# is_priest = yes +# has_job_title = job_spiritual +# } +# } +# } +# +# weight_multiplier = { +# factor = 1 +# +# modifier = { +# factor = 3.0 +# trait = envious +# } +# modifier = { +# factor = 4.0 +# trait = wroth +# } +# +# modifier = { +# factor = 0.3 +# trait = diligent +# } +# modifier = { +# factor = 0.5 +# trait = chaste +# } +# } +# +# option = { +# name = EVTOPTA3370 +# piety = 15 +# } +#} + +### Ambitious: Start ### +character_event = { + id = 3375 + desc = EVTDESC3375 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = ambitious + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = the_merciful + } + any_courtier = { + age = 16 + is_female = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = ambitious + trait = diligent + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.4 + trait = charitable + } + } + + option = { + name = EVTOPTA3375 + random_courtier = { + limit = { + age = 16 + prisoner = no + in_command = no + is_female = no + NOR = { + trait = incapable + is_inaccessible_trigger = yes + trait = ambitious + trait = diligent + } + } + character_event = { + id = 3376 + tooltip = EVTTOOLTIP3376 + } + } + } + option = { + name = EVTOPTB3375 + add_character_modifier = { + name = the_merciful + duration = 90 + } + } +} + +#Ambitious: Courtier +character_event = { + id = 3376 + desc = EVTDESC3376 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3376 + opinion = { + modifier = ambitious_neg + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3377 + days = 1 + tooltip = EVTTOOLTIP3377 + } + } + } + option = { + name = EVTOPTB3376 + opinion = { + modifier = ambitious_pos + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3378 + days = 1 + tooltip = EVTTOOLTIP3378 + } + } + random = { + chance = 20 + add_trait = ambitious + } + } +} + +#Ambitious Neg: ROOT +character_event = { + id = 3377 + desc = EVTDESC3377 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3377 + FROM = { + opinion = { + modifier = ambitious_neg + who = ROOT + years = 2 + } + } + } +} + +#Ambitious Pos: ROOT +character_event = { + id = 3378 + desc = EVTDESC3378 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3378 + FROM = { + opinion = { + modifier = ambitious_pos + who = ROOT + years = 2 + } + } + } +} + +### Content positive: Start ### +character_event = { + id = 3380 + desc = EVTDESC3380 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = content + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + prisoner = no + OR = { + trait = stressed + trait = depressed + } + NOR = { + character = ROOT + is_inaccessible_trigger = yes + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.2 + trait = slothful + } + modifier = { + factor = 0.5 + trait = lustful + } + + + modifier = { + factor = 3.0 + trait = diligent + } + modifier = { + factor = 4.0 + trait = patient + } + } + + option = { + name = EVTOPTA3380 + random_courtier = { + limit = { + age = 16 + prisoner = no + OR = { + trait = stressed + trait = depressed + } + NOR = { + character = ROOT + trait = incapable + is_inaccessible_trigger = yes + } + } + character_event = { + id = 3381 + tooltip = EVTTOOLTIP3381 + } + } + } +} + +#Content Positive: Courtier +character_event = { + id = 3381 + desc = EVTDESC3381 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA3381 + tooltip_info = depressed + trigger = { + trait = depressed + } + remove_trait = depressed + FROM = { + reverse_opinion = { + modifier = content_pos + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 3382 + } + } + } + } + option = { + name = EVTOPTB3381 + tooltip_info = stressed + trigger = { + trait = stressed + } + remove_trait = stressed + FROM = { + reverse_opinion = { + modifier = content_pos + who = ROOT + years = 2 + } + hidden_tooltip = { + character_event = { + id = 3382 + } + } + } + } +} + +#Content Positive: The End +character_event = { + id = 3382 + desc = EVTDESC3382 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = EVTOPTA3382 + FROM = { + opinion = { + modifier = content_pos + who = ROOT + years = 2 + } + } + } +} + +### Content positive ### +character_event = { + id = 3385 + desc = EVTDESC3385 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = content + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.4 + trait = wroth + } + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3385 + piety = 15 + } +} + +### Content negative ### +character_event = { + id = 3390 + desc = EVTDESC3390 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = content + in_command = no + OR = { + trait = slothful + trait = charitable + NOT = { + trait = greedy + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = proud + } + + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3390 + scaled_wealth = -0.05 + } +} + +### Content negative ### +character_event = { + id = 3395 + desc = EVTDESC3395 + picture = GFX_evt_library + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = content + in_command = no + NOT = { + trait = diligent + } + any_courtier = { + age = 16 + prisoner = no + NOT = { trait = incapable } + OR = { + NOT = { + trait = content + } + trait = diligent + trait = ambitious + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 5.0 + trait = proud + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3395 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOT = { trait = incapable } + OR = { + NOT = { + trait = content + } + trait = diligent + trait = ambitious + } + } + character_event = { + id = 3396 + days = 1 + tooltip = EVTTOOLTIP3396 + } + } + } +} + +#Content Negative: Courtier +character_event = { + id = 3396 + desc = EVTDESC3396 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3396 + FROM = { + reverse_opinion = { + modifier = content_neg + who = ROOT + years = 1 + } + character_event = { + id = 3397 + days = 1 + tooltip = EVTTOOLTIP3397 + } + } + } +} + +#Content Negative: ROOT +character_event = { + id = 3397 + desc = EVTDESC3397 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3397 + FROM = { + opinion = { + modifier = content_neg + who = ROOT + years = 1 + } + } + } +} + +### Arbitrary positive ### +character_event = { + id = 3400 + desc = EVTDESC3400 + picture = GFX_evt_feast + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = arbitrary + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.2 + trait = slothful + } + modifier = { + factor = 0.5 + trait = lustful + } + + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 4.0 + trait = patient + } + } + + option = { + name = EVTOPTA3400 + prestige = 15 + } +} + +### Arbitrary: Start ### +character_event = { + id = 3405 + desc = EVTDESC3405 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = arbitrary + any_courtier = { + age = 16 + prisoner = no + in_command = no + NOT = { is_inaccessible_trigger = yes } + NOT = { + trait = incapable + } + NOT = { + character = ROOT + } + OR = { + trait = envious + trait = just + trait = gregarious + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 4.0 + trait = patient + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3405 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOT = { is_inaccessible_trigger = yes } + NOT = { + trait = incapable + } + NOT = { + character = ROOT + } + OR = { + trait = envious + trait = just + trait = gregarious + } + } + character_event = { + id = 3406 + tooltip = EVTTOOLTIP3406 + } + } + } +} + +#Arbitrary: Courtier +character_event = { + id = 3406 + desc = EVTDESC3406 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3406 + FROM = { + reverse_opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + character_event = { + id = 3407 + days = 1 + tooltip = EVTTOOLTIP3407 + } + } + } + option = { + name = EVTOPTB3406 + FROM = { + reverse_opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + character_event = { + id = 3408 + days = 1 + tooltip = EVTTOOLTIP3408 + } + } + } +} + +#Arbitrary Neg: ROOT +character_event = { + id = 3407 + desc = EVTDESC3407 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3407 + FROM = { + opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + } + } +} + +#Arbitrary Pos: ROOT +character_event = { + id = 3408 + desc = EVTDESC3408 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3408 + FROM = { + opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + } + } +} + +### Arbitrary - Muslim: Start ### +#character_event = { +# id = 3411 +# desc = EVTDESC3411 +# picture = GFX_evt_emissary +# +# only_playable = yes +# min_age = 16 +# capable_only = yes +# prisoner = no +# war = no +# religion_group = muslim +# +# is_triggered_only = yes +# +# trigger = { +# in_command = no +# NOT = { is_inaccessible_trigger = yes } +# trait = arbitrary +# any_courtier = { +# age = 16 +# prisoner = no +# in_command = no +# NOR = { +# is_inaccessible_trigger = yes +# trait = incapable +# character = ROOT +# } +# OR = { +# trait = envious +# trait = just +# trait = gregarious +# } +# } +# } +# +# weight_multiplier = { +# factor = 1 +# +# modifier = { +# factor = 0.3 +# trait = greedy +# } +# modifier = { +# factor = 0.5 +# trait = proud +# } +# +# modifier = { +# factor = 4.0 +# trait = patient +# } +# modifier = { +# factor = 5.0 +# trait = humble +# } +# } +# +# option = { +# name = EVTOPTA3411 +# random_courtier = { +# limit = { +# age = 16 +# prisoner = no +# in_command = no +# NOT = { +# is_inaccessible_trigger = yes +# trait = incapable +# character = ROOT +# } +# OR = { +# trait = envious +# trait = just +# trait = gregarious +# } +# } +# character_event = { +# id = 3412 +# days = 1 +# random = 1 +# tooltip = EVTTOOLTIP3412 +# } +# } +# } +#} + +#Arbitrary: Courtier +character_event = { + id = 3412 + desc = EVTDESC3412 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA3412 + FROM = { + reverse_opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + set_character_flag = flag_arbitrary_neg + character_event = { + id = 3413 + days = 5 + random = 2 + tooltip = EVTTOOLTIPA3413 + } + } + } + option = { + name = EVTOPTB3412 + FROM = { + reverse_opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + set_character_flag = flag_arbitrary_pos + character_event = { + id = 3413 + days = 5 + random = 2 + tooltip = EVTTOOLTIPB3413 + } + } + } +} + +#Arbitrary Neg: ROOT +character_event = { + id = 3413 + desc = EVTDESC3413 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA3413 + trigger = { + has_character_flag = flag_arbitrary_neg + } + FROM = { + opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + } + clr_character_flag = flag_arbitrary_neg + } + option = { + name = EVTOPTB3413 + trigger = { + has_character_flag = flag_arbitrary_pos + } + FROM = { + opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + } + clr_character_flag = flag_arbitrary_pos + } +} + +### Arbitrary negative ### +character_event = { + id = 3410 + desc = EVTDESC3410 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = arbitrary + in_command = no + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = proud + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.4 + trait = charitable + } + } + + option = { + name = EVTOPTA3410 + scaled_wealth = -0.05 + } +} + +### Arbitrary: Start ### +character_event = { + id = 3415 + desc = EVTDESC3415 + picture = GFX_evt_into_the_dungeon + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = arbitrary + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + is_ruler = yes + has_job_title = job_marshal + has_job_title = job_chancellor + } + any_courtier = { + age = 16 + in_command = no + at_location = ROOT + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + trait = arbitrary + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 5.0 + trait = proud + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.4 + trait = charitable + } + } + + option = { + name = EVTOPTA3415 + random_courtier = { + limit = { + age = 16 + in_command = no + at_location = ROOT + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + trait = arbitrary + } + } + character_event = { + id = 3416 + tooltip = EVTTOOLTIP3416 + } + } + } +} + +#Arbitrary: Courtier +character_event = { + id = 3416 + desc = EVTDESC3416 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOPTA3416 + FROM = { + reverse_opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + character_event = { + id = 3417 + days = 1 + tooltip = EVTTOOLTIP3417 + } + } + } + option = { + name = EVTOPTB3416 + FROM = { + reverse_opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + character_event = { + id = 3418 + days = 1 + tooltip = EVTTOOLTIP3418 + } + } + } +} + +#Arbitrary Neg: ROOT +character_event = { + id = 3417 + desc = EVTDESC3417 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOPTA3417 + FROM = { + opinion = { + modifier = arbitrary_neg + who = ROOT + years = 2 + } + } + } +} + +#Arbitrary Pos: ROOT +character_event = { + id = 3418 + desc = EVTDESC3418 + picture = GFX_evt_into_the_dungeon + + is_triggered_only = yes + + option = { + name = EVTOPTA3418 + FROM = { + opinion = { + modifier = arbitrary_pos + who = ROOT + years = 2 + } + } + } +} + +### Just positive: Start ### +character_event = { + id = 3420 + desc = EVTDESC3420 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = just + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + in_command = no + age = 16 + prisoner = no + OR = { + trait = just + NAND = { + trait = arbitrary + trait = deceitful + } + } + NOT = { + character = ROOT + is_inaccessible_trigger = yes + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = humble + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3420 + random_courtier = { + limit = { + in_command = no + age = 16 + prisoner = no + OR = { + trait = just + NAND = { + trait = arbitrary + trait = deceitful + } + } + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + character_event = { + id = 3421 + tooltip = EVTTOOLTIP3421 + } + } + } +} + +#Just Positive: Courtier +character_event = { + id = 3421 + desc = EVTDESC3421 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3421 + FROM = { + reverse_opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + character_event = { + id = 3422 + tooltip = EVTTOOLTIP3422 + } + } + } +} + +#Just Positive: The End +character_event = { + id = 3422 + desc = EVTDESC3422 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3422 + FROM = { + opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + } + } +} + +### Just positive ### +character_event = { + id = 3425 + desc = EVTDESC3425 + picture = GFX_evt_emissary + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = just + in_command = no + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = proud + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3425 + prestige = 15 + } +} + +### Just ### +character_event = { + id = 3430 + desc = EVTDESC3430 + picture = GFX_evt_library + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = just + in_command = no + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3430 + scaled_wealth = -0.05 + } +} + +### Just: Start ### +character_event = { + id = 3435 + desc = EVTDESC3435 + picture = GFX_evt_throne_room + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = just + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + in_command = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + } + opinion = { who = ROOT value = 30 } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.5 + trait = humble + } + } + + immediate = { + random_courtier = { + limit = { + age = 16 + in_command = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + trait = incapable + } + opinion = { who = ROOT value = 30 } + } + save_event_target_as = farmer_dispute_courtier + } + } + + option = { + name = EVTOPTA3435 + ai_chance = { + factor = 50 + } + event_target:farmer_dispute_courtier = { + set_character_flag = farmer_wrong + character_event = { + id = 3436 + tooltip = EVTTOOLTIP3436 + } + } + } + option = { + name = EVTOPTB3435 + ai_chance = { + factor = 50 + } + event_target:farmer_dispute_courtier = { + set_character_flag = farmer_correct + character_event = { + id = 3436 + tooltip = EVTTOOLTIP3436 + } + } + } +} + +#Just: Courtier +character_event = { + id = 3436 + desc = EVTDESC3436 + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = EVTOPTA3436 + ai_chance = { + factor = 50 + } + trigger = { + has_character_flag = farmer_correct + } + clr_character_flag = farmer_correct + FROM = { + reverse_opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + set_character_flag = approving_FROM + character_event = { + id = 3437 + days = 1 + tooltip = EVTTOOLTIP3437 + } + } + } + option = { + name = EVTOPTB3436 + ai_chance = { + factor = 50 + } + trigger = { + has_character_flag = farmer_correct + } + clr_character_flag = farmer_correct + FROM = { + reverse_opinion = { + modifier = just_neg + who = ROOT + years = 2 + } + set_character_flag = angry_FROM + character_event = { + id = 3438 + days = 1 + tooltip = EVTTOOLTIP3438 + } + } + } + option = { + name = EVTOPTC3436 + ai_chance = { + factor = 50 + } + trigger = { + has_character_flag = farmer_wrong + } + clr_character_flag = farmer_wrong + FROM = { + reverse_opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + set_character_flag = glad_FROM + character_event = { + id = 3437 + days = 1 + tooltip = EVTTOOLTIP3437 + } + } + } + option = { + name = EVTOPTD3436 + ai_chance = { + factor = 50 + } + trigger = { + has_character_flag = farmer_wrong + } + clr_character_flag = farmer_wrong + FROM = { + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + set_character_flag = disappointed_FROM + character_event = { + id = 3438 + days = 1 + tooltip = EVTTOOLTIP3438 + } + } + } +} + +#Just pos: ROOT +character_event = { + id = 3437 + desc = EVTDESC3437 + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = EVTOPTA3437 + trigger = { + has_character_flag = glad_FROM + } + clr_character_flag = glad_FROM + FROM = { + opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3437 + trigger = { + has_character_flag = approving_FROM + } + clr_character_flag = approving_FROM + FROM = { + opinion = { + modifier = just_pos + who = ROOT + years = 2 + } + } + } +} + +#Just neg: ROOT +character_event = { + id = 3438 + desc = EVTDESC3438 + picture = GFX_evt_throne_room + + is_triggered_only = yes + + option = { + name = EVTOPTA3438 + trigger = { + has_character_flag = disappointed_FROM + } + clr_character_flag = disappointed_FROM + FROM = { + opinion = { + modifier = just_neg + who = ROOT + years = 2 + } + reverse_opinion = { + modifier = opinion_idiot + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3438 + trigger = { + has_character_flag = angry_FROM + } + clr_character_flag = angry_FROM + FROM = { + opinion = { + modifier = just_neg + who = ROOT + years = 2 + } + } + opinion = { + modifier = opinion_idiot + who = FROM + years = 2 + } + } +} + +### Cynical Negative: Start ### +character_event = { + id = 3440 + desc = EVTDESC3440 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = cynical + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = the_cynical + } + any_courtier = { + age = 16 + in_command = no + prisoner = no + treasury = 20 + NOR = { + trait = cynical + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 4.0 + trait = patient + } + } + + option = { + name = EVTOPTA3440 + random_courtier = { + limit = { + age = 16 + in_command = no + prisoner = no + treasury = 20 + NOR = { + trait = cynical + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + character_event = { + id = 3441 + tooltip = EVTTOOLTIP3441 + } + } + } +} + +#Cynical Negative: Courtier +character_event = { + id = 3441 + desc = EVTDESC3441 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3441 + opinion = { + modifier = cynical_neg + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3442 + tooltip = EVTTOOLTIP3442 + } + } + } +} + +#Cynical Negative: The End +character_event = { + id = 3442 + desc = EVTDESC3442 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3442 + add_character_modifier = { + name = the_cynical + duration = 365 + } + FROM = { + opinion = { + modifier = cynical_neg + who = ROOT + years = 2 + } + } + } +} + +### Cynical positive ### +character_event = { + id = 3445 + desc = EVTDESC3445 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = cynical + in_command = no + any_courtier = { + age = 16 + in_command = no + trait = cynical + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.3 + trait = greedy + } + + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3445 + prestige = 15 + } +} + +### Cynical negative: Start ### +character_event = { + id = 3450 + desc = EVTDESC3450 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = cynical + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = the_cynical + } + any_courtier = { + age = 16 + in_command = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + trait = cynical + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = wroth + } + modifier = { + factor = 5.0 + trait = proud + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.4 + trait = patient + } + } + + option = { + name = EVTOPTA3450 + random_courtier = { + limit = { + age = 16 + in_command = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + trait = cynical + } + } + character_event = { + id = 3451 + tooltip = EVTTOOLTIP3451 + } + } + } +} + +#Cynical Negative: Courtier +character_event = { + id = 3451 + desc = EVTDESC3451 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3451 + opinion = { + modifier = cynical_neg + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3452 + tooltip = EVTTOOLTIP3452 + } + } + } +} + +#Cynical Negative: The End +character_event = { + id = 3452 + desc = EVTDESC3452 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3452 + FROM = { + opinion = { + modifier = cynical_neg + who = ROOT + years = 2 + } + } + random = { + chance = 20 + remove_trait = cynical + } + } +} + +### Cynical negative ### +character_event = { + id = 3455 + desc = EVTDESC3455 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = cynical + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = zealous + is_priest = yes + NOT = { + trait = cynical + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.3 + trait = diligent + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3455 + piety = -15 + } +} + + + +### Zealous positive: Start ### +character_event = { + id = 3460 + desc = EVTDESC3460 + picture = GFX_evt_heretic + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = zealous + higher_tier_than = baron + is_councillor = no + any_courtier = { + age = 16 + in_command = no + prisoner = no + OR = { + trait = zealous + is_priest = yes + } + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.4 + trait = wroth + } + + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 4.0 + trait = patient + } + } + + option = { + name = EVTOPTA3460 + random_courtier = { + limit = { + age = 16 + in_command = no + prisoner = no + OR = { + trait = zealous + is_priest = yes + } + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + character_event = { + id = 3461 + tooltip = EVTTOOLTIP3461 + } + } + } +} + +#Zealous positive: Courtier +character_event = { + id = 3461 + desc = EVTDESC3461 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA3461 + opinion = { + modifier = zealous_pos + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3462 + tooltip = EVTTOOLTIP3462 + } + } + } +} + +#Zealous positive: The End +character_event = { + id = 3462 + desc = EVTDESC3462 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA3462 + FROM = { + opinion = { + modifier = zealous_pos + who = ROOT + years = 2 + } + } + } +} + +### Zealous positive ### +character_event = { + id = 3465 + desc = EVTDESC3465 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = zealous + in_command = no + OR = { + higher_tier_than = baron + is_councillor = yes + } + prestige = 150 + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.4 + trait = wroth + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3465 + prestige = 15 + } +} + +### Zealous negative: Start ### +character_event = { + id = 3470 + desc = EVTDESC3470 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = zealous + in_command = no + OR = { + spouse = { + is_alive = yes + is_abroad = no + religion_group = christian + NOT = { + trait = zealous + } + opinion = { who = ROOT value = 100 } + } + any_child = { + age = 15 + NOT = { + trait = zealous + } + religion_group = christian + opinion = { who = ROOT value = 100 } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 3.0 + trait = envious + } + + modifier = { + factor = 0.2 + trait = kind + } + modifier = { + factor = 0.5 + trait = humble + } + } + + immediate = { + random_child = { + limit = { + age = 15 + NOT = { + trait = zealous + } + religion_group = christian + opinion = { who = ROOT value = 100 } + } + save_event_target_as = nonzealous_child + } + } + + option = { + name = EVTOPTA3470 + trigger = { + spouse = { + is_alive = yes + is_abroad = no + NOT = { + trait = zealous + } + religion_group = christian + opinion = { who = ROOT value = 100 } + } + } + spouse = { + set_character_flag = show_in_option + clr_character_flag = show_in_option + character_event = { + id = 3471 + tooltip = EVTTOOLTIP3471 + } + } + } + option = { + name = EVTOPTB3470 + trigger = { + event_target:nonzealous_child = { always = yes } + } + event_target:nonzealous_child = { + set_character_flag = show_in_option + clr_character_flag = show_in_option + character_event = { + id = 3471 + tooltip = EVTTOOLTIPB3471 + } + } + } +} + +#Zealous negative: Spouse +character_event = { + id = 3471 + desc = EVTDESC3471 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3471 + opinion = { + modifier = zealous_neg + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3472 + tooltip = EVTTOOLTIP3472 + } + } + } +} + +#Zealous negative: Courtier +character_event = { + id = 3472 + desc = EVTDESC3472 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3472 + FROM = { + opinion = { + modifier = zealous_neg + who = ROOT + years = 2 + } + } + } +} + +### Zealous negative ### +character_event = { + id = 3475 + desc = EVTDESC3475 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = zealous + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.2 + trait = kind + } + } + + option = { + name = EVTOPTA3475 + scaled_wealth = -0.05 + } +} + + +#Zealous positive: Courtier +character_event = { + id = 3477 + desc = EVTDESC3477 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA3461 + opinion = { + modifier = zealous_pos + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3478 + days = 1 + random = 2 + tooltip = EVTTOOLTIP3478 + } + } + } +} + +#Zealous positive: The End +character_event = { + id = 3478 + desc = EVTDESC3478 + picture = GFX_evt_heretic + + is_triggered_only = yes + + option = { + name = EVTOPTA3462 + FROM = { + opinion = { + modifier = zealous_pos + who = ROOT + years = 2 + } + } + } +} + +###################################### +# PARANOID EVENTS +###################################### + +### Imaginary Plot ### +character_event = { + id = 3480 + desc = EVTDESC3480 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = paranoid + in_command = no + any_courtier = { + age = 16 + prisoner = no + OR = { + trait = trusting + trait = ambitious + trait = diligent + } + NOR = { + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = gluttonous + } + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 4.0 + trait = charitable + } + modifier = { + factor = 5.0 + trait = chaste + } + } + + option = { + name = EVTOPTA3480 + random_courtier = { + limit = { + age = 16 + prisoner = no + OR = { + trait = trusting + trait = ambitious + trait = diligent + } + NOR = { + character = ROOT + trait = incapable + } + } + character_event = { + id = 3481 + days = 2 + tooltip = EVTTOOLTIP3481 + } + } + } +} + +#Paranoid +character_event = { + id = 3481 + desc = EVTDESC3481 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA3481 + opinion = { + modifier = paranoid_pos + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3482 + days =3 + tooltip = EVTTOOLTIP3482 + } + } + } +} + +#Paranoid +character_event = { + id = 3482 + desc = EVTDESC3482 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA3482 + FROM = { + opinion = { + modifier = paranoid_pos + who = ROOT + years = 2 + } + } + } +} + +### Think someone is trying to kill you ### +character_event = { + id = 3485 + desc = EVTDESC3485 + picture = GFX_evt_hunt + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = paranoid + in_command = no + NOT = { is_inaccessible_trigger = yes } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.4 + trait = wroth + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 3.0 + trait = diligent + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3485 + random = { + chance = 15 + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 }} + + } + } + + option = { + name = EVTOPTB3485 + trigger = { + any_courtier = { + age = 16 + is_female = no + prisoner = no + OR = { + trait = deceitful + trait = wroth + trait = brave + trait = ambitious + trait = diligent + } + NOR = { + character = ROOT + trait = incapable + } + + } + } + + random_courtier = { + limit = { + age = 16 + is_female = no + prisoner = no + OR = { + trait = deceitful + trait = wroth + trait = brave + trait = ambitious + trait = diligent + } + NOR = { + character = ROOT + trait = incapable + } + } + opinion = { + modifier = paranoid_neg + who = ROOT + years = 10 + } + } + } +} + +### Imagine that friend trying to poison? ### +character_event = { + id = 3490 + desc = EVTDESC3490 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = paranoid + in_command = no + any_courtier = { + age = 16 + prisoner = no + opinion = { who = ROOT value = 65 } + NOR = { + character = ROOT + trait = incapable + trait = paranoid + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 4.0 + trait = gluttonous + } + modifier = { + factor = 5.0 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = temperate + } + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3490 + random_courtier = { + limit = { + age = 16 + prisoner = no + opinion = { who = ROOT value = 65 } + NOR = { + character = ROOT + trait = incapable + trait = paranoid + } + } + character_event = { + id = 3491 + days = 1 + tooltip = EVTTOOLTIP3491 + } + } + } +} + +#Paranoid +character_event = { + id = 3491 + desc = EVTDESC3491 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA3491 + opinion = { + modifier = paranoid_neg + who = FROM + years = 10 + } + FROM = { + character_event = { + id = 3492 + days = 2 + tooltip = EVTTOOLTIP3492 + } + } + } +} + +#Paranoid +character_event = { + id = 3492 + desc = EVTDESC3492 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA3492 + FROM = { + opinion = { + modifier = paranoid_neg + who = ROOT + years = 2 + } + } + } +} + +### Paranoia is dangerous ### +character_event = { + id = 3495 + desc = EVTDESC3495 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + prestige = 100 + trait = paranoid + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2.0 + trait = slothful + } + modifier = { + factor = 3.0 + trait = envious + } + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3495 + prestige = -10 + + if = { + limit = { NOR = { trait = craven trait = berserker } } + random = { + chance = 15 + add_trait = craven + hidden_tooltip = { character_event = { id = 38257 }} + } + } + } + option = { + name = EVTOPTB3495 + any_courtier = { + limit = { + age = 16 + prisoner = no + } + opinion = { + modifier = paranoid_neg + who = ROOT + years = 5 + } + } + } +} + +### Trusting positive ### +character_event = { + id = 3500 + desc = EVTDESC3500 + picture = GFX_evt_carriage + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = trusting + in_command = no + piety = 100 + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = greedy + } + modifier = { + factor = 0.3 + trait = envious + } + + + modifier = { + factor = 3.0 + trait = diligent + } + modifier = { + factor = 5.0 + trait = humble + } + } + + option = { + name = EVTOPTA3500 + piety = 15 + } +} + +### Trusting positive: Start ### +character_event = { + id = 3505 + desc = EVTDESC3505 + picture = GFX_evt_carriage + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = trusting + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + tier = count + tier = duke + is_councillor = yes + } + any_courtier = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = envious + } + modifier = { + factor = 0.5 + trait = lustful + } + + modifier = { + factor = 5.0 + trait = temperate + } + modifier = { + factor = 4.0 + trait = patient + } + } + + option = { + name = EVTOPTA3505 + random_courtier = { + limit = { + age = 16 + prisoner = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + character_event = { + id = 3506 + tooltip = EVTTOOLTIP3506 + } + } + } +} + +#Trusting Positive: Courtier +character_event = { + id = 3506 + desc = EVTDESC3506 + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = EVTOPTA3506 + opinion = { + modifier = trusting_pos + who = FROM + years = 1 + } + FROM = { + character_event = { + id = 3507 + tooltip = EVTTOOLTIP3507 + } + } + } +} + +#Trusting Positive: The End +character_event = { + id = 3507 + desc = EVTDESC3507 + picture = GFX_evt_carriage + + is_triggered_only = yes + + option = { + name = EVTOPTA3507 + FROM = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 1 + } + } + opinion = { + modifier = trusting_pos + who = FROM + years = 2 + } + } +} + +### Trusting negative ### +character_event = { + id = 3510 + desc = EVTDESC3510 + picture = GFX_evt_drunk + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = trusting + in_command = no + treasury = 200 + NOR = { + learning = 9 + is_inaccessible_trigger = yes + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.4 + trait = charitable + } + modifier = { + factor = 0.4 + trait = patient + } + } + + option = { + name = EVTOPTA3510 + scaled_wealth = -0.05 + } +} + +### Trusting negative: Start ### +character_event = { + id = 3515 + desc = EVTDESC3515 + picture = GFX_evt_falconing + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = trusting + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + prisoner = no + OR = { + NAND = { + trait = brave + trait = falconer + } + trait = paranoid + martial = 8 + } + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3.0 + trait = envious + } + modifier = { + factor = 4.0 + trait = wroth + } + + modifier = { + factor = 0.4 + trait = patient + } + modifier = { + factor = 0.5 + trait = humble + } + } + + option = { + name = EVTOPTA3515 + random_courtier = { + limit = { + age = 16 + prisoner = no + OR = { + NAND = { + trait = brave + trait = falconer + } + trait = paranoid + martial = 8 + } + NOR = { + is_inaccessible_trigger = yes + character = ROOT + trait = incapable + } + } + character_event = { + id = 3516 + tooltip = EVTTOOLTIP3516 + } + } + } +} + +#Trusting negative: Courtier +character_event = { + id = 3516 + desc = EVTDESC3516 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3516 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + character_event = { + id = 3517 + tooltip = EVTTOOLTIP3517 + } + } + } +} + +#Trusting negative: The End +character_event = { + id = 3517 + desc = EVTDESC3517 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3517 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 2 + } + } +} + +################################################################################### +# LIFESTYLE TRAITS +################################################################################### + +### CELIBATE ### + +#Celibate +character_event = { + id = 3520 + desc = EVTDESC3520 + picture = GFX_evt_quarrel + + only_playable = yes + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = celibate + in_command = no + fertility = 0.4 + has_lover = no + OR = { + trait = chaste + piety = 50 + trait = humble + } + is_married = yes + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + has_lover = no + is_pregnant = no + OR = { + trait = lustful + trait = hedonist + NAND = { + trait = chaste + trait = celibate + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = wroth + } + + modifier = { + factor = 2 + diplomacy = 8 + } + } + + option = { + name = EVTOPTA3520 + piety = 10 + spouse = { + character_event = { + id = 3521 + days = 2 + tooltip = EVTTOOLTIP3521 + } + opinion = { + modifier = opinion_spurned + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB3520 + remove_trait = celibate + piety = -10 + spouse = { + add_lover = ROOT + } + } + option = { + name = EVTOPTC3520 + trigger = { + fertility = 0.5 + spouse = { + is_alive = yes + is_abroad = no + fertility = 0.5 + OR = { + reverse_opinion = { who = ROOT value = 30 } + opinion = { who = ROOT value = 30 } + } + } + } + remove_trait = celibate + piety = -10 + spouse = { + add_lover = ROOT + } + random = { + chance = 20 + spouse = { + impregnate_cuckoo = ROOT + } + } + } +} + +#Celibate: Spouse +character_event = { + id = 3521 + desc = EVTDESC3521 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3521 + if = { + limit = { + religion_group = christian + } + add_trait = chaste + break = yes + } + #if = { + # limit = { + # religion_group = muslim + # } + # piety = 5 + #} + } + option = { + name = EVTOPTB3521 + spouse = { + reverse_opinion = { + modifier = opinion_spurned + who = ROOT + years = 1 + } + } + } +} + +#Celibate: Advice +character_event = { + id = 3525 + desc = EVTDESC3525 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 27 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = celibate + + OR = { + trait = chaste + NOT = { + trait = lustful + } + piety = 30 + } + any_vassal = { + trait = chaste + age = 16 + NOR = { + age = 25 + is_inaccessible_trigger = yes + trait = celibate + trait = hedonist + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = shy + } + + modifier = { + factor = 2 + trait = gregarious + } + } + + immediate = { + random_vassal = { + limit = { + trait = chaste + age = 16 + NOR = { + age = 25 + is_inaccessible_trigger = yes + trait = celibate + trait = hedonist + } + } + save_event_target_as = chaste_vassal + } + } + + option = { + name = EVTOPTA3525 + event_target:chaste_vassal = { + character_event = { + id = 3526 + days = 2 + tooltip = EVTTOOLTIP3526 + } + } + } + option = { + name = EVTOPTB3525 + event_target:chaste_vassal = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTA3525 + tooltip_info = zealous + trigger = { + trait = zealous + } + if = { + limit = { + NOT = { trait = paranoid } + } + add_trait = paranoid + } + event_target:chaste_vassal = { + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 + } + } + opinion = { + modifier = opinion_horrified + who = ROOT + years = 5 + } + } + } +} + +#Celibate: Vassal +character_event = { + id = 3526 + desc = EVTDESC3526 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3526 + FROM = { + character_event = { + id = 3527 + days = 2 + tooltip = EVTTOOLTIP3527 + } + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 2 + } + } + option = { + name = EVTOPTB3526 + add_character_modifier = { + name = the_perturbed + duration = 90 + } + } +} + +#Celibate: ROOT +character_event = { + id = 3527 + desc = EVTDESC3527 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3527 + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + hidden_tooltip = { + random = { + chance = 10 + character_event = { + id = 5062 + days = 2 + } + } + } + } + } +} + +### Celibate: Start ### +character_event = { + id = 3530 + desc = EVTDESC3530 + picture = GFX_evt_bishop + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + is_triggered_only = yes + religion_group = christian + war = no + + trigger = { + trait = celibate + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = lustful + } + any_courtier = { + age = 16 + is_priest = yes + is_female = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = hedonist + trait = lustful + } + opinion = { who = ROOT value = 0 } + reverse_opinion = { who = ROOT value = 0 } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + diplomacy = 5 + } + + modifier = { + factor = 2 + trait = proud + } + } + + option = { + name = EVTOPA3530 + random_courtier = { + limit = { + age = 16 + is_priest = yes + is_female = no + NOT = { + is_inaccessible_trigger = yes + } + OR = { + trait = hedonist + trait = lustful + } + opinion = { who = ROOT value = 0 } + reverse_opinion = { who = ROOT value = 0 } + } + character_event = { + id = 3531 + days = 3 + tooltip = EVTTOOLTIP3530 + } + } + } + option = { + name = EVTOPTB3530 + if = { + limit = { + NOT = { trait = slothful } + } + add_trait = slothful + } + } +} + +#Celibate: Vassal +character_event = { + id = 3531 + desc = EVTDESC3531 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3531 + opinion = { + modifier = opinion_embarrassed + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3532 + days = 1 + tooltip = EVTTOOLTIP3532 + } + } + } +} + +#Celibate: ROOT +character_event = { + id = 3532 + desc = EVTDESC3532 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA3532 #Embarrassed + piety = 10 + } + option = { + name = EVTOPTB3532 + add_character_modifier = { + name = the_idle + duration = 90 + } + } + option = { + name = EVTOPTC3532 + random = { + chance = 25 + add_trait = humble + } + } +} + +#Celibate: Start ### +character_event = { + id = 3535 + desc = EVTDESC3535 + picture = GFX_evt_knight_kneeling + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = celibate + trait = zealous + NOR = { + is_inaccessible_trigger = yes + trait = lustful + } + any_courtier = { + age = 16 + in_command = no + trait = celibate + is_priest = yes + NOR = { + is_inaccessible_trigger = yes + trait = lustful + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.5 + trait = proud + } + + modifier = { + factor = 2 + trait = humble + } + } + + option = { + name = EVTOPTA3535 + prestige = -10 + add_character_modifier = { + name = the_flagellant + duration = 365 + } + character_event = { + id = 3536 + tooltip = EVTTOOLTIP3536 + } + } + option = { + name = EVTOPTB3535 + piety = -5 + if = { + limit = { + NOT = { trait = slothful } + } + add_trait = slothful + } + random = { + chance = 10 + remove_trait = zealous + } + } +} + +#Celibate +character_event = { + id = 3536 + desc = EVTDESC3536 + picture = GFX_evt_knight_kneeling + + is_triggered_only = yes + + option = { + name = EVTOPTA3536 + prestige = 10 + random_courtier = { + limit = { + trait = celibate + is_priest = yes + NOT = { + trait = lustful + } + } + character_event = { + id = 3537 + days = 2 + tooltip = EVTTOOLTIP3537 + } + } + } +} + +#Celibate: Courtier +character_event = { + id = 3537 + desc = EVTDESC3537 + picture = GFX_evt_knight_kneeling + + is_triggered_only = yes + + option = { + name = EVTOPTA3537 + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + FROM = { + set_character_flag = flagellation_idol + character_event = { + id = 3538 + days = 2 + tooltip = EVTTOOLTIPA3538 + } + } + } + + option = { + name = EVTOPTB3537 + opinion = { + modifier = opinion_pitiful + who = FROM + years = 2 + } + FROM = { + set_character_flag = flagellation_idiot + character_event = { + id = 3538 + days = 2 + tooltip = EVTTOOLTIPB3538 + } + } + } +} + +#Celibate: ROOT +character_event = { + id = 3538 + desc = EVTDESC3538 + picture = GFX_evt_knight_kneeling + + is_triggered_only = yes + + option = { + name = EVTOPTA3538 + trigger = { + has_character_flag = flagellation_idol + } + clr_character_flag = flagellation_idol + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + } + + option = { + name = EVTOPTB3538 + trigger = { + has_character_flag = flagellation_idiot + } + clr_character_flag = flagellation_idiot + opinion = { + modifier = opinion_pitiful + who = FROM + years = 2 + } + } +} + +### SCHOLAR ### + +### Scholar: Gain learning ### +character_event = { + id = 3540 + desc = EVTDESC3540 + picture = GFX_evt_library + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = scholar + in_command = no + NOR = { + is_inaccessible_trigger = yes + learning = 15 + trait = slothful + trait = content + } + any_courtier = { + age = 16 + NOT = { is_inaccessible_trigger = yes } + OR = { + learning = 10 + trait = scholar + } + has_job_action = no + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = ambitious + } + + modifier = { + factor = 2 + trait = diligent + } + + modifier = { + factor = 0.5 + trait = shy + } + + modifier = { + factor = 0.2 + trait = wroth + } + } + + immediate = { + random_courtier = { + limit = { + age = 16 + NOT = { is_inaccessible_trigger = yes } + OR = { + learning = 10 + trait = scholar + } + has_job_action = no + } + save_event_target_as = my_courtier + } + } + option = { + name = EVTOPTA3540 #Demand + piety = -10 + event_target:my_courtier = { + character_event = { + id = 3541 + days = 2 + tooltip = EVTTOOLTIP3541 + } + } + } + option = { + name = EVTOPTB3540 #Ask nicely + prestige = -10 + event_target:my_courtier = { + set_character_flag = asked_scholar + character_event = { + id = 3541 + days = 2 + tooltip = EVTTOOLTIP3541 + } + } + } + option = { + name = EVTOPTC3540 #Bribe + scaled_wealth = -0.10 + event_target:my_courtier = { + set_character_flag = bribed_scholar + character_event = { + id = 3541 + days = 2 + tooltip = EVTTOOLTIP3541 + } + } + } + option = { + name = EVTOPTD3540 #Ignore + add_trait = content + } +} + +#Scholar: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3541 + desc = EVTDESC3541 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3541 + trigger = { + has_character_flag = pressured_scholar + } + clr_character_flag = pressured_scholar + FROM = { + set_character_flag = irritated_scholar + character_event = { + id = 3542 + days = 7 + tooltip = EVTTOOLTIP3542 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3541 + trigger = { + has_character_flag = asked_scholar + } + clr_character_flag = asked_scholar + FROM = { + set_character_flag = happy_scholar + character_event = { + id = 3542 + days = 7 + tooltip = EVTTOOLTIP3542 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3541 + trigger = { + has_character_flag = bribed_scholar + } + clr_character_flag = bribed_scholar + treasury = 10 + FROM = { + set_character_flag = generous_scholar + character_event = { + id = 3542 + days = 7 + tooltip = EVTTOOLTIP3542 + } + } + } +} + +#Scholar: ROOT get +learning +character_event = { + id = 3542 + desc = EVTDESC3542 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3542 + trigger = { + has_character_flag = irritated_scholar + } + clr_character_flag = irritated_scholar + opinion = { + modifier = opinion_disgruntled + who = FROM + years = 2 + } + change_learning = 1 + } + option = { + name = EVTOPTA3542 + trigger = { + has_character_flag = happy_scholar + } + clr_character_flag = happy_scholar + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + change_learning = 2 + } + option = { + name = EVTOPTA3542 + trigger = { + has_character_flag = generous_scholar + } + clr_character_flag = generous_scholar + change_learning = 1 + } +} + +### Scholar: Improve relation ### +character_event = { + id = 3543 + desc = EVTDESC3543 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = scholar + in_command = no + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + NOT = { + is_inaccessible_trigger = yes + has_character_modifier = the_idle + } + any_courtier = { + age = 16 + in_command = no + NOR = { + is_inaccessible_trigger = yes + character = ROOT + } + is_priest = yes + has_job_action = no + OR = { + trait = scholar + learning = 9 + } + opinion = { who = ROOT value = 0 } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = gregarious + } + + modifier = { + factor = 0.5 + trait = slothful + } + } + + option = { + name = EVTOPTA3543 + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + is_priest = yes + has_job_action = no + OR = { + trait = scholar + learning = 9 + } + opinion = { who = ROOT value = 0 } + } + character_event = { + id = 3544 + days = 2 + tooltip = EVTTOOLTIP3544 + } + } + } + option = { + name = EVTOPTB3543 + add_character_modifier = { + name = the_idle + duration = 90 + } + } +} + +#Scholar - Continue +character_event = { + id = 3544 + desc = EVTDESC3544 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3544 + FROM = { + reverse_opinion = { + modifier = opinion_tiresome + who = ROOT + years = 1 + } + set_character_flag = you_tiresome + character_event = { + id = 3545 + days = 2 + tooltip = EVTTOOLTIP3545 + } + } + } + option = { + name = EVTOPTB3544 + add_friend = FROM + FROM = { + set_character_flag = you_friend + character_event = { + id = 3545 + days = 2 + tooltip = EVTTOOLTIP3545 + } + } + } +} + +### Scholar: ROOT gets Courtier's response ### +character_event = { + id = 3545 + desc = EVTDESC3545 + picture = GFX_evt_courtiers_talking + + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + OR = { + has_character_flag = you_tiresome + has_character_flag = you_friend + } + } + + option = { + name = EVTOPTA3545 + trigger = { + has_character_flag = you_friend + } + clr_character_flag = you_friend + add_friend = FROM + } + option = { + name = EVTOPTB3545 + trigger = { + has_character_flag = you_tiresome + } + clr_character_flag = you_tiresome + FROM = { + opinion = { + modifier = opinion_tiresome + who = ROOT + years = 1 + } + } + } +} + +### Scholar: Daddy/Mummy, read a story for me! ### +character_event = { + id = 3546 + desc = EVTDESC3546 + picture = GFX_evt_family + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = scholar + in_command = no + any_child = { + is_alive = yes + age = 6 + NOR = { + age = 16 + trait = content + trait = slothful + } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_child = { + limit = { + is_alive = yes + age = 6 + NOR = { + age = 16 + trait = content + trait = slothful + } + } + save_event_target_as = scholar_child + } + } + + option = { + name = EVTOPTA3546 + event_target:scholar_child = { + set_character_flag = history_lesson + character_event = { + id = 3547 + tooltip = EVTTOOLTIP3547 + } + } + } + option = { + name = EVTOPTB3546 + event_target:scholar_child = { + opinion = { + modifier = opinion_disappointed + who = ROOT + months = 6 + } + } + } + option = { + name = EVTOPTC3546 + event_target:scholar_child = { + set_character_flag = legendary_story + character_event = { + id = 3547 + tooltip = EVTTOOLTIP3547 + } + } + } +} + +#Scholar: Child +character_event = { + id = 3547 + desc = EVTDESC3547 + picture = GFX_evt_family + + is_triggered_only = yes + + option = { + name = EVTOPTA3547 + trigger = { + has_character_flag = history_lesson + } + clr_character_flag = history_lesson + opinion = { + modifier = opinion_embarrassed + who = FROM + years = 2 + } + FROM = { + set_character_flag = embarrassed_child + character_event = { + id = 3548 + tooltip = EVTTOOLTIP3548 + } + } + } + option = { + name = EVTOPTB3547 + trigger = { + has_character_flag = legendary_story + } + clr_character_flag = legendary_story + opinion = { + modifier = opinion_embarrassed + who = FROM + years = 2 + } + FROM = { + set_character_flag = embarrassed_child + character_event = { + id = 3548 + tooltip = EVTTOOLTIP3548 + } + } + } + option = { + name = EVTOPTC3547 + trigger = { + has_character_flag = history_lesson + } + clr_character_flag = history_lesson + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + FROM = { + set_character_flag = delighted_child + character_event = { + id = 3548 + tooltip = EVTTOOLTIP3548 + } + } + } + option = { + name = EVTOPTD3547 + trigger = { + has_character_flag = legendary_story + } + clr_character_flag = legendary_story + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + FROM = { + set_character_flag = delighted_child + character_event = { + id = 3548 + tooltip = EVTTOOLTIP3548 + } + } + } +} + +#Scholar: ROOT +character_event = { + id = 3548 + desc = EVTDESC3548 + picture = GFX_evt_family + + is_triggered_only = yes + + option = { + name = EVTOPTA3548 + trigger = { + has_character_flag = embarrassed_child + } + clr_character_flag = embarrassed_child + FROM = { + opinion = { + modifier = opinion_embarrassed + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3548 + trigger = { + has_character_flag = delighted_child + } + clr_character_flag = delighted_child + FROM = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + if = { + limit = { + learning = 6 + NOT = { + trait = ambitious + } + } + random_list = { + 40 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + ROOT = { + character_event = { + id = 38178 #Notify Child is Ambitious + } + } + } + } + 10 = { + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + ROOT = { + character_event = { + id = 38151 #Notify Child is Slothful + } + } + } + } + 40 = { + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + ROOT = { + character_event = { + id = 38156 #Notify Child is Diligent + } + } + } + } + 10 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + ROOT = { + character_event = { + id = 38179 #Notify Child is Content + } + } + } + } + } + } + if = { + limit = { + NOT = { learning = 6 } + } + random_list = { + 10 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + ROOT = { + character_event = { + id = 38178 #Notify Child is Ambitious + } + } + } + } + 40 = { + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + ROOT = { + character_event = { + id = 38151 #Notify Child is Slothful + } + } + } + } + 10 = { + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + ROOT = { + character_event = { + id = 38156 #Notify Child is Diligent + } + } + } + } + 40 = { + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + ROOT = { + character_event = { + id = 38179 #Notify Child is Content + } + } + } + } + } + } + } + } +} + +### Scholar: The Intervention ### +character_event = { + id = 3550 + desc = EVTDESC3550 + picture = GFX_evt_quarrel + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = scholar + in_command = no + OR = { + trait = zealous + trait = diligent + trait = ambitious + } + OR = { + is_married = yes + any_courtier = { + age = 16 + in_command = no + NOT = { + trait = scholar + } + OR = { + trait = envious + trait = paranoid + trait = wroth + } + opinion = { who = ROOT value = 50 } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + learning = 10 + } + + modifier = { + factor = 0.5 + trait = wroth + } + } + + option = { + name = EVTOPTA3550 + trigger = { + is_married = yes + } + spouse = { + character_event = { + id = 3551 + days = 2 + tooltip = EVTTOOLTIP3551 + } + } + } + option = { + name = EVTOPTB3550 + add_trait = content + } + option = { + name = EVTOPTC3550 + trigger = { + is_married = no + any_courtier = { + age = 16 + in_command = no + NOT = { + trait = scholar + } + OR = { + trait = envious + trait = paranoid + trait = wroth + } + opinion = { who = ROOT value = 25 } + } + } + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { + trait = scholar + } + OR = { + trait = envious + trait = paranoid + trait = wroth + } + opinion = { who = ROOT value = 50 } + } + character_event = { + id = 3552 + days = 2 + tooltip = EVTTOOLTIP3552 + } + } + } + option = { + name = EVTOPTD3550 + scaled_wealth = 0.5 + random = { + chance = 25 + + remove_trait = scholar + } + } +} + +#Scholar: Spouse worries - intervention? +character_event = { + id = 3551 + desc = EVTDESC3551 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3551 #Intervention! + FROM = { + character_event = { + id = 3553 + tooltip = EVTTOOLTIP3553 + } + } + } + option = { + name = EVTOPTB3551 + add_trait = slothful + } +} + +#Scholar: Courtier worries - intervention? +character_event = { + id = 3552 + desc = EVTDESC3552 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3552 #Intervention! + FROM = { + character_event = { + id = 3553 + tooltip = EVTTOOLTIP3553 + } + } + } + option = { + name = EVTOPTB3552 + add_trait = slothful + } +} + +#Scholar: Intervention! +character_event = { + id = 3553 + desc = EVTDESC3553 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3553 + add_character_modifier = { + name = the_bibliophage + duration = 365 + } + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3553 + add_character_modifier = { + name = the_bookaddict + duration = 365 + } + FROM = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 2 + } + } + } +} + +### GARDENER ### + +### Gardener: Flower Power ### +character_event = { + id = 3555 + desc = EVTDESC3555 + picture = GFX_evt_garden + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gardener + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = flower_power + } + OR = { + trait = kind + trait = charitable + trait = gregarious + } + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + } + any_courtier = { + NOT = { + spouse = { + character = ROOT + } + } + is_opposite_sex = ROOT + OR = { + AND = { + is_female = yes + is_pregnant = no + } + ROOT = { + is_pregnant = no + is_female = yes + } + } + age = 20 + is_abroad = no + prisoner = no + NOR = { + is_inaccessible_trigger = yes + age = 40 + } + opinion = { who = ROOT value = 30 } + reverse_opinion = { who = ROOT value = 30 } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = lustful + } + + modifier = { + factor = 0.5 + trait = chaste + } + } + + option = { + name = EVTOPTA3555 + spouse = { + character_event = { + id = 3556 + days = 2 + tooltip = EVTTOOLTIPA3556 + } + } + } + + option = { + name = EVTOPTB3555 + random_courtier = { + limit = { + NOT = { + spouse = { + character = ROOT + } + } + is_opposite_sex = ROOT + OR = { + AND = { + is_female = yes + is_pregnant = no + } + ROOT = { + is_pregnant = no + is_female = yes + } + } + age = 20 + NOR = { + age = 40 + is_inaccessible_trigger = yes + } + is_abroad = no + prisoner = no + opinion = { who = ROOT value = 30 } + reverse_opinion = { who = ROOT value = 30 } + } + character_event = { + id = 3556 + days = 2 + tooltip = EVTTOOLTIPB3556 + } + } + random = { + chance = 10 + spouse = { + opinion = { + modifier = opinion_idiot + who = ROOT + years = 1 + } + } + } + } + + option = { + name = EVTOPTC3555 + add_character_modifier = { + name = flower_power + duration = 30 + } + } +} + +#Gardener: Spouse +character_event = { + id = 3556 + desc = EVTDESC3556 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3556 + FROM = { + character_event = { + id = 3557 + tooltip = EVTTOOLTIP3557 + } + reverse_opinion = { + modifier = opinion_flattered + who = ROOT + years = 1 + } + } + hidden_tooltip = { + if = { + limit = { + spouse = { + is_alive = yes + is_abroad = no + NOT = { + character = FROM + } + } + } + FROM = { + spouse = { + random = { + chance = 15 + character_event = { + id = 3559 + } + } + } + } + } + } + } + option = { + name = EVTOPTB3556 + FROM = { + character_event = { + id = 3558 + tooltip = EVTTOOLTIP3558 + } + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +#Gardener: Good response FROM spouse/courtier +character_event = { + id = 3557 + desc = EVTDESC3557 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3557 + FROM = { + opinion = { + modifier = opinion_flattered + who = ROOT + years = 1 + } + } + } +} + +#Gardener: Bad response FROM spouse/courtier +character_event = { + id = 3558 + desc = EVTDESC3558 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3558 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +#Gardener: Spouse sees ROOT give rose to courtier +character_event = { + id = 3559 + desc = EVTDESC3559 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3559 + trigger = { + spouse = { + any_lover = { character = ROOT } + } + } + character_event = { + id = 64105 + tooltip = EVTTOOLTIP64105 + } + } + option = { + name = EVTOPTB3559 + spouse = { + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC3559 + spouse = { + reverse_opinion = { + modifier = opinion_forgive + who = ROOT + years = 5 + } + } + } +} + +### Gardener: Gain stewardship ### +character_event = { + id = 3560 + desc = EVTDESC3560 + picture = GFX_evt_garden + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gardener + in_command = no + NOR = { + is_inaccessible_trigger = yes + stewardship = 15 + } + OR = { + trait = diligent + trait = ambitious + NOR = { + trait = slothful + trait = content + } + } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + learning = 10 + trait = gardener + diplomacy = 8 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + learning = 9 + } + } + + option = { + name = EVTOPTA3560 #Demand + piety = -10 + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = gardener + diplomacy = 8 + } + } + set_character_flag = pressured_scholar + character_event = { + id = 3561 + days = 2 + tooltip = EVTTOOLTIP3561 + } + } + } + option = { + name = EVTOPTB3560 #Ask nicely + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = gardener + diplomacy = 8 + } + } + set_character_flag = asked_scholar + character_event = { + id = 3561 + days = 2 + tooltip = EVTTOOLTIP3561 + } + } + } + option = { + name = EVTOPTC3560 #Bribe + scaled_wealth = -0.10 + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = gardener + diplomacy = 8 + } + } + set_character_flag = bribed_scholar + character_event = { + id = 3561 + days = 2 + tooltip = EVTTOOLTIP3561 + } + } + } + option = { + name = EVTOPTD3560 #Ignore + add_trait = content + } +} + +#Gardener: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3561 + desc = EVTDESC3561 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3561 + trigger = { + has_character_flag = pressured_scholar + } + clr_character_flag = pressured_scholar + FROM = { + set_character_flag = irritated_scholar + character_event = { + id = 3562 + days = 7 + tooltip = EVTTOOLTIP3562 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3561 + trigger = { + has_character_flag = asked_scholar + } + clr_character_flag = asked_scholar + FROM = { + set_character_flag = happy_scholar + character_event = { + id = 3562 + days = 7 + tooltip = EVTTOOLTIP3562 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3561 + trigger = { + has_character_flag = bribed_scholar + } + clr_character_flag = bribed_scholar + FROM = { + set_character_flag = generous_scholar + character_event = { + id = 3562 + days = 7 + tooltip = EVTTOOLTIP3562 + } + } + } +} + +#Gardener: ROOT get +Stewardship +character_event = { + id = 3562 + desc = EVTDESC3562 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3562 + trigger = { + has_character_flag = irritated_scholar + } + clr_character_flag = irritated_scholar + opinion = { + modifier = opinion_disgruntled + who = FROM + years = 2 + } + change_stewardship = 1 + } + option = { + name = EVTOPTA3562 + trigger = { + has_character_flag = happy_scholar + } + clr_character_flag = happy_scholar + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + change_stewardship = 2 + } + option = { + name = EVTOPTA3562 + trigger = { + has_character_flag = generous_scholar + } + clr_character_flag = generous_scholar + change_stewardship = 1 + } +} + +### Gardener: Spend too much money? ### +character_event = { + id = 3563 + desc = EVTDESC3563 + picture = GFX_evt_garden + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gardener + in_command = no + OR = { + trait = charitable + NOT = { + trait = greedy + } + } + OR = { + is_married = yes + any_courtier = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + stewardship = 10 + } + + modifier = { + factor = 0.5 + trait = slothful + } + } + option = { + name = EVTOPTA3563 + trigger = { + is_married = yes + } + spouse = { + character_event = { + id = 3564 + days = 2 + tooltip = EVTTOOLTIP3564 + } + } + } + + option = { + name = EVTOPTB3563 + prestige = 10 + random_list = { + 70 = { + } + 20 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + 10 = { + remove_trait = gardener + hidden_tooltip = { + character_event = { + id = 38289 #Notify remove Gardener + } + } + } + } + } + + option = { + name = EVTOPTC3563 + trigger = { + any_courtier = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + } + scaled_wealth = -0.15 + random_courtier = { + limit = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + character_event = { + id = 3565 + days = 2 + tooltip = EVTTOOLTIP3565 + } + } + } +} + +#Gardener: Spouse interferes +character_event = { + id = 3564 + desc = EVTDESC3564 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3564 + opinion = { + modifier = opinion_worried + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3566 + tooltip = EVTTOOLTIP3566 + } + } + } + option = { + name = EVTOPTB3564 + scaled_wealth = -0.05 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + } +} + +#Gardener: Courtier interferes +character_event = { + id = 3565 + desc = EVTDESC3565 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3565 + opinion = { + modifier = opinion_worried + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3567 + tooltip = EVTTOOLTIP3567 + } + } + } + option = { + name = EVTOPTB3565 + add_trait = slothful + } +} + +#Gardener: Spouse confronts him/her +character_event = { + id = 3566 + desc = EVTDESC3566 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3566 + add_character_modifier = { + name = the_naturalist + duration = 90 + } + FROM = { + opinion = { + modifier = opinion_worried + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB3566 + add_character_modifier = { + name = the_natural_addict + duration = 90 + } + FROM = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 2 + } + } + } +} + +#Gardener: Courtier confronts him/her +character_event = { + id = 3567 + desc = EVTDESC3567 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3567 + add_character_modifier = { + name = the_naturalist + duration = 90 + } + FROM = { + opinion = { + modifier = opinion_worried + who = ROOT + years = 2 + } + } + } + + option = { + name = EVTOPTB3567 + add_character_modifier = { + name = the_natural_addict + duration = 90 + } + FROM = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 2 + } + } + } +} + +### Gardener: The Bees! ### +character_event = { + id = 3568 + desc = EVTDESC3568 + picture = GFX_evt_garden + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = gardener + in_command = no + NOR = { + is_inaccessible_trigger = yes + is_ill = yes + health = 6 + } + any_courtier = { + age = 16 + is_councillor = yes + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = brave + trait = diligent + trait = ambitious + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = brave + } + + modifier = { + factor = 0.5 + trait = slothful + } + } + + option = { + name = EVTOPTA3568 + random_courtier = { + limit = { + age = 16 + is_councillor = yes + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = brave + trait = diligent + trait = ambitious + } + } + character_event = { + id = 3569 + tooltip = EVTTOOLTIP3569 + } + } + } + + option = { + name = EVTOPTB3568 + trigger = { + any_child = { + is_alive = yes + is_abroad = no + prisoner = no + age = 14 + OR = { + trait = brave + trait = diligent + trait = ambitious + } + } + } + random_child = { + limit = { + is_alive = yes + is_abroad = no + prisoner = no + age = 14 + OR = { + trait = brave + trait = diligent + trait = ambitious + } + } + character_event = { + id = 3569 + tooltip = EVTTOOLTIP3569 + } + } + } + option = { + name = EVTOPTC3568 + trigger = { + spouse = { + is_alive = yes + is_abroad = no + prisoner = no + is_councillor = no + OR = { + trait = brave + trait = diligent + trait = ambitious + } + } + } + spouse = { + character_event = { + id = 3569 + tooltip = EVTTOOLTIP3569 + } + } + } + option = { + name = EVTOPTD3568 + random_list = { + 40 = { + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + days = 3 + id = 38280 #Notify Wounded + } + } + } + 30 = { + give_ill_effect = yes + + } + 20 = { + change_stewardship = 1 + } + } + } +} + +#Gardener: Courtier/spouse/child is asked to help remove beehive +character_event = { + id = 3569 + desc = EVTDESC3569 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3569 + random_list = { + 40 = { + FROM = { + set_character_flag = beehive_removed + } + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + days = 3 + id = 38280 #Notify Wounded + } + } + opinion = { + modifier = opinion_irritated + who = FROM + years = 1 + } + FROM = { + set_character_flag = beehive_wounded + } + } + 20 = { + give_ill_effect = yes + opinion = { + modifier = opinion_irritated + who = FROM + years = 1 + } + FROM = { + set_character_flag = beehive_ill + } + } + 10 = { + change_stewardship = 1 + } + } + FROM = { + hidden_tooltip = { + character_event = { + id = 3670 + } + } + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB3569 + FROM = { + reverse_opinion = { + modifier = opinion_coward + who = ROOT + years = 1 + } + hidden_tooltip = { + character_event = { + id = 3671 + } + } + } + } +} + +#Gardener: FROM helped +character_event = { + id = 3670 + desc = EVTDESC3670 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3670 + trigger = { + has_character_flag = beehive_removed + } + clr_character_flag = beehive_removed + opinion = { + modifier = opinion_grateful + who = FROM + years = 4 + } + } + option = { + name = EVTOPTB3670 + trigger = { + has_character_flag = beehive_wounded + } + clr_character_flag = beehive_wounded + reverse_opinion = { + modifier = opinion_irritated + who = FROM + years = 4 + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 4 + } + } + option = { + name = EVTOPTC3670 + trigger = { + has_character_flag = beehive_ill + } + clr_character_flag = beehive_ill + reverse_opinion = { + modifier = opinion_irritated + who = FROM + years = 4 + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 4 + } + } +} + +#Gardener: FROM refused to help +character_event = { + id = 3671 + desc = EVTDESC3671 + picture = GFX_evt_garden + + is_triggered_only = yes + + option = { + name = EVTOPTA3671 + opinion = { + modifier = opinion_coward + who = FROM + years = 1 + } + random_list = { + 40 = { + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + days = 3 + id = 38280 #Notify Wounded + } + } + } + 20 = { + give_ill_effect = yes + } + 10 = { + change_stewardship = 1 + } + } + } +} + +### MYSTIC ### + +### Mystic: Gain intrigue ### +character_event = { + id = 3570 + desc = EVTDESC3570 + picture = GFX_evt_shadowy_cabal + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = mystic + in_command = no + NOR = { + has_character_modifier = intriguing_book + is_inaccessible_trigger = yes + intrigue = 15 + } + OR = { + trait = diligent + trait = ambitious + NAND = { + trait = slothful + trait = content + } + } + any_courtier = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = mystic + intrigue = 8 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + learning = 9 + } + } + + option = { + name = EVTOPTA3570 #Demand + piety = -10 + random = { + chance = 25 + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = scholar + } + } + set_character_flag = pressured_scholar + character_event = { + id = 3571 + days = 2 + tooltip = EVTTOOLTIP3571 + } + } + } + } + option = { + name = EVTOPTB3570 #Ask nicely + prestige = -10 + random = { + chance = 25 + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = scholar + diplomacy = 8 + } + } + set_character_flag = asked_scholar + character_event = { + id = 3571 + days = 2 + tooltip = EVTTOOLTIP3571 + } + } + } + } + option = { + name = EVTOPTC3570 #Bribe + scaled_wealth = -0.10 + random = { + chance = 25 + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = scholar + } + } + set_character_flag = bribed_scholar + character_event = { + id = 3571 + days = 2 + tooltip = EVTTOOLTIP3571 + } + } + } + } + option = { + name = EVTOPTD3570 #Ignore + add_trait = content + } +} + +#Mystic: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3571 + desc = EVTDESC3571 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3571 + trigger = { + has_character_flag = pressured_scholar + } + clr_character_flag = pressured_scholar + FROM = { + set_character_flag = irritated_scholar + character_event = { + id = 3572 + days = 7 + tooltip = EVTTOOLTIP3572 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3571 + trigger = { + has_character_flag = asked_scholar + } + clr_character_flag = asked_scholar + FROM = { + set_character_flag = happy_scholar + character_event = { + id = 3572 + days = 7 + tooltip = EVTTOOLTIP3572 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3571 + trigger = { + has_character_flag = bribed_scholar + } + clr_character_flag = bribed_scholar + treasury = 20 + FROM = { + set_character_flag = generous_scholar + character_event = { + id = 3572 + days = 7 + tooltip = EVTTOOLTIP3572 + } + } + } +} + +#Mystic: ROOT get +intrigue +character_event = { + id = 3572 + desc = EVTDESC3572 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3572 + trigger = { + has_character_flag = irritated_scholar + } + clr_character_flag = irritated_scholar + opinion = { + modifier = opinion_disgruntled + who = FROM + years = 2 + } + add_character_modifier = { + name = intriguing_book + duration = 60 + } + } + option = { + name = EVTOPTA3572 + trigger = { + has_character_flag = happy_scholar + } + clr_character_flag = happy_scholar + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + add_character_modifier = { + name = intriguing_book + duration = 90 + } + } + option = { + name = EVTOPTA3572 + trigger = { + has_character_flag = generous_scholar + } + clr_character_flag = generous_scholar + add_character_modifier = { + name = intriguing_book + duration = 60 + } + } +} + +### Mystic: Start ### +character_event = { + id = 3575 + desc = EVTDESC3575 + picture = GFX_evt_shadowy_cabal + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = mystic + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + is_priest = yes + has_job_title = job_spiritual + } + religion = ROOT + piety = 50 + has_job_action = no + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = zealous + } + + modifier = { + factor = 0.5 + trait = cynical + } + } + + option = { + name = EVTOPTA3575 + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + is_priest = yes + has_job_title = job_spiritual + } + religion = ROOT + piety = 50 + has_job_action = no + } + character_event = { + id = 3576 + days = 1 + tooltip = EVTTOOLTIP3576 + } + } + } + option = { + name = EVTOPTB3575 + add_character_modifier = { + name = the_pious + duration = 90 + } + } +} + +#Mystic: Initiation - noble +character_event = { + id = 3576 + desc = EVTDESC3576 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3576 #Dangerous Initiation + FROM = { + character_event = { + id = 3577 + days = 7 + tooltip = EVTTOOLTIP3577 + } + } + } + option = { + name = EVTOPTB3576 #Skill-based Initiation + FROM = { + character_event = { + id = 3578 + days = 7 + tooltip = EVTTOOLTIP3578 + } + } + } + option = { + name = EVTOPTC3576 #Ignore + add_character_modifier = { + name = the_curious #Replace and use modifier somewhere else + duration = 90 + } + } +} + +#Mystic: Dangerous Initiation - ROOT +character_event = { + id = 3577 + desc = EVTDESC3577 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3577 #Accept + FROM = { + character_event = { + id = 3579 + days = 1 + tooltip = EVTTOOLTIP3579 + } + } + } + option = { + name = EVTOPTB3577 #Decline + remove_character_modifier = the_curious + } +} + +#Mystic: Skill-based Initiation - ROOT +character_event = { + id = 3578 + desc = EVTDESC3578 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3578 #Accept + FROM = { + character_event = { + id = 3579 + days = 1 + tooltip = EVTTOOLTIP3579 + } + } + } + option = { + name = EVTOPTB3578 #Decline + remove_character_modifier = the_curious + } +} + +#Mystic: Initiation success or fail? Noble +character_event = { + id = 3579 + desc = EVTDESC3579 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3579 + change_diplomacy = 1 + FROM = { + character_event = { #Success! + id = 3580 + days = 1 + tooltip = EVTTOOLTIP3580 + } + } + } + option = { + name = EVTOPTB3579 + change_intrigue = 1 + FROM = { + character_event = { #Fail! + id = 3581 + days = 1 + tooltip = EVTTOOLTIP3581 + } + } + } +} + +#Mystic: Successful Initiation - ROOT +character_event = { + id = 3580 + desc =EVTDESC3580 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3580 + add_character_modifier = { + name = esoteric_religion + duration = -1 + } + } +} + +#Mystic: Failed Initiation - ROOT +character_event = { + id = 3581 + desc =EVTDESC3581 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA3581 + random = { + chance = 20 + add_trait = depressed + } + opinion = { + modifier = opinion_disgruntled + who = FROM + years = 2 + } + } +} + +### Mystic: Alchemy - Start ### +character_event = { + id = 3585 + desc = EVTDESC3585 + picture = GFX_evt_library + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = mystic + in_command = no + OR = { + trait = quick + trait = genius + learning = 8 + } + OR = { + trait = diligent + trait = ambitious + NOR = { + trait = slothful + trait = content + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + stewardship = 8 + } + modifier = { + factor = 0.5 + martial = 10 + } + } + + option = { + name = EVTOPTA3585 + set_character_flag = fiddle_alchemy + character_event = { + id = 3586 + tooltip = EVTTOOLTIPA3586 + } + } + option = { + name = EVTOPTB3585 + set_character_flag = research_alchemy + character_event = { + id = 3586 + tooltip = EVTTOOLTIPB3586 + } + } + option = { + name = EVTOPTC3585 + random_list = { + 70 = { + } + 15 = { + add_trait = stressed + } + 15 = { + remove_trait = mystic + } + } + } +} + +#Mystic: fiddle with alchemy +character_event = { + id = 3586 + desc = EVTDESC3586 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3586 + if = { + limit = { + has_character_flag = fiddle_alchemy + NOT = { + has_character_flag = research_alchemy + } + } + random_list = { + 70 = { + character_event = { + id = 3587 + tooltip = EVTTOOLTIP3587 + } + } + 30 = { + character_event = { + id = 3588 + tooltip = EVTTOOLTIP3588 + } + } + } + } + if = { + limit = { + has_character_flag = research_alchemy + NOT = { + has_character_flag = fiddle_alchemy + } + } + random_list = { + 50 = { + character_event = { + id = 3587 + tooltip = EVTTOOLTIP3587 + } + } + 50 = { + character_event = { + id = 3588 + tooltip = EVTTOOLTIP3588 + } + } + } + } + } +} + +#Mystic: Alchemy - wounded +character_event = { + id = 3587 + desc = EVTDESC3587 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3587 + trigger = { + is_married = yes + } + add_trait = wounded + if = { + limit = { + NOT = { trait = ugly } + } + add_trait = ugly + } + spouse = { + opinion = { + modifier = opinion_worried + who = ROOT + years = 1 + } + } + } + option = { + name = EVTOPTB3587 + trigger = { + is_married = no + } + add_trait = wounded + if = { + limit = { + NOT = { trait = ugly } + } + add_trait = ugly + } + } +} + +#Mystic: Alchemy - Success! +character_event = { + id = 3588 + desc = EVTDESC3588 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3588 + add_character_modifier = { + name = the_alchemist + duration = 1825 + } + } +} + +### Mystic: Cure for illness - Start ### +character_event = { + id = 3590 + desc = EVTDESC3590 + picture = GFX_evt_illness + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + lacks_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + trait = mystic + in_command = no + OR = { + trait = quick + trait = genius + learning = 10 + } + is_ill = yes + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + stewardship = 8 + } + modifier = { + factor = 0.5 + martial = 10 + } + } + + option = { + name = EVTOPTA3590 + random_list = { + 70 = { + character_event = { + id = 3591 + tooltip = EVTTOOLTIP3591 + } + } + 30 = { + character_event = { + id = 3592 + tooltip = EVTTOOLTIP3592 + } + } + } + } + option = { + name = EVTOPTB3590 + random_list = { + 10 = { + } + 10 = { + add_trait = pneumonic + } + 33 = { + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + if = { + limit = { + NOT = { trait = zealous } + } + add_trait = zealous + hidden_tooltip = { + character_event = { + days = 3 + id = 38269 #Notify Zealous + } + } + } + } + } + } + option = { + name = EVTOPTC3590 + random = { + chance = 10 + + remove_trait = ill + } + } +} + +#Mystic: Cure for illness - Lunatic +character_event = { + id = 3591 + desc = EVTDESC3591 + picture = GFX_evt_illness + + is_triggered_only = yes + + option = { + name = EVTOPTA3591 + trigger = { + is_married = yes + } + add_trait = lunatic + spouse = { + opinion = { + modifier = opinion_worried + who = ROOT + years = 1 + } + } + } + option = { + name = EVTOPTB3591 + trigger = { + is_married = no + } + add_trait = lunatic + } +} + +#Mystic: Cure for illness - Success! +character_event = { + id = 3592 + desc = EVTDESC3592 + picture = GFX_evt_recovery + + is_triggered_only = yes + + option = { + name = EVTOPTA3592 + cure_illness = yes + add_character_modifier = { + name = the_alchemist + duration = 1825 + } + } +} + +### Mystic: Cure for illness - Start ### +character_event = { + id = 3593 + desc = EVTDESC3593 + picture = GFX_evt_illness + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + lacks_dlc = "Reapers" + war = no + + is_triggered_only = yes + + trigger = { + trait = mystic + in_command = no + is_ill = no + has_character_modifier = the_alchemist + any_courtier = { + age = 16 + in_command = no + prisoner = no + OR = { + has_epidemic = yes + is_ill = yes + } + NOT = { + family = ROOT + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + stewardship = 8 + } + modifier = { + factor = 0.5 + martial = 10 + } + } + + option = { + name = EVTOPTA3593 + random_courtier = { + limit = { + prisoner = no + age = 16 + in_command = no + OR = { + has_epidemic = yes + is_ill = yes + } + NOT = { + family = ROOT + } + } + character_event = { + id = 3594 + tooltip = EVTTOOLTIP3594 + } + } + } + option = { + name = EVTOPTB3593 + trigger = { + any_child = { + is_abroad = no + prisoner = no + OR = { + has_epidemic = yes + is_ill = yes + } + } + } + any_child = { + limit = { + is_abroad = no + prisoner = no + OR = { + has_epidemic = yes + is_ill = yes + } + } + character_event = { + id = 3594 + tooltip = EVTTOOLTIP3594 + } + } + } + option = { + name = EVTOPTC3593 + trigger = { + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + OR = { + has_epidemic = yes + is_ill = yes + } + } + } + spouse = { + character_event = { + id = 3594 + tooltip = EVTTOOLTIP3594 + } + } + } + option = { + name = EVTOPTD3593 + random_list = { + 60 = { + } + 20 = { + if = { limit = { NOT = { trait = berserker } } + add_trait = craven + } + } + 20 = { + remove_trait = mystic + } + } + } +} + +#Mystic: Cure for illness - Continue +character_event = { + id = 3594 + desc = EVTDESC3594 + picture = GFX_evt_illness + + is_triggered_only = yes + + option = { + name = EVTOPTA3594 + random_list = { + 50 = { + add_trait = lunatic + cure_illness = yes + FROM = { + character_event = { + id = 3595 + tooltip = EVTTOOLTIP3595 + } + } + } + 45 = { + cure_illness = yes + FROM = { + character_event = { + id = 3596 + tooltip = EVTTOOLTIP3596 + } + } + } + 5 = { + death = { + death_reason = death_trait + } + FROM = { + character_event = { + id = 3597 + tooltip = EVTTOOLTIP3597 + } + } + } + } + } + option = { + name = EVTOPTB3594 + random = { + chance = 25 + + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify depressed + } + } + } + } +} + +#Mystic: Cure for illness - Lunatic +character_event = { + id = 3595 + desc = EVTDESC3595 + picture = GFX_evt_illness + + is_triggered_only = yes + + option = { + name = EVTOPTA3595 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +#Mystic: Cure for illness - Success! +character_event = { + id = 3596 + desc = EVTDESC3596 + picture = GFX_evt_recovery + + is_triggered_only = yes + + option = { + name = EVTOPTA3596 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + } +} + +#Mystic: Cure for illness - Death! +character_event = { + id = 3597 + desc = EVTDESC3597 + picture = GFX_evt_illness + + is_triggered_only = yes + + option = { + name = EVTOPTA3597 + add_trait = depressed + } +} + +### IMPALER ### + +### Impaler: New torture equipment - Start ### +character_event = { + id = 3600 + desc = EVTDESC3600 + picture = GFX_evt_torture + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = impaler + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = wroth + trait = deceitful + trait = cynical + } + OR = { + is_married = yes + any_courtier = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + stewardship = 8 + } + modifier = { + factor = 0.5 + NOT = { learning = 6 } + } + } + + option = { + name = EVTOPTA3600 + trigger = { + is_married = yes + } + scaled_wealth = -0.25 + add_character_modifier = { + name = brazen_bull + duration = 1825 + } + spouse = { + character_event = { + id = 3601 + days = 2 + tooltip = EVTTOOLTIP3601 + } + } + } + + option = { + name = EVTOPTB3600 + prestige = -10 + random = { + chance = 10 + + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } + + option = { + name = EVTOPTA3600 + trigger = { + any_courtier = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + } + scaled_wealth = -0.25 + clr_character_flag = gold_ten + add_character_modifier = { + name = brazen_bull + duration = 1825 + } + random_courtier = { + limit = { + age = 16 + in_command = no + trait = greedy + stewardship = 8 + } + character_event = { + id = 3601 + days = 2 + tooltip = EVTTOOLTIP3601 + } + } + } +} + +#Impaler: New torture equipment - Spouse/courtier +character_event = { + id = 3601 + desc = EVTDESC3601 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3601 + trigger = { + FROM = { + spouse = { + character = ROOT + } + } + } + FROM = { + reverse_opinion = { + modifier = opinion_woeful + who = ROOT + years = 2 + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + character_event = { + id = 3602 + days = 2 + tooltip = EVTTOOLTIP3602 + } + } + } + option = { + name = EVTOPTB3601 + trigger = { + FROM = { + spouse = { + character = ROOT + } + } + } + FROM = { + reverse_opinion = { + modifier = opinion_selfsacrificing + who = ROOT + years = 2 + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + character_event = { + id = 3603 + days = 2 + tooltip = EVTTOOLTIP3603 + } + } + } + option = { + name = EVTOPTC3601 + add_trait = stressed + } + option = { + name = EVTOPTA3601 + trigger = { + NOT = { + FROM = { + spouse = { + character = ROOT + } + } + } + } + FROM = { + reverse_opinion = { + modifier = opinion_woeful + who = ROOT + years = 2 + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + character_event = { + id = 3602 + days = 2 + tooltip = EVTTOOLTIP3602 + } + } + } + option = { + name = EVTOPTB3601 + trigger = { + NOT = { + FROM = { + spouse = { + character = ROOT + } + } + } + } + FROM = { + reverse_opinion = { + modifier = opinion_selfsacrificing + who = ROOT + years = 2 + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + character_event = { + id = 3603 + days = 2 + tooltip = EVTTOOLTIP3603 + } + } + } +} + +#Impaler: New torture equipment - Bad ROOT +character_event = { + id = 3602 + desc = EVTDESC3602 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3602 + scaled_wealth = 0.25 + remove_character_modifier = brazen_bull + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + set_character_flag = sold_brazen_bull + character_event = { + id = 3604 + days = 7 + tooltip = EVTTOOLTIP3604 + } + } + } + option = { + name = EVTOPTB3602 + FROM = { + opinion = { + modifier = opinion_woeful + who = ROOT + years = 2 + } + set_character_flag = kept_brazen_bull + character_event = { + id = 3604 + days = 7 + tooltip = EVTTOOLTIP3604 + } + } + } + option = { + name = EVTOPTC3602 + trigger = { + FROM = { + NOT = { + reverse_opinion = { who = ROOT value = 0 } + } + reverse_opinion = { who = ROOT value = -20 } + } + } + FROM = { + random = { + chance = 80 + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + opinion = { + modifier = opinion_furious + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC3602 + trigger = { + FROM = { + NOT = { + reverse_opinion = { who = ROOT value = -20 } + } + } + } + FROM = { + random = { + chance = 80 + add_maimed_trait_effect = yes + hidden_tooltip = { character_event = { id = 38281 } } + + } + opinion = { + modifier = opinion_furious + who = ROOT + years = 5 + } + } + } +} + +#Impaler: New torture equipment - Good ROOT +character_event = { + id = 3603 + desc = EVTDESC3603 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3603 + FROM = { + opinion = { + modifier = opinion_selfsacrificing + who = ROOT + years = 2 + } + } + } +} + +#Impaler: New torture equipment - Kept the brazen bull (Spouse/Courtier) +character_event = { + id = 3604 + desc = EVTDESC3604 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3604 + trigger = { + has_character_flag = sold_brazen_bull + } + clr_character_flag = sold_brazen_bull + FROM = { + reverse_opinion = { + modifier = opinion_grateful + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3604 + trigger = { + has_character_flag = kept_brazen_bull + } + clr_character_flag = kept_brazen_bull + opinion = { + modifier = opinion_woeful + who = FROM + years = 2 + } + } +} + +### Impaler: Gain intrigue ### +character_event = { + id = 3605 + desc = EVTDESC3605 + picture = GFX_evt_torture + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = impaler + in_command = no + NOR = { + is_inaccessible_trigger = yes + intrigue = 15 + } + OR = { + trait = diligent + trait = ambitious + NAND = { + trait = slothful + trait = content + } + } + num_of_prisoners = 1 + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + learning = 10 + trait = impaler + intrigue = 8 + } + OR = { + trait = wroth + martial = 10 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + learning = 9 + } + } + + immediate = { + random_courtier = { + limit = { + age = 16 + in_command = no + OR = { + learning = 10 + trait = impaler + diplomacy = 8 + } + OR = { + trait = wroth + martial = 10 + } + } + save_event_target_as = impaler_teacher + } + } + + option = { + name = EVTOPTA3605 #Demand + piety = -10 + event_target:impaler_teacher = { + set_character_flag = pressured_teacher + character_event = { + id = 3606 + days = 2 + tooltip = EVTTOOLTIP3606 + } + } + } + option = { + name = EVTOPTB3605 #Ask nicely + prestige = -10 + event_target:impaler_teacher = { + set_character_flag = asked_teacher + character_event = { + id = 3606 + days = 2 + tooltip = EVTTOOLTIP3606 + } + } + } + option = { + name = EVTOPTC3605 #Ignore + add_trait = content + } + option = { + name = EVTOPTD3605 #Bribe + scaled_wealth = -0.10 + event_target:impaler_teacher = { + set_character_flag = bribed_teacher + character_event = { + id = 3606 + days = 2 + tooltip = EVTTOOLTIP3606 + } + } + } +} + +#Impaler: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3606 + desc = EVTDESC3606 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3606 + trigger = { + has_character_flag = pressured_teacher + } + clr_character_flag = pressured_teacher + FROM = { + set_character_flag = irritated_teacher + character_event = { + id = 3607 + days = 7 + tooltip = EVTTOOLTIP3607 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3606 + trigger = { + has_character_flag = asked_teacher + } + clr_character_flag = asked_teacher + FROM = { + set_character_flag = happy_teacher + character_event = { + id = 3607 + days = 7 + tooltip = EVTTOOLTIP3607 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTC3606 + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTD3606 + trigger = { + has_character_flag = bribed_teacher + } + treasury = 10 + clr_character_flag = bribed_teacher + FROM = { + set_character_flag = generous_teacher + character_event = { + id = 3607 + days = 7 + tooltip = EVTTOOLTIP3607 + } + } + } +} + +#Impaler: ROOT get +Intrigue +character_event = { + id = 3607 + desc = EVTDESC3607 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3607 + trigger = { + has_character_flag = irritated_teacher + } + clr_character_flag = irritated_teacher + opinion = { + modifier = opinion_disgruntled + who = FROM + years = 2 + } + change_stewardship = 1 + } + option = { + name = EVTOPTA3607 + trigger = { + has_character_flag = happy_teacher + } + clr_character_flag = happy_teacher + opinion = { + modifier = opinion_delighted + who = FROM + years = 2 + } + change_stewardship = 2 + } + option = { + name = EVTOPTA3607 + trigger = { + has_character_flag = generous_teacher + } + clr_character_flag = generous_teacher + change_stewardship = 1 + } +} + +### Impaler: Start ### +character_event = { + id = 3610 + desc = EVTDESC3610 + picture = GFX_evt_torture + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = impaler + in_command = no + num_of_prisoners = 2 + any_courtier = { + prisoner = yes + is_adult = yes + has_character_modifier = the_dungeon + is_female = no + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = wroth + } + modifier = { + factor = 0.5 + trait = kind + } + modifier = { + factor = 10 + has_ambition = obj_buddhist_reject_cruelty + } + } + + immediate = { + random_courtier = { + limit = { + prisoner = yes + is_adult = yes + has_character_modifier = the_dungeon + is_female = no + } + save_event_target_as = confession_target + } + } + + option = { + name = EVTOPTA3610 + event_target:confession_target = { + character_event = { + id = 3611 + tooltip = EVTTOOLTIP3611 + } + } + cancel_ambition = yes + } + option = { + name = EVTOPTB3610 + trigger = { + has_character_modifier = brazen_bull + } + event_target:confession_target = { + set_character_flag = tortured_by_brazenbull + character_event = { + id = 3611 + tooltip = EVTTOOLTIP3611 + } + } + cancel_ambition = yes + } + option = { + name = EVTOPTC3610 + if = { + limit = { + NOT = { trait = kind } + } + random = { + chance = 20 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + NOT = { + trait = charitable + } + } + random = { + chance = 20 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + if = { + limit = { + NOT = { has_ambition = obj_buddhist_reject_cruelty } + } + random = { + chance = 10 + + remove_trait = impaler + hidden_tooltip = { + character_event = { + id = 38291 #Notify remove Impaler + } + } + } + } + if = { + limit = { + has_ambition = obj_buddhist_reject_cruelty + } + remove_trait = impaler + remove_trait = cruel + } + } +} + +#Impaler: Prisoner +character_event = { + id = 3611 + desc = EVTDESC3611 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3611 #Confess + trigger = { + NOT = { has_character_flag = tortured_by_brazenbull } + } + FROM = { + set_character_flag = prisoner_confessed + character_event = { + id = 3612 + days = 1 + tooltip = EVTTOOLTIP3612 + } + reverse_opinion = { + modifier = opinion_cruel + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = house_arrest + duration = 90 + } + } + option = { + name = EVTOPTB3611 #Torture + trigger = { + NOT = { has_character_flag = tortured_by_brazenbull } + } + FROM = { + set_character_flag = stubborn_prisoner + character_event = { + id = 3612 + days = 1 + tooltip = EVTTOOLTIP3612 + } + reverse_opinion = { + modifier = opinion_cruel + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = tortured_prisoner + duration = 365 + } + } + option = { + name = EVTOPTC3611 #Confess + trigger = { + has_character_flag = tortured_by_brazenbull + } + FROM = { + set_character_flag = prisoner_confessed + character_event = { + id = 3612 + days = 1 + tooltip = EVTTOOLTIP3612 + } + reverse_opinion = { + modifier = opinion_cruel + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = house_arrest + duration = 365 + } + } + option = { + name = EVTOPTD3611 #Torture + trigger = { + has_character_flag = tortured_by_brazenbull + } + FROM = { + set_character_flag = stubborn_prisoner + character_event = { + id = 3612 + days = 1 + tooltip = EVTTOOLTIP3612 + } + reverse_opinion = { + modifier = opinion_cruel + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = tortured_prisoner + duration = 90 + } + } +} + +#Impaler: The End +character_event = { + id = 3612 + desc = EVTDESC3612 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3612 + trigger = { + has_character_flag = prisoner_confessed + } + clr_character_flag = prisoner_confessed + opinion = { + modifier = opinion_disappointed + who = FROM + years = 2 + } + add_character_modifier = { + name = master_impaler + duration = 1825 + } + } + option = { + name = EVTOPTB3612 + trigger = { + has_character_flag = stubborn_prisoner + } + clr_character_flag = stubborn_prisoner + opinion = { + modifier = opinion_cruel + who = FROM + years = 2 + } + add_character_modifier = { + name = master_impaler + duration = 1825 + } + } +} + +### Impaler: Start ### +character_event = { + id = 3615 + desc = EVTDESC3615 + picture = GFX_evt_torture + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = impaler + in_command = no + NOT = { has_ambition = obj_buddhist_reject_cruelty } + any_child = { + age = 15 + is_abroad = no + prisoner = no + OR = { + trait = envious + trait = wroth + learning = 9 + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = ambitious + } + modifier = { + factor = 0.5 + trait = slothful + } + } + + option = { + name = EVTOPTA3615 + random_child = { + limit = { + age = 15 + is_abroad = no + prisoner = no + OR = { + trait = envious + trait = wroth + learning = 9 + } + } + character_event = { + id = 3616 + days = 1 + tooltip = EVTTOOLTIP3616 + } + } + } + option = { + name = EVTOPTB3615 + if = { + limit = { + NOT = { + trait = kind + } + } + random = { + chance = 20 + + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify Kind + } + } + } + } + if = { + limit = { + NOT = { + trait = charitable + } + } + random = { + chance = 20 + + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + } + random = { + chance = 15 + + remove_trait = impaler + hidden_tooltip = { + character_event = { + id = 38291 #Notify remove Impaler + } + } + } + } +} + +#Impaler: Child +character_event = { + id = 3616 + desc = EVTDESC3616 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3616 #Interested + trigger = { + FROM = { + is_female = yes + } + is_female = yes + } + FROM = { + set_character_flag = mother_daughter + opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + character_event = { + id = 3617 + tooltip = EVTTOOLTIP3617 + } + } + random = { + chance = 10 + add_trait = impaler + } + } + option = { + name = EVTOPTA3616 #Interested + trigger = { + FROM = { + is_female = no + } + is_female = no + } + FROM = { + set_character_flag = father_son + opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + character_event = { + id = 3617 + tooltip = EVTTOOLTIP3617 + } + } + random = { + chance = 10 + add_trait = impaler + } + } + option = { + name = EVTOPTA3616 #Interested + trigger = { + FROM = { + is_female = no + } + is_female = yes + } + FROM = { + set_character_flag = mother_son + opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + character_event = { + id = 3617 + tooltip = EVTTOOLTIP3617 + } + } + random = { + chance = 10 + add_trait = impaler + } + } + option = { + name = EVTOPTA3616 #Interested + trigger = { + FROM = { + is_female = yes + } + is_female = no + } + FROM = { + set_character_flag = father_daughter + opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + character_event = { + id = 3617 + tooltip = EVTTOOLTIP3617 + } + } + random = { + chance = 10 + add_trait = impaler + } + } + option = { + name = EVTOPTB3616 #Refuse + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + character_event = { + id = 3618 + tooltip = EVTTOOLTIP3618 + } + } + } +} + +#Impaler: ROOT +character_event = { + id = 3617 + desc = EVTDESC3617 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3617 #Interested + trigger = { + has_character_flag = mother_daughter + } + clr_character_flag = mother_daughter + FROM = { + reverse_opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + random = { + chance = 10 + add_trait = impaler + } + } + add_character_modifier = { + name = mother_daughter + duration = 1825 + } + } + option = { + name = EVTOPTA3617 #Interested + trigger = { + has_character_flag = father_son + } + clr_character_flag = father_son + FROM = { + reverse_opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + random = { + chance = 10 + add_trait = impaler + } + } + add_character_modifier = { + name = father_son + duration = 1825 + } + } + option = { + name = EVTOPTA3617 #Interested + trigger = { + has_character_flag = mother_son + } + clr_character_flag = mother_son + FROM = { + reverse_opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + random = { + chance = 10 + add_trait = impaler + } + } + add_character_modifier = { + name = mother_son + duration = 1825 + } + } + option = { + name = EVTOPTA3617 #Interested + trigger = { + has_character_flag = father_daughter + } + clr_character_flag = father_daughter + FROM = { + reverse_opinion = { + modifier = opinion_proud + who = ROOT + years = 2 + } + random = { + chance = 10 + add_trait = impaler + } + } + add_character_modifier = { + name = father_daughter + duration = 1825 + } + } +} + +#Impaler: ROOT +character_event = { + id = 3618 + desc = EVTDESC3618 + picture = GFX_evt_torture + + is_triggered_only = yes + + option = { + name = EVTOPTA3618 #Refused + FROM = { + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } +} + +### DUELIST ### + +### Duelist: Gain martial ### +character_event = { + id = 3620 + desc = EVTDESC3620 + picture = GFX_evt_melee + + only_playable = yes + only_men = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = duelist + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = averted_duel + trait = slothful + trait = content + } + any_courtier = { + age = 20 + is_female = no + is_abroad = no + prisoner = no + NOT = { is_inaccessible_trigger = yes } + OR = { + martial = 10 + trait = duelist + } + has_job_action = no + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = ambitious + } + + modifier = { + factor = 2 + trait = diligent + } + + modifier = { + factor = 0.5 + trait = shy + } + + modifier = { + factor = 0.2 + trait = wroth + } + } + + immediate = { + random_courtier = { + limit = { + age = 20 + is_female = no + is_abroad = no + prisoner = no + OR = { + martial = 10 + trait = duelist + } + } + save_event_target_as = duelist_partner + } + } + + option = { + name = EVTOPTA3620 #Demand + piety = -10 + event_target:duelist_partner = { + set_character_flag = pressured_duelist + character_event = { + id = 3621 + days = 2 + tooltip = EVTTOOLTIP3621 + } + } + } + option = { + name = EVTOPTB3620 #Ask nicely + prestige = -10 + event_target:duelist_partner = { + set_character_flag = asked_duelist + character_event = { + id = 3621 + days = 2 + tooltip = EVTTOOLTIP3621 + } + } + } + option = { + name = EVTOPTC3620 #Bribe + scaled_wealth = -0.10 + event_target:duelist_partner = { + set_character_flag = bribed_duelist + character_event = { + id = 3621 + days = 2 + tooltip = EVTTOOLTIP3621 + } + } + } + option = { + name = EVTOPTD3620 #Ignore + add_trait = content + random = { + chance = 20 + + remove_trait = duelist + hidden_tooltip = { + character_event = { + id = 38292 #Notify + } + } + } + } +} + +#Duelist: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3621 + desc = EVTDESC3621 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3621 + trigger = { + has_character_flag = pressured_duelist + } + clr_character_flag = pressured_duelist + FROM = { + set_character_flag = irritated_duelist + character_event = { + id = 3622 + days = 7 + tooltip = EVTTOOLTIP3622 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3621 + trigger = { + has_character_flag = asked_duelist + } + clr_character_flag = asked_duelist + FROM = { + set_character_flag = happy_duelist + character_event = { + id = 3622 + days = 7 + tooltip = EVTTOOLTIP3622 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3621 + trigger = { + has_character_flag = bribed_duelist + } + clr_character_flag = bribed_duelist + treasury = 10 + FROM = { + set_character_flag = generous_duelist + character_event = { + id = 3622 + days = 7 + tooltip = EVTTOOLTIP3622 + } + } + } +} + +#Duelist: ROOT get +martial +character_event = { + id = 3622 + desc = EVTDESC3622 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3622 + trigger = { + has_character_flag = irritated_duelist + } + clr_character_flag = irritated_duelist + FROM = { + reverse_opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + change_martial = 1 + } + option = { + name = EVTOPTA3622 + trigger = { + has_character_flag = happy_duelist + } + clr_character_flag = happy_duelist + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + change_martial = 2 + } + option = { + name = EVTOPTA3622 + trigger = { + has_character_flag = generous_duelist + } + clr_character_flag = generous_duelist + change_martial = 1 + } +} + +### Duelist: Start ### +character_event = { + id = 3625 + desc = EVTDESC3625 + picture = GFX_evt_melee + + only_playable = yes + min_age = 20 + max_age = 65 + only_men = yes + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = duelist + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = averted_duel + } + any_courtier = { + is_councillor = no + age = 20 + is_female = no + OR = { + trait = duelist + martial = 9 + } + NOR = { + is_inaccessible_trigger = yes + age = 65 + character = ROOT + opinion = { who = ROOT value = 10 } + reverse_opinion = { who = ROOT value = 10 } + } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_courtier = { + limit = { + is_councillor = no + age = 20 + is_female = no + OR = { + trait = duelist + martial = 9 + } + NOR = { + is_inaccessible_trigger = yes + age = 65 + character = ROOT + opinion = { who = ROOT value = 10 } + reverse_opinion = { who = ROOT value = 10 } + } + } + save_event_target_as = duelist_opponent + } + } + + option = { + name = EVTOPTA3625 + event_target:duelist_opponent = { + character_event = { + id = 3626 + days = 1 + tooltip = EVTTOOLTIP3626 + } + } + } + option = { + name = EVTOPTB3625 + prestige = -10 + random = { + chance = 25 + + remove_trait = duelist + hidden_tooltip = { + character_event = { + id = 38292 #Notify + } + } + } + event_target:duelist_opponent = { + opinion = { + modifier = opinion_coward + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC3625 + trigger = { + job_marshal = { + age = 20 + prisoner = no + is_abroad = no + martial = 6 + can_be_maimed_trigger = yes + NOT = { trait = wounded } + } + } + random = { + chance = 10 + + remove_trait = duelist + hidden_tooltip = { + character_event = { + id = 38292 #Notify + } + } + } + job_marshal = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + if = { + limit = { + NOT = { + martial = 7 + } + } + random_list = { + 40 = { + add_maimed_trait_effect = yes + } + 40 = { + add_trait = wounded + } + 10 = { + event_target:target_duelist = { + add_trait = wounded + } + } + 10 = { + event_target:target_duelist = { + add_maimed_trait_effect = yes + } + } + } + } + if = { + limit = { + martial = 12 + } + random_list = { + 20 = { + add_trait = wounded + } + 30 = { + event_target:target_duelist = { + add_maimed_trait_effect = yes + } + } + 40 = { + event_target:target_duelist = { + add_trait = wounded + } + } + 10 = { + add_maimed_trait_effect = yes + } + } + } + } + } +} + +#Duelist: Courtier +character_event = { + id = 3626 + desc = EVTDESC3626 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3626 #I accept! + FROM = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + reverse_opinion = { + modifier = opinion_cautious + who = ROOT + years = 1 + } + } + random_list = { + 50 = { + add_trait = wounded + FROM = { + character_event = { + id = 3627 + tooltip = EVTTOOLTIP3627 + } + } + } + 50 = { + prestige = 10 + FROM = { + character_event = { + id = 3628 + tooltip = EVTTOOLTIP3628 + } + } + } + } + } + option = { + name = EVTOPTB3626 #Never! + add_character_modifier = { + name = the_fainthearted + duration = 365 + } + FROM = { + character_event = { + id = 3629 + tooltip = EVTTOOLTIP3629 + } + } + if = { + limit = { + trait = duelist + } + random = { + chance = 20 + remove_trait = duelist + } + } + } +} + +#Duelist: ROOT +character_event = { + id = 3627 + desc = EVTDESC3627 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3627 + add_character_modifier = { + name = master_duelist + duration = 1825 + } + } +} + +#Duelist: ROOT +character_event = { + id = 3628 + desc = EVTDESC3628 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3628 + prestige = -10 + random = { + chance = 70 + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + } +} + +#Duelist: ROOT +character_event = { + id = 3629 + desc = EVTDESC3629 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3629 + add_character_modifier = { + name = master_duelist + duration = 1825 + } + } +} + +### Duelist: Start ### +character_event = { + id = 3630 + desc = EVTDESC3630 + picture = GFX_evt_melee + + only_playable = yes + only_men = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = duelist + in_command = no + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = averted_duel + } + OR = { + trait = brave + NOT = { + trait = craven + } + } + OR = { + is_married = yes + any_courtier = { + age = 16 + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = duelist + } + OR = { + trait = craven + martial = 6 + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = wounded + } + + modifier = { + factor = 0.1 + is_female = yes + } + + modifier = { + factor = 0.5 + trait = slothful + } + } + + option = { + name = EVTOPTA3630 + trigger = { + is_married = yes + } + spouse = { + character_event = { + id = 3631 + days = 2 + tooltip = EVTTOOLTIP3631 + } + } + } + option = { + name = EVTOPTA3630 + trigger = { + is_married = no + } + random_courtier = { + limit = { + age = 16 + in_command = no + NOR = { + is_inaccessible_trigger = yes + trait = duelist + } + OR = { + trait = craven + martial = 6 + } + } + character_event = { + id = 3632 + days = 2 + tooltip = EVTTOOLTIP3632 + } + } + } + option = { + name = EVTOPTB3630 + if = { + limit = { + is_married = yes + spouse = { + is_alive = yes + prisoner = no + is_abroad = no + } + } + spouse = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + } + random = { + chance = 20 + + remove_trait = duelist + hidden_tooltip = { + character_event = { + id = 38292 #Notify + } + } + } + } +} + +#Duelist: Spouse worries - intervention? +character_event = { + id = 3631 + desc = EVTDESC3631 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3631 #Intervention! + FROM = { + character_event = { + id = 3633 + tooltip = EVTTOOLTIP3633 + } + } + } + option = { + name = EVTOPTB3631 + add_trait = content + } +} + +#Duelist: Courtier worries - intervention? +character_event = { + id = 3632 + desc = EVTDESC3632 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3632 #Intervention! + prestige = 10 + FROM = { + character_event = { + id = 3633 + tooltip = EVTTOOLTIP3633 + } + } + } + option = { + name = EVTOPTB3632 + add_trait = content + } +} + +#Duelist: Intervention! +character_event = { + id = 3633 + desc = EVTDESC3633 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3633 + add_character_modifier = { + name = the_dour_duellist + duration = 365 + } + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3633 + add_character_modifier = { + name = averted_duel + duration = 365 + } + FROM = { + opinion = { + modifier = opinion_relieved + who = ROOT + years = 2 + } + } + } +} + +### Duelist: The unusual duel - Start ### +character_event = { + id = 3635 + desc = EVTDESC3635 + picture = GFX_evt_melee + + only_playable = yes + min_age = 20 + max_age = 65 + only_men = yes + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = duelist + in_command = no + OR = { + tier = duke + tier = count + } + NOR = { + is_inaccessible_trigger = yes + has_character_modifier = averted_duel + has_character_modifier = master_duelist + } + top_liege = { + any_realm_lord = { + is_female = no + age = 20 + OR = { + tier = duke + tier = count + } + can_be_maimed_trigger = yes + NOR = { + is_inaccessible_trigger = yes + age = 65 + opinion = { who = ROOT value = -10 } + trait = wounded + trait = infirm + trait = incapable + } + OR = { + trait = duelist + martial = 9 + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = brave + } + + modifier = { + factor = 0.5 + trait = craven + } + } + + immediate = { + top_liege = { + random_realm_province = { + limit = { + any_province_lord = { + is_female = no + age = 20 + OR = { + tier = duke + tier = count + } + can_be_maimed_trigger = yes + NOR = { + is_inaccessible_trigger = yes + age = 65 + opinion = { who = ROOT value = -10 } + trait = wounded + trait = infirm + trait = incapable + } + OR = { + trait = duelist + martial = 9 + } + } + } + save_event_target_as = duel_location + } + } + } + + option = { + name = EVTOPTA3635 + event_target:duel_location = { + random_province_lord = { + limit = { + is_female = no + age = 20 + OR = { + tier = duke + tier = count + } + can_be_maimed_trigger = yes + NOR = { + is_inaccessible_trigger = yes + trait = wounded + trait = infirm + trait = incapable + age = 65 + opinion = { who = ROOT value = -10 } + } + OR = { + trait = duelist + martial = 9 + } + } + } + character_event = { + id = 3636 + tooltip = EVTTOOLTIP3636 + } + } + } + option = { + name = EVTOPTB3635 + if = { + limit = { + NOR = { + trait = craven + trait = berserker + } + } + add_trait = craven + } + random = { + chance = 20 + + remove_trait = duelist + hidden_tooltip = { + character_event = { + id = 38292 #Notify + } + } + } + } +} + +#Duelist: Unusual Duel - Noble +character_event = { + id = 3636 + desc = EVTDESC3636 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3636 #Moorish cannon + FROM = { + character_event = { + id = 3637 + tooltip = EVTTOOLTIP3637 + } + } + } + option = { + name = EVTOPTB3636 #Forkful of pig dung + FROM = { + character_event = { + id = 3638 + tooltip = EVTTOOLTIP3638 + } + } + } + option = { + name = EVTOPTC3636 #With swords + FROM = { + character_event = { + id = 3639 + tooltip = EVTTOOLTIP3639 + } + } + } +} + +#Duelist: Unusual Duel - ROOT +character_event = { + id = 3637 + desc = EVTDESC3637 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3637 #Accept + random_list = { + 50 = { + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + 50 = { + add_maimed_trait_effect = yes + hidden_tooltip = { character_event = { id = 38281 } } + } + } + add_character_modifier = { + name = master_duelist + duration = 1825 + } + } + option = { + name = EVTOPTB3637 #Refuse + add_character_modifier = { + name = averted_duel + duration = 365 + } + } +} + +#Duelist: Unusual Duel - ROOT +character_event = { + id = 3638 + desc = EVTDESC3638 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3638 #Accept + random_list = { + 50 = { + prestige = -20 + } + 50 = { + add_character_modifier = { + name = master_duelist + duration = 365 + } + } + } + } + option = { + name = EVTOPTB3638 #Refuse + add_character_modifier = { + name = averted_duel + duration = 365 + } + } +} + +#Duelist: Unusual Duel - ROOT +character_event = { + id = 3639 + desc = EVTDESC3639 + picture = GFX_evt_melee + + is_triggered_only = yes + + option = { + name = EVTOPTA3639 #Accept + random_list = { + 50 = { + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + } + 50 = { + add_maimed_trait_effect = yes + hidden_tooltip = { character_event = { id = 38281 } } + } + } + add_character_modifier = { + name = master_duelist + duration = 365 + } + } + option = { + name = EVTOPTB3639 #Refuse + add_character_modifier = { + name = averted_duel + duration = 365 + } + } +} + +### HUNTER ### + +### Hunter: Gain martial ### +character_event = { + id = 3640 + desc = EVTDESC3640 + picture = GFX_evt_hunt + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + trait = hunter + in_command = no + NOR = { + is_inaccessible_trigger = yes + martial = 15 + trait = slothful + trait = craven + } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + martial = 10 + trait = hunter + } + has_job_action = no + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = ambitious + } + + modifier = { + factor = 2 + trait = diligent + } + + modifier = { + factor = 0.5 + trait = shy + } + + modifier = { + factor = 0.2 + trait = wroth + } + } + + immediate = { + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + martial = 10 + trait = hunter + } + has_job_action = no + } + save_event_target_as = fellow_hunter + } + } + + option = { + name = EVTOPTA3640 #Demand + piety = -10 + event_target:fellow_hunter = { + set_character_flag = bribed_hunter + character_event = { + id = 3641 + days = 2 + tooltip = EVTTOOLTIP3641 + } + } + } + option = { + name = EVTOPTB3640 #Ask nicely + prestige = -10 + event_target:fellow_hunter = { + set_character_flag = bribed_hunter + character_event = { + id = 3641 + days = 2 + tooltip = EVTTOOLTIP3641 + } + } + } + option = { + name = EVTOPTC3640 #Bribe + scaled_wealth = -0.10 + event_target:fellow_hunter = { + set_character_flag = bribed_hunter + character_event = { + id = 3641 + days = 2 + tooltip = EVTTOOLTIP3641 + } + } + } + option = { + name = EVTOPTD3640 #Ignore + add_trait = content + random = { + chance = 20 + + remove_trait = hunter + hidden_tooltip = { + character_event = { + id = 38293 #Notify + } + } + } + } +} + +#Hunter: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3641 + desc = EVTDESC3641 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3641 + trigger = { + has_character_flag = pressured_hunter + } + clr_character_flag = pressured_hunter + FROM = { + set_character_flag = irritated_hunter + character_event = { + id = 3642 + days = 7 + tooltip = EVTTOOLTIP3642 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3641 + trigger = { + has_character_flag = asked_hunter + } + clr_character_flag = asked_hunter + FROM = { + set_character_flag = happy_hunter + character_event = { + id = 3642 + days = 7 + tooltip = EVTTOOLTIP3642 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3641 + trigger = { + has_character_flag = bribed_hunter + } + clr_character_flag = bribed_hunter + treasury = 10 + FROM = { + set_character_flag = generous_hunter + character_event = { + id = 3642 + days = 7 + tooltip = EVTTOOLTIP3642 + } + } + } +} + +#Hunter: ROOT get +martial +character_event = { + id = 3642 + desc = EVTDESC3642 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3642 + trigger = { + has_character_flag = irritated_hunter + } + clr_character_flag = irritated_hunter + FROM = { + reverse_opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + change_martial = 1 + } + option = { + name = EVTOPTA3642 + trigger = { + has_character_flag = happy_hunter + } + clr_character_flag = happy_hunter + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + change_martial = 2 + } + option = { + name = EVTOPTA3642 + trigger = { + has_character_flag = generous_hunter + } + clr_character_flag = generous_hunter + change_martial = 1 + } +} + +### Hunter: Invite for hunt - Start ### +character_event = { + id = 3645 + desc = EVTDESC3645 + picture = GFX_evt_hunt + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + is_triggered_only = yes + + trigger = { + trait = hunter + NOT = { is_inaccessible_trigger = yes } + OR = { + any_courtier = { + age = 16 + in_command = no + is_councillor = yes + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + any_child = { + age = 15 + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = brave + } + modifier = { + factor = 2 + trait = craven + } + } + + option = { + name = EVTOPTA3645 + trigger = { + job_marshal = { + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + job_marshal = { + character_event = { + id = 3646 + days = 2 + tooltip = EVTTOOLTIP3646 + } + } + } + option = { + name = EVTOPTB3645 + trigger = { + job_chancellor = { + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + job_chancellor = { + character_event = { + id = 3646 + days = 2 + tooltip = EVTTOOLTIP3646 + } + } + } + option = { + name = EVTOPTC3645 + trigger = { + job_spymaster = { + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + job_spymaster = { + character_event = { + id = 3646 + days = 2 + tooltip = EVTTOOLTIP3646 + } + } + } + option = { + name = EVTOPTE3645 + trigger = { + job_treasurer = { + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + job_treasurer = { + character_event = { + id = 3646 + days = 2 + tooltip = EVTTOOLTIP3646 + } + } + } + option = { + name = EVTOPTF3645 + trigger = { + job_spiritual = { + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + job_spiritual = { + character_event = { + id = 3646 + days = 2 + tooltip = EVTTOOLTIP3646 + } + } + } + option = { + name = EVTOPTD3645 + trigger = { + any_child = { + age = 15 + is_alive = yes + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + } + random_child = { + limit = { + age = 15 + is_alive = yes + OR = { + trait = hunter + trait = brave + martial = 9 + } + NOR = { + trait = craven + is_inaccessible_trigger = yes + } + } + character_event = { + id = 3647 + days = 2 + tooltip = EVTTOOLTIP3647 + } + } + } +} + +#Hunter: Courtier with job +character_event = { + id = 3646 + desc = EVTDESC3646 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3646 #Accept + FROM = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + character_event = { + id = 3648 + days = 1 + tooltip = EVTTOOLTIP3648 + } + } + } + option = { + name = EVTOPTB3646 #Refuse + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + character_event = { + id = 3649 + days = 1 + tooltip = EVTTOOLTIP3649 + } + } + } +} + +#Hunter: Child +character_event = { + id = 3647 + desc = EVTDESC3647 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3647 #Accept + FROM = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + character_event = { + id = 3648 + days = 1 + tooltip = EVTTOOLTIP3648 + } + } + } + option = { + name = EVTOPTB3647 #Refuse + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + character_event = { + id = 3649 + days = 1 + tooltip = EVTTOOLTIP3649 + } + } + } +} + +#Hunter: ROOT +character_event = { + id = 3648 + desc = EVTDESC3648 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3648 + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + } + } +} + +#Hunter: ROOT +character_event = { + id = 3649 + desc = EVTDESC3649 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3649 + FROM = { + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } +} + +### Hunter ### +character_event = { + id = 3650 + desc = EVTDESC3650 + picture = GFX_evt_hunt + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + NOR = { + #religion_group = muslim + #religion_group = jewish_group + is_inaccessible_trigger = yes + has_character_modifier = master_hunter + } + trait = hunter + in_command = no + OR = { + trait = brave + NOT = { + trait = craven + } + } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + has_job_title = job_marshal + has_job_title = job_spymaster + } + has_job_action = no + OR = { + trait = ambitious + trait = diligent + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3650 + trigger = { + job_spymaster = { + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = ambitious + trait = diligent + } + } + } + job_spymaster = { + character_event = { + id = 3651 + tooltip = EVTTOOLTIPA3651 + } + } + } + option = { + name = EVTOPTB3650 + trigger = { + job_marshal = { + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = ambitious + trait = diligent + } + } + } + job_marshal = { + character_event = { + id = 3651 + tooltip = EVTTOOLTIPB3651 + } + } + } + option = { + name = EVTOPTC3650 #Do it myself! + character_event = { + id = 3652 + tooltip = EVTTOOLTIP3652 + } + } + option = { + name = EVTOPTD3650 + trigger = { + any_child = { + is_abroad = no + prisoner = no + NOT = { is_inaccessible_trigger = yes } + is_female = no + age = 14 + OR = { + trait = brave + trait = hunter + martial = 7 + } + } + } + random_child = { + limit = { + is_abroad = no + prisoner = no + NOT = { is_inaccessible_trigger = yes } + is_female = no + age = 14 + OR = { + trait = brave + trait = hunter + martial = 7 + } + } + character_event = { + id = 3651 + tooltip = EVTTOOLTIPB3651 + } + } + } +} + +#Hunter: Courtier +character_event = { + id = 3651 + desc = EVTDESC3651 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3651 + ai_chance = { factor = 45 } + random_list = { + 25 = { + add_trait = wounded + FROM = { + set_character_flag = courtier_wounded + character_event = { + id = 3653 + tooltip = EVTTOOLTIP3653 + } + } + } + 25 = { + add_maimed_trait_effect = yes + FROM = { + set_character_flag = courtier_maimed + character_event = { + id = 3653 + tooltip = EVTTOOLTIP3653 + } + } + } + 25 = { + prestige = 15 + FROM = { + set_character_flag = courtier_unharmed + character_event = { + id = 3653 + tooltip = EVTTOOLTIP3653 + } + } + } + 25 = { + FROM = { + set_character_flag = courtier_unharmed + character_event = { + id = 3653 + tooltip = EVTTOOLTIP3653 + } + } + } + } + FROM = { + opinion = { + modifier = opinion_delighted + who = ROOT + years = 1 + } + } + add_character_modifier = { + name = master_hunter + duration = 1825 + } + } + + option = { + name = EVTOPTB3651 + trigger = { + NOT = { + trait = brave + } + } + ai_chance = { factor = 5 } + FROM = { + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 1 + } + } + FROM = { + character_event = { + id = 3654 + tooltip = EVTTOOLTIP3654 + } + } + } + option = { + name = EVTOPTC3651 #Prof. hunter + ai_chance = { factor = 50 } + treasury = 10 + FROM = { + set_character_flag = prof_hunter + opinion = { + modifier = opinion_satisfied + who = ROOT + years = 1 + } + character_event = { + id = 3653 + tooltip = EVTTOOLTIP3653 + } + } + } +} + +#Hunter: ROOT +character_event = { + id = 3652 + desc = EVTDESC3652 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3652 + random_list = { + 60 = { + add_trait = wounded + } + 40 = { + prestige = 15 + } + } + add_character_modifier = { + name = master_hunter + duration = 1825 + } + } + option = { + name = EVTOPTB3652 #Prof. hunter + treasury = 10 + add_character_modifier = { + name = the_idle + duration = 365 + } + } +} + +#Hunter: ROOT +character_event = { + id = 3653 + desc = EVTDESC3653 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3653 + trigger = { + has_character_flag = prof_hunter + } + clr_character_flag = prof_hunter + FROM = { + reverse_opinion = { + modifier = opinion_satisfied + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3653 + trigger = { + has_character_flag = courtier_unharmed + } + clr_character_flag = courtier_unharmed + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTC3653 + trigger = { + has_character_flag = courtier_maimed + } + clr_character_flag = courtier_maimed + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTD3653 + trigger = { + has_character_flag = courtier_wounded + } + clr_character_flag = courtier_wounded + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + } +} + +#Hunter: ROOT +character_event = { + id = 3654 + desc = EVTDESC3654 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3654 + FROM = { + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 1 + } + } + character_event = { + id = 3652 + tooltip = EVTTOOLTIP3652 + } + } + option = { + name = EVTOPTB3654 + tooltip_info = wroth + trigger = { + trait = wroth + } + FROM = { + prisoner = yes + } + } + option = { + name = EVTOPTC3654 #Prof. hunter + treasury = 10 + add_character_modifier = { + name = the_idle + duration = 365 + } + } +} + +### Hunter: The Deceit - Start ### +character_event = { + id = 3655 + desc = EVTDESC3655 + picture = GFX_evt_hunt + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + trait = hunter + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + is_councillor = yes + has_job_action = no + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = deceitful + } + modifier = { + factor = 2 + trait = kind + } + } + + option = { + name = EVTOPTA3655 + trigger = { + job_chancellor = { + in_command = no + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + job_chancellor = { + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } + option = { + name = EVTOPTB3655 + trigger = { + job_marshal = { + in_command = no + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + job_marshal = { + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } + option = { + name = EVTOPTC3655 + trigger = { + job_treasurer = { + in_command = no + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + job_treasurer = { + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } + option = { + name = EVTOPTD3655 + trigger = { + job_spymaster = { + in_command = no + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + job_spymaster = { + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } + option = { + name = EVTOPTE3655 + trigger = { + job_spiritual = { + in_command = no + has_job_action = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = trusting + NOT = { + trait = paranoid + } + } + OR = { + trait = zealous + NOT = { + trait = cynical + } + } + } + } + job_spiritual = { + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } + option = { + name = EVTOPTF3655 + trigger = { + any_child = { + age = 13 + is_abroad = no + prisoner = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = craven + trait = paranoid + } + } + } + random_child = { + limit = { + age = 16 + is_abroad = no + prisoner = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = craven + trait = paranoid + } + } + character_event = { + id = 3656 + tooltip = EVTTOOLTIP3656 + } + } + } +} + +#Hunter: The Deceit - Courtier +character_event = { + id = 3656 + desc = EVTDESC3656 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3656 #You... bastard! + FROM = { + set_character_flag = angry_courtier + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + character_event = { + id = 3657 + tooltip = EVTTOOLTIP3657 + } + } + } + option = { + name = EVTOPTB3656 #Heh, you scared me! + FROM = { + set_character_flag = scared_courtier + reverse_opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + character_event = { + id = 3657 + tooltip = EVTTOOLTIP3657 + } + } + } + option = { + name = EVTOPTC3656 #Did you try to scare me? + FROM = { + set_character_flag = unimpressed_courtier + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + character_event = { + id = 3657 + tooltip = EVTTOOLTIP3657 + } + } + } +} + +#Hunter: The Deceit - ROOT +character_event = { + id = 3657 + desc = EVTDESC3657 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA3657 + trigger = { + has_character_flag = unimpressed_courtier + } + clr_character_flag = unimpressed_courtier + FROM = { + reverse_opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB3657 + trigger = { + has_character_flag = scared_courtier + } + clr_character_flag = scared_courtier + FROM = { + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = wild_hunter + duration = 1825 + } + } + option = { + name = EVTOPTC3657 + trigger = { + has_character_flag = angry_courtier + } + clr_character_flag = angry_courtier + FROM = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 2 + } + } + add_character_modifier = { + name = wild_hunter + duration = 1825 + } + } +} + +###### POET ###### + +### Poet: Gain diplomacy ### +character_event = { + id = 3660 + desc = EVTDESC3660 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + ai = no + war = no + + is_triggered_only = yes + + trigger = { + trait = poet + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = charitable + trait = gregarious + NAND = { + diplomacy = 15 + trait = content + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = ambitious + } + + modifier = { + factor = 2 + trait = diligent + } + + modifier = { + factor = 0.5 + trait = shy + } + + modifier = { + factor = 0.2 + trait = wroth + } + } + + option = { + name = EVTOPTA3660 #Demand + piety = -10 + create_character = { + diplomacy = 10 + dynasty = random + trait = poet + age = 30 + female = no + has_nickname = nick_the_troubadour + } + new_character = { + set_character_flag = pressured_poet + character_event = { + id = 3661 + days = 2 + tooltip = EVTTOOLTIP3661 + } + } + } + option = { + name = EVTOPTB3660 #Ask nicely + prestige = -10 + create_character = { + diplomacy = 10 + dynasty = random + trait = poet + age = 30 + female = no + has_nickname = nick_the_troubadour + } + new_character = { + set_character_flag = asked_poet + character_event = { + id = 3661 + days = 2 + tooltip = EVTTOOLTIP3661 + } + } + } + option = { + name = EVTOPTC3660 #Bribe + scaled_wealth = -0.10 + create_character = { + diplomacy = 10 + dynasty = random + trait = poet + age = 30 + female = no + has_nickname = nick_the_troubadour + } + new_character = { + set_character_flag = bribed_poet + character_event = { + id = 3661 + days = 2 + tooltip = EVTTOOLTIP3661 + } + } + } + option = { + name = EVTOPTD3660 #Ignore + add_trait = content + create_character = { + diplomacy = 10 + dynasty = random + trait = poet + age = 30 + female = no + has_nickname = nick_the_troubadour + } + } +} + +#Poet: Courtier reacts to demands/bribes or being asked nicely +character_event = { + id = 3661 + desc = EVTDESC3661 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3661 + trigger = { + has_character_flag = pressured_poet + } + clr_character_flag = pressured_poet + FROM = { + set_character_flag = irritated_poet + character_event = { + id = 3662 + days = 7 + tooltip = EVTTOOLTIP3662 + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + + option = { + name = EVTOPTB3661 + trigger = { + has_character_flag = asked_poet + } + clr_character_flag = asked_poet + FROM = { + set_character_flag = happy_poet + character_event = { + id = 3662 + days = 7 + tooltip = EVTTOOLTIP3662 + } + } + opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + option = { + name = EVTOPTC3661 + trigger = { + has_character_flag = bribed_poet + } + clr_character_flag = bribed_poet + treasury = 10 + FROM = { + set_character_flag = generous_poet + character_event = { + id = 3662 + days = 7 + tooltip = EVTTOOLTIP3662 + } + } + } +} + +#Poet: ROOT get +diplomacy +character_event = { + id = 3662 + desc = EVTDESC3662 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3662 + trigger = { + has_character_flag = irritated_poet + } + clr_character_flag = irritated_poet + FROM = { + reverse_opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 2 + } + } + change_diplomacy = 1 + } + option = { + name = EVTOPTA3662 + trigger = { + has_character_flag = happy_poet + } + clr_character_flag = happy_poet + FROM = { + reverse_opinion = { + modifier = opinion_delighted + who = ROOT + years = 2 + } + } + change_diplomacy = 2 + } + option = { + name = EVTOPTA3662 + trigger = { + has_character_flag = generous_poet + } + clr_character_flag = generous_poet + change_diplomacy = 1 + } +} + +### Poet: Entertain the court ### +character_event = { + id = 3665 + desc = EVTDESC3665 + picture = GFX_evt_emissary + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = poet + diplomacy = 6 + NOR = { + is_inaccessible_trigger = yes + trait = wroth + } + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = gluttonous + trait = greedy + trait = wroth + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3665 + piety = -10 + add_trait = lustful + } + option = { + name = EVTOPTB3665 + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + OR = { + trait = gluttonous + trait = greedy + trait = wroth + } + } + opinion = { + modifier = opinion_upset + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = cynical + } + } + add_trait = cynical + } + if = { + limit = { + trait = kind + } + remove_trait = kind + } + } + option = { + name = EVTOPTC3665 + piety = 10 + any_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = zealous + OR = { + trait = chaste + trait = humble + piety = 100 + } + } + opinion = { + modifier = opinion_approves + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = zealous + } + } + add_trait = zealous + } + } + option = { + name = EVTOPTD3665 + add_trait = wroth + } +} + +### Poet: Courtier asks for a poem ### +character_event = { + id = 3675 + desc = EVTDESC3675 + picture = GFX_evt_courtiers_talking + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = poet + has_lover = no + any_courtier = { + age = 20 + prisoner = no + has_lover = no + NOT = { + trait = poet + } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_courtier = { + limit = { + age = 20 + prisoner = no + has_lover = no + NOT = { + trait = poet + } + } + save_event_target_as = poem_customer + } + } + + option = { + name = EVTOPTA3675 + hidden_tooltip = { + add_character_modifier = { + name = poetry_timer + duration = 430 + hidden = yes + } + } + add_trait = charitable + event_target:poem_customer = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + hidden_tooltip = { + add_character_modifier = { + name = used_poetry_timer + duration = 430 + hidden = yes + } + } + hidden_tooltip = { + if = { + limit = { + ROOT = { + is_married = yes + is_female = no + } + is_female = yes + NOR = { + trait = homosexual + trait = celibate + age = 30 + } + } + ROOT = { + spouse = { + character_event = { + id = 3676 + } + } + } + } + } + } + } + option = { + name = EVTOPTB3675 + hidden_tooltip = { + add_character_modifier = { + name = poetry_timer + duration = 430 + hidden = yes + } + } + treasury = 10 + event_target:poem_customer = { + hidden_tooltip = { + add_character_modifier = { + name = used_poetry_timer + duration = 430 + hidden = yes + } + } + opinion = { + modifier = opinion_mildly_disappointed + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC3675 + prestige = 10 + event_target:poem_customer = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + } +} + +#Poet: Spouse discover you gave poem to a courtier +character_event = { + id = 3676 + desc = EVTDESC3676 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3676 + opinion = { + modifier = opinion_forgive + who = FROM + years = 1 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 3677 + } + } + } + } + option = { + name = EVTOPTB3676 + trigger = { + FROM = { + any_lover = { character = ROOT } + } + } + opinion = { + modifier = opinion_sad + who = FROM + years = 1 + } + random_list = { + 70 = { + FROM = { + character_event = { + id = 3677 + tooltip = EVTTOOLTIP3677 + } + } + } + 20 = { + } + 10 = { + character_event = { + id = 64045 + tooltip = EVTTOOLTIP64045 + } + } + } + } +} + +#Poet: Spouse has discovered you gave poem to a courtier +character_event = { + id = 3677 + desc = EVTDESC3677 + picture = GFX_evt_quarrel + + is_triggered_only = yes + + option = { + name = EVTOPTA3677 + reverse_opinion = { + modifier = opinion_forgive + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB3677 + scaled_wealth = 0.05 + reverse_opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + } +} + +### Poet: Courtier might claim liege's poem is his/hers! ### +character_event = { + id = 3680 + desc = EVTDESC3680 + picture = GFX_evt_scandal + + only_playable = yes + min_age = 20 + capable_only = yes + prisoner = no + only_men = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + has_lover = no + has_character_modifier = used_poetry_timer + trait = deceitful + any_courtier = { + age = 16 + has_character_modifier = poetry_timer + war = no + in_command = no + prisoner = no + } + NOR = { + trait = celibate + trait = homosexual + } + any_courtier = { + is_female = yes + NOR = { + trait = celibate + trait = homosexual + } + prisoner = no + is_abroad = no + age = 20 + has_lover = no + opinion = { who = ROOT value = 20 } + reverse_opinion = { who = ROOT value = 20 } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_courtier = { + limit = { + is_female = yes + NOR = { + trait = celibate + trait = homosexual + } + prisoner = no + is_abroad = no + age = 20 + has_lover = no + opinion = { who = ROOT value = 20 } + reverse_opinion = { who = ROOT value = 20 } + } + save_event_target_as = sweetheart + } + random_courtier = { + limit = { + age = 16 + has_character_modifier = poetry_timer + war = no + in_command = no + prisoner = no + } + save_event_target_as = poem_author + } + } + + option = { + name = EVTOPTA3680 + event_target:sweetheart = { + add_lover = ROOT + } + random = { + chance = 10 + event_target:poem_author = { + character_event = { + id = 3681 + tooltip = EVTTOOLTIP3681 + } + } + } + } + option = { + name = EVTOPTB3680 + prestige = -10 + remove_trait = deceitful + event_target:sweetheart = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 10 + } + } + } +} + +#Poet: Poetry thief is confronted +character_event = { + id = 3681 + desc = EVTDESC3681 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3681 #Confront + prestige = 5 + opinion = { + modifier = opinion_irritated + who = FROM + years = 2 + } + FROM = { + character_event = { + id = 3682 + tooltip = EVTTOOLTIP3682 + } + } + } + option = { + name = EVTOPTB3681 #Seduced my little girl! + trigger = { + any_child = { + is_female = yes + any_lover = { character = FROM } + NOT = { + spouse = { + character = FROM + } + } + } + } + FROM = { + imprison = ROOT + } + hidden_tooltip = { + FROM = { + set_character_flag = seduced_daughter + character_event = { + id = 3683 + } + } + } + } + option = { + name = EVTOPTC3681 #Seduced my wife! + trigger = { + spouse = { + is_female = yes + is_alive = yes + any_lover = { character = FROM } + } + } + FROM = { + imprison = ROOT + } + hidden_tooltip = { + FROM = { + set_character_flag = seduced_wife + character_event = { + id = 3683 + } + } + } + } + option = { + name = EVTOPTD3681 #Forgive + prestige = -5 + opinion = { + modifier = opinion_forgive + who = FROM + years = 5 + } + } +} + +#Poet: ROOT gets his/her vengeance +character_event = { + id = 3682 + desc = EVTDESC3682 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3682 + prestige = -20 + reverse_opinion = { + modifier = opinion_irritated + who = FROM + years = 2 + } + } +} + +#Poet: ROOT gets his/her vengeance +character_event = { + id = 3683 + desc = EVTDESC3683 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA3683 + trigger = { + has_character_flag = seduced_daughter + } + clr_character_flag = seduced_daughter + opinion = { + modifier = opinion_dislike + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB3683 + trigger = { + has_character_flag = seduced_wife + } + clr_character_flag = seduced_wife + prestige = 10 + opinion = { + modifier = opinion_dislike + who = FROM + years = 5 + } + } +} + +### I have lost my inspiration ### +character_event = { + id = 3685 + desc = EVTDESC3685 + picture = GFX_evt_recieve_letter + + only_playable = yes + min_age = 20 + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = poet + in_command = no + has_lover = no + OR = { + trait = slothful + trait = content + NAND = { + trait = ambitious + trait = diligent + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3685 + character_event = { + id = 3686 + tooltip = EVTTOOLTIP3686 + } + } + option = { + name = EVTOPTB3685 + random = { + chance = 20 + + remove_trait = poet + hidden_tooltip = { + character_event = { + id = 38294 #Notify remove Poet + } + } + } + } + option = { + name = EVTOPTC3685 + random_list = { + 20 = { + character_event = { + id = 3686 + tooltip = EVTTOOLTIP3686 + } + } + 20 = { + remove_trait = poet + hidden_tooltip = { + character_event = { + id = 38294 #Notify remove Poet + } + } + } + 20 = { + add_trait = diligent + hidden_tooltip = { + character_event = { + id = 38256 #Notify Diligent + } + } + } + 20 = { + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + } + } +} + +#Poet: Found a muse? +character_event = { + id = 3686 + desc = EVTDESC3686 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA3686 + trigger = { + has_lover = no + any_courtier = { + age = 16 + in_command = no + has_lover = no + prisoner = no + is_opposite_sex = ROOT + NOR = { + trait = celibate + trait = homosexual + } + + is_valid_attraction = ROOT + + opinion = { who = ROOT value = 20 } + reverse_opinion = { who = ROOT value = 20 } + } + } + random_courtier = { + limit = { + age = 16 + in_command = no + prisoner = no + is_opposite_sex = ROOT + NOR = { + trait = celibate + trait = homosexual + } + + is_valid_attraction = ROOT + + opinion = { who = ROOT value = 20 } + reverse_opinion = { who = ROOT value = 20 } + } + character_event = { + id = 3687 + tooltip = EVTTOOLTIP3687 + } + } + } + option = { + name = EVTOPTB3686 + trigger = { + is_married = yes + spouse = { + is_alive = yes + prisoner = no + is_abroad = no + opinion = { who = ROOT value = 10 } + reverse_opinion = { who = ROOT value = 10 } + } + } + set_character_flag = poet_spouse_muse + character_event = { + id = 64025 + tooltip = EVTTOOLTIP64025 + } + } + option = { + name = EVTOPTC3686 + if = { + limit = { + NOT = { + trait = content + } + } + add_trait = content + } + random = { + chance = 70 + + remove_trait = poet + hidden_tooltip = { + character_event = { + id = 38294 #Notify remove Poet + } + } + } + } +} + +#Poet: Am I the muse for him/her? +character_event = { + id = 3687 + desc = EVTDESC3687 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA3687 + add_lover = from + hidden_tooltip = { + FROM = { + character_event = { + id = 3688 + } + } + } + } + option = { + name = EVTOPTB3687 + opinion = { + modifier = opinion_disgusted + who = FROM + years = 5 + } + hidden_tooltip = { + FROM = { + character_event = { + id = 3689 + } + } + } + } +} + +#Poet: New muse! +character_event = { + id = 3688 + desc = EVTDESC3688 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA3688 + add_lover = from + } +} + +#Poet: Rejected by muse +character_event = { + id = 3689 + desc = EVTDESC3689 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA3689 + FROM = { + opinion = { + modifier = opinion_disgusted + who = ROOT + years = 5 + } + } + opinion = { + modifier = opinion_sad + who = FROM + years = 5 + } + } +} + +###### FALCONER ###### + +#### Falconer: Bring-your-kids-to-hunt-day ### +character_event = { + id = 3690 + desc = EVTDESC3690 + picture = GFX_evt_falconing + + only_playable = yes + min_age = 20 + prisoner = no + capable_only = yes + war = no + is_married = yes + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = falconer + spouse = { + is_alive = yes + NOT = { is_inaccessible_trigger = yes } + } + num_of_children = 3 + any_child = { + age = 13 + NOR = { + age = 20 + is_inaccessible_trigger = yes + } + is_abroad = no + prisoner = no + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_child = { + limit = { + age = 13 + NOT = { + age = 20 + is_inaccessible_trigger = yes + } + is_abroad = no + prisoner = no + } + save_event_target_as = hunting_child + } + } + + option = { + name = EVTOPTA3690 + event_target:hunting_child = { + character_event = { + id = 3691 + tooltip = EVTTOOLTIP3691 + } + } + } + + option = { + name = EVTOPTB3690 + spouse = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + } + event_target:hunting_child = { + character_event = { + id = 3692 + tooltip = EVTTOOLTIP3691 + } + } + } + option = { + name = EVTOPTC3690 + spouse = { + opinion = { + modifier = opinion_angry + who = ROOT + years = 5 + } + } + event_target:hunting_child = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + } + } + option = { + name = EVTOPTD3690 + trigger = { + spouse = { + is_alive = yes + trait = falconer + } + event_target:hunting_child = { + trait = brave + martial = 10 + } + } + character_event = { + id = 3697 + tooltip = EVTTOOLTIP3697 + } + } +} + +#Falconer: Child is welcome to hunt with parent +character_event = { + id = 3691 + desc = EVTDESC3691 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3691 + opinion = { + modifier = opinion_glad + who = FROM + years = 5 + } + FROM = { + random_list = { + 20 = { + character_event = { + id = 3693 + tooltip = EVTTOOLTIP3693 #Good hunt! + } + } + 30 = { + character_event = { + id = 3694 + tooltip = EVTTOOLTIP3693 #You shame me! + } + } + 20 = { + character_event = { + id = 3695 + tooltip = EVTTOOLTIP3694 #I am impressed! + } + } + 30 = { + character_event = { + id = 3696 + tooltip = EVTTOOLTIP3695 #Plucking flowers? What for? + } + } + } + } + } + option = { + name = EVTOPTB3691 + change_martial = -1 + change_stewardship = 1 + reverse_opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 3698 + tooltip = EVTTOOLTIP3698 + } + } + } +} + +#Falconer: Child is NOT welcome to hunt with parent +character_event = { + id = 3692 + desc = EVTDESC3692 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3692 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + random_list = { + 20 = { + modifier = { + factor = 0 + event_target:hunting_child = { + martial = 10 + } + } + character_event = { + id = 3693 + tooltip = EVTTOOLTIP3693 #Good hunt! + } + } + 30 = { + character_event = { + id = 3694 + tooltip = EVTTOOLTIP3694 #You shame me! + } + } + 20 = { + modifier = { + factor = 0 + event_target:hunting_child = { + trait = brave + } + } + character_event = { + id = 3695 + tooltip = EVTTOOLTIP3694 #I am impressed! + } + } + 30 = { + modifier = { + factor = 0 + event_target:hunting_child = { + learning = 10 + } + } + character_event = { + id = 3696 + tooltip = EVTTOOLTIP3695 #Plucking flowers? What for? + } + } + } + } + } + option = { + name = EVTOPTB3692 + change_martial = -1 + change_stewardship = 2 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + FROM = { + character_event = { + id = 3698 + tooltip = EVTTOOLTIP3698 + } + } + } +} + +#Falconer: Good Hunt! +character_event = { + id = 3693 + desc = EVTDESC3693 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3693 + change_martial = 1 + event_target:hunting_child = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + change_martial = 1 + } + } +} + +#Falconer: You shame me! +character_event = { + id = 3694 + desc = EVTDESC3694 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3694 + event_target:hunting_child = { + reverse_opinion = { + modifier = opinion_disappointed + who = ROOT + years = 5 + } + if = { + limit = { + NOT = { + trait = shy + } + } + add_trait = shy + } + } + } +} + +#Falconer: I am impressed! No one has ever killed so many hares! +character_event = { + id = 3695 + desc = EVTDESC3695 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3695 + prestige = 10 + event_target:hunting_child = { + random = { + chance = 20 + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 + } + } + } + change_martial = 1 + opinion = { + modifier = opinion_happy + who = ROOT + years = 5 + } + } + } +} + +#Falconer: Why did you pluck all those flowers for? +character_event = { + id = 3696 + desc = EVTDESC3696 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3696 + event_target:hunting_child = { + opinion = { + modifier = opinion_sad + who = ROOT + years = 5 + } + change_learning = 1 + } + } +} + +#Falconer: Family event! +character_event = { + id = 3697 + desc = EVTDESC3697 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3697 + prestige = 100 + } +} + +#Falconer: Child does NOT join +character_event = { + id = 3698 + desc = EVTDESC3698 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3698 + prestige = -10 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 5 + } + } +} + +### Falconer: Courtier asks for help with bird ### +character_event = { + id = 3700 + desc = EVTDESC3700 + picture = GFX_evt_falconing + + only_playable = yes + min_age = 20 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = falconer + any_courtier = { + prisoner = no + opinion = { who = ROOT value = 20 } + age = 16 + NOR = { + is_inaccessible_trigger = yes + trait = falconer + trait = craven + } + martial = 6 + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_courtier = { + limit = { + prisoner = no + opinion = { who = ROOT value = 20 } + age = 16 + NOR = { + is_inaccessible_trigger = yes + trait = falconer + trait = craven + } + martial = 6 + } + save_event_target_as = falcon_help + } + } + + option = { + name = EVTOPTA3700 + if = { + limit = { + NOT = { + trait = deceitful + } + } + add_trait = deceitful + } + event_target:falcon_help = { + set_character_flag = sold_falcon + opinion = { + modifier = opinion_happy + who = ROOT + years = 5 + } + } + random_list = { + 40 = { + character_event = { + id = 3701 + tooltip = EVTTOOLTIP3701 + } + } + 30 = { + character_event = { + id = 3702 + tooltip = EVTTOOLTIP3702 + } + } + 20 = { + } + 10 = { + change_intrigue = 1 + } + } + } + option = { + name = EVTOPTB3700 + treasury = 10 + event_target:falcon_help = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 5 + } + } + random_list = { + 30 = { + } + 20 = { + prestige = 10 + } + 10 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify wounded + } + } + } + 20 = { + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify Charitable + } + } + } + 20 = { + add_trait = greedy + hidden_tooltip = { + character_event = { + id = 38252 #Notify Greedy + } + } + } + } + } + option = { + name = EVTOPTC3700 + event_target:falcon_help = { + set_character_flag = trained_falcon + opinion = { + modifier = opinion_delighted + who = ROOT + years = 5 + } + } + random_list = { + 40 = { + set_character_flag = good_bird + character_event = { + id = 3701 + days = 14 + tooltip = EVTTOOLTIP3701 + } + } + 30 = { + set_character_flag = bad_bird + character_event = { + id = 3702 + days = 14 + tooltip = EVTTOOLTIP3702 + } + } + } + } + option = { + name = EVTOPTD3700 + prestige = -5 + event_target:falcon_help = { + add_friend = ROOT + set_character_flag = deceitful_falconer + } + hidden_tooltip = { + character_event = { + id = 3703 + days = 10 + random = 20 + } + } + } +} + +#Falconer: Good bird! +character_event = { + id = 3701 + desc = EVTDESC3701 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3701 #Keep it + trigger = { + NOT = { + has_character_flag = good_bird + } + } + prestige = 10 + event_target:falcon_help = { + clr_character_flag = sold_falcon + random = { + chance = 20 + + set_character_flag = falcon_kept + character_event = { + id = 3704 + tooltip = EVTTOOLTIP3704 + } + } + } + } + option = { + name = EVTOPTB3701 #Train it and sell it + trigger = { + NOT = { + has_character_flag = good_bird + } + } + treasury = 20 + random_courtier = { + limit = { + has_character_flag = sold_falcon + } + clr_character_flag = sold_falcon + random = { + chance = 45 + + set_character_flag = falcon_sold + character_event = { + id = 3704 + tooltip = EVTTOOLTIP3704 + } + } + } + } + option = { + name = EVTOPTC3701 #Good bird! + trigger = { + has_character_flag = good_bird + } + prestige = 20 + clr_character_flag = good_bird + random_courtier = { + limit = { + has_character_flag = trained_falcon + } + clr_character_flag = trained_falcon + opinion = { + modifier = opinion_grateful + who = ROOT + years = 1 + } + character_event = { + id = 3707 + tooltip = EVTTOOLTIP3707 + } + } + } +} + +#Falconer: Bad bird! +character_event = { + id = 3702 + desc = EVTDESC3702 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3702 + trigger = { + has_character_flag = bad_bird + } + add_trait = wounded + event_target:falcon_help = { + clr_character_flag = trained_falcon + opinion = { + modifier = opinion_sad + who = ROOT + years = 1 + } + set_character_flag = untrainable_bird + character_event = { + id = 3705 + tooltip = EVTTOOLTIPA3705 + } + } + } + option = { + name = EVTOPTB3702 + trigger = { + has_character_flag = bad_bird + } + add_trait = wounded + random_list = { + 50 = { + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + 50 = { + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + event_target:falcon_help = { + clr_character_flag = trained_falcon + opinion = { + modifier = opinion_angry + who = ROOT + years = 1 + } + set_character_flag = killed_bird + character_event = { + id = 3705 + tooltip = EVTTOOLTIPA3705 + } + } + } + option = { + name = EVTOPTC3702 #Sell it back + trigger = { + NOT = { + has_character_flag = bad_bird + } + } + add_trait = wounded + treasury = 10 + event_target:falcon_help = { + opinion = { + modifier = opinion_disappointed + who = ROOT + years = 1 + } + character_event = { + id = 3705 + tooltip = EVTTOOLTIPB3705 + } + } + } + option = { + name = EVTOPTD3702 #Kill bird + trigger = { + any_courtier = { + has_character_flag = sold_falcon + } + } + add_trait = wounded + random_list = { + 50 = { + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + 50 = { + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + } + event_target:falcon_help = { + clr_character_flag = sold_falcon + random = { + chance = 20 + + set_character_flag = killed_falcon + character_event = { + id = 3705 + tooltip = EVTTOOLTIPB3705 + } + } + } + } +} + +#Falconer: +character_event = { + id = 3703 + desc = EVTDESC3703 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3703 + event_target:falcon_help = { + imprison = ROOT + hidden_tooltip = { + character_event = { + id = 3706 + } + } + } + } + option = { + name = EVTOPTB3703 + prestige = -10 + if = { + limit = { + NOT = { + trait = content + } + } + add_trait = content + } + if = { + limit = { + trait = content + NOT = { + trait = slothful + } + } + add_trait = slothful + } + } + option = { + name = EVTOPTC3703 + event_target:falcon_help = { + reverse_opinion = { + modifier = opinion_angry + who = ROOT + years = 1 + } + character_event = { + id = 3706 + tooltip = EVTTOOLTIP3706 + } + } + } +} + +#Falconer: Courtier is informed about finished training Good Bird! +character_event = { + id = 3704 + desc = EVTDESC3704 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3704 + trigger = { + has_character_flag = falcon_kept + } + clr_character_flag = falcon_kept + opinion = { + modifier = opinion_liar + who = FROM + years = 5 + } + } + option = { + name = EVTOPTB3704 + trigger = { + has_character_flag = sold_falcon + } + clr_character_flag = sold_falcon + opinion = { + modifier = opinion_irritated + who = FROM + years = 5 + } + } +} + +#Falconer: Courtier is informed about finished training Bad Bird! +character_event = { + id = 3705 + desc = EVTDESC3705 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3705 + trigger = { + has_character_flag = untrainable_bird + NOT = { + has_character_flag = killed_bird + } + } + clr_character_flag = untrainable_bird + opinion = { + modifier = opinion_sad + who = FROM + years = 4 + } + } + option = { + name = EVTOPTB3705 + trigger = { + has_character_flag = killed_bird + NOT = { + has_character_flag = untrainable_bird + } + } + clr_character_flag = killed_bird + opinion = { + modifier = opinion_angry + who = FROM + years = 4 + } + } + option = { + name = EVTOPTC3705 + trigger = { + has_character_flag = killed_falcon + } + clr_character_flag = killed_falcon + opinion = { + modifier = opinion_sad + who = FROM + years = 4 + } + } + option = { + name = EVTOPTD3705 + trigger = { + has_character_flag = sold_falcon + } + clr_character_flag = sold_falcon + treasury = -10 + opinion = { + modifier = opinion_disappointed + who = FROM + years = 4 + } + } +} + +#Falconer: Friend is confronted +character_event = { + id = 3706 + desc = EVTDESC3706 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3706 + prestige = -5 + reverse_opinion = { + modifier = opinion_angry + who = FROM + years = 4 + } + } +} + +#Falconer: Courtier is informed about finished training Good Bird! +character_event = { + id = 3707 + desc = EVTDESC3707 + picture = GFX_evt_falconing + + is_triggered_only = yes + + option = { + name = EVTOPTA3707 + opinion = { + modifier = opinion_grateful + who = FROM + years = 4 + } + hidden_tooltip = { + if = { + limit = { + in_command = no + war = no + martial = 8 + NOR = { + lifestyle_traits = 1 + has_character_flag = LE_ST + } + } + character_event = { + id = 5040 + days = 5 + random = 1 + } + } + } + } +} + +### GREGARIOUS ### + +### Vassal does NOT support liege ### +character_event = { + id = 3710 + desc = EVTDESC3710 + picture = GFX_evt_emissary + + only_playable = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = gregarious + in_command = no + NOT = { is_inaccessible_trigger = yes } + any_vassal = { + prisoner = no + war = no + in_command = no + NOR = { + is_inaccessible_trigger = yes + opinion = { who = ROOT value = -10 } + } + } + OR = { + trait = diligent + trait = ambitious + NOT = { + trait = slothful + } + NOT = { + trait = content + } + } + } + + weight_multiplier = { + factor = 1 + } + + immediate = { + random_vassal = { + limit = { + prisoner = no + war = no + in_command = no + NOR = { + is_inaccessible_trigger = yes + opinion = { who = ROOT value = -10 } + } + } + save_event_target_as = nonsupportive_vassal + } + } + + option = { + name = EVTOPTA3710 + event_target:nonsupportive_vassal = { + character_event = { + id = 3711 + tooltip = EVTTOOLTIP3711 + } + } + } + option = { + name = EVTOPTB3710 + prestige = 10 + event_target:nonsupportive_vassal = { + opinion = { + modifier = opinion_upset + who = ROOT + years = 5 + } + } + } +} + +#Liege talks to vassal, vassal reacts +character_event = { + id = 3711 + desc = EVTDESC3711 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3711 + opinion = { + modifier = opinion_irritated + who = FROM + years = 1 + } + FROM = { + opinion = { + modifier = opinion_stubborn + who = ROOT + years = 1 + } + set_character_flag = vassal_stubborn + character_event = { + id = 3712 + tooltip = EVTTOOLTIPA3712 + } + } + } + option = { + name = EVTOPTB3711 + opinion = { + modifier = opinion_convinced + who = FROM + years = 1 + } + FROM = { + opinion = { + modifier = opinion_glad + who = ROOT + years = 1 + } + set_character_flag = vassal_relented + character_event = { + id = 3712 + tooltip = EVTTOOLTIPB3712 + } + } + } +} + +#Liege gets vassals reaction +character_event = { + id = 3712 + desc = EVTDESC3712 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3712 + trigger = { + has_character_flag = vassal_stubborn + } + clr_character_flag = vassal_stubborn + prestige = -10 + } + option = { + name = EVTOPTB3712 + trigger = { + has_character_flag = vassal_relented + } + prestige = 10 + clr_character_flag = vassal_relented + opinion = { + modifier = opinion_glad + who = FROM + years = 4 + } + FROM = { + opinion = { + modifier = opinion_convinced + who = ROOT + years = 1 + } + } + } +} + +### Gregarious character's child is shy! ### +character_event = { + id = 3715 + desc = EVTDESC3715 + picture = GFX_evt_guardian + + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = gregarious + in_command = no + any_child = { + is_abroad = no + prisoner = no + trait = shy + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = trusting + } + modifier = { + factor = 0.5 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = cynical + } + } + + immediate = { + random_child = { + limit = { + is_abroad = no + prisoner = no + trait = shy + } + save_event_target_as = shy_child + } + } + + option = { + name = EVTOPTA3715 + event_target:shy_child = { + random_list = { + 25 = { + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 38295 #Nofify Remove Shy + } + } + } + 25 = { + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Nofify Gregarious + } + } + } + 30 = { + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Nofify Paranoid + } + } + } + 20 = { + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Nofify Stressed + } + } + } + } + } + } + option = { + name = EVTOPTB3715 + event_target:shy_child = { + random_list = { + 30 = { + } + 25 = { + add_trait = paranoid + hidden_tooltip = { + character_event = { + id = 38275 #Nofify Paranoid + } + } + } + 25 = { + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Nofify Cynical + } + } + } + 20 = { + change_intrigue = 1 + } + } + } + if = { + limit = { + NOT = { + trait = cynical + } + } + random = { + chance = 25 + + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Nofify Cynical + } + } + } + } + } + option = { + name = EVTOPTC3715 + event_target:shy_child = { + random_list = { + 20 = { + } + 10 = { + opinion = { + modifier = opinion_unhappy + who = ROOT + years = 5 + } + } + 20 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Nofify Depressed + } + } + } + 25 = { + change_learning = 1 + } + 25 = { + remove_trait = shy + hidden_tooltip = { + character_event = { + id = 38295 #Nofify Remove Shy + } + } + } + } + } + if = { + limit = { + NOT = { + trait = content + } + } + random = { + chance = 25 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Nofify Cynical + } + } + } + } + } +} + +### Take care of a courtier? ### +character_event = { + id = 3720 + desc = EVTDESC3720 + picture = GFX_evt_courtiers_talking + + prisoner = no + only_rulers = yes + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = gregarious + any_courtier = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = proud + opinion = { who = ROOT value = 10 } + OR = { + trait = shy + trait = paranoid + trait = cynical + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = zealous + } + } + + immediate = { + random_courtier = { + limit = { + age = 16 + in_command = no + NOT = { is_inaccessible_trigger = yes } + trait = proud + opinion = { who = ROOT value = 10 } + OR = { + trait = shy + trait = paranoid + trait = cynical + } + } + save_event_target_as = proud_courtier + } + } + + option = { + name = EVTOPTA3720 + event_target:proud_courtier = { + character_event = { + id = 3721 + tooltip = EVTTOOLTIP3721 + } + } + } + option = { + name = EVTOPTB3720 + if = { + limit = { + NOT = { + trait = slothful + } + } + random = { + chance = 25 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } + if = { + limit = { + trait = slothful + NOT = { + trait = content + } + } + random = { + chance = 25 + + add_trait = content + hidden_tooltip = { + character_event = { + id = 38279 #Notify Content + } + } + } + } + if = { + limit = { + trait = content + trait = slothful + } + random = { + chance = 25 + + remove_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38279 #Notify Remove Gregarious + } + } + } + } + event_target:proud_courtier = { + opinion = { + modifier = opinion_upset + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTC3720 + event_target:proud_courtier = { + opinion = { + modifier = opinion_grateful + who = ROOT + years = 5 + } + } + if = { + limit = { + trait = slothful + } + random = { + chance = 25 + + remove_trait = slothful + hidden_tooltip = { + character_event = { + id = 38298 #Notify Remove Slothful + } + } + } + } + if = { + limit = { + trait = content + } + random = { + chance = 25 + + remove_trait = content + hidden_tooltip = { + character_event = { + id = 38299 #Notify Remove Content + } + } + } + } + } +} + +#Courtier reacts +character_event = { + id = 3721 + desc = EVTDESC3721 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3721 + opinion = { + modifier = opinion_insulted + who = FROM + years = 1 + } + FROM = { + set_character_flag = courtier_insulted + character_event = { + id = 3722 + tooltip = EVTTOOLTIPA3722 + } + } + } + option = { + name = EVTOPTB3721 + prestige = -5 + random_list = { + 20 = { + } + 40 = { + remove_trait = proud + hidden_tooltip = { + character_event = { + id = 38300 #Notify Remove Proud + } + } + } + 40 = { + change_learning = 1 + } + } + opinion = { + modifier = opinion_grateful + who = FROM + years = 1 + } + FROM = { + set_character_flag = courtier_grateful + character_event = { + id = 3722 + tooltip = EVTTOOLTIPB3722 + } + } + } +} + +#Courtier reacts, liege gets answer +character_event = { + id = 3722 + desc = EVTDESC3722 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA3722 + trigger = { + has_character_flag = courtier_insulted + } + prestige = -10 + clr_character_flag = courtier_insulted + reverse_opinion = { + modifier = opinion_insulted + who = FROM + years = 4 + } + } + option = { + name = EVTOPTB3722 + trigger = { + has_character_flag = courtier_grateful + } + prestige = 10 + clr_character_flag = courtier_grateful + opinion = { + modifier = opinion_grateful + who = FROM + years = 4 + } + } +} + +### Gregarious character ### +character_event = { + id = 3725 + desc = EVTDESC3725 + picture = GFX_evt_scandal + + only_rulers = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = gregarious + OR = { + tier = duke + tier = king + tier = emperor + } + any_courtier = { + age = 16 + in_command = no + NOT = { + trait = gregarious + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA3725 + prestige = 10 + any_courtier = { + limit = { + age = 16 + in_command = no + NOT = { + trait = gregarious + } + } + opinion = { + modifier = opinion_lost_respect + who = ROOT + years = 5 + } + } + if = { + limit = { + NOT = { + trait = stressed + } + } + random = { + chance = 25 + + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify Stressed + } + } + } + } + } + option = { + name = EVTOPTB3725 + any_courtier = { + limit = { + age = 16 + in_command = no + NOT = { + trait = gregarious + } + } + opinion = { + modifier = opinion_gained_respect + who = ROOT + years = 5 + } + } + random = { + chance = 25 + + remove_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38297 #Notify Remove Gregarious + } + } + } + } + option = { + name = EVTOPTC3725 + random = { + chance = 25 + + change_intrigue = 1 + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } +} \ No newline at end of file diff --git a/After the End/events/various_traits_events.txt b/After the End/events/various_traits_events.txt new file mode 100644 index 000000000..57be5391f --- /dev/null +++ b/After the End/events/various_traits_events.txt @@ -0,0 +1,4955 @@ +################################################ +# +# Events for Various Traits +# +# ID 65000 - 65999 are reserved +# +################################################## +# +# Written by Sara Wendel-Örtqvist & Johan Andersson +# Designed by Johan Andersson + +### STRESSED EVENTS ### + +#Stressed character: Command a unit +character_event = { + id = 65000 + desc = EVTDESC65000 + picture = GFX_evt_crusaders + +# only_men = yes + capable_only = yes + prisoner = no + min_age = 16 + war = yes + + is_triggered_only = yes + + trigger = { + trait = stressed + in_command = yes + NOR = { + has_character_modifier = stressed_commander + has_character_modifier = misplaced_food + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65000 + add_character_modifier = { + name = stressed_commander + duration = 365 + } + } + option = { + name = EVTOPTB65000 + troops = -0.2 + } +} + +#Stressed: Diplomacy +character_event = { + id = 65001 + desc = EVTDESC65001 + picture = GFX_evt_emissary + + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = stressed + diplomacy = 2 + NOT = { + diplomacy = 10 + } + job_chancellor = { + diplomacy = 10 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65001 + random = { + chance = 25 + + change_diplomacy = -1 + remove_trait = stressed + } + job_chancellor = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 5 + } + character_event = { + id = 65002 + tooltip = EVTTOOLTIP65002 + } + } + } + option = { + name = EVTOPTB65001 + } +} + +#Chancellor gets +diplomacy and relation +character_event = { + id = 65002 + desc = EVTDESC65002 + picture = GFX_evt_emissary + + is_triggered_only = yes + + option = { + name = EVTOPTA65002 + change_diplomacy = 1 + } +} + +#Stressed: Martial +character_event = { + id = 65003 + desc = EVTDESC65003 + picture = GFX_evt_crusaders + + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = stressed + in_command = no + martial = 2 + NOT = { + martial = 10 + } + job_marshal = { + martial = 10 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65003 + random = { + chance = 25 + + change_martial = -1 + remove_trait = stressed + } + job_marshal = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 5 + } + character_event = { + id = 65004 + tooltip = EVTTOOLTIP65004 + } + } + } + option = { + name = EVTOPTB65003 + } +} + +#Marshal gets +martial and relation +character_event = { + id = 65004 + desc = EVTDESC65004 + picture = GFX_evt_crusaders + + is_triggered_only = yes + + option = { + name = EVTOPTA65004 + change_martial = 1 + } +} + +#Stressed: Intrigue +character_event = { + id = 65005 + desc = EVTDESC65005 + picture = GFX_evt_shadowy_cabal + + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = stressed + intrigue = 2 + NOT = { + intrigue = 10 + } + job_spymaster = { + intrigue = 10 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65005 + random = { + chance = 25 + + change_intrigue = -1 + remove_trait = stressed + } + job_spymaster = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 5 + } + character_event = { + id = 65006 + tooltip = EVTTOOLTIP65006 + } + } + } + option = { + name = EVTOPTB65005 + } +} + +#Spymaster gets +intrigue and relation +character_event = { + id = 65006 + desc = EVTDESC65006 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + option = { + name = EVTOPTA65006 + change_intrigue = 1 + } +} + +#Stressed: Stewardship +character_event = { + id = 65007 + desc = EVTDESC65007 + picture = GFX_evt_library + + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = stressed + stewardship = 2 + NOT = { + stewardship = 10 + } + job_treasurer = { + stewardship = 10 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65007 + random = { + chance = 25 + + change_stewardship = -1 + remove_trait = stressed + } + job_treasurer = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 5 + } + character_event = { + id = 65008 + tooltip = EVTTOOLTIP65008 + } + } + } + option = { + name = EVTOPTB65007 + } +} + +#Treasurer gets +stewardship and relation +character_event = { + id = 65008 + desc = EVTDESC65008 + picture = GFX_evt_library + + is_triggered_only = yes + + option = { + name = EVTOPTA65008 + change_stewardship = 1 + } +} + +### Stressed: Learning ### +character_event = { + id = 65009 + desc = EVTDESC65009 + picture = GFX_evt_bishop + + only_men = yes + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + #NOT = { religion_group = muslim } + #NOT = { religion = buddhist } + #NOT = { religion = jain } + trait = stressed + learning = 2 + NOT = { + learning = 10 + } + job_spiritual = { + learning = 10 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65009 + random = { + chance = 25 + + change_learning = -1 + remove_trait = stressed + } + job_spiritual = { + opinion = { + modifier = trusting_pos + who = ROOT + years = 5 + } + character_event = { + id = 65010 + tooltip = EVTTOOLTIP65010 + } + } + } + option = { + name = EVTOPTB65009 + } +} + +#Spiritual gets +learning and relation +character_event = { + id = 65010 + desc = EVTDESC65010 + picture = GFX_evt_bishop + + is_triggered_only = yes + + option = { + name = EVTOPTA65010 + change_learning = 1 + } +} + +### Ruler lashes out in anger to hide internal frustrations ### +character_event = { + id = 65011 + desc = EVTDESC65011 + picture = GFX_evt_scandal + + only_men = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = stressed + NOT = { + trait = kind + } + OR = { + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + NOT = { + trait = stressed + } + } + any_child = { + is_abroad = no + prisoner = no + is_primary_heir = yes + } + any_courtier = { + is_abroad = no + prisoner = no + is_councillor = yes + } + any_courtier = { + is_abroad = no + prisoner = no + is_councillor = no + } + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = arbitrary + } + modifier = { + factor = 2 + trait = cruel + } + } + + option = { + name = EVTOPTA65011 + trigger = { + is_married = yes + } + spouse = { + character_event = { + id = 65012 + tooltip = EVTTOOLTIPA65012 + } + } + } + option = { + name = EVTOPTB65011 + trigger = { + any_child = { + is_primary_heir = yes + } + } + random_child = { + limit = { + is_primary_heir = yes + } + character_event = { + id = 65012 + tooltip = EVTTOOLTIPB65012 + } + } + } + + option = { + name = EVTOPTC65011 + trigger = { + any_courtier = { + is_councillor = yes + } + } + random_courtier = { + limit = { + is_councillor = yes + prisoner = no + NOT = { trait = incapable } + } + character_event = { + id = 65012 + tooltip = EVTTOOLTIPC65012 + } + } + } + option = { + name = EVTOPTD65011 + trigger = { + any_courtier = { + is_councillor = no + } + } + random_courtier = { + limit = { + is_councillor = no + prisoner = no + NOT = { trait = incapable } + } + character_event = { + id = 65012 + tooltip = EVTTOOLTIPD65012 + } + } + } +} + +#Notifies Spouse/Heir/Chanchellor/Random Courtier +character_event = { + id = 65012 + desc = EVTDESC65012 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA65012 + FROM = { + reverse_opinion = { + modifier = opinion_horrified + who = ROOT + years = 2 + } + } + } +} + +### CRUEL EVENTS ### + +#Cruel character educates child +character_event = { + id = 65020 + desc = EVTDESC65020 + picture = GFX_evt_guardian + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + any_courtier = { + guardian = { + character = ROOT + } + is_weak_trigger = yes + age = 9 + NOT = { + age = 16 + } + can_be_maimed_trigger = yes + NOT = { + trait = brave + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65020 #Try to beat some sense in the child + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_child = { + limit = { + guardian = { + character = ROOT + } + is_weak_trigger = yes + age = 9 + NOT = { + age = 15 + } + can_be_maimed_trigger = yes + NOT = { + trait = brave + } + } + opinion = { + modifier = opinion_cruel + who = ROOT + years = 5 + } + random = { + chance = 50 + add_maimed_trait_effect = yes + + } + } + } + option = { + name = EVTOPTB65020 #Put the child out with the wolves + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_child = { + limit = { + guardian = { + character = ROOT + } + is_weak_trigger = yes + age = 9 + NOT = { + age = 15 + } + can_be_maimed_trigger = yes + NOT = { + trait = brave + } + } + opinion = { + modifier = opinion_mad_at_guardian + who = ROOT + years = 100 + } + random = { + chance = 25 + + add_trait = brave + } + random = { + chance = 75 + + death = { + death_reason = death_execution + killer = ROOT + } + } + } + } +} + +#Imprisoned character and Cruel ruler +character_event = { + id = 65021 + desc = EVTDESC65021 + picture = GFX_evt_into_the_dungeon + + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = cruel + any_courtier = { + prisoner = yes + host = { + character = ROOT + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65021 #Reduce food rations + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_courtier = { + limit = { + prisoner = yes + host = { + character = ROOT + } + } + random = { + chance = 25 + + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + } + } + } + option = { + name = EVTOPTB65021 #Release some rats in cell + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_courtier = { + limit = { + prisoner = yes + host = { + character = ROOT + } + } + add_character_modifier = { + name = rats_in_cell + duration = 90 + } + } + } +} + +#You decide that firing arrows on your court is a good idea +character_event = { + id = 65022 + desc = EVTDESC65022 + picture = GFX_evt_lunatic + + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = lunatic + trait = cruel + in_command = no + any_courtier = { + prisoner = no + NOT = { + trait = wounded + } + } + any_courtier = { + prisoner = no + age = 20 + can_be_maimed_trigger = yes + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65022 #Aim low + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_courtier = { + limit = { + prisoner = no + NOT = { + trait = incapable + trait = wounded + } + } + add_trait = wounded + hidden_tooltip = { character_event = { id = 38280 } } + opinion = { + modifier = opinion_horrified + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65022 #Aim high + if = { + limit = { religion = jain } + piety = -20 + custom_tooltip = { text = jain_ahimsa_tooltip } + } + random_courtier = { + limit = { + age = 20 + prisoner = no + can_be_maimed_trigger = yes + NOT = { + trait = incapable + } + } + random_list = { + 50 = { + death = { + death_reason = death_murder_unknown_arrow + killer = ROOT + } + } + 50 = { + add_maimed_trait_effect = yes + hidden_tooltip = { character_event = { id = 38281 } } + + opinion = { + modifier = opinion_cruel + who = ROOT + years = 5 + } + } + } + } + } +} + +#Craven courtier is frightened by ruler +character_event = { + id = 65023 + desc = EVTDESC65023 + picture = GFX_evt_scandal + + only_rulers = yes + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = cruel + in_command = no + any_courtier = { + trait = craven + age = 20 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65023 #Pretend to push them off the walls + random_courtier = { + limit = { + trait = craven + prisoner = no + NOT = { trait = incapable } + age = 20 + } + random = { + chance = 33 + + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify stressed + } + } + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65023 #Scare them in the night + random_courtier = { + limit = { + trait = craven + prisoner = no + age = 20 + NOT = { trait = incapable } + } + random = { + chance = 50 + + add_trait = depressed + } + opinion = { + modifier = opinion_dislike + who = ROOT + years = 5 + } + } + } +} + +### ZEALOUS EVENTS ### + +#Depressed, Zealous Character +character_event = { + id = 65030 + desc = EVTDESC65030 #God should not make us feel this... + picture = GFX_evt_bad_news + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + trait = depressed + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65030 #Pray harder + random_list = { + 50 = { + remove_trait = depressed + } + 25 = { + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify stressed + } + } + } + 25 = { + } + } + } + option = { + name = EVTOPTB65030 #Doubt self + piety = -5 + random = { + chance = 25 + + remove_trait = zealous + } + } +} + +#Ill, Zealous Character +character_event = { + id = 65031 + desc = EVTDESC65031 + picture = GFX_evt_illness + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + is_ill = yes + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65031 #Spend a forthnight fasting for my sins + random_list = { + 10 = { + death = { + death_reason = death_trait + } + } + 10 = { + add_trait = pneumonic + } + 33 = { + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + } + } + } + option = { + name = EVTOPTB65031 #Continue praying + random = { + chance = 1 + + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + } + } +} + +#Pneumonic, Ill, Zealous Character +character_event = { + id = 65032 + desc = EVTDESC65032 + picture = GFX_evt_illness + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + OR = { + trait = ill + trait = pneumonic + } + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65032 #Give to the poor for my sins + scaled_wealth = -1.0 + random = { + chance = 10 + if = { + limit = { + trait = pneumonic + } + remove_trait = pneumonic + clear_disease_level_effect = yes + } + if = { + limit = { + trait = ill + } + remove_trait = ill + } + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + } + } + option = { + name = EVTOPTB65032 #Prayers are enough + random = { + chance = 10 + + death = { + death_reason = death_trait + } + } + } +} + +#Leper, Zealous Character +character_event = { + id = 65033 + desc = EVTDESC65033 + picture = GFX_evt_illness + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + NOT = { + has_game_rule = { + name = supernatural_events + value = off + } + } + in_command = no + trait = leper + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65033 + scaled_wealth = -1.0 + remove_trait = leper + } +} + +### Sinful Character ### +character_event = { + id = 65034 + desc = EVTDESC65034 #We feel so guilty... + picture = GFX_evt_bad_news + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { trait = incapable } + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65034 #Prayer and fasting + add_character_modifier = { + name = one_year_fasting + duration = 365 + } + } + option = { + name = EVTOPTB65034 #Pay church etc + scaled_wealth = -0.5 + } +} + +#Scholar wrote a small religious tract +character_event = { + id = 65035 + desc = EVTDESC65035 + picture = GFX_evt_bishop + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + NOT = { trait = incapable } + in_command = no + trait = scholar + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65035 #Send to the Church + trigger = { + is_ruler = yes + } + add_character_modifier = { + name = religious_tract + duration = 3650 + } + } + option = { + name = EVTOPTB65035 #Vassal give liege + trigger = { + liege = { + age = 1 + NOT = { + character = ROOT + } + } + } + piety = 10 + liege = { + opinion = { + modifier = opinion_religious_tract + who = ROOT + years = 10 + } + } + } + option = { + name = EVTOPTC65035 #Courtier give host + trigger = { + host = { + age = 1 + NOT = { + character = ROOT + } + } + } + piety = 10 + host = { + opinion = { + modifier = opinion_religious_tract + who = ROOT + years = 10 + } + } + } +} + +#Lack of sin +character_event = { + id = 65036 + desc = EVTDESC65036 + picture = GFX_evt_bishop + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + NOR = { + trait = lustful + trait = gluttonous + trait = slothful + trait = greedy + trait = envious + trait = wroth + trait = proud + trait = incapable + } + OR = { + trait = chaste + trait = temperate + trait = charitable + trait = diligent + trait = kind + trait = patient + trait = humble + } + trait = zealous + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65036 #Proclaim lack of sin publicly + prestige = 5 + random_courtier = { + limit = { + prisoner = no + NOT = { trait = incapable } + OR = { + trait = lustful + trait = gluttonous + trait = slothful + trait = greedy + trait = envious + trait = wroth + trait = chaste + trait = proud + } + } + opinion = { + modifier = opinion_bragger + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65036 #Thank the Lord in private + piety = 1 + add_trait = humble + } + #option = { # This event only triggers for Christians so why is this option even here? + # name = EVTOPTC65036 #Thank Allah in private + # trigger = { + # religion_group = muslim + # } + # piety = 1 + # add_trait = humble + #} +} + +#Someone is Celibate +character_event = { + id = 65037 + desc = EVTDESC65037 + picture = GFX_evt_bishop + + min_age = 16 + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + in_command = no + NOT = { + trait = celibate + trait = lustful + trait = hedonist + } + trait = zealous + OR = { + any_courtier = { + trait = celibate + prisoner = no + } + any_vassal = { + trait = celibate + prisoner = no + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65037 #ask him/her for advice... + trigger = { + any_courtier = { + trait = celibate + prisoner = no + } + } + random_courtier = { + limit = { + trait = celibate + prisoner = no + NOT = { trait = incapable } + } + opinion = { + modifier = opinion_flattered + who = ROOT + years = 5 + } + } + random = { + chance = 50 + + add_trait = celibate + } + } + option = { + name = EVTOPTB65037 #try to emulate him/her + trigger = { + any_vassal = { + trait = celibate + prisoner = no + } + } + random_vassal = { + limit = { + trait = celibate + prisoner = no + } + opinion = { + modifier = opinion_flattered + who = ROOT + years = 5 + } + } + random = { + chance = 50 + + add_trait = celibate + } + } + option = { + name = EVTOPTC65037 + random = { + chance = 25 + + add_trait = celibate + } + } +} + +###################################################### +### DRUNKARD EVENTS +###################################################### + +#Fine meal.. +character_event = { + id = 65040 + desc = EVTDESC65040 + picture = GFX_evt_drunk + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + war = no + + is_triggered_only = yes + + trigger = { + NOT = { trait = drunkard } + in_command = no + OR = { + trait = gluttonous + trait = slothful + } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 5 + trait = hedonist + } + } + + option = { + name = EVTOPTA65040 + add_trait = drunkard + + } + option = { + name = EVTOPTB65040 + if = { + limit = { trait = gluttonous } + if = { + limit = { + NOT = { + has_dlc = "Reapers" + } + } + add_trait = ill + } + if = { + limit = { + has_dlc = "Reapers" + } + add_symptom_effect = yes + } + } + if = { + limit = { NOT = { trait = gluttonous } } + add_trait = gluttonous + } + } +} + +#Stressed and in command +character_event = { + id = 65041 + desc = EVTDESC65041 + picture = GFX_evt_crusaders + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + NOT = { trait = drunkard } + trait = stressed + in_command = yes + age = 16 + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65041 #find solace in the bottle of wine + add_trait = drunkard + remove_trait = stressed + } + option = { + name = EVTOPTB65041 #find solace in god. + trigger= { NOT = {trait=zealous } } + add_trait = zealous + piety = 5 + remove_trait = stressed + } + + option = { + name = EVTOPTC65041 #find solace in the camp followers + trigger= { NOT = {trait=lustful } } + add_trait = lustful + remove_trait = stressed + } +} + +#Hedonist! +character_event = { + id = 65042 + desc = EVTDESC65042 + picture = GFX_evt_feast + + min_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + age = 16 + NOT = { trait = drunkard } + trait = hedonist + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65042 #I know I drank some wine.. + add_trait = drunkard + } +} + +#Falling asleep in church +character_event = { + id = 65043 + desc = EVTDESC65043 + picture = GFX_evt_drunk + + capable_only = yes + only_rulers = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + trait = drunkard + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65043 #Keep Sleeping. + piety = -10 + add_character_modifier = { + name = slept_in_church + duration = -1 + } + } + option = { + name = EVTOPTB65043 #Apologise to the priest + prestige = -10 + } +} + +#Embarass yourself infront of your children +character_event = { + id = 65044 + desc = EVTDESC65044 + picture = GFX_evt_drunk + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = drunkard + in_command = no + any_child = { + age = 5 + NOT = { trait = drunkard } + is_abroad = no + NOT = { has_opinion_modifier = { who = ROOT modifier = despise_drunkard } } + + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65044 #oh well.. + any_child = { + limit = { + age = 5 + NOT = { trait = drunkard } + is_abroad = no + NOT = { has_opinion_modifier = { who = ROOT modifier = despise_drunkard } } + } + opinion = { + modifier = despise_drunkard + who = ROOT + years = 10 + } + + } + } +} + +#Spouse is upset with your drinking +character_event = { + id = 65045 + desc = EVTDESC65045 + picture = GFX_evt_drunk + + capable_only = yes + prisoner = no + religion_group = christian + is_married = yes + + is_triggered_only = yes + + trigger = { + trait = drunkard + in_command = no + spouse = { + is_abroad = no + prisoner = no + is_alive = yes + NOT = { + trait = drunkard + } + NOT = { + has_opinion_modifier = { who = ROOT modifier = despise_drunkard } + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65045 #Force her to drink with you. + trigger = { is_female = no } + spouse = { + character_event = { id = 65047 tooltip = EVTTOOLTIP65047 } + + } + } + option = { + name = EVTOPTB65045 #Ignore her. + spouse = { + opinion = { + modifier = despise_drunkard + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTC65045 #Attempt to stop + prestige = -20 + random = { + chance = 25 + + character_event = { id = 65046 tooltip = EVTTOOLTIP65046 } + } + } +} + +#We stop drinking.. +character_event = { + id = 65046 + desc = EVTDESC65046 + picture = GFX_evt_drunk + + is_triggered_only = yes + + option = { + name = EVTOPTA65046 + remove_trait = drunkard + } +} + +#I start drinking. +character_event = { + id = 65047 + desc = EVTDESC65047 + picture = GFX_evt_drunk + + is_triggered_only = yes + + option = { + name = EVTOPTA65047 + add_trait = drunkard + opinion = { + modifier = forced_drunkard + who = FROM + years = 2 + } + remove_opinion = { + modifier = opinion_lover + who = from + } + } +} + +#Motivating the troops +character_event = { + id = 65048 + desc = EVTDESC65048 + picture = GFX_evt_crusaders + + capable_only = yes + only_rulers = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = drunkard + in_command = yes + in_battle = no + in_siege = no + NOT = { has_character_modifier = drunk_commander } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65048 # Talk to the commanders + trigger = { + any_vassal = { + in_command = yes + at_location = root + NOT = { trait = drunkard } + NOT = { has_opinion_modifier = { who = ROOT modifier= despise_drunkard } } + } + } + + any_vassal = { + limit = { + in_command = yes + at_location = root + NOT = { trait = drunkard } + NOT = { has_opinion_modifier = { who = ROOT modifier = despise_drunkard } } + } + opinion = { + modifier = despise_drunkard + who = ROOT + years = 2 + } + } + } + option = { + name = EVTOPTB65048 # Talk to the soldiers + add_character_modifier = { + name = drunk_commander + duration = 90 + } + + } +} + +#I want to stop drinking +character_event = { + id = 65049 + desc = EVTDESC65049 + picture = GFX_evt_drunk + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = drunkard + NOT = { trait = content } + NOT = { trait = stressed } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 0.01 + OR = { + trait = gluttonous + trait = slothful + } + } + modifier = { + factor = 5 + OR = { + trait = ambitious + trait = diligent + } + } + modifier = { + factor = 10 + has_ambition = obj_buddhist_stop_drinking + } + } + + option = { + name = EVTOPTA65049 #Work hard with the sword + trigger = { + is_female = no + } + change_martial = 1 + prestige = 5 + remove_trait = drunkard + } + option = { + name = EVTOPTB65049 #Embroidery will take my mind off it. + trigger = { + is_female = yes + } + change_intrigue = 1 + prestige = 5 + remove_trait = drunkard + } + option = { + name = EVTOPTC65049 #God cures me! + trigger = { + NOT = { religion = buddhist } + NOT = { religion = jain } + } + piety = 5 + change_learning = 1 + remove_trait = drunkard + } +} + +#Drink myself to an early grave. +character_event = { + id = 65050 + desc = EVTDESC65050 + picture = GFX_evt_illness + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + NOT = { + uses_decadence = yes + } + trait = drunkard + health = 0 + NOT = { trait = incapable } + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 2 + trait = gluttonous + } + modifier = { + factor = 2 + trait = slothful + } + } + + option = { + name = EVTOPTA65050 #but the wine.. + health = -1 + fertility = -0.05 + } + option = { + name = EVTOPTB65050 #ask priests for advice. + #trigger = { + # NOT = { religion_group = muslim } + # NOT = { religion = buddhist } + # NOT = { religion = jain } + #} + piety = 5 + health = -0.5 + prestige = -10 + } +} + +#Whine or wine? +character_event = { + id = 65051 + desc = EVTDESC65051 + picture = GFX_evt_drunk + + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + trait = drunkard + in_command = no + NOT = { health = 3 } + NOT = { trait = incapable } + immortal = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65051 + remove_trait = drunkard + add_trait = incapable + } +} + +#Ill, commanding troops not in battle +character_event = { + id = 65052 + desc = EVTDESC65052 + picture = GFX_evt_illness + + only_men = yes + capable_only = yes + prisoner = no + war = yes + + is_triggered_only = yes + + trigger = { + in_command = yes + is_ill = yes + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 0.3 + trait = brave + } + modifier = { + factor = 3 + trait = craven + } + } + + option = { + name = EVTOPTA65052 #Keep Hiding + morale = -0.1 + } + option = { + name = EVTOPTB65052 #Mingle with the troops + troops = -0.1 + } +} + +#Ill, old and scared of God +character_event = { + id = 65053 + desc = EVTDESC65053 + picture = GFX_evt_illness + + min_age = 50 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + is_ill = yes + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + NOT = { + trait = cynical + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 3 + trait = zealous + } + } + + option = { + name = EVTOPTA65053 + random = { + chance = 25 + + character_event = { + id = 65054 + tooltip = EVTTOOLTIP65054 + } + } + } + option = { + name = EVTOPTB65053 + piety = 10 + } +} + +#God answers my prayers +character_event = { + id = 65054 + desc = EVTDESC65054 + picture = GFX_evt_recovery + + is_triggered_only = yes + + option = { + name = EVTOPTA65054 + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + } +} + +#Why am I sick? Is God punishing me? +character_event = { + id = 65055 + desc = EVTDESC65055 + picture = GFX_evt_illness + + min_age = 6 + max_age = 16 + capable_only = yes + prisoner = no + religion_group = christian + + is_triggered_only = yes + + trigger = { + is_ill = yes + has_guardian = yes + guardian = { + religion_group = christian + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65055 + guardian = { + character_event = { + id = 65056 + tooltip = EVTTOOLTIP65056 + } + } + } +} + +#Guardian answers +character_event = { + id = 65056 + desc = EVTDESC65056 + picture = GFX_evt_illness + + is_triggered_only = yes + + option = { + name = EVTOPTA65056 #Yes, you are a sinner that deserves it + ai_chance = { + factor = 10 + + modifier = { + factor = 0.01 + FROM = { + father = { + character = ROOT + } + } + } + modifier = { + factor = 0.01 + FROM = { + father = { + OR = { + reverse_opinion = { who = ROOT value = 20 } + opinion = { who = ROOT value = 20 } + } + } + } + } + } + if = { + limit = { + FROM = { + NOT = { + trait = lustful + } + NOT = { + trait = gluttonous + } + NOT = { + trait = greedy + } + NOT = { + trait = slothful + } + NOT = { + trait = envious + } + NOT = { + trait = wroth + } + NOT = { + trait = proud + } + } + } + FROM = { + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 + } + } + } + } + if = { + limit = { + FROM = { + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + } + } + FROM = { + add_trait = stressed + hidden_tooltip = { + character_event = { + id = 38282 #Notify stressed + } + } + } + } + } + option = { + name = EVTOPTB65056 #Don't worry, I'll take care of you + ai_chance = { + factor = 10 + + modifier = { + factor = 10 + trait = just + } + modifier = { + factor = 10 + trait = kind + } + modifier = { + factor = 10 + trait = charitable + } + modifier = { + factor = 10 + NOT = { trait = cruel } + } + modifier = { + factor = 10 + FROM = { + father = { + OR = { + reverse_opinion = { who = ROOT value = 20 } + opinion = { who = ROOT value = 20 } + } + } + } + } + } + FROM = { + random_list = { + 45 = { + add_trait = kind + hidden_tooltip = { + character_event = { + id = 38268 #Notify kind + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38168 #Notify guardian: child = kind + } + } + } + } + 45 = { + add_trait = charitable + hidden_tooltip = { + character_event = { + id = 38273 #Notify charitable + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38173 #Notify guardian: child = charitable + } + } + } + } + 10 = { + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38183 #Notify guardian: child = ill + } + } + } + } + } + } + } + option = { + name = EVTOPTC65056 #Why do you bother me? + ai_chance = { + factor = 10 + + modifier = { + factor = 100 + trait = arbitrary + } + modifier = { + factor = 100 + trait = cruel + } + } + FROM = { + random_list = { + 70 = { + add_trait = arbitrary + hidden_tooltip = { + character_event = { + id = 38266 #Notify arbitrary + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38166 #Notify guardian: child = arbitrary + } + } + } + } + 30 = { + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify cynical + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38158 #Notify guardian: child = cynical + } + } + } + } + } + } + } + option = { + name = EVTOPTD65056 #God will cure you! + FROM = { + random = { + chance = 10 + + remove_trait = ill + hidden_tooltip = { + character_event = { + id = 38283 #Notify remove ill + } + } + ROOT = { + hidden_tooltip = { + character_event = { + id = 38183 #Notify guardian: child = remove ill + } + } + } + } + } + } +} + +#Pneumonic +character_event = { + id = 65057 + desc = EVTDESC65057 + picture = GFX_evt_illness + + is_triggered_only = yes + + capable_only = yes + + trigger = { + trait = pneumonic + month = 2 + NOT = { + month = 3 + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65057 + health = -1 + piety = 20 + } + option = { + name = EVTOPTB65057 + health = -0.5 + prestige = -10 + } +} + +#Dwarf: The other children are mocking you +character_event = { + id = 65060 + desc = EVTDESC65060 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = dwarf + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65060 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65060 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Dwarf: is ruler and Dwarf Troupe appears... +character_event = { + id = 65061 + desc = EVTDESC65061 + picture = GFX_evt_jugglers + + prisoner = no + only_rulers = yes + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = dwarf + NOT = { + any_vassal = { + has_opinion_modifier = { who = ROOT modifier = opinion_laughing_at_you } + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65061 + prestige = -10 + } + option = { + name = EVTOPTB65061 + random_demesne_province = { + add_province_modifier = { + name = peasants_upset + duration = 365 + } + } + } + option = { + name = EVTOPTC65061 + any_vassal = { + opinion = { + modifier = opinion_laughing_at_you + who = ROOT + years = 5 + } + } + } +} + +#Dwarf: Tossing! +character_event = { + id = 65065 + desc = EVTDESC65065 + picture = GFX_evt_scandal + + min_age = 12 + max_age = 60 + only_men = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + is_strong_trigger = yes + NOT = { + trait = dwarf + } + NOT = { + trait = kind + } + NOT = { + trait = charitable + } + NOT = { + trait = gregarious + } + any_courtier = { + war = no + in_command = no + prisoner = no + age = 12 + NOT = { + age = 60 + } + NOT = { + spouse = { + character = ROOT + } + } + trait = dwarf + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = cruel + } + } + + option = { + name = EVTOPTA65065 + random_courtier = { + limit = { + war = no + in_command = no + prisoner = no + age = 12 + NOT = { + age = 60 + trait = incapable + } + trait = dwarf + } + opinion = { + modifier = opinion_tossed_me + who = ROOT + years = 1 + } + character_event = { + id = 65066 + tooltip = EVTTOOLTIP65066 + } + } + } + option = { + name = EVTOPTB65065 + random = { + chance = 25 + + add_trait = slothful + hidden_tooltip = { + character_event = { + id = 38251 #Notify Slothful + } + } + } + } +} + +#Dwarf: is tossed by FROM +character_event = { + id = 65066 + desc = EVTDESC65066 + picture = GFX_evt_scandal + + is_triggered_only = yes + + option = { + name = EVTOPTA65066 + opinion = { + modifier = opinion_tossed_me + who = FROM + years = 4 + } + } +} + +#Clubfooted: Fall down stairs +character_event = { + id = 65070 + desc = EVTDESC65070 + picture = GFX_evt_illness + + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = clubfooted + NOT = { + trait = wounded + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65070 + add_trait = wounded + } +} + +#Clubfooted: The other children are mocking you +character_event = { + id = 65071 + desc = EVTDESC65071 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = clubfooted + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65071 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65071 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Clubfooted: Riding a horse is hard +character_event = { + id = 65072 + desc = EVTDESC65072 + picture = GFX_evt_hunt + + min_age = 16 + only_men = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = clubfooted + OR = { + trait = brave + trait = hunter + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65072 + random_list = { + 30 = { + } + 30 = { + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + 40 = { + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Wroth + } + } + } + } + } + option = { + name = EVTOPTB65072 + random_list = { + 40 = { + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + 20 = { + character_event = { + id = 65073 + tooltip = EVTTOOLTIP65073 + } + } + 10 = { + add_maimed_trait_effect = yes + } + } + } +} + +#Clubfooted: fell off horse +character_event = { + id = 65073 + desc = EVTDESC65073 + picture = GFX_evt_hunt + + is_triggered_only = yes + + option = { + name = EVTOPTA65073 + random = { + chance = 25 + + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + any_courtier = { + limit = { + NOT = { + trait = clubfooted + } + NOT = { + trait = kind + } + NOT = { + trait = charitable + } + NOT = { + trait = dwarf + } + } + opinion = { + modifier = opinion_lost_respect + who = ROOT + years = 5 + } + } + } +} + +#Clubfooted: My clubfoot hinders me from getting married! +character_event = { + id = 65074 + desc = EVTDESC65074 + picture = GFX_evt_courtiers_talking + + min_age = 20 + only_women = yes + prisoner = no + capable_only = yes + war = no + is_married = no + + is_triggered_only = yes + + trigger = { + in_command = no + is_betrothed = no + trait = clubfooted + NOT = { + has_ambition = obj_get_married + } + has_ambition = no + NOT = { + trait = ugly + } + fertility = 0.6 + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65074 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65074 + trigger = { + father = { + is_alive = yes + is_ruler = yes + is_liege_of = ROOT + } + } + add_ambition = obj_get_married + hidden_tooltip = { + father = { + character_event = { + id = 37051 + } + } + } + } + option = { + name = EVTOPTC65074 + add_trait = content + random = { + chance = 25 + + fertility = -0.2 + } + } +} + +#Harelip: The other children are mocking you +character_event = { + id = 65080 + desc = EVTDESC65080 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = harelip + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65080 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65080 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Harelip: Mispronounce a vassal's name +character_event = { + id = 65081 + desc = EVTDESC65081 + picture = GFX_evt_courtiers_talking + + only_rulers = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = harelip + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + any_vassal = { + war = no + in_command = no + prisoner = no + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65081 + prestige = 5 + random_vassal = { + limit = { + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65081 + prestige = -5 + random_vassal = { + limit = { + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_forgive + who = ROOT + years = 5 + } + } + } + + option = { + name = EVTOPTC65081 + random_list = { + 50 = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 30 = { + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + 20 = { + } + } + } +} + +#Hunchback: The other children are mocking you +character_event = { + id = 65085 + desc = EVTDESC65085 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = hunchback + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65085 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65085 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Hunchback: of Notre Dame +character_event = { + id = 65090 + desc = EVTDESC65090 + picture = GFX_evt_bishop + + prisoner = no + only_men = yes + only_rulers = yes + capable_only = yes + ai = no + war = no + is_married = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = hunchback + tier = count + OR = { + piety = 100 + is_priest = yes + can_marry = yes + } + NOT = { + trait = homosexual + } + NOT = { + trait = celibate + } + NOT = { + trait = gregarious + } + NOT = { + trait = trusting + } + NOT = { + trait = cynical + } + } + + weight_multiplier = { + factor = 1 + + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = shy + } + } + + option = { + name = EVTOPTA65090 + random_list = { + 40 = { + add_trait = wroth + hidden_tooltip = { + character_event = { + id = 38254 #Notify Wroth + } + } + } + 30 = { + add_trait = cynical + hidden_tooltip = { + character_event = { + id = 38258 #Notify cynical + } + } + } + 30 = { + } + } + } + option = { + name = EVTOPTB65090 + random = { + chance = 25 + + add_trait = zealous + hidden_tooltip = { + character_event = { + id = 38269 #Notify Zealous + } + } + character_event = { + id = 65091 + days = 5 + random = 10 + tooltip = EVTTOOLTIP65091 #Help a fleeing woman? + } + } + } + option = { + name = EVTOPTC65090 + random = { + chance = 10 + + add_trait = ambitious + hidden_tooltip = { + character_event = { + id = 38278 #Notify Ambitious + } + } + } + if = { + limit = { + trait = shy + } + remove_trait = shy + } + if = { + limit = { + NOT = { + trait = gregarious + } + NOT = { + trait = shy + } + } + add_trait = gregarious + } + } +} + +#Hunchback: There is always Hope +character_event = { + id = 65091 + desc = EVTDESC65091 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA65091 + create_character = { + name = Hope + random_traits = yes + dynasty = random + female = yes + age = 20 + health = 10 + attributes = { + stewardship = 8 + intrigue = 6 + } + } + new_character = { + set_character_flag = hope_everlasting + opinion = { + modifier = opinion_my_saviour + who = ROOT + years = 10 + } + } + character_event = { + id = 65092 + tooltip = EVTTOOLTIP65092 + } + } + option = { + name = EVTOPTB65091 + if = { + limit = { + NOT = { + trait = wroth + } + } + add_trait = wroth + } + if = { + limit = { + trait = wroth + NOT = { + trait = cruel + } + } + add_trait = cruel + } + if = { + limit = { + is_ruler = yes + } + create_character = { + name = Hope + random_traits = yes + dynasty = random + female = yes + age = 20 + health = 10 + attributes = { + stewardship = 8 + intrigue = 6 + } + } + new_character = { + imprison = ROOT + } + } + } +} + +#Hunchback: Everlasting Hope? +character_event = { + id = 65092 + desc = EVTDESC65092 + picture = GFX_evt_lovers + + is_triggered_only = yes + + option = { + name = EVTOPTA65092 + random_courtier = { + limit = { + is_female = yes + prisoner = no + NOT = { trait = incapable } + has_character_flag = hope_everlasting + } + opinion = { + modifier = opinion_lover + who = ROOT + years = 10 + } + reverse_opinion = { + modifier = opinion_lover + who = ROOT + years = 10 + } + } + } + option = { + name = EVTOPTB65092 + add_trait = cynical + prestige = -5 + } +} + +#Hunchback: Laughter behind your back +character_event = { + id = 65095 + desc = EVTDESC65095 + picture = GFX_evt_bad_news + + min_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = hunchback + NOT = { + prestige = 50 + } + OR = { + trait = lustful + trait = gluttonous + trait = greedy + trait = slothful + trait = envious + trait = wroth + trait = proud + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65095 + random_list = { + 40 = { + } + 30 = { + any_courtier = { + limit = { + NOT = { + character = ROOT + } + NOT = { + trait = wroth + } + NOT = { + trait = cruel + } + } + opinion = { + modifier = opinion_gained_respect + who = ROOT + years = 5 + } + } + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65095 + random_list = { + 60 = { + } + 20 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + 20 = { + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + } + option = { + name = EVTOPTC65095 + prestige = 5 + random_list = { + 50 = { + + } + 25 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + 25 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } +} + +#Lisp: The other children are mocking you +character_event = { + id = 65100 + desc = EVTDESC65100 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = lisp + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65100 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65100 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Lisp: Have trouble pronouncing a vassal's name +character_event = { + id = 65101 + desc = EVTDESC65101 + picture = GFX_evt_courtiers_talking + + only_rulers = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = lisp + NOT = { + trait = stutter + } + NOT = { + trait = harelip + } + any_vassal = { + war = no + in_command = no + prisoner = no + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65101 + prestige = 5 + random_vassal = { + limit = { + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65101 + prestige = -5 + random_vassal = { + limit = { + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_forgive + who = ROOT + years = 5 + } + } + } + + option = { + name = EVTOPTC65101 + random_list = { + 50 = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 30 = { + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + 20 = { + } + } + } +} + +#Lisp: Hard to understand +character_event = { + id = 65102 + desc = EVTDESC65102 + picture = GFX_evt_courtiers_talking + + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = lisp + NOT = { + trait = shy + } + NOT = { + trait = gregarious + } + NOT = { + trait = stutter + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65102 + random = { + chance = 30 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + option = { + name = EVTOPTB65102 + random_list = { + 40 = {} + 20 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + 2 = { + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + option = { + name = EVTOPTC65102 + random = { + chance = 1 + + remove_trait = lisp + hidden_tooltip = { + character_event = { + id = 38302 #Notify remove Lisp + } + } + } + if = { + limit = { + NOT = { + trait = zealous + } + } + add_trait = zealous + } + } +} + +#Stutter: The other children are mocking you +character_event = { + id = 65105 + desc = EVTDESC65105 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = stutter + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65105 + random_list = { + 60 = { + } + 20 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } + option = { + name = EVTOPTB65105 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +#Stutter: Hard to understand +character_event = { + id = 65106 + desc = EVTDESC65106 + picture = GFX_evt_courtiers_talking + + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = stutter + NOT = { + trait = shy + } + NOT = { + trait = gregarious + } + NOT = { + trait = lisp + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65106 + random = { + chance = 30 + + add_trait = gregarious + hidden_tooltip = { + character_event = { + id = 38265 #Notify Gregarious + } + } + } + } + option = { + name = EVTOPTB65106 + random_list = { + 40 = {} + 20 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + 2 = { + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } + option = { + name = EVTOPTC65106 + random = { + chance = 1 + + remove_trait = lisp + hidden_tooltip = { + character_event = { + id = 38302 #Notify remove Lisp + } + } + } + if = { + limit = { + NOT = { + trait = zealous + } + } + add_trait = zealous + } + } +} + +#Stutter: Hard to pronounce a vassal's name +character_event = { + id = 65107 + desc = EVTDESC65107 + picture = GFX_evt_courtiers_talking + + only_rulers = yes + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + in_command = no + trait = stutter + NOT = { + trait = harelip + } + NOT = { + trait = lisp + } + any_vassal = { + war = no + is_female = no + in_command = no + prisoner = no + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65107 + prestige = 5 + random_vassal = { + limit = { + war = no + is_female = no + in_command = no + prisoner = no + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_disgruntled + who = ROOT + years = 5 + } + } + } + option = { + name = EVTOPTB65107 + prestige = -5 + random_vassal = { + limit = { + war = no + is_female = no + in_command = no + prisoner = no + NOT = { + trait = harelip + } + NOT = { + trait = stutter + } + NOT = { + trait = lisp + } + } + opinion = { + modifier = opinion_forgive + who = ROOT + years = 5 + } + } + } + + option = { + name = EVTOPTC65107 + random_list = { + 50 = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + 30 = { + if = { + limit = { NOT = { trait = berserker } } + add_trait = craven + hidden_tooltip = { + character_event = { + id = 38257 #Notify Craven + } + } + } + } + 20 = { + } + } + } +} + +#Inbred: The other children are mocking you +character_event = { + id = 65110 + desc = EVTDESC65110 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = inbred + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65110 + random_list = { + 60 = { + } + 35 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + 5 = { + add_trait = brave + hidden_tooltip = { + character_event = { + id = 38270 #Notify Brave + } + } + } + } + } + option = { + name = EVTOPTB65110 + random_list = { + 80 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 20 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + } + } +} + +### IMBECILE EVENTS ### + +#Imbecile: Mocked by other children +character_event = { + id = 65115 + desc = EVTDESC65115 + picture = GFX_evt_child_bully + + min_age = 6 + max_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = imbecile + in_command = no + any_courtier = { + age = 6 + NOT = { + age = 16 + } + } + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65115 #Not stupid. + random_list = { + 80 = { + } + 20 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } + option = { + name = EVTOPTB65115 #Turn the other cheek. + random_list = { + 40 = { + } + 40 = { + add_trait = humble + hidden_tooltip = { + character_event = { + id = 38260 #Notify Humble + } + } + } + 20 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } +} + +#Imbecile: Hurt by sword +character_event = { + id = 65120 + desc = EVTDESC65120 + picture = GFX_evt_bloody_man + + min_age = 16 + max_age = 60 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = imbecile + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65120 #Ouch! + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } +} + +#Imbecile: Riding backwards +character_event = { + id = 65125 + desc = EVTDESC65125 + picture = GFX_evt_courier + + min_age = 16 + max_age = 60 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = imbecile + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65125 #Oops. + random_list = { + 75 = { + } + 25 = { + add_trait = honest + hidden_tooltip = { + character_event = { + id = 38262 #Notify Honest + } + } + } + } + } + option = { + name = EVTOPTB65125 #My way is better. + random_list = { + 75 = { + } + 25 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } +} + +#Imbecile: Forgot pants +character_event = { + id = 65126 + desc = EVTDESC65126 + picture = GFX_evt_scandal + + min_age = 16 + prisoner = no + capable_only = yes + only_rulers = yes + only_men = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = imbecile + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65126 + random_courtier = { + limit = { + prisoner = no + NOT = { trait = incapable } + } + opinion = { + modifier = opinion_shocked + who = ROOT + years = 2 + } + } + } +} + +### UGLY EVENTS ### + +#Ugly: Find insulting picture +character_event = { + id = 65130 + desc = EVTDESC65130 + picture = GFX_evt_bad_news + + min_age = 16 + max_age = 80 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = ugly + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65130 #Is that what I look like? + random_list = { + 75 = { + } + 25 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + } + } + option = { + name = EVTOPTB65130 #It's not so bad + random_list = { + 60 = { + } + 20 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + 20 = { + add_trait = deceitful + hidden_tooltip = { + character_event = { + id = 38255 #Notify Deceitful + } + } + } + } + } +} + +#Ugly: Mothers warn daughters +character_event = { + id = 65135 + desc = EVTDESC65135 + picture = GFX_evt_whispers + + min_age = 16 + prisoner = no + capable_only = yes + only_men = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = ugly + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65135 #Spend more time indoors. + random_list = { + 70 = { + } + 30 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + } + } + option = { + name = EVTOPTB65135 #They could do worse. + random_list = { + 70 = { + } + 30 = { + add_trait = proud + hidden_tooltip = { + character_event = { + id = 38261 #Notify Proud + } + } + } + } + } +} + +#Ugly: Accused of being a witch +character_event = { + id = 65140 + desc = EVTDESC65140 + picture = GFX_evt_peasants + + min_age = 16 + prisoner = no + capable_only = yes + only_women = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = ugly + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65140 #They'll bother someone else. + random_list = { + 70 = { + } + 30 = { + add_trait = patient + hidden_tooltip = { + character_event = { + id = 38264 #Notify Patient + } + } + } + } + } + option = { + name = EVTOPTB65140 #A pox on them. + random_list = { + 70 = { + } + 30 = { + add_trait = cruel + hidden_tooltip = { + character_event = { + id = 38259 #Notify Cruel + } + } + } + } + } +} + +#Ugly: Ugly Duckling +character_event = { + id = 65145 + desc = EVTDESC65145 + picture = GFX_evt_child_talking + + min_age = 12 + max_age = 20 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = ugly + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65145 #No longer ugly. + random_list = { + 80 = { + remove_trait = ugly + } + 20 = { + add_trait = fair + remove_trait = ugly + hidden_tooltip = { + character_event = { + id = 38301 #Notify Fair + } + } + } + } + } +} + +### GLUTTONOUS EVENTS ### + +#Gluttony Removal Notification +character_event = { + id = 65151 + desc = EVTDESC65151 + picture = GFX_evt_feast + + is_triggered_only = yes + + option = { + name = OK + } +} + + +#Gluttonous: Crushes horse. +character_event = { + id = 65150 + desc = EVTDESC65150 + picture = GFX_evt_courier + + min_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = gluttonous + in_command = no + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 10 + has_ambition = obj_buddhist_temperance_food + } + } + + option = { + name = EVTOPTA65150 #Admission of fatness + trigger = { + NOT = { has_ambition = obj_buddhist_temperance_food } + } + random_list = { + 50 = { + } + 25 = { + add_trait = shy + hidden_tooltip = { + character_event = { + id = 38263 #Notify Shy + } + } + } + 25 = { + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 65151 #Notify Remove Gluttonous + } + } + } + } + } + option = { + name = EVTOPTA65155 #Admission of fatness - Buddhist ambition + trigger = { + has_ambition = obj_buddhist_temperance_food + } + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 65151 #Notify Remove Gluttonous + } + } + } + option = { + name = EVTOPTB65150 #Get me another horse. + random_list = { + 80 = { + } + 20 = { + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + } +} + +#Gluttonous: Jammed in doorway. +character_event = { + id = 65155 + desc = EVTDESC65155 + picture = GFX_evt_castle_construction + + min_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + trait = gluttonous + in_command = no + } + + weight_multiplier = { + factor = 1 + modifier = { + factor = 10 + has_ambition = obj_buddhist_temperance_food + } + } + + option = { + name = EVTOPTA65155 #No more food. + trigger = { + #NOT = { religion_group = muslim } + #NOT = { religion_group = jewish_group } + NOT = { has_ambition = obj_buddhist_temperance_food } + } + random_list = { + 55 = { + } + 25 = { + add_trait = depressed + hidden_tooltip = { + character_event = { + id = 38288 #Notify Depressed + } + } + } + 20 = { + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 65151 #Notify Remove Gluttonous + } + } + } + } + } + option = { + name = EVTOPTA65155 #No more food - Buddhist ambition + trigger = { + has_ambition = obj_buddhist_temperance_food + } + remove_trait = gluttonous + hidden_tooltip = { + character_event = { + id = 65151 #Notify Remove Gluttonous + } + } + } + #option = { + # name = EVTOPTC65155 #No more food - Muslim or Jew + # trigger = { + # OR = { + # religion_group = muslim + # religion_group = jewish_group + # } + # } + # random_list = { + # 55 = { + # } + # 25 = { + # add_trait = depressed + # hidden_tooltip = { + # character_event = { + # id = 38288 #Notify Depressed + # } + # } + # } + # 20 = { + # remove_trait = gluttonous + # hidden_tooltip = { + # character_event = { + # id = 65151 #Notify Remove Gluttonous + # } + # } + # } + # } + #} + option = { + name = EVTOPTB65155 #Expand doorways. + ROOT = { + scaled_wealth = -0.05 + } + } +} + +### SLOW EVENTS ### + +#Slow: Coin Purse Inspector +character_event = { + id = 65160 + desc = EVTDESC65160 + picture = GFX_evt_market + + min_age = 16 + prisoner = no + capable_only = yes + war = no + + is_triggered_only = yes + + trigger = { + is_dumb_trigger = yes + trait = trusting + in_command = no + } + + weight_multiplier = { + factor = 1 + } + + option = { + name = EVTOPTA65160 #Not the inspector? + ROOT = { + scaled_wealth = -0.10 + } + } +} + +#Falling asleep in the mosque +#character_event = { +# id = 65165 +# desc = EVTDESC65165 +# picture = GFX_evt_drunk +# +# capable_only = yes +# only_rulers = yes +# prisoner = no +# religion_group = muslim +# +# is_triggered_only = yes +# +# trigger = { +# trait = drunkard +# in_command = no +# } +# +# weight_multiplier = { +# factor = 1 +# } +# +# option = { +# name = EVTOPTA65165 #Keep Sleeping. +# piety = -10 +# add_character_modifier = { +# name = slept_in_church +# duration = -1 +# } +# } +# option = { +# name = EVTOPTB65165 #Apologise to the imam +# prestige = -10 +# } +#} + +### Stressed Muslim: Learning ### +#character_event = { +# id = 65166 +# desc = EVTDESC65166 +# picture = GFX_evt_jerusalem_captured_muslims +# +# only_men = yes +# capable_only = yes +# only_rulers = yes +# prisoner = no +# religion_group = muslim +# +# is_triggered_only = yes +# +# trigger = { +# trait = stressed +# learning = 2 +# NOT = { +# learning = 10 +# } +# job_spiritual = { +# learning = 10 +# } +# } +# +# weight_multiplier = { +# factor = 1 +# } +# +# option = { +# name = EVTOPTA65009 +# random = { +# chance = 25 +# +# change_learning = -1 +# remove_trait = stressed +# } +# job_spiritual = { +# opinion = { +# modifier = trusting_pos +# who = ROOT +# years = 5 +# } +# character_event = { +# id = 65167 +# tooltip = EVTTOOLTIP65010 +# } +# } +# } +# option = { +# name = EVTOPTB65009 +# piety = -5 +# } +#} + +#Spiritual gets +learning and relation +character_event = { + id = 65167 + desc = EVTDESC65167 + picture = GFX_evt_jerusalem_captured_muslims + + is_triggered_only = yes + + option = { + name = EVTOPTA65010 + change_learning = 1 + } +} diff --git a/After the End/events/vassal_request_events.txt b/After the End/events/vassal_request_events.txt new file mode 100644 index 000000000..cdb3378fc --- /dev/null +++ b/After the End/events/vassal_request_events.txt @@ -0,0 +1,2060 @@ +###################################### +# +# Vassal Request Events: 63000 - 63999 +# +###################################### +# by Henrik Fåhraeus +###################################### + +########################################################## +# A vassal requests the transfer a lower rank vassal title +# 63000 - 63009 +########################################################## + +# Vassal believes his liege should transfer a vassal title +character_event = { + id = 63000 + desc = EVTDESC63000 + picture = GFX_evt_council + border = GFX_event_normal_frame_intrigue + + only_playable = yes + capable_only = yes + prisoner = no + only_men = yes + min_age = 16 + war = no + + trigger = { + independent = no + liege = { + NOT = { character = ROOT } + NOT = { holds_favor_on = ROOT } + war = no + any_vassal = { + NOT = { character = ROOT } + de_jure_liege = ROOT + war = no + is_patrician = no + } + } + NOT = { has_character_flag = requested_vassal_transfer } + } + + mean_time_to_happen = { + months = 480 + modifier = { + factor = 0.25 + trait = greedy + } + modifier = { + factor = 0.5 + trait = envious + } + modifier = { + factor = 0.25 + trait = ambitious + } + modifier = { + factor = 10.0 + trait = content + } + } + + option = { + name = EVTOPTA63000 # Ask my liege for the title + ai_chance = { factor = 100 } + set_character_flag = requested_vassal_transfer + liege = { character_event = { id = 63001 days = 4 tooltip = EVTTOOLTIP63001 } } + } + + option = { + name = EVTOPTB63000 # It's not that important + ai_chance = { factor = 0 } + } +} + +# Vassal requests a transfer of a vassal title +character_event = { + id = 63001 + desc = EVTDESC63001 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + trigger = { + has_dlc = "Zeus" + } + name = EVTOPTA63001B # Very well, for a favor + ai_chance = { + factor = 50 + modifier = { + factor = 2.0 + trait = charitable + } + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 2.0 + trait = content + } + modifier = { + factor = 0.1 + trait = greedy + } + modifier = { + factor = 0 + NOT = { + opinion = { who = FROM value = 0 } + } + } + modifier = { + factor = 2.0 + opinion = { who = FROM value = 25 } + } + } + add_favor = FROM + FROM = { + set_character_flag = vassal_for_favor + } + random_vassal = { + limit = { + NOT = { character = FROM } + de_jure_liege = FROM + } + character_event = { id = 63002 tooltip = EVTTOOLTIP63002 } + } + } + + option = { + trigger = { + NOT = { has_dlc = "Zeus" } + } + name = EVTOPTA63001 # Very well + ai_chance = { + factor = 50 + modifier = { + factor = 2.0 + trait = charitable + } + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 2.0 + trait = content + } + modifier = { + factor = 0.1 + trait = greedy + } + modifier = { + factor = 0 + NOT = { + opinion = { who = FROM value = 0 } + } + } + modifier = { + factor = 2.0 + opinion = { who = FROM value = 25 } + } + } + random_vassal = { + limit = { + NOT = { character = FROM } + de_jure_liege = FROM + } + character_event = { id = 63002 tooltip = EVTTOOLTIP63002 } + } + } + option = { + name = EVTOPTB63001 # I think not + ai_chance = { + factor = 50 + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 0.5 + trait = content + } + modifier = { + factor = 10.0 + trait = greedy + } + } + reverse_opinion = { + who = FROM + modifier = opinion_disappointed + months = 60 + } + FROM = { character_event = { id = 63003 tooltip = EVTTOOLTIP63003 } } + } + option = { + name = EVTOPTC63001 # Give the target vassal a claim on the asker + tooltip_info = intrigue + trigger = { + intrigue = 9 + } + ai_chance = { + factor = 50 + } + random_vassal = { + limit = { + NOT = { character = FROM } + de_jure_liege = FROM + } + opinion = { + who = ROOT + modifier = opinion_delighted + months = 60 + } + character_event = { id = 63007 tooltip = EVTTOOLTIP63007 } + } + reverse_opinion = { + who = FROM + modifier = opinion_betrayed + months = 60 + } + hidden_tooltip = { + FROM = { character_event = { id = 63004 } } + } + } + option = { + name = EVTOPTD63001 # Placate him with flattery and vague promises (no effect) + tooltip_info = diplomacy + trigger = { + diplomacy = 9 + } + ai_chance = { + factor = 1000 + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 0.5 + trait = content + } + modifier = { + factor = 10.0 + trait = greedy + } + } + reverse_opinion = { + who = FROM + modifier = opinion_impressed + months = 24 + } + FROM = { letter_event = { id = 63005 tooltip = EVTTOOLTIP63005 } } + } +} + +# The vassal to be transferred is notified +character_event = { + id = 63002 + desc = EVTDESC63002 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63002 # Very well + hidden_tooltip = { + FROM = { FROM = { character_event = { id = 63006 days = 1 } } } + } + } +} + +# Request Denied +character_event = { + id = 63003 + desc = EVTDESC63003 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63003 # Well, there are other ways... + } +} + +# The asker suspects treachery +character_event = { + id = 63004 + desc = EVTDESC63004 + + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63004 # This bodes ill + } +} + +# Liege impresses asker with flowery talk +letter_event = { + id = 63005 + desc = EVTDESC63005 + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63005 # I am humbled + } +} + +# The vassal is transferred +character_event = { + id = 63006 + + desc = { + text = EVTDESC63006B + trigger = { + has_character_flag = vassal_for_favor + } + } + + desc = { + text = EVTDESC63006 + trigger = { + NOT = { + has_character_flag = vassal_for_favor + } + } + } + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + trigger = { + NOT = { + has_character_flag = vassal_for_favor + } + } + name = EVTOPTA63006 # Excellent! + FROM = { set_defacto_liege = ROOT } + opinion = { + modifier = opinion_vassal_transfer + who = liege + months = 120 + } + } + + option = { + trigger = { + has_character_flag = vassal_for_favor + } + name = EVTOPTA63006 # Excellent! + FROM = { set_defacto_liege = ROOT } + tooltip = { reverse_add_favor = liege } + clr_character_flag = vassal_for_favor + } +} + +# The vassal gets a claim on the asker +character_event = { + id = 63007 + desc = EVTDESC63007 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63007 # I do so love intrigue! + FROM = { FROM = { primary_title = { add_pressed_claim = ROOT }} } + } +} + +#################################################################### +# Vassal presents evidence that another vassal is planning treason +# 63010 - 63029 +#################################################################### + +# Vassal asks liege to get rid of a rival +character_event = { + id = 63010 + desc = EVTDESC63010 + + picture = GFX_evt_shadowy_cabal + border = GFX_event_normal_frame_intrigue + + only_rulers = yes + capable_only = yes + prisoner = no + min_age = 16 + + trigger = { + independent = no + NOT = { tier = baron } + liege = { + NOT = { character = ROOT } + } + intrigue = 7 + NOT = { has_character_flag = requested_rival_removal } + any_rival = { + NOT = { character = ROOT } + NOT = { character = liege } + age = 16 + is_ruler = yes + same_liege = ROOT + prisoner = no + } + } + + mean_time_to_happen = { + months = 960 + modifier = { + factor = 0.25 + trait = deceitful + } + modifier = { + factor = 0.5 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = arbitrary + } + modifier = { + factor = 4.0 + trait = just + } + modifier = { + factor = 10.0 + trait = honest + } + } + + option = { + name = EVTOPTA63010 # Inform my liege + ai_chance = { factor = 100 } + set_character_flag = requested_rival_removal + liege = { letter_event = { id = 63011 days = 14 tooltip = EVTTOOLTIP63011 } } + + random = { + chance = 10 + random_rival = { + limit = { + NOT = { character = ROOT } + NOT = { character = liege } + age = 16 + is_ruler = yes + same_liege = ROOT + prisoner = no + } + character_event = { id = 63018 tooltip = EVTTOOLTIP63018 } # The target is tipped off + } + } + } + + option = { + name = EVTOPTB63010 # It's a bad idea + ai_chance = { factor = 0 } + } +} + +# The liege receives the information +letter_event = { + id = 63011 + desc = EVTDESC63011 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63011 # Imprison the traitor! + ai_chance = { + factor = 25 + modifier = { + factor = 0.1 + trait = just + } + modifier = { + factor = 2.0 + trait = arbitrary + } + modifier = { + factor = 2.0 + trait = paranoid + } + modifier = { + factor = 0 + NOT = { + opinion = { who = FROM value = -10 } + } + } + modifier = { + factor = 2.0 + opinion = { who = FROM value = 25 } + } + } + + random_vassal = { + limit = { + FROM = { + any_rival = { + NOT = { character = ROOT } + character = PREVPREV + age = 16 + is_ruler = yes + vassal_of = ROOT + prisoner = no + } + } + } + hidden_tooltip = { + character_event = { id = 63012 } + } + opinion = { + who = ROOT + modifier = opinion_falsely_convicted + years = 10 + } + imprison = ROOT + } + } + + option = { + name = EVTOPTB63011 # This is nonsense + ai_chance = { + factor = 50 + modifier = { + factor = 2.0 + trait = just + } + modifier = { + factor = 0.5 + trait = arbitrary + } + } + reverse_opinion = { + who = FROM + modifier = opinion_irritated + months = 24 + } + + FROM = { letter_event = { id = 63014 tooltip = EVTTOOLTIP63014 } } + + hidden_tooltip = { + random_vassal = { + limit = { + age = 16 + NOT = { character = ROOT } + NOT = { character = FROM } + has_character_flag = pleaded_innocence + } + opinion = { + who = ROOT + modifier = opinion_grateful + years = 2 + } + hidden_tooltip = { + letter_event = { id = 63020 } + } + } + } + } + option = { + name = EVTOPTC63011 # Tip off the target + tooltip_info = intrigue + trigger = { + intrigue = 6 + NOT = { + any_vassal = { + age = 16 + has_character_flag = pleaded_innocence + } + } + } + ai_chance = { + factor = 50 + } + random_vassal = { + limit = { + FROM = { + any_rival = { + NOT = { character = ROOT } + character = PREVPREV + age = 16 + is_ruler = yes + vassal_of = ROOT + prisoner = no + } + } + } + hidden_tooltip = { + letter_event = { id = 63015 } + } + } + } + + option = { + name = EVTOPTD63011 # Imprison the asker instead + tooltip_info = intrigue + trigger = { + intrigue = 10 + } + ai_chance = { + factor = 50 + modifier = { + factor = 0.1 + trait = just + } + modifier = { + factor = 2.0 + trait = arbitrary + } + modifier = { + factor = 2.0 + trait = paranoid + } + modifier = { + factor = 0 + dynasty = FROM + } + modifier = { + factor = 0 + opinion = { who = FROM value = 25 } + } + modifier = { + factor = 2.0 + NOT = { + opinion = { who = FROM value = -25 } + } + } + } + FROM = { + imprison = ROOT + character_event = { id = 63017 tooltip = EVTTOOLTIP63017 } + opinion = { + who = ROOT + modifier = opinion_betrayed + years = 10 + multiplier = 2 + } + } + } +} + +# The victim is notified +character_event = { + id = 63012 + desc = EVTDESC63012 + + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63012 # Curse his/her name! + clr_character_flag = pleaded_innocence + FROM = { + FROM = { + reverse_opinion = { + who = ROOT + modifier = scheming_bastard + years = 20 + } + hidden_tooltip = { letter_event = { id = 63013 } } + } + } + } +} + +# The accuser is satisfied +letter_event = { + id = 63013 + desc = EVTDESC63013 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63013 + opinion = { + who = FROM + modifier = opinion_grateful + years = 20 + } + } +} + +# The schemer is denied +letter_event = { + id = 63014 + desc = EVTDESC63014 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63014 # Bah, it was such a good scheme + prestige = -5 + } +} + +# The target is tipped off +letter_event = { + id = 63015 + desc = EVTDESC63015 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63015 # What a dick + FROM = { FROM = { letter_event = { id = 63016 tooltip = EVTTOOLTIP63016 } } } + } +} + +# The schemer receives a threat +letter_event = { + id = 63016 + desc = EVTDESC63016 + + is_hostile = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63016 # Hah, let him/her try... + prestige = -5 + opinion = { + who = FROM + modifier = opinion_furious + years = 5 + multiplier = 2 + } + opinion = { + who = liege + modifier = opinion_dislike + months = 36 + } + } +} + +# The schemer is imprisoned instead +character_event = { + id = 63017 + desc = EVTDESC63017 + + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63017 # What a dick + } +} + +# The target is tipped off by the schemer's activities +character_event = { + id = 63018 + desc = EVTDESC63018 + + picture = GFX_evt_whispers + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63018 # Plead my innocence to my liege + set_character_flag = pleaded_innocence + liege = { letter_event = { id = 63019 days = 1 tooltip = EVTTOOLTIP63019 } } + } +} + +# The liege receives the target's assurance of innocence +letter_event = { + id = 63019 + desc = EVTDESC63019 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63019 # An interesting case... + } +} + +# The liege reassures the target that he does not believe the accusation +letter_event = { + id = 63020 + desc = EVTDESC63020 + + is_friendly = yes + + border = GFX_event_letter_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63020 # Thank the Lord + clr_character_flag = pleaded_innocence + FROM = { + FROM = { + reverse_opinion = { + modifier = opinion_furious + who = ROOT + years = 5 + } + } + } + } +} + +#################################################################### +# Vassal complains of high troop maintenance costs +# 63030 - 63039 +#################################################################### + +# Vassal complains of high troop maintenance costs +character_event = { + id = 63030 + desc = EVTDESC63030 + + picture = GFX_evt_crusaders + border = GFX_event_normal_frame_war + + only_rulers = yes + capable_only = yes + prisoner = no + min_age = 16 + + trigger = { + independent = no + NOT = { wealth = 100 } + liege = { + NOT = { character = ROOT } + war = yes + has_raised_levies = ROOT + } + OR = { + NOT = { has_character_flag = requested_money_for_levies } + had_character_flag = { flag = requested_money_for_levies days = 3650 } + } + opinion_levy_raised_days = { + who = liege + days = 73 + } + } + + mean_time_to_happen = { + months = 216 + modifier = { + factor = 0.5 + trait = greedy + } + modifier = { + factor = 0.5 + NOT = { wealth = 0 } + } + modifier = { + factor = 2.0 + wealth = 50 + } + modifier = { + factor = 5.0 + trait = charitable + } + } + + option = { + name = EVTOPTA63030 # Ask my liege for money + ai_chance = { factor = 100 } + set_character_flag = requested_money_for_levies + liege = { letter_event = { id = 63031 days = 4 tooltip = EVTTOOLTIP63031 } } + } + + option = { + name = EVTOPTB63030 # I'll endure + ai_chance = { factor = 0 } + } +} + +# The liege is asked for recompense +letter_event = { + id = 63031 + desc = EVTDESC63031 + + is_friendly = yes + + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA63031 # 30 Gold should do it + ai_chance = { + factor = 50 + modifier = { + factor = 0.0 + trait = greedy + } + modifier = { + factor = 3.0 + trait = charitable + } + } + wealth = -30 + FROM = { + opinion = { + modifier = opinion_grateful + who = ROOT + months = 24 + } + hidden_tooltip = { + set_opinion_levy_raised_days = { + who = ROOT + days = 0 + } + letter_event = { id = 63032 days = 2 } + } + } + } + option = { + name = EVTOPTB63031 # 15 Gold is enough + ai_chance = { + factor = 50 + modifier = { + factor = 0.2 + trait = greedy + } + modifier = { + factor = 1.5 + trait = charitable + } + } + wealth = -15 + FROM = { + hidden_tooltip = { + set_opinion_levy_raised_days = { + who = ROOT + days = 0 + } + letter_event = { id = 63033 days = 2 } + } + } + } + option = { + name = EVTOPTC63031 # Money? It's his duty! + trigger = { + NOT = { diplomacy = 9 } + } + ai_chance = { + factor = 50 + modifier = { + factor = 2.0 + trait = greedy + } + modifier = { + factor = 0.25 + trait = charitable + } + modifier = { + factor = 2.0 + trait = diligent + } + } + FROM = { + opinion = { + modifier = opinion_disgruntled + who = ROOT + months = 60 + } + hidden_tooltip = { + letter_event = { id = 63034 days = 2 } + } + } + } + option = { + name = EVTOPTD63031 # Placate him with flattery + tooltip_info = diplomacy + trigger = { + diplomacy = 9 + } + ai_chance = { factor = 1000 } + FROM = { + hidden_tooltip = { + set_opinion_levy_raised_days = { + who = ROOT + days = 0 + } + letter_event = { id = 63035 days = 2 } + } + } + } +} + +# Vassal receives 30 gold +letter_event = { + id = 63032 + desc = EVTDESC63032 + + is_friendly = yes + + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EXCELLENT + wealth = 30 + } +} + +# Vassal receives 15 gold +letter_event = { + id = 63033 + desc = EVTDESC63033 + + is_friendly = yes + + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA63033 # I suppose that will do + wealth = 15 + } +} + +# Vassal request denied +letter_event = { + id = 63034 + desc = EVTDESC63034 + + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA63034 # I shall be reduced to begging! + } +} + +# Vassal is placated with empty words +letter_event = { + id = 63035 + desc = EVTDESC63035 + + is_friendly = yes + + border = GFX_event_letter_frame_war + + is_triggered_only = yes + + option = { + name = EVTOPTA63035 # He is right, of course + } +} + +#################################################################### +# Character requests a de jure title that you hold +# 63040 - 63049 +#################################################################### + +# Vassal asks liege for a specific title +character_event = { + id = 63040 + desc = EVTDESC63040 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_diplomacy + + only_playable = yes + capable_only = yes + prisoner = no + min_age = 16 + + trigger = { + independent = no + has_ambition = obj_gain_any_title + liege = { + has_regent = no + war = no + NOT = { has_opinion_modifier = { who = ROOT modifier = requested_land } } + NOT = { + character = ROOT + } + demesne_size = 3 + any_demesne_title = { + can_be_given_away = yes + tier = COUNT + NOT = { location = { is_capital = yes } } + } + } + } + + mean_time_to_happen = { + months = 480 + modifier = { + factor = 0.5 + trait = greedy + } + modifier = { + factor = 0.5 + trait = envious + } + modifier = { + factor = 2.0 + trait = kind + } + modifier = { + factor = 2.0 + trait = charitable + } + modifier = { + factor = 2.0 + trait = content + } + } + + immediate = { + liege = { + random_demesne_title = { + limit = { + can_be_given_away = yes + tier = COUNT + NOT = { location = { is_capital = yes } } + } + save_event_target_as = vassal_wanted_title + } + } + } + + option = { + name = EVTOPTA63040 # Ask for the Title + ai_chance = { factor = 100 } + liege = { + opinion = { + who = ROOT + years = 2 + modifier = requested_land + } + } + liege = { letter_event = { id = 63041 tooltip = EVTTOOLTIP63041 } } + } + + option = { + name = EVTOPTB63040 # Better not + ai_chance = { factor = 0 } + } +} + +# Liege receives the request +letter_event = { + id = 63041 + desc = EVTDESC63041 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + trigger = { + has_dlc = "Zeus" + NOT = { holds_favor_on = FROM } + } + name = EVTOPTD63041 # Accept the request + ai_chance = { + factor = 50 + modifier = { + factor = 0 + trait = greedy + } + } + + add_favor = FROM + + event_target:vassal_wanted_title = { + gain_title = FROM + } + + hidden_tooltip = { + FROM = { letter_event = { id = 63042 days = 1 } } + } + } + + option = { + name = EVTOPTA63041 # Accept the request + ai_chance = { + factor = 50 + modifier = { + factor = 0 + trait = greedy + } + modifier = { + factor = 0 + NOT = { + opinion = { who = FROM value = -20 } + } + } + modifier = { + factor = 0.5 + NOT = { + opinion = { who = FROM value = 25 } + } + } + modifier = { + factor = 0.5 + NOT = { + opinion = { who = FROM value = 50 } + } + } + modifier = { + factor = 3 + is_friend = FROM + } + } + + event_target:vassal_wanted_title = { + gain_title = FROM + } + + hidden_tooltip = { + FROM = { letter_event = { id = 63042 days = 1 } } + } + reverse_opinion = { + modifier = opinion_grateful + who = FROM + months = 120 + } + } + + option = { + name = EVTOPTB63041 # Deny the request + ai_chance = { + factor = 100 + modifier = { + factor = 0.5 + trait = charitable + } + modifier = { + factor = 0.75 + opinion = { who = FROM value = 20 } + } + modifier = { + factor = 0.5 + opinion = { who = FROM value = 50 } + } + } + FROM = { + opinion = { + modifier = opinion_disappointed + who = ROOT + months = 120 + } + letter_event = { id = 63043 tooltip = EVTTOOLTIP63043 } + } + } + + option = { + name = EVTOPTC63041 # Deny with superior diplomacy + tooltip_info = diplomacy + trigger = { + diplomacy = 9 + } + ai_chance = { + factor = 1000 + } + FROM = { letter_event = { id = 63044 tooltip = EVTTOOLTIP63044 } } + } +} + +# Vassal request granted +letter_event = { + id = 63042 + desc = EVTDESC63042 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EXCELLENT + } +} + +# Vassal request denied +letter_event = { + id = 63043 + desc = EVTDESC63043 + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63043 + } + + option = { + name = EVTOPTB63043 + prestige = -100 + custom_tooltip = { + text = EVTOPTB63043_TOOLTIP + } + set_character_flag = obj_gain_any_title_abandoned + } +} + +# Vassal request denied with flattery +letter_event = { + id = 63044 + desc = EVTDESC63005 # The same as that event for now + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63044 + } +} + +#################################################################### +# An imprisoned character asks another vassal to intercede on his behalf +# 63050 - 63059 +#################################################################### + +# An imprisoned character asks a friend to intervene +character_event = { + id = 63050 + desc = EVTDESC63050 + picture = GFX_evt_into_the_dungeon + + prisoner = yes + min_age = 12 + capable_only = yes + + is_triggered_only = yes + + trigger = { + host = { + is_liege_of = ROOT + } + liege = { + any_vassal = { + prisoner = no + NOT = { trait = incapable } + NOT = { character = PREV } + OR = { + is_friend = ROOT + AND = { + dynasty = ROOT + NOT = { is_rival = ROOT } + } + } + } + } + } + + option = { + name = EVTOPTA63050 # Send a message + + liege = { + random_vassal = { + limit = { + prisoner = no + NOT = { trait = incapable } + NOT = { character = PREV } + OR = { + is_friend = ROOT + AND = { + dynasty = ROOT + NOT = { is_rival = ROOT } + } + } + } + letter_event = { id = 63051 days = 4 tooltip = EVTTOOLTIP63051 } + } + } + } +} + +# The Vassal receives the plea from the imprisoned character +letter_event = { + id = 63051 + desc = EVTDESC63051 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63051 # Intercede on behalf of the prisoner + ai_chance = { + factor = 1 + modifier = { + factor = 0.5 + NOT = { trait = kind } + NOT = { opinion = { who = FROM value = 50 } } + } + modifier = { + factor = 0 + NOT = { trait = kind } + NOT = { opinion = { who = FROM value = 0 } } + } + } + liege = { letter_event = { id = 63052 days = 4 tooltip = EVTTOOLTIP63052 } } + } + + option = { + name = EVTOPTB63051 # Better not + ai_chance = { + factor = 1 + } + } +} + + +# Vassal requests the release of a prisoner +letter_event = { + id = 63052 + desc = EVTDESC63052 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63052 # Very well + ai_chance = { + factor = 50 + modifier = { + factor = 0.1 + NOT = { + opinion = { who = FROM value = -20 } + } + } + } + FROM = { FROM = { character_event = { id = 63053 days = 1 tooltip = EVTTOOLTIP63053 } } } + } + option = { + name = EVTOPTB63052 # Absolutely not! + ai_chance = { + factor = 50 + modifier = { + factor = 0.5 + opinion = { who = FROM value = 50 } + } + } + + FROM = { + opinion = { + who = ROOT + modifier = opinion_tyrant + months = 120 + } + hidden_tooltip = { + letter_event = { id = 63054 } + } + } + } + + option = { + name = EVTOPTC63052 # How about you join him? + #tooltip_info = + trigger = { + OR = { + trait = arbitrary + trait = cruel + trait = lunatic + } + } + ai_chance = { + factor = 50 + modifier = { + factor = 0.1 + opinion = { who = FROM value = 20 } + } + } + FROM = { + opinion = { + who = ROOT + modifier = opinion_tyrant + months = 240 + multiplier = 5 + } + character_event = { id = 63055 tooltip = EVTTOOLTIP63055 } + } + } + option = { + name = EVTOPTD63052 # Diplomatic NO + tooltip_info = diplomacy + trigger = { + diplomacy = 9 + } + ai_chance = { + factor = 1000 + } + FROM = { letter_event = { id = 63056 tooltip = EVTTOOLTIP63056 } } + } +} + +# The prisoner is released +character_event = { + id = 63053 + desc = EVTDESC63053 + + is_friendly = yes + + picture = GFX_evt_garden + border = GFX_event_normal_frame_diplomacy + + is_triggered_only = yes + + immediate = { + prisoner = no + } + + option = { + name = EVTOPTA63053 # Free at last! + FROM = { + FROM = { + reverse_opinion = { + who = ROOT + modifier = opinion_sprung_from_jail + months = 240 + } + letter_event = { id = 63057 tooltip = EVTTOOLTIP63057 } + } + } + } +} + +# The request is denied +letter_event = { + id = 63054 + desc = EVTDESC63054 + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63054 # Such a shame... + } +} + + +# The vassal is also imprisoned! +character_event = { + id = 63055 + desc = EVTDESC63055 + + picture = GFX_evt_into_the_dungeon + border = GFX_event_normal_frame_diplomacy + + is_triggered_only = yes + + immediate = { + imprison = FROM + } + + option = { + name = EVTOPTA63055 # That's what you get for showing compassion + } +} + +# Diplomatic NO +letter_event = { + id = 63056 + desc = EVTDESC63056 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63056 # Wise words + } +} + +# Letter of gratitude +letter_event = { + id = 63057 + desc = EVTDESC63057 + + is_friendly = yes + + border = GFX_event_letter_frame_diplomacy + + is_triggered_only = yes + + option = { + name = EVTOPTA63057 # All is well that ends well + piety = 5 + } +} + + +#################################################################### +# A mayor asks for lower taxes +# 63060 - 63069 +#################################################################### + +# A mayor asks for lower taxes +character_event = { + id = 63060 + desc = EVTDESC63060 + + picture = GFX_evt_carriage + border = GFX_event_normal_frame_economy + + min_age = 16 + capable_only = yes + prisoner = no + only_rulers = yes + lacks_dlc = "Conclave" + + trigger = { + is_republic = yes + NOT = { wealth = 300 } + liege = { + NOT = { character = ROOT } + primary_title = { + NOT = { has_law = city_tax_0 } + } + } + + NOT = { + has_opinion_modifier = { + who = liege + modifier = opinion_refused_city_tax_law + } + } + } + + mean_time_to_happen = { + months = 2000 + modifier = { + factor = 0.5 + NOT = { wealth = -10 } + } + modifier = { + factor = 0.5 + NOT = { wealth = -100 } + } + modifier = { + factor = 0.5 + trait = greedy + } + } + + option = { + name = EVTOPTA63060 # Request a vote for the law change + ai_chance = { factor = 100 } + liege = { + letter_event = { id = 63061 days = 4 tooltip = EVTTOOLTIP63061 } + } + } + option = { + name = EVTOPTB63060 # Better not + ai_chance = { factor = 0 } + } +} + +# The mayor asks his liege +letter_event = { + id = 63061 + desc = EVTDESC63061 + + border = GFX_event_letter_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA63061 # Absurd! + FROM = { + letter_event = { id = 63062 days = 1 tooltip = EVTTOOLTIP63062 } + } + any_vassal = { + limit = { + is_republic = yes + } + opinion = { + modifier = opinion_refused_city_tax_law + who = ROOT + months = 60 + } + } + } + option = { + name = EVTOPTB63061 # Very well + FROM = { + letter_event = { id = 63063 days = 1 tooltip = EVTTOOLTIP63063 } + opinion = { + modifier = opinion_accepted_city_tax_law + who = ROOT + months = 60 + } + } + if = { + limit = { + primary_title = { has_law = city_tax_1 } + } + primary_title = { approve_law = city_tax_0 } + } + if = { + limit = { + primary_title = { has_law = city_tax_2 } + } + primary_title = { approve_law = city_tax_1 } + } + if = { + limit = { + primary_title = { has_law = city_tax_3 } + } + primary_title = { approve_law = city_tax_2 } + } + } + option = { + name = EVTOPTC63061 # Bribe him! + tooltip_info = stewardship + trigger = { stewardship = 9 } + FROM = { + letter_event = { id = 63064 days = 1 tooltip = EVTTOOLTIP63064 } + } + scaled_wealth = -0.5 + } + option = { + name = EVTOPTD63061 # Impress him + tooltip_info = diplomacy + trigger = { diplomacy = 9 } + FROM = { + letter_event = { id = 63065 days = 1 tooltip = EVTTOOLTIP63065 } + } + } +} + + +# The mayor is refused +letter_event = { + id = 63062 + desc = EVTDESC63062 + + border = GFX_event_letter_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA63062 # Blast! + prestige = -5 + } +} + +# The mayor is notified of the law change +letter_event = { + id = 63063 + desc = EVTDESC63063 + + border = GFX_event_letter_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA63063 # Excellent + prestige = 5 + } +} + +# The mayor is bribed +letter_event = { + id = 63064 + desc = EVTDESC63064 + + border = GFX_event_letter_frame_economy + + is_triggered_only = yes + + option = { + name = OK + scaled_wealth = 0.5 + } +} + +# The mayor is impressed +letter_event = { + id = 63065 + desc = EVTDESC63065 + + border = GFX_event_letter_frame_economy + + is_triggered_only = yes + + option = { + name = EVTOPTA63065 # My liege is right + } +} + + +#################################################################### +# A vassal is offered to become independent (liege died being over vassal limit) +# 63100-63102 +#################################################################### + +# A vassal is offered to become independent +character_event = { + id = 63100 + desc = EVTDESC63100 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63100 # Become independent + trigger = { + liege = { independent = yes } + } + ai_chance = { + factor = 50 + modifier = { + factor = 0.25 + OR = { + is_tribal = yes + is_nomadic = yes + } + new_character = { + is_strong_trigger = yes + } + } + modifier = { + factor = 4 + OR = { + is_tribal = yes + is_nomadic = yes + } + new_character = { + is_weak_trigger = yes + } + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 0.5 + trait = content + } + modifier = { + factor = 10.0 + trait = greedy + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 10.0 + religion_group = pagan_group + is_reformed_religion = no + } + modifier = { + factor = 0.2 + NOT = { + opinion = { who = liege value = 0 } + } + } + modifier = { + factor = 0.2 + NOT = { + opinion = { who = liege value = 25 } + } + } + } + set_defacto_liege = THIS + reverse_opinion = { + who = new + modifier = opinion_rightful_vassal + months = 60 + } + new_character = { + character_event = { id = 63101 days = 4 } + } + } + option = { + name = EVTOPTA63100 # Retract vassalage + trigger = { + liege = { independent = no } + } + ai_chance = { + factor = 50 + modifier = { + factor = 0.25 + OR = { + is_tribal = yes + is_nomadic = yes + } + new_character = { + is_strong_trigger = yes + } + } + modifier = { + factor = 4 + OR = { + is_tribal = yes + is_nomadic = yes + } + new_character = { + is_weak_trigger = yes + } + } + modifier = { + factor = 0.5 + trait = just + } + modifier = { + factor = 0.5 + trait = content + } + modifier = { + factor = 10.0 + trait = greedy + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 10.0 + religion_group = pagan_group + is_reformed_religion = no + } + modifier = { + factor = 0.2 + NOT = { + opinion = { who = liege value = 0 } + } + } + modifier = { + factor = 0.2 + NOT = { + opinion = { who = liege value = 25 } + } + } + } + liege = { + liege = { + ROOT = { + set_defacto_liege = PREV + } + } + } + reverse_opinion = { + who = new + modifier = opinion_rightful_vassal + months = 60 + } + new_character = { + character_event = { id = 63101 days = 4 } + } + } + option = { + name = EVTOPTB63100 # Swear fealty to new liege + ai_chance = { factor = 50 } + reverse_opinion = { + who = new + modifier = opinion_loyal_vassal + months = 60 + } + new_character = { + character_event = { id = 63102 days = 4 } + } + } +} + +# Liege is informed about leaving vassal +character_event = { + id = 63101 + desc = EVTDESC63101 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63101 + } +} + +# Liege is pleased about vassal staying +character_event = { + id = 63102 + desc = EVTDESC63102 + + picture = GFX_evt_emissary + border = GFX_event_normal_frame_intrigue + + is_triggered_only = yes + + option = { + name = EVTOPTA63102 + } +} diff --git a/After the End/events/ze_ambition_events.txt b/After the End/events/ze_ambition_events.txt new file mode 100644 index 000000000..1bcc8fa74 --- /dev/null +++ b/After the End/events/ze_ambition_events.txt @@ -0,0 +1,2102 @@ +########################################### +# # +# ZE Ambition Events # +# ID ZE.6000-ZE.6999 # +# # +########################################### + +#Written by Markus Olsen + +namespace = ZE + +#Liege recieves vassals request for council position +character_event = { + id = ZE.6001 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6001 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + + immediate = { + FROMFROM = { save_event_target_as = aspiring_councillor } + ROOT = { save_event_target_as = target_liege } + } + + option = { + name = EVTOPTA_ZE_6001 + ai_chance = { + factor = 30 + modifier = { + factor = 3 + OR = { + opinion = { who = FROMFROM value = 75 } + is_friend = FROMFROM + } + } + modifier = { + factor = 0 + is_rival = FROMFROM + } + } + hidden_tooltip = { + FROMFROM = { + set_character_flag = council_membership_requested + } + } + FROMFROM = { + character_event = { id = ZE.6004 days = 1 tooltip = EVTTOOLTIPZE_6004 } + } + } + + option = { + name = EVTOPTB_ZE_6001 + ai_chance = { + factor = 30 + modifier = { + factor = 0 + OR = { + opinion = { who = FROMFROM value = 75 } + is_friend = FROMFROM + } + } + modifier = { + factor = 3 + is_rival = FROMFROM + } + modifier = { + factor = 0 + diplomacy = 15 + } + } + FROMFROM = { + set_character_flag = council_membership_denied + opinion = { + modifier = opinion_very_disappointed + who = ROOT + years = 5 + } + character_event = { id = ZE.6005 days = 1 tooltip = EVTTOOLTIPZE_6005 } + } + } + + option = { + name = EVTOPTC_ZE_6001 + trigger = { + diplomacy = 15 + } + ai_chance = { + factor = 30 + modifier = { + factor = 0 + OR = { + opinion = { who = FROMFROM value = 75 } + is_friend = FROMFROM + } + } + modifier = { + factor = 3 + is_rival = FROMFROM + } + } + FROMFROM = { + set_character_flag = council_membership_denied + opinion = { + modifier = opinion_flattered + who = ROOT + years = 2 + } + character_event = { id = ZE.6006 days = 1 tooltip = EVTTOOLTIPZE_6006 } + } + tooltip_info = diplomacy + } +} + +#Vassal may ask for council seat again +character_event = { + id = ZE.6002 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6002 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + has_ambition = obj_become_council_member + has_character_flag = council_membership_requested + NOT = { has_character_flag = council_membership_denied } + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + + immediate = { + liege = { + if = { + limit = { + OR = { + AND = { + NOT = { job_chancellor = { always = yes } } + ROOT = { can_hold_title = job_chancellor } + } + AND = { + NOT = { job_marshal = { always = yes } } + ROOT = { can_hold_title = job_marshal } + } + AND = { + NOT = { job_treasurer = { always = yes } } + ROOT = { can_hold_title = job_treasurer } + } + AND = { + NOT = { job_spymaster = { always = yes } } + ROOT = { can_hold_title = job_spymaster } + } + AND = { + NOT = { job_spiritual = { always = yes } } + ROOT = { can_hold_title = job_spiritual } + } + } + } + break = yes + } + random_vassal = { + limit = { + NOT = { character = ROOT } + is_councillor = yes + OR = { + AND = { + has_job_title = job_chancellor + ROOT = { can_hold_title = job_chancellor } + } + AND = { + has_job_title = job_marshal + ROOT = { can_hold_title = job_marshal } + } + AND = { + has_job_title = job_treasurer + ROOT = { can_hold_title = job_treasurer } + } + AND = { + has_job_title = job_spymaster + ROOT = { can_hold_title = job_spymaster } + } + AND = { + has_job_title = job_spiritual + ROOT = { can_hold_title = job_spiritual } + } + } + } + if = { + limit = { + is_rival = ROOT + } + save_event_target_as = councillor_target + break = yes + } + if = { + limit = { + NOT = { + opinion = { who = ROOT value = 0 } + } + } + save_event_target_as = councillor_target + break = yes + } + if = { + limit = { + NOT = { + among_most_powerful_vassals = 5 + } + } + save_event_target_as = councillor_target + break = yes + } + save_event_target_as = councillor_target + } + } + } + + option = { + name = EVTOPTA_ZE_6002 + ai_chance = { + factor = 100 + } + liege = { character_event = { id = ZE.6003 days = 3 tooltip = EVTTOOLTIPZE_6003} } + } + + option = { + name = EVTOPTB_ZE_6002 + ai_chance = { + factor = 0 + } + } +} + +#Liege recieves vassals demand for council position +character_event = { + id = ZE.6003 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + + #if we have a councillor in mind + desc = { + text = EVTDESCA_ZE_6003 + trigger = { + event_target:councillor_target = { + always = yes + } + } + } + + #if there is an open spot + desc = { + text = EVTDESCB_ZE_6003 + trigger = { + NOT = { + event_target:councillor_target = { + always = yes + } + } + } + } + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + + #We fire the current councillor and replace with new + option = { + name = EVTOPTA_ZE_6003 + trigger = { + event_target:councillor_target = { + always = yes + } + } + ai_chance = { + factor = 30 + modifier = { + factor = 3 + OR = { + opinion = { who = FROM value = 75 } + is_friend = FROM + } + } + modifier = { + factor = 0 + is_rival = FROM + } + } + event_target:councillor_target = { + opinion = { + modifier = opinion_fired_from_council + who = ROOT + years = 5 + } + if = { + limit = { + has_job_title = job_chancellor + } + remove_title = job_chancellor + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_chancellor + } + } + if = { + limit = { + has_job_title = job_treasurer + } + remove_title = job_treasurer + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_treasurer + } + } + if = { + limit = { + has_job_title = job_spiritual + } + remove_title = job_spiritual + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_spiritual + } + } + if = { + limit = { + has_job_title = job_spymaster + } + remove_title = job_spymaster + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_spymaster + } + } + if = { + limit = { + has_job_title = job_marshal + } + remove_title = job_marshal + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_marshal + } + } + } + } + + #We have an open spot and approve the request + option = { + name = EVTOPTB_ZE_6003 + trigger = { + NOT = { + event_target:councillor_target = { + always = yes + } + } + } + ai_chance = { + factor = 30 + modifier = { + factor = 3 + OR = { + opinion = { who = FROM value = 75 } + is_friend = FROM + } + } + modifier = { + factor = 0 + is_rival = FROM + } + } + if = { + limit = { + NOT = { job_chancellor = { always = yes } } + FROM = { can_hold_title = job_chancellor } + } + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_chancellor + break = yes + } + } + if = { + limit = { + NOT = { job_treasurer = { always = yes } } + FROM = { can_hold_title = job_treasurer } + } + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_treasurer + break = yes + } + } + if = { + limit = { + NOT = { job_spiritual = { always = yes } } + FROM = { can_hold_title = job_spiritual } + } + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_spiritual + break = yes + } + } + if = { + limit = { + NOT = { job_spymaster = { always = yes } } + FROM = { can_hold_title = job_spymaster } + } + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_spymaster + break = yes + } + } + if = { + limit = { + NOT = { job_marshal = { always = yes } } + FROM = { can_hold_title = job_marshal } + } + event_target:aspiring_councillor = { + clr_character_flag = council_membership_requested + give_job_title = job_marshal + break = yes + } + } + } + + #We decline the request + option = { + name = EVTOPTC_ZE_6003 + ai_chance = { + factor = 70 + modifier = { + factor = 0 + OR = { + opinion = { who = FROM value = 75 } + is_friend = FROM + } + } + modifier = { + factor = 3 + is_rival = FROM + } + modifier = { + factor = 0 + intrigue = 15 + } + } + FROM = { + set_character_flag = council_membership_denied + opinion = { + modifier = opinion_very_disappointed + who = ROOT + years = 5 + } + character_event = { id = ZE.6005 days = 1 } + } + } + + #We play them against each other + option = { + name = EVTOPTD_ZE_6003 + trigger = { + event_target:councillor_target = { + always = yes + } + intrigue = 15 + } + ai_chance = { + factor = 50 + modifier = { + factor = 0 + OR = { + opinion = { who = FROM value = 75 } + is_friend = FROM + } + } + modifier = { + factor = 3 + ROOT = { + is_rival = FROM + } + } + } + tooltip_info = intrigue + event_target:aspiring_councillor = { + set_character_flag = council_membership_denied + character_event = { id = ZE.6007 days = 1 tooltip = EVTTOOLTIPZE_6007} + } + } +} + +#Liege will think about council position +character_event = { + id = ZE.6004 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6004 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + #alright + option = { + name = EVTOPTA_ZE_6004 + hidden_tooltip = { + character_event = { id = ZE.6002 days = 90 } + } + } +} + +#Liege declined council request +character_event = { + id = ZE.6005 + picture = GFX_evt_bad_news + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6005 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + #oh + option = { + name = EVTOPTA_ZE_6005 + } +} + +#Liege explains we are too good for the council +character_event = { + id = ZE.6006 + picture = GFX_evt_religious_exultation + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6006 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + #blush + option = { + name = EVTOPTA_ZE_6006 + } +} + +#Liege tells me another councillor has been slandering me +character_event = { + id = ZE.6007 + picture = GFX_evt_whispers + border = GFX_event_normal_frame_intrigue + desc = EVTDESC_ZE_6007 + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + prisoner = no + is_adult = yes + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + } + #you gain a rival + option = { + name = EVTOPTA_ZE_6007 + add_rival = event_target:councillor_target + } +} + + +#Checking for land_for_son ambition +character_event = { + id = ZE.6010 + hide_window = yes + + is_triggered_only = yes + + trigger = { + is_heir = no + NOT = { trait = incapable } + OR = { + father = { has_ambition = obj_land_for_son } + mother = { has_ambition = obj_land_for_son } + } + } + + immediate = { + father = { + if = { + limit = { has_ambition = obj_land_for_son } + set_character_flag = land_for_son_successful + opinion = { + modifier = opinion_ambition_fulfilled + who = FROMFROM + months = 24 + } + } + } + mother = { + if = { + limit = { has_ambition = obj_land_for_son } + set_character_flag = land_for_son_successful + opinion = { + modifier = opinion_ambition_fulfilled + who = FROMFROM + months = 24 + } + } + } + } +} + +#Asking liege to give land to son +character_event = { + id = ZE.6012 + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6012 + + is_triggered_only = yes + + immediate = { + random_demesne_title = { + limit = { + tier = COUNT + can_be_given_away = yes + NOT = { + location = { + is_capital = yes + } + } + } + save_event_target_as = requested_province + } + FROMFROM = { + random_child = { + limit = { + is_female = no + is_landed = no + is_adult = yes + is_heir = no + prisoner = no + NOR = { + trait = incapable + is_ascetic_trigger = yes + } + liege = { + character = PREVPREV + } + } + save_event_target_as = chosen_son + } + } + } + + option = { + name = EVTOPTA_ZE_6012 + ai_chance = { + factor = 20 + } + wealth = 200 + event_target:chosen_son = { + grant_title = event_target:requested_province + } + FROMFROM = { + character_event = { id = ZE.6013 } + } + } + + option = { + name = EVTOPTB_ZE_6012 + ai_chance = { + factor = 80 + } + FROMFROM = { + character_event = { id = ZE.6014 } + } + } + + option = { + trigger = { + NOT = { + FROMFROM = { + owes_favor_to = ROOT + } + } + } + name = EVTOPTC_ZE_6012 + ai_chance = { + factor = 20 + } + event_target:chosen_son = { + grant_title = event_target:requested_province + } + add_favor = FROMFROM + hidden_tooltip = { + FROMFROM = { + character_event = { id = ZE.6015 } + } + } + } +} + +#Land granted from request +character_event = { + id = ZE.6013 + picture = GFX_evt_son_asking_father + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6013 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_6013 + } +} + +#denied land +character_event = { + id = ZE.6014 + picture = GFX_evt_recieve_letter + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6014 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_6014 + } +} + +#got land! but now owes favor +character_event = { + id = ZE.6015 + picture = GFX_evt_recieve_letter + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6015 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_6015 + } +} + + +########################################################################################################### +# CHANGE COUNCIL POSITION # +########################################################################################################### +#Targeted decision to change job on councillor, ping target +character_event = { + id = ZE.6020 + hide_window = yes + + is_triggered_only = yes + + immediate = { + if = { + limit = { has_job_title = job_chancellor } + set_character_flag = is_chancellor + } + if = { + limit = { has_job_title = job_marshal } + set_character_flag = is_marshal + } + if = { + limit = { has_job_title = job_treasurer } + set_character_flag = is_treasurer + } + if = { + limit = { has_job_title = job_spymaster } + set_character_flag = is_spymaster + } + if = { + limit = { has_job_title = job_spiritual } + set_character_flag = is_spiritual + } + if = { + limit = { has_minor_title = title_councilmember_king } + set_character_flag = is_councilmember_king + } + if = { + limit = { has_minor_title = title_councilmember_emperor } + set_character_flag = is_councilmember_emperor + } + save_event_target_as = moving_councillor + liege = { character_event = { id = ZE.6021 } } + } +} + +#Targeted decision pick new council job event, brace yourself +character_event = { + id = ZE.6021 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6021 + + is_triggered_only = yes + + immediate = { #first, we set a char modifier and check what job the councillor has now + add_character_modifier = { + name = councillors_changed_jobs + duration = 365 + hidden = yes + } + + #Check how many options we display + + if = { + limit = { + event_target:moving_councillor = { + can_be_chancellor_trigger = yes + NOT = { has_character_flag = is_chancellor } + } + OR = { + NOT = { + job_chancellor = { + always = yes + } + } + job_chancellor = { + OR = { + can_swap_job_title = event_target:moving_councillor + AND = { + can_be_councilmember_king_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + AND = { + can_be_councilmember_emperor_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + } + } + } + } + set_character_flag = option_1_displayed + } + if = { + limit = { + event_target:moving_councillor = { + can_be_marshal_trigger = yes + NOT = { has_character_flag = is_marshal } + } + OR = { + NOT = { + job_marshal = { + always = yes + } + } + job_marshal = { + OR = { + can_swap_job_title = event_target:moving_councillor + AND = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + can_be_councilmember_king_trigger = yes + } + AND = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + can_be_councilmember_emperor_trigger = yes + } + } + } + } + } + set_character_flag = option_2_displayed + } + if = { + limit = { + event_target:moving_councillor = { + can_be_treasurer_trigger = yes + NOT = { has_character_flag = is_treasurer } + } + OR = { + NOT = { + job_treasurer = { + always = yes + } + } + job_treasurer = { + OR = { + can_swap_job_title = event_target:moving_councillor + AND = { + can_be_councilmember_king_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + AND = { + can_be_councilmember_emperor_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + } + } + } + } + set_character_flag = option_3_displayed + } + if = { + limit = { + event_target:moving_councillor = { + can_be_spymaster_trigger = yes + NOT = { has_character_flag = is_spymaster } + } + OR = { + NOT = { + job_spymaster = { + always = yes + } + } + job_spymaster = { + OR = { + can_swap_job_title = event_target:moving_councillor + AND = { + can_be_councilmember_king_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + AND = { + can_be_councilmember_emperor_trigger = yes + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + } + } + } + } + set_character_flag = option_4_displayed + } + if = { + limit = { + event_target:moving_councillor = { + can_be_spiritual_trigger = yes + NOT = { has_character_flag = is_spiritual } + } + OR = { + NOT = { + job_spiritual = { + always = yes + } + } + job_spiritual = { + OR = { + AND = { + can_swap_job_title = event_target:moving_councillor + #NAND = { + # liege = { religion_group = muslim } + # religion = ROOT + #} + } + AND = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + can_be_councilmember_king_trigger = yes + } + AND = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + can_be_councilmember_emperor_trigger = yes + } + } + } + } + } + set_character_flag = option_5_displayed + } + if = { + limit = { + event_target:moving_councillor = { + OR = { + can_be_councilmember_king_trigger = yes + can_be_councilmember_emperor_trigger = yes + } + NOR = { + has_character_flag = is_councilmember_king + has_character_flag = is_councilmember_emperor + } + } + ROOT = { + OR = { + any_realm_character = { + has_minor_title = title_councilmember_king + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + any_realm_character = { + has_minor_title = title_councilmember_emperor + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + } + } + } + ROOT = { set_character_flag = option_6_displayed } + if = { + limit = { + any_realm_character = { + has_minor_title = title_councilmember_king + liege = { character = ROOT } + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + } + random_realm_character = { + limit = { + has_minor_title = title_councilmember_king + liege = { character = ROOT } + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + save_event_target_as = advisor_target + ROOT = { set_character_flag = option_6_king } + break = yes + } + } + if = { + limit = { + any_realm_character = { + has_minor_title = title_councilmember_emperor + liege = { character = ROOT } + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + } + random_realm_character = { + limit = { + has_minor_title = title_councilmember_emperor + liege = { character = ROOT } + OR = { + AND = { + event_target:moving_councillor = { + has_character_flag = is_chancellor + } + can_be_chancellor_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_marshal + } + can_be_marshal_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_treasurer + } + can_be_treasurer_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spymaster + } + can_be_spymaster_trigger = yes + } + AND = { + event_target:moving_councillor = { + has_character_flag = is_spiritual + } + can_be_spiritual_trigger = yes + } + } + } + save_event_target_as = advisor_target + ROOT = { set_character_flag = option_6_emperor } + break = yes + } + } + } + } + + option = { #is chancellor a possible swap + name = EVTOPTA_ZE_6021 + trigger = { + has_character_flag = option_1_displayed + } + if = { + limit = { + NOT = { + job_chancellor = { + always = yes + } + } + } + event_target:moving_councillor = { + if = { + limit = { + has_character_flag = is_marshal + } + remove_title = job_marshal + clr_character_flag = is_marshal + } + if = { + limit = { + has_character_flag = is_treasurer + } + remove_title = job_treasurer + clr_character_flag = is_treasurer + } + if = { + limit = { + has_character_flag = is_spymaster + } + remove_title = job_spymaster + clr_character_flag = is_spymaster + } + if = { + limit = { + has_character_flag = is_spiritual + } + remove_title = job_spiritual + clr_character_flag = is_spiritual + } + if = { + limit = { + has_character_flag = is_councilmember_king + } + remove_title = title_councilmember_king + clr_character_flag = is_councilmember_king + } + if = { + limit = { + has_character_flag = is_councilmember_emperor + } + remove_title = title_councilmember_emperor + clr_character_flag = is_councilmember_emperor + } + give_job_title = job_chancellor + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + break = yes + } + job_chancellor = { + remove_title = job_chancellor + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_marshal } + } + give_job_title = job_marshal + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_treasurer } + } + give_job_title = job_treasurer + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spymaster } + } + give_job_title = job_spymaster + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spiritual } + } + give_job_title = job_spiritual + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + event_target:moving_councillor = { remove_title = title_councilmember_king } + give_minor_title = title_councilmember_king + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + event_target:moving_councillor = { remove_title = title_councilmember_emperor } + give_minor_title = title_councilmember_emperor + } + } + event_target:moving_councillor = { + give_job_title = job_chancellor + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + + option = { #is marshal a possible swap + name = EVTOPTB_ZE_6021 + trigger = { + has_character_flag = option_2_displayed + } + if = { + limit = { + NOT = { + job_marshal = { + always = yes + } + } + } + event_target:moving_councillor = { + if = { + limit = { + has_character_flag = is_chancellor + } + remove_title = job_chancellor + clr_character_flag = is_chancellor + } + if = { + limit = { + has_character_flag = is_treasurer + } + remove_title = job_treasurer + clr_character_flag = is_treasurer + } + if = { + limit = { + has_character_flag = is_spymaster + } + remove_title = job_spymaster + clr_character_flag = is_spymaster + } + if = { + limit = { + has_character_flag = is_spiritual + } + remove_title = job_spiritual + clr_character_flag = is_spiritual + } + if = { + limit = { + has_character_flag = is_councilmember_king + } + remove_title = title_councilmember_king + clr_character_flag = is_councilmember_king + } + if = { + limit = { + has_character_flag = is_councilmember_emperor + } + remove_title = title_councilmember_emperor + clr_character_flag = is_councilmember_emperor + } + give_job_title = job_marshal + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + break = yes + } + job_marshal = { + remove_title = job_marshal + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_chancellor } + } + give_job_title = job_chancellor + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_treasurer } + } + give_job_title = job_treasurer + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spymaster } + } + give_job_title = job_spymaster + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spiritual } + } + give_job_title = job_spiritual + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + event_target:moving_councillor = { remove_title = title_councilmember_king } + give_minor_title = title_councilmember_king + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + event_target:moving_councillor = { remove_title = title_councilmember_emperor } + give_minor_title = title_councilmember_emperor + } + } + event_target:moving_councillor = { + give_job_title = job_marshal + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + + option = { #is treasurer a possible swap + name = EVTOPTC_ZE_6021 + trigger = { + has_character_flag = option_3_displayed + } + if = { + limit = { + NOT = { + job_treasurer = { + always = yes + } + } + } + event_target:moving_councillor = { + if = { + limit = { + has_character_flag = is_chancellor + } + remove_title = job_chancellor + clr_character_flag = is_chancellor + } + if = { + limit = { + has_character_flag = is_marshal + } + remove_title = job_marshal + clr_character_flag = is_marshal + } + if = { + limit = { + has_character_flag = is_spymaster + } + remove_title = job_spymaster + clr_character_flag = is_spymaster + } + if = { + limit = { + has_character_flag = is_spiritual + } + remove_title = job_spiritual + clr_character_flag = is_spiritual + } + if = { + limit = { + has_character_flag = is_councilmember_king + } + remove_title = title_councilmember_king + clr_character_flag = is_councilmember_king + } + if = { + limit = { + has_character_flag = is_councilmember_emperor + } + remove_title = title_councilmember_emperor + clr_character_flag = is_councilmember_emperor + } + give_job_title = job_treasurer + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + break = yes + } + job_treasurer = { + remove_title = job_treasurer + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_chancellor } + } + give_job_title = job_chancellor + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_marshal } + } + give_job_title = job_marshal + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spymaster } + } + give_job_title = job_spymaster + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spiritual } + } + give_job_title = job_spiritual + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + event_target:moving_councillor = { remove_title = title_councilmember_king } + give_minor_title = title_councilmember_king + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + event_target:moving_councillor = { remove_title = title_councilmember_emperor } + give_minor_title = title_councilmember_emperor + } + } + event_target:moving_councillor = { + give_job_title = job_treasurer + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + + option = { + name = EVTOPTX_ZE_6021 + trigger = { + OR = { + has_character_flag = option_4_displayed + has_character_flag = option_5_displayed + has_character_flag = option_6_displayed + } + } + hidden_tooltip = { + character_event = { id = ZE.6022 } + } + } + + option = { + name = EVTOPTF_ZE_6021 + event_target:moving_councillor = { + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + remove_character_modifier = councillors_changed_jobs + } +} + +character_event = { + id = ZE.6022 + picture = GFX_evt_courtiers_talking + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_6021 + + is_triggered_only = yes + + option = { #is spymaster a possible swap + name = EVTOPTD_ZE_6021 + trigger = { + has_character_flag = option_4_displayed + } + if = { + limit = { + NOT = { + job_spymaster = { + always = yes + } + } + } + event_target:moving_councillor = { + if = { + limit = { + has_character_flag = is_chancellor + } + remove_title = job_chancellor + clr_character_flag = is_chancellor + } + if = { + limit = { + has_character_flag = is_marshal + } + remove_title = job_marshal + clr_character_flag = is_marshal + } + if = { + limit = { + has_character_flag = is_treasurer + } + remove_title = job_treasurer + clr_character_flag = is_treasurer + } + if = { + limit = { + has_character_flag = is_spiritual + } + remove_title = job_spiritual + clr_character_flag = is_spiritual + } + if = { + limit = { + has_character_flag = is_councilmember_king + } + remove_title = title_councilmember_king + clr_character_flag = is_councilmember_king + } + if = { + limit = { + has_character_flag = is_councilmember_emperor + } + remove_title = title_councilmember_emperor + clr_character_flag = is_councilmember_emperor + } + give_job_title = job_spymaster + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + break = yes + } + job_spymaster = { + remove_title = job_spymaster + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_chancellor } + } + give_job_title = job_chancellor + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_marshal } + } + give_job_title = job_marshal + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_treasurer } + } + give_job_title = job_treasurer + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spiritual } + } + give_job_title = job_spiritual + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + event_target:moving_councillor = { remove_title = title_councilmember_king } + give_minor_title = title_councilmember_king + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + event_target:moving_councillor = { remove_title = title_councilmember_emperor } + give_minor_title = title_councilmember_emperor + } + } + event_target:moving_councillor = { + give_job_title = job_spymaster + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + + option = { #is spiritual a possible swap + name = EVTOPTE_ZE_6021 + trigger = { + has_character_flag = option_5_displayed + } + if = { + limit = { + NOT = { + job_spiritual = { + always = yes + } + } + } + event_target:moving_councillor = { + if = { + limit = { + has_character_flag = is_chancellor + } + remove_title = job_chancellor + clr_character_flag = is_chancellor + } + if = { + limit = { + has_character_flag = is_marshal + } + remove_title = job_marshal + clr_character_flag = is_marshal + } + if = { + limit = { + has_character_flag = is_treasurer + } + remove_title = job_treasurer + clr_character_flag = is_treasurer + } + if = { + limit = { + has_character_flag = is_spymaster + } + remove_title = job_spymaster + clr_character_flag = is_spymaster + } + if = { + limit = { + has_character_flag = is_councilmember_king + } + remove_title = title_councilmember_king + clr_character_flag = is_councilmember_king + } + if = { + limit = { + has_character_flag = is_councilmember_emperor + } + remove_title = title_councilmember_emperor + clr_character_flag = is_councilmember_emperor + } + give_job_title = job_spiritual + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + break = yes + } + job_spiritual = { + remove_title = job_spiritual + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_chancellor } + } + give_job_title = job_chancellor + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_marshal } + } + give_job_title = job_marshal + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_treasurer } + } + give_job_title = job_treasurer + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spymaster } + } + give_job_title = job_spymaster + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_king } + } + event_target:moving_councillor = { remove_title = title_councilmember_king } + give_minor_title = title_councilmember_king + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_councilmember_emperor } + } + event_target:moving_councillor = { remove_title = title_councilmember_emperor } + give_minor_title = title_councilmember_emperor + } + } + event_target:moving_councillor = { + give_job_title = job_spiritual + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + + option = { #is being an advisor a new carreer path + name = EVTOPTY_ZE_6021 + trigger = { + has_character_flag = option_6_displayed + } + event_target:advisor_target = { + if = { #First check for and remove the correct advisor title + limit = { + has_minor_title = title_councilmember_king + } + remove_title = title_councilmember_king + } + if = { + limit = { + has_minor_title = title_councilmember_emperor + } + remove_title = title_councilmember_emperor + } + + # Now lets see where our mover was + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_chancellor } + } + give_job_title = job_chancellor + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_marshal } + } + give_job_title = job_marshal + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_treasurer } + } + give_job_title = job_treasurer + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spymaster } + } + give_job_title = job_spymaster + } + if = { + limit = { + event_target:moving_councillor = { has_character_flag = is_spiritual } + } + give_job_title = job_spiritual + } + } + event_target:moving_councillor = { + if = { + limit = { + ROOT = { has_character_flag = option_6_king } + } + give_minor_title = title_councilmember_king + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + if = { + limit = { + ROOT = { has_character_flag = option_6_emperor } + } + give_minor_title = title_councilmember_emperor + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + ROOT = { + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } + } + } + } + + option = { + name = EVTOPTX_ZE_6021 + trigger = { + ROOT = { + OR = { + has_character_flag = option_1_displayed + has_character_flag = option_2_displayed + has_character_flag = option_3_displayed + } + } + } + hidden_tooltip = { + character_event = { id = ZE.6021 } + } + } + + option = { + name = EVTOPTF_ZE_6021 + event_target:moving_councillor = { + clr_character_flag = is_chancellor + clr_character_flag = is_marshal + clr_character_flag = is_treasurer + clr_character_flag = is_spymaster + clr_character_flag = is_spiritual + clr_character_flag = is_councilmember_king + clr_character_flag = is_councilmember_emperor + } + clr_character_flag = option_1_displayed + clr_character_flag = option_2_displayed + clr_character_flag = option_3_displayed + clr_character_flag = option_4_displayed + clr_character_flag = option_5_displayed + clr_character_flag = option_6_displayed + clr_character_flag = option_6_king + clr_character_flag = option_6_emperor + } +} \ No newline at end of file diff --git a/After the End/events/ze_extra_events.txt b/After the End/events/ze_extra_events.txt new file mode 100644 index 000000000..f62321efc --- /dev/null +++ b/After the End/events/ze_extra_events.txt @@ -0,0 +1,2543 @@ +########################################### +# # +# Conclave Favor and Mercenary Events # +# Written by Emil Tisander # +# # +# ID ZE.23000-ZE.25999 # +# # +########################################### + +########################################### +# # +# Favor Events # +# by Alexander Oltner # +# ID ZE.22300-ZE.22800 # +# # +########################################### + +namespace = ZE + +# Councillor is Overburdened with Work +character_event = { + id = ZE.23000 + picture = GFX_evt_noble_in_castle + desc = EVTDESC_ZE_23000 + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + is_voter = yes + NOT = { is_inaccessible_trigger = yes } + liege = { + any_vassal = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + } + } + + immediate = { + liege = { + random_vassal = { + limit = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + save_event_target_as = target_help_councillor + } + } + } + + option = { # Accept Help + name = EVTOPTA_ZE_23000 + ai_chance = { + factor = 50 + + modifier = { + factor = 1.5 + trait = humble + } + } + reverse_add_favor = event_target:target_help_councillor + opinion = { + who = event_target:target_help_councillor + modifier = opinion_very_grateful + years = 3 + } + event_target:target_help_councillor = { + hidden_tooltip = { + character_event = { id = ZE.23001 days = 5 } + } + } + } + + option = { # Refuse Help + name = EVTOPTB_ZE_23000 + ai_chance = { + factor = 50 + + modifier = { + factor = 1.5 + trait = proud + } + } + if = { + limit = { + trait = stressed + trait = depressed + } + prestige = -100 + } + if = { + limit = { + trait = stressed + NOT = { trait = depressed } + } + random = { + chance = 50 + add_trait = depressed + hidden_tooltip = { + character_event = { id = 38288 } # Notify Depressed + } + } + prestige = -20 + } + if = { + limit = { + NOT = { trait = stressed } + } + random = { + chance = 75 + add_trait = stressed + hidden_tooltip = { + character_event = { id = 38282 } # Notify Stressed + } + } + prestige = -20 + } + reverse_opinion = { + who = event_target:target_help_councillor + modifier = insulted + years = 3 + } + event_target:target_help_councillor = { + hidden_tooltip = { + character_event = { id = ZE.23002 days = 5 } + } + } + } +} + +# Help Accepted +character_event = { + id = ZE.23001 + picture = GFX_evt_noble_in_castle + desc = EVTDESC_ZE_23001 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23001 + tooltip = { + add_favor = FROM + reverse_opinion = { + who = FROM + modifier = opinion_very_grateful + years = 3 + } + } + prestige = 20 + } +} + +# Help Refused +character_event = { + id = ZE.23002 + picture = GFX_evt_noble_in_castle + desc = EVTDESC_ZE_23002 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23002 + tooltip = { + opinion = { + who = FROM + modifier = insulted + years = 3 + } + } + } +} + +# Troublesome Peasants +long_character_event = { + id = ZE.23005 + picture = GFX_evt_noble_haughty_talking_to_peasants + desc = EVTDESC_ZE_23005 + + min_age = 16 + capable_only = yes + prisoner = no + has_dlc = "Zeus" + war = no + + is_triggered_only = yes + + trigger = { + NOR = { + trait = grey_eminence + trait = gregarious + trait = wounded + can_be_maimed_trigger = yes + government = nomadic_government + } + any_vassal = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_adult = yes + is_voter = no + prisoner = no + } + } + + immediate = { + random_vassal = { + limit = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_adult = yes + is_voter = no + prisoner = no + } + save_event_target_as = helping_vassal + } + } + + option = { # Run for Nearby Vassal + name = EVTOPTA_ZE_23005 + custom_tooltip = { text = EVTOPTA_ZE_23005_custom_tooltip_a } + hidden_tooltip = { + event_target:helping_vassal = { + character_event = { id = ZE.23006 days = 5 } + } + } + } + + option = { # Make a run for it + name = EVTOPTB_ZE_23005 + random_list = { + 50 = { + add_trait = wounded + hidden_tooltip = { + character_event = { id = 38280 } # Notify Wounded + } + } + 10 = { + add_maimed_trait_effect = yes + } + 40 = { + custom_tooltip = { text = EVTOPTA_ZE_23005_custom_tooltip_b } + } + } + } +} + +# Troublesome Peasants - Vassal sees Liege in Trouble +character_event = { + id = ZE.23006 + picture = GFX_evt_hiding_from_pursuers + desc = EVTDESC_ZE_23006 + + is_triggered_only = yes + + option = { # Aid Liege + name = EVTOPTA_ZE_23006 + ai_chance = { + factor = 60 + + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 1.5 + trait = content + } + modifier = { + factor = 1.5 + trait = just + } + } + tooltip = { + add_favor = FROM + reverse_opinion = { + who = FROM + modifier = opinion_very_grateful + years = 3 + } + } + FROM = { hidden_tooltip = { character_event = { id = ZE.23007 days = 5 } } } + } + + option = { # Ignore Liege + name = EVTOPTB_ZE_23006 + ai_chance = { + factor = 40 + + modifier = { + factor = 1.2 + trait = cruel + } + } + tooltip = { + FROM = { + opinion = { + who = ROOT + modifier = opinion_hate + years = 3 + } + } + add_rival = FROM + } + FROM = { hidden_tooltip = { character_event = { id = ZE.23008 days = 5 } } } + } +} + +# Troublesome Peasants - Vassal helps Liege +character_event = { + id = ZE.23007 + picture = GFX_evt_hiding_from_pursuers + desc = EVTDESC_ZE_23007 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23007 + reverse_add_favor = FROM + opinion = { + who = FROM + modifier = opinion_very_grateful + years = 3 + } + } +} + +# Troublesome Peasants - Vassal ignores Liege +character_event = { + id = ZE.23008 + picture = GFX_evt_hiding_from_pursuers + desc = EVTDESC_ZE_23008 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23008 + opinion = { + who = FROM + modifier = opinion_hate + years = 3 + } + add_rival = FROM + random_list = { + 70 = { + custom_tooltip = { text = EVTOPTA_ZE_23005_custom_tooltip_b } + } + 30 = { + add_trait = wounded + hidden_tooltip = { + character_event = { id = 38280 } # Notify Wounded + } + } + } + } +} + +## Dynamic Mercenaries Events +# Troop Composition +character_event = { + id = ZE.23100 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + primary_title = { + band_creator = { + character_event = { id = ZE.23101 } + } + } + } +} + +character_event = { + id = ZE.23101 + picture = GFX_evt_large_army + desc = EVTDESC_ZE_23101 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23101 + FROM = { + primary_title = { + change_mercenary_composition = { + from = light_infantry + change = 50 + type = heavy_infantry + } + } + } + wealth = -50 + } + option = { + name = EVTOPTB_ZE_23101 + FROM = { + primary_title = { + change_mercenary_composition = { + from = light_infantry + type = pikemen + change = 50 + } + } + } + wealth = -50 + } + option = { + name = EVTOPTC_ZE_23101 + FROM = { + primary_title = { + change_mercenary_composition = { + from = light_cavalry + type = knights + change = 50 + } + } + } + wealth = -50 + } + option = { + name = EVTOPTD_ZE_23101 + } +} + +# Send Troops +character_event = { + id = ZE.23105 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + primary_title = { + band_creator = { + character_event = { id = ZE.23106 } + } + } + } +} + +character_event = { + id = ZE.23106 + picture = GFX_evt_large_army + desc = EVTDESC_ZE_23106 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23106 + FROM = { + primary_title = { + change_mercenary_composition = { + type = light_infantry + change = 100 + } + } + } + wealth = -50 + } + option = { + name = EVTOPTB_ZE_23106 + FROM = { + primary_title = { + change_mercenary_composition = { + type = light_cavalry + change = 100 + } + } + } + wealth = -50 + } + option = { + name = EVTOPTD_ZE_23101 + } +} + +# Band Leader Speaks Highly of Employer +character_event = { + id = ZE.23150 + + hide_window = yes + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + mercenary = yes + primary_title = { + has_title_flag = ze_dyn_merc + NOR = { + has_title_flag = not_hired + has_title_flag = mercenary_unemployment + } + band_creator = { + OR = { + is_feudal = yes + is_republic = yes + } + NOT = { is_rival = ROOT } + is_adult = yes + reverse_opinion = { + who = ROOT + value = 10 + } + } + capital_scope = { + owner = { + is_adult = yes + ROOT = { + primary_title = { + band_creator = { + NOR = { + character = PREVPREVPREV + war_with = PREVPREVPREV + } + } + } + } + } + } + } + } + + immediate = { + primary_title = { + band_creator = { + save_event_target_as = merc_band_employer + } + capital_scope = { + owner = { + character_event = { id = ZE.23152 } + } + } + } + } +} + +# Host speak to Band Leader +character_event = { + id = ZE.23152 + picture = GFX_evt_large_army + desc = EVTDESC_ZE_23152 + + is_triggered_only = yes + + trigger = { + NOT = { is_rival = event_target:merc_band_employer } + } + + option = { # Write to Employer + name = EVTOPTA_ZE_23152 + FROM = { + primary_title = { + band_creator = { + letter_event = { id = ZE.23154 days = 5 } + } + } + } + } + option = { # Do nothing + name = EVTOPTB_ZE_23152 + } +} + +# Employer receives letter +letter_event = { + id = ZE.23154 + desc = EVTDESC_ZE_23154 + + is_triggered_only = yes + + option = { # Accept the invitation + name = EVTOPTA_ZE_23154 + FROM = { + character_event = { id = ZE.23155 days = 5 } + } + } + option = { # Decline the invitation + name = EVTOPTB_ZE_23154 + FROM = { + character_event = { id = ZE.23156 days = 5 } + } + } +} + +# Host receives positive response +letter_event = { + id = ZE.23155 + desc = EVTDESC_ZE_23155 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23155 + character_event = { id = ZE.23157 days = 5 } + } +} + +# Host receives negative response +letter_event = { + id = ZE.23156 + desc = EVTDESC_ZE_23156 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23156 + } +} + +# Employer and Host attends feast +character_event = { + id = ZE.23157 + picture = GFX_evt_feast + desc = EVTDESC_ZE_23157 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23157 + add_friend = FROMFROM + opinion = { + modifier = in_non_aggression_pact + years = 3 + who = FROMFROM + origin_description = EVTTITLE_ZE_23157 + } + FROMFROM = { + opinion = { + modifier = in_non_aggression_pact + years = 3 + who = ROOT + origin_description = EVTTITLE_ZE_23157 + } + } + hidden_tooltip = { + FROMFROM = { + character_event = { id = ZE.23158 days = 1 } + } + } + } +} + +# Employer returns home +character_event = { + id = ZE.23158 + picture = GFX_evt_feast + desc = EVTDESC_ZE_23158 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_23158 + tooltip = { + add_friend = FROM + opinion = { + modifier = in_non_aggression_pact + years = 3 + who = FROM + origin_description = EVTTITLE_ZE_23157 + } + FROM = { + opinion = { + modifier = in_non_aggression_pact + years = 3 + who = ROOT + origin_description = EVTTITLE_ZE_23157 + } + } + } + } +} + +# Pardon a young noble to use as a future 'Yes Man'. +character_event = { + id = ZE.22300 + desc = EVTDESC_ZE_22300 + picture = GFX_evt_judged_by_ruler + + min_age = 16 + capable_only = yes + prisoner = no + ai = no + war = no + has_dlc = "Zeus" + + only_playable = yes + + is_triggered_only = yes + + trigger = { + is_nomadic = no + NOT = { is_inaccessible_trigger = yes } + } + + # Pardon + option = { + name = EVTOPTA_ZE_22300 + + prestige = -50 + create_character = { + random_traits = yes + dynasty = RANDOM + female = no + age = 20 + religion = ROOT + culture = ROOT + } + new_character = { + reverse_add_favor = ROOT + } + custom_tooltip = { text = character_owe_favor } + } + + # Condemn + option = { + name = EVTOPTB_ZE_22300 + + prestige = 50 + + } +} + +# Voter saves another voters face at a Council Meeting. +character_event = { + id = ZE.22400 + desc = EVTDESC_ZE_22400 + picture = GFX_evt_council_quarrelling + + min_age = 16 + capable_only = yes + prisoner = no + + only_playable = yes + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + + is_voter = yes + NOR = { + diplomacy = 10 + is_inaccessible_trigger = yes + } + + liege = { + any_realm_character = { + same_liege = ROOT + diplomacy = 10 + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + } + } + + immediate = { + liege = { + any_realm_character = { + limit = { + same_liege = ROOT + diplomacy = 10 + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + save_event_target_as = target_saved_voter + } + } + } + + # Accept save of face + option = { + name = EVTOPTA_ZE_22400 + + ai_chance = { + factor = 70 + + modifier = { + factor = 0.5 + trait = proud + } + } + + prestige = 150 + event_target:target_saved_voter = { + add_favor = ROOT + character_event = { id = ZE.22410 days = 1 } + } + } + + # Deny + option = { + name = EVTOPTB_ZE_22400 + + ai_chance = { + factor = 30 + } + + prestige = -150 + add_character_modifier = { + modifier = publicly_humiliated + months = 36 + } + + event_target:target_saved_voter = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 15 + } + character_event = { id = ZE.22420 days = 1 } + } + + } +} + +# Another voter was saved by you! +character_event = { + id = ZE.22410 + desc = EVTDESC_ZE_22410 + picture = GFX_evt_council_agreement + + is_triggered_only = yes + + # Accept save of face + option = { + name = EVTOPTA_ZE_22410 + + tooltip = { + FROM = { + prestige = 150 + add_favor = ROOT + } + } + } +} + +# You saved the face of another voter but they weren't grateful. +character_event = { + id = ZE.22420 + desc = EVTDESC_ZE_22420 + picture = GFX_evt_leaving_table_angrily + + is_triggered_only = yes + + # Decline save of face + option = { + name = EVTOPTA_ZE_22420 + + prestige = 50 + + tooltip = { + FROM = { + prestige = -150 + } + } + } +} + +# Godly voter shows you how to be more pious. +character_event = { + id = ZE.22500 + desc = EVTDESC_ZE_22500 + picture = GFX_evt_council_agreement + + min_age = 16 + capable_only = yes + prisoner = no + + only_playable = yes + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + is_voter = yes + NOR = { + piety = 200 + trait = zealous + trait = humble + trait = erudite + trait = theologian + trait = faqih + trait = hafiz + is_inaccessible_trigger = yes + } + + liege = { + any_realm_character = { + same_liege = ROOT + religion = ROOT + OR = { + AND = { + is_theocracy = yes + piety = 0 + NOR = { + #trait = bad_priest_muslim + trait = bad_priest_christian + trait = bad_priest_norse + #trait = bad_priest_tengri + #trait = bad_priest_zoroastrian + trait = bad_priest_aztec + trait = cynical + } + } + AND = { + piety = 200 + NOT = { trait = cynical } + OR = { + trait = zealous + trait = humble + trait = erudite + trait = theologian + trait = faqih + trait = hafiz + } + } + } + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + } + } + + immediate = { + liege = { + any_realm_character = { + limit = { + same_liege = ROOT + religion = ROOT + OR = { + AND = { + is_theocracy = yes + piety = 0 + NOR = { + #trait = bad_priest_muslim + trait = bad_priest_christian + trait = bad_priest_norse + #trait = bad_priest_tengri + #trait = bad_priest_zoroastrian + trait = bad_priest_aztec + trait = cynical + } + } + AND = { + piety = 200 + NOT = { trait = cynical } + OR = { + trait = zealous + trait = humble + trait = erudite + trait = theologian + trait = faqih + trait = hafiz + } + } + } + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + save_event_target_as = target_pious_voter + } + } + } + + # Accept + option = { + name = EVTOPTA_ZE_22500 + + ai_chance = { + factor = 70 + + modifier = { + factor = 0.5 + trait = proud + } + } + + piety = 100 + add_character_modifier = { + name = the_pious + years = 3 + } + event_target:target_pious_voter = { + add_favor = ROOT + character_event = { id = ZE.22510 days = 1 } + } + } + + # Deny + option = { + name = EVTOPTB_ZE_22500 + + ai_chance = { + factor = 30 + } + + piety = -50 + + event_target:target_pious_voter = { + opinion = { + modifier = opinion_dislike + who = ROOT + years = 15 + } + character_event = { id = ZE.22520 days = 1 } + } + + } +} + +# The voter accepts your help! +character_event = { + id = ZE.22510 + desc = EVTDESC_ZE_22510 + picture = GFX_evt_council_agreement + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_22510 + + tooltip = { + FROM = { + piety = 100 + add_favor = ROOT + } + } + } +} + +# The voter denies your help. +character_event = { + id = ZE.22520 + desc = EVTDESC_ZE_22520 + picture = GFX_evt_leaving_table_angrily + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_22520 + + piety = 50 + + tooltip = { + FROM = { + piety = -50 + } + } + } +} + +# Ask foreign voter with the same job as you to help you get better at your job +# on_yearly_pulse +character_event = { + id = ZE.22600 + desc = EVTDESC_ZE_22600 + picture = GFX_evt_council_quarrelling + + min_age = 16 + capable_only = yes + prisoner = no + war = no + has_dlc = "Zeus" + + only_playable = yes + + is_triggered_only = yes + + trigger = { + is_voter = yes + liege = { war = no } + NOR = { + is_inaccessible_trigger = yes + trait = slothful + has_character_flag = asked_for_job_advice + } + OR = { + AND = { + NOT = { diplomacy = 10 } + has_job_title = job_chancellor + } + AND = { + NOT = { stewardship = 10 } + has_job_title = job_treasurer + } + AND = { + NOT = { intrigue = 10 } + has_job_title = job_spymaster + } + AND = { + NOT = { learning = 10 } + has_job_title = job_spiritual + } + AND = { + NOT = { martial = 10 } + has_job_title = job_marshal + } + } + + top_liege = { + any_realm_province = { + any_neighbor_province = { + holder_scope = { + top_liege = { + any_courtier = { + NOR = { + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + same_realm = ROOT + } + OR = { + AND = { + diplomacy = 10 + has_job_title = job_chancellor + ROOT = { has_job_title = job_chancellor } + } + AND = { + stewardship = 10 + has_job_title = job_treasurer + ROOT = { has_job_title = job_treasurer } + } + AND = { + intrigue = 10 + has_job_title = job_spymaster + ROOT = { has_job_title = job_spymaster } + } + AND = { + learning = 10 + has_job_title = job_spiritual + ROOT = { has_job_title = job_spiritual } + } + AND = { + martial = 10 + has_job_title = job_marshal + ROOT = { has_job_title = job_marshal } + } + } + } + } + } + } + } + } + } + + immediate = { + top_liege = { + any_realm_province = { + any_neighbor_province = { + holder_scope = { + top_liege = { + any_courtier = { + limit = { + NOR = { + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + same_realm = ROOT + } + OR = { + AND = { + diplomacy = 10 + has_job_title = job_chancellor + ROOT = { has_job_title = job_chancellor } + } + AND = { + stewardship = 10 + has_job_title = job_treasurer + ROOT = { has_job_title = job_treasurer } + } + AND = { + intrigue = 10 + has_job_title = job_spymaster + ROOT = { has_job_title = job_spymaster } + } + AND = { + learning = 10 + has_job_title = job_spiritual + ROOT = { has_job_title = job_spiritual } + } + AND = { + martial = 10 + has_job_title = job_marshal + ROOT = { has_job_title = job_marshal } + } + } + } + save_event_target_as = target_foreign_voter + } + } + } + } + } + } + } + + # I should approach the voter + option = { + name = EVTOPTA_ZE_22600 + + ai_chance = { + factor = 90 + + modifier = { + factor = 0.5 + trait = proud + } + } + + event_target:target_foreign_voter = { + letter_event = { id = ZE.22610 } + } + } + + # Lets not + option = { + name = EVTOPTB_ZE_22600 + + ai_chance = { + factor = 10 + } + + prestige = -10 + + } +} + +# A voter from another realm asks you for help +letter_event = { + id = ZE.22610 + desc = EVTDESC_ZE_22610 + + is_triggered_only = yes + + # Agree + option = { + name = EVTOPTA_ZE_22610 + + ai_chance = { + factor = 50 + + modifier = { + factor = 2 + trait = charitable + } + + modifier = { + factor = 2 + trait = kind + } + + modifier = { + factor = 2 + opinion = { who = FROM value = 25 } + } + } + + FROM = { + letter_event = { id = ZE.22620 days = 5 } + } + } + + # Deny + option = { + name = EVTOPTB_ZE_22610 + + ai_chance = { + factor = 50 + + modifier = { + factor = 3 + trait = paranoid + } + + modifier = { + factor = 0 + is_friend = FROM + } + } + + FROM = { + letter_event = { id = ZE.22630 days = 5 } + } + } +} + +# Help is accepted! +letter_event = { + id = ZE.22620 + desc = EVTDESC_ZE_22620 + + is_triggered_only = yes + + # Fantastic! + option = { + name = EVTOPTA_ZE_22620 + + set_character_flag = asked_for_job_advice + + reverse_add_favor = FROM + if = { + limit = { + NOT = { is_friend = FROM } + } + add_friend = FROM + } + + if = { + limit = { + has_job_title = job_chancellor + } + change_diplomacy = 2 + } + if = { + limit = { + has_job_title = job_treasurer + } + change_stewardship = 2 + } + if = { + limit = { + has_job_title = job_spymaster + } + change_intrigue = 2 + } + if = { + limit = { + has_job_title = job_spiritual + } + change_learning = 2 + } + if = { + limit = { + has_job_title = job_marshal + } + change_martial = 2 + } + + FROM = { + letter_event = { id = ZE.22640 } + } + } +} + +# Help is denied! +letter_event = { + id = ZE.22630 + desc = EVTDESC_ZE_22630 + + is_triggered_only = yes + + # Disappointed! + option = { + name = EVTOPTA_ZE_22630 + + ai_chance = { + factor = 20 + + modifier = { + factor = 2 + trait = humble + } + } + + prestige = -50 + + FROM = { + letter_event = { id = ZE.22650 } + } + } + + # You dare to deny me help? + option = { + name = EVTOPTB_ZE_22630 + tooltip_info = wroth + + ai_chance = { + factor = 60 + } + + trigger = { + trait = wroth + } + + prestige = -25 + add_rival = FROM + + FROM = { + letter_event = { id = ZE.22660 } + } + } + + # Perhaps some money will help? + option = { + name = EVTOPTC_ZE_22630 + + ai_chance = { + factor = 20 + + modifier = { + factor = 2 + trait = ambitious + } + + modifier = { + factor = 2 + trait = stubborn + } + } + + trigger = { + wealth = 100 + } + + wealth = -100 + + FROM = { + letter_event = { id = ZE.22670 days = 5 } + } + } +} + +# Notified of gratitude & friendship +letter_event = { + id = ZE.22640 + desc = EVTDESC_ZE_22640 + + is_triggered_only = yes + + # Lovely! + option = { + name = EVTOPTA_ZE_22640 + + tooltip = { + add_favor = FROM + add_friend = FROM + } + custom_tooltip = { text = stats_increased_tooltip } + } +} + +# Convey disappointment +letter_event = { + id = ZE.22650 + desc = EVTDESC_ZE_22650 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_22650 + + tooltip = { + FROM = { prestige = -25 } + } + } +} + +# Convey rage! +letter_event = { + id = ZE.22660 + desc = EVTDESC_ZE_22660 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_22660 + + tooltip = { + FROM = { prestige = -25 } + add_rival = FROM + } + } +} + +# Bribery +letter_event = { + id = ZE.22670 + desc = EVTDESC_ZE_22670 + + is_triggered_only = yes + + # When you put it like that! + option = { + name = EVTOPTA_ZE_22670 + + ai_chance = { + factor = 70 + + modifier = { + factor = 5 + trait = greedy + } + + modifier = { + factor = 5 + NOT = { wealth = 100 } + } + } + + wealth = 100 + tooltip = { + FROM = { wealth = -100 } + add_favor = FROM + } + custom_tooltip = { text = stats_increased_tooltip } + + FROM = { + letter_event = { id = ZE.22680 } + } + } + + # Still no. + option = { + name = EVTOPTB_ZE_22670 + + ai_chance = { + factor = 30 + + modifier = { + factor = 2 + trait = stubborn + } + } + + FROM = { + letter_event = { id = ZE.22690 } + } + } +} + +# Bribery is accepted! +letter_event = { + id = ZE.22680 + desc = EVTDESC_ZE_22680 + + is_triggered_only = yes + + # Fantastic! + option = { + name = EVTOPTA_ZE_22680 + + set_character_flag = asked_for_job_advice + + reverse_add_favor = FROM + + if = { + limit = { + has_job_title = job_chancellor + } + change_diplomacy = 2 + } + if = { + limit = { + has_job_title = job_treasurer + } + change_stewardship = 2 + } + if = { + limit = { + has_job_title = job_spymaster + } + change_intrigue = 2 + } + if = { + limit = { + has_job_title = job_spiritual + } + change_learning = 2 + } + if = { + limit = { + has_job_title = job_marshal + } + change_martial = 2 + } + } +} + +# Bribery is denied! +letter_event = { + id = ZE.22690 + desc = EVTDESC_ZE_22690 + + is_triggered_only = yes + + # Disappointed! + option = { + name = EVTOPTA_ZE_22690 + + wealth = 100 + prestige = -50 + } +} + +# Give land to an unlanded friend for a favor +character_event = { + id = ZE.22700 + + hide_window = yes + + min_age = 16 + capable_only = yes + prisoner = no + war = no + has_dlc = "Zeus" + + only_playable = yes + + is_triggered_only = yes + + trigger = { + is_nomadic = no + NOT = { is_inaccessible_trigger = yes } + higher_tier_than = COUNT + + any_demesne_title = { + tier = COUNT + can_be_given_away = yes + is_feudal = yes + NOT = { + location = { + is_capital = yes + } + } + } + + any_friend = { + NOR = { + is_inaccessible_trigger = yes + trait = eunuch + trait = celibate + is_ascetic_trigger = yes + owes_favor_to = ROOT + trait = incapable + any_heir_title = { + always = yes + } + liege = { character = ROOT } + is_close_relative = ROOT + } + OR = { + is_female = no + AND = { + is_female = yes + ROOT = { + OR = { + religion = cathar + religion = messalian + primary_title = { has_law = status_of_women_4 } + has_game_rule = { + name = gender + value = all + } + } + } + } + } + prisoner = no + is_ruler = no + is_adult = yes + } + } + + immediate = { + any_friend = { + limit = { + NOR = { + is_inaccessible_trigger = yes + trait = eunuch + trait = celibate + is_ascetic_trigger = yes + owes_favor_to = ROOT + trait = incapable + any_heir_title = { + always = yes + } + liege = { character = ROOT } + is_close_relative = ROOT + } + OR = { + is_female = no + AND = { + is_female = yes + ROOT = { + OR = { + religion = cathar + religion = messalian + primary_title = { has_law = status_of_women_4 } + has_game_rule = { + name = gender + value = all + } + } + } + } + } + prisoner = no + is_ruler = no + is_adult = yes + } + save_event_target_as = target_unlanded_friend + } + random_demesne_title = { + limit = { + tier = COUNT + can_be_given_away = yes + is_feudal = yes + NOT = { + location = { + is_capital = yes + } + } + } + save_event_target_as = target_friend_land + } + event_target:target_unlanded_friend = { character_event = { id = ZE.22701 } } + } +} + +character_event = { + id = ZE.22701 + + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROM = { character_event = { id = ZE.22702 } } + } +} + +character_event = { + id = ZE.22702 + desc = EVTDESC_ZE_22702 + picture = GFX_evt_council_agreement + + is_triggered_only = yes + + # Give friend land + option = { + name = EVTOPTA_ZE_22702 + + ai_chance = { + factor = 50 + + modifier = { + factor = 0.5 + trait = greedy + } + + modifier = { + factor = 0.5 + trait = paranoid + } + + modifier = { + factor = 2 + trait = charitable + } + + modifier = { + factor = 2 + trait = kind + } + } + + event_target:target_unlanded_friend = { + opinion = { + modifier = opinion_loyal_servant + who = ROOT + months = 1200 + } + reverse_add_favor = ROOT + grant_title = event_target:target_friend_land + } + custom_tooltip = { + text = indebted_to_family_tooltip + hidden_tooltip = { + any_dynasty_member = { + event_target:target_unlanded_friend = { + opinion = { + who = PREV + modifier = opinion_loyal_servant + months = 1200 + } + } + } + } + } + If = { + limit = { + NOT = { + trait = charitable + } + } + add_trait = charitable + } + } + + # Deny friend land + option = { + name = EVTOPTB_ZE_22702 + + ai_chance = { + factor = 50 + } + + } +} + +# Offer to teach liege's commanders tactics +character_event = { + id = ZE.22800 + desc = EVTDESC_ZE_22800 + picture = GFX_evt_war_planning + + min_age = 16 + capable_only = yes + prisoner = no + war = no + has_dlc = "Zeus" + + only_playable = yes + + is_triggered_only = yes + + trigger = { + martial = 12 + independent = no + NOR = { + is_inaccessible_trigger = yes + trait = slothful + trait = shy + liege = { is_rival = ROOT } + holds_favor_on = LIEGE + } + OR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + + liege = { + prisoner = no + NOR = { + trait = incapable + is_inaccessible_trigger = yes + } + any_realm_character = { + count = 3 + can_have_more_leadership_traits = yes + martial = 6 + same_liege = ROOT + has_minor_title = title_commander + ai = yes + NOR = { + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + } + } + + immediate = { + liege = { + save_event_target_as = letter_event_portrait + } + liege = { + any_realm_character = { + limit = { + martial = 6 + same_liege = ROOT + has_minor_title = title_commander + ai = yes + can_have_more_leadership_traits = yes + NOR = { + character = event_target:commander_two + character = event_target:commander_three + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + save_event_target_as = commander_one + } + any_realm_character = { + limit = { + martial = 6 + same_liege = ROOT + has_minor_title = title_commander + ai = yes + can_have_more_leadership_traits = yes + NOR = { + character = event_target:commander_one + character = event_target:commander_three + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + save_event_target_as = commander_two + } + any_realm_character = { + limit = { + martial = 6 + same_liege = ROOT + has_minor_title = title_commander + ai = yes + can_have_more_leadership_traits = yes + NOR = { + character = event_target:commander_two + character = event_target:commander_one + trait = light_foot_leader + trait = heavy_infantry_leader + trait = cavalry_leader + trait = inspiring_leader + trait = trickster + trait = organizer + trait = defensive_leader + trait = experimenter + trait = flanker + trait = aggressive_leader + trait = siege_leader + trait = flat_terrain_leader + trait = rough_terrain_leader + trait = mountain_terrain_leader + trait = desert_terrain_leader + trait = unyielding_leader + trait = narrow_flank_leader + trait = war_elephant_leader + trait = jungle_terrain_leader + trait = winter_soldier + } + } + save_event_target_as = commander_three + } + } + } + + # Offer to train + option = { + name = EVTOPTA_ZE_22800 + + ai_chance = { + factor = 90 + } + + liege = { + letter_event = { id = ZE.22801 } + } + } + + # Rather not bother with it + option = { + name = EVTOPTB_ZE_22800 + + ai_chance = { + factor = 10 + } + } +} + +# Liege receives offer +letter_event = { + id = ZE.22801 + desc = EVTDESC_ZE_22801 + + border = GFX_event_letter_frame_war + + min_age = 16 + capable_only = yes + prisoner = no + + only_playable = yes + + is_triggered_only = yes + + # Accept offer + option = { + name = EVTOPTA_ZE_22801 + + ai_chance = { + factor = 90 + + modifier = { + factor = 0.5 + trait = paranoid + } + modifier = { + factor = 0.5 + trait = proud + } + } + + hidden_tooltip = { + FROM = { + letter_event = { id = ZE.22802 days = 7 } + } + } + tooltip = { + FROM = { + add_favor = ROOT + } + } + + if = { + limit = { + FROM = { + trait = siege_leader + } + } + event_target:commander_one = { + add_trait = siege_leader + } + event_target:commander_two = { + add_trait = siege_leader + } + event_target:commander_three = { + add_trait = siege_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = flat_terrain_leader + } + } + event_target:commander_one = { + add_trait = flat_terrain_leader + } + event_target:commander_two = { + add_trait = flat_terrain_leader + } + event_target:commander_three = { + add_trait = flat_terrain_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = rough_terrain_leader + } + } + event_target:commander_one = { + add_trait = rough_terrain_leader + } + event_target:commander_two = { + add_trait = rough_terrain_leader + } + event_target:commander_three = { + add_trait = rough_terrain_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = mountain_terrain_leader + } + } + event_target:commander_one = { + add_trait = mountain_terrain_leader + } + event_target:commander_two = { + add_trait = mountain_terrain_leader + } + event_target:commander_three = { + add_trait = mountain_terrain_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = desert_terrain_leader + } + } + event_target:commander_one = { + add_trait = desert_terrain_leader + } + event_target:commander_two = { + add_trait = desert_terrain_leader + } + event_target:commander_three = { + add_trait = desert_terrain_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = jungle_terrain_leader + } + } + event_target:commander_one = { + add_trait = jungle_terrain_leader + } + event_target:commander_two = { + add_trait = jungle_terrain_leader + } + event_target:commander_three = { + add_trait = jungle_terrain_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = winter_soldier + } + } + event_target:commander_one = { + add_trait = winter_soldier + } + event_target:commander_two = { + add_trait = winter_soldier + } + event_target:commander_three = { + add_trait = winter_soldier + } + break = yes + } + if = { + limit = { + FROM = { + trait = organizer + } + } + event_target:commander_one = { + add_trait = organizer + } + event_target:commander_two = { + add_trait = organizer + } + event_target:commander_three = { + add_trait = organizer + } + break = yes + } + if = { + limit = { + FROM = { + trait = light_foot_leader + } + } + event_target:commander_one = { + add_trait = light_foot_leader + } + event_target:commander_two = { + add_trait = light_foot_leader + } + event_target:commander_three = { + add_trait = light_foot_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = heavy_infantry_leader + } + } + event_target:commander_one = { + add_trait = heavy_infantry_leader + } + event_target:commander_two = { + add_trait = heavy_infantry_leader + } + event_target:commander_three = { + add_trait = heavy_infantry_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = cavalry_leader + } + } + event_target:commander_one = { + add_trait = cavalry_leader + } + event_target:commander_two = { + add_trait = cavalry_leader + } + event_target:commander_three = { + add_trait = cavalry_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = inspiring_leader + } + } + event_target:commander_one = { + add_trait = inspiring_leader + } + event_target:commander_two = { + add_trait = inspiring_leader + } + event_target:commander_three = { + add_trait = inspiring_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = defensive_leader + } + } + event_target:commander_one = { + add_trait = defensive_leader + } + event_target:commander_two = { + add_trait = defensive_leader + } + event_target:commander_three = { + add_trait = defensive_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = experimenter + } + } + event_target:commander_one = { + add_trait = experimenter + } + event_target:commander_two = { + add_trait = experimenter + } + event_target:commander_three = { + add_trait = experimenter + } + break = yes + } + if = { + limit = { + FROM = { + trait = flanker + } + } + event_target:commander_one = { + add_trait = flanker + } + event_target:commander_two = { + add_trait = flanker + } + event_target:commander_three = { + add_trait = flanker + } + break = yes + } + if = { + limit = { + FROM = { + trait = aggressive_leader + } + } + event_target:commander_one = { + add_trait = aggressive_leader + } + event_target:commander_two = { + add_trait = aggressive_leader + } + event_target:commander_three = { + add_trait = aggressive_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = unyielding_leader + } + } + event_target:commander_one = { + add_trait = unyielding_leader + } + event_target:commander_two = { + add_trait = unyielding_leader + } + event_target:commander_three = { + add_trait = unyielding_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = narrow_flank_leader + } + } + event_target:commander_one = { + add_trait = narrow_flank_leader + } + event_target:commander_two = { + add_trait = narrow_flank_leader + } + event_target:commander_three = { + add_trait = narrow_flank_leader + } + break = yes + } + if = { + limit = { + FROM = { + trait = trickster + } + } + event_target:commander_one = { + add_trait = trickster + } + event_target:commander_two = { + add_trait = trickster + } + event_target:commander_three = { + add_trait = trickster + } + break = yes + } + if = { + limit = { + FROM = { + trait = war_elephant_leader + } + } + event_target:commander_one = { + add_trait = war_elephant_leader + } + event_target:commander_two = { + add_trait = war_elephant_leader + } + event_target:commander_three = { + add_trait = war_elephant_leader + } + break = yes + } + } + + # An insult! + option = { + name = EVTOPTB_ZE_22801 + + ai_chance = { + factor = 10 + } + + opinion = { + modifier = insulted + who = FROM + years = 5 + } + + FROM = { + letter_event = { id = ZE.22803 days = 7 } + } + + } +} + +# Liege accepted! +letter_event = { + id = ZE.22802 + desc = EVTDESC_ZE_22802 + + is_triggered_only = yes + + immediate = { + ROOT = { + add_favor = FROM + } + } + + option = { + name = EVTOPTA_ZE_22802 + tooltip = { + ROOT = { + add_favor = FROM + } + } + } +} + +# Liege denied +letter_event = { + id = ZE.22803 + desc = EVTDESC_ZE_22803 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_22803 + + tooltip = { + FROM = { + opinion = { + modifier = insulted + who = FROM + years = 5 + } + } + } + } +} \ No newline at end of file diff --git a/After the End/events/ze_favor_events.txt b/After the End/events/ze_favor_events.txt new file mode 100644 index 000000000..555e445d3 --- /dev/null +++ b/After the End/events/ze_favor_events.txt @@ -0,0 +1,498 @@ +#Written by Markus Olsén +#These are events specifically made to generate favors + +#ZE.8100 - ZE.8199 + +namespace = ZE + +#You were too drunk after a council meeting and fell on your face +character_event = { + id = ZE.8100 + picture = GFX_evt_feast + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8100 + + hide_from = yes + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + OR = { + NOT = { religion_group = latter_day_saints } + #AND = { Decadence isn't a thing, but maybe some similar trait will be added + # religion_group = latter_day_saints + # trait = decadent + #} + } + NOR = { + trait = temperate + is_inaccessible_trigger = yes + trait = drunkard + } + any_vassal = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + } + + weight_multiplier = { + days = 1 + + modifier = { + factor = 2 + trait = gluttonous + } + modifier = { + factor = 2 + trait = hedonist + } + } + + immediate = { + random_vassal = { + limit = { + NOR = { + character = ROOT + holds_favor_on = ROOT + trait = incapable + is_inaccessible_trigger = yes + is_rival = ROOT + } + is_voter = yes + prisoner = no + } + save_event_target_as = target_voter + } + } + + #call for help + option = { + name = EVTOPTA_ZE_8100 + custom_tooltip = { + text = EVTOPTA_ZE_8100_TOOLTIP + hidden_tooltip = { + event_target:target_voter = { + character_event = { id = ZE.8101 } + } + } + } + } + #dont embarass yourself + option = { + name = EVTOPTB_ZE_8100 + random_list = { + 60 = {} + 30 = { + if = { limit = { NOR = { trait = wounded is_maimed_trigger = yes } } + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + 10 = { death = { death_reason = death_accident } } + } + } +} + +#Councillor came to see what was wrong +character_event = { + id = ZE.8101 + picture = GFX_evt_feast + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8101 + + is_triggered_only = yes + + #Helps wounded + option = { + name = EVTOPTA_ZE_8101 + tooltip = { + add_favor = FROM + } + custom_tooltip = { + text = EVTOPTA_ZE_8101_TOOLTIP + FROM = { + hidden_tooltip = { + character_event = { id = ZE.8102 } + } + } + } + } + #Mocks wounded + option = { + name = EVTOPTB_ZE_8101 + FROM = { + tooltip = { + if = { limit = { NOT = { trait = drunkard } } + add_trait = drunkard + } + add_rival = ROOT + } + hidden_tooltip = { + character_event = { id = ZE.8103 } + } + } + } +} + +#councillor saved you +character_event = { + id = ZE.8102 + picture = GFX_evt_feast + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8102 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_8102 + reverse_add_favor = FROM + } +} + +#councillor left you +character_event = { + id = ZE.8103 + picture = GFX_evt_feast + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8103 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_8103 + if = { limit = { NOT = { trait = drunkard } } + add_trait = drunkard + } + add_rival = FROM + } +} + +#intervene in marriage quarrel +character_event = { + id = ZE.8110 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8110 + + min_age = 16 + capable_only = yes + prisoner = no + + is_triggered_only = yes + + trigger = { + has_dlc = "Zeus" + NOT = { is_inaccessible_trigger = yes } + any_vassal = { + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + } + is_voter = yes + prisoner = no + spouse = { + NOR = { + trait = incapable + is_inaccessible_trigger = yes + opinion = { who = PREV value = 0 } + has_lover = yes + } + } + } + } + + immediate = { + random_vassal = { + limit = { + NOR = { + character = ROOT + owes_favor_to = ROOT + trait = incapable + is_inaccessible_trigger = yes + } + is_voter = yes + prisoner = no + spouse = { + NOR = { + trait = incapable + is_inaccessible_trigger = yes + opinion = { who = PREV value = 0 } + has_lover = yes + } + } + } + save_event_target_as = target_vassal + } + } + + #interrupt their quarrel + option = { + name = EVTOPTA_ZE_8110 + hidden_tooltip = { + event_target:target_vassal = { + character_event = { id = ZE.8112 } + } + } + } + #dont mess with others affairs + option = { + name = EVTOPTB_ZE_8110 + } +} + +##liege helped out +#character_event = { +# id = ZE.8111 +# picture = GFX_evt_feast +# border = GFX_event_normal_frame_diplomacy +# desc = EVTDESC_ZE_8111 +# +# is_triggered_only = yes +# +# option = { +# name = EVTOPTA_ZE_8111 +# event_target:target_vassal = { +# hidden_tooltip = { character_event = { id = ZE.8112 } } +# } +# } +#} + +#vassal informed of event +character_event = { + id = ZE.8112 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8112 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_8112 + tooltip = { + reverse_add_favor = FROM + FROM = { + opinion = { + who = ROOT + modifier = approves_of_my_behaviour + years = 3 + } + } + } + spouse = { + opinion = { + who = ROOT + modifier = opinion_happy + years = 3 + } + } + FROM = { hidden_tooltip = { character_event = { id = ZE.8113 } } } + } + + option = { + name = EVTOPTB_ZE_8112 + tooltip = { + FROM = { + opinion = { + who = ROOT + modifier = insulted + years = 3 + } + } + } + FROM = { hidden_tooltip = { character_event = { id = ZE.8114 } } } + } +} + +#liege is appreciated +character_event = { + id = ZE.8113 + picture = GFX_evt_quarrel + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8113 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_8113 + add_favor = FROM + opinion = { + who = FROM + modifier = approves_of_my_behaviour + years = 3 + } + } +} + +#liege's 'help' was not appreciated +character_event = { + id = ZE.8114 + picture = GFX_evt_judged_by_ruler + border = GFX_event_normal_frame_diplomacy + desc = EVTDESC_ZE_8114 + + is_triggered_only = yes + + option = { + name = EVTOPTA_ZE_8114 + opinion = { + who = FROM + modifier = insulted + years = 3 + } + } +} + +character_event = { + id = ZE.8120 + picture = GFX_evt_poke_king_in_chest + border = GFX_event_normal_frame_intrigue + desc = EVTDESC_ZE_8120 + + is_triggered_only = yes + + immediate = { + reverse_remove_favor = event_target:pardon_target + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = declared_war} + } + remove_opinion = { who = event_target:pardon_target modifier = declared_war } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_dishonorable} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_dishonorable } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_traitor} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_traitor } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_rebel_traitor} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_rebel_traitor } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_regicide_traitor} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_regicide_traitor } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_killed_close_kin} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_killed_close_kin } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_refused_abdicate_title} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_refused_abdicate_title } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_fatwa_target} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_fatwa_target } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_refused_order} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_refused_order } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_witch} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_witch } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_takfir} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_takfir } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_unfaithful_wife} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_unfaithful_wife } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_cuckolded} + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_cuckolded } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_heresiarch } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_heresiarch } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_infidel } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_infidel } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_deviant } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_deviant } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_illegitimate } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_illegitimate } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_traitor } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_traitor } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = opinion_charge_slanderer } + } + remove_opinion = { who = event_target:pardon_target modifier = opinion_charge_slanderer } + } + if = { + limit = { + has_opinion_modifier = { who = event_target:pardon_target modifier = abuse_of_office } + } + remove_opinion = { who = event_target:pardon_target modifier = abuse_of_office } + } + } + + option = { + name = EVTOPTA_ZE_8120 + } +} \ No newline at end of file diff --git a/After the End/events/ze_war_chest_extortion.txt b/After the End/events/ze_war_chest_extortion.txt new file mode 100644 index 000000000..29ef3bfd4 --- /dev/null +++ b/After the End/events/ze_war_chest_extortion.txt @@ -0,0 +1,799 @@ +########################################### +# # +# War Chest Extortion events # +# by Alexander Oltner # +# ID # +# # +########################################### + +namespace = ZE + +# Extort Subjects Hub +character_event = { + id = ZE.21000 + desc = EVTDESC_ZE_21000 + picture = GFX_evt_noble_in_castle + + is_triggered_only = yes + + immediate = { + random_demesne_province = { + limit = { + NOR = { + has_province_modifier = extra_tax + has_province_modifier = extra_tax_kind + } + any_province_holding = { + OR = { + holding_type = city + holding_type = temple + holding_type = castle + holding_type = tribal + } + } + } + save_event_target_as = extra_tax_target + } + + random_demesne_province = { + limit = { + any_province_holding = { + holding_type = temple + num_of_buildings = 4 + holder_scope = { + NOT = { character = ROOT } + tier = baron + liege = { character = ROOT } + } + } + } + random_province_holding = { + limit = { + holding_type = temple + num_of_buildings = 4 + holder_scope = { + NOT = { character = ROOT } + tier = baron + liege = { character = ROOT } + } + } + save_event_target_as = seize_church_target + } + } + + random_realm_character = { + limit = { + liege = { character = ROOT } + NOT = { is_close_relative = ROOT } + is_adult = yes + prisoner = no + is_landed = no + wealth = 100 + NOR = { + has_character_modifier = extort_timer + is_married = ROOT + dynasty = ROOT + is_friend = ROOT + holds_favor_on = ROOT + } + } + save_event_target_as = extortion_target + } + } + + # Extra Tax on peasants of a random Demesne Province + option = { + name = EVTOPTA_ZE_21000 + + ai_chance = { + factor = 33 + } + + trigger = { + event_target:extra_tax_target = { always = yes } + } + + custom_tooltip = { + text = extort_tyrant_custom_tooltip + hidden_tooltip = { + any_realm_character = { + opinion = { + who = ROOT + modifier = opinion_tyrant + months = 60 + } + } + } + } + + character_event = { id = ZE.21100 tooltip = EVTTOOLTIP_ZE_21100 } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 7 + } + } + wealth = 150 + break = yes + } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 6 + } + } + wealth = 130 + break = yes + } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 5 + } + } + wealth = 110 + break = yes + } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 4 + } + } + wealth = 90 + break = yes + } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 3 + } + } + wealth = 70 + break = yes + } + + if = { + limit = { + event_target:extra_tax_target = { + num_of_settlements = 2 + } + } + wealth = 50 + break = yes + } + + wealth = 30 + + } + + # Extort Rich Character + option = { + name = EVTOPTB_ZE_21000 + + ai_chance = { + factor = 33 + + modifier = { + factor = 2 + NOT = { opinion = { who = event_target:extortion_target value = -25 } } + } + modifier = { + factor = 0.5 + opinion = { who = event_target:extortion_target value = 50 } + } + } + + trigger = { + event_target:extortion_target = { always = yes } + } + custom_tooltip = { + text = extort_tyrant_custom_tooltip + hidden_tooltip = { + any_realm_character = { + opinion = { + who = ROOT + modifier = opinion_tyrant + months = 60 + } + } + } + } + + character_event = { id = ZE.21200 tooltip = EVTTOOLTIP_ZE_21200 } + + hidden_tooltip = { + event_target:extortion_target = { + add_character_modifier = { + modifier = extort_timer + years = 15 + hidden = yes + } + } + } + + if = { + limit = { + event_target:extortion_target = { + wealth = 700 + } + } + event_target:extortion_target = { + wealth = -350 + } + wealth = 350 + break = yes + } + + if = { + limit = { + event_target:extortion_target = { + wealth = 500 + NOT = { wealth = 700 } + } + } + event_target:extortion_target = { + wealth = -250 + } + wealth = 250 + break = yes + } + + if = { + limit = { + event_target:extortion_target = { + wealth = 300 + NOT = { wealth = 500 } + } + } + event_target:extortion_target = { + wealth = -150 + } + wealth = 150 + break = yes + } + + if = { + limit = { + event_target:extortion_target = { + wealth = 100 + NOT = { wealth = 300 } + } + } + event_target:extortion_target = { + wealth = -50 + } + wealth = 50 + break = yes + } + + } + + # Seize Church Assets + option = { + name = EVTOPTC_ZE_21000 + + ai_chance = { + factor = 33 + + modifier = { + factor = 1.5 + trait = cynical + } + + modifier = { + factor = 0.5 + trait = humble + } + + modifier = { + factor = 0.5 + trait = zealous + } + } + + trigger = { + NOT = { has_character_modifier = seize_church_assets_timer } + event_target:seize_church_target = { always = yes } + } + + custom_tooltip = { + text = extort_tyrant_custom_tooltip + hidden_tooltip = { + any_realm_character = { + opinion = { + who = ROOT + modifier = opinion_tyrant + months = 60 + } + } + } + } + + character_event = { id = ZE.21300 tooltip = EVTTOOLTIP_ZE_21300 } + + event_target:seize_church_target = { + destroy_random_building = THIS + } + + if = { + limit = { + government = tribal_government + } + wealth = 50 + } + + if = { + limit = { + NOT = { government = tribal_government } + } + wealth = 100 + } + + piety = -50 + + + hidden_tooltip = { + add_character_modifier = { + modifier = seize_church_assets_timer + years = 1 + hidden = yes + } + } + } + + # Back Out + option = { + name = EVTOPTD_ZE_21000 + + ai_chance = { + factor = 1 + } + + } +} + +# Extra Tax on Demesne Province +character_event = { + id = ZE.21100 + desc = EVTDESC_ZE_21100 + picture = GFX_evt_noble_haughty_talking_to_peasants + + is_triggered_only = yes + + # High stewardship can trade revolt risk for less tax + option = { + name = EVTOPTA_ZE_21100 + tooltip_info = stewardship + + trigger = { + stewardship = 15 + } + + event_target:extra_tax_target = { + add_province_modifier = { + modifier = extra_tax_kind + duration = 1825 + } + } + + if = { + limit = { + OR = { + trait = kind + trait = charitable + trait = just + } + NOT = { trait = depressed } + } + random_list = { + 5 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 95 = { + + } + } + } + } + + # Peasants upset + option = { + name = EVTOPTB_ZE_21100 + + if = { + limit = { + trait = just + } + remove_trait = just + } + + event_target:extra_tax_target = { + add_province_modifier = { + modifier = extra_tax + duration = 1825 + } + } + + if = { + limit = { + OR = { + trait = kind + trait = charitable + trait = just + } + NOT = { trait = depressed } + } + random_list = { + 10 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 90 = { + + } + } + } + } +} + +# Extort landless subject +character_event = { + id = ZE.21200 + desc = EVTDESC_ZE_21200 + picture = GFX_evt_poke_king_in_chest + + is_triggered_only = yes + + # Less upset at the cost of prestige + option = { + name = EVTOPTA_ZE_21200 + tooltip_info = diplomacy + + trigger = { + diplomacy = 15 + } + + if = { + limit = { + trait = proud + } + remove_trait = proud + } + + prestige = -250 + + event_target:extortion_target = { + opinion = { + modifier = opinion_money_stolen + who = ROOT + years = 15 + } + custom_tooltip = { + text = extort_dynasty_upset_custom_tooltip + hidden_tooltip = { + any_dynasty_member = { + limit = { + NOT = { dynasty = none } + NOT = { character = event_target:extortion_target } + } + opinion = { + modifier = disrespects_dynasty + who = ROOT + years = 15 + } + } + } + } + } + + if = { + limit = { + OR = { + trait = kind + trait = charitable + trait = just + } + NOT = { trait = depressed } + } + random_list = { + 5 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 95 = { + + } + } + } + } + + # Target + Dynasty Upset + option = { + name = EVTOPTB_ZE_21200 + + if = { + limit = { + trait = kind + } + remove_trait = kind + } + + event_target:extortion_target = { + if = { + limit = { + is_rival = ROOT + } + opinion = { + who = ROOT + modifier = opinion_evil_tyrant + years = 15 + } + } + if = { + limit = { + NOT = { is_rival = ROOT } + } + add_rival = ROOT + } + custom_tooltip = { + text = extort_dynasty_upset_custom_tooltip + hidden_tooltip = { + any_dynasty_member = { + limit = { + NOT = { dynasty = none } + NOT = { character = event_target:extortion_target } + } + opinion = { + modifier = opinion_hatred + who = ROOT + years = 15 + } + } + } + } + } + + if = { + limit = { + OR = { + trait = kind + trait = charitable + trait = just + } + NOT = { trait = depressed } + } + random_list = { + 10 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 90 = { + + } + } + } + } +} + +# Seize church assets +character_event = { + id = ZE.21300 + desc = EVTDESC_ZE_21300 + picture = GFX_evt_bribe_accepted + + is_triggered_only = yes + + # Fool clergy into thinking this is the will of god + option = { + name = EVTOPTA_ZE_21300 + tooltip_info = intrigue + + trigger = { + intrigue = 15 + } + + if = { + limit = { + trait = honest + } + remove_trait = honest + } + + add_character_modifier = { + name = annoyed_religious + duration = 730 + } + + event_target:seize_church_target = { + add_holding_modifier = { + modifier = seize_church_assets + duration = 1825 + } + holder_scope = { + opinion = { + who = ROOT + modifier = opinion_angry + years = 15 + } + } + } + + religion_head = { + opinion = { + who = ROOT + modifier = opinion_shocked + years = 15 + } + } + + if = { + limit = { + OR = { + trait = humble + trait = charitable + trait = zealous + } + NOT = { trait = depressed } + } + random_list = { + 5 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 95 = { + + } + } + } + } + + # Blaspheme thoroughly! + option = { + name = EVTOPTB_ZE_21300 + + if = { + limit = { + trait = humble + } + remove_trait = humble + } + + add_character_modifier = { + name = annoyed_religious + duration = 1460 + } + + event_target:seize_church_target = { + add_holding_modifier = { + modifier = seize_church_assets + duration = 1825 + } + + holder_scope = { + if = { + limit = { + is_rival = ROOT + } + opinion = { + who = ROOT + modifier = opinion_evil_tyrant + years = 15 + } + } + if = { + limit = { + NOT = { is_rival = ROOT } + } + add_rival = ROOT + } + } + } + + religion_head = { + opinion = { + who = ROOT + modifier = opinion_shocked + years = 15 + } + } + + if = { + limit = { + OR = { + trait = humble + trait = charitable + trait = zealous + } + NOT = { trait = depressed } + } + random_list = { + 10 = { + if = { + limit = { + trait = stressed + } + add_trait = depressed + hidden_tooltip = { character_event = { id = 38288 } } + } + if = { + limit = { + NOT = { trait = stressed } + } + add_trait = stressed + hidden_tooltip = { character_event = { id = 38282 } } + } + } + 90 = { + + } + } + } + } +} From 4e44d36a697eea19547627e8f88ba318e934caf3 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Sat, 24 Jun 2017 21:42:12 +1000 Subject: [PATCH 5/8] One last dangling reference Now it's possible to fire your Court Chaplain ever! --- .../common/job_titles/00_job_titles.txt | 223 ++++++++++++++++++ 1 file changed, 223 insertions(+) create mode 100644 After the End/common/job_titles/00_job_titles.txt diff --git a/After the End/common/job_titles/00_job_titles.txt b/After the End/common/job_titles/00_job_titles.txt new file mode 100644 index 000000000..e967123e4 --- /dev/null +++ b/After the End/common/job_titles/00_job_titles.txt @@ -0,0 +1,223 @@ +########################################## +# COUNCILLOR TITLES +########################################## + +# attribute: This attribute is added to the ruler's for governance purposes +# viceroy: This is the Viceroy title for de jure Kingdoms +# allow: conditions for the character to hold the title +# gain_effect: fires when the title is granted +# lose_effect: fires when a title is lost if dismissal_trigger evaluates to false +# The other fields are all character modifiers. + +job_chancellor = { + is_chancellor = yes + is_voter = yes + attribute = diplomacy + dignity = 0.33 + opinion_effect = 10 + + monthly_salary = 0.1 + monthly_prestige = 0.75 + + allow = { + can_be_chancellor_trigger = yes + } + dismiss_trigger = { + FROM = { + NOT = { + AND = { + has_law = succession_voting_power_1 + ROOT = { is_powerful_vassal = yes } + } + } + } + } + gain_effect = { + } + lose_effect = { + opinion = { who = FROM modifier = opinion_fired_from_council } + opinion = { who = FROM modifier = opinion_recently_fired } + } + retire_effect = { + } + + action = action_statecraft + action = action_improve_relations + action = action_fabricate_claims + action = action_clan_sentiment # Replaces Fabricate Claims for Nomads + action = action_sow_dissent + + lift_fow = yes +} + +job_marshal = { + is_marshal = yes + is_voter = yes + attribute = martial + dignity = 0.33 + opinion_effect = 10 + + monthly_salary = 0.1 + monthly_prestige = 0.75 + + allow = { + can_be_marshal_trigger = yes + } + dismiss_trigger = { + FROM = { + NOT = { + AND = { + has_law = succession_voting_power_1 + ROOT = { is_powerful_vassal = yes } + } + } + } + } + gain_effect = { + } + lose_effect = { + opinion = { who = FROM modifier = opinion_fired_from_council } + opinion = { who = FROM modifier = opinion_recently_fired } + } + retire_effect = { + } + + action = action_organize_army + action = action_assist_arrest + action = action_train_troops + action = action_train_troops_nomadic + action = action_advance_mil_tech + action = action_organize_raid # Replaces action_advance_mil_tech for Tribes + + lift_fow = yes +} + +job_treasurer = { + is_treasurer = yes + is_voter = yes + attribute = stewardship + dignity = 0.2 + opinion_effect = 10 + + monthly_salary = 0.1 + monthly_prestige = 0.75 + + allow = { + can_be_treasurer_trigger = yes + } + dismiss_trigger = { + FROM = { + NOT = { + AND = { + has_law = succession_voting_power_1 + ROOT = { is_powerful_vassal = yes } + } + } + } + } + gain_effect = { + } + lose_effect = { + opinion = { who = FROM modifier = opinion_fired_from_council } + opinion = { who = FROM modifier = opinion_recently_fired } + } + retire_effect = { + } + + action = action_administer_realm + action = action_squeeze_peasants + action = action_collect_tribute # Replaces action_squeeze_peasants for Nomads + action = action_settle_tribe # Replaces action_squeeze_peasants for Tribes + action = action_oversee_construction + action = action_advance_eco_tech + action = action_build_legend # Replaces action_advance_eco_tech for Tribes + + lift_fow = yes +} + +job_spymaster = { + is_spymaster = yes + is_voter = yes + attribute = intrigue + dignity = 0.1 + opinion_effect = 10 + + monthly_salary = 0.1 + + allow = { + can_be_spymaster_trigger = yes + } + dismiss_trigger = { + FROM = { + NOT = { + AND = { + has_law = succession_voting_power_1 + ROOT = { is_powerful_vassal = yes } + } + } + } + } + gain_effect = { + } + lose_effect = { + opinion = { who = FROM modifier = opinion_fired_from_council } + opinion = { who = FROM modifier = opinion_recently_fired } + } + retire_effect = { + } + + action = action_uncover_plots + action = action_uncover_plots_offmap # Replaces action_uncover_plots if mystics is activated. + action = action_sabotage_province + action = action_organize_spies + action = action_organize_spies_mystics + action = action_study_technology + + lift_neighbor_fow = yes +} + +job_spiritual = { + is_spiritual = yes + is_voter = yes + attribute = learning + dignity = 0.15 + opinion_effect = 10 + + monthly_salary = 0.1 + monthly_piety = 0.5 + + allow = { + can_be_spiritual_trigger = yes + } + gain_effect = { + } + lose_effect = { + opinion = { who = FROM modifier = opinion_fired_from_council } + opinion = { who = FROM modifier = opinion_recently_fired } + } + retire_effect = { + } + dismiss_trigger = { + FROM = { + #OR = { + # NOT = { religion_group = muslim } + # NOT = { religion = ROOT } + #} + NOT = { + AND = { + has_law = succession_voting_power_1 + ROOT = { is_powerful_vassal = yes } + } + } + } + } + + action = action_hunt_heretics + action = action_inquisition + action = action_advance_cul_tech + action = action_improve_rel_relations + action = action_charity + action = action_build_zeal # Tribal replacement for 'action_advance_cul_tech' + + lift_fow = yes +} From bca0de089436ba087c3e65c9fa767b86dc5ba2d4 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Sun, 25 Jun 2017 16:02:40 +1000 Subject: [PATCH 6/8] And now no Iqta laws --- .../common/laws/ze_obligation_laws.txt | 4221 +++++++++++++++++ 1 file changed, 4221 insertions(+) create mode 100644 After the End/common/laws/ze_obligation_laws.txt diff --git a/After the End/common/laws/ze_obligation_laws.txt b/After the End/common/laws/ze_obligation_laws.txt new file mode 100644 index 000000000..f43fbed47 --- /dev/null +++ b/After the End/common/laws/ze_obligation_laws.txt @@ -0,0 +1,4221 @@ +law_groups = { + tax_levy_law_feudal = { + law_type = obligations + left_value = TAX + right_value = LEVY + slider_sprite = GFX_tax_levy_slider + allowed_for_councillors = yes + } + + tax_levy_law_iqta = { + law_type = obligations + left_value = TAX + right_value = LEVY + slider_sprite = GFX_tax_levy_slider + allowed_for_councillors = yes + } + + tax_levy_law_republic = { + law_type = obligations + left_value = TAX + right_value = LEVY + slider_sprite = GFX_tax_levy_slider + allowed_for_councillors = yes + } + + tax_levy_law_theocracy = { + law_type = obligations + left_value = TAX + right_value = LEVY + slider_sprite = GFX_tax_levy_slider + allowed_for_councillors = yes + } + + tax_levy_law_tribal = { + law_type = obligations + left_value = TAX + right_value = LEVY + slider_sprite = GFX_tax_levy_slider + allowed_for_councillors = yes + } +} + +laws = { + tax_levy_law_feudal_0 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + has_law = tax_levy_law_feudal_1 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0 + castle_vassal_max_levy = -0.8 + castle_vassal_tax_modifier = 0.4 + } + + tax_levy_law_feudal_1 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_0 + has_law = tax_levy_law_feudal_2 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_0 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_2 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_0 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_2 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.1 + castle_vassal_max_levy = -0.7 + castle_vassal_tax_modifier = 0.35 + } + + tax_levy_law_feudal_2 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_1 + has_law = tax_levy_law_feudal_3 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_1 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_3 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_1 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_3 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.2 + castle_vassal_max_levy = -0.6 + castle_vassal_tax_modifier = 0.3 + } + + tax_levy_law_feudal_3 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_2 + has_law = tax_levy_law_feudal_4 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_2 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_4 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_2 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_4 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.3 + castle_vassal_max_levy = -0.5 + castle_vassal_tax_modifier = 0.25 + } + + tax_levy_law_feudal_4 = { + group = tax_levy_law_feudal + default = yes + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_3 + has_law = tax_levy_law_feudal_5 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_3 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_5 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_3 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_5 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.4 + castle_vassal_max_levy = -0.4 + castle_vassal_tax_modifier = 0.2 + } + + tax_levy_law_feudal_5 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_4 + has_law = tax_levy_law_feudal_6 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_4 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_6 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_4 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_6 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.5 + castle_vassal_max_levy = -0.3 + castle_vassal_tax_modifier = 0.15 + } + + tax_levy_law_feudal_6 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_5 + has_law = tax_levy_law_feudal_7 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_5 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_7 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_5 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_7 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_7 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.6 + castle_vassal_max_levy = -0.2 + castle_vassal_tax_modifier = 0.1 + } + + tax_levy_law_feudal_7 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_feudal_6 + has_law = tax_levy_law_feudal_8 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_feudal_6 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_feudal_8 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_feudal_6 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_feudal_8 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_8 + } + } + castle_vassal_min_levy = 0.7 + castle_vassal_max_levy = -0.1 + castle_vassal_tax_modifier = 0.05 + } + + tax_levy_law_feudal_8 = { + group = tax_levy_law_feudal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + has_law = tax_levy_law_feudal_7 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + is_feudal = yes + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_feudal_0 + revoke_law = tax_levy_law_feudal_1 + revoke_law = tax_levy_law_feudal_2 + revoke_law = tax_levy_law_feudal_3 + revoke_law = tax_levy_law_feudal_4 + revoke_law = tax_levy_law_feudal_5 + revoke_law = tax_levy_law_feudal_6 + revoke_law = tax_levy_law_feudal_7 + } + } + castle_vassal_min_levy = 0.8 + castle_vassal_max_levy = 0 + castle_vassal_tax_modifier = 0 + } + + tax_levy_law_iqta_0 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + has_law = tax_levy_law_iqta_1 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0 + castle_vassal_max_levy = -0.85 + castle_vassal_tax_modifier = 0.45 + } + + tax_levy_law_iqta_1 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_0 + has_law = tax_levy_law_iqta_2 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_0 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_2 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_0 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_2 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.05 + castle_vassal_max_levy = -0.75 + castle_vassal_tax_modifier = 0.4 + } + + tax_levy_law_iqta_2 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_1 + has_law = tax_levy_law_iqta_3 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_1 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_3 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_1 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_3 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.15 + castle_vassal_max_levy = -0.65 + castle_vassal_tax_modifier = 0.35 + } + + tax_levy_law_iqta_3 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_2 + has_law = tax_levy_law_iqta_4 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_2 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_4 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_2 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_4 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.25 + castle_vassal_max_levy = -0.55 + castle_vassal_tax_modifier = 0.3 + } + + tax_levy_law_iqta_4 = { + group = tax_levy_law_iqta + default = yes + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_3 + has_law = tax_levy_law_iqta_5 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_3 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_5 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_3 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_5 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.35 + castle_vassal_max_levy = -0.45 + castle_vassal_tax_modifier = 0.25 + } + + tax_levy_law_iqta_5 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_4 + has_law = tax_levy_law_iqta_6 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_4 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_6 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_4 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_6 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.45 + castle_vassal_max_levy = -0.35 + castle_vassal_tax_modifier = 0.2 + } + + tax_levy_law_iqta_6 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_5 + has_law = tax_levy_law_iqta_7 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_5 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_7 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_5 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_7 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.55 + castle_vassal_max_levy = -0.25 + castle_vassal_tax_modifier = 0.15 + } + + tax_levy_law_iqta_7 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + OR = { + has_law = tax_levy_law_iqta_6 + has_law = tax_levy_law_iqta_8 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_iqta_6 + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_iqta_8 + holder_scope = { + is_feudal = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_iqta_6 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_iqta_8 + } + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.65 + castle_vassal_max_levy = -0.15 + castle_vassal_tax_modifier = 0.1 + } + + tax_levy_law_iqta_8 = { + group = tax_levy_law_iqta + + potential = { + always = no + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #holder_scope = { religion_group = muslim } + } + allow = { + has_law = tax_levy_law_iqta_7 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + is_feudal = yes + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_feudal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_iqta_0 + revoke_law = tax_levy_law_iqta_1 + revoke_law = tax_levy_law_iqta_2 + revoke_law = tax_levy_law_iqta_3 + revoke_law = tax_levy_law_iqta_4 + revoke_law = tax_levy_law_iqta_5 + revoke_law = tax_levy_law_iqta_6 + revoke_law = tax_levy_law_iqta_7 + } + } + castle_vassal_min_levy = 0.75 + castle_vassal_max_levy = -0.05 + castle_vassal_tax_modifier = 0.05 + } + + tax_levy_law_republic_0 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + has_law = tax_levy_law_republic_1 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0 + city_vassal_max_levy = -1 + city_vassal_tax_modifier = 0.5 + } + + tax_levy_law_republic_1 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_0 + has_law = tax_levy_law_republic_2 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_0 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_2 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_0 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_2 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0 + city_vassal_max_levy = -0.8 + city_vassal_tax_modifier = 0.45 + } + + tax_levy_law_republic_2 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_1 + has_law = tax_levy_law_republic_3 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_1 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_3 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_1 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_3 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.1 + city_vassal_max_levy = -0.7 + city_vassal_tax_modifier = 0.4 + } + + tax_levy_law_republic_3 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_2 + has_law = tax_levy_law_republic_4 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_2 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_4 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_2 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_4 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.2 + city_vassal_max_levy = -0.6 + city_vassal_tax_modifier = 0.35 + } + + tax_levy_law_republic_4 = { + group = tax_levy_law_republic + default = yes + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_3 + has_law = tax_levy_law_republic_5 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_3 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_5 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_3 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_5 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.3 + city_vassal_max_levy = -0.5 + city_vassal_tax_modifier = 0.3 + } + + tax_levy_law_republic_5 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_4 + has_law = tax_levy_law_republic_6 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_4 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_6 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_4 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_6 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.4 + city_vassal_max_levy = -0.4 + city_vassal_tax_modifier = 0.25 + } + + tax_levy_law_republic_6 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_5 + has_law = tax_levy_law_republic_7 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_5 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_7 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_5 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_7 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_7 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.5 + city_vassal_max_levy = -0.3 + city_vassal_tax_modifier = 0.2 + } + + tax_levy_law_republic_7 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_republic_6 + has_law = tax_levy_law_republic_8 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + OR = { + AND = { + has_law = tax_levy_law_republic_6 + holder_scope = { + OR = { + is_feudal = yes + is_nomadic = yes + } + } + } + AND = { + has_law = tax_levy_law_republic_8 + holder_scope = { + is_republic = yes + } + } + NOT = { + holder_scope = { + OR = { + is_republic = yes + is_feudal = yes + is_nomadic = yes + } + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_republic_6 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_republic_8 + } + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_8 + } + } + city_vassal_min_levy = 0.6 + city_vassal_max_levy = -0.2 + city_vassal_tax_modifier = 0.15 + } + + tax_levy_law_republic_8 = { + group = tax_levy_law_republic + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + has_law = tax_levy_law_republic_7 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NOT = { + holder_scope = { + is_republic = yes + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_republic = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_republic_0 + revoke_law = tax_levy_law_republic_1 + revoke_law = tax_levy_law_republic_2 + revoke_law = tax_levy_law_republic_3 + revoke_law = tax_levy_law_republic_4 + revoke_law = tax_levy_law_republic_5 + revoke_law = tax_levy_law_republic_6 + revoke_law = tax_levy_law_republic_7 + } + } + city_vassal_min_levy = 0.7 + city_vassal_max_levy = -0.1 + city_vassal_tax_modifier = 0.10 + } + + tax_levy_law_theocracy_0 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + has_law = tax_levy_law_theocracy_1 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0 + temple_vassal_max_levy = -1 + temple_vassal_tax_modifier = 0.7 + } + + tax_levy_law_theocracy_1 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_0 + has_law = tax_levy_law_theocracy_2 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_2 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_0 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_2 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0 + temple_vassal_max_levy = -0.9 + temple_vassal_tax_modifier = 0.6 + } + + tax_levy_law_theocracy_2 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_1 + has_law = tax_levy_law_theocracy_3 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_3 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_1 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_3 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0 + temple_vassal_max_levy = -0.8 + temple_vassal_tax_modifier = 0.5 + } + + tax_levy_law_theocracy_3 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_2 + has_law = tax_levy_law_theocracy_4 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_4 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_2 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_4 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0.1 + temple_vassal_max_levy = -0.7 + temple_vassal_tax_modifier = 0.4 + } + + tax_levy_law_theocracy_4 = { + group = tax_levy_law_theocracy + default = yes + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_3 + has_law = tax_levy_law_theocracy_5 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_5 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0.2 + temple_vassal_max_levy = -0.6 + temple_vassal_tax_modifier = 0.3 + } + + tax_levy_law_theocracy_5 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_4 + has_law = tax_levy_law_theocracy_6 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_6 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_4 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_6 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0.3 + temple_vassal_max_levy = -0.5 + temple_vassal_tax_modifier = 0.2 + } + + tax_levy_law_theocracy_6 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_5 + has_law = tax_levy_law_theocracy_7 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_7 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_5 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_7 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_7 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0.4 + temple_vassal_max_levy = -0.4 + temple_vassal_tax_modifier = 0.1 + } + + tax_levy_law_theocracy_7 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + OR = { + has_law = tax_levy_law_theocracy_6 + has_law = tax_levy_law_theocracy_8 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_theocracy_8 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_theocracy_6 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_theocracy_8 + } + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_8 + } + } + temple_vassal_min_levy = 0.5 + temple_vassal_max_levy = -0.3 + temple_vassal_tax_modifier = 0 + } + + tax_levy_law_theocracy_8 = { + group = tax_levy_law_theocracy + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + #NOT = { holder_scope = { religion_group = muslim } } + } + allow = { + has_law = tax_levy_law_theocracy_7 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0 + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_theocracy_0 + revoke_law = tax_levy_law_theocracy_1 + revoke_law = tax_levy_law_theocracy_2 + revoke_law = tax_levy_law_theocracy_3 + revoke_law = tax_levy_law_theocracy_4 + revoke_law = tax_levy_law_theocracy_5 + revoke_law = tax_levy_law_theocracy_6 + revoke_law = tax_levy_law_theocracy_7 + } + } + temple_vassal_min_levy = 0.6 + temple_vassal_max_levy = -0.2 + temple_vassal_tax_modifier = 0 + } + + tax_levy_law_tribal_0 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + has_law = tax_levy_law_tribal_1 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0 + tribal_vassal_max_levy = -1 + tribal_vassal_tax_modifier = 0.4 + } + + tax_levy_law_tribal_1 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_0 + has_law = tax_levy_law_tribal_2 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_2 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_0 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_2 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0 + tribal_vassal_max_levy = -0.9 + tribal_vassal_tax_modifier = 0.35 + } + + tax_levy_law_tribal_2 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_1 + has_law = tax_levy_law_tribal_3 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_3 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_1 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_3 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0 + tribal_vassal_max_levy = -0.8 + tribal_vassal_tax_modifier = 0.3 + } + + tax_levy_law_tribal_3 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_2 + has_law = tax_levy_law_tribal_4 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_4 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_2 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_4 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0.1 + tribal_vassal_max_levy = -0.7 + tribal_vassal_tax_modifier = 0.25 + } + + tax_levy_law_tribal_4 = { + group = tax_levy_law_tribal + default = yes + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_3 + has_law = tax_levy_law_tribal_5 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_5 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_theocracy = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0.2 + tribal_vassal_max_levy = -0.6 + tribal_vassal_tax_modifier = 0.2 + } + + tax_levy_law_tribal_5 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_4 + has_law = tax_levy_law_tribal_6 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_6 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_4 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_6 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0.3 + tribal_vassal_max_levy = -0.5 + tribal_vassal_tax_modifier = 0.15 + } + + tax_levy_law_tribal_6 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_5 + has_law = tax_levy_law_tribal_7 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_7 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_5 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_7 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_7 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0.4 + tribal_vassal_max_levy = -0.4 + tribal_vassal_tax_modifier = 0.1 + } + + tax_levy_law_tribal_7 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + OR = { + has_law = tax_levy_law_tribal_6 + has_law = tax_levy_law_tribal_8 + } + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0.01 + modifier = { + factor = 0 + NAND = { + holder_scope = { + OR = { + is_republic = yes + is_nomadic = yes + } + } + has_law = tax_levy_law_tribal_8 + } + } + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + if = { + limit = { + has_law = tax_levy_law_tribal_6 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + } + if = { + limit = { + has_law = tax_levy_law_tribal_8 + } + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_likes_new_obligation_law + years = 5 + } + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_8 + } + } + tribal_vassal_min_levy = 0.5 + tribal_vassal_max_levy = -0.3 + tribal_vassal_tax_modifier = 0.05 + } + + tax_levy_law_tribal_8 = { + group = tax_levy_law_tribal + + potential = { + has_dlc = "Zeus" + OR = { + NOT = { tier = baron } + holder_scope = { is_patrician = yes } + } + } + allow = { + has_law = tax_levy_law_tribal_7 + } + revoke_allowed = { + always = no + } + ai_will_do = { + factor = 0 + } + ai_will_revoke = { + factor = 0 + } + effect = { + hidden_tooltip = { + holder_scope = { + any_vassal = { + limit = { + is_tribal = yes + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_dislikes_new_obligation_law } } + NOT = { has_opinion_modifier = { who = ROOT modifier = opinion_likes_new_obligation_law } } + } + opinion = { + who = ROOT + modifier = opinion_dislikes_new_obligation_law + years = 5 + } + } + } + revoke_law = tax_levy_law_tribal_0 + revoke_law = tax_levy_law_tribal_1 + revoke_law = tax_levy_law_tribal_2 + revoke_law = tax_levy_law_tribal_3 + revoke_law = tax_levy_law_tribal_4 + revoke_law = tax_levy_law_tribal_5 + revoke_law = tax_levy_law_tribal_6 + revoke_law = tax_levy_law_tribal_7 + } + } + tribal_vassal_min_levy = 0.6 + tribal_vassal_max_levy = -0.2 + tribal_vassal_tax_modifier = 0 + } +} \ No newline at end of file From 971c37faccbb6b209be1b09a6a9bc8e626d52d64 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Fri, 30 Jun 2017 17:00:34 +1000 Subject: [PATCH 7/8] Nonexistant titles are also a problem Spear of Destiny and Holy Grail are now found in Washington and Baltimore respectively; replace with more setting-appropriate relics eventually. Rise of the Hansa event chain removed entirely. Merchant republic "exotic bride" event now produces a genuinely exotic bride. --- After the End/events/crusade_events.txt | 46 +- .../events/republic_trade_events.txt | 2276 +++++++++++++++++ .../localisation/00_vanilla_overrides.csv | 12 + 3 files changed, 2331 insertions(+), 3 deletions(-) create mode 100644 After the End/events/republic_trade_events.txt diff --git a/After the End/events/crusade_events.txt b/After the End/events/crusade_events.txt index 6b8a06587..7cd71d9a8 100644 --- a/After the End/events/crusade_events.txt +++ b/After the End/events/crusade_events.txt @@ -412,7 +412,7 @@ character_event = { is_triggered_only = yes trigger = { - FROM = { title = b_jerusalem } + FROM = { title = b_washington_DC } OR = { any_war = { using_cb = crusade @@ -435,6 +435,12 @@ character_event = { option = { name = "EVTOPTA8340" prestige = 100 + if = { + limit = { has_dlc = Mystics } + add_artifact = spear_of_destiny + new_artifact = { + set_creation_date = 1.1.1 + } } } @@ -452,7 +458,7 @@ character_event = { religion = catholic trigger = { - FROM = { title = b_syrcaesarea } + FROM = { title = b_baltimore_MD } OR = { any_war = { using_cb = crusade @@ -475,6 +481,40 @@ character_event = { option = { name = "EVTOPTA8342" prestige = 200 + if = { + limit = { has_dlc = Mystics } + + if = { + limit = { + OR = { + has_game_rule = { + name = supernatural_events + value = on + } + has_game_rule = { + name = supernatural_events + value = unrestricted + } + } + } + add_artifact = holy_grail + new_artifact = { + set_creation_date = 1.1.1 + } + } + if = { + limit = { + has_game_rule = { + name = supernatural_events + value = off + } + } + add_artifact = holy_chalice + new_artifact = { + set_creation_date = 1.1.1 + } + } + } } } @@ -493,7 +533,7 @@ character_event = { is_triggered_only = yes trigger = { - FROM = { title = b_jerusalem } + FROM = { title = b_washington_DC } OR = { any_war = { using_cb = crusade diff --git a/After the End/events/republic_trade_events.txt b/After the End/events/republic_trade_events.txt new file mode 100644 index 000000000..5ec191fc7 --- /dev/null +++ b/After the End/events/republic_trade_events.txt @@ -0,0 +1,2276 @@ +################################# +# +# THE REPUBLIC +# - Trade Events +# +################################# + +# Written by Henrik Eklund + +namespace = REP + +### Shipping Events + +# Thieving Captain (AI) +character_event = { + id = REP.1 + hide_window = yes + + ai = yes + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + liege = { is_merchant_republic = yes } + OR = { + liege = { ai = no } + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + } + + mean_time_to_happen = { + months = 1820 + } + + immediate = { + if = { + limit = { + liege = { ai = no } + } + liege = { + character_event = { id = REP.2 } + } + } + if = { + limit = { + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + liege = { + random_vassal = { + limit = { + is_patrician = yes + ai = no + } + character_event = { id = REP.2 } + } + } + } + } +} + +# Thieving Captain (Player) +character_event = { + id = REP.2 + desc = EVTDESC_REP_002 + picture = GFX_evt_trade_post_republic + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_002 + wealth = -50 + } +} + +# Spoiled Cargo +character_event = { + id = REP.3 + desc = EVTDESC_REP_003 + picture = GFX_evt_merchant_ship_at_sea_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1420 + } + + option = { + name = EVTOPTA_REP_003 + wealth = -50 + } +} + +# Ship Lost in Storm (AI) +character_event = { + id = REP.4 + hide_window = yes + + ai = yes + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + liege = { is_merchant_republic = yes } + OR = { + liege = { ai = no } + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + } + + mean_time_to_happen = { + months = 1820 + } + + immediate = { + if = { + limit = { + liege = { ai = no } + } + liege = { + character_event = { id = REP.5 } + } + } + if = { + limit = { + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + liege = { + random_vassal = { + limit = { + is_patrician = yes + ai = no + } + character_event = { id = REP.5 } + } + } + } + } +} + +# Ship Lost in Storm (Player) +character_event = { + id = REP.5 + desc = EVTDESC_REP_005 + picture = GFX_evt_bad_news + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_005 + wealth = -50 + } +} + +# Pirates Attack Ships +character_event = { + id = REP.6 + desc = EVTDESC_REP_006 + picture = GFX_evt_merchant_ship_at_sea_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1420 + } + + option = { + name = EVTOPTA_REP_006 + wealth = -50 + } +} + +# Pirates Captured +character_event = { + id = REP.7 + desc = EVTDESC_REP_007 + picture = GFX_evt_merchant_ship_at_sea_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_007 + wealth = 100 + } +} + +# Valuable Spice Obtained +character_event = { + id = REP.8 + desc = EVTDESC_REP_008 + picture = GFX_evt_busy_trading_dock_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + in_revolt = no + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_008 + wealth = 100 + } +} + +# New Markets Discovered +character_event = { + id = REP.9 + desc = EVTDESC_REP_009 + picture = GFX_evt_trade_post_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_009 + wealth = 100 + } +} + +# Lost Ship Appears +character_event = { + id = REP.10 + desc = EVTDESC_REP_010 + picture = GFX_evt_merchant_ship_at_sea_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_010 + wealth = 100 + } +} + +# Dockworkers Strike +character_event = { + id = REP.11 + desc = EVTDESC_REP_011 + picture = GFX_evt_busy_trading_dock_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1420 + } + + option = { + name = EVTOPTA_REP_011 + wealth = -50 + } +} + +# Warehouse Fire +character_event = { + id = REP.12 + desc = EVTDESC_REP_012 + picture = GFX_evt_burning_house + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1420 + } + + option = { + name = EVTOPTA_REP_012 + wealth = -50 + } +} + +# Noble Books Passage (AI) +character_event = { + id = REP.13 + hide_window = yes + + ai = yes + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + liege = { is_merchant_republic = yes } + OR = { + liege = { ai = no } + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + } + + mean_time_to_happen = { + months = 1820 + } + + immediate = { + if = { + limit = { + liege = { ai = no } + } + liege = { + character_event = { id = REP.14 } + } + } + if = { + limit = { + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + liege = { + random_vassal = { + limit = { + is_patrician = yes + ai = no + } + character_event = { id = REP.14 } + } + } + } + } +} + +# Noble Books Passage (Player) +character_event = { + id = REP.14 + desc = EVTDESC_REP_014 + picture = GFX_evt_trade_post_republic + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_014 + wealth = 100 + } +} + +# Efficient Dockworkers +character_event = { + id = REP.15 + desc = EVTDESC_REP_015 + picture = GFX_evt_busy_trading_dock_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_015 + wealth = 100 + } +} + +# Treasure Found! +character_event = { + id = REP.16 + desc = EVTDESC_REP_016 + picture = GFX_evt_trade_post_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_016 + wealth = 100 + } +} + +# Improved Charts +character_event = { + id = REP.17 + desc = EVTDESC_REP_017 + picture = GFX_evt_merchant_ship_at_sea_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1220 + } + + option = { + name = EVTOPTA_REP_017 + wealth = 100 + } +} + +# Captain Rams Pier +character_event = { + id = REP.18 + desc = EVTDESC_REP_018 + picture = GFX_evt_busy_trading_dock_republic + + ai = no + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + } + + mean_time_to_happen = { + months = 1420 + } + + option = { + name = EVTOPTA_REP_018 + trigger = { + NOT = { trait = drunkard } + } + wealth = -50 + } + option = { + name = EVTOPTB_REP_018 + tooltip_info = drunkard + trigger = { + trait = drunkard + } + wealth = -50 + } +} + +# Mutiny! (AI) +character_event = { + id = REP.19 + hide_window = yes + + ai = yes + is_patrician = yes + + trigger = { + has_dlc = "The Republic" + liege = { is_merchant_republic = yes } + OR = { + liege = { ai = no } + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + } + + mean_time_to_happen = { + months = 1820 + } + + immediate = { + if = { + limit = { + liege = { ai = no } + } + liege = { + character_event = { id = REP.20 } + } + } + if = { + limit = { + liege = { + any_vassal = { + is_patrician = yes + ai = no + } + } + } + liege = { + random_vassal = { + limit = { + is_patrician = yes + ai = no + } + character_event = { id = REP.20 } + } + } + } + } +} + +# Mutiny! (Player) +character_event = { + id = REP.20 + desc = EVTDESC_REP_020 + picture = GFX_evt_merchant_ship_at_sea_republic + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_020 + wealth = -50 + } +} + +### Seize Trade Post Plot + +# Decision Fired +character_event = { + id = REP.300 + desc = EVTDESC_REP_300 + picture = GFX_evt_trade_post_republic + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_300 + trigger = { + plot_power = 1.0 + NOT = { plot_power = 1.5 } + } + + wealth = -100 + custom_tooltip = { + text = EVTOPTA_REP_300_tooltip + hidden_tooltip = { + plot_target_char = { + character_event = { id = REP.302 days = 5 } + } + } + } + } + option = { + name = EVTOPTB_REP_300 + trigger = { + plot_power = 1.5 + } + + wealth = -50 + custom_tooltip = { + text = EVTOPTB_REP_300_tooltip + hidden_tooltip = { + plot_target_char = { + character_event = { id = REP.308 days = 5 } + } + } + } + } + option = { + name = EVTOPTC_REP_300 + trigger = { + NOT = { plot_power = 1.0 } + } + + wealth = -200 + custom_tooltip = { + text = EVTOPTC_REP_300_tooltip + hidden_tooltip = { + plot_target_char = { + character_event = { id = REP.301 days = 5 } + } + } + } + } + option = { + name = EVTOPTE_REP_300 + trigger = { + is_merchant_republic = no + plot_target_char = { + is_merchant_republic = no + num_of_trade_post_diff = { + character = ROOT + value = 10 + } + } + } + custom_tooltip = { + text = EVTOPTE_REP_300_tooltip + hidden_tooltip = { + liege = { + letter_event = { id = REP.310 days = 5 } + } + } + } + } + option = { + name = EVTOPTD_REP_300 + custom_tooltip = { text = EVTOPTD_REP_300_tooltip } + cancel_plot = plot_seize_trade_post + clr_character_flag = plot_seize_trade_post_decision_taken + } +} + +# Trade Post Owner Informed Of Bribe +character_event = { + id = REP.301 + desc = EVTDESC_REP_301 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_301 + + wealth = -250 + custom_tooltip = { + text = EVTOPTA_REP_301_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.303 days = 5 } + } + } + } + } + option = { + name = EVTOPTB_REP_301 + + custom_tooltip = { + text = EVTOPTB_REP_301_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.306 days = 5 } + } + } + } + } +} + +# Trade Post Owner Informed Of Plot Support +character_event = { + id = REP.302 + desc = EVTDESC_REP_302 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_302 + + wealth = -250 + custom_tooltip = { + text = EVTOPTA_REP_302_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.303 days = 5 } + } + } + } + } + option = { + name = EVTOPTB_REP_302 + + custom_tooltip = { + text = EVTOPTB_REP_302_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.306 days = 5 } + } + } + } + } +} + +# Plotter Informed Of Bribe +character_event = { + id = REP.303 + desc = EVTDESC_REP_303 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_303 + + wealth = -300 + custom_tooltip = { + text = EVTOPTA_REP_303_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.304 days = 5 } + } + } + } + } + option = { + name = EVTOPTB_REP_303 + cancel_plot = plot_seize_trade_post + clr_character_flag = plot_seize_trade_post_decision_taken + + custom_tooltip = { + text = EVTOPTB_REP_303_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.307 days = 5 } + } + } + } + } +} + +# Owner Informed Of Counter-Bribe +character_event = { + id = REP.304 + desc = EVTDESC_REP_304 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_304 + + wealth = -350 + custom_tooltip = { + text = EVTOPTA_REP_304_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.305 days = 5 } + } + } + } + } + option = { + name = EVTOPTB_REP_304 + + custom_tooltip = { + text = EVTOPTB_REP_302_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.306 days = 5 } + } + } + } + } +} + +# Plotter Informed He Has Been Outbid +character_event = { + id = REP.305 + desc = EVTDESC_REP_305 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_305 + cancel_plot = plot_seize_trade_post + clr_character_flag = plot_seize_trade_post_decision_taken + + prestige = -50 + custom_tooltip = { + text = EVTOPTB_REP_303_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.307 days = 5 } + } + } + } + } +} + +# Victorious Plotter Informed About Success +character_event = { + id = REP.306 + desc = EVTDESC_REP_306 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_306 + plot_target_province = { + seize_trade_post = ROOT + } + clr_character_flag = plot_seize_trade_post_decision_taken + FROM = { + opinion = { + who = ROOT + modifier = opinion_seized_tp + months = 60 + } + } + } +} + +# Victorious Owner Informed About Success +character_event = { + id = REP.307 + desc = EVTDESC_REP_306 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_306 + prestige = 50 + } +} + +# Trade Post Owner Informed Of Overwhelming Plot Support +character_event = { + id = REP.308 + desc = EVTDESC_REP_308 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_308 + + custom_tooltip = { + text = EVTOPTB_REP_306_tooltip + hidden_tooltip = { + FROM = { + character_event = { id = REP.306 days = 5 } + } + } + } + } +} + +# Plotter goes to Doge +letter_event = { + id = REP.310 + desc = EVTDESC_REP_310 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_310 + ai_chance = { + factor = 1 + modifier = { + factor = 1.5 + opinion = { who = FROM value = 25 } + } + modifier = { + factor = 2 + opinion = { who = FROM value = 50 } + } + modifier = { + factor = 3 + opinion = { who = FROM value = 75 } + } + modifier = { + factor = 0 + NOT = { opinion = { who = FROM value = 0 } } + } + } + FROM = { + plot_target_char = { + letter_event = { id = REP.311 days = 5 tooltip = EVTTOOLTIPREP.311 } + opinion = { + who = ROOT + modifier = opinion_disgruntled + months = 60 + } + } + } + FROM = { + letter_event = { id = REP.313 days = 5 tooltip = EVTTOOLTIPREP.311 } + opinion = { + who = ROOT + modifier = opinion_glad + } + } + } + option = { + name = EVTOPTB_REP_310 + ai_chance = { + factor = 1 + modifier = { + factor = 2 + NOT = { opinion = { who = FROM value = 10 } } + } + modifier = { + factor = 0 + opinion = { who = FROM value = 90 } + } + } + FROM = { + letter_event = { id = REP.312 days = 5 tooltip = EVTTOOLTIPREP.313 } + opinion = { + who = ROOT + modifier = opinion_disgruntled + months = 60 + } + } + } +} + +# Owner Told of Doge's Support +letter_event = { + id = REP.311 + desc = EVTDESC_REP_311 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_311 + prestige = -30 + } +} + +# Plotter Told Doge Refuses Support +letter_event = { + id = REP.312 + desc = EVTDESC_REP_312 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_312 + cancel_plot = plot_seize_trade_post + prestige = -50 + clr_character_flag = plot_seize_trade_post_decision_taken + } +} + +# Plotter Informed of Doge's Support +letter_event = { + id = REP.313 + desc = EVTDESC_REP_313 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_313 + clr_character_flag = plot_seize_trade_post_decision_taken + plot_target_char = { + opinion = { + who = ROOT + modifier = opinion_seized_tp + months = 60 + } + } + plot_target_province = { + seize_trade_post = ROOT + } + } +} + +### Dynastic Marriage Events + +# Family member marries burgher daughter (AI) +character_event = { + id = REP.400 + hide_window = yes + + ai = yes + capable_only = yes + prisoner = no + min_age = 18 + only_men = yes + is_married = no + + trigger = { + NOT = { has_character_flag = getting_married } + is_betrothed = no + is_primary_heir = no + is_pretender = no + is_theocracy = no + is_priest = no + NOR = { + trait = chaste + trait = monk + } + liege = { + NOT = { any_child = { character = ROOT } } + is_patrician = yes + dynasty = ROOT + } + } + + mean_time_to_happen = { + months = 210 + } + + immediate = { + set_character_flag = getting_married + if = { + limit = { + age = 18 + NOT = { age = 30 } + } + liege = { + character_event = { id = REP.401 } + } + } + if = { + limit = { + age = 30 + NOT = { age = 45 } + } + liege = { + character_event = { id = REP.402 } + } + } + if = { + limit = { + age = 45 + } + liege = { + character_event = { id = REP.403 } + } + } + } +} + +# Family member marries burgher daughter (18 - 29) +character_event = { + id = REP.401 + desc = EVTDESC_REP_401 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_401 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 24 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + clr_character_flag = getting_married + } + } +} + +# Family member marries burgher daughter (30 - 44) +character_event = { + id = REP.402 + desc = EVTDESC_REP_401 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_401 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 35 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + clr_character_flag = getting_married + } + } +} + +# Family member marries burgher daughter (44+) +character_event = { + id = REP.403 + desc = EVTDESC_REP_401 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_401 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 48 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + clr_character_flag = getting_married + } + } +} + +# Family member marries bar wench/peasant girl/rich girl (AI) +character_event = { + id = REP.404 + hide_window = yes + + ai = yes + capable_only = yes + prisoner = no + min_age = 18 + max_age = 40 + only_men = yes + is_married = no + + trigger = { + NOT = { has_character_flag = getting_married } + is_betrothed = no + is_primary_heir = no + is_pretender = no + is_theocracy = no + is_priest = no + NOT = { trait = chaste } + liege = { + NOT = { any_child = { character = ROOT } } + is_patrician = yes + dynasty = ROOT + } + } + + mean_time_to_happen = { + months = 300 + } + + immediate = { + set_character_flag = getting_married + random_list = { + 33 = { + liege = { + character_event = { id = REP.405 } + } + } + 33 = { + liege = { + character_event = { id = REP.406 } + } + } + 33 = { + liege = { + character_event = { id = REP.407 } + } + } + } + } +} + +# Family member marries bar wench +character_event = { + id = REP.405 + desc = EVTDESC_REP_405 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_405 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 25 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + clr_character_flag = getting_married + } + } +} + +# Family member marries peasant girl +character_event = { + id = REP.406 + desc = EVTDESC_REP_406 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_406 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 24 + religion = FROM + culture = FROM + trait = fair + } + new_character = { + add_spouse = PREV + } + clr_character_flag = getting_married + } + } +} + +# Family member marries rich girl +character_event = { + id = REP.407 + desc = EVTDESC_REP_407 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_407 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 28 + religion = FROM + culture = FROM + trait = ugly + } + new_character = { + add_spouse = PREV + } + wealth = 100 + clr_character_flag = getting_married + } + } +} + +# Old family member marries young woman (AI) +character_event = { + id = REP.408 + hide_window = yes + + ai = yes + capable_only = yes + prisoner = no + min_age = 42 + only_men = yes + is_married = no + + trigger = { + is_betrothed = no + is_primary_heir = no + is_pretender = no + is_theocracy = no + is_priest = no + NOT = { trait = chaste } + liege = { + NOT = { any_child = { character = ROOT } } + is_patrician = yes + dynasty = ROOT + } + } + + mean_time_to_happen = { + months = 450 + } + + immediate = { + liege = { + character_event = { id = REP.409 } + } + } +} + +# Old family member marries young woman +character_event = { + id = REP.409 + desc = EVTDESC_REP_409 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_409 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 20 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + } + } +} + +# Young family member marries older woman (AI) +character_event = { + id = REP.410 + hide_window = yes + + ai = yes + capable_only = yes + prisoner = no + min_age = 18 + max_age = 26 + only_men = yes + is_married = no + + trigger = { + is_betrothed = no + is_primary_heir = no + is_pretender = no + is_theocracy = no + is_priest = no + NOT = { trait = chaste } + liege = { + NOT = { any_child = { character = ROOT } } + is_patrician = yes + dynasty = ROOT + } + } + + mean_time_to_happen = { + months = 450 + } + + immediate = { + liege = { + character_event = { id = REP.411 } + } + } +} + +# Young family member marries older woman +character_event = { + id = REP.411 + desc = EVTDESC_REP_411 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_411 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 41 + religion = FROM + culture = FROM + } + new_character = { + add_spouse = PREV + } + } + } +} + +# Family member marries foreign woman (AI) +character_event = { + id = REP.412 + hide_window = yes + + ai = yes + capable_only = yes + prisoner = no + min_age = 18 + only_men = yes + is_married = no + + trigger = { + is_betrothed = no + is_primary_heir = no + is_pretender = no + is_theocracy = no + is_priest = no + NOT = { trait = chaste } + can_marry = yes + NOT = { culture = nigerian } + NOT = { culture = yuehai } + liege = { + NOT = { any_child = { character = ROOT } } + NOT = { culture = nigerian } + NOT = { culture = yuehai } + is_patrician = yes + dynasty = ROOT + } + } + + mean_time_to_happen = { + months = 450 + } + + immediate = { + liege = { + if = { + limit = { + NOT = { capital_scope = { region = custom_pacific } } + } + character_event = { id = REP.413 } + } + if = { + limit = { + capital_scope = { region = custom_pacific } + } + character_event = { id = REP.414 } + } + } + } +} + +# Family member marries foreign woman +character_event = { + id = REP.413 + desc = EVTDESC_REP_413 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_413 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 26 + religion = FROM + culture = nigerian + } + new_character = { + add_spouse = PREV + } + } + } +} + +# Family member marries foreign woman (Pacific) +character_event = { + id = REP.414 + desc = EVTDESC_REP_413 + picture = GFX_evt_marriage + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_413 + FROM = { + create_character = { + random_traits = yes + dynasty = NONE + female = yes + age = 26 + religion = FROM + culture = yuehai + } + new_character = { + add_spouse = PREV + } + } + } +} + +### Trade Post Decisions + +# Doge approached by Patrician +letter_event = { + id = REP.500 + desc = EVTDESC_REP_500 + + is_triggered_only = yes + + immediate = { + if = { + limit = { + FROM = { num_of_trade_posts = 1 } + any_vassal = { + is_patrician = yes + NOT = { character = FROM } + num_of_trade_post_diff = { + character = FROM + value = 10 + } + } + } + random_vassal = { + limit = { + is_patrician = yes + NOT = { character = FROM } + num_of_trade_post_diff = { + character = FROM + value = 10 + } + } + set_character_flag = target_patrician + } + } + if = { + limit = { + FROM = { NOT = { num_of_trade_posts = 1 } } + any_vassal = { + is_patrician = yes + num_of_trade_posts = 10 + } + } + random_vassal = { + limit = { + is_patrician = yes + num_of_trade_posts = 10 + } + set_character_flag = target_patrician + } + } + FROM = { set_character_flag = poor_patrician } + } + + option = { + name = EVTOPTA_REP_500 + FROM = { + letter_event = { id = REP.501 } + clr_character_flag = poor_patrician + } + hidden_tooltip = { + any_vassal = { + limit = { has_character_flag = target_patrician } + clr_character_flag = target_patrician + } + } + } + option = { + name = EVTOPTB_REP_500 + ai_chance = { factor = 100 } + any_vassal = { + limit = { has_character_flag = target_patrician } + letter_event = { id = REP.502 tooltip = EVTTOOLTIP_REP_502 } + } + } +} + +# Doge refuses request +letter_event = { + id = REP.501 + desc = EVTDESC_REP_501 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_501 + prestige = -100 + } +} + +# Doge makes request to wealthy patrician +letter_event = { + id = REP.502 + desc = EVTDESC_REP_502 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_502 + FROM = { + letter_event = { id = REP.503 tooltip = EVTTOOLTIP_REP_503 } + } + tooltip = { + random_trade_post = { + seize_trade_post = FROMFROM + any_neighbor_province = { + limit = { + trade_post_owner = { character = ROOT } + } + seize_trade_post = FROMFROM + } + } + } + } + option = { + name = EVTOPTB_REP_510 + tooltip_info = stewardship + trigger = { + stewardship = 10 + } + FROM = { + letter_event = { id = REP.505 tooltip = EVTTOOLTIP_REP_512 } + } + } + option = { + name = EVTOPTC_REP_510 + tooltip_info = diplomacy + trigger = { + diplomacy = 10 + } + FROM = { + letter_event = { id = REP.506 tooltip = EVTTOOLTIP_REP_513 } + } + } + option = { + name = EVTOPTD_REP_510 + tooltip_info = intrigue + trigger = { + intrigue = 10 + } + FROM = { + letter_event = { id = REP.507 tooltip = EVTTOOLTIP_REP_514 } + } + } +} + +# Patrician grants Doge's request +letter_event = { + id = REP.503 + desc = EVTDESC_REP_503 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_503 + FROM = { + opinion = { + who = ROOT + modifier = opinion_disgruntled + months = 60 + } + } + any_vassal = { + limit = { has_character_flag = poor_patrician } + letter_event = { id = REP.504 tooltip = EVTTOOLTIP_REP_504 } + } + } +} + +# Doge informs original Patrician that request has been granted +letter_event = { + id = REP.504 + desc = EVTDESC_REP_504 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_504 + clr_character_flag = poor_patrician + FROMFROM = { + opinion = { + who = ROOT + modifier = opinion_angry + months = 60 + } + clr_character_flag = target_patrician + random_trade_post = { + seize_trade_post = ROOT + any_neighbor_province = { + limit = { + trade_post_owner = { character = PREVPREVPREV } + } + seize_trade_post = ROOT + } + } + } + } +} + +# Patrician refuses demand due to stewardship +letter_event = { + id = REP.505 + desc = EVTDESC_REP_512 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_505 + any_vassal = { + limit = { has_character_flag = poor_patrician } + letter_event = { id = REP.508 tooltip = EVTTOOLTIP_REP_508 } + } + } +} + +# Patrician refuses demand due to diplomacy +letter_event = { + id = REP.506 + desc = EVTDESC_REP_513 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_505 + any_vassal = { + limit = { has_character_flag = poor_patrician } + letter_event = { id = REP.508 tooltip = EVTTOOLTIP_REP_508 } + } + } +} + +# Patrician refuses demand due to intrigue +letter_event = { + id = REP.507 + desc = EVTDESC_REP_514 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_505 + any_vassal = { + limit = { has_character_flag = poor_patrician } + letter_event = { id = REP.508 tooltip = EVTTOOLTIP_REP_508 } + } + } +} + +# Doge informs Patrician of failure +letter_event = { + id = REP.508 + desc = EVTDESC_REP_508 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_508 + hidden_tooltip = { + FROMFROM = { + clr_character_flag = target_patrician + } + } + clr_character_flag = poor_patrician + prestige = -50 + } +} + +# Patrician approached by Doge +letter_event = { + id = REP.510 + desc = EVTDESC_REP_510 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_510 + hidden_tooltip = { + FROM = { + letter_event = { id = REP.511 } + } + } + tooltip = { + random_trade_post = { + seize_trade_post = FROM + any_neighbor_province = { + limit = { + trade_post_owner = { character = ROOT } + } + seize_trade_post = FROM + } + } + } + } + option = { + name = EVTOPTB_REP_510 + tooltip_info = stewardship + trigger = { + stewardship = 10 + FROM = { + NOT = { stewardship = 8 } + } + } + FROM = { + letter_event = { id = REP.512 tooltip = EVTTOOLTIP_REP_512 } + } + } + option = { + name = EVTOPTC_REP_510 + tooltip_info = diplomacy + trigger = { + diplomacy = 10 + FROM = { + NOT = { diplomacy = 8 } + } + } + FROM = { + letter_event = { id = REP.513 tooltip = EVTTOOLTIP_REP_513 } + } + } + option = { + name = EVTOPTD_REP_510 + tooltip_info = intrigue + trigger = { + intrigue = 10 + FROM = { + NOT = { intrigue = 8 } + } + } + FROM = { + letter_event = { id = REP.514 tooltip = EVTTOOLTIP_REP_514 } + } + } +} + +# Patrician agrees to demand +letter_event = { + id = REP.511 + desc = EVTDESC_REP_511 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_511 + FROM = { + clr_character_flag = target_patrician_doge + opinion = { + who = ROOT + modifier = opinion_angry + months = 60 + } + random_trade_post = { + seize_trade_post = ROOT + any_neighbor_province = { + limit = { + trade_post_owner = { character = PREVPREVPREV } + } + seize_trade_post = ROOT + } + } + } + } +} + +# Patrician refuses demand due to stewardship +letter_event = { + id = REP.512 + desc = EVTDESC_REP_512 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_512 + prestige = -50 + } +} + +# Patrician refuses demand due to diplomacy +letter_event = { + id = REP.513 + desc = EVTDESC_REP_513 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_512 + prestige = -50 + } +} + +# Patrician refuses demand due to intrigue +letter_event = { + id = REP.514 + desc = EVTDESC_REP_514 + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_512 + prestige = -50 + } +} + +### Trade Post Razing + +# Province has TP +province_event = { + id = REP.600 + hide_window = yes + + trigger = { + has_trade_post = yes + owner = { + is_patrician = no + top_liege = { + is_patrician = no + } + } + + trade_post_owner = { + is_patrician = yes + ROOT = { + owner = { + NOT = { + any_realm_character = { character = PREVPREVPREV } + } + top_liege = { + NOR = { + is_vassal_or_below = PREVPREVPREV #this is backwards + opinion = { who = PREVPREVPREV value = 0 } + has_opinion_modifier = { who = PREVPREVPREV modifier = opinion_bribed_tp } + has_opinion_modifier = { who = PREVPREVPREV modifier = opinion_thwarted_tp_destruction } + has_opinion_modifier = { who = PREVPREVPREV modifier = opinion_burned_tp } + has_opinion_modifier = { who = PREVPREVPREV modifier = opinion_burned_tp_despite_bribe } + war_with = PREVPREVPREV + } + } + + # Only if there is no non-aggression-pact with the trade post owner + NOT = { + has_non_aggression_pact_with = PREVPREV + } + } + } + } + } + + mean_time_to_happen = { + months = 1620 + + modifier = { + factor = 0.7 + trade_post_owner = { + ROOT = { + owner = { + top_liege = { + NOT = { opinion = { who = PREVPREVPREV value = -20 } } + } + } + } + } + } + modifier = { + factor = 0.6 + trade_post_owner = { + ROOT = { + owner = { + top_liege = { + NOT = { opinion = { who = PREVPREVPREV value = -40 } } + } + } + } + } + } + modifier = { + factor = 0.5 + trade_post_owner = { + ROOT = { + owner = { + top_liege = { + NOT = { opinion = { who = PREVPREVPREV value = -60 } } + } + } + } + } + } + modifier = { + factor = 0.4 + trade_post_owner = { + ROOT = { + owner = { + top_liege = { + NOT = { opinion = { who = PREVPREVPREV value = -80 } } + } + } + } + } + } + } + + immediate = { + owner = { + top_liege = { + character_event = { id = REP.601 } + } + } + } +} + +# Liege informed +character_event = { + id = REP.601 + desc = EVTDESC_REP_601 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_601 + ai_chance = { factor = 100 } + FROM = { + trade_post_owner = { + character_event = { id = REP.602 days = 6 tooltip = EVTTOOLTIP_REP_602 } + } + } + } + option = { + name = EVTOPTB_REP_601 + custom_tooltip = { text = tp_spare } + } +} + +# Trade Post Owner Confronted +character_event = { + id = REP.602 + desc = EVTDESC_REP_602 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { # Accept + name = EVTOPTA_REP_602 + destroy_tradepost = FROMFROM + hidden_tooltip = { + FROM = { + character_event = { id = REP.603 } + } + } + } + option = { # Bribe + name = EVTOPTB_REP_602 + trigger = { + wealth = 100 + } + wealth = -100 + FROMFROM = { + province_event = { id = REP.608 days = 6 tooltip = EVTTOOLTIP_REP_604 } + } + tooltip = { + FROM = { wealth = 100 } + } + } + option = { # Stewardship + name = EVTOPTC_REP_602 + tooltip_info = stewardship + trigger = { + stewardship = 12 + } + FROM = { + character_event = { id = REP.605 days = 6 tooltip = EVTTOOLTIP_REP_605 } + } + } + option = { # Diplomacy + name = EVTOPTD_REP_602 + tooltip_info = diplomacy + trigger = { + diplomacy = 12 + } + FROM = { + character_event = { id = REP.606 days = 6 tooltip = EVTTOOLTIP_REP_605 } + } + } +} + +# Trade Post Destroyed +character_event = { + id = REP.603 + desc = EVTDESC_REP_603 + picture = GFX_evt_burning_house + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_603 + prestige = 30 + FROM = { + opinion = { + modifier = opinion_burned_tp + who = ROOT + } + } + } +} + +# Bribe Offered +character_event = { + id = REP.604 + desc = EVTDESC_REP_604 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_604 + ai_chance = { factor = 70 } + wealth = 100 + opinion = { + modifier = opinion_bribed_tp + who = FROMFROM + } + tooltip = { + FROMFROM = { + wealth = -100 + } + } + } + option = { + name = EVTOPTB_REP_604 + ai_chance = { factor = 30 } + wealth = 100 + tooltip = { + FROMFROM = { + wealth = -100 + } + } + piety = -50 + FROMFROM = { + opinion = { + modifier = opinion_burned_tp_despite_bribe + who = ROOT + } + if = { + limit = { + liege = { + is_merchant_republic = yes + NOT = { character = FROMFROM } + } + } + liege = { + opinion = { + modifier = opinion_burned_tp_despite_bribe + who = ROOT + } + } + } + } + hidden_tooltip = { + FROMFROM = { + character_event = { id = REP.607 days = 6 } + } + } + tooltip = { + destroy_tradepost = FROM + } + } +} + +# Stewardship used to save TP +character_event = { + id = REP.605 + desc = EVTDESC_REP_605 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_605 + opinion = { + modifier = opinion_thwarted_tp_destruction + who = FROM + } + prestige = -30 + } +} + +# Diplomacy used to save TP +character_event = { + id = REP.606 + desc = EVTDESC_REP_606 + picture = GFX_evt_trade_post_republic + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_605 + opinion = { + modifier = opinion_thwarted_tp_destruction + who = FROM + } + prestige = -30 + } +} + +# TP owner informed of treachery +character_event = { + id = REP.607 + desc = EVTDESC_REP_607 + picture = GFX_evt_burning_house + + is_triggered_only = yes + + option = { + name = EVTOPTA_REP_607 + destroy_tradepost = FROMFROM + } +} + +# Hidden province owner event +province_event = { + id = REP.608 + hide_window = yes + + is_triggered_only = yes + + immediate = { + FROMFROM = { + character_event = { id = REP.604 } + } + } +} diff --git a/After the End/localisation/00_vanilla_overrides.csv b/After the End/localisation/00_vanilla_overrides.csv index 4f3c4dd1b..023fa279a 100644 --- a/After the End/localisation/00_vanilla_overrides.csv +++ b/After the End/localisation/00_vanilla_overrides.csv @@ -134,3 +134,15 @@ EVTDESC_RIP_10024;No one is safe as the Red Death tears through the lands of the title_master_of_the_eagle_desc;Nomadic warriors use eagles to aid them while hunting. Being responsible for the training of these companions is a great honor.;;;;;;;;;;;;;;x +EVTDESC8340;Pillaging through the ruins of a temple in Washington I stumbled across the pieces of a very old lance...;En fouillant les ruines d'un temple de Jérusalem, j'ai découvert les vestiges d'une très vieille lance...;Beim Durchstöbern einiger Tempelruinen in Jerusalem stieß ich auf Stücke einer sehr alten Lanze ...;;Saqueando entre las ruinas de un templo de Jerusalén encontré los trozos de una lanza muy antigua...;;;;;;;;;x +EVTOPTA8340;I must have found the Holy Lance!;Je pense avoir trouvé la Sainte Lance !;Ich muss die Heilige Lanze gefunden haben!;;¡Debe ser la Lanza Sagrada!;;;;;;;;;x +EVTDESC8342;Prying open a tomb in Baltimore that had been sealed for centuries, I found a very old wooden chalice...;À Césarée, en fouillant un tombeau scellé depuis des siècles, j'ai trouvé un très vieux calice en bois...;Beim Öffnen eines Jahrhunderte lang versiegelten Grabes in Caesarea fand ich einen sehr alten hölzernen Kelch …;;Abriendo una tumba en Cesárea que llevaba siglos sellada hallé un cáliz de madera muy antiguo...;;;;;;;;;x +EVTOPTA8342;Could it be... the Holy Grail!;Il s'agit peut-être... du Saint Graal !;Könnte es ... der Heilige Gral sein!?;;Podría ser... ¡El Santo Grial!;;;;;;;;;x +EVTDESC8345;Washington is finally ours after a horrific siege. Entering the city we rode in the blood of the infidels up to the knees of our horses.;Après un terrible siège, Jérusalem est enfin à nous. Lorsque nous sommes entrés dans la cité, nos chevaux avaient du sang jusqu'aux genoux... le sang des infidèles.;Nach einer schrecklichen Belagerung ist Jerusalem endlich unser. Beim Eintritt in die Stadt wateten unsere Pferde knietief durch das Blut der Ungläubigen.;;Tras un horrible asedio, Jerusalén ha caído por fin. Al entrar en la ciudad la sangre de los infieles llegaba hasta las rodillas de los caballos.;;;;;;;;;x +EVTOPTA8345;Let us pray...;Prions...;Lasset uns beten ...;;Oremos...;;;;;;;;;x + +EVTDESC39660;Christian Pilgrims to the the Holy Land suffer all manner of abuse and the routes are not safe. In order to protect the pilgrims and secure Washington for Christ and the faithful, His Holiness, [Root.GetTitledName], has accepted the possibility of an outright invasion by joint Christian forces. This signals a new era of large scale Christian holy wars - the Crusades.;Les pèlerins chrétiens se rendant en Terre Sainte font face à toutes sortes de dangers et les routes ne sont pas sûres.\nAfin de protéger ces pèlerins et de conquérir la Ville trois fois sainte au nom du Christ, Sa Sainteté le [Root.GetTitledName] a imaginé la possibilité d'une invasion en bonne et due forme de la Terre Sainte par des forces chrétiennes alliées vennant de toute l'Europe.\nCette décision annonce une nouvelle ère de guerres chrétiennes à grande échelle contre un ennemis tout autre : l'ère des grandes croisades.;Christliche Pilger im Heilige Land werden vielfach misshandelt und die Wege dorthin sind nicht sicher. Zum Schutz der Pilger und um Jerusalem für Christus und seine Gläubigen zu sichern, hat seine Heiligkeit [Root.GetTitledName] die Möglichkeit einer regelrechten Invasion durch vereinte christliche Heere in Betracht gezogen. Dies ist der Beginn eines neuen Zeitalters großer christlicher Heiliger Kriege - der Kreuzzüge ;;Los cristianos que peregrinan a la Tierra Santa sufren todo tipo de agresiones y las rutas no son seguras. Con el fin de proteger a los peregrinos y salvaguardar Jerusalén para Cristo y los fieles cristianos, Su Santidad [Root.GetTitledName] ha autorizado que las fuerzas cristianas conjuntas lleven a cabo una invasión inmediata. Este hecho marca el inicio de una nueva era de guerras santas cristianas de gran alcance: las Cruzadas.;;;;;;;;;x +EVTDESC39661;The American Empire in the South. The Holy Columbian Confederacy - Christianity's firm bulwark against the Americanist infidels of the mid-Atlantic - is failing. The dire situation has convinced His Holiness, [Root.GetTitledName], to accept the possibility of an outright invasion by joint Christian forces. This signals a new era of large scale Christian holy wars - the Crusades.;L'Empire romain d'Orient, plus connu sous le nom d'Empire byzantin, solide rempart de la chrétienté contre les infidèles mahométans venus d'Orient, risque de disparaître, ce qui serait une porte ouverte sur l'Europe qui permettrait aux hordes arabes de déferler sur nos vertes contrées.\nCette situation critique a convaincu Sa Sainteté le [Root.GetTitledName] d'accepter la possibilité d'une invasion en bonne et due forme des territoires de l'Empire grec au main des infidèles par des forces chrétiennes alliées.\nCette décision annonce une nouvelle ère de guerres chrétiennes à grande échelle contre un ennemi tout autre : l'ère des grandes croisades.;Das Oströmische Reich. Byzanz - das feste Bollwerk des Christentums gegen die mohammedanische Ungläubigen im Orient - droht unterzugehen. Aufgrund der Notlage hat seine Heiligkeit [Root.GetTitledName] die Möglichkeit einer regelrechten Invasion durch vereinte christliche Heere in Betracht gezogen. Dies ist der Beginn eines neuen Zeitalters großer christlicher Heiliger Kriege - der Kreuzzüge ;;El Imperio Romano Oriental. Bizancio —firme bastión de la cristiandad contra los infieles mahometanos de Oriente— está a punto de caer. La grave situación ha convencido a Su Santidad [Root.GetTitledName] a autorizar una invasión inmediata por las fuerzas cristianas conjuntas. Este hecho marca el inicio de una nueva era de guerras santas cristianas de gran alcance: las Cruzadas.;;;;;;;;;x +EVTDESC39662;St Louis, the Gateway to the West and the very seat of the Papacy itself, has fallen to infidels. In response, the Pope-in-exile, His Holiness, [Root.GetTitledName], has declared his intention to forge a great alliance of Christian lords in order to reclaim the eternal city. This signals a new era of large scale Christian holy wars - the Crusades.;Rome, ville de saint Pierre et siège de la papauté, est tombée aux mains de ces chiens d'infidèles.\nEn réponse, le pape en exil, Sa Sainteté le [Root.GetTitledName], a déclaré son intention de former sous sa protection une grande alliance de seigneurs chrétiens afin de reprendre la Ville aux sept collines.\nCette décision annonce une nouvelle ère de guerres chrétiennes à grande échelle contre un ennemi tout autre : l'ère des grandes croisades.;Die Heilige Stadt Rom, Sitz des Papstes, ist von den Ungläubigen erobert worden. Als Antwort darauf hat der Exilpapst, seine Heiligkeit [Root.GetTitledName] seine Entschlossenheit zum Sschmieden eines großen Bündnisses christlicher Herrscher bekannt gegeben, um die Ewige Stadt zurückzuerobern. Dies ist der Beginn eines neuen Zeitalters großer christlicher Heiliger Kriege - der Kreuzzüge.;;Roma, ciudad de San Pedro y sede del mismísimo Papado, ha caído en manos de los infieles. En respuesta, el Papa exiliado, Su Santidad [Root.GetTitledName], ha declarado su intención de forjar una gran alianza de señores cristianos con el fin de recuperar la ciudad eterna. Este hecho marca el inicio de una nueva era de guerras santas cristianas de gran alcance: las Cruzadas.;;;;;;;;;x + +EVTDESC_REP_413;Some time ago, a merchant galley working for the [Root.GetOnlyDynastyName] family brought back several visiting dignitaries from a distant land far across the great ocean. It seems one of them, a woman, has become the target of [From.GetTitledFirstName]'s infatuation. After courting her for weeks, she has finally agreed to marry him, take up his faith, and settle in [Root.MercRepCapital.GetName].;Il y a quelque temps, un navire de marchands travaillant pour la famille [Root.GetOnlyDynastyName] a ramené d'un pays lointain méridional plusieurs dignitaires étrangers. Il semble que l'un d'eux ait ému le cœur de [From.GetTitledFirstName]. Après des semaines passées à la courtiser, elle a finalement accepté de l'épouser, d'adopter sa foi et de s'installer à [Root.MercRepCapital.GetName].;Vor geraumer Zeit brachte ein Handelsschiff, das für die [Root.GetOnlyDynastyName] Familie arbeitet, mehrere Würdenträger aus einem fernen Land weit im Süden zu Besuch. Es scheint, dass einer von ihnen, eine Frau, das Ziel von [From.GetTitledFirstName]s Vernarrtheit geworden ist. Nachdem er sie für Wochen umworben hat, hat sie endlich zugestimmt, ihn zu heiraten, seinen Glauben anzunehmen und nach [Root.MercRepCapital.GetName] zu ziehen.;;Hace algún tiempo, una galera mercante que faenaba para la familia [Root.GetOnlyDynastyName] trajo de vuelta a varios dignatarios de lejanas tierras sureñas. Al parecer, uno de ellos, una mujer, se ha convertido en el objeto de deseo de [From.GetTitledFirstName]. Tras cortejarla durante semanas, finalmente ella ha aceptado casarse con él, convertirse a su fe y asentarse en [Root.MercRepCapital.GetName].;;;;;;;;;x From 6c2f9985151e952421be2b63bccf8eaabdaebeb6 Mon Sep 17 00:00:00 2001 From: Dryhad Date: Sun, 13 Aug 2017 11:43:32 +1000 Subject: [PATCH 8/8] Why is the both GetReligiousPerson and GetReligionAdherent? --- .../000_ate_overrides.txt | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/After the End/localisation/customizable_localisation/000_ate_overrides.txt b/After the End/localisation/customizable_localisation/000_ate_overrides.txt index c690db467..390b6b5db 100644 --- a/After the End/localisation/customizable_localisation/000_ate_overrides.txt +++ b/After the End/localisation/customizable_localisation/000_ate_overrides.txt @@ -126,6 +126,40 @@ defined_text = { } } +defined_text = { + name = GetReligionAdherent + text = { + localisation_key = String_Catholic + trigger = { religion = catholic } + } + text = { + localisation_key = String_Christian + trigger = { + religion_group = christian + NOT = { religion = catholic } + } + } + text = { + localisation_key = String_Norse + trigger = { + OR = { + religion = norse_pagan + religion = norse_pagan_reformed + } + } + } + + # need to expand with AtE religions + text = { + localisation_key = string_generic_believer + trigger = { + NOT = { religion_group = catholic } + NOT = { religion = norse_pagan } + NOT = { religion = norse_pagan_reformed } + } + } +} + defined_text = { name = GetArtifactSource text = {