From e8f9381e3a7e01c5a2b0de2eae32e7bede1a4cdc Mon Sep 17 00:00:00 2001 From: trashmasteruni Date: Sat, 10 Oct 2026 22:52:02 +0200 Subject: [PATCH] event updating --- events/accolade_events.txt | 493 -- .../coronation_activity/coronation_events.txt | 151 +- .../coronation_events_1.txt | 7070 ++++++++--------- .../coronation_events_6.txt | 508 +- .../hold_court_events_general.txt | 1193 +-- .../pilgrimage_activity/pilgrimage_events.txt | 1732 ++-- .../tour_grounds_events_chad.txt | 71 +- .../tour_phase_cultural_festival.txt | 449 +- .../tour_activity/tour_travel_events.txt | 125 +- .../tournaments/veronica_local_events_2.txt | 69 +- events/board_game_events.txt | 3589 --------- events/court_maintenance_events.txt | 715 -- events/court_position_management_events.txt | 261 - events/marriage_effect_events.txt | 1127 --- events/misc_events.txt | 17 - events/mpo_chaotic_kurultai_succession.txt | 3147 -------- events/mpo_flavor_events.txt | 58 - events/secret_faith_events.txt | 246 - events/tutorial_events.txt | 444 -- events/witch_events.txt | 4345 ---------- 20 files changed, 6143 insertions(+), 19667 deletions(-) delete mode 100644 events/accolade_events.txt delete mode 100644 events/board_game_events.txt delete mode 100644 events/court_maintenance_events.txt delete mode 100644 events/court_position_management_events.txt delete mode 100644 events/marriage_effect_events.txt delete mode 100644 events/misc_events.txt delete mode 100644 events/mpo_chaotic_kurultai_succession.txt delete mode 100644 events/mpo_flavor_events.txt delete mode 100644 events/secret_faith_events.txt delete mode 100644 events/tutorial_events.txt delete mode 100644 events/witch_events.txt diff --git a/events/accolade_events.txt b/events/accolade_events.txt deleted file mode 100644 index f24906e61..000000000 --- a/events/accolade_events.txt +++ /dev/null @@ -1,493 +0,0 @@ -namespace = accolade - -#Accolade rank gain notification -# by Jason Cantalini -accolade.0001 = { - hidden = yes - - trigger = { - exists = acclaimed_knight - has_dlc_feature = accolades - } - - immediate = { - scope:changing_accolade = { - acclaimed_knight = { - save_scope_as = acclaimed_knight - } - } - if = { - limit = { - scope:changing_accolade = { - accolade_rank >= 5 - } - } - send_interface_message = { - type = msg_accolade_gained_rank - title = accolade.0001.notification_high - desc = accolade_rank_unlock_notification_tooltip_high - left_icon = scope:acclaimed_knight - } - } - else = { - send_interface_message = { - type = msg_accolade_gained_rank - title = accolade.0001.notification_low - desc = accolade_rank_unlock_notification_tooltip_low - left_icon = scope:acclaimed_knight - } - } - } -} - -#Accolade rank loss notification -# by Jason Cantalini -accolade.0002 = { - hidden = yes - - trigger = { - has_dlc_feature = accolades - } - - immediate = { - if = { - limit = { - exists = scope:changing_accolade.acclaimed_knight - } - scope:changing_accolade = { - acclaimed_knight = { - save_scope_as = acclaimed_knight - } - } - if = { - limit = { - scope:changing_accolade = { - accolade_rank >= 5 - } - } - send_interface_message = { - type = msg_accolade_lost_rank - title = accolade.0002.notification_high - left_icon = scope:acclaimed_knight - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:acclaimed_knight = { - is_alive = yes - } - } - desc = accolade_rank_loss_notification_tooltip_high - } - desc = accolade_rank_loss_notification_tooltip_high_dead - } - } - } - } - else_if = { - limit = { - scope:changing_accolade = { - accolade_rank >= 1 - } - } - send_interface_message = { - type = msg_accolade_lost_rank - title = accolade.0002.notification_low - left_icon = scope:acclaimed_knight - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:acclaimed_knight = { - is_alive = yes - } - } - desc = accolade_rank_loss_notification_tooltip_low - } - desc = accolade_rank_loss_notification_tooltip_low_dead - } - } - } - } - else = { - send_interface_message = { - type = msg_accolade_lost_rank - title = accolade.0002.notification_low - left_icon = scope:acclaimed_knight - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:acclaimed_knight = { - is_alive = yes - } - } - desc = accolade_rank_loss_notification_tooltip_no_rank - } - desc = accolade_rank_loss_notification_tooltip_no_rank_dead - } - } - } - } - } - else_if = { - limit = { - NOT = { exists = scope:changing_accolade.acclaimed_knight } - scope:changing_accolade = { accolade_rank >= 1 } - } - send_interface_message = { - type = msg_accolade_lost_rank - title = accolade.0002.notification_empty - desc = accolade_rank_loss_notification_tooltip_empty - } - } - else = { - send_interface_message = { - type = msg_accolade_lost_rank - title = accolade.0002.notification_low - desc = accolade_rank_loss_notification_tooltip_empty_no_rank - } - } - } -} - -#Create a sellsword band led by your Acclaimed Knight -accolade.0100 = { - type = character_event - title = accolade.0100.t - desc = accolade.0100.desc - theme = war - - left_portrait = { - character = root - animation = frontend_left_idle - camera = camera_event_left_to_the_left - } - right_portrait = { - character = scope:recipient - animation = sword_coup_degrace - } - - #NAMING WIDGET - widget = { - gui = "event_window_widget_enter_text" - container = "dynamic_birth_name" - controller = { - type = text - data = { - key = new_laamp_title_name - ### Accolade's Name - default = { - localization_key = accolade_mercenary_accolade_name - trigger = { - exists = scope:accolade - root = { is_ai = no } - } - } - default = { - localization_key = accolade_mercenary_kings_men_name - trigger = { - root = { - prestige_level >= 3 - } - scope:acclaimed_knight = { - is_male = yes - } - } - } - default = { - localization_key = accolade_mercenary_knightly_company_name - trigger = { - root = { - culture = { - OR = { - has_graphical_western_culture_group_trigger = yes - has_graphical_iberian_culture_group_trigger = yes - } - } - NOR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_nomadic - AND = { - NOT = { - government_has_mechanic = administrative - } - culture = { - NOT = { has_cultural_era_or_later = culture_era_high_medieval } - } - } - } - } - } - } - default = { - localization_key = accolade_honor_band_name - trigger = { - root = { - OR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_nomadic - AND = { - NOT = { - government_has_mechanic = administrative - } - culture = { - NOT = { has_cultural_era_or_later = culture_era_high_medieval } - } - } - } - } - } - } - default = { - localization_key = accolade_rulers_swords_name - trigger = { - root = { - OR = { - government_has_flag = government_is_tribal - AND = { - NOT = { - government_has_mechanic = administrative - } - culture = { - NOT = { has_cultural_era_or_later = culture_era_high_medieval } - } - } - } - NOT = { government_has_flag = government_is_nomadic } - } - } - } - default = { - localization_key = accolade_culture_riders_name - trigger = { - root = { - government_has_flag = government_is_nomadic - } - } - } - default = { - localization_key = accolade_culture_company_name - trigger = { - root = { - NOR = { - government_has_flag = government_is_tribal - government_has_flag = government_is_nomadic - AND = { - NOT = { - government_has_mechanic = administrative - } - culture = { - NOT = { has_cultural_era_or_later = culture_era_high_medieval } - } - } - } - } - } - } - default = { - localization_key = accolade_free_knights_name - #Only triggers when King X's Men doesn't - trigger = { - OR = { - root = { - prestige_level < 3 - } - scope:acclaimed_knight = { - is_male = no - } - } - } - } - } - } - setup_scope = { - scope:acclaimed_knight = { save_scope_as = text_target } - } - } - - immediate = { - scope:acclaimed_knight = { save_scope_as = acclaimed_mercenary } - play_music_cue = "mx_cue_combat_2" - } - option = { - trigger = { - is_ai = no - has_dlc_feature = landless_playable - } - name = accolade.0100.a_special - add_internal_flag = dangerous - custom_tooltip = switch_to_acclaimed_mercenary_tt - if = { - limit = { - NOT = { - scope:recipient.dynasty ?= scope:actor.dynasty - } - } - custom_tooltip = danger_dynasty_abandon_tt - } - save_scope_as = switch - add_character_flag = { - flag = switching_to_knight - days = 20 - } - - - ai_chance = { - base = 0 - } - } - option = { - name = accolade.0100.a - - scope:accolade_owner = { - custom_tooltip = accolade_mercenary_gold_tt - scope:acclaimed_knight = { - set_variable = { - name = acc_merc_patron - value = scope:accolade_owner - } - } - } - } - - after = { - clear_variable_list = realm_title_names - - scope:acclaimed_knight = { - if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_mercenary_accolade_name - } - add_character_flag = { - flag = accolade_mercenary_accolade_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_mercenary_kings_men_name - } - add_character_flag = { - flag = accolade_mercenary_kings_men_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_mercenary_knightly_company_name - } - add_character_flag = { - flag = accolade_mercenary_knightly_company_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_honor_band_name - } - add_character_flag = { - flag = accolade_honor_band_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_rulers_swords_name - } - add_character_flag = { - flag = accolade_rulers_swords_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_culture_riders_name - } - add_character_flag = { - flag = accolade_culture_riders_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_free_knights_name - } - add_character_flag = { - flag = accolade_free_knights_name - days = 20 - } - } - else_if = { - limit = { - var:new_laamp_title_name ?= flag:accolade_culture_company_name - } - add_character_flag = { - flag = accolade_culture_company_name - days = 20 - } - } - else = { - add_character_flag = { - flag = new_laamp_title_name_entered_text - days = 20 - } - } - accolade_to_mercenary_effect = yes - } - } -} -#Sellsword band sends you gold -accolade.0110 = { - hidden = yes - immediate = { - send_interface_message = { - type = msg_accolade_merc - title = accolade_merc_gold.t - left_icon = scope:accolade_merc - desc = accolade_merc_gold.desc - scope:accolade_merc = { - #Send a little bit of gold - if = { - limit = { - gold > 0 - } - if = { - limit = { - gold >= five_times_monumental_value - } - pay_short_term_gold = { - target = root - gold = massive_gold_value - } - } - else_if = { - limit = { - gold >= monumental_gold_value - } - pay_short_term_gold = { - target = root - gold = medium_gold_value - } - } - else = { - pay_short_term_gold = { - target = root - gold = minor_gold_value - } - } - } - #If you have no gold, secretly gain it and then send it - else = { - hidden_effect = { - add_gold = minor_gold_value - } - pay_short_term_gold = { - target = root - gold = minor_gold_value - } - } - } - } - } -} diff --git a/events/activities/coronation_activity/coronation_events.txt b/events/activities/coronation_activity/coronation_events.txt index 27bffa2bd..3a6a74c93 100644 --- a/events/activities/coronation_activity/coronation_events.txt +++ b/events/activities/coronation_activity/coronation_events.txt @@ -1070,29 +1070,30 @@ coronation_events.0110 = { # Other triggered_desc = { - trigger = { - scope:host = { - ai_compassion >= low_positive_ai_value - } - } - desc = coronation_events.0110.desc.fallback_compassionate - } - triggered_desc = { - trigger = { - scope:host = { - ai_honor > low_positive_ai_value - } - } - desc = coronation_events.0110.desc.fallback_honorable - } - triggered_desc = { - trigger = { - scope:host = { - ai_energy < low_negative_ai_value - } - } - desc = coronation_events.0110.desc.fallback_feckless - } + trigger = { + scope:host = { + ai_compassion >= low_positive_ai_value + } + } + desc = coronation_events.0110.desc.fallback_compassionate + } + triggered_desc = { + trigger = { + scope:host = { + ai_honor > low_positive_ai_value + } + } + desc = coronation_events.0110.desc.fallback_honorable + } + triggered_desc = { + trigger = { + scope:host = { + ai_energy < low_negative_ai_value + } + } + desc = coronation_events.0110.desc.fallback_feckless + } + desc = coronation_events.0110.desc.fallback } desc = coronation_events.0110.desc.outro } @@ -1392,7 +1393,7 @@ coronation_events.0150 = { } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss honest = medium_stress_impact_gain ambitious = minor_stress_impact_gain @@ -1461,7 +1462,7 @@ coronation_events.0175 = { add_character_modifier = oath_of_purge_pretenders if = { limit = { - government_has_flag = government_is_administrative + government_has_mechanic = administrative } house ?= { add_house_modifier = oath_of_purge_pretenders_house @@ -1520,7 +1521,7 @@ coronation_events.0175 = { option = { name = coronation_events.0175.a - stress_impact = { base = medium_stress_loss } + stress_and_fulfillment_impact = { base = medium_stress_loss } if = { limit = { @@ -1715,10 +1716,9 @@ coronation_events.0200 = { option = coronation_type_anointment } any_attending_character = { - this = scope:host.faith.religious_head + scope:activity.var:anointment_authority ?= this is_alive = yes is_imprisoned = no - } } } @@ -1746,7 +1746,7 @@ coronation_events.0200 = { option = coronation_type_anointment } any_attending_character = { - this = scope:host.faith.religious_head + scope:activity.var:anointment_authority ?= this is_alive = yes is_imprisoned = no } @@ -1755,9 +1755,9 @@ coronation_events.0200 = { involved_activity = { set_variable = { name = officiator - value = scope:host.faith.religious_head + value = scope:activity.var:anointment_authority } - scope:host.faith.religious_head = { + scope:activity.var:anointment_authority = { add_character_flag = { flag = coronation_officiator years = 2 @@ -1786,9 +1786,9 @@ scripted_trigger coronation_events_0205_audience = { this = root trigger_if = { limit = { - exists = scope:activity.special_guest:priest + exists = scope:activity.special_guest:coronation_hof_guest } - this = scope:activity.special_guest:priest + this = scope:activity.special_guest:coronation_hof_guest } is_spouse_of = scope:host is_close_family_of = scope:host @@ -2248,6 +2248,7 @@ coronation_events.0205 = { location = scope:location culture = scope:host.culture faith = scope:host.faith + rite = scope:host.rite gender_female_chance = scope_value_target_soldier_female_chance save_scope_as = audience_1 } @@ -2256,6 +2257,7 @@ coronation_events.0205 = { location = scope:location culture = scope:host.culture faith = scope:host.faith + rite = scope:host.rite gender_female_chance = scope_value_target_soldier_female_chance save_scope_as = audience_2 } @@ -2266,6 +2268,7 @@ coronation_events.0205 = { location = scope:location culture = scope:location.culture faith = scope:location.faith + rite = scope:location.rite save_scope_as = audience_1 } create_character = { @@ -2273,6 +2276,7 @@ coronation_events.0205 = { location = scope:location culture = scope:location.culture faith = scope:location.faith + rite = scope:location.rite save_scope_as = audience_2 } } @@ -2380,7 +2384,7 @@ coronation_events.0205 = { limit = { scope:activity.var:activity_special_type_progression < 25 } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain paranoid = minor_stress_impact_gain shy = miniscule_stress_impact_gain @@ -2439,7 +2443,7 @@ coronation_events.0205 = { limit = { scope:activity.var:activity_special_type_progression < 25 } - stress_impact = { + stress_and_fulfillment_impact = { base = miniscule_stress_impact_gain craven = minor_stress_impact_gain paranoid = minor_stress_impact_gain @@ -2450,7 +2454,7 @@ coronation_events.0205 = { limit = { scope:activity.var:activity_special_type_progression < 75 } - stress_impact = { + stress_and_fulfillment_impact = { base = miniscule_stress_impact_gain } } @@ -2505,7 +2509,7 @@ coronation_events.0205 = { limit = { scope:activity.var:activity_special_type_progression >= 25 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } } @@ -2665,12 +2669,12 @@ coronation_events.0205 = { } if = { limit = { is_ai = no } - stress_impact = { + stress_and_fulfillment_impact = { base = massive_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain } } @@ -2897,7 +2901,7 @@ coronation_events.0210 = { trigger = { scope:activity.activity_host = root } - stress_impact = { + stress_and_fulfillment_impact = { base = miniscule_stress_impact_loss gluttonous = minor_stress_impact_loss gregarious = miniscule_stress_impact_loss @@ -2909,7 +2913,7 @@ coronation_events.0210 = { trigger = { scope:activity.activity_host != root } - stress_impact = { + stress_and_fulfillment_impact = { gluttonous = minor_stress_impact_loss gregarious = miniscule_stress_impact_loss } @@ -3058,7 +3062,10 @@ coronation_events.0300 = { scope:chaplain = { if = { limit = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } } root = { add_piety = medium_piety_gain } } @@ -3108,7 +3115,10 @@ coronation_events.0300 = { scope:alternative_1 = { if = { limit = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } } root = { add_piety = medium_piety_gain } } @@ -3158,7 +3168,10 @@ coronation_events.0300 = { scope:alternative_2 = { if = { limit = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } } root = { add_piety = medium_piety_gain } } @@ -3201,9 +3214,9 @@ coronation_events.0300 = { #No effect if you are head of faith if = { limit = { - NAND = { - exists = faith.religious_head - this = faith.religious_head + NOR = { + religious_head_or_challenger ?= this + scope:activity.var:anointment_authority ?= this } } if = { @@ -3325,6 +3338,7 @@ coronation_events.0301 = { location = scope:activity.activity_location culture = scope:activity.activity_location.culture faith = root.faith + rite = root.rite save_scope_as = first_candidate } } @@ -3345,15 +3359,31 @@ coronation_events.0301 = { } if = { limit = { - faith.religious_head = { #when in Rome + scope:activity = { + has_activity_option = { + category = special_type + option = coronation_type_anointment + } + } + } + coronation_save_anointment_authority_effect = { SCOPE = current_coronation_authority } + } + else_if = { + limit = { exists = religious_head_or_challenger } + religious_head_or_challenger = { save_scope_as = current_coronation_authority } + } + if = { + limit = { + exists = scope:current_coronation_authority + scope:current_coronation_authority = { #when in the authority's realm location.county = root.location.county NOT = { this = scope:first_candidate - } + } } - + } - faith.religious_head = { + scope:current_coronation_authority = { save_scope_as = second_candidate } } @@ -3398,7 +3428,7 @@ coronation_events.0301 = { option = coronation_type_anointment } } - scope:second_candidate ?= root.faith.religious_head + scope:second_candidate ?= scope:current_coronation_authority } } @@ -3410,7 +3440,7 @@ coronation_events.0301 = { option = coronation_type_anointment } } - scope:second_candidate ?= root.faith.religious_head + scope:second_candidate ?= scope:current_coronation_authority } } @@ -3445,9 +3475,7 @@ coronation_events.0301 = { option = coronation_type_anointment } } - NOT = { - scope:second_candidate = root.faith.religious_head #Whomst to prevent a new pope from blessing you - } + NOT = { scope:second_candidate = scope:current_coronation_authority } } scope:second_candidate.piety_level >= 4 @@ -3514,9 +3542,7 @@ coronation_events.0301 = { } piety_level <= 3 is_ai = no - NOT = { - scope:second_candidate ?= root.faith.religious_head - } + NOT = { scope:second_candidate ?= scope:current_coronation_authority } } add_piety_level = -1 @@ -4750,7 +4776,6 @@ coronation_events.0310 = { exists = scope:exalt_crown any_character_artifact = { count >= 3 - exists = this } } switch = { @@ -5159,12 +5184,6 @@ coronation_events.0312 = { #Guest ending event } immediate = { - create_character_memory = { - type = witnessed_a_coronation_memory - participants = { - host = scope:activity.activity_host - } - } if = { limit = { OR = { diff --git a/events/activities/coronation_activity/coronation_events_1.txt b/events/activities/coronation_activity/coronation_events_1.txt index bf3217cda..551096819 100644 --- a/events/activities/coronation_activity/coronation_events_1.txt +++ b/events/activities/coronation_activity/coronation_events_1.txt @@ -127,16 +127,16 @@ coronation_events.1000 = { gold = activity_minor_gold_value } if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = medium_influence_gain - } - else = { - add_prestige = medium_prestige_gain - } - stress_impact = { + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = medium_influence_gain + } + else = { + add_prestige = medium_prestige_gain + } + stress_and_fulfillment_impact = { base = minor_stress_impact_loss greedy = medium_stress_impact_gain } @@ -208,7 +208,7 @@ coronation_events.1000 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain } ai_chance = { @@ -240,7 +240,7 @@ coronation_events.1000 = { } add_dread = medium_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -422,7 +422,7 @@ coronation_events.1002 = { CHAR = root } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain wrathful = minor_stress_impact_loss sadistic = minor_stress_impact_loss @@ -476,7 +476,7 @@ coronation_events.1002 = { } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_loss calm = minor_stress_impact_gain } @@ -631,6 +631,7 @@ coronation_events.1004 = { template = intrigue_court_position_holder_template location = root.location faith = scope:activity.activity_location.faith + rite = scope:activity.activity_location.rite culture = scope:activity.activity_location.culture gender_female_chance = 50 save_scope_as = spy @@ -687,7 +688,7 @@ coronation_events.1004 = { coronation_move_towards_supporter_effect = { CHARACTER = scope:confidant } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -894,24 +895,21 @@ coronation_events.1007 = { } left_portrait = { character = scope:host - camera = camera_event_chariot_very_left_hippodrome - animation = schadenfreude + camera = camera_event_left_forward } center_portrait = { character = scope:first_guest - scripted_animation = { - triggered_animation = { - trigger = { - OR = { - scope:first_guest = { number_of_commander_traits >= 1 } - scope:first_guest = { is_knight = yes } - } - } - animation = marshal_random_weapon + triggered_animation = { + trigger = { + OR = { + scope:first_guest = { number_of_commander_traits >= 1 } + scope:first_guest = { is_knight = yes } } - animation = disapproval + } + animation = marshal_random_weapon } + animation = disapproval } right_portrait = { @@ -1057,7 +1055,7 @@ coronation_events.1007 = { add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = minor_stress_impact_gain impatient = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -1097,7 +1095,7 @@ coronation_events.1007 = { } } - stress_impact = { + stress_and_fulfillment_impact = { patient = minor_stress_impact_gain temperate = minor_stress_impact_gain content = minor_stress_impact_gain @@ -1142,7 +1140,7 @@ coronation_events.1007 = { opinion = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = minor_stress_impact_gain callous = minor_stress_impact_gain lazy = minor_stress_impact_gain @@ -1195,7 +1193,7 @@ coronation_events.1007 = { } - stress_impact = { + stress_and_fulfillment_impact = { impatient = minor_stress_impact_gain callous = minor_stress_impact_gain lazy = minor_stress_impact_gain @@ -1246,7 +1244,7 @@ coronation_events.1007 = { coronation_move_towards_supporter_effect = { CHARACTER = scope:second_guest } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = minor_stress_impact_gain callous = minor_stress_impact_gain lazy = minor_stress_impact_gain @@ -1271,7 +1269,7 @@ coronation_events.1007 = { } name = coronation_events.1007.opt_out - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss patient = minor_stress_impact_gain compassionate = minor_stress_impact_gain @@ -1298,36 +1296,36 @@ coronation_events.1007 = { } scripted_effect coronation_events_1011_reward_effect = { - switch = { - trigger = has_trait - education_$SKILL$_1 = { - scope:ancestor_artifact = { - add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_1_modifier - } - } - education_$SKILL$_2 = { - scope:ancestor_artifact = { - add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_2_modifier - } - } - education_$SKILL$_3 = { - scope:ancestor_artifact = { - add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_3_modifier - } - } - education_$SKILL$_4 = { - scope:ancestor_artifact = { - add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_4_modifier - } - } - education_$SKILL$_5 = { - scope:ancestor_artifact = { - add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_4_modifier - #add_artifact_modifier = artifact_$SKILL$_per_prestige_level_modifier - } - } - } - custom_tooltip = coronation_events.1011.root_reward.tt + switch = { + trigger = has_trait + education_$SKILL$_1 = { + scope:ancestor_artifact = { + add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_1_modifier + } + } + education_$SKILL$_2 = { + scope:ancestor_artifact = { + add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_2_modifier + } + } + education_$SKILL$_3 = { + scope:ancestor_artifact = { + add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_3_modifier + } + } + education_$SKILL$_4 = { + scope:ancestor_artifact = { + add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_4_modifier + } + } + education_$SKILL$_5 = { + scope:ancestor_artifact = { + add_artifact_modifier = artifact_monthly_$SKILL$_lifestyle_xp_4_modifier + #add_artifact_modifier = artifact_$SKILL$_per_prestige_level_modifier + } + } + } + custom_tooltip = coronation_events.1011.root_reward.tt } # decide upon new bonuses for your crown @@ -1446,24 +1444,24 @@ coronation_events.1011 = { add_prestige = medium_prestige_gain switch = { trigger = has_trait - education_diplomacy = { - coronation_events_1011_reward_effect = { SKILL = diplomacy } - } - education_martial = { - coronation_events_1011_reward_effect = { SKILL = martial } - } - education_stewardship = { - coronation_events_1011_reward_effect = { SKILL = stewardship } - } - education_intrigue = { - coronation_events_1011_reward_effect = { SKILL = intrigue } - } - education_learning = { - coronation_events_1011_reward_effect = { SKILL = learning } - } + education_diplomacy = { + coronation_events_1011_reward_effect = { SKILL = diplomacy } + } + education_martial = { + coronation_events_1011_reward_effect = { SKILL = martial } + } + education_stewardship = { + coronation_events_1011_reward_effect = { SKILL = stewardship } + } + education_intrigue = { + coronation_events_1011_reward_effect = { SKILL = intrigue } + } + education_learning = { + coronation_events_1011_reward_effect = { SKILL = learning } + } } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain } @@ -1493,25 +1491,25 @@ coronation_events.1011 = { scope:previous_holder = { switch = { trigger = has_trait - education_diplomacy = { - coronation_events_1011_reward_effect = { SKILL = diplomacy } - } - education_martial = { - coronation_events_1011_reward_effect = { SKILL = martial } - } - education_stewardship = { - coronation_events_1011_reward_effect = { SKILL = stewardship } - } - education_intrigue = { - coronation_events_1011_reward_effect = { SKILL = intrigue } - } - education_learning = { - coronation_events_1011_reward_effect = { SKILL = learning } - } + education_diplomacy = { + coronation_events_1011_reward_effect = { SKILL = diplomacy } + } + education_martial = { + coronation_events_1011_reward_effect = { SKILL = martial } + } + education_stewardship = { + coronation_events_1011_reward_effect = { SKILL = stewardship } + } + education_intrigue = { + coronation_events_1011_reward_effect = { SKILL = intrigue } + } + education_learning = { + coronation_events_1011_reward_effect = { SKILL = learning } + } } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain } @@ -1668,7 +1666,7 @@ coronation_events.1012 = { coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss callous = minor_stress_impact_loss } @@ -1706,7 +1704,7 @@ coronation_events.1012 = { CHAR = root } - stress_impact = { + stress_and_fulfillment_impact = { temperate = minor_stress_impact_loss gluttonous = medium_stress_impact_gain } @@ -1747,15 +1745,15 @@ coronation_events.1012 = { } } if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = minor_influence_gain - } - else = { - add_prestige = minor_prestige_gain - } + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = minor_influence_gain + } + else = { + add_prestige = minor_prestige_gain + } ai_chance = { base = 0 } @@ -1769,17 +1767,17 @@ coronation_events.1012 = { } if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = minor_influence_gain - } - else = { - add_prestige = minor_prestige_gain - } + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = minor_influence_gain + } + else = { + add_prestige = minor_prestige_gain + } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain gluttonous = medium_stress_impact_gain } @@ -1819,7 +1817,7 @@ coronation_events.1012 = { } } - stress_impact = { + stress_and_fulfillment_impact = { gluttonous = medium_stress_impact_loss } @@ -1922,7 +1920,7 @@ coronation_events.1013 = { coronation_busy_effect = yes scope:activity.activity_host ?= { save_scope_as = host } - + if = { limit = { scope:activity = { @@ -2033,7 +2031,7 @@ coronation_events.1013 = { coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } @@ -2109,7 +2107,7 @@ coronation_events.1013 = { coronation_embrace_supporters_opinion_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_loss } @@ -2174,7 +2172,7 @@ coronation_events.1013 = { coronation_embrace_supporters_opinion_effect = yes } add_learning_lifestyle_xp = medium_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = minor_stress_impact_gain } @@ -2247,7 +2245,7 @@ coronation_events.1013 = { } coronation_embrace_supporters_opinion_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = minor_stress_impact_gain } @@ -2274,7 +2272,7 @@ coronation_events.1013 = { add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain craven = minor_stress_impact_loss } @@ -2450,7 +2448,7 @@ coronation_events.1014 = { increase_wounds_no_death_effect = { REASON = accident } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain gluttonous = minor_stress_impact_loss } @@ -2518,7 +2516,7 @@ coronation_events.1014 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = minor_stress_impact_gain } @@ -2541,7 +2539,7 @@ coronation_events.1014 = { add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain craven = minor_stress_impact_loss } @@ -2637,9 +2635,11 @@ coronation_events.1015 = { scope:activity = { custom_tooltip = coronation_tt_positive_tiny activity_special_type_progression_tiny = yes - coronation_add_magnificence_log_effect = { - VALUE = flag:positive_tiny - CHAR = root + root = { + coronation_add_magnificence_log_effect = { + VALUE = flag:positive_tiny + CHAR = root + } } every_attending_character = { limit = { @@ -2657,7 +2657,7 @@ coronation_events.1015 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain gregarious = minor_stress_impact_loss cynical = minor_stress_impact_gain @@ -2706,7 +2706,7 @@ coronation_events.1015 = { } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss shy = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -2736,7 +2736,7 @@ coronation_events.1015 = { add_stress = medium_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss gregarious = minor_stress_impact_gain zealous = medium_stress_impact_gain @@ -2891,15 +2891,15 @@ coronation_events.1016 = { title = coronation_events.1016.great.tt.failure left_icon = root if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = minor_influence_loss - } - else = { - add_prestige = minor_prestige_loss - } + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = minor_influence_loss + } + else = { + add_prestige = minor_prestige_loss + } } } } @@ -2956,7 +2956,7 @@ coronation_events.1016 = { # why bother? option = { name = coronation_events.1016.nah - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } ai_chance = { @@ -3076,9 +3076,11 @@ coronation_events.1017 = { scope:activity = { custom_tooltip = coronation_tt_positive_tiny activity_special_type_progression_tiny = yes - coronation_add_magnificence_log_effect = { - VALUE = flag:positive_tiny - CHAR = root + root = { + coronation_add_magnificence_log_effect = { + VALUE = flag:positive_tiny + CHAR = root + } } activity_location.county = { add_county_modifier = { @@ -3090,7 +3092,7 @@ coronation_events.1017 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain inappetetic = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -3137,9 +3139,7 @@ coronation_events.1017 = { } } - coronation_impress_attendees_opinion_effect = yes - - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain inappetetic = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -3201,20 +3201,20 @@ coronation_events.1017 = { opinion = -25 } if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = medium_influence_loss - } - else = { - add_prestige = medium_prestige_loss - } + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = medium_influence_loss + } + else = { + add_prestige = medium_prestige_loss + } } coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain inappetetic = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -3269,44 +3269,18 @@ coronation_events.1017 = { if = { limit = { is_valid_to_hire_court_position_type = court_brewmaster_court_position + can_appoint_char_to_court_position = { CHAR = scope:supporter COURT_POS = court_brewmaster_court_position } } - show_as_tooltip = { - appoint_court_position = { - recipient = scope:supporter - court_position = court_brewmaster_court_position - } - } - } - - hidden_effect = { - if = { - limit = { - is_valid_to_hire_court_position_type = court_brewmaster_court_position - NOT = { employs_court_position = court_brewmaster_court_position } - } - appoint_court_position = { - recipient = scope:supporter - court_position = court_brewmaster_court_position - } - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = court_brewmaster_court_position - employs_court_position = court_brewmaster_court_position - } - add_character_flag = temporary_court_position_cost_removal - replace_court_position = { - recipient = scope:supporter - holder = court_position:court_brewmaster_court_position - court_position = court_brewmaster_court_position - } - remove_character_flag = temporary_court_position_cost_removal + court_position_grant_effect = { + EMPLOYER = root + POS = court_brewmaster + CANDIDATE = scope:supporter } } coronation_embrace_supporters_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain inappetetic = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -3343,39 +3317,19 @@ coronation_events.1017 = { } } - show_as_tooltip = { - appoint_court_position = { - recipient = scope:supporter - court_position = court_brewmaster_court_position + if = { + limit = { + is_valid_to_hire_court_position_type = court_brewmaster_court_position + can_appoint_char_to_court_position = { CHAR = scope:supporter COURT_POS = court_brewmaster_court_position } } - } - hidden_effect = { - if = { - limit = { - is_valid_to_hire_court_position_type = court_brewmaster_court_position - NOT = { employs_court_position = court_brewmaster_court_position } - } - appoint_court_position = { - recipient = scope:supporter - court_position = court_brewmaster_court_position - } - } - else_if = { - limit = { - is_valid_to_hire_court_position_type = court_brewmaster_court_position - employs_court_position = court_brewmaster_court_position - } - add_character_flag = temporary_court_position_cost_removal - replace_court_position = { - recipient = scope:supporter - holder = court_position:court_brewmaster_court_position - court_position = court_brewmaster_court_position - } - remove_character_flag = temporary_court_position_cost_removal + court_position_grant_effect = { + EMPLOYER = root + POS = court_brewmaster + CANDIDATE = scope:supporter } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain inappetetic = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -3421,7 +3375,7 @@ coronation_events.1017 = { } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_loss inappetetic = minor_stress_impact_loss arrogant = minor_stress_impact_loss @@ -3556,7 +3510,7 @@ coronation_events.1018 = { TYPE = favor_hook } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss just = minor_stress_impact_loss @@ -3582,7 +3536,7 @@ coronation_events.1018 = { add_stress = medium_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_loss deceitful = minor_stress_impact_loss } @@ -3872,7 +3826,7 @@ coronation_events.1019 = { - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss just = minor_stress_impact_loss @@ -3898,7 +3852,7 @@ coronation_events.1019 = { coronation_events_1019_memory_reward_effect = { SCOPE = supporter } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss } @@ -3928,7 +3882,7 @@ coronation_events.1019 = { coronation_events_1019_memory_reward_effect = { SCOPE = supporter_2 } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss } @@ -3955,7 +3909,7 @@ coronation_events.1019 = { name = coronation_events.1019.nah add_stewardship_lifestyle_xp = medium_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_loss shy = minor_stress_impact_loss arrogant = minor_stress_impact_loss @@ -4195,7 +4149,7 @@ coronation_events.1020 = { coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss vengeful = minor_stress_impact_loss stubborn = minor_stress_impact_loss @@ -4327,7 +4281,7 @@ coronation_events.1020 = { } - stress_impact = { just = medium_stress_gain } + stress_and_fulfillment_impact = { just = medium_stress_gain } ai_chance = { base = 1 @@ -4373,7 +4327,7 @@ coronation_events.1020 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = medium_stress_impact_gain compassionate = medium_stress_impact_gain generous = minor_stress_impact_gain @@ -4542,7 +4496,7 @@ coronation_events.1021 = { } } - stress_impact = { greedy = minor_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } ai_chance = { base = 5 @@ -4566,6 +4520,7 @@ coronation_events.1021 = { name = coronation_events.1021.impress_attendees flavor = coronation_events.1021.impress_attendees.flavor + save_scope_as = unity_character # The desc names them house = { add_unity_value = { value = minor_unity_gain @@ -4592,7 +4547,7 @@ coronation_events.1021 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { greedy = minor_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } ai_chance = { base = 5 @@ -4608,6 +4563,7 @@ coronation_events.1021 = { name = coronation_events.1021.a flavor = coronation_events.1021.a.flavor + save_scope_as = unity_character # The desc names them house = { add_unity_value = { value = minor_unity_gain @@ -4626,7 +4582,7 @@ coronation_events.1021 = { } } - stress_impact = { greedy = minor_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } ai_chance = { base = 1 @@ -4672,7 +4628,7 @@ coronation_events.1021 = { } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain greedy = minor_stress_impact_loss } @@ -4715,7 +4671,7 @@ coronation_events.1021 = { } - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain greedy = minor_stress_impact_loss } @@ -4851,15 +4807,15 @@ coronation_events.1022 = { } else = { if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = medium_influence_gain - } - else = { - add_prestige = medium_prestige_gain - } + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = medium_influence_gain + } + else = { + add_prestige = medium_prestige_gain + } } reverse_add_opinion = { @@ -4868,7 +4824,7 @@ coronation_events.1022 = { opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss arbitrary = minor_stress_impact_gain } @@ -4914,7 +4870,7 @@ coronation_events.1022 = { opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss diligent = minor_stress_impact_gain content = minor_stress_impact_gain @@ -4944,7 +4900,7 @@ coronation_events.1022 = { add_stewardship_lifestyle_xp = medium_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain lazy = minor_stress_impact_gain } @@ -5093,7 +5049,7 @@ coronation_events.1023 = { } coronation_impress_attendees_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain wrathful = minor_stress_impact_gain brave = medium_stress_impact_loss @@ -5149,7 +5105,7 @@ coronation_events.1023 = { coronation_embrace_supporters_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain gregarious = minor_stress_impact_loss vengeful = medium_stress_impact_gain @@ -5182,7 +5138,7 @@ coronation_events.1023 = { scope:detractor = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = medium_influence_loss @@ -5222,7 +5178,7 @@ coronation_events.1023 = { coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain gregarious = minor_stress_impact_gain vengeful = medium_stress_impact_loss @@ -5274,7 +5230,7 @@ coronation_events.1023 = { opinion = -25 } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -5306,7 +5262,7 @@ coronation_events.1023 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -5323,7 +5279,7 @@ coronation_events.1023 = { } } - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_loss vengeful = medium_stress_impact_gain wrathful = minor_stress_impact_gain @@ -5544,7 +5500,7 @@ coronation_events.1024 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { content = minor_stress_impact_gain humble = minor_stress_impact_gain } @@ -5594,7 +5550,7 @@ coronation_events.1024 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = medium_influence_gain @@ -5612,7 +5568,7 @@ coronation_events.1024 = { allied_through_target = scope:foreign } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain fickle = minor_stress_impact_gain paranoid = minor_stress_impact_gain @@ -5692,7 +5648,7 @@ coronation_events.1024 = { coronation_weaken_detractors_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain craven = medium_stress_impact_gain } @@ -5764,7 +5720,7 @@ coronation_events.1024 = { } - stress_impact = { + stress_and_fulfillment_impact = { content = medium_stress_impact_gain generous = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -5809,7 +5765,7 @@ coronation_events.1024 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain trusting = minor_stress_impact_gain } @@ -5857,7 +5813,7 @@ coronation_events.1024 = { } } - stress_impact = { + stress_and_fulfillment_impact = { callous = miniscule_stress_impact_gain } @@ -5877,94 +5833,94 @@ coronation_events.1024 = { # two guests argue during the feast coronation_events.1025 = { - type = activity_event - title = coronation_events.1025.t + type = activity_event + title = coronation_events.1025.t - desc = { - desc = coronation_events.1025.desc.intro - triggered_desc = { - trigger = { exists = scope:supporter } - desc = coronation_events.1025.desc.supporter - } - triggered_desc = { - trigger = { exists = scope:detractor } - desc = coronation_events.1025.desc.detractor - } - } + desc = { + desc = coronation_events.1025.desc.intro + triggered_desc = { + trigger = { exists = scope:supporter } + desc = coronation_events.1025.desc.supporter + } + triggered_desc = { + trigger = { exists = scope:detractor } + desc = coronation_events.1025.desc.detractor + } + } - left_portrait = { - trigger = { exists = scope:supporter } - character = scope:supporter - animation = drink_goblet - camera = camera_event_very_right - } + left_portrait = { + trigger = { exists = scope:supporter } + character = scope:supporter + animation = drink_goblet + camera = camera_event_very_right + } - center_portrait = { - character = root - animation = wedding_objection_start - } + center_portrait = { + character = root + animation = wedding_objection_start + } - right_portrait = { - trigger = { exists = scope:detractor } - character = scope:detractor - animation = drink_goblet - camera = camera_event_very_left - } + right_portrait = { + trigger = { exists = scope:detractor } + character = scope:detractor + animation = drink_goblet + camera = camera_event_very_left + } - theme = feast_activity - cooldown = { years = 5 } + theme = feast_activity + cooldown = { years = 5 } - trigger = { - scope:activity = { - any_attending_character = { - is_ai = yes - is_adult = yes - is_in_guest_subset = { name = supporter } - } - any_attending_character = { - is_ai = yes - is_adult = yes - is_in_guest_subset = { name = detractor } - } - } - } + trigger = { + scope:activity = { + any_attending_character = { + is_ai = yes + is_adult = yes + is_in_guest_subset = { name = supporter } + } + any_attending_character = { + is_ai = yes + is_adult = yes + is_in_guest_subset = { name = detractor } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - is_ai = yes - is_adult = yes - is_in_guest_subset = { name = supporter } - } - save_scope_as = supporter - } - random_attending_character = { - limit = { - is_ai = yes - is_adult = yes - is_in_guest_subset = { name = detractor } - } - save_scope_as = detractor - } - } - } + scope:activity = { + random_attending_character = { + limit = { + is_ai = yes + is_adult = yes + is_in_guest_subset = { name = supporter } + } + save_scope_as = supporter + } + random_attending_character = { + limit = { + is_ai = yes + is_adult = yes + is_in_guest_subset = { name = detractor } + } + save_scope_as = detractor + } + } + } option = { - name = coronation_events.1025.a - trigger = { - has_activity_intent = coronation_embrace_supporters - exists = scope:supporter - } - if = { - limit = { - reverse_opinion = { - target = scope:supporter - value > 40 - } + name = coronation_events.1025.a + trigger = { + has_activity_intent = coronation_embrace_supporters + exists = scope:supporter + } + if = { + limit = { + reverse_opinion = { + target = scope:supporter + value > 40 + } OR = { scope:supporter = { is_ai = yes } AND = { @@ -5974,25 +5930,25 @@ coronation_events.1025 = { is_ai = no } } - } - progress_towards_friend_effect = { + } + progress_towards_friend_effect = { REASON = friend_took_side_in_fight CHARACTER = scope:supporter OPINION = 30 } - } - else = { - scope:supporter = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 30 - } - } - } - if = { + } + else = { + scope:supporter = { + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 30 + } + } + } + if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -6000,125 +5956,132 @@ coronation_events.1025 = { else = { add_prestige = minor_prestige_gain } - scope:detractor = { - add_opinion = { - modifier = contempt_opinion - target = root - opinion = -20 - } - } + scope:detractor = { + add_opinion = { + modifier = contempt_opinion + target = root + opinion = -20 + } + } - stress_impact = { - gregarious = minor_stress_impact_loss - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_loss + shy = minor_stress_impact_gain + } - coronation_embrace_supporters_opinion_effect = yes + coronation_embrace_supporters_opinion_effect = yes - ai_chance = { - base = 30 - ai_value_modifier = { - ai_greed = high_chance_impact_negative_ai_value - ai_honor = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 30 + ai_value_modifier = { + ai_greed = high_chance_impact_negative_ai_value + ai_honor = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1025.b - trigger = { - has_activity_intent = coronation_impress_attendees - } + option = { + name = coronation_events.1025.b + trigger = { + has_activity_intent = coronation_impress_attendees + } - custom_tooltip = coronation_tt_positive_tiny + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - coronation_impress_attendees_opinion_effect = yes + coronation_impress_attendees_opinion_effect = yes - stress_impact = { - brave = minor_stress_impact_loss - craven = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + brave = minor_stress_impact_loss + craven = minor_stress_impact_gain + } - ai_chance = { - base = 25 - ai_value_modifier = { - ai_sociability = high_chance_impact_positive_ai_value - ai_rationality = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 25 + ai_value_modifier = { + ai_sociability = high_chance_impact_positive_ai_value + ai_rationality = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1025.d - trigger = { - has_activity_intent = coronation_weaken_detractors - exists = scope:detractor - } + option = { + name = coronation_events.1025.d + trigger = { + has_activity_intent = coronation_weaken_detractors + exists = scope:detractor + } - scope:detractor = { - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -25 - } - add_stress = medium_stress_gain - } + scope:detractor = { + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -25 + } + add_stress = medium_stress_gain + } - coronation_weaken_detractors_opinion_effect = yes + coronation_weaken_detractors_opinion_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - compassionate = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + vengeful = minor_stress_impact_loss + compassionate = minor_stress_impact_gain + } - ai_chance = { - base = 20 - ai_value_modifier = { - ai_vengefulness = high_chance_impact_positive_ai_value - ai_rationality = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 20 + ai_value_modifier = { + ai_vengefulness = high_chance_impact_positive_ai_value + ai_rationality = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1025.e - trigger = { - has_activity_intent = coronation_exalt_crown - any_vassal = { - has_vassal_stance = parochial - } - } + option = { + name = coronation_events.1025.e + trigger = { + has_activity_intent = coronation_exalt_crown + any_vassal = { + has_vassal_stance = parochial + } + } - coronation_exalt_crown_opinion_effect = yes + coronation_exalt_crown_opinion_effect = yes - stress_impact = { - arrogant = minor_stress_impact_gain - content = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_gain + content = minor_stress_impact_gain + } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_sociability = high_chance_impact_positive_ai_value - ai_rationality = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 50 + ai_value_modifier = { + ai_sociability = high_chance_impact_positive_ai_value + ai_rationality = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1025.c + option = { + name = coronation_events.1025.c + #Embrace supporters option is just this but better + trigger = { + NAND = { + has_activity_intent = coronation_embrace_supporters + exists = scope:supporter + } + } - if = { - limit = { - reverse_opinion = { - target = scope:supporter - value > 40 - } + if = { + limit = { + reverse_opinion = { + target = scope:supporter + value > 40 + } OR = { scope:supporter = { is_ai = yes } AND = { @@ -6128,42 +6091,42 @@ coronation_events.1025 = { is_ai = no } } - } - progress_towards_friend_effect = { + } + progress_towards_friend_effect = { REASON = friend_took_side_in_fight CHARACTER = scope:supporter OPINION = 20 } - } - else = { - scope:supporter = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 20 - } - } - } - scope:detractor = { - add_opinion = { - modifier = contempt_opinion - target = root - opinion = -10 - } - } + } + else = { + scope:supporter = { + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 20 + } + } + } + scope:detractor = { + add_opinion = { + modifier = contempt_opinion + target = root + opinion = -10 + } + } - stress_impact = { - ambitious = minor_stress_impact_gain - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + ambitious = minor_stress_impact_gain + shy = minor_stress_impact_gain + } - ai_chance = { - base = 40 - ai_value_modifier = { - ai_rationality = high_chance_impact_positive_ai_value - ai_sociability = medium_chance_impact_positive_ai_value - } - opinion_modifier = { + ai_chance = { + base = 40 + ai_value_modifier = { + ai_rationality = high_chance_impact_positive_ai_value + ai_sociability = medium_chance_impact_positive_ai_value + } + opinion_modifier = { opinion_target = scope:supporter multiplier = 0.5 } @@ -6171,18 +6134,18 @@ coronation_events.1025 = { scope:detractor.current_military_strength > scope:supporter.current_military_strength add = -50 } - } - } + } + } - option = { - name = coronation_events.1025.f + option = { + name = coronation_events.1025.f - if = { - limit = { - reverse_opinion = { - target = scope:detractor - value >= 0 - } + if = { + limit = { + reverse_opinion = { + target = scope:detractor + value >= 0 + } OR = { scope:detractor = { is_ai = yes } AND = { @@ -6192,42 +6155,42 @@ coronation_events.1025 = { is_ai = no } } - } - progress_towards_friend_effect = { + } + progress_towards_friend_effect = { REASON = friend_took_side_in_fight CHARACTER = scope:detractor OPINION = 20 } - } - else = { - scope:detractor = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 30 - } - } - } - scope:supporter = { - add_opinion = { - modifier = angry_opinion - target = root - opinion = -10 - } - } + } + else = { + scope:detractor = { + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 30 + } + } + } + scope:supporter = { + add_opinion = { + modifier = angry_opinion + target = root + opinion = -10 + } + } - stress_impact = { - ambitious = minor_stress_impact_gain - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + ambitious = minor_stress_impact_gain + shy = minor_stress_impact_gain + } - ai_chance = { - base = 40 - ai_value_modifier = { - ai_rationality = high_chance_impact_positive_ai_value - ai_sociability = medium_chance_impact_positive_ai_value - } - opinion_modifier = { + ai_chance = { + base = 40 + ai_value_modifier = { + ai_rationality = high_chance_impact_positive_ai_value + ai_sociability = medium_chance_impact_positive_ai_value + } + opinion_modifier = { opinion_target = scope:detractor multiplier = 0.5 } @@ -6235,218 +6198,218 @@ coronation_events.1025 = { scope:supporter.current_military_strength > scope:detractor.current_military_strength add = -50 } - } - } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # coronation cake token hunt coronation_events.1026 = { - type = activity_event - title = coronation_events.1026.t + type = activity_event + title = coronation_events.1026.t - desc = { - desc = coronation_events.1026.desc - first_valid = { - triggered_desc = { - trigger = { root = scope:token_finder } - desc = coronation_events.1026.special_desc - } - triggered_desc = { - trigger = { - scope:token_finder = { - is_in_guest_subset = { name = supporter } - } - } - desc = coronation_events.1026.supporter_desc - } - triggered_desc = { - trigger = { - scope:token_finder = { - is_in_guest_subset = { name = detractor } - } - } - desc = coronation_events.1026.detractor_desc - } - desc = coronation_events.1026.fallback_desc - } - } + desc = { + desc = coronation_events.1026.desc + first_valid = { + triggered_desc = { + trigger = { root = scope:token_finder } + desc = coronation_events.1026.special_desc + } + triggered_desc = { + trigger = { + scope:token_finder = { + is_in_guest_subset = { name = supporter } + } + } + desc = coronation_events.1026.supporter_desc + } + triggered_desc = { + trigger = { + scope:token_finder = { + is_in_guest_subset = { name = detractor } + } + } + desc = coronation_events.1026.detractor_desc + } + desc = coronation_events.1026.fallback_desc + } + } - left_portrait = { - trigger = { - NOT = { - scope:token_finder = root - } - } - character = root - animation = ecstasy - } - center_portrait = { - character = scope:token_finder - animation = toast - camera = camera_event_left - } - right_portrait = { - character = scope:guest - trigger = { exists = scope:guest } - animation = throne_room_cheer_1 - camera = camera_event_right - } + left_portrait = { + trigger = { + NOT = { + scope:token_finder = root + } + } + character = root + animation = ecstasy + } + center_portrait = { + character = scope:token_finder + animation = toast + camera = camera_event_left + } + right_portrait = { + character = scope:guest + trigger = { exists = scope:guest } + animation = throne_room_cheer_1 + camera = camera_event_right + } - theme = feast_activity - cooldown = { years = 5 } + theme = feast_activity + cooldown = { years = 5 } - trigger = { - scope:activity = { - has_activity_option = { - category = ceremony_feast_type - option = ceremony_feast_type_lavish - } - any_attending_character = { - count >= 2 - is_ai = yes - is_adult = yes - NOT = { this = root } - } - } - } + trigger = { + scope:activity = { + has_activity_option = { + category = ceremony_feast_type + option = ceremony_feast_type_lavish + } + any_attending_character = { + count >= 2 + is_ai = yes + is_adult = yes + NOT = { this = root } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - trigger_if = { - limit = { - root = { - has_activity_intent = coronation_embrace_supporters - } - } - OR = { - is_in_guest_subset = { name = supporter } - this = root - } - } - trigger_if = { - limit = { - root = { - has_activity_intent = coronation_weaken_detractors - } - } - OR = { - is_in_guest_subset = { name = detractor } - this = root - } - } - } - save_scope_as = token_finder - } - random_attending_character = { - limit = { - is_ai = yes - is_adult = yes - NOT = { this = root } - NOT = { this = scope:token_finder } - } - save_scope_as = guest - } - } - } + scope:activity = { + random_attending_character = { + limit = { + trigger_if = { + limit = { + root = { + has_activity_intent = coronation_embrace_supporters + } + } + OR = { + is_in_guest_subset = { name = supporter } + this = root + } + } + trigger_if = { + limit = { + root = { + has_activity_intent = coronation_weaken_detractors + } + } + OR = { + is_in_guest_subset = { name = detractor } + this = root + } + } + } + save_scope_as = token_finder + } + random_attending_character = { + limit = { + is_ai = yes + is_adult = yes + NOT = { this = root } + NOT = { this = scope:token_finder } + } + save_scope_as = guest + } + } + } - option = { - name = coronation_events.1026.special - trigger = { - scope:token_finder = root - } + option = { + name = coronation_events.1026.special + trigger = { + scope:token_finder = root + } - add_prestige = medium_prestige_gain - if = { - limit = { - has_legitimacy = yes - } - add_legitimacy = minor_legitimacy_gain - } - else_if = { - limit = { - government_has_flag = government_has_merit - } - change_merit = medium_merit_gain - } - else = { - add_prestige = minor_prestige_gain - } + add_prestige = medium_prestige_gain + if = { + limit = { + has_legitimacy = yes + } + add_legitimacy = minor_legitimacy_gain + } + else_if = { + limit = { + government_has_flag = government_has_merit + } + change_merit = medium_merit_gain + } + else = { + add_prestige = minor_prestige_gain + } - scope:activity = { - every_attending_character = { - limit = { NOT = { this = root } } + scope:activity = { + every_attending_character = { + limit = { NOT = { this = root } } custom = custom.every_attending_character - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 10 - } - } - } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 10 + } + } + } - custom_tooltip = coronation_tt_positive_tiny - scope:activity = { activity_special_type_progression_tiny = yes } + custom_tooltip = coronation_tt_positive_tiny + scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - stress_impact = { - arrogant = minor_stress_impact_loss - humble = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_loss + humble = minor_stress_impact_gain + } - ai_chance = { - base = 500 - } - } + ai_chance = { + base = 500 + } + } - option = { - name = coronation_events.1026.a - trigger = { - has_activity_intent = coronation_impress_attendees - NOT = { - root = scope:token_finder - } - } + option = { + name = coronation_events.1026.a + trigger = { + has_activity_intent = coronation_impress_attendees + NOT = { + root = scope:token_finder + } + } coronation_impress_attendees_opinion_effect = yes custom_tooltip = coronation_tt_positive_tiny - coronation_add_magnificence_log_effect = { + coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - NOT = { this = root } - } - custom = custom.every_attending_character - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 5 - } - } - activity_special_type_progression_tiny = yes - } + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + NOT = { this = root } + } + custom = custom.every_attending_character + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 5 + } + } + activity_special_type_progression_tiny = yes + } - if = { + if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -6455,37 +6418,37 @@ coronation_events.1026 = { add_prestige = minor_prestige_gain } - stress_impact = { - brave = minor_stress_impact_loss - craven = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + brave = minor_stress_impact_loss + craven = minor_stress_impact_gain + } - ai_chance = { - base = 30 - modifier = { - factor = 0.5 - has_trait = craven - } - ai_value_modifier = { + ai_chance = { + base = 30 + modifier = { + factor = 0.5 + has_trait = craven + } + ai_value_modifier = { ai_honor = high_chance_impact_positive_ai_value ai_sociability = high_chance_impact_positive_ai_value } - } - } + } + } option = { - name = coronation_events.1026.b - trigger = { - has_activity_intent = coronation_embrace_supporters - scope:token_finder = { + name = coronation_events.1026.b + trigger = { + has_activity_intent = coronation_embrace_supporters + scope:token_finder = { is_in_guest_subset = { name = supporter } } - NOT = { - root = scope:token_finder - } - } + NOT = { + root = scope:token_finder + } + } - pay_short_term_gold = { + pay_short_term_gold = { target = scope:token_finder gold = activity_minor_gold_value } @@ -6512,64 +6475,64 @@ coronation_events.1026 = { OPINION = 20 } } - else = { - scope:token_finder = { - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 20 - } - } - } + else = { + scope:token_finder = { + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 20 + } + } + } coronation_embrace_supporters_opinion_effect = yes - stress_impact = { - generous = minor_stress_impact_loss - greedy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + generous = minor_stress_impact_loss + greedy = minor_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - factor = 2 - has_trait = generous - } - modifier = { - factor = 0.5 - has_trait = greedy - } - ai_value_modifier = { + ai_chance = { + base = 40 + modifier = { + factor = 2 + has_trait = generous + } + modifier = { + factor = 0.5 + has_trait = greedy + } + ai_value_modifier = { ai_greed = high_chance_impact_negative_ai_value ai_sociability = high_chance_impact_positive_ai_value } - } - } + } + } - option = { - name = coronation_events.1026.c - trigger = { - has_activity_intent = coronation_weaken_detractors - scope:token_finder = { + option = { + name = coronation_events.1026.c + trigger = { + has_activity_intent = coronation_weaken_detractors + scope:token_finder = { is_in_guest_subset = { name = detractor } } - NOT = { - root = scope:token_finder - } - } + NOT = { + root = scope:token_finder + } + } - scope:token_finder = { - add_stress = medium_stress_gain - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -15 - } - } - if = { + scope:token_finder = { + add_stress = medium_stress_gain + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -15 + } + } + if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -6578,156 +6541,156 @@ coronation_events.1026 = { add_prestige = minor_prestige_gain } - coronation_weaken_detractors_opinion_effect = yes + coronation_weaken_detractors_opinion_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - compassionate = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + vengeful = minor_stress_impact_loss + compassionate = minor_stress_impact_gain + } - ai_chance = { - base = 25 - modifier = { - add = 20 - has_trait = vengeful - } - modifier = { - factor = 0.5 - has_trait = compassionate - } - ai_value_modifier = { + ai_chance = { + base = 25 + modifier = { + add = 20 + has_trait = vengeful + } + modifier = { + factor = 0.5 + has_trait = compassionate + } + ai_value_modifier = { ai_honor = high_chance_impact_negative_ai_value ai_sociability = high_chance_impact_negative_ai_value } - } - } + } + } - option = { - name = coronation_events.1026.d - trigger = { - has_activity_intent = coronation_exalt_crown - NOT = { - root = scope:token_finder - } - exists = dynasty - scope:token_finder.dynasty ?= root.dynasty - } - dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } + option = { + name = coronation_events.1026.d + trigger = { + has_activity_intent = coronation_exalt_crown + NOT = { + root = scope:token_finder + } + exists = dynasty + scope:token_finder.dynasty ?= root.dynasty + } + dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } coronation_exalt_crown_opinion_effect = yes - stress_impact = { - arrogant = minor_stress_impact_loss - content = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_loss + content = minor_stress_impact_gain + } - ai_chance = { - base = 50 - modifier = { - add = 10 - has_trait = arrogant - } - modifier = { - factor = 0.5 - has_trait = content - } - ai_value_modifier = { + ai_chance = { + base = 50 + modifier = { + add = 10 + has_trait = arrogant + } + modifier = { + factor = 0.5 + has_trait = content + } + ai_value_modifier = { ai_honor = high_chance_impact_negative_ai_value ai_sociability = high_chance_impact_negative_ai_value } - } - } + } + } - option = { - name = coronation_events.1026.e + option = { + name = coronation_events.1026.e - stress_impact = { - base = minor_stress_impact_loss - gluttonous = minor_stress_impact_loss - temperate = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + base = minor_stress_impact_loss + gluttonous = minor_stress_impact_loss + temperate = minor_stress_impact_gain + } - ai_chance = { - base = 60 - modifier = { - add = 20 - has_trait = gluttonous - } - modifier = { - factor = 0.5 - has_trait = temperate - } - ai_value_modifier = { + ai_chance = { + base = 60 + modifier = { + add = 20 + has_trait = gluttonous + } + modifier = { + factor = 0.5 + has_trait = temperate + } + ai_value_modifier = { ai_sociability = medium_chance_impact_negative_ai_value ai_honor = medium_chance_impact_negative_ai_value } - } - } + } + } - option = { - name = coronation_events.1026.f + option = { + name = coronation_events.1026.f - add_piety = minor_piety_gain - stress_impact = { - gluttonous = minor_stress_impact_gain - temperate = minor_stress_impact_loss - } + add_piety = minor_piety_gain + stress_and_fulfillment_impact = { + gluttonous = minor_stress_impact_gain + temperate = minor_stress_impact_loss + } - ai_chance = { - base = 30 - modifier = { - add = 30 - has_trait = temperate - } - modifier = { - factor = 0.5 - has_trait = gluttonous - } - ai_value_modifier = { + ai_chance = { + base = 30 + modifier = { + add = 30 + has_trait = temperate + } + modifier = { + factor = 0.5 + has_trait = gluttonous + } + ai_value_modifier = { ai_sociability = high_chance_impact_positive_ai_value ai_honor = medium_chance_impact_positive_ai_value } - } - } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # a guest is highlighted during a choreography coronation_events.1027 = { - type = activity_event - title = coronation_events.1027.t - desc = { - desc = coronation_events.1027.desc - first_valid = { - triggered_desc = { - trigger = { root = scope:highlighted_guest } - desc = coronation_events.1027.special_desc - } - triggered_desc = { - trigger = { - scope:highlighted_guest = { - is_in_guest_subset = { name = supporter } - } - } - desc = coronation_events.1027.supporter_desc - } - triggered_desc = { - trigger = { - scope:highlighted_guest = { - is_in_guest_subset = { name = detractor } - } - } - desc = coronation_events.1027.detractor_desc - } - desc = coronation_events.1027.fallback_desc - } - } + type = activity_event + title = coronation_events.1027.t + desc = { + desc = coronation_events.1027.desc + first_valid = { + triggered_desc = { + trigger = { root = scope:highlighted_guest } + desc = coronation_events.1027.special_desc + } + triggered_desc = { + trigger = { + scope:highlighted_guest = { + is_in_guest_subset = { name = supporter } + } + } + desc = coronation_events.1027.supporter_desc + } + triggered_desc = { + trigger = { + scope:highlighted_guest = { + is_in_guest_subset = { name = detractor } + } + } + desc = coronation_events.1027.detractor_desc + } + desc = coronation_events.1027.fallback_desc + } + } - left_portrait = { + left_portrait = { character = root animation = throne_room_applaud_1 } @@ -6742,93 +6705,93 @@ coronation_events.1027 = { animation = dancing } - theme = feast_activity - cooldown = { years = 5 } + theme = feast_activity + cooldown = { years = 5 } - trigger = { + trigger = { scope:activity = { NOT = { has_activity_option = { - category = ceremony_feast_type - option = ceremony_feast_type_austere - } + category = ceremony_feast_type + option = ceremony_feast_type_austere + } } any_attending_character = { - is_adult = yes - is_ai = yes - } - } + is_adult = yes + is_ai = yes + } + } } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - is_adult = yes - is_ai = yes - } - create_character_memory = { + scope:activity = { + random_attending_character = { + limit = { + is_adult = yes + is_ai = yes + } + create_character_memory = { type = coronation_highlighted_memory participants = { host = scope:host } } - save_scope_as = highlighted_guest - } - } - } + save_scope_as = highlighted_guest + } + } + } - option = { - name = coronation_events.1027.special - trigger = { - root = scope:highlighted_guest - } + option = { + name = coronation_events.1027.special + trigger = { + root = scope:highlighted_guest + } - add_prestige = medium_prestige_gain - add_legitimacy = minor_legitimacy_gain + add_prestige = medium_prestige_gain + add_legitimacy = minor_legitimacy_gain - scope:activity = { - every_attending_character = { - limit = { NOT = { this = root } } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 10 - } - } - } + scope:activity = { + every_attending_character = { + limit = { NOT = { this = root } } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 10 + } + } + } - custom_tooltip = coronation_tt_positive_tiny - scope:activity = { activity_special_type_progression_tiny = yes } + custom_tooltip = coronation_tt_positive_tiny + scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - stress_impact = { - gregarious = minor_stress_impact_loss - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_loss + shy = minor_stress_impact_gain + } - ai_chance = { - base = 500 - ai_value_modifier = { + ai_chance = { + base = 500 + ai_value_modifier = { ai_sociability = high_chance_impact_positive_ai_value } - } - } + } + } - option = { - name = coronation_events.1027.a - trigger = { - has_activity_intent = coronation_impress_attendees - NOT = { root = scope:highlighted_guest } - } + option = { + name = coronation_events.1027.a + trigger = { + has_activity_intent = coronation_impress_attendees + NOT = { root = scope:highlighted_guest } + } - custom_tooltip = coronation_tt_positive_tiny + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny @@ -6837,33 +6800,33 @@ coronation_events.1027 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { - gregarious = minor_stress_impact_loss - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_loss + shy = minor_stress_impact_gain + } - ai_chance = { - base = 30 - ai_value_modifier = { + ai_chance = { + base = 30 + ai_value_modifier = { ai_sociability = medium_chance_impact_positive_ai_value } - } - } + } + } - option = { - name = coronation_events.1027.b - trigger = { - has_activity_intent = coronation_embrace_supporters - scope:highlighted_guest = { - is_in_guest_subset = { name = supporter } - } - } - if = { - limit = { - reverse_opinion = { - target = scope:highlighted_guest - value > 50 - } + option = { + name = coronation_events.1027.b + trigger = { + has_activity_intent = coronation_embrace_supporters + scope:highlighted_guest = { + is_in_guest_subset = { name = supporter } + } + } + if = { + limit = { + reverse_opinion = { + target = scope:highlighted_guest + value > 50 + } OR = { scope:highlighted_guest = { is_ai = yes } AND = { @@ -6873,25 +6836,25 @@ coronation_events.1027 = { is_ai = no } } - } - progress_towards_friend_effect = { - CHARACTER = scope:highlighted_guest - REASON = friend_dance - OPINION = 20 - } - } - else = { - reverse_add_opinion = { - target = scope:highlighted_guest - modifier = spirits_lifted_opinion - opinion = 20 - } - } + } + progress_towards_friend_effect = { + CHARACTER = scope:highlighted_guest + REASON = friend_dance + OPINION = 20 + } + } + else = { + reverse_add_opinion = { + target = scope:highlighted_guest + modifier = spirits_lifted_opinion + opinion = 20 + } + } - scope:highlighted_guest = { - if = { + scope:highlighted_guest = { + if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -6899,46 +6862,46 @@ coronation_events.1027 = { else = { add_prestige = minor_prestige_gain } - } + } - coronation_embrace_supporters_opinion_effect = yes + coronation_embrace_supporters_opinion_effect = yes - stress_impact = { - generous = minor_stress_impact_loss - arrogant = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + generous = minor_stress_impact_loss + arrogant = minor_stress_impact_gain + } - ai_chance = { - base = 40 - ai_value_modifier = { + ai_chance = { + base = 40 + ai_value_modifier = { ai_greed = medium_chance_impact_negative_ai_value ai_compassion = medium_chance_impact_positive_ai_value ai_sociability = high_chance_impact_positive_ai_value } - } - } + } + } - option = { - name = coronation_events.1027.c - trigger = { - has_activity_intent = coronation_weaken_detractors - scope:highlighted_guest = { - is_in_guest_subset = { name = detractor } - } - } + option = { + name = coronation_events.1027.c + trigger = { + has_activity_intent = coronation_weaken_detractors + scope:highlighted_guest = { + is_in_guest_subset = { name = detractor } + } + } - scope:highlighted_guest = { - add_stress = medium_stress_gain - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -15 - } - } + scope:highlighted_guest = { + add_stress = medium_stress_gain + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -15 + } + } - if = { + if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = scope:activity.activity_host } change_influence = minor_influence_gain @@ -6947,125 +6910,125 @@ coronation_events.1027 = { add_prestige = minor_prestige_gain } - coronation_weaken_detractors_opinion_effect = yes + coronation_weaken_detractors_opinion_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - compassionate = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + vengeful = minor_stress_impact_loss + compassionate = minor_stress_impact_gain + } - ai_chance = { - base = 25 - ai_value_modifier = { + ai_chance = { + base = 25 + ai_value_modifier = { ai_honor = high_chance_impact_negative_ai_value ai_sociability = high_chance_impact_negative_ai_value } - } - } + } + } - option = { - name = coronation_events.1027.d - trigger = { - has_activity_intent = coronation_exalt_crown - NOT = { root = scope:highlighted_guest } - } + option = { + name = coronation_events.1027.d + trigger = { + has_activity_intent = coronation_exalt_crown + NOT = { root = scope:highlighted_guest } + } - dynasty = { + dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } coronation_exalt_crown_opinion_effect = yes - stress_impact = { - arrogant = minor_stress_impact_loss - humble = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_loss + humble = minor_stress_impact_gain + } - ai_chance = { - base = 50 - ai_value_modifier = { + ai_chance = { + base = 50 + ai_value_modifier = { ai_zeal = medium_chance_impact_positive_ai_value } - } - } + } + } - option = { - name = coronation_events.1027.e + option = { + name = coronation_events.1027.e - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - NOT = { this = root } - } - custom = custom.every_attending_character - add_opinion = { - target = root - modifier = friendliness_opinion - opinion = 10 - } - } - } + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + NOT = { this = root } + } + custom = custom.every_attending_character + add_opinion = { + target = root + modifier = friendliness_opinion + opinion = 10 + } + } + } - stress_impact = { - gregarious = minor_stress_impact_loss - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_loss + shy = minor_stress_impact_gain + } - ai_chance = { - base = 45 - modifier = { - add = 10 - has_trait = gregarious - } - modifier = { - factor = 0.5 - has_trait = shy - } - ai_value_modifier = { - ai_sociability = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 45 + modifier = { + add = 10 + has_trait = gregarious + } + modifier = { + factor = 0.5 + has_trait = shy + } + ai_value_modifier = { + ai_sociability = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1027.f + option = { + name = coronation_events.1027.f - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - NOT = { this = root } - } - custom = custom.every_attending_character - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -5 - } - } - } + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + NOT = { this = root } + } + custom = custom.every_attending_character + add_opinion = { + target = root + modifier = disappointed_opinion + opinion = -5 + } + } + } - stress_impact = { - base = minor_stress_impact_loss - shy = minor_stress_impact_loss - gregarious = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + base = minor_stress_impact_loss + shy = minor_stress_impact_loss + gregarious = minor_stress_impact_gain + } - ai_chance = { - base = 35 - modifier = { - add = 15 - has_trait = shy - } - modifier = { - factor = 0.4 - has_trait = gregarious - } - ai_value_modifier = { - ai_sociability = high_chance_impact_negative_ai_value - } - } + ai_chance = { + base = 35 + modifier = { + add = 15 + has_trait = shy + } + modifier = { + factor = 0.4 + has_trait = gregarious + } + ai_value_modifier = { + ai_sociability = high_chance_impact_negative_ai_value + } + } } after = { @@ -7076,31 +7039,31 @@ coronation_events.1027 = { # Multi-faith blessing offer during the Coronation Ceremony coronation_events.1028 = { - type = activity_event - title = coronation_events.1028.t + type = activity_event + title = coronation_events.1028.t - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - left_portrait = { - character = root - animation = interested - } + left_portrait = { + character = root + animation = interested + } - center_portrait = { - character = scope:clergy_representative - animation = ecstasy - camera = camera_event_right - } + center_portrait = { + character = scope:clergy_representative + animation = ecstasy + camera = camera_event_right + } - right_portrait = { - character = scope:guest - animation = stunned - } + right_portrait = { + character = scope:guest + animation = stunned + } - desc = { - first_valid = { - triggered_desc = { + desc = { + first_valid = { + triggered_desc = { trigger = { scope:guest = { is_in_guest_subset = { name = detractor } @@ -7117,129 +7080,129 @@ coronation_events.1028 = { desc = coronation_events.1028.supporter.desc } desc = coronation_events.1028.fallback.desc - } - } + } + } - trigger = { - faith = { + trigger = { + rite = { NOT = { - has_doctrine = doctrine_pluralism_pluralistic + rite_has_doctrine = doctrine_pluralism_pluralistic } } - scope:activity = { - any_attending_character = { - is_adult = yes - is_ai = yes - NOT = { - faith = root.faith - has_trait = cynical - } - } - trigger_if = { - limit = { - root = { has_activity_intent = coronation_weaken_detractors } - } - any_attending_character = { - is_adult = yes - is_ai = yes - is_in_guest_subset = { name = detractor } - faith = root.faith - } - } - trigger_if = { - limit = { - root = { has_activity_intent = coronation_embrace_supporters } - } - any_attending_character = { - is_adult = yes - is_ai = yes - is_in_guest_subset = { name = supporter } - faith = root.faith - } - } - trigger_else = { - any_attending_character = { - is_adult = yes - is_ai = yes - faith = root.faith - } - } - } - } + scope:activity = { + any_attending_character = { + is_adult = yes + is_ai = yes + NOT = { + faith = root.faith + has_trait = cynical + } + } + trigger_if = { + limit = { + root = { has_activity_intent = coronation_weaken_detractors } + } + any_attending_character = { + is_adult = yes + is_ai = yes + is_in_guest_subset = { name = detractor } + faith = root.faith + } + } + trigger_if = { + limit = { + root = { has_activity_intent = coronation_embrace_supporters } + } + any_attending_character = { + is_adult = yes + is_ai = yes + is_in_guest_subset = { name = supporter } + faith = root.faith + } + } + trigger_else = { + any_attending_character = { + is_adult = yes + is_ai = yes + faith = root.faith + } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - if = { - limit = { - has_activity_intent = coronation_weaken_detractors - } - scope:activity = { - random_attending_character = { - limit = { - is_adult = yes - is_ai = yes - is_in_guest_subset = { name = detractor } - faith = root.faith - } - save_scope_as = guest - } - } - } - else_if = { - limit = { - has_activity_intent = coronation_embrace_supporters - } - scope:activity = { - random_attending_character = { - limit = { - is_adult = yes - is_ai = yes - is_in_guest_subset = { name = supporter } - faith = root.faith - } - save_scope_as = guest - } - } - } - else = { - scope:activity = { - random_attending_character = { - limit = { - is_adult = yes - is_ai = yes - faith = root.faith - } - save_scope_as = guest - } - } - } - scope:activity = { - random_attending_character = { - limit = { - is_adult = yes - NOT = { - faith = root.faith - has_trait = cynical - } - } - save_scope_as = clergy_representative - } - } - } + if = { + limit = { + has_activity_intent = coronation_weaken_detractors + } + scope:activity = { + random_attending_character = { + limit = { + is_adult = yes + is_ai = yes + is_in_guest_subset = { name = detractor } + faith = root.faith + } + save_scope_as = guest + } + } + } + else_if = { + limit = { + has_activity_intent = coronation_embrace_supporters + } + scope:activity = { + random_attending_character = { + limit = { + is_adult = yes + is_ai = yes + is_in_guest_subset = { name = supporter } + faith = root.faith + } + save_scope_as = guest + } + } + } + else = { + scope:activity = { + random_attending_character = { + limit = { + is_adult = yes + is_ai = yes + faith = root.faith + } + save_scope_as = guest + } + } + } + scope:activity = { + random_attending_character = { + limit = { + is_adult = yes + NOT = { + faith = root.faith + has_trait = cynical + } + } + save_scope_as = clergy_representative + } + } + } - option = { - name = coronation_events.1028.supporter - trigger = { - has_activity_intent = coronation_embrace_supporters - scope:guest = { + option = { + name = coronation_events.1028.supporter + trigger = { + has_activity_intent = coronation_embrace_supporters + scope:guest = { is_in_guest_subset = { name = supporter } } - } - add_learning_lifestyle_xp = medium_lifestyle_xp - add_piety = medium_piety_gain - if = { + } + add_learning_lifestyle_xp = medium_lifestyle_xp + add_piety = medium_piety_gain + if = { limit = { can_set_relation_friend_trigger = { CHARACTER = scope:guest } scope:guest = { @@ -7266,10 +7229,10 @@ coronation_events.1028 = { } else = { reverse_add_opinion = { - target = scope:guest - modifier = kindness_opinion - opinion = 20 - } + target = scope:guest + modifier = kindness_opinion + opinion = 20 + } } @@ -7280,35 +7243,35 @@ coronation_events.1028 = { coronation_embrace_supporters_opinion_effect = yes - stress_impact = { - shy = minor_stress_impact_gain - gregarious = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + shy = minor_stress_impact_gain + gregarious = minor_stress_impact_loss + } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_zeal = high_chance_impact_negative_ai_value - ai_sociability = medium_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 50 + ai_value_modifier = { + ai_zeal = high_chance_impact_negative_ai_value + ai_sociability = medium_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1028.detractor - trigger = { - has_activity_intent = coronation_weaken_detractors - scope:guest = { + option = { + name = coronation_events.1028.detractor + trigger = { + has_activity_intent = coronation_weaken_detractors + scope:guest = { is_in_guest_subset = { name = detractor } } - faith = { - faith_hostility_level = { + faith = { + faith_hostility_level = { target = scope:clergy_representative.faith value > faith_astray_level } - } - } - add_intrigue_lifestyle_xp = medium_lifestyle_xp + } + } + add_intrigue_lifestyle_xp = medium_lifestyle_xp scope:guest = { @@ -7317,8 +7280,8 @@ coronation_events.1028 = { } scope:activity = { - every_attending_character = { - limit = { + every_attending_character = { + limit = { NOT = { has_trait = cynical } @@ -7327,39 +7290,39 @@ coronation_events.1028 = { custom = coronation_events.1028.detractor.tt - add_opinion = { - target = scope:guest - modifier = impious_opinion - opinion = -10 - } - } - } + add_opinion = { + target = scope:guest + modifier = impious_opinion + opinion = -10 + } + } + } - coronation_weaken_detractors_opinion_effect = yes + coronation_weaken_detractors_opinion_effect = yes - stress_impact = { - forgiving = minor_stress_impact_gain - vengeful = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + forgiving = minor_stress_impact_gain + vengeful = minor_stress_impact_loss + } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_honor = high_chance_impact_negative_ai_value - ai_vengefulness = medium_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 50 + ai_value_modifier = { + ai_honor = high_chance_impact_negative_ai_value + ai_vengefulness = medium_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1028.c # Publicly rebuke the request + option = { + name = coronation_events.1028.c # Publicly rebuke the request - trigger = { - has_trait = zealous - } - add_piety = major_piety_gain + trigger = { + has_trait = zealous + } + add_piety = major_piety_gain - random = { + random = { chance = { value = 10 if = { @@ -7399,67 +7362,67 @@ coronation_events.1028 = { add_trait = holy_warrior } - scope:clergy_representative = { - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -15 - } - add_stress = minor_stress_gain - } + scope:clergy_representative = { + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -15 + } + add_stress = minor_stress_gain + } - scope:activity = { - every_attending_character = { - limit = { - NOT = { - this = scope:clergy_representative - } - has_trait = zealous - faith = root.faith - NOT = { this = root } - } - custom = coronation_events.1028.c.tt - add_opinion = { - target = root - modifier = pious_opinion - opinion = 20 - } - } - } + scope:activity = { + every_attending_character = { + limit = { + NOT = { + this = scope:clergy_representative + } + has_trait = zealous + faith = root.faith + NOT = { this = root } + } + custom = coronation_events.1028.c.tt + add_opinion = { + target = root + modifier = pious_opinion + opinion = 20 + } + } + } - stress_impact = { - zealous = minor_stress_impact_loss - cynical = major_stress_impact_gain - compassionate = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss + cynical = major_stress_impact_gain + compassionate = minor_stress_impact_gain + } - ai_chance = { - base = 30 - ai_value_modifier = { - ai_zeal = high_chance_impact_positive_ai_value - ai_sociability = high_chance_impact_negative_ai_value - } - } - } + ai_chance = { + base = 30 + ai_value_modifier = { + ai_zeal = high_chance_impact_positive_ai_value + ai_sociability = high_chance_impact_negative_ai_value + } + } + } - option = { - name = coronation_events.1028.a - trigger = { - has_trait = cynical - } + option = { + name = coronation_events.1028.a + trigger = { + has_trait = cynical + } add_character_modifier = { modifier = tolerant_opinion_modifier years = 25 } - scope:guest = { - coronation_move_towards_supporter_effect = { CHARACTER = scope:guest } - add_opinion = { - target = root - modifier = kindness_opinion - opinion = 20 - } - } + scope:guest = { + coronation_move_towards_supporter_effect = { CHARACTER = scope:guest } + add_opinion = { + target = root + modifier = kindness_opinion + opinion = 20 + } + } add_piety = { value = miniscule_piety_loss if = { @@ -7538,8 +7501,8 @@ coronation_events.1028 = { } scope:activity = { - every_attending_character = { - limit = { + every_attending_character = { + limit = { has_trait = zealous faith = root.faith } @@ -7551,21 +7514,21 @@ coronation_events.1028 = { modifier = impious_opinion opinion = -10 } - } - } + } + } - if = { - limit = { - scope:activity = { - any_attending_character = { - faith = scope:clergy_representative.faith - this != scope:clergy_representative - } - } - } - scope:activity = { - every_attending_character = { - limit = { + if = { + limit = { + scope:activity = { + any_attending_character = { + faith = scope:clergy_representative.faith + this != scope:clergy_representative + } + } + } + scope:activity = { + every_attending_character = { + limit = { faith = scope:clergy_representative.faith NOT = { this = scope:clergy_representative @@ -7577,102 +7540,102 @@ coronation_events.1028 = { modifier = pleased_opinion opinion = 10 } - } - } - } + } + } + } - stress_impact = { - cynical = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + cynical = minor_stress_impact_loss + } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_zeal = high_chance_impact_negative_ai_value - ai_sociability = medium_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 50 + ai_value_modifier = { + ai_zeal = high_chance_impact_negative_ai_value + ai_sociability = medium_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1028.b # Politely decline alternative blessings + option = { + name = coronation_events.1028.b # Politely decline alternative blessings - trigger = { - NOR = { - has_trait = zealous - has_trait = cynical - } - } - add_piety = medium_piety_gain + trigger = { + NOR = { + has_trait = zealous + has_trait = cynical + } + } + add_piety = medium_piety_gain - scope:activity = { - every_attending_character = { - limit = { + scope:activity = { + every_attending_character = { + limit = { has_trait = zealous faith = root.faith } custom = coronation_events.1028.b.tt - add_opinion = { - target = root - modifier = pious_opinion - opinion = 10 - } - } - } + add_opinion = { + target = root + modifier = pious_opinion + opinion = 10 + } + } + } - stress_impact = { - zealous = minor_stress_impact_loss - cynical = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss + cynical = minor_stress_impact_gain + } - ai_chance = { - base = 40 - ai_value_modifier = { - ai_zeal = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 40 + ai_value_modifier = { + ai_zeal = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1028.d # Evade the question entirely - if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = minor_influence_gain - } - else = { - add_prestige = minor_prestige_gain - } + option = { + name = coronation_events.1028.d # Evade the question entirely + if = { + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = minor_influence_gain + } + else = { + add_prestige = minor_prestige_gain + } - stress_impact = { - cynical = minor_stress_impact_loss - honest = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + cynical = minor_stress_impact_loss + honest = minor_stress_impact_gain + } - ai_chance = { - base = 20 - ai_value_modifier = { - ai_honor = medium_chance_impact_negative_ai_value - } - } - } + ai_chance = { + base = 20 + ai_value_modifier = { + ai_honor = medium_chance_impact_negative_ai_value + } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # you discover some forgotten ancient rights coronation_events.1029 = { - type = activity_event - title = coronation_events.1029.t + type = activity_event + title = coronation_events.1029.t - desc = { + desc = { first_valid = { triggered_desc = { trigger = { @@ -7702,100 +7665,98 @@ coronation_events.1029 = { } } - center_portrait = { - character = root - animation = interested - camera = camera_event_left - } + center_portrait = { + character = root + animation = interested + camera = camera_event_left + } - right_portrait = { - character = scope:priest - animation = chancellor - } + right_portrait = { + character = scope:priest + animation = chancellor + } - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - trigger = { - coronation_living_officiator_trigger = yes - primary_title.previous_holder ?= { - exists = yes - } - } + trigger = { + coronation_living_officiator_trigger = yes + exists = primary_title.previous_holder + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - grab_mythical_founder_effect = yes - involved_activity.var:officiator ?= { - save_scope_as = priest - } - root.primary_title = { - save_scope_as = primary_title - } + grab_mythical_founder_effect = yes + involved_activity.var:officiator ?= { + save_scope_as = priest + } + root.primary_title = { + save_scope_as = primary_title + } - if = { - limit = { - has_activity_intent = coronation_embrace_supporters - } - scope:activity = { - random_guest_subset = { - name = supporter - save_scope_as = guest - } - } - } - else_if = { - limit = { - has_activity_intent = coronation_weaken_detractors - } - scope:activity = { - random_guest_subset = { - name = detractor - save_scope_as = guest - } - } - } - else = { - scope:activity = { - random_attending_character = { - limit = { is_ai = yes } - save_scope_as = guest - } - } - } - } + if = { + limit = { + has_activity_intent = coronation_embrace_supporters + } + scope:activity = { + random_guest_subset = { + name = supporter + save_scope_as = guest + } + } + } + else_if = { + limit = { + has_activity_intent = coronation_weaken_detractors + } + scope:activity = { + random_guest_subset = { + name = detractor + save_scope_as = guest + } + } + } + else = { + scope:activity = { + random_attending_character = { + limit = { is_ai = yes } + save_scope_as = guest + } + } + } + } - option = { - name = coronation_events.1029.a - trigger = { - has_activity_intent = coronation_exalt_crown - has_ce1_dlc_trigger = yes - } + option = { + name = coronation_events.1029.a + trigger = { + has_activity_intent = coronation_exalt_crown + has_ce1_dlc_trigger = yes + } - gain_legitimizing_legend_seed_tooltip_effect = yes - legend_seed_great_deed_title_effect = { - TITLE = root.primary_title - } + gain_legitimizing_legend_seed_tooltip_effect = yes + legend_seed_great_deed_title_effect = { + TITLE = root.primary_title + } coronation_exalt_crown_opinion_effect = yes - stress_impact = { ambitious = minor_stress_impact_loss } - ai_chance = { base = 50 } - } + stress_and_fulfillment_impact = { ambitious = minor_stress_impact_loss } + ai_chance = { base = 50 } + } - option = { - name = coronation_events.1029.b - trigger = { - has_activity_intent = coronation_embrace_supporters - } - if = { - limit = { - reverse_opinion = { - target = scope:guest - value > 30 - } + option = { + name = coronation_events.1029.b + trigger = { + has_activity_intent = coronation_embrace_supporters + } + if = { + limit = { + reverse_opinion = { + target = scope:guest + value > 30 + } OR = { scope:guest = { is_ai = yes } AND = { @@ -7805,85 +7766,85 @@ coronation_events.1029 = { is_ai = no } } - } - scope:guest = { - progress_towards_friend_effect = { - REASON = friend_ancestral_vow - CHARACTER = root - OPINION = 20 - } - } - } - else = { - reverse_add_opinion = { - target = scope:guest - modifier = loyalty_opinion - opinion = 25 - } - } + } + scope:guest = { + progress_towards_friend_effect = { + REASON = friend_ancestral_vow + CHARACTER = root + OPINION = 20 + } + } + } + else = { + reverse_add_opinion = { + target = scope:guest + modifier = loyalty_opinion + opinion = 25 + } + } - coronation_embrace_supporters_opinion_effect = yes + coronation_embrace_supporters_opinion_effect = yes - stress_impact = { generous = minor_stress_impact_loss } - ai_chance = { - base = 40 - ai_value_modifier = { - ai_sociability = high_chance_impact_positive_ai_value - } - } - } + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss } + ai_chance = { + base = 40 + ai_value_modifier = { + ai_sociability = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1029.c - trigger = { - has_activity_intent = coronation_weaken_detractors - } - if = { - limit = { - scope:guest = { is_ai = yes } - } - add_hook_if_possible_default_length_effect = { + option = { + name = coronation_events.1029.c + trigger = { + has_activity_intent = coronation_weaken_detractors + } + if = { + limit = { + scope:guest = { is_ai = yes } + } + add_hook_if_possible_default_length_effect = { TARGET = scope:guest TYPE = manipulation_hook } - } + } coronation_move_towards_supporter_effect = { CHARACTER = scope:guest } - scope:guest = { - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -15 - } - add_stress = minor_stress_gain - } + scope:guest = { + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -15 + } + add_stress = minor_stress_gain + } - coronation_weaken_detractors_opinion_effect = yes - stress_impact = { vengeful = minor_stress_impact_loss } - ai_chance = { - base = 30 - ai_value_modifier = { - ai_vengefulness = high_chance_impact_positive_ai_value - } - } - } + coronation_weaken_detractors_opinion_effect = yes + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss } + ai_chance = { + base = 30 + ai_value_modifier = { + ai_vengefulness = high_chance_impact_positive_ai_value + } + } + } - option = { - name = coronation_events.1029.d - trigger = { - has_activity_intent = coronation_impress_attendees - diplomacy >= medium_skill_rating - } - show_as_unavailable = { - has_activity_intent = coronation_impress_attendees - diplomacy < medium_skill_rating - } + option = { + name = coronation_events.1029.d + trigger = { + has_activity_intent = coronation_impress_attendees + diplomacy >= medium_skill_rating + } + show_as_unavailable = { + has_activity_intent = coronation_impress_attendees + diplomacy < medium_skill_rating + } - custom_tooltip = coronation_tt_positive_tiny - scope:activity = { - activity_special_type_progression_tiny = yes - } + custom_tooltip = coronation_tt_positive_tiny + scope:activity = { + activity_special_type_progression_tiny = yes + } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root @@ -7891,27 +7852,27 @@ coronation_events.1029 = { coronation_impress_attendees_opinion_effect = yes - stress_impact = { brave = minor_stress_impact_loss } - ai_chance = { base = 100 } - } + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss } + ai_chance = { base = 100 } + } - option = { - name = coronation_events.1029.e - add_piety = minor_piety_gain - stress_impact = { shy = minor_stress_impact_loss } + option = { + name = coronation_events.1029.e + add_piety = minor_piety_gain + stress_and_fulfillment_impact = { shy = minor_stress_impact_loss } - ai_chance = { - base = 20 - ai_value_modifier = { - ai_honor = high_chance_impact_negative_ai_value - } - } - } + ai_chance = { + base = 20 + ai_value_modifier = { + ai_honor = high_chance_impact_negative_ai_value + } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # Scholar offers to include the coronation in their chronicle @@ -7926,57 +7887,57 @@ scripted_trigger coronation_events_1030_valid_scholar = { } coronation_events.1030 = { - type = activity_event - title = coronation_events.1030.t + type = activity_event + title = coronation_events.1030.t - desc = { - first_valid = { - triggered_desc = { - trigger = { has_activity_intent = coronation_exalt_crown } - desc = coronation_events.1030.exalt.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_impress_attendees } - desc = coronation_events.1030.impress.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_embrace_supporters } - desc = coronation_events.1030.supporters.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_weaken_detractors } - desc = coronation_events.1030.detractors.desc - } - } - } + desc = { + first_valid = { + triggered_desc = { + trigger = { has_activity_intent = coronation_exalt_crown } + desc = coronation_events.1030.exalt.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_impress_attendees } + desc = coronation_events.1030.impress.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_embrace_supporters } + desc = coronation_events.1030.supporters.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_weaken_detractors } + desc = coronation_events.1030.detractors.desc + } + } + } - center_portrait = { - character = root - animation = interested - camera = camera_event_left - } + center_portrait = { + character = root + animation = interested + camera = camera_event_left + } - right_portrait = { - character = scope:scholar - animation = storyteller - } + right_portrait = { + character = scope:scholar + animation = storyteller + } - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - trigger = { - involved_activity = { + trigger = { + involved_activity = { any_attending_character = { coronation_events_1030_valid_scholar = yes } } - } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - involved_activity = { + involved_activity = { random_attending_character = { limit = { coronation_events_1030_valid_scholar = yes @@ -7994,16 +7955,16 @@ coronation_events.1030 = { save_scope_as = scholar } } - } + } - option = { - name = coronation_events.1030.a - trigger = { - has_activity_intent = coronation_exalt_crown - } + option = { + name = coronation_events.1030.a + trigger = { + has_activity_intent = coronation_exalt_crown + } - scope:scholar = { - duel = { + scope:scholar = { + duel = { skills = { learning diplomacy } value = high_skill_rating # the scholar gets it right @@ -8039,7 +8000,7 @@ coronation_events.1030 = { } else = { add_prestige = medium_prestige_gain - add_legitimacy = minor_legitimacy_gain + add_legitimacy = minor_legitimacy_gain } } } @@ -8060,25 +8021,25 @@ coronation_events.1030 = { } } } - } + } - stress_impact = { arrogant = minor_stress_impact_loss } + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } - ai_chance = { - base = 40 - } - } + ai_chance = { + base = 40 + } + } - option = { - name = coronation_events.1030.b - trigger = { - has_activity_intent = coronation_impress_attendees - } + option = { + name = coronation_events.1030.b + trigger = { + has_activity_intent = coronation_impress_attendees + } - scope:scholar = { - duel = { + scope:scholar = { + duel = { skills = { learning diplomacy } value = high_skill_rating # the scholar gets it right @@ -8093,7 +8054,7 @@ coronation_events.1030 = { title = coronation_events.1030.tt.success left_icon = scope:scholar custom_tooltip = coronation_tt_positive_tiny - scope:activity = { activity_special_type_progression_tiny = yes } + scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root @@ -8116,21 +8077,21 @@ coronation_events.1030 = { } } } - } + } - stress_impact = { gregarious = minor_stress_impact_loss } + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss } - ai_chance = { base = 50 } - } + ai_chance = { base = 50 } + } - option = { - name = coronation_events.1030.c - trigger = { - has_activity_intent = coronation_embrace_supporters - } + option = { + name = coronation_events.1030.c + trigger = { + has_activity_intent = coronation_embrace_supporters + } - scope:scholar = { - duel = { + scope:scholar = { + duel = { skills = { learning diplomacy } value = high_skill_rating # the scholar gets it right @@ -8145,17 +8106,17 @@ coronation_events.1030 = { title = coronation_events.1030.tt.success left_icon = scope:scholar scope:activity = { - every_guest_subset = { - name = supporter - limit = { is_ai = yes } - custom = every_supporter_activity - add_opinion = { - target = root - modifier = grateful_opinion - opinion = 10 - } - } - } + every_guest_subset = { + name = supporter + limit = { is_ai = yes } + custom = every_supporter_activity + add_opinion = { + target = root + modifier = grateful_opinion + opinion = 10 + } + } + } } } # the scholar gets it wrong @@ -8174,23 +8135,23 @@ coronation_events.1030 = { } } } - } + } - stress_impact = { compassionate = minor_stress_impact_loss } + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss } - ai_chance = { base = 35 } - } + ai_chance = { base = 35 } + } - option = { - name = coronation_events.1030.d - trigger = { - has_activity_intent = coronation_weaken_detractors - } + option = { + name = coronation_events.1030.d + trigger = { + has_activity_intent = coronation_weaken_detractors + } - scope:scholar = { - duel = { + scope:scholar = { + duel = { skills = { learning diplomacy } value = high_skill_rating # the scholar gets it right @@ -8205,19 +8166,19 @@ coronation_events.1030 = { title = coronation_events.1030.tt.success left_icon = scope:scholar scope:activity = { - every_guest_subset = { - name = detractor - limit = { is_ai = yes } - custom = every_detractor_tt - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -10 - } - add_stress = minor_stress_gain - add_legitimacy = miniscule_legitimacy_loss - } - } + every_guest_subset = { + name = detractor + limit = { is_ai = yes } + custom = every_detractor_tt + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -10 + } + add_stress = minor_stress_gain + add_legitimacy = miniscule_legitimacy_loss + } + } } } # the scholar gets it wrong @@ -8236,309 +8197,309 @@ coronation_events.1030 = { } } } - } + } - stress_impact = { vengeful = minor_stress_impact_loss } + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss } - ai_chance = { base = 30 } - } + ai_chance = { base = 30 } + } - option = { - name = coronation_events.1030.e + option = { + name = coronation_events.1030.e - add_piety = minor_piety_gain + add_piety = minor_piety_gain - stress_impact = { - shy = minor_stress_impact_loss - zealous = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + shy = minor_stress_impact_loss + zealous = minor_stress_impact_loss + } - ai_chance = { - base = 20 - ai_value_modifier = { - ai_zeal = high_chance_impact_positive_ai_value - } - } - } + ai_chance = { + base = 20 + ai_value_modifier = { + ai_zeal = high_chance_impact_positive_ai_value + } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # Host sets the tone for the choir coronation_events.1031 = { - type = activity_event - title = coronation_events.1031.t + type = activity_event + title = coronation_events.1031.t - desc = { - first_valid = { - triggered_desc = { - trigger = { has_activity_intent = coronation_exalt_crown } - desc = coronation_events.1031.exalt.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_impress_attendees } - desc = coronation_events.1031.impress.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_embrace_supporters } - desc = coronation_events.1031.supporters.desc - } - triggered_desc = { - trigger = { has_activity_intent = coronation_weaken_detractors } - desc = coronation_events.1031.detractors.desc - } - } - } + desc = { + first_valid = { + triggered_desc = { + trigger = { has_activity_intent = coronation_exalt_crown } + desc = coronation_events.1031.exalt.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_impress_attendees } + desc = coronation_events.1031.impress.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_embrace_supporters } + desc = coronation_events.1031.supporters.desc + } + triggered_desc = { + trigger = { has_activity_intent = coronation_weaken_detractors } + desc = coronation_events.1031.detractors.desc + } + } + } - left_portrait = { - character = root - animation = personality_honorable - } + left_portrait = { + character = root + animation = personality_honorable + } - center_portrait = { + center_portrait = { trigger = { exists = involved_activity.var:officiator } character = involved_activity.var:officiator animation = chancellor camera = camera_event_right } - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - trigger = { - coronation_living_officiator_trigger = yes - scope:activity = { - NOT = { - has_activity_option = { + trigger = { + coronation_living_officiator_trigger = yes + scope:activity = { + NOT = { + has_activity_option = { category = ceremony_size option = coronation_small_ceremony } - } - } + } + } OR = { faith.religion = religion:eastern_orthodox_religion faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } - NOR = { - government_has_flag = government_is_nomadic - government_has_flag = government_is_tribal - } - } + NOR = { + government_has_flag = government_is_nomadic + government_has_flag = government_is_tribal + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - involved_activity.var:officiator ?= { - save_scope_as = priest - } - } + involved_activity.var:officiator ?= { + save_scope_as = priest + } + } - option = { - name = coronation_events.1031.e + option = { + name = coronation_events.1031.e - trigger = { - OR = { - culture = { - has_cultural_tradition = tradition_music_theory - } - has_trait = lifestyle_poet - } - } + trigger = { + OR = { + culture = { + has_cultural_tradition = tradition_music_theory + } + has_trait = lifestyle_poet + } + } - custom_tooltip = coronation_tt_positive_medium + custom_tooltip = coronation_tt_positive_medium scope:activity = { activity_special_type_progression_medium = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_medium CHAR = root } - add_learning_skill = 1 + add_learning_skill = 1 - scope:activity = { - if = { - limit = { exists = var:officiator } - var:officiator ?= { - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 15 - } - } - } - every_attending_character = { - limit = { - is_ai = yes - OR = { - has_trait = lifestyle_poet - has_trait = scholar - } - NOT = { - this = root - } - } - custom = every_poet_scholar - add_opinion = { - target = root - modifier = amazed_opinion - opinion = 10 - } - } - } + scope:activity = { + if = { + limit = { exists = var:officiator } + var:officiator ?= { + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 15 + } + } + } + every_attending_character = { + limit = { + is_ai = yes + OR = { + has_trait = lifestyle_poet + has_trait = erudite + } + NOT = { + this = root + } + } + custom = every_poet_scholar + add_opinion = { + target = root + modifier = amazed_opinion + opinion = 10 + } + } + } - stress_impact = { - shy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + shy = minor_stress_impact_gain + } - ai_chance = { - base = 300 - } + ai_chance = { + base = 300 + } } - option = { - name = coronation_events.1031.a + option = { + name = coronation_events.1031.a - trigger = { - NOR = { - culture = { - has_cultural_tradition = tradition_music_theory - } - has_trait = lifestyle_poet - } - } - custom_tooltip = coronation_tt_positive_tiny + trigger = { + NOR = { + culture = { + has_cultural_tradition = tradition_music_theory + } + has_trait = lifestyle_poet + } + } + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - is_vassal_of = root - } - custom = every_attending_vassal - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 10 - } - } - } + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + is_vassal_of = root + } + custom = every_attending_vassal + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 10 + } + } + } - stress_impact = { arrogant = minor_stress_impact_loss } + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } - ai_chance = { base = 40 } - } + ai_chance = { base = 40 } + } - option = { - name = coronation_events.1031.b - add_diplomacy_skill = 1 - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - OR = { - is_in_guest_subset = { name = detractor } - has_trait = compassionate - } + option = { + name = coronation_events.1031.b + add_diplomacy_skill = 1 + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + OR = { + is_in_guest_subset = { name = detractor } + has_trait = compassionate + } this != root - } - custom = every_attending_detractor_or_compassionate - add_opinion = { - target = root - modifier = kindness_opinion - opinion = 10 - } - } - } + } + custom = every_attending_detractor_or_compassionate + add_opinion = { + target = root + modifier = kindness_opinion + opinion = 10 + } + } + } - stress_impact = { compassionate = minor_stress_impact_loss } + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss } - ai_chance = { base = 30 } - } + ai_chance = { base = 30 } + } - option = { - name = coronation_events.1031.c - custom_tooltip = coronation_tt_positive_tiny + option = { + name = coronation_events.1031.c + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - root.dynasty = { + root.dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } - scope:activity = { - every_guest_subset = { - name = detractor - limit = { is_ai = yes } - custom = every_detractor_tt - add_opinion = { - target = root - modifier = insulted_opinion - opinion = -10 - } - add_stress = minor_stress_gain - } - } + scope:activity = { + every_guest_subset = { + name = detractor + limit = { is_ai = yes } + custom = every_detractor_tt + add_opinion = { + target = root + modifier = insulted_opinion + opinion = -10 + } + add_stress = minor_stress_gain + } + } - stress_impact = { vengeful = minor_stress_impact_loss } + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss } - ai_chance = { base = 20 } - } + ai_chance = { base = 20 } + } - option = { - name = coronation_events.1031.d - add_stress = minor_stress_loss - stress_impact = { shy = minor_stress_impact_loss } - ai_chance = { base = 10 } - } + option = { + name = coronation_events.1031.d + add_stress = minor_stress_loss + stress_and_fulfillment_impact = { shy = minor_stress_impact_loss } + ai_chance = { base = 10 } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # You prepare a grand gesture for the ceremony coronation_events.1032 = { - type = activity_event - title = coronation_events.1032.t + type = activity_event + title = coronation_events.1032.t - desc = coronation_events.1032.desc + desc = coronation_events.1032.desc - left_portrait = { - character = root - animation = personality_compassionate - } + left_portrait = { + character = root + animation = personality_compassionate + } - center_portrait = { - trigger = { exists = scope:supporter } - character = scope:supporter - camera = camera_event_right - animation = interested_left - } + center_portrait = { + trigger = { exists = scope:supporter } + character = scope:supporter + camera = camera_event_right + animation = interested_left + } - right_portrait = { - trigger = { exists = scope:detractor } - character = scope:detractor - animation = war_over_win - } + right_portrait = { + trigger = { exists = scope:detractor } + character = scope:detractor + animation = war_over_win + } - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - trigger = { - scope:activity = { + trigger = { + scope:activity = { any_guest_subset = { name = supporter is_ai = yes @@ -8548,36 +8509,36 @@ coronation_events.1032 = { is_ai = yes } } - } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes involved_activity.var:officiator ?= { save_scope_as = priest } - scope:activity = { - random_guest_subset = { - name = supporter - limit = { - is_ai = yes - } - save_scope_as = supporter - } - random_guest_subset = { - name = detractor - limit = { - is_ai = yes - } - save_scope_as = detractor - } - } + scope:activity = { + random_guest_subset = { + name = supporter + limit = { + is_ai = yes + } + save_scope_as = supporter + } + random_guest_subset = { + name = detractor + limit = { + is_ai = yes + } + save_scope_as = detractor + } + } - if = { - limit = { - NOT = { + if = { + limit = { + NOT = { faith = { any_faith_holy_order = { holy_order_patron = root @@ -8592,29 +8553,29 @@ coronation_events.1032 = { NOT = { fp1_valid_norse_faith_for_jomsvikings_trigger = yes } } } -# trigger_if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes -# } -# highest_held_title_tier >= tier_duchy -# } -# NOT = { -# any_sub_realm_barony = { -# is_under_holy_order_lease = yes -# } -# } -# } + trigger_if = { + limit = { + any_character_struggle = { + involvement = involved + has_struggle_phase_parameter = holy_order_can_be_created_by_dukes + } + highest_held_title_tier >= tier_duchy + } + NOT = { + any_sub_realm_barony = { + is_under_holy_order_lease = yes + } + } + } - OR = { -# AND = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes -# } -# highest_held_title_tier >= tier_duchy -# } + OR = { + AND = { + any_character_struggle = { + involvement = involved + has_struggle_phase_parameter = holy_order_can_be_created_by_dukes + } + highest_held_title_tier >= tier_duchy + } highest_held_title_tier >= tier_kingdom any_held_county = { any_in_de_jure_hierarchy = { @@ -8624,41 +8585,34 @@ coronation_events.1032 = { } } } - } - random_held_county = { - limit = { - any_in_de_jure_hierarchy = { + } + random_held_county = { + limit = { + any_in_de_jure_hierarchy = { tier = tier_barony is_capital_barony = no barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } } - } - random_in_de_jure_hierarchy = { + } + random_in_de_jure_hierarchy = { limit = { tier = tier_barony is_capital_barony = no barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } } - save_scope_as = barony - } - } - } - } - - option = { - name = coronation_events.1032.c - flavor = coronation_events.1032.c.flavor - - trigger = { - exists = scope:barony - NOT = { - faith = { - any_faith_holy_order = { - holy_order_patron = root - save_temporary_scope_as = order - } + save_scope_as = barony } } + } + } + + option = { + name = coronation_events.1032.c + flavor = coronation_events.1032.c.flavor + + trigger = { + exists = scope:barony + character_can_create_holy_order_basic_trigger = yes # Jomsvikings should use their special decision if appropriate. trigger_if = { limit = { has_fp1_dlc_trigger = yes } @@ -8666,29 +8620,29 @@ coronation_events.1032 = { NOT = { fp1_valid_norse_faith_for_jomsvikings_trigger = yes } } } -# trigger_if = { -# limit = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes -# } -# highest_held_title_tier >= tier_duchy -# } -# NOT = { -# any_sub_realm_barony = { -# is_under_holy_order_lease = yes -# } -# } -# } + trigger_if = { + limit = { + any_character_struggle = { + involvement = involved + has_struggle_phase_parameter = holy_order_can_be_created_by_dukes + } + highest_held_title_tier >= tier_duchy + } + NOT = { + any_sub_realm_barony = { + is_under_holy_order_lease = yes + } + } + } - OR = { -# AND = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes -# } -# highest_held_title_tier >= tier_duchy -# } + OR = { + AND = { + any_character_struggle = { + involvement = involved + has_struggle_phase_parameter = holy_order_can_be_created_by_dukes + } + highest_held_title_tier >= tier_duchy + } highest_held_title_tier >= tier_kingdom any_held_county = { any_in_de_jure_hierarchy = { @@ -8698,9 +8652,9 @@ coronation_events.1032 = { } } } - } + } - custom_tooltip = create_holy_order_decision_effect_message_coronation + custom_tooltip = create_holy_order_decision_effect_message_coronation if = { limit = { @@ -8735,38 +8689,39 @@ coronation_events.1032 = { CAPITAL = scope:barony NEW_HO_SCOPE = new_holy_order FOUNDER = root + ORDER_TYPE = military } } - create_holy_order_effect = yes + create_holy_order_accompanying_effect = yes add_piety = medium_piety_loss - stress_impact = { impatient = minor_stress_impact_loss } + stress_and_fulfillment_impact = { impatient = minor_stress_impact_loss } - ai_chance = { base = 20 } - } + ai_chance = { base = 20 } + } - option = { - name = coronation_events.1032.d - flavor = coronation_events.1032.d.flavor + option = { + name = coronation_events.1032.d + flavor = coronation_events.1032.d.flavor - trigger = { - OR = { - dread >= major_dread_value - has_trait = wrathful - } - scope:detractor = { - NAND = { - has_trait = blind - has_trait = disfigured - } - } - } + trigger = { + OR = { + dread >= major_dread_value + has_trait = wrathful + } + scope:detractor = { + NAND = { + has_trait = blind + has_trait = disfigured + } + } + } - add_dread = medium_dread_gain - scope:detractor = { - if = { + add_dread = medium_dread_gain + scope:detractor = { + if = { limit = { NOT = { has_trait = blind @@ -8785,33 +8740,33 @@ coronation_events.1032 = { target = root } } - } - add_tyranny = medium_tyranny_gain + } + add_tyranny = medium_tyranny_gain - stress_impact = { - vengeful = medium_stress_impact_loss - sadistic = medium_stress_impact_loss - compassionate = major_stress_impact_gain - forgiving = major_stress_impact_gain - } + stress_and_fulfillment_impact = { + vengeful = medium_stress_impact_loss + sadistic = medium_stress_impact_loss + compassionate = major_stress_impact_gain + forgiving = major_stress_impact_gain + } - ai_chance = { - base = 15 - modifier = { - factor = 0 - OR = { - has_trait = compassionate - has_trait = forgiving - ai_compassion >= low_positive_ai_value - } - } - } - } - option = { - name = coronation_events.1032.a - flavor = coronation_events.1032.a.flavor + ai_chance = { + base = 15 + modifier = { + factor = 0 + OR = { + has_trait = compassionate + has_trait = forgiving + ai_compassion >= low_positive_ai_value + } + } + } + } + option = { + name = coronation_events.1032.a + flavor = coronation_events.1032.a.flavor - custom_tooltip = coronation_tt_positive_tiny + custom_tooltip = coronation_tt_positive_tiny coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root @@ -8819,58 +8774,58 @@ coronation_events.1032 = { scope:activity = { activity_special_type_progression_tiny = yes every_attending_character = { - limit = { - is_ai = yes - is_in_guest_subset = { name = supporter } - NOT = { - this = root - } - } - custom = every_supporter_activity - add_opinion = { - target = root - modifier = amused_opinion - opinion = 10 - } - } + limit = { + is_ai = yes + is_in_guest_subset = { name = supporter } + NOT = { + this = root + } + } + custom = every_supporter_activity + add_opinion = { + target = root + modifier = amused_opinion + opinion = 10 + } + } } remove_short_term_gold = medium_gold_value - stress_impact = { compassionate = minor_stress_impact_loss } + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss } - ai_chance = { base = 35 } - } + ai_chance = { base = 35 } + } - option = { - name = coronation_events.1032.b - trigger = { - scope:supporter = { + option = { + name = coronation_events.1032.b + trigger = { + scope:supporter = { OR = { highest_held_title_tier >= tier_kingdom AND = { highest_held_title_tier < tier_kingdom - is_landed = yes + is_landed = yes is_independent_ruler = yes is_tributary = no } is_landed = no } } - } + } - if = { - limit = { - scope:supporter = { - highest_held_title_tier >= tier_kingdom - } - } - scope:supporter = { + if = { + limit = { + scope:supporter = { + highest_held_title_tier >= tier_kingdom + } + } + scope:supporter = { add_opinion = { target = root modifier = event_negotiated_alliance_opinion } } - custom_tooltip = { + custom_tooltip = { text = create_alliance_supporter_tt create_alliance = { target = scope:supporter @@ -8878,17 +8833,17 @@ coronation_events.1032 = { allied_through_target = scope:supporter } } - } - else_if = { - limit = { - scope:supporter = { - highest_held_title_tier < tier_kingdom - is_landed = yes + } + else_if = { + limit = { + scope:supporter = { + highest_held_title_tier < tier_kingdom + is_landed = yes is_independent_ruler = yes is_tributary = no - } - } - create_title_and_vassal_change = { + } + } + create_title_and_vassal_change = { type = swear_fealty save_scope_as = change add_claim_on_loss = no @@ -8900,12 +8855,12 @@ coronation_events.1032 = { } } resolve_title_and_vassal_change = scope:change - } - else_if = { - limit = { - scope:supporter = { - is_landed = no - } + } + else_if = { + limit = { + scope:supporter = { + is_landed = no + } OR = { scope:supporter = { is_ai = yes } AND = { @@ -8915,8 +8870,8 @@ coronation_events.1032 = { is_ai = no } } - } - set_relation_friend = { + } + set_relation_friend = { reason = friend_coronation_honor target = scope:supporter } @@ -8933,116 +8888,116 @@ coronation_events.1032 = { modifier = friendliness_opinion opinion = 50 } - } + } - stress_impact = { arrogant = minor_stress_impact_loss } + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } - ai_chance = { base = 30 } - } - option = { - name = coronation_events.1032.e + ai_chance = { base = 30 } + } + option = { + name = coronation_events.1032.e - scope:detractor = { - add_opinion = { - target = root - opinion = 15 - modifier = commiseration_opinion - } - } - stress_impact = { - shy = minor_stress_impact_loss - ambitious = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - } - ai_chance = { - base = 50 - } - } + scope:detractor = { + add_opinion = { + target = root + opinion = 15 + modifier = commiseration_opinion + } + } + stress_and_fulfillment_impact = { + shy = minor_stress_impact_loss + ambitious = minor_stress_impact_gain + arrogant = minor_stress_impact_gain + } + ai_chance = { + base = 50 + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # Rival speaks up coronation_events.1033 = { - type = activity_event - title = coronation_events.1033.t - desc = coronation_events.1033.desc + type = activity_event + title = coronation_events.1033.t + desc = coronation_events.1033.desc - left_portrait = { - character = root - animation = disapproval - } + left_portrait = { + character = root + animation = disapproval + } - right_portrait = { - character = scope:rival - animation = anger - } + right_portrait = { + character = scope:rival + animation = anger + } - theme = coronation_activity - cooldown = { years = 5 } + theme = coronation_activity + cooldown = { years = 5 } - trigger = { - has_activity_intent = coronation_weaken_detractors - scope:activity = { - any_attending_character = { - has_relation_rival = root - OR = { - is_powerful_vassal = yes - highest_held_title_tier >= tier_kingdom - } - drinks_alcohol_trigger = yes - NOT = { - has_trait = temperate - } - OR = { - has_trait = drunkard - has_trait = lifestyle_reveler - ai_rationality < medium_positive_ai_value - } - } - } - } + trigger = { + has_activity_intent = coronation_weaken_detractors + scope:activity = { + any_attending_character = { + has_relation_rival = root + OR = { + is_powerful_vassal = yes + highest_held_title_tier >= tier_kingdom + } + drinks_alcohol_trigger = yes + NOT = { + has_trait = temperate + } + OR = { + has_trait = drunkard + has_trait = lifestyle_reveler + ai_rationality < medium_positive_ai_value + } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - custom_tooltip = happened_because_intent_tt - scope:activity = { - random_attending_character = { - limit = { - has_relation_rival = root - OR = { - is_powerful_vassal = yes - highest_held_title_tier >= tier_kingdom - } - drinks_alcohol_trigger = yes - NOT = { - has_trait = temperate - } - OR = { - has_trait = drunkard - has_trait = lifestyle_reveler - ai_rationality < medium_positive_ai_value - } - } - save_scope_as = rival - } - var:officiator ?= { - save_scope_as = priest - } - } - } + custom_tooltip = happened_because_intent_tt + scope:activity = { + random_attending_character = { + limit = { + has_relation_rival = root + OR = { + is_powerful_vassal = yes + highest_held_title_tier >= tier_kingdom + } + drinks_alcohol_trigger = yes + NOT = { + has_trait = temperate + } + OR = { + has_trait = drunkard + has_trait = lifestyle_reveler + ai_rationality < medium_positive_ai_value + } + } + save_scope_as = rival + } + var:officiator ?= { + save_scope_as = priest + } + } + } option = { - name = coronation_events.1033.c + name = coronation_events.1033.c - add_dread = minor_dread_gain - rightfully_imprison_character_effect = { + add_dread = minor_dread_gain + rightfully_imprison_character_effect = { IMPRISONER = root TARGET = scope:rival } @@ -9058,29 +9013,29 @@ coronation_events.1033 = { } } - stress_impact = { - sadistic = minor_stress_impact_loss - callous = minor_stress_impact_loss - compassionate = minor_stress_impact_gain - forgiving = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + sadistic = minor_stress_impact_loss + callous = minor_stress_impact_loss + compassionate = minor_stress_impact_gain + forgiving = minor_stress_impact_gain + } - ai_chance = { - base = 20 - modifier = { - factor = 0 - OR = { - has_trait = compassionate - has_trait = forgiving - } - } - } - } + ai_chance = { + base = 20 + modifier = { + factor = 0 + OR = { + has_trait = compassionate + has_trait = forgiving + } + } + } + } - option = { - name = coronation_events.1033.a - add_legitimacy = minor_legitimacy_gain - add_piety = minor_piety_gain + option = { + name = coronation_events.1033.a + add_legitimacy = minor_legitimacy_gain + add_piety = minor_piety_gain if = { limit = { NOT = { has_relation_nemesis = scope:rival } @@ -9108,42 +9063,42 @@ coronation_events.1033 = { } } } - stress_impact = { - base = medium_stress_gain - cynical = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + base = medium_stress_gain + cynical = minor_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - factor = 0 - has_trait = cynical - } - } - } + ai_chance = { + base = 40 + modifier = { + factor = 0 + has_trait = cynical + } + } + } - option = { - name = coronation_events.1033.b + option = { + name = coronation_events.1033.b - trigger = { - diplomacy >= 14 - } + trigger = { + diplomacy >= 14 + } - add_legitimacy = minor_legitimacy_gain - if = { - limit = { - government_allows = administrative - top_liege = scope:activity.activity_host - } - change_influence = minor_influence_gain - } - else = { - add_prestige = minor_prestige_gain - } - add_diplomacy_skill = 1 + add_legitimacy = minor_legitimacy_gain + if = { + limit = { + government_has_flag = government_has_influence + top_liege = scope:activity.activity_host + } + change_influence = minor_influence_gain + } + else = { + add_prestige = minor_prestige_gain + } + add_diplomacy_skill = 1 - if = { - limit = { + if = { + limit = { OR = { scope:rival = { is_ai = yes } AND = { @@ -9153,316 +9108,316 @@ coronation_events.1033 = { is_ai = no } } - } - scope:rival = { - remove_relation_rival = root - add_opinion = { - target = root - modifier = humbled_opinion - opinion = 25 - } - } - } + } + scope:rival = { + remove_relation_rival = root + add_opinion = { + target = root + modifier = humbled_opinion + opinion = 25 + } + } + } - scope:activity = { - every_attending_character = { - limit = { - is_ai = yes - OR = { - has_trait = compassionate - has_trait = trusting - is_in_guest_subset = { name = supporter } - } - } - custom = custom.every_compassionate_trusting_supporter - add_opinion = { - target = root - modifier = loyalty_opinion - opinion = 10 - } - } - } + scope:activity = { + every_attending_character = { + limit = { + is_ai = yes + OR = { + has_trait = compassionate + has_trait = trusting + is_in_guest_subset = { name = supporter } + } + } + custom = custom.every_compassionate_trusting_supporter + add_opinion = { + target = root + modifier = loyalty_opinion + opinion = 10 + } + } + } - stress_impact = { forgiving = minor_stress_impact_loss } + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_loss } - ai_chance = { base = 30 } - } + ai_chance = { base = 30 } + } - option = { - name = coronation_events.1033.d - add_legitimacy = minor_legitimacy_loss - stress_impact = { - calm = minor_stress_impact_loss - humble = minor_stress_impact_loss - vengeful = medium_stress_impact_gain - arrogant = medium_stress_impact_gain - } + option = { + name = coronation_events.1033.d + add_legitimacy = minor_legitimacy_loss + stress_and_fulfillment_impact = { + calm = minor_stress_impact_loss + humble = minor_stress_impact_loss + vengeful = medium_stress_impact_gain + arrogant = medium_stress_impact_gain + } - ai_chance = { - base = 10 - modifier = { - factor = 0 - OR = { - has_trait = vengeful - has_trait = arrogant - } - } - } - } + ai_chance = { + base = 10 + modifier = { + factor = 0 + OR = { + has_trait = vengeful + has_trait = arrogant + } + } + } + } - after = { - # For MP + after = { + # For MP coronation_ready_effect = yes - } + } } # choose a robe for the coronation coronation_events.1034 = { - type = activity_event - title = coronation_events.1034.t - desc = coronation_events.1034.desc + type = activity_event + title = coronation_events.1034.t + desc = coronation_events.1034.desc - theme = coronation_activity + theme = coronation_activity - cooldown = { years = 5 } + cooldown = { years = 5 } - left_portrait = { - character = root - animation = shock - camera = camera_event_left - } + left_portrait = { + character = root + animation = shock + camera = camera_event_left + } - center_portrait = { - character = scope:supporter - animation = debating - camera = camera_event_center - } + center_portrait = { + character = scope:supporter + animation = debating + camera = camera_event_center + } - right_portrait = { - character = scope:detractor - animation = anger - camera = camera_event_right - } + right_portrait = { + character = scope:detractor + animation = anger + camera = camera_event_right + } - lower_right_portrait = { - character = scope:host - } + lower_right_portrait = { + character = scope:host + } - trigger = { - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + trigger = { + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - scope:host = { - culture = { has_graphical_east_asia_culture_group_trigger = yes } - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + scope:host = { + culture = { has_graphical_east_asia_culture_group_trigger = yes } + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - } - scope:activity = { - any_guest_subset = { - name = detractor - this != root - culture = { has_graphical_east_asia_culture_group_trigger = yes } - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + } + scope:activity = { + any_guest_subset = { + name = detractor + this != root + culture = { has_graphical_east_asia_culture_group_trigger = yes } + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - } - any_guest_subset = { - name = supporter - this != root - culture = { has_graphical_east_asia_culture_group_trigger = yes } - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + } + any_guest_subset = { + name = supporter + this != root + culture = { has_graphical_east_asia_culture_group_trigger = yes } + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - } - } - } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_guest_subset = { - name = detractor - limit = { - this != root - culture = { has_graphical_east_asia_culture_group_trigger = yes } - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + scope:activity = { + random_guest_subset = { + name = detractor + limit = { + this != root + culture = { has_graphical_east_asia_culture_group_trigger = yes } + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - } - save_scope_as = detractor - } - random_guest_subset = { - name = supporter - limit = { - this != root - culture = { has_graphical_east_asia_culture_group_trigger = yes } - faith = { - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = naked_priests_active + } + save_scope_as = detractor + } + random_guest_subset = { + name = supporter + limit = { + this != root + culture = { has_graphical_east_asia_culture_group_trigger = yes } + rite = { + NOR = { + rite_has_parameter = naked_adherents_active + rite_has_parameter = naked_priests_active } } - } - save_scope_as = supporter - } - } - } + } + save_scope_as = supporter + } + } + } - option = { - name = coronation_events.1034.a # "I shall wear a robe finer than theirs — let them take the hint." - trigger = { - highest_held_title_tier >= scope:host.highest_held_title_tier - OR = { - is_in_guest_subset = { name = detractor } - dislikes_character_trigger = { CHARACTER = scope:host } - } - } + option = { + name = coronation_events.1034.a # "I shall wear a robe finer than theirs — let them take the hint." + trigger = { + highest_held_title_tier >= scope:host.highest_held_title_tier + OR = { + is_in_guest_subset = { name = detractor } + dislikes_character_trigger = { CHARACTER = scope:host } + } + } - custom_tooltip = coronation_events.1034.a.tt + custom_tooltip = coronation_events.1034.a.tt - add_intrigue_lifestyle_xp = minor_lifestyle_xp + add_intrigue_lifestyle_xp = minor_lifestyle_xp - add_character_flag = outshining_host - scope:host = { - trigger_event = coronation_events.1035 - } + add_character_flag = outshining_host + scope:host = { + trigger_event = coronation_events.1035 + } - stress_impact = { - ambitious = minor_stress_impact_loss - arrogant = minor_stress_impact_loss - humble = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + ambitious = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + humble = minor_stress_impact_gain + } - ai_chance = { - base = 30 - modifier = { - add = 25 - has_trait = arrogant - } - modifier = { - add = 10 - has_trait = ambitious - } - modifier = { - add = -20 - has_trait = humble - } - } - } + ai_chance = { + base = 30 + modifier = { + add = 25 + has_trait = arrogant + } + modifier = { + add = 10 + has_trait = ambitious + } + modifier = { + add = -20 + has_trait = humble + } + } + } - option = { - name = coronation_events.1034.b # "I will match the Host’s colors, a silent sign of my allegiance." - trigger = { - OR = { - likes_character_trigger = { CHARACTER = scope:host } - is_in_guest_subset = { name = supporter } - } - } + option = { + name = coronation_events.1034.b # "I will match the Host’s colors, a silent sign of my allegiance." + trigger = { + OR = { + likes_character_trigger = { CHARACTER = scope:host } + is_in_guest_subset = { name = supporter } + } + } - add_diplomacy_lifestyle_xp = minor_lifestyle_xp + add_diplomacy_lifestyle_xp = minor_lifestyle_xp - add_merit_if_relevant_effect = { + add_merit_if_relevant_effect = { MERIT = minor_merit_value } - add_opinion = { - target = scope:host - modifier = respect_opinion - opinion = 10 - } + add_opinion = { + target = scope:host + modifier = respect_opinion + opinion = 10 + } - stress_impact = { - trusting = minor_stress_impact_loss - deceitful = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + trusting = minor_stress_impact_loss + deceitful = minor_stress_impact_gain + } - ai_chance = { - base = 30 - modifier = { - add = 20 - has_trait = trusting - } - modifier = { - add = -10 - has_trait = deceitful - } - } - } + ai_chance = { + base = 30 + modifier = { + add = 20 + has_trait = trusting + } + modifier = { + add = -10 + has_trait = deceitful + } + } + } - option = { - name = coronation_events.1034.c # "Tradition guides me — I will wear what is proper." - add_piety = minor_piety_gain + option = { + name = coronation_events.1034.c # "Tradition guides me — I will wear what is proper." + add_piety = minor_piety_gain - if = { - limit = { has_trait = confucian_education } - add_trait_xp = { - trait = confucian_education - value = lifestyle_confucian_education_xp_gain_minor_value - } - } - else = { - add_learning_lifestyle_xp = minor_lifestyle_xp - } + if = { + limit = { has_trait = confucian_education } + add_trait_xp = { + trait = confucian_education + value = lifestyle_confucian_education_xp_gain_minor_value + } + } + else = { + add_learning_lifestyle_xp = minor_lifestyle_xp + } - stress_impact = { - zealous = minor_stress_impact_loss - arbitrary = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss + arbitrary = minor_stress_impact_gain + } - ai_chance = { - base = 10 - modifier = { - add = 20 - has_trait = zealous - } - modifier = { - add = -15 - has_trait = arbitrary - } - } - } + ai_chance = { + base = 10 + modifier = { + add = 20 + has_trait = zealous + } + modifier = { + add = -15 + has_trait = arbitrary + } + } + } - option = { - name = coronation_events.1034.d # "Let fashion speak — I’ll wear what the capital wears." - add_prestige = minor_prestige_gain - add_diplomacy_lifestyle_xp = minor_lifestyle_xp + option = { + name = coronation_events.1034.d # "Let fashion speak — I’ll wear what the capital wears." + add_prestige = minor_prestige_gain + add_diplomacy_lifestyle_xp = minor_lifestyle_xp - stress_impact = { - gregarious = minor_stress_impact_loss - zealous = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + gregarious = minor_stress_impact_loss + zealous = minor_stress_impact_gain + } - ai_chance = { - base = 10 - modifier = { - add = 15 - has_trait = gregarious - } - modifier = { - add = -15 - has_trait = zealous - } - } - } + ai_chance = { + base = 10 + modifier = { + add = 15 + has_trait = gregarious + } + modifier = { + add = -15 + has_trait = zealous + } + } + } - after = { + after = { # For MP coronation_ready_effect = yes } @@ -9470,112 +9425,112 @@ coronation_events.1034 = { # some awful guest is trying to outshine you coronation_events.1035 = { - type = activity_event - title = coronation_events.1035.t - desc = coronation_events.1035.desc + type = activity_event + title = coronation_events.1035.t + desc = coronation_events.1035.desc - theme = coronation_activity + theme = coronation_activity - cooldown = { years = 5 } + cooldown = { years = 5 } - left_portrait = { - character = root - animation = disapproval - camera = camera_event_left - } + left_portrait = { + character = root + animation = disapproval + camera = camera_event_left + } - center_portrait = { - character = scope:offending_guest - animation = fanning_coyly - camera = camera_event_center - } + center_portrait = { + character = scope:offending_guest + animation = fanning_coyly + camera = camera_event_center + } - trigger = { - scope:host = { - culture = { has_graphical_east_asia_culture_group_trigger = yes } - } - scope:activity = { - any_attending_character = { - has_character_flag = outshining_host - } - } - } + trigger = { + scope:host = { + culture = { has_graphical_east_asia_culture_group_trigger = yes } + } + scope:activity = { + any_attending_character = { + has_character_flag = outshining_host + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - has_character_flag = outshining_host - } - save_scope_as = offending_guest - } - } - } + scope:activity = { + random_attending_character = { + limit = { + has_character_flag = outshining_host + } + save_scope_as = offending_guest + } + } + } - option = { - name = coronation_events.1035.a # "Let them have their moment. My mandate stands above fabric." + option = { + name = coronation_events.1035.a # "Let them have their moment. My mandate stands above fabric." - if = { - limit = { government_allows = merit } - change_merit = minor_merit_gain - } - else = { - add_prestige = minor_prestige_gain - } + if = { + limit = { government_allows = merit } + change_merit = minor_merit_gain + } + else = { + add_prestige = minor_prestige_gain + } - scope:offending_guest = { - add_opinion = { - target = root - modifier = weak_opinion - opinion = 10 - } - } + scope:offending_guest = { + add_opinion = { + target = root + modifier = weak_opinion + opinion = 10 + } + } - custom_tooltip = coronation_tt_negative + custom_tooltip = coronation_tt_negative scope:activity = { activity_special_type_progression_negative = yes } - hidden_effect = { - scope:offending_guest = { - send_interface_toast = { + hidden_effect = { + scope:offending_guest = { + send_interface_toast = { title = coronation_events.1035.a.toast left_icon = root add_prestige = minor_prestige_gain } - } - } + } + } - stress_impact = { - humble = minor_stress_impact_loss - arrogant = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + humble = minor_stress_impact_loss + arrogant = minor_stress_impact_gain + } - ai_chance = { - base = 50 - modifier = { - add = 20 - has_trait = humble - } - modifier = { - add = -10 - has_trait = arrogant - } - } - } + ai_chance = { + base = 50 + modifier = { + add = 20 + has_trait = humble + } + modifier = { + add = -10 + has_trait = arrogant + } + } + } - option = { - name = coronation_events.1035.b # "Their insult will not be forgotten." + option = { + name = coronation_events.1035.b # "Their insult will not be forgotten." - progress_towards_rival_effect = { + progress_towards_rival_effect = { REASON = rival_outshine_coronation CHARACTER = scope:offending_guest OPINION = -20 } hidden_effect = { - scope:offending_guest = { - send_interface_toast = { + scope:offending_guest = { + send_interface_toast = { title = coronation_events.1035.b.toast left_icon = root show_as_tooltip = { @@ -9588,84 +9543,84 @@ coronation_events.1035 = { } } } - } - } + } + } - stress_impact = { - wrathful = minor_stress_impact_loss - forgiving = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + wrathful = minor_stress_impact_loss + forgiving = minor_stress_impact_gain + } - ai_chance = { - base = 30 - modifier = { - add = 20 - has_trait = wrathful - } - modifier = { - add = -15 - has_trait = forgiving - } - } - } + ai_chance = { + base = 30 + modifier = { + add = 20 + has_trait = wrathful + } + modifier = { + add = -15 + has_trait = forgiving + } + } + } - option = { - name = coronation_events.1035.c # "A gentle word in private should suffice." + option = { + name = coronation_events.1035.c # "A gentle word in private should suffice." - scope:offending_guest = { - add_opinion = { - target = root - modifier = annoyed_opinion - opinion = -5 - } - } + scope:offending_guest = { + add_opinion = { + target = root + modifier = annoyed_opinion + opinion = -5 + } + } - add_diplomacy_lifestyle_xp = minor_lifestyle_xp + add_diplomacy_lifestyle_xp = minor_lifestyle_xp - hidden_effect = { - scope:offending_guest = { - send_interface_toast = { + hidden_effect = { + scope:offending_guest = { + send_interface_toast = { title = coronation_events.1035.c.toast left_icon = root add_stress = minor_stress_gain } - } - } + } + } - stress_impact = { - just = minor_stress_impact_loss - callous = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + just = minor_stress_impact_loss + callous = minor_stress_impact_gain + } - ai_chance = { - base = 20 - modifier = { - add = 15 - has_trait = just - } - modifier = { - add = -10 - has_trait = callous - } - } - } - after = { + ai_chance = { + base = 20 + modifier = { + add = 15 + has_trait = just + } + modifier = { + add = -10 + has_trait = callous + } + } + } + after = { # For MP coronation_ready_effect = yes - scope:activity = { - every_attending_character = { - remove_character_flag = outshining_host - } - } - } + scope:activity = { + every_attending_character = { + remove_character_flag = outshining_host + } + } + } } # People are reciting verses in honor of the coronation coronation_events.1036 = { - type = activity_event - title = coronation_events.1036.t - desc = { + type = activity_event + title = coronation_events.1036.t + desc = { first_valid = { triggered_desc = { trigger = { @@ -9689,37 +9644,37 @@ coronation_events.1036 = { } } - theme = coronation_activity + theme = coronation_activity - cooldown = { years = 5 } + cooldown = { years = 5 } - left_portrait = { - character = root - animation = fanning - } + left_portrait = { + character = root + animation = fanning + } - center_portrait = { - character = scope:verse_initiator - animation = storyteller - } + center_portrait = { + character = scope:verse_initiator + animation = storyteller + } - right_portrait = { - character = scope:host - animation = throne_room_bow_1 - } + right_portrait = { + character = scope:host + animation = throne_room_bow_1 + } - trigger = { - scope:host = { - culture = { has_graphical_east_asia_culture_group_trigger = yes } - } - scope:activity = { - any_attending_character = { - this != root - OR = { - likes_character_trigger = { CHARACTER = scope:host } - is_in_guest_subset = { name = supporter } - } - OR = { + trigger = { + scope:host = { + culture = { has_graphical_east_asia_culture_group_trigger = yes } + } + scope:activity = { + any_attending_character = { + this != root + OR = { + likes_character_trigger = { CHARACTER = scope:host } + is_in_guest_subset = { name = supporter } + } + OR = { has_trait = lifestyle_poet has_trait = violet_poet AND = { @@ -9731,18 +9686,18 @@ coronation_events.1036 = { } } } - } - } - } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - this != root - OR = { + scope:activity = { + random_attending_character = { + limit = { + this != root + OR = { has_trait = lifestyle_poet has_trait = violet_poet AND = { @@ -9754,17 +9709,17 @@ coronation_events.1036 = { } } } - } - save_scope_as = verse_initiator - } - } - } + } + save_scope_as = verse_initiator + } + } + } - option = { - name = coronation_events.1036.a # Praise Host in verse + option = { + name = coronation_events.1036.a # Praise Host in verse - trigger = { - OR = { + trigger = { + OR = { has_trait = lifestyle_poet has_trait = violet_poet AND = { @@ -9776,13 +9731,13 @@ coronation_events.1036 = { } } } - OR = { - likes_character_trigger = { CHARACTER = scope:host } - is_in_guest_subset = { name = supporter } - } - } + OR = { + likes_character_trigger = { CHARACTER = scope:host } + is_in_guest_subset = { name = supporter } + } + } - progress_towards_friend_effect = { + progress_towards_friend_effect = { REASON = best_friend_poetry CHARACTER = scope:host OPINION = 15 @@ -9808,31 +9763,31 @@ coronation_events.1036 = { } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss } ai_chance = { - base = 40 - modifier = { - add = 20 - has_trait = gregarious - } - modifier = { - add = 15 - likes_character_trigger = { CHARACTER = scope:host } - } - ai_value_modifier = { - ai_sociability = 1 - } - } - } + base = 40 + modifier = { + add = 20 + has_trait = gregarious + } + modifier = { + add = 15 + likes_character_trigger = { CHARACTER = scope:host } + } + ai_value_modifier = { + ai_sociability = 1 + } + } + } - option = { - name = coronation_events.1036.b # Veiled critique of Host + option = { + name = coronation_events.1036.b # Veiled critique of Host - trigger = { - OR = { + trigger = { + OR = { has_trait = lifestyle_poet has_trait = violet_poet AND = { @@ -9844,13 +9799,13 @@ coronation_events.1036 = { } } } - OR = { - dislikes_character_trigger = { CHARACTER = scope:host } - is_in_guest_subset = { name = detractor } - } - } + OR = { + dislikes_character_trigger = { CHARACTER = scope:host } + is_in_guest_subset = { name = detractor } + } + } - if = { + if = { limit = { NOT = { has_trait = lifestyle_poet } } @@ -9870,39 +9825,39 @@ coronation_events.1036 = { } } - scope:activity.host = { - progress_towards_rival_effect = { - CHARACTER = root - REASON = rival_poetry - OPINION = -10 - } - } + scope:host = { + progress_towards_rival_effect = { + CHARACTER = root + REASON = rival_poetry + OPINION = -10 + } + } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss } - ai_chance = { - base = 30 - modifier = { - add = 20 - has_trait = cynical - } - modifier = { - add = 20 - dislikes_character_trigger = { CHARACTER = scope:host } - } - ai_value_modifier = { - ai_vengefulness = 1 - } - } - } + ai_chance = { + base = 30 + modifier = { + add = 20 + has_trait = cynical + } + modifier = { + add = 20 + dislikes_character_trigger = { CHARACTER = scope:host } + } + ai_value_modifier = { + ai_vengefulness = 1 + } + } + } - option = { - name = coronation_events.1036.c # Compose formal verse + option = { + name = coronation_events.1036.c # Compose formal verse - trigger = { - OR = { + trigger = { + OR = { has_trait = lifestyle_poet has_trait = violet_poet AND = { @@ -9914,19 +9869,19 @@ coronation_events.1036 = { } } } - } + } - if = { - limit = { has_trait = confucian_education } - add_trait_xp = { - trait = confucian_education - value = lifestyle_confucian_education_xp_gain_minor_value - } - } - else = { - add_learning_lifestyle_xp = minor_lifestyle_xp - } - if = { + if = { + limit = { has_trait = confucian_education } + add_trait_xp = { + trait = confucian_education + value = lifestyle_confucian_education_xp_gain_minor_value + } + } + else = { + add_learning_lifestyle_xp = minor_lifestyle_xp + } + if = { limit = { NOT = { has_trait = lifestyle_poet } } @@ -9946,77 +9901,77 @@ coronation_events.1036 = { } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = minor_stress_impact_loss } - ai_chance = { - base = 35 - modifier = { - add = 20 - has_trait = ambitious - } - ai_value_modifier = { - ai_zeal = 1 - } - } - } + ai_chance = { + base = 35 + modifier = { + add = 20 + has_trait = ambitious + } + ai_value_modifier = { + ai_zeal = 1 + } + } + } - option = { - name = coronation_events.1036.d # Praise the recital + option = { + name = coronation_events.1036.d # Praise the recital - progress_towards_friend_effect = { + progress_towards_friend_effect = { REASON = friend_praised_poetry CHARACTER = scope:verse_initiator OPINION = 15 } - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_loss } ai_chance = { - base = 35 - modifier = { - add = 15 - has_trait = trusting - } - ai_value_modifier = { - ai_sociability = 1 - } - } - } + base = 35 + modifier = { + add = 15 + has_trait = trusting + } + ai_value_modifier = { + ai_sociability = 1 + } + } + } - option = { - name = coronation_events.1036.e # Subtle critique of recital + option = { + name = coronation_events.1036.e # Subtle critique of recital - add_intrigue_lifestyle_xp = minor_lifestyle_xp - scope:verse_initiator = { - add_opinion = { + add_intrigue_lifestyle_xp = minor_lifestyle_xp + scope:verse_initiator = { + add_opinion = { target = root modifier = frustrated_opinion opinion = -15 } - } + } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss } - ai_chance = { - base = 25 - modifier = { - add = 20 - has_trait = arrogant - } - ai_value_modifier = { - ai_greed = 1 - ai_vengefulness = 1 - } - } - } + ai_chance = { + base = 25 + modifier = { + add = 20 + has_trait = arrogant + } + ai_value_modifier = { + ai_greed = 1 + ai_vengefulness = 1 + } + } + } - after = { + after = { # For MP coronation_ready_effect = yes } @@ -10024,34 +9979,34 @@ coronation_events.1036 = { # someone is taking a natural occurrence as an omen coronation_events.1037 = { - type = activity_event - title = coronation_events.1037.t - desc = coronation_events.1037.desc - theme = coronation_activity - cooldown = { years = 10 } + type = activity_event + title = coronation_events.1037.t + desc = coronation_events.1037.desc + theme = coronation_activity + cooldown = { years = 10 } - left_portrait = { - character = scope:host - animation = stress - camera = camera_event_center_pointing_right - } + left_portrait = { + character = scope:host + animation = stress + camera = camera_event_center_pointing_right + } - center_portrait = { - character = scope:skeptical_guest - animation = shock - camera = camera_event_center_pointing_left - } + center_portrait = { + character = scope:skeptical_guest + animation = shock + camera = camera_event_center_pointing_left + } - right_portrait = { - trigger = { exists = scope:respected_elder } - character = scope:respected_elder - animation = personality_zealous - } + right_portrait = { + trigger = { exists = scope:respected_elder } + character = scope:respected_elder + animation = personality_zealous + } - trigger = { - culture = { has_graphical_east_asia_culture_group_trigger = yes } - OR = { - location.county = { + trigger = { + culture = { has_graphical_east_asia_culture_group_trigger = yes } + OR = { + location.county = { any_county_situation = { OR = { situation_type = natural_disaster_flood @@ -10065,64 +10020,64 @@ coronation_events.1037 = { outbreak_intensity > minor } } - } - scope:activity = { - any_attending_character = { - is_ai = yes - has_trait = zealous - culture = { has_graphical_east_asia_culture_group_trigger = yes } - } - } - } + } + scope:activity = { + any_attending_character = { + is_ai = yes + has_trait = zealous + culture = { has_graphical_east_asia_culture_group_trigger = yes } + } + } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { - random_attending_character = { - limit = { - is_ai = yes - has_trait = zealous - culture = { has_graphical_east_asia_culture_group_trigger = yes } - } - save_scope_as = skeptical_guest - } - random_attending_character ?= { - limit = { - age > 60 - OR = { - AND = { - has_trait = confucian_education + scope:activity = { + random_attending_character = { + limit = { + is_ai = yes + has_trait = zealous + culture = { has_graphical_east_asia_culture_group_trigger = yes } + } + save_scope_as = skeptical_guest + } + random_attending_character ?= { + limit = { + age > 60 + OR = { + AND = { + has_trait = confucian_education has_trait_xp = { trait = confucian_education value > 70 } - } - learning >= high_skill_rating - has_relation_elder = root - } - } - save_scope_as = respected_elder - } - } - location.county = { - random_county_situation ?= { - limit = { - OR = { + } + learning >= high_skill_rating + has_relation_elder = root + } + } + save_scope_as = respected_elder + } + } + location.county = { + random_county_situation ?= { + limit = { + OR = { situation_type = natural_disaster_flood situation_type = natural_disaster_earthquake } - } - save_scope_as = omen_happening + } + save_scope_as = omen_happening } - } - if = { - limit = { - NOT = { - exists = scope:omen_happening - } - } - random_sub_realm_county = { + } + if = { + limit = { + NOT = { + exists = scope:omen_happening + } + } + random_sub_realm_county = { random_county_province = { random_province_epidemic = { limit = { @@ -10132,209 +10087,212 @@ coronation_events.1037 = { } } } - } - } + } + } - option = { - name = coronation_events.1037.a # Invoke scripture, poetry, or history + option = { + name = coronation_events.1037.a # Invoke scripture, poetry, or history - trigger = { - OR = { - has_trait = confucian_education - learning >= high_skill_rating - } - } + trigger = { + OR = { + has_trait = confucian_education + learning >= high_skill_rating + } + } - custom_tooltip = coronation_tt_positive_tiny + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny CHAR = root } - add_learning_lifestyle_xp = medium_lifestyle_xp + add_learning_lifestyle_xp = medium_lifestyle_xp - scope:skeptical_guest = { - add_opinion = { - target = scope:host - modifier = impressed_opinion - opinion = 15 - } - } + scope:skeptical_guest = { + add_opinion = { + target = scope:host + modifier = impressed_opinion + opinion = 15 + } + } - stress_impact = { - arrogant = minor_stress_impact_loss - diligent = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_loss + diligent = minor_stress_impact_loss + } - ai_chance = { - base = 35 - modifier = { - add = 20 - has_trait = confucian_education - } - modifier = { - add = 15 - learning >= high_skill_rating - } - modifier = { - add = 15 - has_trait = arrogant - } - modifier = { - add = 15 - has_trait = diligent - } - ai_value_modifier = { - ai_honor = 1 - } - } - } + ai_chance = { + base = 35 + modifier = { + add = 20 + has_trait = confucian_education + } + modifier = { + add = 15 + learning >= high_skill_rating + } + modifier = { + add = 15 + has_trait = arrogant + } + modifier = { + add = 15 + has_trait = diligent + } + ai_value_modifier = { + ai_honor = 1 + } + } + } - option = { - name = coronation_events.1037.b # Invite a respected elder to speak + option = { + name = coronation_events.1037.b # Invite a respected elder to speak - trigger = { - exists = scope:respected_elder - } + trigger = { + exists = scope:respected_elder + } - if = { - limit = { has_trait = confucian_education } - add_trait_xp = { - trait = confucian_education - value = lifestyle_confucian_education_xp_gain_minor_value - } - } - else_if = { - limit = { - location = { + if = { + limit = { has_trait = confucian_education } + add_trait_xp = { + trait = confucian_education + value = lifestyle_confucian_education_xp_gain_minor_value + } + } + else_if = { + limit = { + location = { is_province_valid_confucian_education_trigger = yes } - has_government = celestial_government - } - add_trait = confucian_education - } - else = { - add_learning_lifestyle_xp = minor_lifestyle_xp - } + government_has_flag = government_is_celestial + } + add_trait = confucian_education + } + else = { + add_learning_lifestyle_xp = minor_lifestyle_xp + } - if = { - limit = { - scope:respected_elder = { - num_of_relation_disciple < disciples_limit_value - } - } - set_elder_relation_effect = { + if = { + limit = { + is_independent_ruler = no + government_allows = merit + scope:respected_elder = { + government_allows = merit + num_of_relation_disciple < disciples_limit_value + } + } + set_elder_relation_effect = { ELDER = scope:respected_elder DISCIPLE = root MERIT = minor_merit_gain } - } + } - stress_impact = { - zealous = minor_stress_impact_loss - temperate = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss + temperate = minor_stress_impact_loss + } - ai_chance = { - base = 30 - modifier = { - add = 20 - has_trait = temperate - } - modifier = { - add = 20 - has_trait = zealous - } - ai_value_modifier = { - ai_honor = 1 - ai_zeal = 2 - } - } - } + ai_chance = { + base = 30 + modifier = { + add = 20 + has_trait = temperate + } + modifier = { + add = 20 + has_trait = zealous + } + ai_value_modifier = { + ai_honor = 1 + ai_zeal = 2 + } + } + } - option = { - name = coronation_events.1037.c # Expel them from the ceremony + option = { + name = coronation_events.1037.c # Expel them from the ceremony - add_dread = medium_dread_gain + add_dread = medium_dread_gain add_prestige = minor_prestige_loss - scope:skeptical_guest = { - remove_from_activity = scope:activity - } + scope:skeptical_guest = { + remove_from_activity = scope:activity + } - stress_impact = { - wrathful = minor_stress_impact_loss - arbitrary = minor_stress_impact_loss - just = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + wrathful = minor_stress_impact_loss + arbitrary = minor_stress_impact_loss + just = minor_stress_impact_gain + } - ai_chance = { - base = 20 - modifier = { - add = 20 - has_trait = wrathful - } - modifier = { - add = 10 - has_trait = arbitrary - } - modifier = { - add = -10 - has_trait = just - } - ai_value_modifier = { - ai_greed = 1 - ai_vengefulness = 2 - } - } - } + ai_chance = { + base = 20 + modifier = { + add = 20 + has_trait = wrathful + } + modifier = { + add = 10 + has_trait = arbitrary + } + modifier = { + add = -10 + has_trait = just + } + ai_value_modifier = { + ai_greed = 1 + ai_vengefulness = 2 + } + } + } - option = { - name = coronation_events.1037.d # Laugh it off + option = { + name = coronation_events.1037.d # Laugh it off - scope:skeptical_guest = { - add_opinion = { - target = scope:host - modifier = dismissed_me_opinion - opinion = -5 - } - } + scope:skeptical_guest = { + add_opinion = { + target = scope:host + modifier = dismissed_me_opinion + opinion = -5 + } + } - stress_impact = { - base = minor_stress_impact_loss - zealous = minor_stress_impact_gain - cynical = minor_stress_impact_loss - } + stress_and_fulfillment_impact = { + base = minor_stress_impact_loss + zealous = minor_stress_impact_gain + cynical = minor_stress_impact_loss + } - ai_chance = { - base = 25 - modifier = { - add = -10 - has_trait = zealous - } - modifier = { - add = -10 - has_trait = cynical - } - ai_value_modifier = { - ai_zeal = -1 - } - } - } - after = { + ai_chance = { + base = 25 + modifier = { + add = -10 + has_trait = zealous + } + modifier = { + add = -10 + has_trait = cynical + } + ai_value_modifier = { + ai_zeal = -1 + } + } + } + after = { # For MP coronation_ready_effect = yes } } coronation_events.1038 = { - type = activity_event - title = coronation_events.1038.t - desc = coronation_events.1038.desc - theme = coronation_activity - cooldown = { years = 10 } + type = activity_event + title = coronation_events.1038.t + desc = coronation_events.1038.desc + theme = coronation_activity + cooldown = { years = 10 } - override_background = { + override_background = { reference = temple } @@ -10342,21 +10300,21 @@ coronation_events.1038 = { reference = smoke } - left_portrait = { - character = root - animation = emperor - camera = camera_event_center_pointing_right - } + left_portrait = { + character = root + animation = emperor + camera = camera_event_center_pointing_right + } - right_portrait = { - character = scope:rite_official - animation = hunting_knife_start - camera = camera_event_very_left - } - - trigger = { - has_title = title:h_china - scope:activity = { + right_portrait = { + character = scope:rite_official + animation = hunting_knife_start + camera = camera_event_very_left + } + + trigger = { + has_title = title:h_china + scope:activity = { any_attending_character = { OR = { is_of_major_interest_to_root_trigger = yes @@ -10365,12 +10323,12 @@ coronation_events.1038 = { is_ai = yes } } - } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { + scope:activity = { random_attending_character = { limit = { OR = { @@ -10383,145 +10341,145 @@ coronation_events.1038 = { } } scope:rite_official = { - random_secret ?= { - limit = { - is_known_by = root - } - save_scope_as = secret + random_secret ?= { + limit = { + is_known_by = root + } + save_scope_as = secret } - } - } + } + } - option = { - name = coronation_events.1038.e # Cite the rites and leave - flavor = coronation_events.1038.e.flavor - trigger = { - has_trait = confucian_education - } + option = { + name = coronation_events.1038.e # Cite the rites and leave + flavor = coronation_events.1038.e.flavor + trigger = { + has_trait = confucian_education + } - add_piety = minor_piety_gain + add_piety = minor_piety_gain - add_trait_xp = { - trait = confucian_education - value = lifestyle_confucian_education_xp_gain_medium_value - } + add_trait_xp = { + trait = confucian_education + value = lifestyle_confucian_education_xp_gain_medium_value + } - stress_impact = { - zealous = minor_stress_impact_loss - cynical = minor_stress_impact_gain - } - - ai_chance = { - base = 35 - modifier = { - add = 25 - has_trait = confucian_education - } - modifier = { - add = 25 - has_trait = zealous - } - modifier = { - add = -15 - has_trait = cynical - } - } - } - - option = { - name = coronation_events.1038.a # Destroy rite official - trigger = { - scope:rite_official = { - is_in_guest_subset = { name = detractor } - } - } - scope:rite_official = { - add_stress = major_stress_gain - change_merit = medium_merit_loss - add_opinion = { - modifier = contempt_opinion - target = root - opinion = -20 - } - } - - if = { - limit = { - has_activity_intent = coronation_weaken_detractors - } - coronation_weaken_detractors_opinion_effect = yes - } - - add_intrigue_lifestyle_xp = minor_lifestyle_xp - - stress_impact = { - compassionate = minor_stress_impact_gain - callous = minor_stress_impact_loss - arrogant = minor_stress_impact_loss + stress_impact = { + zealous = minor_stress_impact_loss + cynical = minor_stress_impact_gain } ai_chance = { - base = 40 - modifier = { - add = -20 - has_trait = compassionate - } - modifier = { - add = 10 - has_trait = callous - } - modifier = { - add = 10 - has_trait = arrogant - } - modifier = { - add = 20 - has_activity_intent = coronation_weaken_detractors - } + base = 35 + modifier = { + add = 25 + has_trait = confucian_education + } + modifier = { + add = 25 + has_trait = zealous + } + modifier = { + add = -15 + has_trait = cynical + } } - } + } + + option = { + name = coronation_events.1038.a # Destroy rite official + trigger = { + scope:rite_official = { + is_in_guest_subset = { name = detractor } + } + } + scope:rite_official = { + add_stress = major_stress_gain + change_merit = medium_merit_loss + add_opinion = { + modifier = contempt_opinion + target = root + opinion = -20 + } + } - option = { - name = coronation_events.1038.b # Bond with rite official + if = { + limit = { + has_activity_intent = coronation_weaken_detractors + } + coronation_weaken_detractors_opinion_effect = yes + } + + add_intrigue_lifestyle_xp = minor_lifestyle_xp - trigger = { - scope:rite_official = { - is_in_guest_subset = { name = detractor } - } - } - - add_diplomacy_lifestyle_xp = minor_lifestyle_xp + stress_impact = { + compassionate = minor_stress_impact_gain + callous = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + } - coronation_move_towards_supporter_effect = { CHARACTER = scope:rite_official } - if = { - limit = { - has_activity_intent = coronation_embrace_supporters - } - coronation_embrace_supporters_opinion_effect = yes - } + ai_chance = { + base = 40 + modifier = { + add = -20 + has_trait = compassionate + } + modifier = { + add = 10 + has_trait = callous + } + modifier = { + add = 10 + has_trait = arrogant + } + modifier = { + add = 20 + has_activity_intent = coronation_weaken_detractors + } + } + } - stress_impact = { - gregarious = minor_stress_impact_loss - callous = minor_stress_impact_gain - } + option = { + name = coronation_events.1038.b # Bond with rite official - ai_chance = { - base = 30 - modifier = { - add = 30 - has_trait = gregarious - } - modifier = { - add = -20 - has_trait = callous - } - } - } + trigger = { + scope:rite_official = { + is_in_guest_subset = { name = detractor } + } + } + + add_diplomacy_lifestyle_xp = minor_lifestyle_xp - option = { - name = coronation_events.1038.c # Use the situation to improve the ceremony - - custom_tooltip = coronation_tt_positive_tiny + coronation_move_towards_supporter_effect = { CHARACTER = scope:rite_official } + if = { + limit = { + has_activity_intent = coronation_embrace_supporters + } + coronation_embrace_supporters_opinion_effect = yes + } + + stress_impact = { + gregarious = minor_stress_impact_loss + callous = minor_stress_impact_gain + } + + ai_chance = { + base = 30 + modifier = { + add = 30 + has_trait = gregarious + } + modifier = { + add = -20 + has_trait = callous + } + } + } + + option = { + name = coronation_events.1038.c # Use the situation to improve the ceremony + + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny @@ -10529,102 +10487,102 @@ coronation_events.1038 = { } if = { - limit = { - has_activity_intent = coronation_impress_attendees - } - coronation_impress_attendees_opinion_effect = yes - } + limit = { + has_activity_intent = coronation_impress_attendees + } + coronation_impress_attendees_opinion_effect = yes + } - stress_impact = { - diligent = minor_stress_impact_loss - lazy = minor_stress_impact_gain - } + stress_impact = { + diligent = minor_stress_impact_loss + lazy = minor_stress_impact_gain + } - ai_chance = { - base = 25 - modifier = { - add = 30 - has_trait = diligent - } - modifier = { - add = -20 - has_trait = lazy - } - } - - } + ai_chance = { + base = 25 + modifier = { + add = 30 + has_trait = diligent + } + modifier = { + add = -20 + has_trait = lazy + } + } + + } - option = { - name = coronation_events.1038.d # Make sure to mention your formidable house - - dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } + option = { + name = coronation_events.1038.d # Make sure to mention your formidable house + + dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } - if = { - limit = { - has_activity_intent = coronation_exalt_crown - } - coronation_exalt_crown_opinion_effect = yes - } + if = { + limit = { + has_activity_intent = coronation_exalt_crown + } + coronation_exalt_crown_opinion_effect = yes + } - stress_impact = { - diligent = minor_stress_impact_loss - arrogant = minor_stress_impact_loss - humble = minor_stress_impact_gain - } + stress_impact = { + diligent = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + humble = minor_stress_impact_gain + } - ai_chance = { - base = 20 - modifier = { - add = 20 - has_trait = vengeful - } - modifier = { - add = -15 - has_trait = forgiving - } - modifier = { - add = -10 - has_trait = just - } - } - } - after = { + ai_chance = { + base = 20 + modifier = { + add = 20 + has_trait = vengeful + } + modifier = { + add = -15 + has_trait = forgiving + } + modifier = { + add = -10 + has_trait = just + } + } + } + after = { # For MP coronation_ready_effect = yes } } coronation_events.1039 = { - type = activity_event - title = coronation_events.1039.t - desc = coronation_events.1039.desc - theme = coronation_activity - cooldown = { years = 10 } + type = activity_event + title = coronation_events.1039.t + desc = coronation_events.1039.desc + theme = coronation_activity + cooldown = { years = 10 } - override_background = { + override_background = { reference = temple } - left_portrait = { - character = root - animation = personality_zealous - camera = camera_event_center_pointing_right - } - - center_portrait = { - character = scope:supporter - animation = prayer - camera = camera_event_very_left_fov35 - } + left_portrait = { + character = root + animation = personality_zealous + camera = camera_event_center_pointing_right + } + + center_portrait = { + character = scope:supporter + animation = prayer + camera = camera_event_very_left_fov35 + } - trigger = { - government_is_japanese_trigger = yes + trigger = { + government_is_japanese_trigger = yes is_independent_ruler = yes trigger_if = { limit = { tgp_realm_has_ceremonial_liege_trigger = yes } tgp_has_ceremonial_liege_title_trigger = yes } - scope:activity = { + scope:activity = { any_guest_subset = { name = supporter OR = { @@ -10634,12 +10592,12 @@ coronation_events.1039 = { is_ai = yes } } - } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes - scope:activity = { + scope:activity = { random_guest_subset = { name = supporter limit = { @@ -10652,17 +10610,17 @@ coronation_events.1039 = { save_scope_as = supporter } } - } + } - option = { - name = coronation_events.1039.d # "Compose a poem on harmony." - flavor = coronation_events.1039.d.flavor - trigger = { - has_trait = lifestyle_poet - } - - save_scope_as = owner - custom_tooltip = coronation_events.1039.d.tt + option = { + name = coronation_events.1039.d # "Compose a poem on harmony." + flavor = coronation_events.1039.d.flavor + trigger = { + has_trait = lifestyle_poet + } + + save_scope_as = owner + custom_tooltip = coronation_events.1039.d.tt hidden_effect_new_object = { get_artifact_quality_effect = yes @@ -10689,113 +10647,113 @@ coronation_events.1039 = { } } - stress_impact = { - diligent = minor_stress_impact_loss - lazy = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + diligent = minor_stress_impact_loss + lazy = minor_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - add = 20 - has_trait = diligent - } - modifier = { - add = -15 - has_trait = lazy - } - } - } + ai_chance = { + base = 40 + modifier = { + add = 20 + has_trait = diligent + } + modifier = { + add = -15 + has_trait = lazy + } + } + } - option = { - name = coronation_events.1039.a # "The good of the realm." - add_diplomacy_lifestyle_xp = medium_lifestyle_xp + option = { + name = coronation_events.1039.a # "The good of the realm." + add_diplomacy_lifestyle_xp = medium_lifestyle_xp - if = { - limit = { - has_activity_intent = coronation_embrace_supporters - } - coronation_embrace_supporters_opinion_effect = yes - } + if = { + limit = { + has_activity_intent = coronation_embrace_supporters + } + coronation_embrace_supporters_opinion_effect = yes + } - stress_impact = { - just = minor_stress_impact_loss - callous = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + just = minor_stress_impact_loss + callous = minor_stress_impact_gain + arrogant = minor_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - add = 20 - has_trait = just - } - modifier = { - add = -15 - has_trait = callous - } - modifier = { - add = -10 - has_trait = arrogant - } - } - } + ai_chance = { + base = 40 + modifier = { + add = 20 + has_trait = just + } + modifier = { + add = -15 + has_trait = callous + } + modifier = { + add = -10 + has_trait = arrogant + } + } + } - option = { - name = coronation_events.1039.b # "I will make a statement." - - custom_tooltip = coronation_tt_positive_medium + option = { + name = coronation_events.1039.b # "I will make a statement." + + custom_tooltip = coronation_tt_positive_medium scope:activity = { activity_special_type_progression_medium = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_medium CHAR = root } - stress_impact = { - arrogant = minor_stress_impact_loss - humble = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + arrogant = minor_stress_impact_loss + humble = minor_stress_impact_gain + } - ai_chance = { - base = 30 - modifier = { - add = -20 - has_trait = humble - } - modifier = { - add = 15 - has_trait = arrogant - } - } - } + ai_chance = { + base = 30 + modifier = { + add = -20 + has_trait = humble + } + modifier = { + add = 15 + has_trait = arrogant + } + } + } - option = { - name = coronation_events.1039.c # "I will keep everything a secret." - add_intrigue_lifestyle_xp = major_lifestyle_xp + option = { + name = coronation_events.1039.c # "I will keep everything a secret." + add_intrigue_lifestyle_xp = major_lifestyle_xp - stress_impact = { - deceitful = minor_stress_impact_loss - gregarious = minor_stress_impact_loss - honest = minor_stress_impact_gain - } + stress_and_fulfillment_impact = { + deceitful = minor_stress_impact_loss + gregarious = minor_stress_impact_loss + honest = minor_stress_impact_gain + } - ai_chance = { - base = 25 - modifier = { - add = 25 - has_trait = deceitful - } - modifier = { - add = -20 - has_trait = honest - } - modifier = { - add = 10 - has_trait = gregarious - } - } - } - after = { + ai_chance = { + base = 25 + modifier = { + add = 25 + has_trait = deceitful + } + modifier = { + add = -20 + has_trait = honest + } + modifier = { + add = 10 + has_trait = gregarious + } + } + } + after = { # For MP coronation_ready_effect = yes } @@ -10819,36 +10777,36 @@ scripted_trigger coronation_events_1040_neighbor_trigger = { } coronation_events.1040 = { - type = activity_event - title = coronation_events.1040.t - desc = coronation_events.1040.desc - theme = coronation_activity - cooldown = { years = 10 } + type = activity_event + title = coronation_events.1040.t + desc = coronation_events.1040.desc + theme = coronation_activity + cooldown = { years = 10 } - override_background = { + override_background = { reference = throne_room } - left_portrait = { - character = root - animation = chaplain - camera = camera_event_center_pointing_right - } + left_portrait = { + character = root + animation = chaplain + camera = camera_event_center_pointing_right + } - center_portrait = { - character = scope:tributary_1 - animation = debating - camera = camera_event_center_pointing_left - } + center_portrait = { + character = scope:tributary_1 + animation = debating + camera = camera_event_center_pointing_left + } - right_portrait = { - character = scope:tributary_2 - animation = personality_zealous - } + right_portrait = { + character = scope:tributary_2 + animation = personality_zealous + } - trigger = { - has_government = mandala_government - scope:activity = { + trigger = { + has_government = mandala_government + scope:activity = { any_guest_subset = { name = supporter OR = { @@ -10861,10 +10819,10 @@ coronation_events.1040 = { any_neighboring_top_liege_realm_owner = { coronation_events_1040_neighbor_trigger = yes } - } + } - immediate = { - # For MP + immediate = { + # For MP coronation_busy_effect = yes every_neighboring_top_liege_realm_owner = { @@ -10893,12 +10851,12 @@ coronation_events.1040 = { save_scope_as = tributary_2 } } - } + } - option = { # Special — Reuse one you found earlier - name = coronation_events.1040.special + option = { # Special — Reuse one you found earlier + name = coronation_events.1040.special - trigger = { + trigger = { learning >= high_skill_rating } @@ -10911,71 +10869,71 @@ coronation_events.1040 = { } if = { - limit = { exists = scope:tributary_1 } - scope:tributary_1 = { - start_tributary_interaction_effect = { - TRIBUTARY = this - SUZERAIN = root - } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 30 - } - } + limit = { exists = scope:tributary_1 } + scope:tributary_1 = { + start_tributary_interaction_effect = { + TRIBUTARY = this + SUZERAIN = root + } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 30 + } + } } if = { - limit = { exists = scope:tributary_2 } - scope:tributary_2 = { - start_tributary_interaction_effect = { - TRIBUTARY = this - SUZERAIN = root - } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 30 - } - } + limit = { exists = scope:tributary_2 } + scope:tributary_2 = { + start_tributary_interaction_effect = { + TRIBUTARY = this + SUZERAIN = root + } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 30 + } + } } - stress_impact = { - arrogant = medium_stress_impact_gain - greedy = minor_stress_impact_loss - humble = medium_stress_impact_loss - } + stress_impact = { + arrogant = medium_stress_impact_gain + greedy = minor_stress_impact_loss + humble = medium_stress_impact_loss + } - ai_chance = { - base = 40 - modifier = { - add = 50 - learning >= high_skill_rating - } - modifier = { - add = 20 - has_trait = greedy - } - modifier = { - add = 20 - has_trait = humble - } - modifier = { - add = -10 - has_trait = arrogant - } - modifier = { - add = 10 - has_trait = diligent - } - } - } + ai_chance = { + base = 40 + modifier = { + add = 50 + learning >= high_skill_rating + } + modifier = { + add = 20 + has_trait = greedy + } + modifier = { + add = 20 + has_trait = humble + } + modifier = { + add = -10 + has_trait = arrogant + } + modifier = { + add = 10 + has_trait = diligent + } + } + } - option = { # A — Spare no Expense - name = coronation_events.1040.a + option = { # A — Spare no Expense + name = coronation_events.1040.a - add_piety = massive_piety_loss - custom_tooltip = coronation_tt_positive_medium + add_piety = massive_piety_loss + custom_tooltip = coronation_tt_positive_medium scope:activity = { activity_special_type_progression_medium = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_medium @@ -10983,63 +10941,63 @@ coronation_events.1040 = { } if = { - limit = { exists = scope:tributary_1 } - scope:tributary_1 = { - start_tributary_interaction_effect = { - TRIBUTARY = this - SUZERAIN = root - } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 30 - } - } + limit = { exists = scope:tributary_1 } + scope:tributary_1 = { + start_tributary_interaction_effect = { + TRIBUTARY = this + SUZERAIN = root + } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 30 + } + } } if = { - limit = { exists = scope:tributary_2 } - scope:tributary_2 = { - start_tributary_interaction_effect = { - TRIBUTARY = this - SUZERAIN = root - } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 30 - } - } + limit = { exists = scope:tributary_2 } + scope:tributary_2 = { + start_tributary_interaction_effect = { + TRIBUTARY = this + SUZERAIN = root + } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 30 + } + } } - stress_impact = { - diligent = medium_stress_impact_loss - arrogant = medium_stress_impact_loss - greedy = medium_stress_impact_gain - } + stress_impact = { + diligent = medium_stress_impact_loss + arrogant = medium_stress_impact_loss + greedy = medium_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - add = -40 - has_trait = greedy - } - modifier = { - add = 20 - has_trait = diligent - } - modifier = { - add = 20 - has_trait = arrogant - } - } - } + ai_chance = { + base = 40 + modifier = { + add = -40 + has_trait = greedy + } + modifier = { + add = 20 + has_trait = diligent + } + modifier = { + add = 20 + has_trait = arrogant + } + } + } - option = { # B — Simple Mandala - name = coronation_events.1040.b + option = { # B — Simple Mandala + name = coronation_events.1040.b - add_piety = major_piety_loss - custom_tooltip = coronation_tt_positive_tiny + add_piety = major_piety_loss + custom_tooltip = coronation_tt_positive_tiny scope:activity = { activity_special_type_progression_tiny = yes } coronation_add_magnificence_log_effect = { VALUE = flag:positive_tiny @@ -11047,73 +11005,73 @@ coronation_events.1040 = { } if = { - limit = { exists = scope:tributary_1 } - scope:tributary_1 = { - start_tributary_interaction_effect = { - TRIBUTARY = this - SUZERAIN = root - } - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 30 - } - } + limit = { exists = scope:tributary_1 } + scope:tributary_1 = { + start_tributary_interaction_effect = { + TRIBUTARY = this + SUZERAIN = root + } + add_opinion = { + target = root + modifier = impressed_opinion + opinion = 30 + } + } } - stress_impact = { - diligent = minor_stress_impact_loss - arrogant = minor_stress_impact_loss - greedy = minor_stress_impact_gain - } + stress_impact = { + diligent = minor_stress_impact_loss + arrogant = minor_stress_impact_loss + greedy = minor_stress_impact_gain + } - ai_chance = { - base = 40 - modifier = { - add = -20 - has_trait = greedy - } - modifier = { - add = 10 - has_trait = arrogant - } - modifier = { - add = 10 - has_trait = diligent - } - } - } + ai_chance = { + base = 40 + modifier = { + add = -20 + has_trait = greedy + } + modifier = { + add = 10 + has_trait = arrogant + } + modifier = { + add = 10 + has_trait = diligent + } + } + } - option = { # C — That's wasteful - name = coronation_events.1040.c + option = { # C — That's wasteful + name = coronation_events.1040.c - add_piety = minor_piety_gain + add_piety = minor_piety_gain - stress_impact = { - diligent = minor_stress_impact_gain - arrogant = minor_stress_impact_gain - greedy = medium_stress_impact_loss - } + stress_impact = { + diligent = minor_stress_impact_gain + arrogant = minor_stress_impact_gain + greedy = medium_stress_impact_loss + } - ai_chance = { - base = 40 - modifier = { - add = 20 - has_trait = greedy - } - modifier = { - add = -10 - has_trait = arrogant - } - modifier = { - add = -10 - has_trait = diligent - } - } - } + ai_chance = { + base = 40 + modifier = { + add = 20 + has_trait = greedy + } + modifier = { + add = -10 + has_trait = arrogant + } + modifier = { + add = -10 + has_trait = diligent + } + } + } - after = { + after = { # For MP coronation_ready_effect = yes } -} \ No newline at end of file +} diff --git a/events/activities/coronation_activity/coronation_events_6.txt b/events/activities/coronation_activity/coronation_events_6.txt index 100202a02..58263dcb9 100644 --- a/events/activities/coronation_activity/coronation_events_6.txt +++ b/events/activities/coronation_activity/coronation_events_6.txt @@ -376,7 +376,6 @@ coronation_events.6000 = { scope:host.primary_title = { any_de_jure_county = { count >= 1 - exists = this } } } @@ -391,7 +390,7 @@ coronation_events.6000 = { #Effects will actually be done in mirror event trigger_event = coronation_events.6001 } - stress_impact = { + stress_and_fulfillment_impact = { fickle = medium_stress_impact_gain greedy = minor_stress_impact_gain arbitrary = medium_stress_impact_gain @@ -519,7 +518,7 @@ coronation_events.6000 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = miniscule_stress_impact_loss content = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -620,7 +619,7 @@ coronation_events.6000 = { add_legitimacy = miniscule_legitimacy_gain custom_tooltip = improved_because_intent_tt } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss compassionate = miniscule_stress_impact_loss @@ -703,9 +702,9 @@ coronation_events.6001 = { option = { name = coronation_events.6001.a trigger = { - NOR = { - has_character_flag = confederation_politicking_vote_2 - has_character_flag = confederation_politicking_vote + has_none_of_variables = { + name = confederation_politicking_vote_2 + name = confederation_politicking_vote } } save_scope_as = root_scope @@ -761,7 +760,7 @@ coronation_events.6001 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain ambitious = medium_stress_impact_gain @@ -827,7 +826,7 @@ coronation_events.6001 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain ambitious = medium_stress_impact_gain @@ -901,7 +900,7 @@ coronation_events.6001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain just = medium_stress_impact_gain content = medium_stress_impact_gain @@ -1170,6 +1169,7 @@ coronation_events.6010 = { location = scope:activity.activity_location gender_female_chance = root_soldier_female_chance faith = scope:activity.activity_location.faith + rite = scope:activity.activity_location.rite culture = scope:activity.activity_location.culture save_scope_as = warrior_1 } @@ -1179,6 +1179,7 @@ coronation_events.6010 = { location = scope:activity.activity_location gender_female_chance = root_soldier_female_chance faith = scope:activity.activity_location.faith + rite = scope:activity.activity_location.rite culture = scope:activity.activity_location.culture save_scope_as = warrior_2 } @@ -1243,7 +1244,7 @@ coronation_events.6010 = { #Effects will actually be done in mirror event trigger_event = coronation_events.6011 } - stress_impact = { + stress_and_fulfillment_impact = { just = miniscule_stress_impact_loss brave = miniscule_stress_impact_loss fickle = medium_stress_impact_gain @@ -1288,49 +1289,13 @@ coronation_events.6010 = { name = coronation_events.6010.b flavor = coronation_events.6010.b.flavor trigger = { - NOR = { - has_perk = meritocracy_perk - AND = { - is_diarch_of_target = scope:host - scope:host = { - NOT = { has_diarchy_parameter = can_be_instantly_dismissed } - } - } -# AND = { -# is_powerful_vassal_of = scope:host -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = unlocks_claim_throne_for_powerful_vassals -# is_secondary_character_involvement_involved_trigger = { -# CHAR = scope:host -# } -# } -# } -# AND = { -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = unlocks_claim_throne_for_all -# is_secondary_character_involvement_involved_trigger = { -# CHAR = scope:host -# } -# } -# } -# AND = { -# exists = title:d_sunni.holder -# is_vassal_of = title:d_sunni.holder -# any_character_struggle = { -# involvement = involved -# has_struggle_phase_parameter = unlocks_claim_throne_for_caliph_vassals -# } -# } - has_character_flag = confederation_claim_throne - } + NOT = { has_access_to_claim_throne_scheme_trigger = { TARGET = scope:host } } has_activity_intent = coronation_disrupt_loyalists } custom_tooltip = confederation_claim_throne add_character_flag = confederation_claim_throne - stress_impact = { + stress_and_fulfillment_impact = { ambitious = miniscule_stress_impact_loss content = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -1369,9 +1334,9 @@ coronation_events.6010 = { option = { name = coronation_events.6010.c trigger = { - NOR = { - has_character_flag = confederation_politicking_vote_2 - has_character_flag = confederation_politicking_vote + has_none_of_variables = { + name = confederation_politicking_vote_2 + name = confederation_politicking_vote } } add_legitimacy = minor_legitimacy_gain @@ -1468,7 +1433,7 @@ coronation_events.6010 = { } custom_tooltip = improved_because_intent_tt } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss humble = medium_stress_impact_gain trusting = medium_stress_impact_gain @@ -1839,9 +1804,9 @@ coronation_events.6011 = { } trigger_else_if = { limit = { - has_trait = scholar + has_trait = erudite } - has_trait = scholar + has_trait = erudite } trigger_else_if = { limit = { @@ -1873,10 +1838,10 @@ coronation_events.6011 = { culture = { has_cultural_tradition = tradition_pacifism } - faith = { + rite = { OR = { - has_doctrine = tenet_pacifism - has_doctrine = tenet_dharmic_pacifism + rite_has_tenet = tenet_pacifism + rite_has_tenet = tenet_dharmic_pacifism } } } @@ -1960,7 +1925,7 @@ coronation_events.6011 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = miniscule_stress_impact_loss compassionate = miniscule_stress_impact_loss paranoid = major_stress_impact_gain @@ -2182,7 +2147,7 @@ coronation_events.6011 = { coronation_events_6010_defender_effect_2 = yes } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = minor_stress_impact_gain arbitrary = minor_stress_impact_gain } @@ -2220,7 +2185,7 @@ coronation_events.6011 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { trusting = miniscule_stress_impact_loss arrogant = minor_stress_impact_gain arbitrary = miniscule_stress_impact_gain @@ -2298,7 +2263,7 @@ coronation_events.6011 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss trusting = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -2888,7 +2853,7 @@ scripted_effect coronation_events_6020_declare_war_effect = { } if = { limit = { - government_allows = administrative + government_has_mechanic = administrative NOT = { has_variable = admin_permission_to_declare_war } @@ -3049,7 +3014,7 @@ coronation_events.6020 = { } OR = { has_variable = admin_permission_to_declare_war - government_allows = administrative + government_has_mechanic = administrative } } #Feudal war restriction and feudal workarounds available @@ -3099,7 +3064,7 @@ coronation_events.6020 = { } OR = { has_variable = admin_permission_to_declare_war - government_allows = administrative + government_has_mechanic = administrative } } #Feudal war restriction and feudal workarounds available @@ -3420,7 +3385,7 @@ coronation_events.6020 = { } scope:foe = { remove_from_activity = scope:activity } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain calm = miniscule_stress_impact_gain @@ -3510,7 +3475,7 @@ coronation_events.6020 = { } scope:foe_2 = { remove_from_activity = scope:activity } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain calm = miniscule_stress_impact_gain @@ -3595,7 +3560,7 @@ coronation_events.6020 = { } scope:foe = { remove_from_activity = scope:activity } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -3649,7 +3614,7 @@ coronation_events.6020 = { } scope:foe_2 = { remove_from_activity = scope:activity } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -3699,7 +3664,7 @@ coronation_events.6020 = { } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_gain sadistic = miniscule_stress_impact_gain wrathful = minor_stress_impact_gain @@ -3774,9 +3739,12 @@ scripted_effect coronation_events_6030_choose_courtesan_effect = { #Add to court add_courtier = $COURTESAN$ #Add progress to lover relation - set_relation_lover = { - reason = lover_coronation_courtesan - target = $COURTESAN$ + if = { + limit = { can_set_relation_lover_trigger = { CHARACTER = $COURTESAN$ } } + set_relation_lover = { + reason = lover_coronation_courtesan + target = $COURTESAN$ + } } $COURTESAN$ = { add_character_flag = { @@ -3828,18 +3796,12 @@ coronation_events.6030 = { is_adult = yes is_playable_character = yes this != involved_activity.activity_host - trigger_if = { - limit = { - is_ai = yes - } - might_cheat_on_every_partner_trigger = yes - } + might_cheat_on_every_partner_trigger = yes NOR = { has_trait = celibate has_trait = chaste is_incapable = yes has_contagious_deadly_disease_trigger = yes - is_eunuch_trigger = yes has_trait = leper } involved_activity = { @@ -3873,11 +3835,8 @@ coronation_events.6030 = { } is_adult = yes OR = { - has_trait = deviant + has_lustful_adjacent_trait_trigger = yes might_cheat_on_every_partner_trigger = yes - has_trait = rakish - has_trait = seducer - has_trait = lustful } #Let's make this simple and only do same-gender pairs between root and host OR = { @@ -3918,15 +3877,15 @@ coronation_events.6030 = { involved_activity.activity_host = { OR = { AND = { - faith = { - has_doctrine = doctrine_adultery_men_shunned + rite = { + rite_has_doctrine = doctrine_adultery_men_shunned } is_male = yes is_married = yes } AND = { - faith = { - has_doctrine = doctrine_adultery_women_shunned + rite = { + rite_has_doctrine = doctrine_adultery_women_shunned } is_female = yes is_married = yes @@ -3939,15 +3898,15 @@ coronation_events.6030 = { involved_activity.activity_host = { OR = { AND = { - faith = { - has_doctrine = doctrine_adultery_men_crime + rite = { + rite_has_doctrine = doctrine_adultery_men_crime } is_male = yes is_married = yes } AND = { - faith = { - has_doctrine = doctrine_adultery_women_crime + rite = { + rite_has_doctrine = doctrine_adultery_women_crime } is_female = yes is_married = yes @@ -3998,7 +3957,7 @@ coronation_events.6030 = { modifier = { add = 2 involved_activity.activity_host = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } } } @@ -4025,6 +3984,7 @@ coronation_events.6030 = { template = experienced_courtesan_character gender = female faith = location.faith + rite = location.rite culture = location.culture save_scope_as = experienced_courtesan } @@ -4033,6 +3993,7 @@ coronation_events.6030 = { template = funny_courtesan_character gender = female faith = location.faith + rite = location.rite culture = location.culture mother = scope:experienced_courtesan save_scope_as = funny_courtesan_1 @@ -4045,6 +4006,7 @@ coronation_events.6030 = { template = funny_courtesan_character gender = female faith = location.faith + rite = location.rite culture = location.culture mother = scope:experienced_courtesan save_scope_as = funny_courtesan_2 @@ -4057,6 +4019,7 @@ coronation_events.6030 = { template = cunning_courtesan_character gender = female faith = root.location.faith + rite = root.location.rite culture = root.location.culture save_scope_as = cunning_courtesan } @@ -4068,6 +4031,7 @@ coronation_events.6030 = { template = fearsome_courtesan_character gender = female faith = root.location.faith + rite = root.location.rite culture = root.location.culture save_scope_as = fearsome_courtesan } @@ -4085,6 +4049,7 @@ coronation_events.6030 = { template = experienced_courtesan_character gender = male faith = location.faith + rite = location.rite culture = location.culture save_scope_as = experienced_courtesan } @@ -4094,6 +4059,7 @@ coronation_events.6030 = { gender = male father = scope:experienced_courtesan faith = location.faith + rite = location.rite culture = location.culture save_scope_as = funny_courtesan_1 } @@ -4106,6 +4072,7 @@ coronation_events.6030 = { gender = male father = scope:experienced_courtesan faith = location.faith + rite = location.rite culture = location.culture save_scope_as = funny_courtesan_2 } @@ -4117,6 +4084,7 @@ coronation_events.6030 = { template = cunning_courtesan_character gender = male faith = location.faith + rite = location.rite culture = location.culture save_scope_as = cunning_courtesan } @@ -4128,6 +4096,7 @@ coronation_events.6030 = { template = fearsome_courtesan_character gender = male faith = root.location.faith + rite = root.location.rite culture = root.location.culture save_scope_as = fearsome_courtesan } @@ -4231,7 +4200,7 @@ coronation_events.6030 = { coronation_events_6030_choose_courtesan_effect = { COURTESAN = scope:fearsome_courtesan } coronation_events_6030_accept_courtesan_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain } ai_chance = { @@ -4274,7 +4243,7 @@ coronation_events.6030 = { coronation_events_6030_choose_courtesan_effect = { COURTESAN = scope:cunning_courtesan } coronation_events_6030_accept_courtesan_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain } ai_chance = { @@ -4317,7 +4286,7 @@ coronation_events.6030 = { coronation_events_6030_choose_courtesan_effect = { COURTESAN = scope:experienced_courtesan } coronation_events_6030_accept_courtesan_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain } ai_chance = { @@ -4370,7 +4339,7 @@ coronation_events.6030 = { } } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain lazy = minor_stress_impact_gain } @@ -4404,15 +4373,15 @@ coronation_events.6030 = { is_ai = yes OR = { NOT = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } AND = { is_male = yes scope:funny_courtesan_1 = { is_male = yes } - faith = { - has_doctrine = doctrine_homosexuality_crime + rite = { + rite_has_doctrine = doctrine_homosexuality_crime } } } @@ -4435,15 +4404,15 @@ coronation_events.6030 = { is_ai = yes OR = { NOT = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } AND = { is_male = yes scope:funny_courtesan_1 = { is_male = yes } - faith = { - has_doctrine = doctrine_homosexuality_crime + rite = { + rite_has_doctrine = doctrine_homosexuality_crime } } } @@ -4451,14 +4420,14 @@ coronation_events.6030 = { } if = { limit = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } add_piety = major_piety_gain } else_if = { limit = { NOT = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } } add_piety = minor_piety_gain @@ -4467,14 +4436,14 @@ coronation_events.6030 = { #Piety loss based on how bad horny is if = { limit = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } add_piety = major_piety_loss } else_if = { limit = { NOT = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } } add_piety = medium_piety_loss @@ -4487,16 +4456,16 @@ coronation_events.6030 = { AND = { is_male = yes NOT = { - faith = { - has_doctrine = doctrine_adultery_men_accepted + rite = { + rite_has_doctrine = doctrine_adultery_men_accepted } } } AND = { is_female = yes NOT = { - faith = { - has_doctrine = doctrine_adultery_women_accepted + rite = { + rite_has_doctrine = doctrine_adultery_women_accepted } } } @@ -4543,8 +4512,8 @@ coronation_events.6030 = { scope:funny_courtesan_1 = { is_male = yes } - faith = { - has_doctrine = doctrine_homosexuality_crime + rite = { + rite_has_doctrine = doctrine_homosexuality_crime } } #Send log if haven't already @@ -4598,7 +4567,7 @@ coronation_events.6030 = { } add_learning_lifestyle_xp = minor_lifestyle_xp } - stress_impact = { + stress_and_fulfillment_impact = { lustful = major_stress_impact_gain rakish = medium_stress_impact_gain } @@ -4725,7 +4694,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } is_male = yes } @@ -4751,7 +4720,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } } } @@ -4804,7 +4773,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } ai_zeal <= low_negative_ai_value } @@ -4830,7 +4799,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } } } @@ -4890,7 +4859,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } is_male = yes } @@ -4916,7 +4885,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } } } @@ -4942,7 +4911,7 @@ coronation_events.6100 = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } - } + } } desc = coronation_events.6100.desc_christian_guest } @@ -4959,7 +4928,7 @@ coronation_events.6100 = { faith.religion = religion:catholic_religion faith.religion = religion:protestant_religion } - } + } scope:host = { OR = { AND = { @@ -4969,7 +4938,7 @@ coronation_events.6100 = { } highest_held_title_tier >= tier_empire } - primary_title = title:e_byzantium + is_eastern_roman_emperor_primary_title_trigger = yes } } } @@ -5198,7 +5167,7 @@ coronation_events.6100 = { culture = { has_graphical_norse_culture_group_trigger = yes } scope:activity.var:activity_special_type_progression >= 25 } - play_music_cue = mx_mood_fp1_thefeast + play_music_cue = mx_thefeast } #Steppe else_if = { @@ -5384,7 +5353,7 @@ coronation_events.6100 = { this = scope:host scope:activity.var:activity_special_type_progression >= 25 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = massive_stress_impact_loss ambitious = medium_stress_impact_loss just = medium_stress_impact_loss @@ -5424,15 +5393,23 @@ scripted_effect coronation_events_6101_self_crowning_effect = { } } } - faith.religious_head ?= { + scope:activity.var:anointment_authority ?= { save_scope_as = judger } } - else = { + else_if = { + limit = { exists = cp:councillor_court_chaplain } cp:councillor_court_chaplain ?= { save_scope_as = judger } } + else_if = { # Nomad case + limit = { employs_court_position = court_astrologer_court_position } + random_court_position_holder = { + type = court_astrologer_court_position + save_scope_as = judger + } + } if = { limit = { scope:activity.var:activity_special_type_progression < 75 @@ -5448,7 +5425,7 @@ scripted_effect coronation_events_6101_self_crowning_effect = { custom = custom.every_zealot_vassal limit = { has_vassal_stance = zealot - this != scope:judger + NOT = { scope:judger ?= this } } add_opinion = { target = scope:host @@ -5472,7 +5449,7 @@ scripted_effect coronation_events_6101_self_crowning_effect = { custom = custom.every_zealot_vassal limit = { has_vassal_stance = zealot - this != scope:judger + NOT = { scope:judger ?= this } } add_opinion = { target = scope:host @@ -5496,7 +5473,7 @@ scripted_effect coronation_events_6101_self_crowning_effect = { custom = custom.every_zealot_vassal limit = { has_vassal_stance = zealot - this != scope:judger + NOT = { scope:judger ?= this } } add_opinion = { target = scope:host @@ -5896,7 +5873,7 @@ coronation_events.6101 = { culture = { has_graphical_norse_culture_group_trigger = yes } scope:activity.var:activity_special_type_progression >= 25 } - play_music_cue = mx_mood_fp1_thefeast + play_music_cue = mx_thefeast } #Steppe else_if = { @@ -6097,9 +6074,9 @@ coronation_events.6101 = { limit = { this = root coronation_proper_artifact_crown_trigger = yes - NAND = { - exists = faith.religious_head - this = faith.religious_head + NOR = { + religious_head_or_challenger ?= this + scope:activity.var:anointment_authority ?= this } } coronation_events_6101_self_crowning_effect = yes @@ -6107,9 +6084,9 @@ coronation_events.6101 = { else_if = { limit = { coronation_proper_artifact_crown_trigger = yes - NAND = { - exists = faith.religious_head - this = faith.religious_head + NOR = { + religious_head_or_challenger ?= this + scope:activity.var:anointment_authority ?= this } } show_as_tooltip = { @@ -6122,7 +6099,7 @@ coronation_events.6101 = { this = scope:host scope:activity.var:activity_special_type_progression >= 25 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = massive_stress_impact_loss ambitious = medium_stress_impact_loss } @@ -6567,7 +6544,7 @@ coronation_events.6102 = { culture = { has_graphical_norse_culture_group_trigger = yes } scope:activity.var:activity_special_type_progression >= 25 } - play_music_cue = mx_mood_fp1_thefeast + play_music_cue = mx_thefeast } #Steppe else_if = { @@ -6793,7 +6770,7 @@ coronation_events.6102 = { this = scope:host scope:activity.var:activity_special_type_progression >= 25 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = massive_stress_impact_loss ambitious = medium_stress_impact_loss just = medium_stress_impact_loss @@ -7507,6 +7484,7 @@ coronation_events.6110 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = blesser } scope:blesser = { @@ -7535,6 +7513,7 @@ coronation_events.6110 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = observer } scope:observer = { @@ -7578,7 +7557,7 @@ coronation_events.6110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } } @@ -7621,7 +7600,7 @@ coronation_events.6110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } } @@ -7664,7 +7643,7 @@ coronation_events.6110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } } @@ -7707,7 +7686,7 @@ coronation_events.6110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } } @@ -7750,7 +7729,7 @@ coronation_events.6110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } } @@ -7801,7 +7780,7 @@ coronation_events.6110 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss } ai_chance = { @@ -7881,7 +7860,7 @@ coronation_events.6120 = { } triggered_desc = { trigger = { - exists = scope:activity.special_guest:priest + exists = scope:activity.special_guest:coronation_hof_guest } desc = coronation_events.6120.desc_holy_site } @@ -7999,11 +7978,15 @@ coronation_events.6120 = { } if = { limit = { - exists = faith.religious_head + exists = scope:activity.var:anointment_authority } - faith = { - religious_head = { save_scope_as = hof } + scope:activity.var:anointment_authority = { save_scope_as = hof } + } + else_if = { + limit = { + exists = religious_head_or_challenger } + religious_head_or_challenger = { save_scope_as = hof } } #Save holy men @@ -8059,6 +8042,7 @@ coronation_events.6120 = { location = scope:host.location culture = scope:host.location.culture faith = scope:host.faith + rite = scope:host.rite save_scope_as = oather_1 } scope:oather_1 = { @@ -8109,6 +8093,7 @@ coronation_events.6120 = { location = scope:host.location culture = scope:host.location.culture faith = scope:host.faith + rite = scope:host.rite save_scope_as = oather_2 } scope:oather_2 = { @@ -8122,9 +8107,9 @@ coronation_events.6120 = { trigger = { has_activity_intent = coronation_embrace_supporters OR = { - faith = { + rite = { NOT = { - has_doctrine = doctrine_pluralism_pluralistic + rite_has_doctrine = doctrine_pluralism_pluralistic } } OR = { @@ -8166,7 +8151,7 @@ coronation_events.6120 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss forgiving = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -8259,7 +8244,7 @@ coronation_events.6120 = { } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss greedy = minor_stress_impact_loss fickle = minor_stress_impact_loss @@ -8943,7 +8928,7 @@ coronation_events.6121 = { scope:vassal_1 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = medium_influence_loss } @@ -8954,7 +8939,7 @@ coronation_events.6121 = { scope:vassal_2 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = medium_influence_loss } @@ -9015,8 +9000,7 @@ coronation_events.6121 = { } } - - stress_impact = { + stress_and_fulfillment_impact = { vengeful = miniscule_stress_impact_loss paranoid = minor_stress_impact_loss trusting = medium_stress_impact_gain @@ -9159,7 +9143,7 @@ coronation_events.6121 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { trusting = miniscule_stress_impact_loss compassionate = miniscule_stress_impact_loss humble = miniscule_stress_impact_loss @@ -9205,7 +9189,7 @@ coronation_events.6121 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = medium_influence_gain } @@ -9221,7 +9205,7 @@ coronation_events.6121 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege = involved_activity.activity_host } change_influence = minor_influence_gain @@ -9250,7 +9234,7 @@ coronation_events.6121 = { option = { trigger = { NOT = { - government_allows = administrative + government_has_mechanic = administrative } trigger_if = { limit = { @@ -9388,9 +9372,15 @@ coronation_events.6121 = { add_tyranny = medium_tyranny_gain } scope:vassal_2 = { - set_relation_rival = { - target = root - reason = rival_duel_attacked + if = { + limit = { + is_alive = yes + can_set_relation_rival_trigger = { CHARACTER = root } + } + set_relation_rival = { + target = root + reason = rival_duel_attacked + } } if = { limit = { @@ -9399,7 +9389,7 @@ coronation_events.6121 = { coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_2 } } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_loss vengeful = minor_stress_impact_loss craven = massive_stress_impact_gain @@ -9667,6 +9657,7 @@ coronation_events.6122 = { location = scope:activity.activity_location gender_female_chance = activity_location_faith_dominant_gender_female_chance faith = scope:activity.activity_location.faith + rite = scope:activity.activity_location.rite culture = scope:activity.activity_location.culture save_scope_as = commoner_1 } @@ -9676,6 +9667,7 @@ coronation_events.6122 = { location = scope:activity.activity_location gender_female_chance = activity_location_faith_dominant_gender_female_chance faith = scope:activity.activity_location.faith + rite = scope:activity.activity_location.rite culture = scope:activity.activity_location.culture save_scope_as = commoner_2 } @@ -9719,7 +9711,7 @@ coronation_events.6122 = { custom_tooltip = coronation_modifier_negative_on_new_primary_tt } remove_short_term_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss arrogant = medium_stress_impact_loss shy = minor_stress_impact_gain @@ -9776,7 +9768,7 @@ coronation_events.6122 = { } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss compassionate = major_stress_impact_gain humble = major_stress_impact_gain @@ -10443,6 +10435,7 @@ coronation_events.6123 = { location = scope:host.location culture = scope:host.location.culture faith = scope:host.faith + rite = scope:host.rite save_scope_as = priest } scope:priest = { @@ -10530,7 +10523,7 @@ coronation_events.6123 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = minor_influence_gain } @@ -10559,7 +10552,7 @@ coronation_events.6123 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = miniscule_influence_gain } @@ -10586,7 +10579,7 @@ coronation_events.6123 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = { value = miniscule_influence_gain @@ -10816,7 +10809,7 @@ coronation_events.6123 = { custom_tooltip = improved_because_intent_tt } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } ai_chance = { @@ -10917,7 +10910,7 @@ coronation_events.6123 = { limit = { exists = scope:major_supporter_1 root = { - government_allows = administrative + government_has_flag = government_has_influence } } change_influence = major_influence_gain @@ -10934,7 +10927,7 @@ coronation_events.6123 = { if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = minor_influence_loss } @@ -10963,7 +10956,7 @@ coronation_events.6123 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = miniscule_influence_loss } @@ -10990,7 +10983,7 @@ coronation_events.6123 = { } if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence } change_influence = { value = miniscule_influence_loss @@ -11266,7 +11259,7 @@ coronation_events.6123 = { coronation_move_towards_detractor_effect = { CHARACTER = root } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain craven = medium_stress_impact_gain forgiving = medium_stress_impact_gain @@ -11572,7 +11565,7 @@ coronation_events.6123 = { is_vassal_of = scope:host has_relation_rival = scope:host } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain arrogant = minor_stress_impact_gain vengeful = minor_stress_impact_gain @@ -11583,7 +11576,7 @@ coronation_events.6123 = { limit = { is_vassal_of = scope:host } - stress_impact = { + stress_and_fulfillment_impact = { humble = miniscule_stress_impact_loss trusting = miniscule_stress_impact_loss } @@ -11593,7 +11586,7 @@ coronation_events.6123 = { limit = { is_vassal_of = scope:host } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_gain } } @@ -11634,7 +11627,7 @@ scripted_trigger coronation_events_6130_dharmic_trigger = { OR = { geographical_region = world_india geographical_region = world_tibet - geographical_region = world_burma + geographical_region = world_asia_southeast_mainland } } } @@ -11765,7 +11758,10 @@ coronation_events.6130 = { triggered_desc = { trigger = { scope:anointer = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } opinion = { target = scope:host value < 0 @@ -11777,7 +11773,10 @@ coronation_events.6130 = { triggered_desc = { trigger = { scope:anointer = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } opinion = { target = scope:host value >= 50 @@ -11790,7 +11789,10 @@ coronation_events.6130 = { triggered_desc = { trigger = { scope:anointer = { - this = faith.religious_head + OR = { + this = religious_head_or_challenger + scope:activity.var:anointment_authority ?= this + } } } desc = coronation_events.6130.faith_head @@ -11974,8 +11976,9 @@ coronation_events.6130 = { involved_activity ?= { activity_host = { NOT = { - faith.religious_head ?= this + religious_head_or_challenger ?= this } + NOT = { scope:activity.var:anointment_authority ?= this } } OR = { activity_host.faith.religion = religion:eastern_orthodox_religion @@ -12368,6 +12371,31 @@ coronation_events.6130 = { } } } + #PAM - Holy Myron: pre-save the vessel and the regnal artifact so the option's tooltips render + if = { + limit = { + this = scope:host + pam_has_usable_holy_myron_trigger = yes + } + pam_save_holy_myron_artifact_effect = yes + random_character_artifact = { + limit = { + is_coronation_artifact_trigger = yes + NOT = { has_artifact_modifier = pam_chrismated_regalia_modifier } + } + weight = { + base = 1 + modifier = { + add = 100 + has_variable = artifact_succession_title + var:artifact_succession_title ?= { + this = root.primary_title + } + } + } + save_scope_as = pam_regnal_artifact + } + } } #I am sooo ready to fight for the faith option = { @@ -12421,7 +12449,7 @@ coronation_events.6130 = { set_variable = { name = k_holy_war_crusader } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_loss wrathful = miniscule_stress_impact_loss vengeful = minor_stress_impact_loss @@ -12502,7 +12530,7 @@ coronation_events.6130 = { add_character_flag = conversion_acceptance_bonus_low } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_loss content = minor_stress_impact_gain cynical = major_stress_impact_gain @@ -12580,7 +12608,7 @@ coronation_events.6130 = { coronation_move_towards_supporter_effect = { CHARACTER = scope:anointer } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss humble = miniscule_stress_impact_loss arrogant = minor_stress_impact_gain @@ -12606,6 +12634,53 @@ coronation_events.6130 = { } } } + #PAM - Holy Myron: spend a charge of the sacred chrism on your own anointment + option = { + trigger = { + this = scope:host + is_christian_trigger = yes + pam_has_usable_holy_myron_trigger = yes + } + name = pam_holy_myron_coronation_option + flavor = pam_holy_myron_coronation_option.flavor + + pam_holy_myron_spend_warning_effect = yes + hidden_effect = { + pam_holy_myron_consume_charge_effect = { + ARTIFACT = scope:pam_holy_myron_artifact + } + create_character_memory = { + type = pam_holy_myron_coronation_memory + participants = { anointer = scope:anointer } + } + } + add_piety = major_piety_gain + add_legitimacy_effect = { LEGITIMACY = medium_legitimacy_gain } + change_spiritual_fulfillment = massive_spiritual_fulfillment_value + #The regnal artifact keeps the blessing (picked in the immediate) + if = { + limit = { exists = scope:pam_regnal_artifact } + scope:pam_regnal_artifact = { + add_artifact_modifier = pam_chrismated_regalia_modifier + set_artifact_description = pam_chrismated_regalia_desc + } + } + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_loss + cynical = minor_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + factor = 2 + has_trait = zealous + } + modifier = { + factor = 0 + has_trait = cynical + } + } + } option = { name = { text = { @@ -12692,7 +12767,7 @@ coronation_events.6130 = { add_piety = medium_piety_gain faith = { change_fervor = { - value = 4 + value = slight_fervor_gain desc = fervor_gain_anointment } } @@ -12730,7 +12805,7 @@ coronation_events.6130 = { } faith = { change_fervor = { - value = 4 + value = slight_fervor_gain desc = fervor_gain_anointment } } @@ -12750,7 +12825,7 @@ coronation_events.6130 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss } ai_chance = { @@ -12797,7 +12872,7 @@ scripted_effect coronation_events_6140_spouse_effects = { add_prestige = coronation_spouse_prestige_value if = { limit = { - government_allows = administrative + government_has_flag = government_has_influence top_liege.primary_title = scope:host.top_liege.primary_title } change_influence = coronation_spouse_influence_value @@ -13550,7 +13625,7 @@ coronation_events.6140 = { } } custom_tooltip = anointment_available_because_magnificence_tt - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_loss cynical = minor_stress_impact_gain forgiving = minor_stress_impact_gain @@ -13716,7 +13791,7 @@ coronation_events.6140 = { has_relation_lover = scope:spouse } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss @@ -13732,7 +13807,7 @@ coronation_events.6140 = { } } else = { - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss lustful = minor_stress_impact_loss @@ -13815,7 +13890,7 @@ coronation_events.6140 = { scope:host.highest_held_title_tier >= tier_empire is_ai = no } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = massive_stress_impact_loss ambitious = massive_stress_impact_loss greedy = massive_stress_impact_loss @@ -13838,7 +13913,7 @@ coronation_events.6140 = { } is_ai = no } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_loss ambitious = major_stress_impact_loss greedy = major_stress_impact_loss @@ -13861,7 +13936,7 @@ coronation_events.6140 = { } is_ai = no } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_loss ambitious = medium_stress_impact_loss greedy = medium_stress_impact_loss @@ -13884,7 +13959,7 @@ coronation_events.6140 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss ambitious = minor_stress_impact_loss greedy = minor_stress_impact_loss @@ -13900,7 +13975,7 @@ coronation_events.6140 = { limit = { is_ai = no } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss ambitious = miniscule_stress_impact_loss greedy = miniscule_stress_impact_loss @@ -13966,9 +14041,11 @@ coronation_events.6140 = { trigger = { OR = { has_activity_intent = coronation_disrupt_loyalists - is_target_in_variable_list = { - name = major_detractor - target = prev + scope:activity = { + is_target_in_variable_list = { + name = major_detractor + target = root + } } AND = { is_a_faction_member = yes @@ -14120,6 +14197,7 @@ coronation_events.6150 = { has_contagious_deadly_disease_trigger = no NOT = { is_in_guest_subset = { name = detractor } } diplomacy >= medium_skill_rating + is_a_faction_member = no } any_neighboring_top_liege_realm_owner = { coronation_events_6150_neighbor_trigger = yes @@ -14156,7 +14234,7 @@ coronation_events.6150 = { faith = { faith_hostility_level = { target = root.faith - value <= faith.faith_hostile_level + value <= faith_hostile_level } } } @@ -14211,9 +14289,7 @@ coronation_events.6150 = { has_contagious_deadly_disease_trigger = no NOT = { is_in_guest_subset = { name = detractor } } diplomacy >= medium_skill_rating - NOT = { - is_a_faction_member = yes - } + is_a_faction_member = no } #Get decently talented spouse alternative_limit = { @@ -14226,9 +14302,7 @@ coronation_events.6150 = { is_incapable = no has_contagious_deadly_disease_trigger = no NOT = { is_in_guest_subset = { name = detractor } } - NOT = { - is_a_faction_member = yes - } + is_a_faction_member = no } alternative_limit = { involved_activity ?= scope:activity @@ -14239,9 +14313,7 @@ coronation_events.6150 = { has_contagious_deadly_disease_trigger = no NOT = { is_in_guest_subset = { name = detractor } } diplomacy >= medium_skill_rating - NOT = { - is_a_faction_member = yes - } + is_a_faction_member = no } save_scope_as = advisor } @@ -14391,7 +14463,7 @@ coronation_events.6150 = { else = { add_piety = medium_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain vengeful = minor_stress_impact_gain } @@ -14454,7 +14526,7 @@ coronation_events.6150 = { add_diplomacy_lifestyle_xp = major_lifestyle_xp } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss paranoid = minor_stress_impact_gain } @@ -14647,7 +14719,7 @@ coronation_events.6150 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss just = medium_stress_impact_gain greedy = minor_stress_impact_gain @@ -14917,7 +14989,7 @@ coronation_events.6150 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = miniscule_stress_impact_loss content = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -15201,7 +15273,7 @@ coronation_events.6150 = { scope:advisor = { add_prestige = medium_prestige_gain } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = miniscule_stress_impact_loss ambitious = miniscule_stress_impact_loss content = minor_stress_impact_gain diff --git a/events/activities/hold_court_activity/hold_court_events_general.txt b/events/activities/hold_court_activity/hold_court_events_general.txt index 91b710729..54dc2ebd3 100644 --- a/events/activities/hold_court_activity/hold_court_events_general.txt +++ b/events/activities/hold_court_activity/hold_court_events_general.txt @@ -990,7 +990,7 @@ hold_court.3000 = { trigger = { NOT = { government_has_flag = government_is_mandala } - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_in_civil_war = no is_adult = yes any_vassal = { @@ -1055,7 +1055,7 @@ hold_court.3000 = { has_trait = arrogant } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_loss } scope:feast_vassal = { @@ -1291,10 +1291,10 @@ hold_court.3010 = { first_valid = { triggered_desc = { trigger = { - faith = { + rite = { OR = { - has_doctrine = doctrine_clerical_gender_male_only - has_doctrine = doctrine_clerical_gender_female_only + rite_has_doctrine = doctrine_clerical_gender_male_only + rite_has_doctrine = doctrine_clerical_gender_female_only } } } @@ -1334,10 +1334,10 @@ hold_court.3010 = { court_3010_an_unconventional_preacher_vassal_trigger = yes count >= 2 } - faith = { + rite = { # Faith requires some restriction on who can practise it for the event to make sense NOT = { - has_doctrine = doctrine_clerical_gender_either + rite_has_doctrine = doctrine_clerical_gender_either } } OR = { @@ -1375,7 +1375,7 @@ hold_court.3010 = { immediate = { if = { limit = { - faith = { has_doctrine_parameter = clergy_must_be_male } + rite = { rite_has_parameter = clergy_must_be_male } } create_character = { template = virtuous_priest_character_template @@ -1387,7 +1387,7 @@ hold_court.3010 = { } else_if = { limit = { - faith = { has_doctrine_parameter = clergy_must_be_female } + rite = { rite_has_parameter = clergy_must_be_female } } create_character = { template = virtuous_priest_character_template @@ -2009,7 +2009,7 @@ hold_court.3030 = { } remove_treasury_or_gold = medium_treasury_or_gold_value - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_gain generous = medium_stress_loss improvident = medium_stress_loss @@ -2031,7 +2031,7 @@ hold_court.3030 = { scope:province = { has_free_building_slot = yes } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_loss } @@ -2055,7 +2055,7 @@ hold_court.3030 = { option = { name = hold_court.3030.c - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_gain improvident = medium_stress_gain } @@ -2713,7 +2713,7 @@ hold_court.3060 = { opinion = 20 } hidden_effect = { - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_loss } } @@ -2868,7 +2868,7 @@ hold_court.3080 = { modifier = petition_event_artifact_exhibition_for_gold years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_loss arrogant = medium_stress_loss generous = medium_stress_gain @@ -2895,7 +2895,7 @@ hold_court.3080 = { modifier = petition_event_artifact_exhibition_for_prestige years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_gain arrogant = medium_stress_loss generous = medium_stress_gain @@ -3067,7 +3067,7 @@ hold_court.3090 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_gain #SO. MUCH. SPENT. MONEY. arrogant = medium_stress_gain #Presenting oursselves as equals!? BAH! compassionate = major_stress_loss #Promoting understanding between the two, yaaaaaay! @@ -3126,11 +3126,11 @@ hold_court.3090 = { target = scope:different_culture_vassal opinion = 20 } - stress_impact = { - greedy = medium_stress_gain - arrogant = medium_stress_gain - generous = medium_stress_loss - humble = medium_stress_loss + stress_and_fulfillment_impact = { + greedy = medium_stress_loss + arrogant = medium_stress_loss + generous = medium_stress_gain + humble = medium_stress_gain } ai_chance = { @@ -3161,7 +3161,7 @@ hold_court.3090 = { target = scope:different_culture_vassal opinion = -10 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_loss humble = medium_stress_gain } @@ -3288,7 +3288,7 @@ hold_court.3091 = { modifier = { add = 10 has_trait = zealous #zealous and not tolerant - faith = { NOT = { has_doctrine = doctrine_pluralism_pluralistic } } + rite = { NOT = { rite_has_doctrine = doctrine_pluralism_pluralistic } } } } save_scope_as = same_culture_vassal @@ -3345,7 +3345,7 @@ hold_court.3091 = { } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_loss #Yeah, we awesome humble = major_stress_gain #I don't think we should claim to be better compassionate = major_stress_gain #but... why not understanding between us? @@ -3388,7 +3388,7 @@ hold_court.3091 = { modifier = annoyed_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_loss generous = medium_stress_gain humble = medium_stress_gain @@ -3733,7 +3733,7 @@ hold_court.4001 = { scope:annoying_heir = { disinherit_effect = { DISINHERITOR = root } } - stress_impact = { + stress_and_fulfillment_impact = { family_first = medium_stress_gain } every_courtier_or_guest = { @@ -3847,7 +3847,7 @@ scripted_trigger demanding_poet_scripted_gender_trigger = { has_title_law = female_preference_law } } - NOT = { root.faith = { has_doctrine_parameter = clergy_must_be_male } } + NOT = { root.rite = { rite_has_parameter = clergy_must_be_male } } } hold_court.4500 = { @@ -3930,9 +3930,10 @@ hold_court.4500 = { option = { name = hold_court.4500.b change_current_court_grandeur = minor_court_grandeur_gain - replace_existing_position_with_character_in_current_scope_court_effect = { - CHARACTER = scope:demanding_poet - POSITION = court_poet_court_position + court_position_grant_effect = { + CANDIDATE = scope:demanding_poet + POS = court_poet + EMPLOYER = root } ai_chance = { base = 50 @@ -3945,7 +3946,7 @@ hold_court.4500 = { option = { name = hold_court.4500.a scope:demanding_poet = { silent_disappearance_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_poet = minor_stress_gain journaller = medium_stress_gain arbitrary = minor_stress_gain @@ -4024,11 +4025,11 @@ hold_court.4600 = { has_trait = sadistic AND = { is_witch_trigger = yes - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = trait:witch GENDER_CHARACTER = root } + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:witch GENDER_CHARACTER = root } } AND = { is_cannibal_trigger = yes - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = root } + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = root } } } OR = { # I care about dread @@ -4182,7 +4183,7 @@ hold_court.4600 = { years = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = massive_stress_impact_gain callous = massive_stress_impact_gain confider = medium_stress_loss @@ -4320,8 +4321,12 @@ hold_court.4602 = { name = hold_court.4602.b if = { limit = { - scope:cannibal_vassal = { is_attracted_to_gender_of = root } - is_attracted_to_gender_of = scope:cannibal_vassal + trigger_if = { + limit = { is_consort_of = scope:cannibal_vassal } + might_cheat_on_every_partner_trigger = yes + scope:cannibal_vassal = { might_cheat_on_every_partner_trigger = yes } + } + can_set_relation_lover_trigger = { CHARACTER = scope:cannibal_vassal } } set_relation_lover = { reason = lover_cannibal_seduction target = scope:cannibal_vassal } } @@ -4491,7 +4496,7 @@ hold_court.4900 = { title = root.primary_title } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_loss honest = minor_stress_impact_gain humble = major_stress_impact_gain @@ -4691,7 +4696,7 @@ hold_court.4901 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_gain patient = medium_stress_gain family_first = medium_stress_gain @@ -4733,7 +4738,7 @@ hold_court.4901 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { humble = major_stress_gain family_first = minor_stress_loss } @@ -4768,7 +4773,7 @@ hold_court.4901 = { opinion = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = major_stress_loss } ai_chance = { @@ -4982,7 +4987,7 @@ hold_court.5010 = { } change_county_control = minor_county_control_gain } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_loss callous = minor_stress_impact_gain } @@ -5021,7 +5026,7 @@ hold_court.5010 = { } change_county_control = major_county_control_gain } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss compassionate = medium_stress_impact_gain } @@ -5029,7 +5034,7 @@ hold_court.5010 = { option = { # Idc lol name = hold_court.5010.c - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain } } @@ -5099,7 +5104,8 @@ scripted_trigger hold_court_5030_courtier_basic_trigger = { is_ai = yes faith = root.faith is_imprisoned = no - NOT = { has_trait = incapable } + is_incapable = no + NOT = { has_court_position = court_tutor_court_position } OR = { AND = { OR = { @@ -5374,7 +5380,7 @@ hold_court.5030 = { modifier = invented_code_resistance_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_loss } } @@ -5668,7 +5674,7 @@ hold_court.6000 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -5719,7 +5725,7 @@ hold_court.6000 = { type = indebted_hook target = scope:6000_poor } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -5764,7 +5770,7 @@ hold_court.6000 = { #Option D: they can manage it on their own option = { name = hold_court.6000.d - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain compassionate = medium_stress_impact_gain gregarious = medium_stress_impact_gain @@ -5827,7 +5833,7 @@ scripted_trigger hold_court_6030_valid_county_trigger = { } religion = { any_faith = { - has_doctrine = tenet_monasticism + faith_has_monasticism_trigger = yes } } } @@ -5870,12 +5876,45 @@ hold_court.6030 = { } immediate = { - random_held_county = { + #Try to save an actual monastery in another culture's county first + if = { limit = { - hold_court_6030_valid_county_trigger = yes + any_held_county = { + hold_court_6030_valid_county_trigger = yes + any_county_province = { + barony = { + is_leased_out = yes + lessee = { + government_has_flag = government_is_monastic_holy_order + } + } + } + } + } + random_held_county = { + limit = { + hold_court_6030_valid_county_trigger = yes + any_county_province = { + barony = { + is_leased_out = yes + lessee = { + government_has_flag = government_is_monastic_holy_order + } + } + } + } + save_scope_as = 6030_border } - save_scope_as = 6030_border } + else = { + random_held_county = { + limit = { + hold_court_6030_valid_county_trigger = yes + } + save_scope_as = 6030_border + } + } + scope:6030_border = { random_county_province = { limit = { @@ -5884,18 +5923,36 @@ hold_court.6030 = { save_scope_as = 6030_church } } - create_character = { - location = root.capital_province - template = priest_character_template - faith = scope:6030_border.faith - culture = scope:6030_border.culture - gender_female_chance = root_faith_clergy_gender_female_chance - trait = devoted - save_scope_as = 6030_monk + #Try to create an actual monk if possible first + if = { + limit = { + scope:6030_border.faith = { + faith_has_monasticism_trigger = yes + } + } + create_character = { + location = root.capital_province + template = monk_character_template + faith = scope:6030_border.faith + rite = scope:6030_border.rite + culture = scope:6030_border.culture + gender_female_chance = root_faith_clergy_gender_female_chance + trait = devoted + save_scope_as = 6030_monk + } } - hidden_effect = { - add_courtier = scope:6030_monk + else = { + create_character = { + location = root.capital_province + template = priest_character_template + faith = scope:6030_border.faith + rite = scope:6030_border.rite + culture = scope:6030_border.culture + gender_female_chance = root_faith_clergy_gender_female_chance + save_scope_as = 6030_monk + } } + add_courtier = scope:6030_monk scope:6030_monk = { court_event_character_flag_effect = yes } @@ -5908,7 +5965,6 @@ hold_court.6030 = { name = hold_court.6030.a add_prestige = minor_prestige_gain change_current_court_grandeur = minor_court_grandeur_gain - scope:6030_monk = { select_and_move_to_pool_effect = yes } culture = { change_cultural_acceptance = { target = scope:6030_monk.culture @@ -5916,9 +5972,6 @@ hold_court.6030 = { desc = cultural_acceptance_gain_hold_court_event_outcome } } - scope:6030_monk = { - add_character_flag = 6030_remove_char_flag - } ai_chance = { base = 100 ai_value_modifier = { @@ -5931,7 +5984,10 @@ hold_court.6030 = { option = { name = hold_court.6030.b trigger = { - learning >= 12 + OR = { + learning >= 12 + has_lifestyle = learning_lifestyle + } } skill = learning add_prestige = medium_prestige_gain @@ -5960,7 +6016,7 @@ hold_court.6030 = { desc = cultural_acceptance_gain_hold_court_event_outcome } } - stress_impact = { + stress_and_fulfillment_impact = { content = minor_stress_impact_gain impatient = minor_stress_impact_gain irritable = medium_stress_impact_gain @@ -6006,8 +6062,8 @@ hold_court.6030 = { scope:6030_monk = { add_character_flag = 6030_remove_char_flag } - stress_impact = { - lazy = medium_stress_impact_loss + stress_and_fulfillment_impact = { + paranoid = medium_stress_impact_loss } ai_chance = { base = 100 @@ -6015,7 +6071,7 @@ hold_court.6030 = { ai_rationality = -0.5 } modifier = { - has_trait = lazy + has_trait = paranoid add = 50 } } @@ -6074,7 +6130,7 @@ hold_court.6040 = { has_holding_type = church_holding religion = { any_faith = { - has_doctrine = tenet_monasticism + faith_has_monasticism_trigger = yes } } } @@ -6093,7 +6149,7 @@ hold_court.6040 = { has_holding_type = church_holding religion = { any_faith = { - has_doctrine = tenet_monasticism + faith_has_monasticism_trigger = yes } } } @@ -6103,6 +6159,7 @@ hold_court.6040 = { location = root.capital_province template = priest_character_template faith = scope:6040_church.faith + rite = scope:6040_church.rite gender_female_chance = root_faith_clergy_gender_female_chance trait = devoted save_scope_as = 6040_monk @@ -6158,7 +6215,7 @@ hold_court.6040 = { has_trait = education_learning_4 has_trait = education_learning_5 has_trait = intellect_good_3 - has_trait = scholar + has_trait = erudite learning > 20 } } @@ -6228,7 +6285,7 @@ hold_court.6040 = { has_trait = education_learning_4 has_trait = education_learning_5 has_trait = intellect_good_3 - has_trait = scholar + has_trait = erudite learning > 20 } } @@ -6280,7 +6337,10 @@ hold_court.6040 = { add_piety = major_piety_gain add_prestige = minor_prestige_loss add_dread = minor_dread_gain - add_stress = major_stress_impact_loss + stress_and_fulfillment_impact = { + zealous = major_stress_impact_loss + theologian = major_stress_impact_loss + } ai_chance = { base = 200 } @@ -6385,6 +6445,7 @@ hold_court.6050 = { location = root.capital_province template = servant_character faith = scope:6050_tomb.faith + rite = scope:6050_tomb.rite culture = scope:6050_tomb.culture save_scope_as = 6050_pop } @@ -6528,7 +6589,7 @@ hold_court.6050 = { scope:6050_tomb.county = { change_county_control = 50 } - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_mystic = medium_stress_impact_gain trusting = minor_stress_impact_gain compassionate = major_stress_impact_gain @@ -6538,12 +6599,12 @@ hold_court.6050 = { limit = { has_character_flag = 6050_church_approves } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_loss } } @@ -6622,6 +6683,7 @@ hold_court.6051 = { #Hidden event to create the saint location = scope:6050_tomb template = local_saint_template faith = scope:6050_tomb.faith + rite = scope:6050_tomb.rite culture = scope:6050_tomb.culture save_scope_as = 6050_holy } @@ -6704,8 +6766,8 @@ hold_court.6060 = { cooldown = { years = 20 } trigger = { - faith = { - trait_is_sin = drunkard + rite = { + trait_is_sin_rite = drunkard } any_held_county = { any_county_province = { @@ -6713,17 +6775,26 @@ hold_court.6060 = { } } trigger_if = { + limit = { + highest_held_title_tier = tier_hegemony + } + gold < 1000 + } + trigger_else_if = { limit = { highest_held_title_tier = tier_empire } gold < 500 } - trigger_if = { + trigger_else_if = { limit = { highest_held_title_tier = tier_kingdom } gold < 250 } + trigger_else = { + always = yes + } NOR = { government_has_flag = government_is_tribal government_has_flag = government_is_nomadic @@ -7075,6 +7146,7 @@ hold_court.6070 = { template = pool_repopulate_diplomacy culture = scope:6070_sender.culture faith = scope:6070_sender.faith + rite = scope:6070_sender.rite save_scope_as = 6070_embassy } scope:6070_embassy = { @@ -7191,7 +7263,7 @@ hold_court.6070 = { add_visiting_courtier = scope:6070_child } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain reclusive = medium_stress_impact_gain paranoid = major_stress_impact_gain @@ -7264,7 +7336,7 @@ hold_court.6070 = { add_visiting_courtier = scope:6070_child } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain reclusive = medium_stress_impact_gain paranoid = major_stress_impact_gain @@ -7332,7 +7404,7 @@ hold_court.6070 = { add_visiting_courtier = scope:6070_child } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain reclusive = medium_stress_impact_gain paranoid = major_stress_impact_gain @@ -7377,7 +7449,7 @@ hold_court.6070 = { opinion = -30 } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_loss paranoid = medium_stress_impact_loss reclusive = medium_stress_impact_loss @@ -7424,7 +7496,7 @@ hold_court.6070 = { opinion = -50 } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } ai_chance = { @@ -7618,7 +7690,7 @@ hold_court.6080 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -7689,7 +7761,7 @@ hold_court.6080 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -7707,7 +7779,7 @@ hold_court.6080 = { scope:6080_county = { change_county_control = 10 } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -7747,7 +7819,7 @@ scripted_trigger hold_court_6090_valid_vassal_trigger = { has_court_event_flag = no is_available_ai_adult = yes faith = root.faith - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes capital_county ?= { hold_court_6090_valid_county_trigger = yes } @@ -7919,7 +7991,7 @@ hold_court.6090 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -7981,7 +8053,7 @@ hold_court.6090 = { opinion = 30 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } change_current_court_grandeur = medium_court_grandeur_gain @@ -8030,6 +8102,7 @@ hold_court.6090 = { template = servant_character location = root.location faith = scope:6090_main_county.faith + rite = scope:6090_main_county.rite culture = scope:6090_main_county.culture save_scope_as = new_ruler } @@ -8109,7 +8182,7 @@ hold_court.6090 = { opinion = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = massive_stress_impact_gain } @@ -8159,7 +8232,7 @@ hold_court.6090 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_loss diligent = major_stress_impact_gain } @@ -8470,7 +8543,7 @@ hold_court.6100 = { } add_prestige = medium_prestige_gain add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { wrathful = medium_stress_impact_gain } ai_chance = { @@ -8619,7 +8692,7 @@ hold_court.6100 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } ai_chance = { @@ -8648,7 +8721,7 @@ hold_court.6100 = { opinion = -20 } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_loss content = medium_stress_impact_loss diligent = medium_stress_impact_gain @@ -8843,6 +8916,7 @@ hold_court.6110 = { location = root.capital_province template = servant_character faith = scope:6110_vassal_2.capital_county.faith + rite = scope:6110_vassal_2.capital_county.rite culture = scope:6110_vassal_2.capital_county.culture save_scope_as = 6110_rep } @@ -9040,10 +9114,10 @@ hold_court.6110 = { } after = { - scope:6100_vassal_1 = { + scope:6110_vassal_1 = { clear_court_event_participation = yes } - scope:6100_vassal_2 = { + scope:6110_vassal_2 = { clear_court_event_participation = yes } scope:6110_rep = { @@ -9252,29 +9326,83 @@ hold_court.6120 = { flag = 6120_has_domesday_book_flag years = 50 } + custom_tooltip = hold_court.6120.a.tt show_as_tooltip = { - random_list = { - 100 = { - show_chance = no - desc = hold_court.6120.a.tt - hold_court_6120_rewards = yes - } + hold_court_6120_rewards = yes + } + scope:steward = { + add_opinion = { + target = root + modifier = pleased_opinion + opinion = 20 } } hidden_effect = { - scope:steward = { - add_opinion = { - target = root - modifier = pleased_opinion - opinion = 20 - } - } trigger_event = { id = hold_court.6121 days = 185 } } - stress_impact = { + stress_and_fulfillment_impact = { + lazy = major_stress_impact_gain + content = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + gold < major_gold_value + add = -100 + } + ai_value_modifier = { + ai_energy = 0.25 + ai_rationality = 0.5 + ai_greed = -0.25 + } + modifier = { + has_trait = lazy + add = -75 + } + modifier = { + has_trait = content + add = -75 + } + } + } + + option = { + name = hold_court.6120.b + trigger = { + exists = scope:seneschal + trigger_if = { + limit = { + is_ai = yes + } + short_term_treasury_or_gold >= major_treasury_or_gold_value + } + } + remove_treasury_or_gold = major_treasury_or_gold_value + add_character_flag = { + flag = 6120_has_domesday_book_flag + years = 50 + } + custom_tooltip = hold_court.6120.a.tt + show_as_tooltip = { + hold_court_6120_rewards = yes + } + scope:seneschal = { + add_opinion = { + target = root + modifier = pleased_opinion + opinion = 20 + } + } + hidden_effect = { + trigger_event = { + id = hold_court.6121 + days = 185 + } + } + stress_and_fulfillment_impact = { lazy = major_stress_impact_gain content = major_stress_impact_gain } @@ -9317,7 +9445,7 @@ hold_court.6120 = { modifier = 6120_extra_taxes_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_impact_gain compassionate = major_stress_impact_gain just = major_stress_impact_gain @@ -9348,7 +9476,7 @@ hold_court.6120 = { trigger = { NOT = { exists = scope:jester } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain diligent = major_stress_impact_gain } @@ -9378,7 +9506,7 @@ hold_court.6120 = { opinion = 30 } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = major_stress_impact_gain diligent = massive_stress_impact_gain } @@ -9506,9 +9634,9 @@ scripted_trigger hold_court_6130_valid_child_trigger = { scripted_effect hold_court_6130_a_rewards = { if = { limit = { - OR = { - has_character_flag = 6130_seneschal_assigned - has_character_flag = 6131_seneschal_assigned + has_variable = { + name = 6130_seneschal_assigned + name = 6131_seneschal_assigned } } every_held_county = { @@ -9518,9 +9646,9 @@ scripted_effect hold_court_6130_a_rewards = { } else_if = { limit = { - OR = { - has_character_flag = 6130_steward_assigned - has_character_flag = 6131_steward_assigned + has_variable = { + name = 6130_steward_assigned + name = 6131_steward_assigned } } every_held_county = { @@ -9546,8 +9674,6 @@ hold_court.6130 = { title = hold_court.6130.t desc = hold_court.6130.desc theme = court - lower_left_portrait = scope:tutor - lower_center_portrait = scope:m_hunt cooldown = { years = 10 } court_scene = { button_position_character = scope:6130_proposer @@ -9648,7 +9774,7 @@ hold_court.6130 = { years = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_gain greedy = medium_stress_gain } @@ -9711,12 +9837,6 @@ hold_court.6130 = { scope:6130_proposer = { clear_court_event_participation = yes } - if = { - limit = { exists = scope:m_hunt } - scope:m_hunt = { - clear_court_event_participation = yes - } - } # Finish up the chain if relevant. hold_court_queue_post_event_effect = yes } @@ -9833,7 +9953,10 @@ scripted_trigger hold_court_6140_valid_vassal_trigger = { } scripted_trigger hold_court_6140_europe_trigger = { - terrain = forest + OR = { + terrain = forest + terrain = taiga + } geographical_region = world_europe } @@ -10415,7 +10538,7 @@ hold_court.6160 = { modifier = grateful_opinion opinion = 20 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_gain } ai_chance = { @@ -10460,7 +10583,7 @@ hold_court.6160 = { modifier = grateful_opinion opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_gain } ai_chance = { @@ -10508,7 +10631,7 @@ hold_court.6160 = { modifier = grateful_opinion opinion = 40 } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_loss improvident = major_stress_loss greedy = major_stress_gain @@ -10565,7 +10688,7 @@ hold_court.6160 = { type = indebted_hook target = scope:6160_vassal } - stress_impact = { + stress_and_fulfillment_impact = { improvident = major_stress_loss greedy = major_stress_gain } @@ -10637,7 +10760,7 @@ hold_court.6160 = { modifier = grateful_opinion opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_gain } ai_chance = { @@ -10664,7 +10787,7 @@ hold_court.6160 = { modifier = disappointed_opinion opinion = -10 } - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_gain improvident = massive_stress_gain } @@ -10905,7 +11028,7 @@ hold_court.6170 = { modifier = grateful_opinion opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_gain torturer = medium_stress_gain arbitrary = medium_stress_gain @@ -10943,7 +11066,7 @@ hold_court.6170 = { #Option E: I don't care option = { name = hold_court.6170.e - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_loss compassionate = medium_stress_gain diligent = medium_stress_gain @@ -11175,7 +11298,7 @@ hold_court.6190 = { add_learning_skill = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain compassionate = major_stress_impact_gain } @@ -11255,7 +11378,7 @@ hold_court.6190 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = major_stress_impact_gain zealous = major_stress_impact_gain just = major_stress_impact_gain @@ -11298,7 +11421,7 @@ hold_court.6190 = { opinion = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss sadistic = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -11370,7 +11493,7 @@ scripted_trigger hold_court_6210_valid_vassal_trigger = { save_temporary_scope_as = parent } } - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_ai_adult = yes exists = capital_county OR = { @@ -11534,7 +11657,7 @@ hold_court.6210 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain } ai_chance = { @@ -11591,7 +11714,7 @@ hold_court.6210 = { years = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -11708,7 +11831,7 @@ hold_court.6230 = { any_vassal_or_below = { has_court_event_flag = no is_available_ai_adult = yes - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes capital_province = { geographical_region = world_innovation_elephants } @@ -11727,7 +11850,7 @@ hold_court.6230 = { limit = { has_court_event_flag = no is_available_ai_adult = yes - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes capital_province = { geographical_region = world_innovation_elephants } @@ -11789,7 +11912,7 @@ hold_court.6230 = { } } add_prestige = medium_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -11841,7 +11964,7 @@ hold_court.6230 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain } ai_chance = { @@ -11911,7 +12034,7 @@ hold_court.6230 = { faith.religion = religion:hinduism_religion } add_piety = major_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = major_stress_impact_gain } ai_chance = { @@ -12055,6 +12178,7 @@ hold_court.8001 = { desc = hold_court.8001.desc theme = court lower_right_portrait = scope:portrait + lower_left_portrait = scope:mayor court_scene = { button_position_character = scope:merchant court_event_force_open = yes @@ -12270,7 +12394,7 @@ hold_court.8001 = { years = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -12335,7 +12459,7 @@ hold_court.8001 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain greedy = medium_stress_impact_gain } @@ -12379,7 +12503,7 @@ hold_court.8001 = { years = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = massive_stress_impact_gain } ai_chance = { @@ -12416,7 +12540,7 @@ hold_court.8001 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain calm = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -12500,8 +12624,16 @@ scripted_trigger hold_court_8010_contract_trigger = { vassal_contract_obligation_level_can_be_increased = fortification_rights } AND = { - root.culture = { has_innovation = innovation_burhs } + root.culture = { has_innovation = innovation_bannus } NOT = { vassal_contract_has_flag = has_march_contract } + OR = { + primary_title = { has_variable = historical_margrave } + any_sub_realm_county = { + any_neighboring_county = { + holder.top_liege != scope:frontier_lord.top_liege + } + } + } } } } @@ -12663,7 +12795,7 @@ hold_court.8010 = { type = indebted_hook } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -12715,7 +12847,7 @@ hold_court.8010 = { type = indebted_hook } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -12755,7 +12887,7 @@ hold_court.8010 = { opinion = -15 } } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain } ai_chance = { @@ -12808,7 +12940,7 @@ hold_court.8010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain paranoid = medium_stress_impact_gain } @@ -13012,10 +13144,8 @@ hold_court.8020 = { has_court_event_flag = no is_available_ai_adult = yes } - faith = { - has_doctrine = doctrine_theocracy_temporal - NOT = { has_doctrine_parameter = unreformed } - } + faith = { NOT = { has_doctrine_parameter = unreformed } } + rite = { rite_has_doctrine = doctrine_theocracy_temporal } any_realm_county = { # Less than 10% theocratic counties in realm percent <= 0.1 holder = { government_has_flag = government_is_theocracy } @@ -13049,7 +13179,7 @@ hold_court.8020 = { } modifier = { # Favor emperors add = 1 - highest_held_title_tier = tier_empire + highest_held_title_tier >= tier_empire } # Court weightings. @@ -13083,7 +13213,7 @@ hold_court.8020 = { create_artifact_pedestal_reliquary_judaism_effect = { OWNER = scope:bishop } } else = { - create_artifact_sculpture_religious_effect = { OWNER = scope:bishop } + create_artifact_sculpture_religious_effect = { OWNER = scope:bishop CREATOR = scope:bishop } } scope:newly_created_artifact = { save_scope_as = bishop_relic } } @@ -13202,7 +13332,7 @@ hold_court.8020 = { } if = { limit = { scope:target_county.holder = root } - stress_impact = { greedy = medium_stress_impact_gain } + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } } ai_chance = { base = 100 @@ -13278,7 +13408,7 @@ hold_court.8020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -13312,7 +13442,7 @@ hold_court.8020 = { opinion = -20 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -13354,7 +13484,7 @@ hold_court.8020 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -13391,7 +13521,7 @@ hold_court.8020 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -13436,7 +13566,7 @@ hold_court.8020 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -13630,7 +13760,7 @@ hold_court.8040 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -13742,11 +13872,11 @@ hold_court.8040 = { send_interface_toast = { title = hold_court.8040.c.tt_refuse left_icon = scope:infidel_vassal - stress_impact = { zealous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain compassionate = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -13821,6 +13951,8 @@ scripted_trigger hold_court_8050_knight_trigger = { NOT = { has_relation_rival = root } NOT = { is_close_family_of = root } court_position_martial_trigger = { EMPLOYER = root } + can_be_knight_trigger = { ARMY_OWNER = root } + NOT = { liege ?= root } } scripted_trigger hold_court_8050_vassal_trigger = { @@ -13994,7 +14126,7 @@ hold_court.8050 = { scope:knight = { court_event_character_flag_effect = yes } - faith = { # Find a holy order + faith = { # Find a Military Order if = { limit = { any_faith_holy_order = { always = yes } @@ -14053,7 +14185,7 @@ hold_court.8050 = { } } hold_court_8050_accepted_knight_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { gallant = medium_stress_impact_loss paranoid = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -14114,7 +14246,7 @@ hold_court.8050 = { } } hold_court_8050_accepted_knight_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -14131,7 +14263,7 @@ hold_court.8050 = { } } - option = { # Send to Holy Order instead + option = { # Send to Military Order instead name = hold_court.8050.c trigger = { has_trait = zealous @@ -14172,7 +14304,7 @@ hold_court.8050 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -14197,6 +14329,9 @@ hold_court.8050 = { has_court_position = bodyguard_court_position } } + scope:knight = { + bodyguard_validity_trigger = { EMPLOYER = root } + } } scope:vassal = { add_opinion = { @@ -14271,7 +14406,7 @@ hold_court.8050 = { id = hold_court.8054 days = 365 } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain shy = medium_stress_impact_gain } @@ -14353,7 +14488,7 @@ hold_court.8050 = { OPINION = 0 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain } ai_chance = { @@ -14488,7 +14623,7 @@ hold_court.8051 = { } hidden_effect = { set_knight_status = force } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain } trigger_event = { @@ -14520,7 +14655,7 @@ hold_court.8051 = { custom_tooltip = hold_court.8051.b.tt_return } remove_variable = hold_court_8050_promise - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain } ai_chance = { @@ -14644,7 +14779,7 @@ hold_court.8052 = { set_employer = scope:vassal } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain forgiving = medium_stress_impact_gain } @@ -14747,7 +14882,7 @@ scripted_trigger hold_court_8050_fired_trigger = { this = root.var:hold_court_8050_promise is_knight = no var:hold_court_8050_knight = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_vassal_or_below_of = root NOT = { has_relation_rival = root } } @@ -14886,10 +15021,8 @@ hold_court.8060 = { NOT = { has_character_flag = has_had_holding_request_event } NOT = { has_variable = hold_court_8060_church_var } gold > hold_court_holding_cost_double_value - faith = { - has_doctrine = doctrine_theocracy_temporal - NOT = { has_doctrine_parameter = unreformed } - } + faith = { NOT = { has_doctrine_parameter = unreformed } } + rite = { rite_has_doctrine = doctrine_theocracy_temporal } OR = { any_held_title = { county_has_empty_province_trigger = yes @@ -15090,7 +15223,7 @@ hold_court.8060 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -15111,11 +15244,12 @@ hold_court.8060 = { option = { # Get the Vassal to pay half name = hold_court.8060.b trigger = { - exists = scope:vassal - scope:vassal = { is_vassal_of = root } + scope:vassal ?= { is_vassal_of = root } scope:vassal.short_term_gold >= hold_court_holding_cost_half_value } - show_as_unavailable = { scope:vassal.short_term_gold < hold_court_holding_cost_half_value } + show_as_unavailable = { + scope:vassal ?= { is_vassal_of = root } + } highlight_portrait = scope:vassal remove_treasury_or_gold = hold_court_holding_cost_half_value scope:vassal = { @@ -15138,7 +15272,7 @@ hold_court.8060 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -15158,6 +15292,7 @@ hold_court.8060 = { option = { # Get the Subvassal to pay half name = hold_court.8060.c trigger = { + exists = scope:vassal exists = scope:subvassal OR = { scope:subvassal.short_term_gold >= hold_court_holding_cost_half_value @@ -15165,8 +15300,8 @@ hold_court.8060 = { } } show_as_unavailable = { - scope:subvassal.short_term_gold < hold_court_holding_cost_half_value - scope:vassal.short_term_gold < hold_court_holding_cost_half_value + exists = scope:vassal + exists = scope:subvassal } highlight_portrait = scope:subvassal remove_treasury_or_gold = hold_court_holding_cost_half_value @@ -15203,7 +15338,7 @@ hold_court.8060 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -15295,7 +15430,7 @@ hold_court.8060 = { } } hold_court_8060_completion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_impact_gain } ai_chance = { @@ -15353,7 +15488,7 @@ hold_court.8060 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -15526,7 +15661,7 @@ hold_court.8061 = { } faith = { change_fervor = { - value = 1 + value = trivial_fervor_gain desc = fervor_gain_built_temple_holding } } @@ -15832,7 +15967,7 @@ hold_court.8070 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -15879,7 +16014,7 @@ hold_court.8070 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -15944,7 +16079,7 @@ hold_court.8070 = { value = scope:target_province years = 6 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -16036,7 +16171,7 @@ hold_court.8070 = { } } hold_court_8070_completion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_impact_gain } ai_chance = { @@ -16081,7 +16216,7 @@ hold_court.8070 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -16325,9 +16460,9 @@ hold_court.8080 = { cooldown = { years = 40 } trigger = { - NOR = { - has_character_flag = has_had_county_request_event - has_character_flag = has_had_government_request_event + has_none_of_variables = { + name = has_had_county_request_event + name = has_had_government_request_event } top_liege = this culture = { has_innovation = innovation_development_02 } @@ -16414,7 +16549,7 @@ hold_court.8080 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -16443,7 +16578,7 @@ hold_court.8080 = { } else = { add_treasury_or_gold = major_treasury_or_gold_value } hold_court_8080_grant_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -16531,7 +16666,7 @@ hold_court.8080 = { years = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -16558,7 +16693,7 @@ hold_court.8080 = { modifier = hold_court_8080_prison_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain just = medium_stress_impact_gain calm = medium_stress_impact_gain @@ -16620,6 +16755,10 @@ scripted_trigger hold_court_8090_can_move_trigger = { NOT = { is_primary_heir_of = prev } # prev = scope:vassal NOT = { has_relation_rival = root } NOT = { is_close_family_of = root } + trigger_if = { + limit = { is_married = yes } + primary_spouse = { is_ruler = no } + } } scripted_trigger hold_court_8090_candidate_trigger = { # Courtier is not already in a position @@ -16717,44 +16856,54 @@ hold_court.8090 = { triggered_desc = { trigger = { exists = scope:old_holder - OR = { - AND = { # Stewardship roles - scope:vassal.var:target_court_position = flag:royal_architect - scope:vassal.var:target_court_position = flag:seneschal - scope:vassal.var:target_court_position = flag:court_gardener - scope:vassal.var:target_court_position = flag:keeper_of_swans - scope:vassal.stewardship > scope:old_holder.stewardship - } - AND = { # Learning roles - scope:vassal.var:target_court_position = flag:court_tutor - scope:vassal.var:target_court_position = flag:high_almoner - scope:vassal.var:target_court_position = flag:court_physician - scope:vassal.var:target_court_position = flag:antiquarian - scope:vassal.var:target_court_position = flag:court_artificer - scope:vassal.var:target_court_position = flag:chief_qadi - scope:vassal.var:target_court_position = flag:court_astrologer - scope:vassal.learning > scope:old_holder.learning - } - AND = { # Martial roles - scope:vassal.var:target_court_position = flag:master_of_horse - scope:vassal.var:target_court_position = flag:bodyguard - scope:vassal.var:target_court_position = flag:champion - scope:vassal.var:target_court_position = flag:master_of_hunt - scope:vassal.var:target_court_position = flag:garuda - scope:vassal.martial > scope:old_holder.martial - scope:vassal.var:target_court_position = flag:akolouthos - } - AND = { # Diplomacy roles - scope:vassal.var:target_court_position = flag:court_poet - scope:vassal.var:target_court_position = flag:court_musician - scope:vassal.var:target_court_position = flag:cupbearer - scope:vassal.var:target_court_position = flag:lady_in_waiting - scope:vassal.var:target_court_position = flag:cultural_emissary - scope:vassal.diplomacy > scope:old_holder.diplomacy - } - AND = { # Intrigue roles - scope:vassal.var:target_court_position = flag:chief_eunuch - scope:vassal.intrigue > scope:old_holder.intrigue + scope:vassal = { + OR = { + AND = { # Stewardship roles + OR = { + var:target_court_position = flag:royal_architect + var:target_court_position = flag:seneschal + var:target_court_position = flag:court_gardener + var:target_court_position = flag:keeper_of_swans + } + stewardship > scope:old_holder.stewardship + } + AND = { # Learning roles + OR = { + var:target_court_position = flag:court_tutor + var:target_court_position = flag:high_almoner + var:target_court_position = flag:court_physician + var:target_court_position = flag:antiquarian + var:target_court_position = flag:court_artificer + var:target_court_position = flag:chief_qadi + var:target_court_position = flag:court_astrologer + } + learning > scope:old_holder.learning + } + AND = { # Martial roles + OR = { + var:target_court_position = flag:master_of_horse + var:target_court_position = flag:bodyguard + var:target_court_position = flag:champion + var:target_court_position = flag:master_of_hunt + var:target_court_position = flag:garuda + var:target_court_position = flag:akolouthos + } + martial > scope:old_holder.martial + } + AND = { # Diplomacy roles + OR = { + var:target_court_position = flag:court_poet + var:target_court_position = flag:court_musician + var:target_court_position = flag:cupbearer + var:target_court_position = flag:lady_in_waiting + var:target_court_position = flag:cultural_emissary + } + diplomacy > scope:old_holder.diplomacy + } + AND = { # Intrigue roles + var:target_court_position = flag:chief_eunuch + intrigue > scope:old_holder.intrigue + } } } } @@ -16821,7 +16970,7 @@ hold_court.8090 = { triggered_desc = { trigger = { scope:vassal.var:target_court_position = flag:antiquarian - scope:vassal = { has_trait = scholar } + scope:vassal = { has_trait = erudite } } desc = hold_court_8090_interest_antiquarian } @@ -16983,7 +17132,7 @@ hold_court.8090 = { triggered_desc = { trigger = { scope:vassal.var:target_court_position = flag:chief_qadi - scope:vassal = { has_trait = scholar } + scope:vassal = { has_trait = erudite } } desc = hold_court_8090_interest_qadi } @@ -17086,7 +17235,7 @@ hold_court.8090 = { base = 1 modifier = { add = 2 - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes } modifier = { add = -1 @@ -17294,7 +17443,7 @@ hold_court.8090 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = medium_stress_impact_gain } ai_chance = { @@ -17330,30 +17479,18 @@ hold_court.8090 = { CHAR = scope:vassal COURT_POS = executioner_court_position } - NOR = { - scope:vassal.var:target_court_position ?= flag:executioner - scope:vassal.var:backup_court_position ?= flag:executioner - } } AND = { can_appoint_char_to_court_position = { CHAR = scope:vassal COURT_POS = court_jester_court_position } - NOR = { - scope:vassal.var:target_court_position ?= flag:court_jester - scope:vassal.var:backup_court_position ?= flag:court_jester - } } AND = { can_appoint_char_to_court_position = { CHAR = scope:vassal COURT_POS = food_taster_court_position } - NOR = { - scope:vassal.var:target_court_position ?= flag:food_taster - scope:vassal.var:backup_court_position ?= flag:food_taster - } } } } @@ -17371,28 +17508,17 @@ hold_court.8090 = { } if = { limit = { # Executioner + has_imprisonment_reason = scope:vassal can_appoint_char_to_court_position = { CHAR = scope:vassal COURT_POS = executioner_court_position } - NOR = { - scope:vassal.var:target_court_position = flag:executioner - scope:vassal.var:backup_court_position = flag:executioner - } } court_position_grant_effect = { EMPLOYER = root POS = executioner CANDIDATE = scope:vassal } - if = { - limit = { - NOT = { has_imprisonment_reason = scope:vassal } - } - stress_impact = { - just = medium_stress_impact_gain - } - } } else_if = { # Jester limit = { @@ -17400,17 +17526,13 @@ hold_court.8090 = { CHAR = scope:vassal COURT_POS = court_jester_court_position } - NOR = { - scope:vassal.var:target_court_position = flag:court_jester - scope:vassal.var:backup_court_position = flag:court_jester - } } court_position_grant_effect = { EMPLOYER = root POS = court_jester CANDIDATE = scope:vassal } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -17421,17 +17543,13 @@ hold_court.8090 = { CHAR = scope:vassal COURT_POS = food_taster_court_position } - NOR = { - scope:vassal.var:target_court_position = flag:food_taster - scope:vassal.var:backup_court_position = flag:food_taster - } } court_position_grant_effect = { EMPLOYER = root POS = food_taster CANDIDATE = scope:vassal } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -17566,7 +17684,7 @@ scripted_trigger hold_court_8100_child_trigger = { faith = root.faith # Has the same faith as the player trigger_if = { limit = { - faith = { has_doctrine = doctrine_gender_male_dominated } # If male dominated, must be no father + rite = { rite_has_doctrine = doctrine_gender_male_dominated } # If male dominated, must be no father } OR = { NOT = { exists = father } @@ -17590,7 +17708,7 @@ scripted_trigger hold_court_8100_child_trigger = { } trigger_if = { limit = { - faith = { has_doctrine = doctrine_gender_female_dominated } # If female dominated, must be no mother + rite = { rite_has_doctrine = doctrine_gender_female_dominated } # If female dominated, must be no mother } OR = { NOT = { exists = mother } @@ -17721,15 +17839,15 @@ hold_court.8100 = { triggered_desc = { trigger = { scope:ward = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes OR = { AND = { is_female = yes - faith = { has_doctrine = doctrine_gender_male_dominated } + rite = { rite_has_doctrine = doctrine_gender_male_dominated } } AND = { is_female = no - faith = { has_doctrine = doctrine_gender_female_dominated } + rite = { rite_has_doctrine = doctrine_gender_female_dominated } } } } @@ -17738,7 +17856,7 @@ hold_court.8100 = { } triggered_desc = { trigger = { - scope:ward = { is_landed_or_landless_administrative = yes } + scope:ward = { is_landed_or_landless_administrative_or_theocratic = yes } } desc = hold_court.8100.desc.interest_alliance } @@ -17926,24 +18044,7 @@ hold_court.8100 = { employer = { save_scope_as = ward_employer } } } - random_courtier = { # Guardian - limit = { - has_court_event_flag = no - is_available_ai_adult = yes - num_of_relation_ward < 2 - NOT = { is_parent_of = scope:ward } - save_temporary_scope_as = compare_character - scope:ward = { has_ward_guardian_education_match_compare_character_trigger = yes } # same education - } - alternative_limit = { - has_court_event_flag = no - is_available_ai_adult = yes - num_of_relation_ward < 2 - NOT = { is_parent_of = scope:ward } - } - save_scope_as = guardian - court_event_character_flag_effect = yes - } + # Advocate before guardian: both draw from the same courtier pool, and the event has no petitioner without an advocate. scope:ward = { if = { limit = { @@ -17964,10 +18065,6 @@ hold_court.8100 = { is_available_ai_adult = yes has_court_event_flag = no NOT = { is_parent_of = scope:ward } - trigger_if = { - limit = { exists = scope:guardian } - this != scope:guardian - } } weight = { base = 1 @@ -17995,6 +18092,34 @@ hold_court.8100 = { } } } + random_courtier = { # Guardian + limit = { + has_court_event_flag = no + is_available_ai_adult = yes + num_of_relation_ward < 2 + NOT = { is_parent_of = scope:ward } + save_temporary_scope_as = compare_character + scope:ward = { has_ward_guardian_education_match_compare_character_trigger = yes } # same education + } + alternative_limit = { + has_court_event_flag = no + is_available_ai_adult = yes + num_of_relation_ward < 2 + NOT = { is_parent_of = scope:ward } + } + save_scope_as = guardian + court_event_character_flag_effect = yes + } + if = { + limit = { NOT = { scope:ward.host ?= root } } + root = { + hidden_effect = { + add_visiting_courtier = scope:ward + } + } + } + root = { save_scope_as = actor } + scope:ward = { save_scope_as = recipient } # Trigger next event in chain. hold_court_queue_next_event_effect = yes } @@ -18029,7 +18154,7 @@ hold_court.8100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain callous = medium_stress_impact_gain lazy = medium_stress_impact_gain @@ -18106,7 +18231,7 @@ hold_court.8100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain callous = medium_stress_impact_gain } @@ -18130,21 +18255,38 @@ hold_court.8100 = { option = { # Adopt them name = hold_court.8100.c trigger = { + NOT = { has_game_rule = no_adoption } scope:ward = { is_lowborn = yes } } - scope:ward = { - if = { - limit = { - can_add_hook = { - target = scope:ward - type = loyalty_hook - } - } - add_hook = { + adopt_effect = { + CHILD = scope:ward + ADOPTER = root + } + create_character_memory = { + type = adopted_a_child + participants = { + child = scope:ward + } + } + if = { + limit = { + can_add_hook = { target = scope:ward type = loyalty_hook } } + add_hook = { + target = scope:ward + type = loyalty_hook + } + } + scope:ward = { + create_character_memory = { + type = was_adopted + participants = { + parent = root + } + } hidden_effect = { if = { limit = { @@ -18154,14 +18296,6 @@ hold_court.8100 = { } } set_relation_guardian = root - if = { - limit = { - root = { is_male = yes } - } - set_father = root - } - else = { set_mother = root } - set_house = root.house add_opinion = { modifier = grateful_child target = root @@ -18201,23 +18335,7 @@ hold_court.8100 = { } } } - every_child = { - custom = hold_court.8100.c.tt_child - limit = { - this != scope:ward - } - add_opinion = { - target = root - modifier = envy_opinion - opinion = -20 - } - add_opinion = { - target = scope:ward - modifier = envy_opinion - opinion = -40 - } - } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain callous = medium_stress_impact_gain } @@ -18274,7 +18392,7 @@ hold_court.8100 = { name = hold_court.8100.d trigger = { OR = { - scope:advocate.gold >= root.minor_gold_value + scope:advocate ?= { gold >= root.minor_gold_value } scope:ward.gold >= root.minor_gold_value } } @@ -18349,7 +18467,9 @@ hold_court.8100 = { custom_tooltip = hold_court.8100.hook.tt } } - else = { + else_if = { + # A small court can reach this option with no guardian found; paying stands on its own. + limit = { exists = scope:guardian } scope:ward = { hidden_effect = { if = { @@ -18362,7 +18482,7 @@ hold_court.8100 = { set_relation_guardian = scope:guardian } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -18394,6 +18514,9 @@ hold_court.8100 = { modifier = disappointed_opinion opinion = -20 } + hidden_effect = { + return_to_court = yes + } } scope:advocate = { if = { @@ -18422,7 +18545,7 @@ hold_court.8100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -18446,7 +18569,7 @@ hold_court.8100 = { scope:ward = { clear_court_event_participation = yes } - scope:guardian = { + scope:guardian ?= { clear_court_event_participation = yes } scope:advocate = { @@ -18591,7 +18714,7 @@ hold_court.8110 = { modifier = hold_court_8110_common_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain lazy = medium_stress_impact_gain arrogant = medium_stress_impact_gain @@ -18635,7 +18758,7 @@ hold_court.8110 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { patient = medium_stress_impact_gain diligent = medium_stress_impact_gain } @@ -18673,7 +18796,7 @@ hold_court.8110 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain just = medium_stress_impact_gain } @@ -18696,6 +18819,14 @@ hold_court.8110 = { option = { # Make them a jester name = hold_court.8110.d + trigger = { + scope:peasant = { + would_be_valid_for_court_position = { + court_position = court_jester_court_position + employer = root + } + } + } scope:peasant = { hidden_effect = { set_employer = root } add_opinion = { @@ -18704,35 +18835,10 @@ hold_court.8110 = { opinion = -10 } } - if = { - limit = { exists = scope:old_holder } - show_as_tooltip = { - appoint_court_position = { - recipient = scope:peasant - court_position = court_jester_court_position - } - } - hidden_effect = { - add_character_flag = temporary_court_position_cost_removal - replace_court_position = { - recipient = scope:peasant - holder = scope:old_holder - court_position = court_jester_court_position - } - remove_character_flag = temporary_court_position_cost_removal - } - } - else = { - if = { - limit = { - can_employ_court_position_type = court_jester_court_position - } - court_position_grant_effect = { - EMPLOYER = root - POS = court_jester - CANDIDATE = scope:peasant - } - } + court_position_grant_effect = { + EMPLOYER = root + CANDIDATE = scope:peasant + POS = court_jester } scope:peasant_holding.county = { add_county_modifier = { @@ -18740,7 +18846,7 @@ hold_court.8110 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain humble = medium_stress_impact_gain } @@ -18767,7 +18873,7 @@ hold_court.8110 = { modifier = hold_court_8110_haughty_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain patient = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -18823,32 +18929,7 @@ hold_court.8110 = { scripted_trigger hold_court_8120_syncretic_faith_trigger = { scope:peasant.religion != root.religion - OR = { - AND = { # Eastern - scope:peasant.faith.religion = { is_in_family = rf_eastern } - faith = { has_doctrine = tenet_eastern_syncretism } - } - AND = { # Pagan - scope:peasant.faith = { has_doctrine_parameter = unreformed } - faith = { has_doctrine = tenet_unreformed_syncretism } - } - AND = { # Christian - OR = { - scope:peasant.religion = religion:eastern_orthodox_religion - scope:peasant.religion = religion:catholic_religion - scope:peasant.religion = religion:protestant_religion - } - faith = { has_doctrine = tenet_christian_syncretism } - } - AND = { # Islam - scope:peasant.religion = religion:islam_religion - faith = { has_doctrine = tenet_islamic_syncretism } - } - AND = { # Judaism - scope:peasant.religion = religion:judaism_religion - faith = { has_doctrine = tenet_jewish_syncretism } - } - } + rite = { rite_is_syncretic_with = { RITE = scope:peasant.rite } } } scripted_effect hold_court_8120_stop_effect = { @@ -18876,7 +18957,7 @@ scripted_effect hold_court_8120_stop_effect = { } } custom_tooltip = hold_court.8120.a.tt_conversion - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain callous = medium_stress_impact_gain } @@ -18962,6 +19043,7 @@ hold_court.8120 = { gender_female_chance = root_soldier_female_chance culture = scope:conversion_target.culture faith = scope:conversion_target.faith + rite = scope:conversion_target.rite save_scope_as = peasant } scope:peasant = { @@ -19032,16 +19114,25 @@ hold_court.8120 = { limit = { AND = { scope:peasant.faith.religion = { is_in_family = rf_eastern } - faith = { has_doctrine = tenet_eastern_syncretism } + rite = { rite_has_parameter = eastern_syncretic_actor } } } custom_tooltip = hold_court.8120.b.tt_eastern # Eastern } + else_if = { + limit = { + AND = { + scope:peasant.faith.religion = { is_in_family = rf_sinitic } + rite = { rite_has_parameter = sinitic_syncretic_actor } + } + } + custom_tooltip = hold_court.8120.b.tt_sinitic # Sinitic + } else_if = { limit = { AND = { scope:peasant.faith = { has_doctrine_parameter = unreformed } - faith = { has_doctrine = tenet_unreformed_syncretism } + rite = { rite_has_parameter = unreformed_syncretic_actor } } } custom_tooltip = hold_court.8120.b.tt_pagan # Pagan @@ -19054,7 +19145,7 @@ hold_court.8120 = { scope:peasant.religion = religion:catholic_religion scope:peasant.religion = religion:protestant_religion } - faith = { has_doctrine = tenet_christian_syncretism } + rite = { rite_has_parameter = christian_syncretic_actor } } } custom_tooltip = hold_court.8120.b.tt_christianity # Christian @@ -19063,7 +19154,7 @@ hold_court.8120 = { limit = { AND = { scope:peasant.religion = religion:islam_religion - faith = { has_doctrine = tenet_islamic_syncretism } + rite = { rite_has_parameter = islamic_syncretic_actor } } } custom_tooltip = hold_court.8120.b.tt_islam # Islam @@ -19093,28 +19184,24 @@ hold_court.8120 = { add_treasury_or_gold = minor_treasury_or_gold_value if = { limit = { - NOT = { - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } - } + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } } } custom_tooltip = hold_court.8120.c.tt_tenet - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain zealous = medium_stress_impact_gain } } else = { add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } set_variable = { @@ -19125,11 +19212,9 @@ hold_court.8120 = { scope:bishop = { if = { limit = { - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } + OR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } } } add_opinion = { @@ -19162,13 +19247,9 @@ hold_court.8120 = { } modifier = { #Weight up for stress. add = 30 - NOT = { - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } - } + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } } OR = { has_trait = cynical @@ -19177,13 +19258,9 @@ hold_court.8120 = { } modifier = { #Weight down for stress. add = -30 - NOT = { - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } - } + NOR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } } OR = { has_trait = honest @@ -19192,11 +19269,9 @@ hold_court.8120 = { } modifier = { #Weight down for stress. add = -15 - faith = { - OR = { - has_doctrine = tenet_tax_nonbelievers - has_doctrine = special_doctrine_jizya - } + OR = { + rite = { rite_has_tenet = tenet_tax_nonbelievers } + faith = { has_doctrine = special_doctrine_jizya } } has_trait = cynical } @@ -19260,7 +19335,7 @@ hold_court.8120 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain compassionate = massive_stress_impact_gain torturer = medium_stress_impact_loss @@ -19301,7 +19376,7 @@ hold_court.8120 = { years = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain cynical = medium_stress_impact_gain } @@ -19389,7 +19464,7 @@ scripted_effect hold_court_8130_stop_effect = { } custom_tooltip = hold_court.8120.a.tt_conversion } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain } } @@ -19490,6 +19565,7 @@ hold_court.8130 = { gender_female_chance = root_soldier_female_chance culture = scope:conversion_target.culture faith = scope:conversion_target.faith + rite = scope:conversion_target.rite save_scope_as = peasant } scope:peasant = { @@ -19548,6 +19624,7 @@ hold_court.8130 = { location = root.capital_province template = new_warrior_character faith = scope:conversion_target.faith + rite = scope:conversion_target.rite culture = scope:conversion_target.culture save_scope_as = soldier } @@ -19599,7 +19676,7 @@ hold_court.8130 = { } custom_tooltip = hold_court.8120.a.tt_conversion } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -19660,7 +19737,7 @@ hold_court.8130 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { torturer = medium_stress_impact_loss compassionate = massive_stress_impact_gain } @@ -19708,7 +19785,7 @@ hold_court.8130 = { years = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain } ai_chance = { @@ -19839,7 +19916,7 @@ hold_court.8140 = { every_house_member = { limit = { is_ai = no - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes this != root } trigger_event = hold_court.8141 @@ -19863,7 +19940,7 @@ hold_court.8140 = { } start_dog_story_cycle_effect = yes change_current_court_grandeur = medium_court_grandeur_gain - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_hunter = minor_stress_impact_loss lazy = medium_stress_impact_gain } @@ -19905,7 +19982,7 @@ hold_court.8140 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain lazy = medium_stress_impact_gain } @@ -19972,7 +20049,7 @@ hold_court.8140 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_impact_gain } ai_chance = { @@ -19999,7 +20076,7 @@ hold_court.8140 = { } } change_current_court_grandeur = minor_court_grandeur_loss - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain } ai_chance = { @@ -20104,7 +20181,6 @@ hold_court.8142 = { # Event on puppy adoption ################################################## scripted_trigger hold_court_8150_faction_trigger = { - exists = yes NOT = { exists = faction_war } faction_leader ?= { has_court_event_flag = no @@ -20303,7 +20379,7 @@ hold_court.8150 = { } destroy_faction = yes } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain greedy = medium_stress_impact_gain } @@ -20350,7 +20426,7 @@ hold_court.8150 = { } } add_dread = minor_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain patient = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -20481,7 +20557,7 @@ hold_court.8150 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain honest = medium_stress_impact_gain just = medium_stress_impact_gain @@ -20565,7 +20641,7 @@ hold_court.8150 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain vengeful = medium_stress_impact_gain } @@ -20591,7 +20667,7 @@ hold_court.8150 = { name = hold_court.8150.e add_prestige = medium_prestige_loss scope:target_faction = { add_faction_discontent = 5 } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain } ai_chance = { @@ -20709,7 +20785,6 @@ scripted_trigger hold_court_8160_valid_existing_hostile_trigger = { } } any_close_family_member = { - exists = yes OR = { is_vassal_or_below_of = prev.liege # victim.root is_courtier_of = prev.liege # victim.root @@ -21109,7 +21184,6 @@ hold_court.8160 = { } alternative_limit = { any_close_family_member = { - exists = yes OR = { is_vassal_or_below_of = prev.liege # victim.root is_courtier_of = prev.liege # victim.root @@ -21409,7 +21483,7 @@ hold_court.8160 = { add_tyranny = minor_tyranny_gain } else = { - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain } } @@ -21623,14 +21697,14 @@ hold_court.8160 = { scope:victim_scheme.scheme_owner = { is_agent_exposed_in_scheme = scope:victim_scheme } } add_tyranny = medium_tyranny_gain - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain compassionate = medium_stress_impact_gain } } else = { add_tyranny = major_tyranny_gain - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = major_stress_impact_gain } @@ -21730,7 +21804,7 @@ hold_court.8160 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain lazy = medium_stress_impact_gain } @@ -21809,13 +21883,13 @@ hold_court.8160 = { limit = { scope:victim_scheme.scheme_owner = { is_agent_exposed_in_scheme = scope:victim_scheme } } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = major_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -21928,12 +22002,12 @@ scripted_trigger hold_court_8161_valid_target_vassal_trigger = { primary_spouse = { is_male = yes } } NOT = { - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } trigger_else = { NOT = { - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } OR = { @@ -21957,13 +22031,13 @@ scripted_trigger hold_court_8161_religious_crime_trigger = { AND = { scope:victim.primary_spouse = { is_female = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } AND = { scope:victim.primary_spouse = { is_male = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } AND = { @@ -21978,7 +22052,7 @@ scripted_trigger hold_court_8161_religious_crime_trigger = { } } NOT = { - faith = { has_doctrine = doctrine_homosexuality_accepted } + rite = { rite_has_doctrine = doctrine_homosexuality_accepted } } } } @@ -22446,7 +22520,7 @@ hold_court.8161 = { } } NOT = { - faith = { has_doctrine = doctrine_homosexuality_accepted } + rite = { rite_has_doctrine = doctrine_homosexuality_accepted } } } text = hold_court.8161.a.homosexual @@ -22457,13 +22531,13 @@ hold_court.8161 = { AND = { scope:victim.primary_spouse = { is_female = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } AND = { scope:victim.primary_spouse = { is_male = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } } @@ -22477,13 +22551,13 @@ hold_court.8161 = { AND = { scope:victim.primary_spouse = { is_female = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } AND = { scope:victim.primary_spouse = { is_male = yes } NOT = { - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } } @@ -22529,11 +22603,11 @@ hold_court.8161 = { NOR = { AND = { scope:victim.primary_spouse = { is_female = yes } - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } AND = { scope:victim.primary_spouse = { is_male = yes } - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } } @@ -22545,7 +22619,7 @@ hold_court.8161 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain cynical = medium_stress_impact_gain deviant = medium_stress_impact_gain @@ -22642,7 +22716,7 @@ hold_court.8161 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain lazy = medium_stress_impact_gain } @@ -22680,11 +22754,11 @@ hold_court.8161 = { OR = { AND = { scope:victim.primary_spouse = { is_female = yes } - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } AND = { scope:victim.primary_spouse = { is_male = yes } - faith = { has_doctrine = doctrine_adultery_men_accepted } + rite = { rite_has_doctrine = doctrine_adultery_men_accepted } } } } @@ -22709,12 +22783,12 @@ hold_court.8161 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { chaste = medium_stress_impact_gain } if = { limit = { hold_court_8161_religious_crime_trigger = yes } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } @@ -22801,7 +22875,7 @@ scripted_trigger hold_court_8180_lord_trigger = { } AND = { # March liege.culture = { - has_innovation = innovation_burhs + has_innovation = innovation_bannus } NOT = { vassal_contract_has_flag = has_march_contract } } @@ -23119,7 +23193,7 @@ hold_court.8180 = { } if = { limit = { - any_character_artifact = { exists = yes } + any_character_artifact = {} } ordered_character_artifact = { limit = { @@ -23303,7 +23377,7 @@ hold_court.8180 = { 1 = { # March / 8 trigger = { liege.culture = { - has_innovation = innovation_burhs + has_innovation = innovation_bannus } NOT = { vassal_contract_obligation_level_can_be_decreased = special_contract } # No existing special contract } @@ -23467,7 +23541,7 @@ hold_court.8180 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain } ai_chance = { @@ -23539,7 +23613,7 @@ hold_court.8180 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -23615,7 +23689,7 @@ hold_court.8180 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_impact_gain } ai_chance = { @@ -23694,7 +23768,7 @@ hold_court.8180 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = major_stress_impact_gain } ai_chance = { @@ -23771,7 +23845,7 @@ hold_court.8180 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { trusting = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -23828,7 +23902,7 @@ hold_court.8180 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -24124,11 +24198,11 @@ hold_court.8190 = { opinion = -15 } } - stress_impact = { zealous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain compassionate = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -24226,7 +24300,7 @@ hold_court.8190 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain } ai_chance = { @@ -24266,7 +24340,7 @@ hold_court.8190 = { OPINION = 0 } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain shy = medium_stress_impact_gain } @@ -24329,7 +24403,7 @@ hold_court.8190 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain } ai_chance = { @@ -24363,28 +24437,7 @@ hold_court.8190 = { scripted_trigger hold_court_8200_infidel_trigger = { is_available_ai_adult = yes faith != root.faith - NOR = { - AND = { # Eastern - religion = { is_in_family = rf_eastern } - root.faith = { has_doctrine = tenet_eastern_syncretism } - } - AND = { # Pagan - faith = { has_doctrine_parameter = unreformed } - root.faith = { has_doctrine = tenet_unreformed_syncretism } - } - AND = { # Christian - OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - root.faith = { has_doctrine = tenet_christian_syncretism } - } - AND = { # Islam - religion = religion:islam_religion - root.faith = { has_doctrine = tenet_islamic_syncretism } - } - AND = { # Judaism - religion = religion:judaism_religion - root.faith = { has_doctrine = tenet_jewish_syncretism } - } - } + NOT = { root.rite = { rite_is_syncretic_with = { RITE = prev.rite } } } NAND = { government_has_flag = government_is_theocracy primary_title = { is_head_of_faith = yes } @@ -24440,7 +24493,7 @@ hold_court.8200 = { trigger = { NOT = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } any_vassal = { # Is there a vassal who is not root faith? hold_court_8200_infidel_trigger = yes @@ -24632,11 +24685,11 @@ hold_court.8200 = { opinion = -15 } } - stress_impact = { zealous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain compassionate = medium_stress_impact_gain just = medium_stress_impact_gain @@ -24667,6 +24720,10 @@ hold_court.8200 = { name = hold_court.8200.c trigger = { NOT = { has_trait = zealous } + trigger_if = { + limit = { exists = faith.religious_head } + NOT = { root = faith.religious_head } + } } if = { limit = { religion = scope:infidel_vassal.religion } @@ -24700,7 +24757,7 @@ hold_court.8200 = { } } set_character_faith_with_conversion = scope:infidel_vassal.faith - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain cynical = medium_stress_impact_gain } @@ -24746,7 +24803,7 @@ hold_court.8200 = { OPINION = 0 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain shy = medium_stress_impact_gain } @@ -24813,7 +24870,7 @@ hold_court.8200 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -25219,7 +25276,7 @@ hold_court.8210 = { } if = { limit = { scope:defender_vassal = root } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } } @@ -25236,7 +25293,7 @@ hold_court.8210 = { opinion = -30 } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain } } @@ -25265,13 +25322,16 @@ hold_court.8210 = { trigger = { is_valid_for_east_asian_events_trigger = no NOT = { - faith = { has_doctrine = tenet_pacifism } + rite = { rite_has_tenet = tenet_pacifism } } NOR = { has_realm_law = crown_authority_2 has_realm_law = crown_authority_3 } scope:defender_vassal != root + scope:aggressor_vassal = { + allows_declaring_war_against_target_trigger = { TARGET = scope:defender_vassal } + } } scope:aggressor_vassal = { add_opinion = { @@ -25295,7 +25355,7 @@ hold_court.8210 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain craven = medium_stress_impact_gain } @@ -25374,14 +25434,14 @@ hold_court.8210 = { OUTPUT_EVENT = hold_court.8211 INVALIDATION_EVENT = fp1_tbc.0102 } - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_blademaster = medium_stress_impact_loss viking = medium_stress_impact_loss varangian = medium_stress_impact_loss berserker = medium_stress_impact_loss brave = medium_stress_impact_loss } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain craven = medium_stress_impact_gain } @@ -25477,7 +25537,7 @@ hold_court.8210 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain } ai_chance = { @@ -25528,7 +25588,7 @@ hold_court.8210 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain } ai_chance = { @@ -25564,7 +25624,7 @@ hold_court.8210 = { opinion = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain diligent = medium_stress_impact_gain just = medium_stress_impact_gain @@ -25656,7 +25716,6 @@ hold_court.8211 = { ################################################## scripted_trigger hold_court_8260_faction_trigger = { - exists = yes OR = { faction_is_type = liberty_faction faction_is_type = claimant_faction @@ -25865,7 +25924,7 @@ hold_court.8260 = { faction_war = { end_war = defender } } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain lazy = medium_stress_impact_gain } @@ -25942,7 +26001,7 @@ hold_court.8260 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain forgiving = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -26007,7 +26066,7 @@ hold_court.8260 = { } faction_war = { end_war = white_peace } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain wrathful = medium_stress_impact_gain vengeful = medium_stress_impact_gain @@ -26089,7 +26148,7 @@ hold_court.8260 = { resolve_title_and_vassal_change = scope:change } else = { - faction_target = { decrease_crown_authority_effect = yes } + faction_target = { change_authority_effect = { CHANGE = -1 } } } } else = { @@ -26102,7 +26161,7 @@ hold_court.8260 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain trusting = medium_stress_impact_gain vengeful = medium_stress_impact_gain @@ -26149,7 +26208,7 @@ hold_court.8260 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain diligent = medium_stress_impact_gain just = medium_stress_impact_gain @@ -26367,7 +26426,7 @@ hold_court.8270 = { custom_tooltip = low_obligations_levies } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain paranoid = medium_stress_impact_gain } @@ -26478,7 +26537,7 @@ hold_court.8270 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -26509,7 +26568,7 @@ hold_court.8270 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain trusting = medium_stress_impact_gain fickle = medium_stress_impact_gain @@ -26774,7 +26833,7 @@ hold_court.8280 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain generous = medium_stress_impact_gain } @@ -26854,12 +26913,12 @@ hold_court.8280 = { limit = { culture != scope:nomad_culture } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain arrogant = medium_stress_impact_gain } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } ai_chance = { @@ -26921,12 +26980,12 @@ hold_court.8280 = { limit = { culture != scope:nomad_culture } - stress_impact = { + stress_and_fulfillment_impact = { diligent = medium_stress_impact_gain paranoid = medium_stress_impact_gain } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain } ai_chance = { diff --git a/events/activities/pilgrimage_activity/pilgrimage_events.txt b/events/activities/pilgrimage_activity/pilgrimage_events.txt index 54d8cd85f..521894feb 100644 --- a/events/activities/pilgrimage_activity/pilgrimage_events.txt +++ b/events/activities/pilgrimage_activity/pilgrimage_events.txt @@ -14,7 +14,7 @@ namespace = pilgrimage ############################ ## Generic Journey Events ## 1001-2100 + 6001-6010 -## by Petter Vilberg & Filippa Gannholm Kirsten & Joe Parkin +## by Petter Vilberg & Filippa Gannholm Kirsten & Joe Parkin & Veronica Pazos ############################ # pilgrimage.1100 - Sea: Saint Elmo's Fire # pilgrimage.1110 - Heathen Raiders @@ -33,6 +33,7 @@ namespace = pilgrimage # pilgrimage.2030 - Sea: Massive rainbow # pilgrimage.2040 - Sea: Go fish # pilgrimage.2050 - Sea: Shipwrecked pilgrims +# pilgrimage.2060 - Pilgrims tell tales in a tavern # ############################ ## 'Temptation' Events @@ -338,16 +339,16 @@ pilgrimage.0500 = { } is_available_healthy_adult = yes #Forbidden from pilgrimages? No pilgrimage for you! + rite = { NOT = { rite_has_parameter = forbidden_from_pilgrimage } } faith = { - NOT = { has_doctrine_parameter = forbidden_from_pilgrimage } - any_holy_site = { + any_holy_site_barony = { pilgrimage_0500_valid_holy_site_trigger = yes save_temporary_scope_as = holy_site_check } - any_holy_site = { + any_holy_site_barony = { pilgrimage_0500_valid_holy_site_trigger = yes this != scope:holy_site_check - } + } } #This really should take care of most Hajj/Pilgrim-related trigger checks - if you don't have this trait, you haven't been pilgrimming before NOR = { @@ -389,11 +390,11 @@ pilgrimage.0500 = { } #Some loc flavor faith = { - random_holy_site = { + random_holy_site_barony = { limit = { pilgrimage_0500_valid_holy_site_trigger = yes } save_scope_as = first_holy_site } - random_holy_site = { + random_holy_site_barony = { limit = { pilgrimage_0500_valid_holy_site_trigger = yes this != scope:first_holy_site @@ -417,7 +418,7 @@ pilgrimage.0500 = { add_character_modifier = pilgrimage_promised_modifier } add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -438,7 +439,7 @@ pilgrimage.0500 = { opinion = -5 } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss callous = minor_stress_impact_loss compassionate = major_stress_impact_gain @@ -704,7 +705,8 @@ pilgrimage.1100 = { } pious_type_option_effect = yes pilgrimage_st_elmo_success_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss craven = minor_stress_impact_gain cynical = minor_stress_impact_gain fickle = minor_stress_impact_gain @@ -793,7 +795,7 @@ pilgrimage.1100 = { } } pilgrimage_st_elmo_success_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss craven = medium_stress_impact_gain cynical = medium_stress_impact_gain @@ -834,7 +836,8 @@ pilgrimage.1100 = { } } pilgrimage_st_elmo_success_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_loss compassionate = medium_stress_impact_gain cynical = minor_stress_impact_gain } @@ -859,7 +862,7 @@ pilgrimage.1100 = { current_travel_plan = { delay_travel_plan = { days = 90 } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain zealous = medium_stress_impact_gain stubborn = minor_stress_impact_gain @@ -1009,7 +1012,7 @@ pilgrimage.1110 = { base = 1 modifier = { factor = 0.5 - location.county.faith = { has_doctrine = tenet_dharmic_pacifism } + location.county.rite = { rite_has_tenet = tenet_dharmic_pacifism } } } @@ -1049,6 +1052,7 @@ pilgrimage.1110 = { template = new_raider_character culture = root.location.culture faith = root.location.faith + rite = root.location.rite dynasty = none location = root.location gender_female_chance = scope:county_liege.root_soldier_female_chance @@ -1351,7 +1355,7 @@ pilgrimage.1110 = { } } add_internal_flag = dangerous - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain patient = minor_stress_impact_gain } @@ -1430,7 +1434,7 @@ pilgrimage.1110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_gain zealous = minor_stress_impact_loss arrogant = minor_stress_impact_gain @@ -1515,7 +1519,7 @@ pilgrimage.1110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain arrogant = minor_stress_impact_gain } @@ -1538,7 +1542,7 @@ pilgrimage.1110 = { max = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain greedy = minor_stress_impact_gain } @@ -1577,13 +1581,13 @@ scripted_trigger pilgrim_admire_temple_person_trigger = { } trigger_if = { limit = { - faith = { has_doctrine_parameter = clergy_must_be_male } + rite = { rite_has_parameter = clergy_must_be_male } } is_male = yes } trigger_if = { limit = { - faith = { has_doctrine_parameter = clergy_must_be_female } + rite = { rite_has_parameter = clergy_must_be_female } } is_female = yes } @@ -1684,6 +1688,7 @@ pilgrimage.1120 = { template = priest_character_template culture = root.location.culture faith = root.location.faith + rite = root.location.rite dynasty = none location = root.location gender_female_chance = root_faith_clergy_gender_female_chance @@ -1719,7 +1724,8 @@ pilgrimage.1120 = { name = pilgrimage.1120.e add_piety = miniscule_piety_gain pious_type_option_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss cynical = minor_stress_impact_gain impatient = minor_stress_impact_gain } @@ -1741,7 +1747,7 @@ pilgrimage.1120 = { modifier = annoyed_opinion opinion = -10 } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain } ai_chance = { @@ -1756,7 +1762,8 @@ pilgrimage.1120 = { option = { # Leave name = pilgrimage.1120.d - stress_impact = { + stress_and_fulfillment_impact = { + base = minor_stress_impact_loss patient = minor_stress_impact_gain lazy = minor_stress_impact_gain } @@ -1931,7 +1938,7 @@ pilgrimage.1130 = { trigger = { location.faith = root.faith } remove_treasury_or_gold = 5 add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain cynical = minor_stress_impact_gain improvident = minor_stress_impact_loss @@ -1979,7 +1986,7 @@ pilgrimage.1130 = { } if = { limit = { location.faith = root.faith } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain zealous = medium_stress_impact_gain just = medium_stress_impact_gain @@ -1989,7 +1996,7 @@ pilgrimage.1130 = { } } else = { - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain just = minor_stress_impact_gain } @@ -2039,7 +2046,7 @@ pilgrimage.1130 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain compassionate = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -2074,7 +2081,7 @@ pilgrimage.1130 = { OPINION = default_friend_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain humble = minor_stress_impact_gain } @@ -2107,7 +2114,7 @@ pilgrimage.1130 = { OPINION = default_friend_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain } ai_chance = { @@ -2143,7 +2150,7 @@ pilgrimage.1130 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_gain profligate = minor_stress_impact_gain } @@ -2159,6 +2166,7 @@ pilgrimage.1130 = { } scripted_trigger pilgrim_group_leader_trigger = { + is_adult = yes is_available = yes # Landless is_landed = no @@ -2173,13 +2181,13 @@ scripted_trigger pilgrim_group_leader_trigger = { # Dominant gender trigger_if = { limit = { - faith = { has_doctrine_parameter = male_dominated_law } + rite = { rite_has_parameter = male_dominated_law } } is_male = yes } trigger_else_if = { limit = { - faith = { has_doctrine_parameter = female_dominated_law } + rite = { rite_has_parameter = female_dominated_law } } is_female = yes } @@ -2292,6 +2300,7 @@ pilgrimage.1140 = { template = generic_peasant_character culture = root.culture faith = root.faith + rite = root.rite dynasty = none location = root.location gender_female_chance = root_faith_dominant_gender_female_chance @@ -2318,7 +2327,7 @@ pilgrimage.1140 = { add_travel_plan_modifier = { modifier = pilgrim_group_joined_modifier } } add_character_flag = pilgrim_group_joined - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain greedy = minor_stress_impact_gain improvident = minor_stress_impact_gain @@ -2350,7 +2359,7 @@ pilgrimage.1140 = { desc = cultural_acceptance_rejected_pilgrims } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain just = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -2370,7 +2379,7 @@ pilgrimage.1140 = { name = pilgrimage.1140.c add_piety = miniscule_piety_gain remove_short_term_gold = 20 - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain @@ -2391,7 +2400,7 @@ pilgrimage.1140 = { name = pilgrimage.1140.d flavor = pilgrimage.1140.d.flavor add_prestige = miniscule_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain improvident = minor_stress_impact_gain generous = minor_stress_impact_gain @@ -2514,14 +2523,14 @@ pilgrimage.2002 = { if = { limit = { NOT = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain shy = minor_stress_impact_gain } @@ -2546,7 +2555,7 @@ pilgrimage.2002 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain trusting = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -2660,6 +2669,7 @@ pilgrimage.2003 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite gender_female_chance = root_soldier_female_chance prowess = { medium_skill_rating high_skill_rating } save_scope_as = 2002_local_warrior @@ -2677,7 +2687,7 @@ pilgrimage.2003 = { } if = { limit = { - faith = { has_doctrine = tenet_armed_pilgrimages } + rite = { rite_has_tenet = tenet_armed_pilgrimages } } custom_description_no_bullet = { text = pilgrimage_piousness_because_i_have_tenet_armed_pilgrimages @@ -2686,7 +2696,7 @@ pilgrimage.2003 = { } else_if = { limit = { - faith = { has_doctrine = tenet_struggle_submission } + rite = { rite_has_tenet = tenet_struggle_submission } } custom_description_no_bullet = { text = pilgrimage_piousness_because_i_have_tenet_struggle_submission @@ -2694,8 +2704,8 @@ pilgrimage.2003 = { } } current_travel_plan = { add_travel_plan_modifier = pilgrim_protection_modifier } - remove_short_term_gold = medium_gold_value - stress_impact = { + remove_short_term_gold = minor_gold_value + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain greedy = medium_stress_impact_gain } @@ -2725,7 +2735,7 @@ pilgrimage.2003 = { name = pilgrimage.2003.b if = { limit = { - faith = { has_doctrine = tenet_warmonger } + rite = { rite_has_tenet = tenet_warmonger } } custom_description_no_bullet = { text = pilgrimage_piousness_because_i_have_tenet_warmonger @@ -2737,7 +2747,7 @@ pilgrimage.2003 = { CHAR_TO_ADD = scope:2002_local_warrior NEW_COURT_OWNER = root } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain greedy = medium_stress_impact_gain } @@ -2771,7 +2781,13 @@ pilgrimage.2003 = { modifier = pilgrimage_divine_protection_modifier years = 10 } - stress_impact = { + if = { + limit = { + rite = { rite_has_parameter = tenet_inner_journey_humble_pilgrimage_bonus } + } + add_piety = medium_piety_gain + } + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain craven = medium_stress_impact_gain } @@ -2809,6 +2825,7 @@ scripted_trigger pilgrimage_2004_potential_friend_trigger = { faith = root.faith NOT = { is_courtier_of = root } location = root.location + is_ruler = no } #Run into a potential friend @@ -2865,7 +2882,7 @@ pilgrimage.2004 = { modifier = divine_blessing_friendship_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain paranoid = major_stress_impact_gain } @@ -2885,7 +2902,7 @@ pilgrimage.2004 = { name = pilgrimage.2004.b pious_type_option_effect = yes add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain gregarious = medium_stress_impact_gain } @@ -2995,7 +3012,7 @@ pilgrimage.2005 = { } add_stress = medium_stress_loss } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain } @@ -3020,7 +3037,7 @@ pilgrimage.2005 = { opinion = low_negative_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain humble = medium_stress_impact_gain sadistic = major_stress_impact_loss @@ -3039,7 +3056,7 @@ pilgrimage.2005 = { modifier = new_pilgrimage_companions_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { stubborn = medium_stress_impact_gain } ai_chance = { @@ -3116,12 +3133,12 @@ pilgrimage.2006 = { modifier = { exists = current_travel_plan.travel_leader current_travel_plan.travel_leader = { - aptitude:travel_leader_court_position < 10 + aptitude:travel_leader_court_position <= 1 } - faith = { + rite = { OR = { - trait_is_virtue = forgiving - trait_is_virtue = patient + trait_is_virtue_rite = forgiving + trait_is_virtue_rite = patient } } add = 1 @@ -3253,7 +3270,7 @@ pilgrimage.2006 = { add_learning_lifestyle_xp = medium_lifestyle_xp } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_loss } } @@ -3287,9 +3304,9 @@ pilgrimage.2006 = { OR = { AND = { exists = scope:caravan_master - faith = { trait_is_virtue = forgiving } + rite = { trait_is_virtue_rite = forgiving } } - faith = { trait_is_virtue = patient } + rite = { trait_is_virtue_rite = patient } } } add_piety = miniscule_piety_gain @@ -3299,9 +3316,9 @@ pilgrimage.2006 = { OR = { AND = { exists = scope:caravan_master - faith = { trait_is_sin = forgiving } + rite = { trait_is_sin_rite = forgiving } } - faith = { trait_is_sin = patient } + rite = { trait_is_sin_rite = patient } } } add_piety = minor_piety_loss @@ -3310,7 +3327,7 @@ pilgrimage.2006 = { modifier = pilgrimage_accepting_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss patient = minor_stress_impact_loss humble = minor_stress_impact_loss @@ -3352,9 +3369,9 @@ pilgrimage.2006 = { OR = { AND = { exists = scope:caravan_master - faith = { trait_is_virtue = vengeful } + rite = { trait_is_virtue_rite = vengeful } } - faith = { trait_is_virtue = impatient } + rite = { trait_is_virtue_rite = impatient } } } pious_type_option_effect = yes @@ -3365,9 +3382,9 @@ pilgrimage.2006 = { OR = { AND = { exists = scope:caravan_master - faith = { trait_is_sin = vengeful } + rite = { trait_is_sin_rite = vengeful } } - faith = { trait_is_sin = impatient } + rite = { trait_is_sin_rite = impatient } } } add_piety = minor_piety_loss @@ -3375,7 +3392,7 @@ pilgrimage.2006 = { if = { limit = { exists = scope:caravan_master } add_dread = minor_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain @@ -3383,7 +3400,7 @@ pilgrimage.2006 = { } else = { add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain craven = minor_stress_impact_gain paranoid = medium_stress_impact_gain @@ -3399,10 +3416,10 @@ pilgrimage.2006 = { factor = 0 } modifier = { - faith = { + rite = { OR = { - trait_is_virtue = forgiving - trait_is_virtue = patient + trait_is_virtue_rite = forgiving + trait_is_virtue_rite = patient } } factor = 0 @@ -3621,7 +3638,7 @@ scripted_effect pilgrimage_2014_outcome_effect = { title = pilgrimage.2014.pilfered.t left_icon = root remove_short_term_gold = tiny_gold_value - stress_impact = { base = miniscule_stress_impact_loss } + stress_and_fulfillment_impact = { base = miniscule_stress_impact_loss } } } 50 = { @@ -3630,7 +3647,7 @@ scripted_effect pilgrimage_2014_outcome_effect = { send_interface_toast = { title = pilgrimage.2014.restful.t left_icon = root - stress_impact = { base = minor_stress_impact_loss } + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } add_character_modifier = { modifier = pilgrimage_rest_and_good_health_modifier years = 5 @@ -3703,7 +3720,7 @@ pilgrimage.2010 = { trigger = { OR = { has_trait = lifestyle_mystic - has_trait = scholar + has_trait = erudite has_trait = trusting has_trait = gregarious } @@ -3795,6 +3812,7 @@ pilgrimage.2010 = { } } } + remove_character_flag = in_pilgrimage_event_chain } } @@ -3840,7 +3858,10 @@ pilgrimage.2011 = { show_as_unavailable = { always = yes } skill = learning bonus_to_all_types_effect = yes - show_as_tooltip = { pilgrimage_2013_outcome_effect = yes } + show_as_tooltip = { + pilgrimage_2013_outcome_effect = yes + change_spiritual_fulfillment = minor_spiritual_fulfillment_value + } trigger_event = { id = pilgrimage.2013 days = 5 @@ -3938,6 +3959,7 @@ pilgrimage.2013 = { } immediate = { pilgrimage_2013_outcome_effect = yes + change_spiritual_fulfillment = minor_spiritual_fulfillment_value } #Woo! Mystic! option = { @@ -4156,6 +4178,7 @@ pilgrimage.2020 = { age = { 6 15 } culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite after_creation = { set_to_lowborn = yes } @@ -4170,6 +4193,7 @@ pilgrimage.2020 = { age = { 16 25 } culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite after_creation = { set_to_lowborn = yes } @@ -4211,13 +4235,13 @@ pilgrimage.2020 = { bonus_to_all_types_effect = yes if = { limit = { - faith = { trait_is_virtue = forgiving } + rite = { trait_is_virtue_rite = forgiving } } add_piety = medium_piety_gain } else_if = { limit = { - faith = { trait_is_virtue = vengeful } + rite = { trait_is_virtue_rite = vengeful } } add_piety = minor_piety_loss } @@ -4266,7 +4290,7 @@ pilgrimage.2020 = { } add_character_flag = recruited_thief } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain wrathful = medium_stress_impact_gain vengeful = medium_stress_impact_gain @@ -4341,7 +4365,7 @@ pilgrimage.2020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { @@ -4369,7 +4393,7 @@ pilgrimage.2020 = { name = pilgrimage.2020.c worldly_type_option_effect = yes remove_short_term_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain forgiving = medium_stress_impact_loss cynical = minor_stress_impact_loss @@ -4387,9 +4411,9 @@ pilgrimage.2020 = { if = { limit = { has_character_flag = created_thief - NOR = { - has_character_flag = recruited_thief - has_character_flag = convinced_thief + has_none_of_variables = { + name = recruited_thief + name = convinced_thief } } if = { @@ -4447,7 +4471,7 @@ pilgrimage.2021 = { set_character_faith = root.faith } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss cynical = medium_stress_impact_gain } @@ -4496,7 +4520,7 @@ pilgrimage.2021 = { add_trait = flagellant increase_wounds_no_death_effect = { REASON = flagellant } } - stress_impact = { + stress_and_fulfillment_impact = { flagellant = major_stress_impact_loss sadistic = medium_stress_impact_loss } @@ -4534,7 +4558,7 @@ pilgrimage.2021 = { } } add_courtier = scope:thief_to_convert - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain cynical = medium_stress_impact_loss } @@ -4571,7 +4595,7 @@ pilgrimage.2030 = { triggered_animation = { trigger = { OR = { - has_trait = scholar + has_trait = erudite learning > high_skill_rating } } @@ -4633,7 +4657,7 @@ pilgrimage.2030 = { name = pilgrimage.2030.a trigger = { OR = { - has_trait = scholar + has_trait = erudite learning > high_skill_rating } } @@ -4665,7 +4689,7 @@ pilgrimage.2030 = { } } #Besserwisser gonna besserwiss - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } ai_chance = { @@ -4710,7 +4734,8 @@ pilgrimage.2030 = { value = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss cynical = minor_stress_impact_gain } ai_chance = { @@ -4737,7 +4762,7 @@ pilgrimage.2030 = { value = lifestyle_mystic_xp_gain_minor_value } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } ai_chance = { @@ -4748,7 +4773,7 @@ pilgrimage.2030 = { option = { name = pilgrimage.2030.d worldly_type_option_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = minor_stress_impact_loss } ai_chance = { @@ -4830,13 +4855,13 @@ pilgrimage.2040 = { any_secret = { type = secret_non_believer } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss zealous = minor_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss } } @@ -4861,13 +4886,13 @@ pilgrimage.2040 = { any_secret = { type = secret_non_believer } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss zealous = minor_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } } @@ -4933,7 +4958,7 @@ pilgrimage.2040 = { modifier = pilgrimage_chill_ship_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } ai_chance = { @@ -4999,6 +5024,7 @@ pilgrimage.2050 = { age = { 6 10 } dynasty = none faith = scope:first_pilgrim.faith + rite = scope:first_pilgrim.rite culture = scope:first_pilgrim.culture location = root.location save_scope_as = second_pilgrim @@ -5008,6 +5034,7 @@ pilgrimage.2050 = { template = pool_repopulate_local_flavor dynasty = none faith = scope:first_pilgrim.faith + rite = scope:first_pilgrim.rite culture = scope:first_pilgrim.culture trait = pilgrim location = root.location @@ -5034,7 +5061,7 @@ pilgrimage.2050 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss gregarious = minor_stress_impact_loss trusting = minor_stress_impact_loss @@ -5044,7 +5071,7 @@ pilgrimage.2050 = { } #We're OK with their culture else = { - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss gregarious = medium_stress_impact_loss trusting = medium_stress_impact_loss @@ -5071,7 +5098,7 @@ pilgrimage.2050 = { option = { name = pilgrimage.2050.b trigger = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } faith != scope:first_pilgrim.faith } duel = { @@ -5133,7 +5160,8 @@ pilgrimage.2050 = { scope:third_pilgrim = { death = { death_reason = death_drowned } } } } - stress_impact = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss humble = minor_stress_impact_gain shy = minor_stress_impact_gain } @@ -5158,7 +5186,7 @@ pilgrimage.2050 = { scope:first_pilgrim = { death = { death_reason = death_drowned } } scope:second_pilgrim = { death = { death_reason = death_drowned } } scope:third_pilgrim = { death = { death_reason = death_drowned } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_loss callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss @@ -5178,6 +5206,398 @@ pilgrimage.2050 = { } } +# Pilgrims tell tales in a tavern +# by Veronica Pazos +scripted_trigger pilgrimage_2060_valid_pilgrim_trigger = { + is_ai = yes + is_adult = yes + this != root +} + +scripted_trigger pilgrimage_2060_valid_memory_trigger = { + OR = { + has_memory_category = travel + has_memory_category = positive + } +} + +pilgrimage.2060 = { + type = character_event + title = pilgrimage.2060.t + desc = { + desc = pilgrimage.2060.desc.intro + first_valid = { + triggered_desc = { + trigger = { exists = scope:memory } + desc = pilgrimage.2060.desc.memory + } + desc = pilgrimage.2060.desc.fallback + } + } + + theme = travel_pilgrimage + override_background = { reference = tavern } + left_portrait = { + character = scope:pilgrim + animation = storyteller + } + right_portrait = { + character = root + triggered_animation = { + trigger = { has_trait = zealous } + animation = anger + } + animation = interested + } + cooldown = { years = 5 } + + trigger = { + current_travel_plan ?= { + any_entourage_character = { + pilgrimage_2060_valid_pilgrim_trigger = yes + } + } + } + + immediate = { + current_travel_plan = { + random_entourage_character = { + limit = { pilgrimage_2060_valid_pilgrim_trigger = yes } + weight = { + base = 1 + modifier = { + any_memory = { + has_memory_category = travel + } + add = 50 + } + modifier = { + any_memory = { + has_memory_category = positive + } + add = 10 + } + modifier = { + has_trait = lifestyle_poet + add = 2 + } + modifier = { + has_trait = journaller + add = 1 + } + } + save_scope_as = pilgrim + } + } + if = { + limit = { + scope:pilgrim = { + any_memory = { + pilgrimage_2060_valid_memory_trigger = yes + } + } + } + scope:pilgrim = { + random_memory = { + limit = { pilgrimage_2060_valid_memory_trigger = yes } + save_scope_as = memory + } + } + } + } + # Join in + option = { + name = pilgrimage.2060.a + if = { + limit = { + involved_activity = { activity_has_worldly_pilgrimage_type_trigger = yes } + } + worldly_type_option_effect = yes + stress_and_fulfillment_impact = { + lifestyle_reveler = medium_stress_impact_loss + cynical = medium_stress_impact_loss + zealous = minor_stress_impact_gain + } + } + else = { + stress_and_fulfillment_impact = { + base = medium_stress_impact_loss + lifestyle_reveler = medium_stress_impact_loss + cynical = medium_stress_impact_loss + zealous = minor_stress_impact_gain + } + } + scope:pilgrim = { + add_opinion = { + target = root + modifier = friendliness_opinion + opinion = 30 + } + } + + ai_chance = { + base = 100 + modifier = { + has_trait = zealous + factor = 0 + } + modifier = { + OR = { + has_trait = lifestyle_reveler + has_trait = cynical + } + factor = 2 + } + } + } + + # Tell them to pray instead + option = { + name = { + trigger = { + faith = faith:catholic + current_date >= 1050.1.1 + } + text = pilgrimage.2060.b.catholic + } + name = { + trigger = { + NAND = { + faith = faith:catholic + current_date >= 1050.1.1 + } + } + text = pilgrimage.2060.b + } + if = { + limit = { + involved_activity = { activity_has_pious_pilgrimage_type_trigger = yes } + } + pious_type_option_effect = yes + } + else = { + add_piety = minor_piety_gain + } + scope:pilgrim = { + add_opinion = { + target = root + modifier = annoyed_opinion + opinion = -15 + } + } + + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_loss + shy = minor_stress_impact_gain + lifestyle_reveler = medium_stress_impact_gain + cynical = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = zealous + factor = 2 + } + modifier = { + OR = { + has_trait = shy + has_trait = lifestyle_reveler + has_trait = cynical + } + factor = 0 + } + } + } + + # Go to bed + option = { + name = pilgrimage.2060.c + add_prestige = minor_prestige_gain + stress_and_fulfillment_impact = { + lazy = minor_stress_impact_loss + zealous = medium_stress_impact_gain + lifestyle_reveler = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = lazy + factor = 2 + } + modifier = { + OR = { + has_trait = zealous + has_trait = lifestyle_reveler + } + factor = 0 + } + } + } +} + +# Superstitious pilgrim thinks there's a trickster spirit in this area +# by Veronica Pazos +scripted_trigger pilgrimage_2070_valid_pilgrim_trigger = { + is_ai = yes + is_adult = yes + this != root + NOT = { has_trait = zealous } +} + +pilgrimage.2070 = { + type = character_event + title = pilgrimage.2070.t + desc = pilgrimage.2070.desc + theme = travel_pilgrimage + left_portrait = { + character = scope:pilgrim + animation = beg + camera = camera_event_very_left + } + right_portrait = { + character = root + triggered_animation = { + trigger = { + OR = { + has_trait = zealous + has_trait = cynical + } + } + animation = dismissal + } + triggered_animation = { + trigger = { has_trait = craven } + animation = worry + } + animation = thinking + } + cooldown = { years = 5 } + + trigger = { + current_travel_plan ?= { + any_entourage_character = { + pilgrimage_2070_valid_pilgrim_trigger = yes + } + } + } + + immediate = { + current_travel_plan = { + random_entourage_character = { + limit = { pilgrimage_2070_valid_pilgrim_trigger = yes } + weight = { + base = 1 + modifier = { + has_character_modifier = bp1_superstition_modifier + add = 50 + } + modifier = { + has_relation_potential_friend = root + add = 25 + } + } + save_scope_as = pilgrim + } + } + } + # Shut up + option = { + name = pilgrimage.2070.a + if = { + limit = { + involved_activity = { activity_has_pious_pilgrimage_type_trigger = yes } + } + pious_type_option_effect = yes + } + else = { + add_piety = minor_piety_gain + } + stress_and_fulfillment_impact = { + lifestyle_reveler = medium_stress_impact_loss + cynical = medium_stress_impact_loss + zealous = major_stress_impact_gain + } + + ai_chance = { + base = 100 + modifier = { + has_trait = zealous + factor = 0 + } + modifier = { + OR = { + has_trait = lifestyle_reveler + has_trait = cynical + } + factor = 2 + } + } + } + + # Say a prayer + option = { + name = pilgrimage.2070.b + current_travel_plan = { + delay_travel_plan = { + days = 5 + } + } + progress_towards_friend_effect = { + REASON = friend_prayed_against_trickster_spirits + CHARACTER = scope:pilgrim + OPINION = default_friend_opinion + } + stress_and_fulfillment_impact = { + zealous = medium_stress_impact_loss + shy = minor_stress_impact_gain + lifestyle_reveler = medium_stress_impact_gain + cynical = major_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = zealous + factor = 2 + } + modifier = { + OR = { + has_trait = shy + has_trait = lifestyle_reveler + has_trait = cynical + } + factor = 0 + } + } + } + + # Ignore this + option = { + name = pilgrimage.2070.c + current_travel_plan = { + add_travel_plan_modifier = { modifier = pilgrimage_make_haste_modifier } + } + stress_and_fulfillment_impact = { + lazy = minor_stress_impact_loss + zealous = medium_stress_impact_gain + lifestyle_reveler = medium_stress_impact_gain + } + ai_chance = { + base = 100 + modifier = { + has_trait = lazy + factor = 2 + } + modifier = { + OR = { + has_trait = zealous + has_trait = lifestyle_reveler + } + factor = 0 + } + } + } +} + ############################ ## 'Temptation' Events # 2500-2999 @@ -5204,6 +5624,34 @@ pilgrimage.2101 = { title = pilgrimage.2101.t desc = { desc = pilgrimage.2101.desc + first_valid = { + triggered_desc = { + trigger = { + rite = { trait_is_virtue_rite = lustful } + } + desc = pilgrimage.2101.desc.lust_virtue + } + triggered_desc = { + trigger = { + rite = { trait_is_sin_rite = lustful } + } + desc = pilgrimage.2101.desc.lust_vice + } + triggered_desc = { + trigger = { + OR = { + has_sexuality = asexual + rite = { + NOR = { + trait_is_sin_rite = lustful + trait_is_virtue_rite = lustful + } + } + } + } + desc = pilgrimage.2101.desc.lust_neutral + } + } } cooldown = { years = 5 } theme = travel_pilgrimage @@ -5252,7 +5700,7 @@ pilgrimage.2101 = { AND = { has_sexuality = asexual is_female = yes - faith = { has_doctrine = doctrine_homosexuality_accepted } + rite = { rite_has_doctrine = doctrine_homosexuality_accepted } } #bisexual has_sexuality = bisexual @@ -5263,6 +5711,7 @@ pilgrimage.2101 = { gender = female location = root.location faith = root.location.faith + rite = root.location.rite culture = root.location.culture dynasty = none random_traits = no @@ -5325,7 +5774,7 @@ pilgrimage.2101 = { AND = { has_sexuality = asexual is_male = yes - faith = { has_doctrine = doctrine_homosexuality_accepted } + rite = { rite_has_doctrine = doctrine_homosexuality_accepted } } #bisexual has_sexuality = bisexual @@ -5336,6 +5785,7 @@ pilgrimage.2101 = { gender = male location = root.location faith = root.location.faith + rite = root.location.rite culture = root.location.culture dynasty = none random_traits = no @@ -5387,14 +5837,14 @@ pilgrimage.2101 = { name = pilgrimage.2101.a if = { limit = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } pious_type_option_effect = yes add_piety = minor_piety_gain } else_if = { limit = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } worldly_type_option_effect = yes add_piety = medium_piety_loss @@ -5457,14 +5907,14 @@ pilgrimage.2101 = { name = pilgrimage.2101.b if = { limit = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } pious_type_option_effect = yes add_piety = medium_piety_gain } else_if = { limit = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } worldly_type_option_effect = yes add_piety = major_piety_loss @@ -5522,21 +5972,21 @@ pilgrimage.2101 = { name = pilgrimage.2101.c if = { limit = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } add_piety = miniscule_piety_gain pious_type_option_effect = yes } else_if = { limit = { - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } add_piety = minor_piety_loss } else = { add_piety = miniscule_piety_gain } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain lustful = minor_stress_impact_gain #gets added on top of the base rakish = medium_stress_impact_gain #gets added on top of the base @@ -5573,10 +6023,10 @@ pilgrimage.2101 = { scripted_effect generosity_piety_stress_effect = { if = { limit = { - faith = { + rite = { OR = { - trait_is_virtue = generous - trait_is_virtue = compassionate + trait_is_virtue_rite = generous + trait_is_virtue_rite = compassionate } } } @@ -5585,12 +6035,14 @@ scripted_effect generosity_piety_stress_effect = { } else_if = { limit = { - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } } add_piety = minor_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { + generous = minor_stress_impact_loss + compassionate = minor_stress_impact_loss greedy = minor_stress_gain callous = minor_stress_gain arrogant = minor_stress_gain @@ -5601,23 +6053,24 @@ scripted_effect generosity_piety_stress_effect = { scripted_effect parsimony_piety_stress_effect = { if = { limit = { - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } } add_piety = miniscule_piety_gain } else_if = { limit = { - faith = { + rite = { OR = { - trait_is_virtue = generous - trait_is_virtue = compassionate + trait_is_virtue_rite = generous + trait_is_virtue_rite = compassionate } } } add_piety = minor_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { + greedy = minor_stress_impact_loss generous = medium_stress_gain compassionate = minor_stress_gain forgiving = minor_stress_gain @@ -5634,15 +6087,15 @@ pilgrimage.2501 = { desc = pilgrimage.2501.desc.opening first_valid = { triggered_desc = { - trigger = { faith = { trait_is_virtue = generous } } + trigger = { rite = { trait_is_virtue_rite = generous } } desc = pilgrimage.2501.desc.virtue.generous } triggered_desc = { - trigger = { faith = { trait_is_sin = generous } } + trigger = { rite = { trait_is_sin_rite = generous } } desc = pilgrimage.2501.desc.sin.generous } triggered_desc = { - trigger = { faith = { trait_is_virtue = compassionate } } + trigger = { rite = { trait_is_virtue_rite = compassionate } } desc = pilgrimage.2501.desc.virtue.compassionate } } @@ -5661,7 +6114,7 @@ pilgrimage.2501 = { trigger = { OR = { AND = { - faith = { trait_is_virtue = generous } + rite = { trait_is_virtue_rite = generous } NOT = { has_trait = generous } OR = { has_trait = greedy @@ -5671,7 +6124,7 @@ pilgrimage.2501 = { } } AND = { - faith = { trait_is_virtue = compassionate } + rite = { trait_is_virtue_rite = compassionate } NOT = { has_trait = compassionate } OR = { has_trait = greedy @@ -5681,7 +6134,7 @@ pilgrimage.2501 = { } } AND = { - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } has_trait = generous } } @@ -5712,6 +6165,7 @@ pilgrimage.2501 = { random_traits = yes location = root.location faith = root.faith # They 'convert' if they ever join your court. + rite = root.rite culture = root.location.culture save_scope_as = beggar } @@ -5723,10 +6177,10 @@ pilgrimage.2501 = { option = { name = { trigger = { - faith = { + rite = { OR = { - trait_is_virtue = generous - trait_is_virtue = compassionate + trait_is_virtue_rite = generous + trait_is_virtue_rite = compassionate } } } @@ -5734,7 +6188,7 @@ pilgrimage.2501 = { } name = { trigger = { - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } } text = pilgrimage.2501.a.sin } @@ -5836,7 +6290,7 @@ pilgrimage.2502 = { name = pilgrimage.2502.b trigger = { NOT = { has_character_flag = pilgrimage_2501_gave_gold } - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } has_trait = generous NOR = { has_trait = callous @@ -5846,7 +6300,7 @@ pilgrimage.2502 = { } remove_trait = generous add_trait = callous - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain } hidden_effect = { @@ -5950,8 +6404,8 @@ pilgrimage.2504 = { OR = { # Must be able to replace a personality trait with either Generous... AND = { - faith = { - trait_is_virtue = generous + rite = { + trait_is_virtue_rite = generous } NOT = { has_trait = generous } OR = { @@ -5963,8 +6417,8 @@ pilgrimage.2504 = { } # ...or with Compassionate AND = { - faith = { - trait_is_virtue = compassionate + rite = { + trait_is_virtue_rite = compassionate } NOR = { has_trait = compassionate @@ -5985,8 +6439,8 @@ pilgrimage.2504 = { remove_short_term_gold = medium_gold_value if = { limit = { - faith = { - trait_is_virtue = generous + rite = { + trait_is_virtue_rite = generous } NOT = { has_trait = generous } } @@ -6006,7 +6460,7 @@ pilgrimage.2504 = { limit = { has_trait = vengeful } remove_trait = vengeful } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain } add_trait_force_tooltip = generous @@ -6028,7 +6482,7 @@ pilgrimage.2504 = { limit = { has_trait = vengeful } remove_trait = vengeful } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain } add_trait_force_tooltip = compassionate @@ -6055,13 +6509,13 @@ pilgrimage.2504 = { option = { name = { trigger = { - faith = { trait_is_virtue = generous } + rite = { trait_is_virtue_rite = generous } } text = pilgrimage.2504.c.virtue } name = { trigger = { - faith = { trait_is_sin = generous } + rite = { trait_is_sin_rite = generous } } text = pilgrimage.2504.c.sin } @@ -6108,19 +6562,19 @@ pilgrimage.2511 = { triggered_desc = { trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - faith = { trait_is_sin = vengeful } + rite = { trait_is_sin_rite = vengeful } } desc = pilgrimage.2511.desc.vengeful.christian } triggered_desc = { trigger = { - faith = { trait_is_sin = vengeful } + rite = { trait_is_sin_rite = vengeful } } desc = pilgrimage.2511.desc.vengeful } triggered_desc = { trigger = { - faith = { trait_is_sin = wrathful } + rite = { trait_is_sin_rite = wrathful } } desc = pilgrimage.2511.desc.wrathful } @@ -6143,10 +6597,10 @@ pilgrimage.2511 = { highest_held_title_tier >= tier_kingdom } # Character personality must conflict at least somewhat with their faith's relevant virtue(s). - faith = { + rite = { OR = { - trait_is_sin = wrathful - trait_is_sin = vengeful + trait_is_sin_rite = wrathful + trait_is_sin_rite = vengeful } } OR = { @@ -6287,7 +6741,7 @@ pilgrimage.2511 = { health >= 2.0 } add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { base = massive_stress_impact_gain } add_trait = athletic @@ -6298,7 +6752,7 @@ pilgrimage.2511 = { pious_type_option_effect = yes add_prestige = minor_prestige_loss add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain wrathful = minor_stress_impact_gain vengeful = minor_stress_impact_gain @@ -6339,7 +6793,13 @@ pilgrimage.3001 = { title = pilgrimage.3001.t desc = pilgrimage.3001.desc theme = travel_pilgrimage + override_effect_2d = { + reference = rain + } override_background = { reference = terrain_travel } + override_effect_2d = { + reference = rain + } widget = { gui = event_window_widget_vfx_rain_storm container = foreground_shader_vfx_container } left_portrait = { character = root @@ -6355,7 +6815,7 @@ pilgrimage.3001 = { } right_portrait = { character = scope:zealous_priest - animation = debating + animation = preaching outfit_tags = { bishop_outfit } } cooldown = { years = 15 } @@ -6366,14 +6826,41 @@ pilgrimage.3001 = { immediate = { play_music_cue = "mx_cue_general_crusade_event_2" random_dummy_gender_clergy_effect = yes - create_character = { - age = 40 - dynasty = none - gender = scope:dummy_clergy_gender - location = root.location - faith = root.faith - culture = root.culture - save_scope_as = zealous_priest + if = { + limit = { + current_travel_plan ?= { + any_entourage_character = { + is_clergy = yes + } + } + } + current_travel_plan = { + random_entourage_character = { + limit = { is_clergy = yes } + save_scope_as = zealous_priest + } + } + } + else = { + create_character = { + template = priest_character_template + age = 40 + dynasty = none + gender = scope:dummy_clergy_gender + location = root.location + faith = root.faith + rite = root.rite + culture = root.culture + save_scope_as = zealous_priest + } + hidden_effect = { + scope:zealous_priest = { + if = { + limit = { NOT = { has_trait = zealous } } + add_trait = zealous + } + } + } } } #Listen diligently @@ -6439,12 +6926,15 @@ pilgrimage.3001 = { name = pilgrimage.3001.b add_piety = miniscule_piety_loss } - after = { + after = { hidden_effect = { scope:zealous_priest = { if = { limit = { root = { is_ai = yes } + root.current_travel_plan = { + any_entourage_character = { this != scope:zealous_priest } + } } silent_disappearance_effect = yes } @@ -6483,12 +6973,8 @@ pilgrimage.3002 = { cooldown = { years = 30 } trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } - faith = { - NOR = { - has_doctrine = tenet_natural_primitivism - has_doctrine = special_doctrine_naked_priests - } - } + rite = { NOT = { rite_has_tenet = tenet_natural_primitivism } } + rite = { NOT = { rite_has_doctrine = special_doctrine_naked_priests } } NOT = { any_courtier = { has_character_flag = convinced_naked_preacher } } @@ -6526,6 +7012,7 @@ pilgrimage.3002 = { NOT = { has_game_rule = strict_regional_heresy } is_ai = no } + NOT = { faith.religious_head ?= root } } worldly_type_option_effect = yes add_piety = massive_piety_loss @@ -6705,13 +7192,10 @@ pilgrimage.3004 = { theme = travel_pilgrimage override_background = { reference = market } left_portrait = { - character = root - animation = personality_rational - } - right_portrait = { character = scope:doomsayer - animation = debating + animation = preaching_no_book outfit_tags = { monk_outfit } + camera = camera_event_right_wedding } cooldown = { years = 15 } trigger = { @@ -6728,6 +7212,7 @@ pilgrimage.3004 = { gender = scope:dummy_clergy_gender location = root.location faith = root.faith + rite = root.rite culture = root.culture save_scope_as = doomsayer } @@ -6735,6 +7220,7 @@ pilgrimage.3004 = { #Outwit them option = { name = pilgrimage.3004.a + flavor = pilgrimage.3004.a.flavor trigger = { learning >= high_skill_rating } pious_type_option_effect = yes if = { @@ -6897,7 +7383,7 @@ pilgrimage.3102 = { show_as_unavailable = { has_trait = zealous } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain cynical = minor_stress_impact_loss @@ -6950,7 +7436,7 @@ pilgrimage.3201 = { } add_prestige = minor_prestige_loss add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_gain } } @@ -6959,7 +7445,7 @@ pilgrimage.3201 = { name = pilgrimage.3201.b add_piety = minor_piety_loss add_prestige = medium_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_gain zealous = minor_stress_gain compassionate = minor_stress_gain @@ -6986,7 +7472,7 @@ pilgrimage.3202 = { desc = pilgrimage.3202.desc.jainism } triggered_desc = { - trigger = { faith = { has_doctrine = tenet_sanctity_of_nature } } + trigger = { rite = { rite_has_tenet = tenet_sanctity_of_nature } } desc = pilgrimage.3202.desc.nature } } @@ -7003,7 +7489,7 @@ pilgrimage.3202 = { religion = religion:hinduism_religion religion = religion:buddhism_religion religion = religion:jainism_religion - faith = { has_doctrine = tenet_sanctity_of_nature } + rite = { rite_has_tenet = tenet_sanctity_of_nature } } location = { OR = { @@ -7048,7 +7534,7 @@ pilgrimage.3202 = { value = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_loss calm = minor_stress_loss patient = minor_stress_loss @@ -7062,7 +7548,7 @@ pilgrimage.3202 = { add_destination_progress = { weeks = 2 } } custom_tooltip = pilgrimage.3202.b.tt - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_gain patient = minor_stress_gain } @@ -7079,7 +7565,6 @@ pilgrimage.3301 = { type = character_event title = pilgrimage.3301.t desc = pilgrimage.3301.desc - theme = pilgrimage_activity theme = travel_pilgrimage left_portrait = { character = root @@ -7113,6 +7598,7 @@ pilgrimage.3301 = { gender = scope:dummy_clergy_gender location = root.location faith = root.faith + rite = root.rite culture = root.culture save_scope_as = wanderer } @@ -7145,7 +7631,7 @@ pilgrimage.3301 = { pious_type_option_effect = yes add_piety = medium_piety_gain add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain temperate = minor_stress_loss gluttonous = minor_stress_gain @@ -7157,7 +7643,7 @@ pilgrimage.3301 = { option = { name = pilgrimage.3301.b add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_gain } } @@ -7180,7 +7666,6 @@ pilgrimage.3302 = { type = character_event title = pilgrimage.3302.t desc = pilgrimage.3302.desc - theme = pilgrimage_activity theme = travel_pilgrimage override_background = { reference = terrain } left_portrait = { @@ -7208,6 +7693,7 @@ pilgrimage.3302 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite save_scope_as = mountain_local } } @@ -7230,7 +7716,7 @@ pilgrimage.3302 = { option = { name = pilgrimage.3302.a add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain cynical = medium_stress_impact_gain } @@ -7247,7 +7733,7 @@ pilgrimage.3302 = { option = { name = pilgrimage.3302.b pious_type_option_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain cynical = medium_stress_impact_gain } @@ -7268,7 +7754,7 @@ pilgrimage.3302 = { value = tiny_gold_value max = 15 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain generous = minor_stress_gain zealous = minor_stress_gain @@ -7354,7 +7840,7 @@ pilgrimage.3303 = { years = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain cynical = medium_stress_impact_gain zealous = medium_stress_impact_loss @@ -7377,7 +7863,7 @@ pilgrimage.3303 = { modifier = pilgrimage_conversion_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain arrogant = medium_stress_impact_gain humble = medium_stress_impact_loss @@ -7399,7 +7885,6 @@ pilgrimage.3401 = { type = character_event title = pilgrimage.3401.t desc = pilgrimage.3401.desc - theme = pilgrimage_activity theme = travel_pilgrimage #background for riverside province override_background = { @@ -7524,7 +8009,7 @@ pilgrimage.3401 = { modifier = pilgrimage_seduction_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { chaste = minor_stress_impact_gain zealous = medium_stress_impact_gain lustful = medium_stress_impact_loss @@ -7544,7 +8029,7 @@ pilgrimage.3401 = { flavor = pilgrimage.3401.b.flavor pious_type_option_effect = yes add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { lustful = minor_stress_impact_gain cynical = medium_stress_impact_gain chaste = medium_stress_impact_loss @@ -7641,71 +8126,9 @@ pilgrimage.6001 = { NEW_COURT_OWNER = root } } - if = { # Get schwasted at the tavern - limit = { - drinks_alcohol_trigger = yes - scope:friend = { - drinks_alcohol_trigger = yes - OR = { - has_trait = drunkard - has_trait = lifestyle_reveler - } - } - } - trigger_event = { - id = pilgrimage.6002 - days = 5 - } - } - else_if = { - limit = { - NOT = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } - } - scope:friend = { - any_secret = { type = secret_non_believer } - } - } - trigger_event = { - id = pilgrimage.6006 - days = 5 - } - } - else_if = { - limit = { - scope:friend = { - OR = { - # Physical Traits - has_trait = wounded_1 - has_trait = wounded_2 - has_trait = wounded_3 - has_trait = impotent - has_trait = infirm - # Diseases - has_trait = ill - has_trait = bubonic_plague - has_trait = cancer - has_trait = consumption - has_trait = great_pox - has_trait = gout_ridden - has_trait = leper - has_trait = lovers_pox - has_trait = pneumonic - has_trait = smallpox - has_trait = typhus - } - } - } - trigger_event = { - id = pilgrimage.6007 - days = 5 - } - } - else = { # Fallback event - trigger_event = { - id = pilgrimage.6002 - days = 5 - } + trigger_event = { + id = pilgrimage.6009 + days = 5 } reverse_add_opinion = { target = scope:friend @@ -7718,7 +8141,7 @@ pilgrimage.6001 = { value = scope:friend } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = miniscule_stress_impact_gain shy = medium_stress_impact_gain gregarious = minor_stress_impact_loss @@ -7739,7 +8162,7 @@ pilgrimage.6001 = { modifier = insulted_opinion opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_impact_gain callous = minor_stress_impact_gain } @@ -7785,6 +8208,82 @@ pilgrimage.6001 = { } } +pilgrimage.6009 = { + type = character_event + hidden = yes + trigger = { + scope:friend = { is_alive = yes } + } + on_trigger_fail = { + remove_character_flag = in_pilgrimage_event_chain + current_travel_plan = { resume_travel_plan = yes } + } + immediate = { + if = { # Get schwasted at the tavern + limit = { + drinks_alcohol_trigger = yes + scope:friend = { + drinks_alcohol_trigger = yes + OR = { + has_trait = drunkard + has_trait = lifestyle_reveler + } + } + } + trigger_event = { + id = pilgrimage.6002 + } + } + else_if = { + limit = { + NOT = { + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + } + scope:friend = { + any_secret = { type = secret_non_believer } + } + } + trigger_event = { + id = pilgrimage.6006 + } + } + else_if = { + limit = { + scope:friend = { + OR = { + # Physical Traits + has_trait = wounded_1 + has_trait = wounded_2 + has_trait = wounded_3 + has_trait = impotent + has_trait = infirm + # Diseases + has_trait = ill + has_trait = bubonic_plague + has_trait = cancer + has_trait = consumption + has_trait = great_pox + has_trait = gout_ridden + has_trait = leper + has_trait = lovers_pox + has_trait = pneumonic + has_trait = smallpox + has_trait = typhus + } + } + } + trigger_event = { + id = pilgrimage.6007 + } + } + else = { # Fallback event + trigger_event = { + id = pilgrimage.6002 + } + } + } +} + #Tavern, Suggestion pilgrimage.6002 = { type = character_event @@ -7808,7 +8307,7 @@ pilgrimage.6002 = { id = pilgrimage.6003 days = 5 } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain temperate = massive_stress_impact_gain gluttonous = medium_stress_impact_loss @@ -7827,7 +8326,7 @@ pilgrimage.6002 = { remove_character_flag = in_pilgrimage_event_chain current_travel_plan = { resume_travel_plan = yes } custom_tooltip = pilgrimage.6002.b_tt - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss temperate = minor_stress_impact_loss } @@ -7848,7 +8347,7 @@ pilgrimage.6002 = { custom_tooltip = pilgrimage.6002.b_tt pious_type_option_effect = yes give_pilgrim_xp_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss temperate = minor_stress_impact_loss } @@ -7877,6 +8376,13 @@ pilgrimage.6003 = { character = scope:friend animation = toast_goblet } + trigger = { + scope:friend = { is_alive = yes } + } + on_trigger_fail = { + remove_character_flag = in_pilgrimage_event_chain + current_travel_plan = { resume_travel_plan = yes } + } immediate = { play_music_cue = "mx_cue_in_taberna_instrumental" } @@ -7920,6 +8426,7 @@ pilgrimage.6003 = { option = { name = pilgrimage.6003.b custom_tooltip = pilgrimage.6003.b.tt + remove_character_flag = in_pilgrimage_event_chain current_travel_plan = { resume_travel_plan = yes } } } @@ -7939,6 +8446,13 @@ pilgrimage.6004 = { character = scope:friend animation = shock } + trigger = { + scope:friend = { is_alive = yes } + } + on_trigger_fail = { + remove_character_flag = in_pilgrimage_event_chain + current_travel_plan = { resume_travel_plan = yes } + } immediate = { play_music_cue = "mx_cue_in_taberna_instrumental" random_list = { @@ -7996,7 +8510,6 @@ pilgrimage.6004 = { option = { name = pilgrimage.6004.b custom_tooltip = pilgrimage.6003.b.tt - current_travel_plan = { resume_travel_plan = yes } } after = { trigger_event = { @@ -8032,6 +8545,13 @@ pilgrimage.6005 = { character = scope:friend animation = paranoia } + trigger = { + scope:friend = { is_alive = yes } + } + on_trigger_fail = { + remove_character_flag = in_pilgrimage_event_chain + current_travel_plan = { resume_travel_plan = yes } + } immediate = { random_list = { 3 = { @@ -8171,6 +8691,9 @@ pilgrimage.6006 = { target = scope:friend } } + stress_and_fulfillment_impact = { + cynical = minor_stress_impact_loss + } } after = { current_travel_plan = { resume_travel_plan = yes } @@ -8201,6 +8724,7 @@ pilgrimage.6007 = { location = root.location template = priest_character_template faith = root.faith + rite = root.rite culture = root.culture gender_female_chance = root_faith_clergy_gender_female_chance save_scope_as = 6007_healer @@ -8332,7 +8856,7 @@ pilgrimage.6007 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_loss zealous = medium_stress_impact_loss cynical = major_stress_impact_gain @@ -8349,7 +8873,7 @@ pilgrimage.6007 = { option = { name = pilgrimage.6007.b add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { trusting = medium_stress_impact_gain zealous = major_stress_impact_gain cynical = minor_stress_impact_loss @@ -8410,7 +8934,7 @@ pilgrimage.3101 = { name = pilgrimage.3101.a pious_type_option_effect = yes add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_gain # Stress Loss (minimal) zealous = medium_stress_loss @@ -8447,7 +8971,7 @@ pilgrimage.3101 = { name = pilgrimage.3101.b worldly_type_option_effect = yes add_piety = medium_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { # Stress Gain (major for some traits) zealous = major_stress_gain honest = medium_stress_gain @@ -8494,8 +9018,42 @@ pilgrimage.3101 = { # pilgrimage.4002 - The Mystic you met on your journey is there! # pilgrimage.4010 - Obligatory Pilgrimage - Skip Destination Events # pilgrimage.4020 - Bury old host at Destination +# pilgrimage.4100 - Wanna buy a Pilgrimage Badge? # +scripted_effect check_for_pilgrimage_badge_event_effect = { + #Santiago doesn't have it's own destination event so checking here first + if = { + limit = { + location.barony != title:b_santiago + } + if = { + limit = { + NOT = { + any_character_artifact = { var:pilgrim_badge_location ?= root.location } + } + } + trigger_event = { + id = pilgrimage.4100 + days = 1 + } + } + } + else = { + if = { + limit = { + NOT = { + any_character_artifact = { has_variable = is_santiago_pilgrim_badge } + } + } + trigger_event = { + id = pilgrimage.4100 + days = 1 + } + } + } +} + #Generic Destination # by Petter Vilberg pilgrimage.4001 = { @@ -8541,6 +9099,9 @@ pilgrimage.4001 = { give_pilgrim_trait_or_xp_effect = yes pilgrimage_arrival_stress_loss_effect = yes } + after = { + check_for_pilgrimage_badge_event_effect = yes + } } #The Mystic you met on your journey is there! @@ -8636,6 +9197,7 @@ pilgrimage.4002 = { after = { give_pilgrim_trait_or_xp_effect = yes pilgrimage_arrival_stress_loss_effect = yes + check_for_pilgrimage_badge_event_effect = yes } } @@ -8680,7 +9242,7 @@ pilgrimage.4010 = { } has_trait = zealous } - stress_impact = { + stress_and_fulfillment_impact = { impatient = medium_stress_impact_gain zealous = minor_stress_impact_loss patient = minor_stress_impact_loss @@ -8706,19 +9268,22 @@ pilgrimage.4010 = { } has_trait = zealous } - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain impatient = medium_stress_impact_loss lazy = minor_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { impatient = medium_stress_impact_loss lazy = minor_stress_impact_gain } } } + after = { + check_for_pilgrimage_badge_event_effect = yes + } } #Bury old host at Destination @@ -8802,6 +9367,7 @@ pilgrimage.4020 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = burial_bishop } set_variable = created_burial_bishop_var @@ -8858,6 +9424,197 @@ pilgrimage.4020 = { name = pilgrimage_burial_location value = root.location } + check_for_pilgrimage_badge_event_effect = yes + } +} + +scripted_trigger pilgrim_wares_vendor_trigger = { + age = { 20 40 } + is_lowborn = yes + stewardship = { + min_template_decent_skill + max_template_decent_skill + } + OR = { + has_trait = education_stewardship_2 + has_trait = education_stewardship_3 + has_trait = education_stewardship_4 + has_trait = education_stewardship_5 + } +} + +scripted_effect pilgrim_find_vendor_effect = { + random_pool_character = { + province = root.location + limit = { pilgrim_wares_vendor_trigger = yes } + save_scope_as = pilgrim_vendor + } + if = { + limit = { + NOT = { exists = scope:pilgrim_vendor } + } + create_character = { + location = root.location + random_traits_list = { + count = 1 + education_stewardship_1 = {} + education_stewardship_2 = {} + education_stewardship_3 = {} + education_stewardship_4 = {} + } + random_traits = yes + dynasty = none + faith = root.location.county.faith + rite = root.location.county.rite + culture = root.location.county.culture + gender_female_chance = 50 + stewardship = { + min_template_decent_skill + max_template_decent_skill + } + save_scope_as = pilgrim_vendor + } + scope:pilgrim_vendor = { add_character_flag = created_merchant } + } +} + +scripted_effect clean_up_pilgrim_vendor_effect = { + scope:pilgrim_vendor = { + if = { + limit = { has_character_flag = created_merchant } + if = { + limit = { + root = { is_ai = yes } + } + silent_disappearance_effect = yes + } + } + } +} + +#Wanna buy a Pilgrimage Badge? +pilgrimage.4100 = { + type = activity_event + title = pilgrimage.4100.t + desc = pilgrimage.4100.desc + theme = pilgrimage_destination + override_background = { reference = market } + left_portrait = { + character = root + animation = interested + } + center_portrait = { + character = scope:pilgrim_bystander + animation = betting + } + right_portrait = { + character = scope:pilgrim_vendor + animation = personality_content + } + artifact = { + target = scope:badge_to_buy + position = lower_right_portrait + trigger = { exists = scope:badge_to_buy } + } + immediate = { + #Find a bystander + random_pool_character = { + province = root.location + limit = { + is_adult = yes + is_ai = yes + NOT = { this = root } + } + save_scope_as = pilgrim_bystander + } + if = { + limit = { + NOT = { exists = scope:pilgrim_bystander } + } + create_character = { + location = root.location + random_traits = yes + dynasty = none + faith = root.location.county.faith + rite = root.location.county.rite + culture = root.location.county.culture + gender_female_chance = 50 + save_scope_as = pilgrim_bystander + } + scope:pilgrim_bystander = { add_character_flag = created_bystander } + } + #Find merchant + pilgrim_find_vendor_effect = yes + #Set up the badge + hidden_effect_new_object = { + create_artifact_badge_effect = { RECEIVER = scope:pilgrim_vendor } + scope:created_pilgrim_badge ?= { save_scope_as = badge_to_buy } + } + } + #One badge, please + option = { + name = pilgrimage.4100.a + pay_short_term_gold = { + target = scope:pilgrim_vendor + gold = { + value = minor_gold_value + if = { + limit = { + exists = scope:badge_to_buy + scope:badge_to_buy = { rarity = illustrious } + } + multiply = 1.25 + } + } + } + involved_activity ?= { + add_activity_log_entry = { + key = pilgrimage_badge_log + tags = { good } + score = 50 + character = root + show_in_conclusion = yes + + #Effects + root = { + scope:badge_to_buy ?= { + set_owner = { + target = root + history = { + location = root.location + actor = scope:pilgrim_vendor + recipient = root + type = purchased + } + } + } + } + } + } + ai_chance = { + base = 100 + modifier = { + short_term_gold < minor_gold_value + factor = 0 + } + } + } + #No thanks + option = { + name = pilgrimage.4100.b + stress_impact = { + greedy = minor_stress_impact_loss + } + ai_chance = { base = 50 } + } + after = { + clean_up_pilgrim_vendor_effect = yes + scope:pilgrim_bystander = { + if = { + limit = { has_character_flag = created_bystander } + silent_disappearance_effect = yes + } + } } } @@ -8943,6 +9700,20 @@ pilgrimage.5001 = { give_pilgrim_trait_or_xp_effect = yes pilgrimage_arrival_stress_loss_effect = yes } + #Wanna buy a _ROME_ pilgrimage badge? + after = { + if = { + limit = { + NOT = { + any_character_artifact = { has_variable = is_rome_pilgrim_badge } + } + } + trigger_event = { + id = pilgrimage.4100 + days = 1 + } + } + } } #Jerusalem @@ -8991,6 +9762,20 @@ pilgrimage.5011 = { give_pilgrim_trait_or_xp_effect = yes pilgrimage_arrival_stress_loss_effect = yes } + #Wanna buy a _JERUSALEM_ pilgrimage badge? + after = { + if = { + limit = { + NOT = { + any_character_artifact = { has_variable = is_jerusalem_pilgrim_badge } + } + } + trigger_event = { + id = pilgrimage.4100 + days = 1 + } + } + } } #Constantinople @@ -9785,7 +10570,7 @@ pilgrimage.6500 = { opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss sadistic = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -9813,7 +10598,7 @@ pilgrimage.6500 = { name = pilgrimage.6500.b pious_type_option_effect = yes add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain } ai_chance = { @@ -9828,7 +10613,7 @@ pilgrimage.6500 = { option = { name = pilgrimage.6500.c trigger = { has_trait = cynical } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss } scope:pilgrimage_member = { @@ -9885,17 +10670,17 @@ pilgrimage.6510 = { add_piety = minor_piety_gain if = { limit = { - NOT = { has_trait = scholar } + NOT = { has_trait = erudite } } random = { chance = 5 - add_trait = scholar + add_trait = erudite } } } } } - stress_impact = { zealous = miniscule_stress_impact_loss } + stress_and_fulfillment_impact = { zealous = miniscule_stress_impact_loss } ai_chance = { base = 200 } @@ -9918,7 +10703,7 @@ pilgrimage.6510 = { add = 10 } modifier = { - has_trait = scholar + has_trait = erudite add = 10 } modifier = { @@ -9954,7 +10739,7 @@ pilgrimage.6510 = { left_icon = root title = pilgrimage.6510.b_failure.t desc = pilgrimage.6510.b_failure.desc - stress_impact = { base = miniscule_stress_impact_gain } + stress_and_fulfillment_impact = { base = miniscule_stress_impact_gain } } } } @@ -9979,7 +10764,7 @@ pilgrimage.6510 = { #Psh who cares option = { name = pilgrimage.6510.c - stress_impact = { + stress_and_fulfillment_impact = { lazy = miniscule_stress_impact_loss shy = miniscule_stress_impact_loss } @@ -10116,7 +10901,7 @@ pilgrimage.6520 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_loss forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain @@ -10139,7 +10924,7 @@ pilgrimage.6520 = { name = pilgrimage.6520.b pious_type_option_effect = yes add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { zealous = miniscule_stress_impact_gain } ai_chance = { @@ -10159,7 +10944,7 @@ pilgrimage.6520 = { modifier = humored_opinion opinion = 10 } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain cynical = minor_stress_impact_loss lazy = minor_stress_impact_loss @@ -10221,7 +11006,7 @@ scripted_effect 6532_negative_outcome = { #Effects root = { remove_short_term_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain } } @@ -10332,6 +11117,7 @@ pilgrimage.6530 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite save_scope_as = local_guide } } @@ -10345,6 +11131,7 @@ pilgrimage.6530 = { random_traits = yes culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite gender_female_chance = 50 save_scope_as = local_guide } @@ -10487,7 +11274,7 @@ pilgrimage.6530 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain craven = minor_stress_impact_gain } @@ -10527,10 +11314,10 @@ pilgrimage.6530 = { #Some tasty virtue piety if = { limit = { - faith = { + rite = { OR = { - trait_is_virtue = forgiving - trait_is_virtue = compassionate + trait_is_virtue_rite = forgiving + trait_is_virtue_rite = compassionate } } } @@ -10539,13 +11326,13 @@ pilgrimage.6530 = { } else = { add_piety = miniscule_piety_gain - stress_impact = { base = minor_stress_loss } + stress_and_fulfillment_impact = { base = minor_stress_loss } } add_character_modifier = { modifier = pilgrimage_forgiving_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_loss compassionate = minor_stress_impact_loss } @@ -10568,7 +11355,7 @@ pilgrimage.6530 = { #Some tasty virtue piety if = { limit = { - faith = { trait_is_virtue = greedy } + rite = { trait_is_virtue_rite = greedy } } pious_type_option_effect = yes add_piety = minor_piety_gain @@ -10584,7 +11371,7 @@ pilgrimage.6530 = { opinion = low_negative_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss } ai_chance = { @@ -10606,12 +11393,12 @@ pilgrimage.6530 = { #Some tasty virtue piety if = { limit = { - faith = { + rite = { OR = { - trait_is_virtue = wrathful - trait_is_virtue = irritable - trait_is_virtue = sadistic - trait_is_virtue = flagellant + trait_is_virtue_rite = wrathful + trait_is_virtue_rite = irritable + trait_is_virtue_rite = sadistic + trait_is_virtue_rite = flagellant } } } @@ -10627,7 +11414,7 @@ pilgrimage.6530 = { opinion = low_negative_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss flagellant = medium_stress_impact_loss } @@ -10655,7 +11442,7 @@ pilgrimage.6530 = { } scope:local_guide = { has_character_flag = fishy_guide } } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_gain irritable = minor_stress_impact_gain } @@ -10812,6 +11599,7 @@ pilgrimage.6532 = { location = root.location culture = root.location.county.culture faith = root.location.county.faith + rite = root.location.county.rite gender_female_chance = scope_value_target_soldier_female_chance prowess = { medium_skill_rating high_skill_rating } save_scope_as = 6532_local_bandit @@ -11050,10 +11838,10 @@ pilgrimage.6533 = { root = { if = { limit = { - faith = { + rite = { OR = { - trait_is_virtue = forgiving - trait_is_virtue = compassionate + trait_is_virtue_rite = forgiving + trait_is_virtue_rite = compassionate } } } @@ -11072,7 +11860,7 @@ pilgrimage.6533 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = major_stress_impact_loss compassionate = medium_stress_impact_loss vengeful = minor_stress_impact_gain @@ -11099,7 +11887,7 @@ pilgrimage.6533 = { option = { name = pilgrimage.6533.b flavor = pilgrimage.6533.b.flavor - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain vengeful = major_stress_impact_loss @@ -11163,21 +11951,6 @@ pilgrimage.6535 = { } } -scripted_trigger 6540_wares_vendor_trigger = { - age = { 20 40 } - is_lowborn = yes - stewardship = { - min_template_decent_skill - max_template_decent_skill - } - OR = { - has_trait = education_stewardship_2 - has_trait = education_stewardship_3 - has_trait = education_stewardship_4 - has_trait = education_stewardship_5 - } -} - #Find some exotic wares #by Filippa Gannholm Kirsten pilgrimage.6540 = { @@ -11187,6 +11960,10 @@ pilgrimage.6540 = { theme = pilgrimage_destination override_background = { reference = market } center_portrait = { + character = scope:pilgrim_vendor + animation = betting + } + right_portrait = { character = root triggered_animation = { trigger = { @@ -11194,11 +11971,7 @@ pilgrimage.6540 = { } animation = disapproval } - animation = betting - } - right_portrait = { - character = scope:6540_vendor - animation = storyteller + animation = thinking } cooldown = { years = 10 } trigger = { @@ -11218,42 +11991,7 @@ pilgrimage.6540 = { } } immediate = { - if = { - limit = { - any_pool_character = { - province = root.location - 6540_wares_vendor_trigger = yes - } - } - random_pool_character = { - province = root.location - limit = { 6540_wares_vendor_trigger = yes } - save_scope_as = 6540_vendor - } - } - else = { - create_character = { - location = root.location - random_traits_list = { - count = 1 - education_stewardship_1 = {} - education_stewardship_2 = {} - education_stewardship_3 = {} - education_stewardship_4 = {} - } - random_traits = yes - dynasty = none - faith = root.location.county.faith - culture = root.location.county.culture - gender_female_chance = 50 - stewardship = { - min_template_decent_skill - max_template_decent_skill - } - save_scope_as = 6540_vendor - } - scope:6540_vendor = { add_character_flag = created_merchant } - } + pilgrim_find_vendor_effect = yes } #Buy the goods option = { @@ -11262,7 +12000,7 @@ pilgrimage.6540 = { worldly_type_option_effect = yes custom_tooltip = pilgrimage.6540.a.tt pay_short_term_gold = { - target = scope:6540_vendor + target = scope:pilgrim_vendor gold = minor_gold_value } involved_activity = { @@ -11284,7 +12022,7 @@ pilgrimage.6540 = { name = 6540_exotic_wares_cost value = minor_gold_value } - stress_impact = { zealous = minor_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain } } #High stewardship; better goods! option = { @@ -11294,7 +12032,7 @@ pilgrimage.6540 = { worldly_type_option_effect = yes custom_tooltip = pilgrimage.6540.a.tt pay_short_term_gold = { - target = scope:6540_vendor + target = scope:pilgrim_vendor gold = medium_gold_value } involved_activity = { @@ -11316,20 +12054,20 @@ pilgrimage.6540 = { name = 6540_exotic_wares_cost value = medium_gold_value } - stress_impact = { zealous = minor_stress_impact_gain } + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain } } #Pass option = { name = pilgrimage.6540.c if = { limit = { - faith = { - NOT = { trait_is_virtue = greedy } + rite = { + NOT = { trait_is_virtue_rite = greedy } } } pious_type_option_effect = yes } - stress_impact = { zealous = minor_stress_impact_loss } + stress_and_fulfillment_impact = { zealous = minor_stress_impact_loss } } after = { if = { @@ -11344,17 +12082,7 @@ pilgrimage.6540 = { value = root.location } } - scope:6540_vendor = { - if = { - limit = { has_character_flag = created_merchant } - if = { - limit = { - root = { is_ai = yes } - } - silent_disappearance_effect = yes - } - } - } + clean_up_pilgrim_vendor_effect = yes } } @@ -11536,7 +12264,7 @@ pilgrimage.6750 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain zealous = major_stress_impact_loss } @@ -11554,7 +12282,7 @@ pilgrimage.6750 = { option = { name = pilgrimage.6750.b worldly_type_option_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss zealous = massive_stress_impact_gain } @@ -11608,16 +12336,12 @@ pilgrimage.6760 = { OR = { NOR = { faith = faith:orthodox - religion = religion:catholic_religion + faith = faith:catholic } any_secret = { type = secret_non_believer } } location.county.holder.cp:councillor_court_chaplain ?= { - OR = { - faith.religion = religion:eastern_orthodox_religion - faith.religion = religion:catholic_religion - faith.religion = religion:protestant_religion - } + faith.religion ?= religion:christianity_religion OR = { NOR = { faith = faith:orthodox @@ -11654,9 +12378,9 @@ pilgrimage.6760 = { limit = { NOR = { faith = faith:orthodox - faith.religion = religion:catholic_religion + faith = faith:catholic } - OR = { faith.religion = religion:protestant_religion faith.religion = religion:eastern_orthodox_religion } + faith.religion ?= religion:christianity_religion } add = 100 } @@ -11697,7 +12421,7 @@ pilgrimage.6760 = { opinion = -50 } } - stress_impact = { + stress_and_fulfillment_impact = { calm = minor_stress_impact_gain gregarious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -11795,7 +12519,7 @@ pilgrimage.6760 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { calm = minor_stress_impact_gain gregarious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -11829,7 +12553,7 @@ pilgrimage.6760 = { reason = friend_theological_debate } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss zealous = major_stress_impact_gain } @@ -11937,6 +12661,7 @@ pilgrimage.6770 = { location = root.location culture = root.location.culture faith = root.faith #We are interested in relics we can use + rite = root.rite save_scope_as = relic_merchant } set_variable = created_random_merchant_var @@ -11963,7 +12688,7 @@ pilgrimage.6770 = { create_artifact_pedestal_reliquary_fracture_effect = { OWNER = scope:relic_merchant } } else = { - create_artifact_sculpture_religious_effect = { OWNER = scope:relic_merchant } + create_artifact_sculpture_religious_effect = { OWNER = scope:relic_merchant CREATOR = scope:relic_merchant } } scope:newly_created_artifact = { save_scope_as = merchant_relic @@ -12006,7 +12731,7 @@ pilgrimage.6770 = { max = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain } @@ -12083,7 +12808,7 @@ pilgrimage.6770 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -12105,7 +12830,7 @@ pilgrimage.6770 = { #Nah option = { name = pilgrimage.6770.c - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain } ai_chance = { @@ -12128,7 +12853,7 @@ pilgrimage.6770 = { else = { add_character_modifier = keen_eye_modifier } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss zealous = medium_stress_impact_gain } @@ -12186,7 +12911,7 @@ pilgrimage.6780 = { location = root.location is_physically_able_adult = yes is_available = yes - is_landed = no + is_ruler = no } any_courtier_or_guest = { is_physically_able_adult = yes @@ -12205,7 +12930,7 @@ pilgrimage.6780 = { location = root.location is_physically_able_adult = yes is_available = yes - is_landed = no + is_ruler = no } } } @@ -12215,7 +12940,7 @@ pilgrimage.6780 = { location = root.location is_physically_able_adult = yes is_available = yes - is_landed = no + is_ruler = no } save_scope_as = stolen_courtier } @@ -12321,7 +13046,7 @@ pilgrimage.6780 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain loyal = medium_stress_impact_gain } @@ -12396,7 +13121,7 @@ pilgrimage.6780 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain honest = minor_stress_impact_gain @@ -12425,7 +13150,7 @@ pilgrimage.6780 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = minor_stress_impact_gain deceitful = minor_stress_impact_gain disloyal = minor_stress_impact_gain @@ -12510,6 +13235,7 @@ pilgrimage.6790 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite save_scope_as = spiritual_mentor after_creation = { add_character_flag = mystic_beard_var @@ -12537,7 +13263,7 @@ pilgrimage.6790 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = massive_stress_impact_gain #you are losing a part of yourself fickle = medium_stress_impact_loss zealous = minor_stress_impact_loss @@ -12548,7 +13274,7 @@ pilgrimage.6790 = { name = pilgrimage.6790.b pious_type_option_effect = yes add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain } ai_chance = { @@ -12565,7 +13291,7 @@ pilgrimage.6790 = { name = pilgrimage.6790.c worldly_type_option_effect = yes add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain } ai_chance = { @@ -12596,6 +13322,16 @@ scripted_trigger pilgrimage_6800_valid_member = { has_trait = devoted is_courtier_of = $NEW_COURT_OWNER$ } + trigger_if = { + limit = { + is_married = yes + OR = { + rite = { rite_has_parameter = divorce_disallowed } + culture = { has_cultural_parameter = cannot_divorce } + } + } + always = no + } } scripted_effect pilgrimage_6800_friend_effect = { @@ -12655,7 +13391,20 @@ scripted_effect pilgrimage_6800_monk_effect = { NOT = { is_courtier_of = scope:holy_site_owner } } } - scope:holy_site_owner = { add_courtier = scope:called_member } + scope:holy_site_owner = { + if = { + limit = { is_ai = no } + send_interface_toast = { + type = event_toast_effect_good + title = pilgrimage.6800.monk_joins_court_toast + left_icon = scope:called_member + add_courtier = scope:called_member + } + } + else = { + add_courtier = scope:called_member + } + } } } @@ -12772,7 +13521,7 @@ pilgrimage.6800 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain vengeful = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -12804,7 +13553,7 @@ pilgrimage.6800 = { add_character_flag = need_priest_outfit every_spouse = { divorce = prev } #scope:called_member } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain compassionate = minor_stress_impact_gain } @@ -12824,7 +13573,7 @@ pilgrimage.6800 = { name = pilgrimage.6800.c worldly_type_option_effect = yes pilgrimage_6800_rival_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain zealous = medium_stress_impact_gain } @@ -12848,7 +13597,7 @@ pilgrimage.6800 = { name = pilgrimage.6800.d trigger = { has_trait = paranoid } pilgrimage_6800_rival_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss #you caught them zealous = medium_stress_impact_gain } @@ -12915,7 +13664,7 @@ pilgrimage.6800 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { avaricious = major_stress_impact_gain greedy = major_stress_impact_gain } @@ -13063,14 +13812,14 @@ pilgrimage.6810 = { pilgrimage_6810_friend_effect = yes if = { limit = { - faith = { trait_is_virtue = greedy } + rite = { trait_is_virtue_rite = greedy } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_loss } } else = { - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain just = medium_stress_impact_gain } @@ -13110,15 +13859,15 @@ pilgrimage.6810 = { scope:my_heir = { pilgrimage_6810_friend_effect = yes } if = { limit = { - faith = { trait_is_virtue = greedy } + rite = { trait_is_virtue_rite = greedy } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_loss generous = medium_stress_impact_loss } } else = { - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain just = medium_stress_impact_gain generous = medium_stress_impact_loss @@ -13162,7 +13911,7 @@ pilgrimage.6810 = { limit = { has_lifestyle = diplomacy_lifestyle } add_diplomacy_lifestyle_xp = minor_lifestyle_experience } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_loss deceitful = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -13235,6 +13984,7 @@ pilgrimage.6820 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite save_scope_as = guide_merchant } set_variable = guide_merchant_var @@ -13308,7 +14058,7 @@ pilgrimage.6820 = { current_travel_plan ?= { add_travel_plan_modifier = { modifier = pilgrim_guide_modifier } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -13355,7 +14105,7 @@ pilgrimage.6820 = { modifier = pilgrim_guide_modifier } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain } hidden_effect = { destroy_artifact = scope:guide_scope } # Destroy the trinket if its not bought @@ -13393,6 +14143,15 @@ pilgrimage.6820 = { } } +#Let's avoid noobtraps +scripted_trigger is_important_artifact_trigger = { + OR = { + has_variable = banner_house + has_variable = historical_unique_artifact + is_unique = yes + } +} + #Admire the holy site in a religious way #by Veronica Pazos pilgrimage.6830 = { @@ -13425,61 +14184,32 @@ pilgrimage.6830 = { NOT = { religion = religion:tengrism_religion } } immediate = { - if = { + random_character_artifact = { limit = { - any_character_artifact = { - is_equipped = no - artifact_durability < 50 - NOR = { - rarity = illustrious - rarity = famed - } + is_important_artifact_trigger = no + NOR = { + rarity = illustrious + rarity = famed } + artifact_durability < 50 + is_equipped = no } - random_character_artifact = { - limit = { - is_equipped = no - artifact_durability < 50 - NOR = { - rarity = illustrious - rarity = famed - } + alternative_limit = { + is_important_artifact_trigger = no + NOR = { + rarity = illustrious + rarity = famed } - save_scope_as = votive_artifact + is_equipped = no } - } - else_if = { - limit = { - any_character_artifact = { - is_equipped = no - NOR = { - rarity = illustrious - rarity = famed - } - } + alternative_limit = { + is_important_artifact_trigger = no + is_equipped = no } - random_character_artifact = { - limit = { - is_equipped = no - NOR = { - rarity = illustrious - rarity = famed - } - } - save_scope_as = votive_artifact + alternative_limit = { + is_important_artifact_trigger = no } - } - else_if = { - limit = { - any_character_artifact = { is_equipped = no } - } - random_character_artifact = { - limit = { is_equipped = no } - save_scope_as = votive_artifact - } - } - else = { - random_character_artifact = { save_scope_as = votive_artifact } + save_scope_as = votive_artifact } } weight_multiplier = { @@ -13502,8 +14232,9 @@ pilgrimage.6830 = { name = pilgrimage.6830.a pious_type_option_effect = yes add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss + zealous = medium_stress_impact_loss arrogant = minor_stress_impact_gain cynical = medium_stress_impact_gain } @@ -13535,7 +14266,7 @@ pilgrimage.6830 = { add_learning_skill = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss zealous = medium_stress_impact_gain } @@ -13566,7 +14297,7 @@ pilgrimage.6830 = { value = 20 } hidden_effect = { destroy_artifact = scope:votive_artifact } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain @@ -13654,6 +14385,7 @@ pilgrimage.6840 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = blessed_bishop } set_variable = created_blessed_bishop_var @@ -13723,7 +14455,7 @@ pilgrimage.6840 = { } set_artifact_description = blessed_artifact_desc } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -13767,7 +14499,7 @@ pilgrimage.6840 = { } set_artifact_description = blessed_artifact_desc } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -13865,6 +14597,7 @@ pilgrimage.6850 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = wise_priest } } @@ -13875,6 +14608,7 @@ pilgrimage.6850 = { location = root.location culture = root.location.culture faith = root.faith + rite = root.rite save_scope_as = fake_thief } } @@ -13901,7 +14635,7 @@ pilgrimage.6850 = { modifier = light_in_shadow_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain trusting = medium_stress_impact_gain paranoid = medium_stress_impact_loss @@ -13926,7 +14660,7 @@ pilgrimage.6850 = { modifier = spymaster_eyes_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_gain paranoid = medium_stress_impact_gain lazy = medium_stress_impact_loss @@ -13954,7 +14688,7 @@ pilgrimage.6850 = { } add_intrigue_lifestyle_xp = medium_lifestyle_xp - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_gain just = medium_stress_impact_gain paranoid = medium_stress_impact_loss @@ -14250,9 +14984,9 @@ pilgrimage.7000 = { } triggered_animation = { trigger = { - OR = { - has_character_flag = low_pious_reward - has_character_flag = low_worldly_reward + has_variable = { + name = low_pious_reward + name = low_worldly_reward } } animation = worry @@ -14459,14 +15193,14 @@ pilgrimage.9001 = { animation = pondering } trigger = { - OR = { - has_variable = has_completed_pilgrimage - has_variable = pilgrimage_invalidated + has_variable = { + name = has_completed_pilgrimage + name = pilgrimage_invalidated } - NOR = { - has_variable = pilgrimage_death_turn_back - has_variable = pilgrimage_death_bury_home - has_character_flag = pilgrimage_burial_interrupted_pilgrimage + has_none_of_variables = { + name = pilgrimage_death_turn_back + name = pilgrimage_death_bury_home + name = pilgrimage_burial_interrupted_pilgrimage } } immediate = { @@ -14711,9 +15445,9 @@ pilgrimage.9010 = { OR = { has_variable = pilgrimage_death_turn_back #If we wanted to bury them at the holy site but our activity was invalidated - AND = { - has_variable = pilgrimage_death_bury_home - has_character_flag = pilgrimage_burial_interrupted_pilgrimage + has_all_variables = { + name = pilgrimage_death_bury_home + name = pilgrimage_burial_interrupted_pilgrimage } } } @@ -14774,9 +15508,9 @@ pilgrimage.9100 = { first_valid = { triggered_desc = { trigger = { - OR = { - has_variable = 6540_exotic_wares_gift - has_variable = 6540_exotic_wares_super_gift + has_variable = { + name = 6540_exotic_wares_gift + name = 6540_exotic_wares_super_gift } } desc = pilgrimage.9100.desc_has_gift @@ -14796,18 +15530,18 @@ pilgrimage.9100 = { option = { name = { trigger = { - OR = { - has_variable = 6540_exotic_wares_gift - has_variable = 6540_exotic_wares_super_gift + has_variable = { + name = 6540_exotic_wares_gift + name = 6540_exotic_wares_super_gift } } text = pilgrimage.9100.a_has_gift } name = { trigger = { - NOR = { - has_variable = 6540_exotic_wares_gift - has_variable = 6540_exotic_wares_super_gift + has_none_of_variables = { + name = 6540_exotic_wares_gift + name = 6540_exotic_wares_super_gift } } text = pilgrimage.9100.a @@ -14833,9 +15567,9 @@ pilgrimage.9100 = { option = { name = pilgrimage.9100.b trigger = { - NOR = { - has_variable = 6540_exotic_wares_gift - has_variable = 6540_exotic_wares_super_gift + has_none_of_variables = { + name = 6540_exotic_wares_gift + name = 6540_exotic_wares_super_gift } } custom_tooltip = pilgrimage.9100.b.tt diff --git a/events/activities/tour_activity/tour_grounds_events_chad.txt b/events/activities/tour_activity/tour_grounds_events_chad.txt index ba109a32b..727cd9781 100644 --- a/events/activities/tour_activity/tour_grounds_events_chad.txt +++ b/events/activities/tour_activity/tour_grounds_events_chad.txt @@ -23,7 +23,8 @@ scripted_trigger has_multiple_consorts_trigger = { any_consort = { count > 2 - is_available_ai_adult = yes + is_available_ai_adult = yes + this != root } } @@ -192,7 +193,7 @@ tour_grounds_events.6000 = { trigger_if = { limit = { NOT = { is_incestuous_trigger = yes } - trait_is_criminal_in_faith_trigger = { TRAIT = trait:incestuous FAITH = root.faith GENDER_CHARACTER = root } + trait_is_criminal_in_rite_trigger = { TRAIT = trait:incestuous RITE = root.rite GENDER_CHARACTER = root } } NOT = { is_close_or_extended_family_of = scope:stop_host_scope } } @@ -229,6 +230,9 @@ tour_grounds_events.6000 = { scope:stop_host_scope = { # if stop host has 3 consorts, we save them all. otherwise, just the one random_consort = { + limit = { + this != root + } save_scope_as = orgy_consort_1 add_character_flag = is_naked } @@ -237,16 +241,16 @@ tour_grounds_events.6000 = { random_consort = { limit = { this != scope:orgy_consort_1 + this != root } save_scope_as = orgy_consort_2 add_character_flag = is_naked } random_consort = { limit = { - NOR = { - this = scope:orgy_consort_1 - this = scope:orgy_consort_2 - } + this != scope:orgy_consort_1 + this != scope:orgy_consort_2 + this != root } save_scope_as = orgy_consort_3 add_character_flag = is_naked @@ -281,7 +285,7 @@ tour_grounds_events.6000 = { } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain temperate = medium_stress_impact_gain chaste = major_stress_impact_gain @@ -318,7 +322,7 @@ tour_grounds_events.6000 = { option = { # Refuse sexy time name = tour_grounds_events.6000.c - stress_impact = { + stress_and_fulfillment_impact = { deviant = major_stress_impact_gain lustful = major_stress_impact_gain chaste = minor_stress_impact_loss @@ -555,7 +559,7 @@ tour_grounds_events.6100 = { add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss zealous = minor_stress_impact_loss cynical = medium_stress_impact_gain @@ -605,7 +609,7 @@ tour_grounds_events.6100 = { add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss zealous = minor_stress_impact_loss cynical = medium_stress_impact_gain @@ -656,7 +660,7 @@ tour_grounds_events.6100 = { } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = major_stress_impact_gain } } @@ -751,7 +755,7 @@ tour_grounds_events.6100 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain fickle = miniscule_stress_impact_loss } @@ -1634,24 +1638,24 @@ tour_grounds_events.6200 = { location.county = { any_county_province = { OR = { - trigger_if = { - limit = { has_building_or_higher = pastures_01 } + AND = { + has_building_or_higher = pastures_01 root.capital_province = { has_building_or_higher = pastures_01 } } - trigger_if = { - limit = { has_building_or_higher = orchards_01 } + AND = { + has_building_or_higher = orchards_01 root.capital_province = { has_building_or_higher = orchards_01 } } - trigger_if = { - limit = { has_building_or_higher = cereal_fields_01 } + AND = { + has_building_or_higher = cereal_fields_01 root.capital_province = { has_building_or_higher = cereal_fields_01 } } - trigger_if = { - limit = { has_building_or_higher = hill_farms_01 } + AND = { + has_building_or_higher = hill_farms_01 root.capital_province = { has_building_or_higher = hill_farms_01 } } - trigger_if = { - limit = { has_building_or_higher = plantations_01 } + AND = { + has_building_or_higher = plantations_01 root.capital_province = { has_building_or_higher = plantations_01 } } } @@ -1732,7 +1736,7 @@ tour_grounds_events.6200 = { increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss diligent = minor_stress_impact_loss content = minor_stress_impact_gain @@ -1778,7 +1782,7 @@ tour_grounds_events.6200 = { add_stewardship_lifestyle_xp = major_lifestyle_xp } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain diligent = minor_stress_impact_loss } @@ -1821,7 +1825,7 @@ tour_grounds_events.6200 = { increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss humble = minor_stress_impact_loss calm = miniscule_stress_impact_loss @@ -1992,6 +1996,7 @@ tour_grounds_events.6202 = { template = child_thief_character culture = scope:stop_host_scope.culture faith = scope:stop_host_scope.faith + rite = scope:stop_host_scope.rite location = root.location save_scope_as = tiny_thief } @@ -2029,7 +2034,7 @@ tour_grounds_events.6202 = { } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_gain } @@ -2091,7 +2096,7 @@ tour_grounds_events.6202 = { } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain humble = minor_stress_impact_gain } @@ -2136,7 +2141,7 @@ tour_grounds_events.6202 = { increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain forgiving = medium_stress_impact_loss calm = minor_stress_impact_loss @@ -2200,7 +2205,7 @@ tour_grounds_events.6203 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain disloyal = minor_stress_impact_gain } @@ -2533,7 +2538,7 @@ tour_grounds_events.6205 = { modifier = whipped_me_opinion } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss wrathful = minor_stress_impact_loss compassionate = minor_stress_impact_gain @@ -2569,7 +2574,7 @@ tour_grounds_events.6205 = { target = scope:stop_host_scope } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain forgiving = medium_stress_impact_loss greedy = major_stress_impact_gain @@ -2767,7 +2772,7 @@ tour_grounds_events.6300 = { } } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain } @@ -2838,7 +2843,7 @@ tour_grounds_events.6300 = { } } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_loss } diff --git a/events/activities/tour_activity/tour_phase_cultural_festival.txt b/events/activities/tour_activity/tour_phase_cultural_festival.txt index 19d305c38..002457a63 100644 --- a/events/activities/tour_activity/tour_phase_cultural_festival.txt +++ b/events/activities/tour_activity/tour_phase_cultural_festival.txt @@ -517,6 +517,7 @@ cultural_festival.2001 = { gender_female_chance = 50 culture = location.culture faith = location.faith + rite = location.rite random_traits = yes dynasty = none age = { 18 50 } @@ -532,7 +533,7 @@ cultural_festival.2001 = { option = { # So unfortunate name = cultural_festival.2001.a - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain } @@ -584,7 +585,7 @@ cultural_festival.2001 = { days = { 10 15 } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain wrathful = minor_stress_impact_gain sadistic = medium_stress_impact_gain @@ -651,7 +652,7 @@ cultural_festival.2001 = { } decrease_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain compassionate = medium_stress_impact_gain just = medium_stress_impact_gain @@ -689,7 +690,6 @@ scripted_trigger cultural_festival_2002_valid_secret_owner = { is_ai = yes this != ROOT any_secret = { - exists = this NOT = { is_known_by = root } } } @@ -796,7 +796,7 @@ cultural_festival.2002 = { max = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain } @@ -815,7 +815,7 @@ cultural_festival.2002 = { option = { # I can't accept this name = cultural_festival.2002.b add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain wrathful = minor_stress_impact_gain sadistic = medium_stress_impact_gain @@ -913,7 +913,7 @@ cultural_festival.2010 = { } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes NOT = { has_variable = was_monarch_good_bad_var } OR = { AND = { @@ -1027,7 +1027,7 @@ cultural_festival.2010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss arrogant = minor_stress_impact_loss #you like this even more! humble = minor_stress_impact_gain @@ -1067,7 +1067,7 @@ cultural_festival.2010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain wrathful = minor_stress_impact_gain vengeful = minor_stress_impact_gain @@ -1172,7 +1172,7 @@ cultural_festival.2010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { content = minor_stress_impact_gain forgiving = minor_stress_impact_gain calm = medium_stress_impact_gain @@ -1284,8 +1284,8 @@ cultural_festival.2020 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes - location.culture = { NOT = { has_variable = cultural_festival_culture_var } } #you haven't seen this festival in a while + is_landed_or_landless_administrative_or_theocratic = yes + location.culture ?= { NOT = { has_variable = cultural_festival_culture_var } } #you haven't seen this festival in a while } weight_multiplier = { @@ -1344,7 +1344,7 @@ cultural_festival.2020 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_reveler = minor_stress_impact_gain drunkard = minor_stress_impact_gain stubborn = minor_stress_impact_gain @@ -1402,7 +1402,7 @@ cultural_festival.2020 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss lifestyle_reveler = minor_stress_impact_loss drunkard = minor_stress_impact_loss @@ -1457,7 +1457,7 @@ cultural_festival.2030 = { } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes location.county ?= { development_level >= bad_development_level } @@ -1502,7 +1502,7 @@ cultural_festival.2030 = { } decrease_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain generous = medium_stress_impact_gain forgiving = medium_stress_impact_gain @@ -1539,7 +1539,7 @@ cultural_festival.2030 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain greedy = medium_stress_impact_gain @@ -1582,7 +1582,7 @@ cultural_festival.2030 = { } increase_tour_success_effect = { POINTS = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain generous = medium_stress_impact_gain forgiving = medium_stress_impact_gain @@ -1634,19 +1634,16 @@ cultural_festival.2040 = { } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_in_activity_trigger = yes location.county.culture != root.culture #this is not your culture exists = root.capital_county - location = { - county = { - culture != root.capital_county.culture #this is not the capital's culture - } - } + location.county.culture != root.capital_county.culture #this is not the capital's culture } immediate = { location.county.culture = { save_scope_as = festival_culture_scope } + location = { select_root_vegetable_effect = yes } } weight_multiplier = { @@ -1701,7 +1698,7 @@ cultural_festival.2040 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain gregarious = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -1752,7 +1749,7 @@ cultural_festival.2040 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain callous = minor_stress_impact_gain arrogant = medium_stress_impact_gain @@ -1837,7 +1834,7 @@ cultural_festival.2040 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain temperate = minor_stress_impact_gain shy = medium_stress_impact_gain @@ -1873,26 +1870,28 @@ scripted_trigger cultural_festival_2050_scandalous_trigger = { has_trait = celibate } OR = { - faith = { #there are many ways you can be scandalous + rite = { #there are many ways you can be scandalous + rite_has_parameter = naked_adherents_active + } + rite = { OR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = deviancy_accepted - NOT = { trait_is_sin = lustful } - trait_is_sin = chaste - trait_is_sin = celibate + NOT = { trait_is_sin_rite = lustful } + trait_is_sin_rite = chaste + trait_is_sin_rite = celibate } } + rite = { rite_has_parameter = deviancy_accepted } } } scripted_trigger cultural_festival_2050_modest_trigger = { - faith = { trait_is_sin = lustful } #this is a sin + rite = { trait_is_sin_rite = lustful } #this is a sin OR = { culture = { has_cultural_tradition = tradition_modest } #you can just be modest - faith = { #or you don't have these tenets - NOR = { -# has_doctrine_parameter = naked_adherents_active - has_doctrine_parameter = deviancy_accepted + AND = { + rite = { #or you don't have these tenets + NOT = { rite_has_parameter = naked_adherents_active } + NOT = { rite_has_parameter = deviancy_accepted } } } } @@ -1939,7 +1938,7 @@ cultural_festival.2050 = { } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_in_activity_trigger = yes location != root.capital_county.title_province #this is not happening in your capital scope:stop_host_scope = { @@ -1990,7 +1989,7 @@ cultural_festival.2050 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { lustful = minor_stress_impact_gain deviant = minor_stress_impact_gain } @@ -2045,7 +2044,7 @@ cultural_festival.2050 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain chaste = medium_stress_impact_gain celibate = medium_stress_impact_gain @@ -2107,7 +2106,7 @@ cultural_festival.2050 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain zealous = medium_stress_impact_gain chaste = major_stress_impact_gain @@ -2180,7 +2179,7 @@ cultural_festival.2060 = { } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes location.county ?= { development_level <= bad_development_level } @@ -2328,7 +2327,7 @@ cultural_festival.2060 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain greedy = medium_stress_impact_gain avaricious = medium_stress_impact_gain @@ -2366,7 +2365,7 @@ cultural_festival.2060 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain gregarious = minor_stress_impact_gain generous = medium_stress_impact_gain @@ -2402,7 +2401,7 @@ cultural_festival.2060 = { change_inspiration_progress = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain greedy = medium_stress_impact_gain avaricious = medium_stress_impact_gain @@ -2505,6 +2504,7 @@ cultural_festival.2070 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite gender_female_chance = root_soldier_female_chance dynasty = none save_scope_as = retired_mercenary @@ -2541,7 +2541,7 @@ cultural_festival.2070 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { drunkard = minor_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -2598,7 +2598,7 @@ cultural_festival.2070 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { drunkard = minor_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -2673,7 +2673,7 @@ cultural_festival.2070 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { drunkard = minor_stress_impact_gain gregarious = minor_stress_impact_gain honest = medium_stress_impact_gain @@ -2697,7 +2697,7 @@ cultural_festival.2070 = { modifier = festival_drank_with_mercenaries years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { temperate = medium_stress_impact_gain } ai_chance = { @@ -2719,7 +2719,7 @@ cultural_festival.2070 = { scripted_trigger cultural_festival_2080_merchant = { is_ai = yes is_adult = yes - is_landed_or_landless_administrative = no + is_landed_or_landless_administrative_or_theocratic = no is_lowborn = yes is_councillor = no NOT = { is_courtier_of = root } @@ -2774,6 +2774,7 @@ cultural_festival.2080 = { location = root.location dynasty = none faith = root.location.faith + rite = root.location.rite culture = root.location.culture save_scope_as = mysterious_merchant } @@ -2823,7 +2824,7 @@ cultural_festival.2080 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = miniscule_stress_impact_gain avaricious = miniscule_stress_impact_gain cynical = minor_stress_impact_gain @@ -2898,7 +2899,7 @@ cultural_festival.2080 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = miniscule_stress_impact_gain avaricious = miniscule_stress_impact_gain cynical = minor_stress_impact_gain @@ -2932,7 +2933,7 @@ cultural_festival.2080 = { option = { # Leave name = cultural_festival.2080.c - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain trusting = minor_stress_impact_gain } @@ -2958,14 +2959,13 @@ cultural_festival.2080 = { scripted_trigger cultural_festival_2090_peasant = { is_ai = yes is_adult = yes - is_landed_or_landless_administrative = no + is_landed_or_landless_administrative_or_theocratic = no is_lowborn = yes is_councillor = no NOT = { is_courtier_of = root } } scripted_trigger cultural_festival_2090_faction = { - exists = yes NOT = { exists = faction_war } faction_is_type = peasant_faction faction_leader ?= { @@ -3023,7 +3023,6 @@ cultural_festival.2090 = { factor = 2 any_targeting_faction = { faction_type = peasant_faction - exists = yes NOT = { exists = faction_war } } } @@ -3050,6 +3049,7 @@ cultural_festival.2090 = { dynasty = none culture = root.location.culture faith = root.location.faith + rite = root.location.rite save_scope_as = arrested_performer } } @@ -3100,7 +3100,7 @@ cultural_festival.2090 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -3165,7 +3165,7 @@ cultural_festival.2090 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -3192,7 +3192,7 @@ cultural_festival.2090 = { years = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain } @@ -3304,7 +3304,7 @@ cultural_festival.2100 = { location.county = { change_development_progress = medium_development_progress_gain } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain ambitious = minor_stress_impact_gain @@ -3329,7 +3329,7 @@ cultural_festival.2100 = { modifier = discounted_guild_holding_build_cost_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -3383,7 +3383,7 @@ cultural_festival.2100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain } @@ -3497,7 +3497,7 @@ cultural_festival.2110 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain ambitious = minor_stress_impact_gain @@ -3540,7 +3540,7 @@ cultural_festival.2110 = { scope:my_heir = { start_dog_story_cycle_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain avaricious = minor_stress_impact_gain cynical = minor_stress_impact_gain @@ -3564,7 +3564,7 @@ cultural_festival.2110 = { has_activity_intent = reduce_stress_intent } reason = activity_intent - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss #your reward callous = minor_stress_impact_gain } @@ -3610,7 +3610,7 @@ cultural_festival.2110 = { chance = 10 increase_wounds_effect = { REASON = wild_animal } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss #your reward } ai_chance = { @@ -3628,7 +3628,7 @@ cultural_festival.2110 = { option = { # Ignore name = cultural_festival.2110.e add_prestige = miniscule_prestige_gain #you maintain your composure - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain } ai_chance = { @@ -3673,7 +3673,7 @@ cultural_festival.3000 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_in_activity_trigger = yes scope:visiting_liege = { can_receieve_good_available_compliment_trigger = yes @@ -3692,8 +3692,8 @@ cultural_festival.3000 = { name = cultural_festival.3000.a custom_tooltip = cultural_festival.3000.a.tt remove_treasury_or_gold = medium_treasury_or_gold_value - trigger_event = { id = cultural_festival.3001 days = 3 } - stress_impact = { + trigger_event = { id = cultural_festival.3001 days = 1 } + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } ai_chance = { @@ -3710,7 +3710,7 @@ cultural_festival.3000 = { option = { # Not really name = cultural_festival.3000.b - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -3752,6 +3752,7 @@ cultural_festival.3001 = { location = root.location random_traits = yes faith = location.faith + rite = location.rite culture = location.culture dynasty = none gender_female_chance = { @@ -3931,7 +3932,7 @@ cultural_festival.3001 = { years = 5 } scope:visiting_liege = { set_variable = buffoon_costume_var } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -3956,7 +3957,7 @@ cultural_festival.3001 = { after = { clear_available_compliments_effect = yes - scope:visiting_liege = { trigger_event = { id = cultural_festival.3002 days = 3 } } + scope:visiting_liege = { trigger_event = { id = cultural_festival.3002 } } } } @@ -4097,7 +4098,7 @@ cultural_festival.3002 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain paranoid = minor_stress_impact_gain } @@ -4132,7 +4133,7 @@ cultural_festival.3002 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } ai_chance = { @@ -4169,7 +4170,7 @@ cultural_festival.3002 = { years = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -4200,7 +4201,7 @@ cultural_festival.3002 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain humble = minor_stress_impact_gain } @@ -4244,7 +4245,7 @@ cultural_festival.3002 = { cultural_festival.3002.add_hook = yes if = { limit = { has_variable = buffoon_costume_var } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_gain wrathful = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -4252,7 +4253,7 @@ cultural_festival.3002 = { } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss arrogant = minor_stress_impact_gain #you actually care about this stuff gregarious = minor_stress_impact_gain #you also care @@ -4297,7 +4298,7 @@ cultural_festival.3010 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_in_activity_trigger = yes scope:visiting_liege = { drinks_alcohol_trigger = yes #you heard that they like this @@ -4390,7 +4391,7 @@ cultural_festival.3010 = { years = 5 } set_variable = alcohol_fountain_var - trigger_event = { id = cultural_festival.3011 days = 3 } + trigger_event = { id = cultural_festival.3011 } } if = { limit = { @@ -4399,7 +4400,7 @@ cultural_festival.3010 = { } add_stress = medium_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain temperate = minor_stress_impact_gain } @@ -4464,9 +4465,9 @@ cultural_festival.3010 = { years = 5 } set_variable = juice_fountain_var - trigger_event = { id = cultural_festival.3011 days = 3 } + trigger_event = { id = cultural_festival.3011 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain drunkard = medium_stress_impact_gain } @@ -4485,7 +4486,7 @@ cultural_festival.3010 = { option = { # Not really name = cultural_festival.3010.c - stress_impact = { + stress_and_fulfillment_impact = { avaricious = minor_stress_impact_gain #you want to climb the ladder gregarious = minor_stress_impact_gain } @@ -4555,14 +4556,14 @@ cultural_festival.3011 = { } if = { limit = { has_variable = alcohol_fountain_var } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss paranoid = minor_stress_impact_gain temperate = minor_stress_impact_gain } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss paranoid = minor_stress_impact_gain } @@ -4587,7 +4588,7 @@ cultural_festival.3011 = { } if = { limit = { has_variable = alcohol_fountain_var } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain drunkard = minor_stress_impact_gain } @@ -4630,7 +4631,7 @@ cultural_festival.3020 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes government_has_flag = government_is_feudal is_available_in_activity_trigger = yes scope:stop_host_scope = { is_ai = yes } @@ -4666,8 +4667,8 @@ cultural_festival.3020 = { option = { # I sure do! name = cultural_festival.3020.a custom_tooltip = cultural_festival.3020.a.tt - trigger_event = { id = cultural_festival.3021 days = 3 } - stress_impact = { + trigger_event = { id = cultural_festival.3021 } + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain } ai_chance = { @@ -4689,7 +4690,7 @@ cultural_festival.3020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } ai_chance = { @@ -4735,7 +4736,7 @@ cultural_festival.3021 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain compassionate = minor_stress_impact_gain generous = minor_stress_impact_gain @@ -4765,7 +4766,7 @@ cultural_festival.3021 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain compassionate = minor_stress_impact_gain generous = minor_stress_impact_gain @@ -4810,7 +4811,7 @@ cultural_festival.3021 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain compassionate = minor_stress_impact_gain brave = minor_stress_impact_gain @@ -4848,7 +4849,7 @@ cultural_festival.3021 = { scope:stop_host_scope = { set_variable = homage_friends_var } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain deceitful = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -4878,7 +4879,7 @@ cultural_festival.3021 = { after = { scope:stop_host_scope = { - trigger_event = { id = cultural_festival.3022 days = 3 } + trigger_event = { id = cultural_festival.3022 } } } } @@ -4939,10 +4940,10 @@ cultural_festival.3022 = { character = root triggered_animation = { trigger = { - OR = { - has_variable = homage_money_var - has_variable = homage_levies_var - has_variable = homage_hook_var + has_variable = { + name = homage_money_var + name = homage_levies_var + name = homage_hook_var } OR = { has_trait = vengeful @@ -4954,10 +4955,10 @@ cultural_festival.3022 = { } triggered_animation = { trigger = { - OR = { - has_variable = homage_money_var - has_variable = homage_levies_var - has_variable = homage_hook_var + has_variable = { + name = homage_money_var + name = homage_levies_var + name = homage_hook_var } } animation = stress @@ -4975,7 +4976,7 @@ cultural_festival.3022 = { custom_tooltip = cultural_festival.3022.money trigger = { has_variable = homage_money_var } cultural_festival.3022.vassal_contract_modified_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } ai_chance = { @@ -4998,7 +4999,7 @@ cultural_festival.3022 = { custom_tooltip = cultural_festival.3022.hook trigger = { has_variable = homage_hook_var } cultural_festival.3022.vassal_contract_modified_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_gain } ai_chance = { @@ -5022,7 +5023,7 @@ cultural_festival.3022 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain } ai_chance = { @@ -5062,7 +5063,7 @@ cultural_festival.3030 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes is_available_in_activity_trigger = yes } @@ -5073,6 +5074,7 @@ cultural_festival.3030 = { location = root.location dynasty = none faith = root.faith + rite = root.rite culture = root.culture save_scope_as = local_farmer } @@ -5101,8 +5103,8 @@ cultural_festival.3030 = { years = 5 } } - scope:visiting_liege = { trigger_event = { id = cultural_festival.3031 days = 3 } } - stress_impact = { + scope:visiting_liege = { trigger_event = { id = cultural_festival.3031 } } + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain callous = minor_stress_impact_gain #you think this is stupid } @@ -5121,7 +5123,7 @@ cultural_festival.3030 = { option = { # Nahhhh name = cultural_festival.3030.b remove_variable = local_farm_animal - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain } ai_chance = { @@ -5201,7 +5203,7 @@ cultural_festival.3031 = { modifier = underdog_animal_contest_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain } ai_chance = { @@ -5224,7 +5226,7 @@ cultural_festival.3031 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain } ai_chance = { @@ -5251,7 +5253,7 @@ cultural_festival.3031 = { opinion = -10 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain } ai_chance = { @@ -5273,7 +5275,7 @@ cultural_festival.3031 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = major_stress_impact_loss humble = minor_stress_impact_gain @@ -5306,7 +5308,7 @@ cultural_festival.3031 = { reason = nemesis_animal_contest target = scope:farm_animal_rival } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss vengeful = minor_stress_impact_loss callous = medium_stress_impact_loss @@ -5374,7 +5376,7 @@ cultural_festival.3040 = { cooldown = { years = 2 } trigger = { - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes exists = cp:councillor_marshal any_character_artifact = { #do you have an artifact that could be buried in a stone? OR = { @@ -5419,10 +5421,10 @@ cultural_festival.3040 = { scope:visiting_liege = { trigger_event = { id = cultural_festival.3041 - days = 3 + days = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain arrogant = minor_stress_impact_gain } @@ -5440,7 +5442,7 @@ cultural_festival.3040 = { option = { # Nahhhh name = cultural_festival.3040.b - stress_impact = { + stress_and_fulfillment_impact = { gregarious = minor_stress_impact_gain } ai_chance = { @@ -5558,12 +5560,11 @@ cultural_festival.3041 = { scope:stop_host_scope = { trigger_event = { id = cultural_festival.3042 - days = 3 } } } } - stress_impact = { + stress_and_fulfillment_impact = { weak = minor_stress_impact_gain content = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -5591,7 +5592,6 @@ cultural_festival.3041 = { scope:stop_host_scope = { #now they get a chance to take it out trigger_event = { id = cultural_festival.3042 - days = 3 } } if = { @@ -5605,7 +5605,7 @@ cultural_festival.3041 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -5733,7 +5733,7 @@ cultural_festival.3042 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { weak = minor_stress_impact_gain content = minor_stress_impact_gain humble = minor_stress_impact_gain @@ -5753,7 +5753,7 @@ cultural_festival.3042 = { option = { # Ignore it name = cultural_festival.3042.b - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -5831,7 +5831,7 @@ cultural_festival.3050 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain #this is kinda stressful to you impatient = minor_stress_impact_gain #to make it major } @@ -5867,7 +5867,7 @@ cultural_festival.3050 = { has_trait = deceitful #they know you're lying } } - scope:stop_host_scope = { trigger_event = { id = cultural_festival.3051 days = 3 } } + scope:stop_host_scope = { trigger_event = { id = cultural_festival.3051 } } } 40 = { #they don't notice modifier = { @@ -5881,7 +5881,7 @@ cultural_festival.3050 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss shy = minor_stress_impact_gain honest = minor_stress_impact_gain @@ -5942,7 +5942,7 @@ cultural_festival.3051 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain impatient = minor_stress_impact_gain } @@ -5960,7 +5960,7 @@ cultural_festival.3051 = { option = { # I kinda get it name = cultural_festival.3051.b - stress_impact = { #you get stressed + stress_and_fulfillment_impact = { #you get stressed base = minor_stress_impact_gain humble = medium_stress_impact_loss arrogant = minor_stress_impact_gain @@ -6027,6 +6027,7 @@ cultural_festival.3060 = { character = scope:stop_host_scope trigger = { #they'll only be there if you're trying to dance with their spouse exists = scope:vassal_spouse + exists = scope:my_spouse scope:stop_host_scope != scope:my_spouse } } @@ -6050,6 +6051,7 @@ cultural_festival.3060 = { scope:stop_host_scope = { #Host has a spouse in our location any_spouse = { location = root.location + is_ai = yes } } any_spouse = { #Our own spouse is in this location @@ -6067,6 +6069,7 @@ cultural_festival.3060 = { random_spouse = { limit = { location = root.location + is_ai = yes } save_scope_as = vassal_spouse } @@ -6114,7 +6117,7 @@ cultural_festival.3060 = { } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss gregarious = minor_stress_impact_loss loyal = medium_stress_impact_loss @@ -6146,6 +6149,8 @@ cultural_festival.3060 = { has_trait = celibate has_trait = chaste } + might_cheat_on_every_partner_trigger = yes + scope:vassal_spouse = { might_cheat_on_every_partner_trigger = yes } } duel = { target = scope:vassal_spouse @@ -6219,9 +6224,9 @@ cultural_festival.3060 = { increase_tour_success_effect = { POINTS = 1 } } hidden_effect = { - scope:stop_host_scope = { trigger_event = { id = cultural_festival.3061 days = 3 } } + scope:stop_host_scope = { trigger_event = { id = cultural_festival.3061 } } } - stress_impact = { + stress_and_fulfillment_impact = { lustful = minor_stress_impact_loss seducer = minor_stress_impact_loss gregarious = minor_stress_impact_loss @@ -6271,7 +6276,7 @@ cultural_festival.3060 = { } increase_tour_success_effect = { POINTS = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss lazy = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -6304,7 +6309,7 @@ cultural_festival.3060 = { } increase_tour_success_effect = { POINTS = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_loss callous = minor_stress_impact_loss gregarious = minor_stress_impact_gain @@ -6370,7 +6375,7 @@ cultural_festival.3061 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain } ai_chance = { @@ -6395,7 +6400,7 @@ cultural_festival.3061 = { opinion = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain vengeful = minor_stress_impact_gain wrathful = minor_stress_impact_gain @@ -6474,12 +6479,16 @@ cultural_festival.3070 = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } #this is a deeply Christian thing location = { any_character_in_location = { + this != root + is_travelling = no this != scope:visiting_liege num_sinful_traits >= 1 is_adult = yes save_temporary_scope_as = jester_1 } any_character_in_location = { + this != root + is_travelling = no this != scope:jester_1 this != scope:visiting_liege OR = { @@ -6533,6 +6542,7 @@ cultural_festival.3070 = { limit = { location = { any_character_in_location = { + is_travelling = no this != scope:visiting_liege has_relation_nemesis = root } @@ -6541,6 +6551,7 @@ cultural_festival.3070 = { location = { random_character_in_location = { limit = { + is_travelling = no this != scope:visiting_liege has_relation_nemesis = root } @@ -6552,6 +6563,7 @@ cultural_festival.3070 = { limit = { location = { any_character_in_location = { + is_travelling = no this != scope:visiting_liege has_relation_rival = root } @@ -6560,6 +6572,7 @@ cultural_festival.3070 = { location = { random_character_in_location = { limit = { + is_travelling = no this != scope:visiting_liege has_relation_rival = root } @@ -6571,6 +6584,7 @@ cultural_festival.3070 = { limit = { location = { any_character_in_location = { + is_travelling = no this != scope:visiting_liege has_relation_potential_rival = root } @@ -6579,6 +6593,7 @@ cultural_festival.3070 = { location = { random_character_in_location = { limit = { + is_travelling = no this != scope:visiting_liege has_relation_potential_rival = root } @@ -6590,6 +6605,8 @@ cultural_festival.3070 = { location = { random_character_in_location = { limit = { + this != root + is_travelling = no this != scope:visiting_liege root = { opinion = { @@ -6612,6 +6629,8 @@ cultural_festival.3070 = { location = { random_character_in_location = { limit = { + this != root + is_travelling = no num_sinful_traits >= 1 is_adult = yes this != scope:rival_jester @@ -6705,8 +6724,8 @@ cultural_festival.3070 = { } add_piety = minor_piety_loss cultural_festival.3070.bishop_angry_effect = yes - scope:visiting_liege = { trigger_event = { id = cultural_festival.3071 days = 3 } } - stress_impact = { + scope:visiting_liege = { trigger_event = { id = cultural_festival.3071 } } + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain compassionate = minor_stress_impact_gain zealous = medium_stress_impact_gain @@ -6774,8 +6793,8 @@ cultural_festival.3070 = { } add_piety = minor_piety_loss #bishop doesn't really care that much since they're sinful - scope:visiting_liege = { trigger_event = { id = cultural_festival.3071 days = 3 } } - stress_impact = { + scope:visiting_liege = { trigger_event = { id = cultural_festival.3071 } } + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain forgiving = medium_stress_impact_gain } @@ -6825,9 +6844,9 @@ cultural_festival.3070 = { scope:visiting_liege = { save_scope_as = final_jester set_variable = im_the_jester_var - trigger_event = { id = cultural_festival.3071 days = 3 } + trigger_event = { id = cultural_festival.3071 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain just = medium_stress_impact_gain loyal = medium_stress_impact_gain @@ -6873,7 +6892,7 @@ cultural_festival.3070 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain vengeful = medium_stress_impact_gain @@ -6982,7 +7001,7 @@ cultural_festival.3071 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss @@ -7032,7 +7051,7 @@ cultural_festival.3071 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_gain lifestyle_reveler = minor_stress_impact_gain gregarious = minor_stress_impact_gain @@ -7069,7 +7088,7 @@ cultural_festival.3071 = { CANDIDATE = scope:final_jester EMPLOYER = root } - stress_impact = { + stress_and_fulfillment_impact = { avaricious = minor_stress_impact_gain greedy = minor_stress_impact_gain zealous = medium_stress_impact_gain @@ -7118,7 +7137,7 @@ cultural_festival.3071 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss compassionate = minor_stress_impact_gain calm = minor_stress_impact_gain @@ -7145,8 +7164,9 @@ cultural_festival.3071 = { ###################### scripted_trigger unknown_language_character_trigger = { #pick someone you don't understand + location ?= { is_sea_province = no } is_physically_able_ai_adult = yes - culture = location.county.culture + location.county.culture ?= culture NOT = { knows_language_of_culture = scope:visiting_liege.culture } } @@ -7237,13 +7257,21 @@ cultural_festival.4000 = { #Liege: You end up in a conversation in a language yo template = scholar_character location = scope:stop_host_scope.location faith = location.county.faith + rite = location.county.rite culture = location.county.culture dynasty = none save_scope_as = local_translator_scope } hidden_effect = { scope:local_translator_scope = { - learn_language_of_culture = root.culture + if = { + limit = { NOT = { knows_language_of_culture = root.culture } } + learn_language_of_culture = root.culture + } + if = { + limit = { NOT = { knows_language_of_culture = scope:local_character_scope.culture } } + learn_language_of_culture = scope:local_character_scope.culture + } } } } @@ -7265,6 +7293,7 @@ cultural_festival.4000 = { #Liege: You end up in a conversation in a language yo NOT = { is_courtier_of = scope:visiting_liege } + is_travelling = no } } scope:local_translator_scope = { @@ -7277,7 +7306,7 @@ cultural_festival.4000 = { #Liege: You end up in a conversation in a language yo years = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = minor_stress_impact_loss greedy = minor_stress_impact_gain lazy = minor_stress_impact_gain @@ -7337,7 +7366,7 @@ cultural_festival.4000 = { #Liege: You end up in a conversation in a language yo } } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = medium_stress_impact_loss shy = minor_stress_impact_gain craven = minor_stress_impact_gain @@ -7355,7 +7384,7 @@ cultural_festival.4000 = { #Liege: You end up in a conversation in a language yo } option = { #go away name = cultural_festival.4000.c - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss shy = minor_stress_impact_loss craven = minor_stress_impact_loss @@ -7538,7 +7567,7 @@ cultural_festival.4100 = { #Your courtier made a cultural faux pas } } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss honest = minor_stress_impact_loss callous = minor_stress_impact_gain @@ -7577,7 +7606,7 @@ cultural_festival.4100 = { #Your courtier made a cultural faux pas opinion = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss wrathful = minor_stress_impact_loss compassionate = minor_stress_impact_gain @@ -7623,7 +7652,7 @@ cultural_festival.4100 = { #Your courtier made a cultural faux pas opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss generous = minor_stress_impact_loss greedy = minor_stress_impact_gain @@ -7691,7 +7720,7 @@ scripted_effect parade_liege_enjoyment_effect = { #rewards for liege if liege li } } if = { - limit = { scope:visiting_liege.culture != location.county.culture } + limit = { scope:visiting_liege.culture != scope:stop_host_scope.location.county.culture } scope:visiting_liege.culture = { change_cultural_acceptance = { target = scope:stop_host_scope.location.county.culture @@ -7778,7 +7807,7 @@ scripted_effect parade_end_effect = { #rewards for vassal dependent on parade ty years = 5 } } - dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } + dynasty ?= { add_dynasty_prestige = minor_dynasty_prestige_gain } if = { limit = { scope:visiting_liege = { has_character_flag = parade_liege_dissatisfaction_flag } } negative_opinion_after_parade_effect = yes @@ -7800,7 +7829,7 @@ scripted_effect parade_end_effect = { #rewards for vassal dependent on parade ty years = 5 } } - dynasty = { add_dynasty_prestige = minor_dynasty_prestige_gain } + dynasty ?= { add_dynasty_prestige = minor_dynasty_prestige_gain } } else = { scope:cultural_festival_scope = { @@ -8048,7 +8077,7 @@ cultural_festival.4200 = { #Vassal: Do a parade, pick a type name = parade_type value = flag:military_parade } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss brave = minor_stress_impact_loss craven = minor_stress_impact_gain @@ -8088,7 +8117,7 @@ cultural_festival.4200 = { #Vassal: Do a parade, pick a type name = parade_type value = flag:civil_parade } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss just = minor_stress_impact_loss arbitrary = minor_stress_impact_gain @@ -8128,7 +8157,7 @@ cultural_festival.4200 = { #Vassal: Do a parade, pick a type name = parade_type value = flag:religious_parade } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss zealous = minor_stress_impact_loss cynical = minor_stress_impact_gain @@ -8248,7 +8277,7 @@ cultural_festival.4201 = { #Vassal: Choose the quality of the parade name = liege_parade_enjoyment add = var:parade_quality } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss ambitious = minor_stress_impact_loss gluttonous = minor_stress_impact_loss @@ -8295,7 +8324,7 @@ cultural_festival.4201 = { #Vassal: Choose the quality of the parade name = liege_parade_enjoyment add = var:parade_quality } - stress_impact = { + stress_and_fulfillment_impact = { temperate = minor_stress_impact_loss } ai_chance = { @@ -8327,7 +8356,7 @@ cultural_festival.4201 = { #Vassal: Choose the quality of the parade name = liege_parade_enjoyment add = var:parade_quality } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss greedy = minor_stress_impact_loss cynical = minor_stress_impact_loss @@ -8493,7 +8522,7 @@ cultural_festival.4202 = { #Liege: Attend the parade and like it or not limit = { has_activity_intent = reduce_stress_intent } increase_tour_success_effect = { POINTS = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss gregarious = minor_stress_impact_loss } @@ -8509,7 +8538,7 @@ cultural_festival.4202 = { #Liege: Attend the parade and like it or not option = { #you don't enjoy the parade, for ai liege_parade_enjoyment var decides name = cultural_festival.4202.b parade_liege_dissatisfaction_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss callous = minor_stress_impact_loss } @@ -8596,12 +8625,12 @@ cultural_festival.4203 = { #Vassal: Summary of the parade parade_end_effect = yes if = { limit = { scope:visiting_liege = { NOT = { has_character_flag = parade_liege_dissatisfaction_flag } } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss } } else = { - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss } } @@ -8897,7 +8926,7 @@ cultural_festival.4300 = { #Vassal: Decide which gift to give trigger_event = cultural_festival.4301 } custom_tooltip = cultural_festival.4300.tt - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss greedy = minor_stress_impact_loss } @@ -8943,7 +8972,7 @@ cultural_festival.4300 = { #Vassal: Decide which gift to give trigger_event = cultural_festival.4301 } custom_tooltip = cultural_festival.4300.tt - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss greedy = minor_stress_impact_gain } @@ -8977,7 +9006,7 @@ cultural_festival.4300 = { #Vassal: Decide which gift to give trigger_event = cultural_festival.4301 } custom_tooltip = cultural_festival.4300.tt - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss generous = major_stress_impact_loss greedy = major_stress_impact_gain @@ -8997,7 +9026,7 @@ cultural_festival.4300 = { #Vassal: Decide which gift to give hidden_effect = { delete_new_artifact_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { cynical = major_stress_impact_loss generous = minor_stress_impact_gain } @@ -9063,7 +9092,7 @@ cultural_festival.4301 = { #Liege: Get the gift from vassal and decide to keep i value = scope:vassal_chosen_gift } } - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_loss humble = minor_stress_impact_loss paranoid = minor_stress_impact_gain @@ -9087,6 +9116,13 @@ cultural_festival.4301 = { #Liege: Get the gift from vassal and decide to keep i has_relation_soulmate = scope:stop_host_scope } } + modifier = { + add = 100 + OR = { + can_equip_artifact = scope:gifted_artifact + can_benefit_from_artifact = scope:gifted_artifact + } + } } } @@ -9095,7 +9131,7 @@ cultural_festival.4301 = { #Liege: Get the gift from vassal and decide to keep i trigger = { NOT = { scope:vassal_chosen_gift = flag:gift_gold } } destroy_artifact = scope:gifted_artifact add_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_gain humble = minor_stress_impact_gain paranoid = major_stress_impact_loss @@ -9121,6 +9157,13 @@ cultural_festival.4301 = { #Liege: Get the gift from vassal and decide to keep i has_relation_nemesis = scope:stop_host_scope } } + modifier = { + add = 20 + NAND = { + can_equip_artifact = scope:gifted_artifact + can_benefit_from_artifact = scope:gifted_artifact + } + } } } @@ -9128,7 +9171,7 @@ cultural_festival.4301 = { #Liege: Get the gift from vassal and decide to keep i name = cultural_festival.4301.c trigger = { scope:vassal_chosen_gift = flag:gift_gold } give_gold_gift_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_loss paranoid = minor_stress_impact_loss } @@ -9256,7 +9299,7 @@ cultural_festival.4302 = { #Liege: Pick the gift for Vassal, mirror of cultural_ scope:stop_host_scope = { trigger_event = cultural_festival.4303 } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss greedy = minor_stress_impact_loss } @@ -9301,7 +9344,7 @@ cultural_festival.4302 = { #Liege: Pick the gift for Vassal, mirror of cultural_ scope:stop_host_scope = { trigger_event = cultural_festival.4303 } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss greedy = minor_stress_impact_gain } @@ -9334,7 +9377,7 @@ cultural_festival.4302 = { #Liege: Pick the gift for Vassal, mirror of cultural_ scope:stop_host_scope = { trigger_event = cultural_festival.4303 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = minor_stress_impact_loss generous = major_stress_impact_loss greedy = major_stress_impact_gain @@ -9364,7 +9407,7 @@ cultural_festival.4302 = { #Liege: Pick the gift for Vassal, mirror of cultural_ hidden_effect = { delete_new_artifact_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { cynical = major_stress_impact_loss generous = minor_stress_impact_gain } @@ -9428,7 +9471,7 @@ cultural_festival.4303 = { #Vassal: Get the gift from liege, mirror of cultural_ name = received_as_cultural_gift value = scope:liege_chosen_gift } - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_loss humble = minor_stress_impact_loss paranoid = minor_stress_impact_gain @@ -9452,6 +9495,13 @@ cultural_festival.4303 = { #Vassal: Get the gift from liege, mirror of cultural_ has_relation_soulmate = scope:stop_host_scope } } + modifier = { + add = 100 + OR = { + can_equip_artifact = scope:gifted_artifact + can_benefit_from_artifact = scope:gifted_artifact + } + } } } @@ -9460,7 +9510,7 @@ cultural_festival.4303 = { #Vassal: Get the gift from liege, mirror of cultural_ trigger = { NOT = { scope:liege_chosen_gift = flag:gift_gold } } destroy_artifact = scope:gifted_artifact add_gold = minor_gold_value - stress_impact = { + stress_and_fulfillment_impact = { trusting = minor_stress_impact_gain humble = minor_stress_impact_gain paranoid = major_stress_impact_loss @@ -9486,6 +9536,13 @@ cultural_festival.4303 = { #Vassal: Get the gift from liege, mirror of cultural_ has_relation_nemesis = scope:stop_host_scope } } + modifier = { + add = 20 + NAND = { + can_equip_artifact = scope:gifted_artifact + can_benefit_from_artifact = scope:gifted_artifact + } + } } } @@ -9493,7 +9550,7 @@ cultural_festival.4303 = { #Vassal: Get the gift from liege, mirror of cultural_ name = cultural_festival.4303.c trigger = { scope:liege_chosen_gift = flag:gift_gold } give_gold_gift_opinion_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_loss paranoid = minor_stress_impact_loss } @@ -9694,7 +9751,7 @@ cultural_festival.4310 = { #Decide if you want to ask to see the gifts days = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_loss paranoid = minor_stress_impact_loss content = minor_stress_impact_gain @@ -9708,7 +9765,7 @@ cultural_festival.4310 = { #Decide if you want to ask to see the gifts option = { #Don't ask about it name = cultural_festival.4310.b add_piety = miniscule_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain paranoid = minor_stress_impact_gain content = minor_stress_impact_loss @@ -9810,7 +9867,7 @@ cultural_festival.4311 = { #Respond to gift accordingly, if you still have the g } } set_var_gift_liege_response_effect = { FLAG = flag:show_real_gift_flag } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_gain paranoid = minor_stress_impact_gain honest = minor_stress_impact_loss @@ -9860,7 +9917,7 @@ cultural_festival.4311 = { #Respond to gift accordingly, if you still have the g } } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = major_stress_impact_loss cynical = minor_stress_impact_loss honest = major_stress_impact_gain @@ -9910,7 +9967,7 @@ cultural_festival.4311 = { #Respond to gift accordingly, if you still have the g } } } - stress_impact = { + stress_and_fulfillment_impact = { stubborn = minor_stress_impact_loss deceitful = major_stress_impact_loss cynical = minor_stress_impact_loss @@ -9940,7 +9997,7 @@ cultural_festival.4311 = { #Respond to gift accordingly, if you still have the g show_as_tooltip = { add_prestige = minor_prestige_loss } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_gain honest = major_stress_impact_loss } @@ -10081,7 +10138,7 @@ cultural_festival.4312 = { #Vassal: Liege shows you a gift, or not text = cultural_festival.4312.a.decoy_success } displayed_proper_gift_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss compassionate = minor_stress_impact_loss } @@ -10121,7 +10178,7 @@ cultural_festival.4312 = { #Vassal: Liege shows you a gift, or not text = cultural_festival.4312.b.holup } displayed_no_gift_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_loss vengeful = minor_stress_impact_loss just = minor_stress_impact_loss @@ -10150,7 +10207,7 @@ cultural_festival.4312 = { #Vassal: Liege shows you a gift, or not } name = cultural_festival.4312.c liege_failed_hook_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss vengeful = minor_stress_impact_loss content = minor_stress_impact_gain @@ -10192,7 +10249,7 @@ cultural_festival.4312 = { #Vassal: Liege shows you a gift, or not } add_prestige = minor_prestige_loss } - stress_impact = { + stress_and_fulfillment_impact = { wrathful = minor_stress_impact_gain callous = minor_stress_impact_gain vengeful = minor_stress_impact_gain diff --git a/events/activities/tour_activity/tour_travel_events.txt b/events/activities/tour_activity/tour_travel_events.txt index 158a1b335..9774235cc 100644 --- a/events/activities/tour_activity/tour_travel_events.txt +++ b/events/activities/tour_activity/tour_travel_events.txt @@ -133,6 +133,7 @@ tour_travel.1001 = { template = drunken_peasant_character culture = scope:angry_county_scope.culture faith = scope:angry_county_scope.faith + rite = scope:angry_county_scope.rite save_scope_as = angry_peasant } if = { @@ -195,7 +196,7 @@ tour_travel.1001 = { } if = { limit = { is_alive = yes } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss craven = major_stress_impact_gain } @@ -225,7 +226,7 @@ tour_travel.1001 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain craven = minor_stress_impact_loss greedy = major_stress_impact_gain @@ -277,7 +278,7 @@ tour_travel.1001 = { increase_wounds_effect = { REASON = fight } } } - stress_impact = { + stress_and_fulfillment_impact = { brave = major_stress_impact_gain honest = major_stress_impact_gain } @@ -347,6 +348,7 @@ tour_travel.1002 = { template = beautiful_peasant_character culture = scope:pretty_peasant_county_scope.culture faith = scope:pretty_peasant_county_scope.faith + rite = scope:pretty_peasant_county_scope.rite age = age_compared_to_root_minus_ten_always_adult gender_female_chance = root_attraction_based_female_chance save_scope_as = pretty_peasant @@ -409,13 +411,13 @@ tour_travel.1002 = { limit = { OR = { would_be_sinful_adulterer_trigger = yes - relation_with_character_is_sodomy_in_faith_trigger = { + relation_with_character_is_sodomy_in_rite_trigger = { CHARACTER = scope:pretty_peasant - FAITH = root.faith + RITE = root.rite } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain honest = medium_stress_impact_gain chaste = major_stress_impact_gain @@ -424,7 +426,7 @@ tour_travel.1002 = { } } else = { - stress_impact = { + stress_and_fulfillment_impact = { craven = minor_stress_impact_gain honest = medium_stress_impact_gain chaste = major_stress_impact_gain @@ -440,9 +442,9 @@ tour_travel.1002 = { modifier = { add = -50 would_be_sinful_adulterer_trigger = yes - relation_with_character_is_sodomy_in_faith_trigger = { + relation_with_character_is_sodomy_in_rite_trigger = { CHARACTER = scope:pretty_peasant - FAITH = root.faith + RITE = root.rite } has_trait = zealous } @@ -452,7 +454,7 @@ tour_travel.1002 = { option = { # Pass them by name = tour_travel.1002.b scope:pretty_peasant = { silent_disappearance_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_gain craven = minor_stress_impact_loss honest = minor_stress_impact_loss @@ -518,6 +520,7 @@ tour_travel.1003 = { template = peasant_character culture = scope:angry_county_scope.culture faith = scope:angry_county_scope.faith + rite = scope:angry_county_scope.rite gender_female_chance = root_faith_dominant_gender_adjusted_female_chance save_scope_as = rude_peasant } @@ -534,7 +537,7 @@ tour_travel.1003 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss arrogant = minor_stress_impact_loss base = minor_stress_impact_gain @@ -577,7 +580,7 @@ tour_travel.1003 = { death_reason = death_torture } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = major_stress_impact_loss arrogant = minor_stress_impact_loss base = minor_stress_impact_gain @@ -603,7 +606,7 @@ tour_travel.1003 = { name = tour_travel.1003.c add_prestige = minor_prestige_loss add_dread = medium_dread_loss - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_loss callous = minor_stress_impact_gain craven = minor_stress_impact_loss @@ -666,6 +669,14 @@ tour_travel.1004 = { has_activity_intent = altruism_intent faith = { OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } } is_governor = no + # The faith should not be selfish + rite = { + NOR = { + trait_is_virtue_rite = callous + trait_is_virtue_rite = sadistic + trait_is_virtue_rite = arrogant + } + } } weight_multiplier = { @@ -684,16 +695,6 @@ tour_travel.1004 = { religion = { is_in_family = rf_abrahamic } } } - modifier = { # The faith should not be selfish - factor = 0 - faith = { - OR = { - trait_is_virtue = callous - trait_is_virtue = sadistic - trait_is_virtue = arrogant - } - } - } } immediate = { @@ -709,6 +710,7 @@ tour_travel.1004 = { template = diseased_peasant_character culture = scope:diseased_county_scope.culture faith = scope:diseased_county_scope.faith + rite = scope:diseased_county_scope.rite gender_female_chance = 50 save_scope_as = diseased_peasant } @@ -745,7 +747,7 @@ tour_travel.1004 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain sadistic = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -769,7 +771,8 @@ tour_travel.1004 = { name = tour_travel.1004.b trigger = { is_deviant_trigger = yes - matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:diseased_peasant CHARACTER_2 = root } + might_cheat_on_every_partner_trigger = yes + can_set_relation_lover_trigger = { CHARACTER = scope:diseased_peasant } } add_prestige = medium_prestige_loss add_piety = medium_piety_gain @@ -792,7 +795,7 @@ tour_travel.1004 = { } set_relation_lover = scope:diseased_peasant add_courtier = scope:diseased_peasant - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain sadistic = medium_stress_impact_gain callous = medium_stress_impact_gain @@ -824,7 +827,7 @@ tour_travel.1004 = { years = 2 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_loss callous = minor_stress_impact_gain arrogant = minor_stress_impact_gain @@ -863,7 +866,7 @@ tour_travel.1004 = { } } add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain humble = minor_stress_impact_gain compassionate = medium_stress_impact_gain @@ -941,7 +944,7 @@ tour_travel.1005 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { profligate = medium_stress_impact_loss greedy = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -976,7 +979,7 @@ tour_travel.1005 = { years = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_gain callous = medium_stress_impact_gain arrogant = medium_stress_impact_gain @@ -997,7 +1000,7 @@ tour_travel.1005 = { option = { # Ride ahead! name = tour_travel.1005.c add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss humble = minor_stress_impact_gain compassionate = medium_stress_impact_gain @@ -1073,7 +1076,7 @@ tour_travel.1006 = { years = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { profligate = medium_stress_impact_loss greedy = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -1101,7 +1104,7 @@ tour_travel.1006 = { option = { # Give them nothing name = tour_travel.1006.b add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss humble = minor_stress_impact_gain compassionate = medium_stress_impact_gain @@ -1130,7 +1133,7 @@ tour_travel.1006 = { } } add_piety = medium_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss greedy = minor_stress_impact_loss @@ -1277,6 +1280,7 @@ tour_travel.1007 = { template = wise_woman_character culture = scope:wise_woman_barony_scope.culture faith = scope:wise_woman_barony_scope.faith + rite = scope:wise_woman_barony_scope.rite save_scope_as = wise_woman_scope } } @@ -1299,7 +1303,7 @@ tour_travel.1007 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { stubborn = minor_stress_impact_gain # I'm fine! craven = minor_stress_impact_gain # I'm afraid of doctors! shy = minor_stress_impact_gain # I'm afraid of everyone! @@ -1310,10 +1314,10 @@ tour_travel.1007 = { if = { limit = { NOT = { - faith = { has_doctrine_parameter = witchcraft_accepted } + rite = { rite_has_parameter = witchcraft_accepted } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } } @@ -1329,7 +1333,7 @@ tour_travel.1007 = { has_trait = cynical has_trait = arrogant AND = { - NOT = { faith = { has_doctrine_parameter = witchcraft_accepted } } + NOT = { rite = { rite_has_parameter = witchcraft_accepted } } has_trait = zealous } } @@ -1343,7 +1347,7 @@ tour_travel.1007 = { option = { # F that name = tour_travel.1007.b - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain humble = minor_stress_impact_gain brave = medium_stress_impact_gain @@ -1468,7 +1472,7 @@ tour_travel.1008 = { option = { # Go see the wise woman name = tour_travel.1008.a positive_wise_woman_healing_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss cynical = minor_stress_impact_gain # This breaks my idea of what medicine is } @@ -1491,7 +1495,7 @@ tour_travel.1008 = { CANDIDATE = scope:wise_woman_scope EMPLOYER = root } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss cynical = medium_stress_impact_gain greedy = medium_stress_impact_gain @@ -1584,7 +1588,7 @@ tour_travel.1009 = { option = { name = tour_travel.1009.a - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss cynical = major_stress_impact_loss } @@ -1601,7 +1605,7 @@ tour_travel.1009 = { death_reason = death_execution } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss just = minor_stress_impact_gain @@ -1733,7 +1737,7 @@ tour_travel.3120 = { scope:vassal_inn = { get_quirk_character_effect = yes } #localization if = { limit = { - scope:vassal_inn = { any_character_artifact = { exists = yes } } + scope:vassal_inn = { any_character_artifact = {} } } random = { chance = 50 @@ -1781,7 +1785,7 @@ tour_travel.3120 = { } } - stress_impact = { + stress_and_fulfillment_impact = { profligate = medium_stress_impact_loss greedy = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -1837,7 +1841,7 @@ tour_travel.3120 = { else = { add_random_skill_point_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_loss humble = minor_stress_impact_gain compassionate = medium_stress_impact_gain @@ -1865,7 +1869,7 @@ tour_travel.3120 = { scope:vassal_artifact = { set_owner = root } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_loss sadistic = medium_stress_impact_loss greedy = minor_stress_impact_loss @@ -2015,7 +2019,7 @@ tour_travel.3130 = { add_piety = medium_piety_gain } add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { profligate = medium_stress_impact_loss callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -2057,7 +2061,7 @@ tour_travel.3130 = { type = loyalty_hook target = scope:complaining_peasant } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain } @@ -2082,7 +2086,7 @@ tour_travel.3130 = { option = { # F you lol name = tour_travel.3130.c - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain humble = medium_stress_impact_gain compassionate = major_stress_impact_gain @@ -2198,6 +2202,7 @@ tour_travel.3140 = { location = root.location culture = root.location.culture faith = root.location.faith + rite = root.location.rite dynasty = none save_scope_as = brothel_worker } @@ -2232,7 +2237,7 @@ tour_travel.3140 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss lustful = medium_stress_impact_loss chaste = major_stress_impact_gain @@ -2257,7 +2262,7 @@ tour_travel.3140 = { option = { # Don't go name = tour_travel.3140.b add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { lustful = medium_stress_impact_gain rakish = major_stress_impact_gain } @@ -2334,7 +2339,7 @@ tour_travel.3110 = { custom_tooltip = tour_travel.3110.a.tt play_music_cue = mx_cue_banquet trigger_event = tour_travel.3111 - stress_impact = { + stress_and_fulfillment_impact = { comfort_eater = minor_stress_loss drunkard = minor_stress_loss lifestyle_reveler = medium_stress_loss @@ -2363,7 +2368,7 @@ tour_travel.3110 = { modifier = insult_opinion opinion = -20 } - stress_impact = { + stress_and_fulfillment_impact = { trusting = medium_stress_impact_gain gregarious = major_stress_impact_gain gluttonous = major_stress_impact_gain @@ -2405,7 +2410,7 @@ tour_travel.3110 = { } add_prestige = minor_prestige_gain trigger_event = tour_travel.3111 - stress_impact = { + stress_and_fulfillment_impact = { comfort_eater = minor_stress_loss drunkard = minor_stress_loss humble = minor_stress_impact_gain @@ -2531,7 +2536,7 @@ tour_travel.3111 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain avaricious = medium_stress_impact_gain wrathful = medium_stress_impact_gain @@ -2577,7 +2582,7 @@ tour_travel.3111 = { modifier = grateful_opinion opinion = 20 } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain forgiving = medium_stress_impact_gain generous = medium_stress_impact_gain @@ -2638,7 +2643,7 @@ tour_travel.3111 = { CHARACTER = scope:ghino_di_tacco_scope OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { humble = minor_stress_impact_gain calm = medium_stress_impact_gain compassionate = major_stress_impact_gain @@ -2684,7 +2689,7 @@ tour_travel.3111 = { IMPRISONER = root } add_dread = minor_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain calm = major_stress_impact_gain compassionate = major_stress_impact_gain @@ -2756,7 +2761,7 @@ tour_travel.3111 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain forgiving = minor_stress_impact_loss } diff --git a/events/activities/tournaments/veronica_local_events_2.txt b/events/activities/tournaments/veronica_local_events_2.txt index 213e7ade0..33fc3d041 100644 --- a/events/activities/tournaments/veronica_local_events_2.txt +++ b/events/activities/tournaments/veronica_local_events_2.txt @@ -153,7 +153,7 @@ ep2_locale_events.5020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain callous = medium_stress_impact_gain vengeful = medium_stress_impact_gain @@ -208,7 +208,7 @@ ep2_locale_events.5020 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { calm = medium_stress_impact_gain humble = medium_stress_impact_gain lustful = medium_stress_impact_gain @@ -233,7 +233,7 @@ ep2_locale_events.5020 = { name = ep2_locale_events.5020.c trigger = { activity_is_competing_trigger = yes } activity_tournament_change_contestant_score_effect = { SCORE = increase_minor } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain vengeful = medium_stress_impact_gain lustful = major_stress_impact_gain @@ -360,7 +360,7 @@ ep2_locale_events.1520 = { add_martial_lifestyle_xp = major_lifestyle_xp } ep2_locale_events_1520_superstitious_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain cynical = medium_stress_impact_gain } @@ -388,7 +388,7 @@ ep2_locale_events.1520 = { name = ep2_locale_events.1520.b add_stewardship_lifestyle_xp = major_lifestyle_xp ep2_locale_events_1520_superstitious_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { @@ -413,7 +413,7 @@ ep2_locale_events.1520 = { name = ep2_locale_events.1520.c add_intrigue_lifestyle_xp = major_lifestyle_xp ep2_locale_events_1520_superstitious_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain gregarious = medium_stress_impact_gain calm = medium_stress_impact_gain @@ -449,7 +449,7 @@ ep2_locale_events.1520 = { learning < high_skill_rating } add_character_modifier = tournament_astronomy_modifier #forever - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain } ai_chance = { @@ -468,7 +468,7 @@ ep2_locale_events.1520 = { # It means nothing option = { name = ep2_locale_events.1520.e - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss cynical = major_stress_impact_loss paranoid = major_stress_impact_gain @@ -632,7 +632,7 @@ ep2_locale_events.3010 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain paranoid = medium_stress_impact_gain @@ -665,7 +665,7 @@ ep2_locale_events.3010 = { } } add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain compassionate = medium_stress_impact_gain } @@ -696,7 +696,7 @@ ep2_locale_events.3010 = { modifier = tournament_not_cursed_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = major_stress_impact_loss #you caught them calm = medium_stress_impact_gain } @@ -724,7 +724,7 @@ ep2_locale_events.3010 = { } add_dread = minor_dread_gain } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss callous = major_stress_impact_loss sadistic = major_stress_impact_loss @@ -888,7 +888,7 @@ ep2_locale_events.3011 = { option = { name = ep2_locale_events.3011.a ep2_locale_events_3011_warning_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -962,7 +962,7 @@ ep2_locale_events.3011 = { years = 20 } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain gregarious = medium_stress_impact_gain ambitious = medium_stress_impact_gain @@ -1095,7 +1095,7 @@ ep2_locale_events.3510 = { max = 15 } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain greedy = medium_stress_impact_gain generous = medium_stress_impact_gain @@ -1135,7 +1135,7 @@ ep2_locale_events.3510 = { max = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain arrogant = medium_stress_impact_gain greedy = medium_stress_impact_gain @@ -1171,7 +1171,7 @@ ep2_locale_events.3510 = { max = 5 } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_loss cynical = medium_stress_impact_gain ambitious = medium_stress_impact_gain @@ -1198,7 +1198,8 @@ ep2_locale_events.3510 = { # Nah option = { name = ep2_locale_events.3510.d - stress_impact = { + hidden_effect = { destroy_artifact = scope:horseshoe_artifact } + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain } ai_chance = { @@ -1330,7 +1331,7 @@ ep2_locale_events.1530 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } ai_chance = { @@ -1357,7 +1358,7 @@ ep2_locale_events.1530 = { text = ep2_locale_events.1530.b.fallback } add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -1385,7 +1386,7 @@ ep2_locale_events.1530 = { activity_is_competing_trigger = yes } activity_tournament_change_contestant_score_effect = { SCORE = increase_major } - stress_impact = { + stress_and_fulfillment_impact = { lifestyle_poet = medium_stress_impact_loss zealous = medium_stress_impact_gain } @@ -1410,7 +1411,7 @@ ep2_locale_events.1530 = { option = { name = ep2_locale_events.1530.d trigger = { has_trait = deviant } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss zealous = major_stress_impact_gain } @@ -1564,10 +1565,14 @@ ep2_locale_events.4540 = { } } scope:my_weapon = { - set_artifact_description = ep2_locale_events_artifact_sharp_desc + if = { #To not flood the weapon with a text loop + limit = { scope:my_weapon = { NOT = { has_variable = ep2_locale_events_4540_sharp } } } + set_artifact_description = ep2_locale_events_artifact_sharp_desc + } add_artifact_modifier = artifact_tournament_sharpened_blade_modifier + set_variable = ep2_locale_events_4540_sharp } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain zealous = medium_stress_impact_gain } @@ -1585,6 +1590,7 @@ ep2_locale_events.4540 = { # Inscribe a carving - prayer option = { + trigger = { scope:my_weapon = { NOT = { has_variable = ep2_locale_events_4540_prayer } } } name = { trigger = { OR = { religion = religion:eastern_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion } } text = ep2_locale_events.4540.b.christian @@ -1605,8 +1611,9 @@ ep2_locale_events.4540 = { scope:my_weapon = { set_artifact_description = ep2_locale_events_artifact_prayer_desc add_artifact_modifier = artifact_monthly_piety_7_modifier + set_variable = ep2_locale_events_4540_prayer } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain greedy = medium_stress_impact_gain arrogant = medium_stress_impact_gain @@ -1626,6 +1633,7 @@ ep2_locale_events.4540 = { # Inscribe your motto option = { + trigger = { scope:my_weapon = { NOT = { has_variable = ep2_locale_events_4540_motto } } } name = ep2_locale_events.4540.c pay_short_term_gold = { target = scope:weaponsmith @@ -1637,8 +1645,9 @@ ep2_locale_events.4540 = { scope:my_weapon = { set_artifact_description = ep2_locale_events_artifact_motto_desc add_artifact_modifier = artifact_monthly_prestige_7_modifier + set_variable = ep2_locale_events_4540_motto } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain humble = medium_stress_impact_gain zealous = medium_stress_impact_gain @@ -1659,7 +1668,7 @@ ep2_locale_events.4540 = { # Nah Im fine option = { name = ep2_locale_events.4540.d - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -1790,7 +1799,7 @@ ep2_locale_events.1060 = { option = { name = ep2_locale_events.1060.a ep2_locale_events_1060_betting_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss arbitrary = medium_stress_impact_loss greedy = medium_stress_impact_gain @@ -1815,7 +1824,7 @@ ep2_locale_events.1060 = { option = { name = ep2_locale_events.1060.b ep2_locale_events_1060_betting_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss arbitrary = medium_stress_impact_loss greedy = medium_stress_impact_gain @@ -1840,7 +1849,7 @@ ep2_locale_events.1060 = { option = { name = ep2_locale_events.1060.c add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_gain profligate = medium_stress_impact_gain } diff --git a/events/board_game_events.txt b/events/board_game_events.txt deleted file mode 100644 index ed52941a0..000000000 --- a/events/board_game_events.txt +++ /dev/null @@ -1,3589 +0,0 @@ -namespace = board_games - -################################################## -# # Playing a Board Game -# 0001 - 0010 The Greatest Game - Match -# 0011 - 0030 Processing & Invalidation events -# 0031 - 0030 The Greatest Game - Winner -# 0041 - 0040 The Greatest Game - Loser -################################################## - - - - - - - - - - -################################################## -# PLAYING CHESS - -################################################## -# The Greatest Game -# by Ewan Cowhig Croft -# 0001 - 0010 -################################################## - -scripted_effect bg_play_move_type_effect = { - # Set the move type played. - ## Either we're scope:bg_defender... - if = { - limit = { this = scope:bg_defender } - save_scope_value_as = { - name = bg_defender_move - value = flag:$SKILL$ - } - } - ## Or else we must be scope:bg_attacker. - else = { - save_scope_value_as = { - name = bg_attacker_move - value = flag:$SKILL$ - } - } - # Run the duel. - duel = { - skill = $SKILL$ - value = decent_skill_rating - # Crit success. - 10 = { - show_chance = no - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - bg_play_move_type_effect_extraneous_advantages_self_modifier = yes - desc = board_games.0001.$LOC_KEY$.tt.crit_success - custom_tooltip = board_games.0001.$LOC_KEY$.tt.crit_success.tt - # Save the result. - set_variable = { - name = bg_move_result - value = flag:crit_success - } - } - # Success. - 40 = { - show_chance = no - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - bg_play_move_type_effect_extraneous_advantages_self_modifier = yes - desc = board_games.0001.$LOC_KEY$.tt.success - custom_tooltip = board_games.0001.$LOC_KEY$.tt.success.tt - # Save the result. - set_variable = { - name = bg_move_result - value = flag:success - } - } - # Failure. - 40 = { - show_chance = no - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - bg_play_move_type_effect_extraneous_advantages_opponent_modifier = yes - desc = board_games.0001.$LOC_KEY$.tt.failure - custom_tooltip = board_games.0001.$LOC_KEY$.tt.failure.tt - # Save the result. - set_variable = { - name = bg_move_result - value = flag:failure - } - } - # Crit failure. - 10 = { - show_chance = no - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - bg_play_move_type_effect_extraneous_advantages_opponent_modifier = yes - desc = board_games.0001.$LOC_KEY$.tt.crit_failure - custom_tooltip = board_games.0001.$LOC_KEY$.tt.crit_failure.tt - # Save the result. - set_variable = { - name = bg_move_result - value = flag:crit_failure - } - } - } -} - -# Main board game processing event. -board_games.0001 = { - type = character_event - window = duel_event - title = board_games.0001.t - desc = { - # Intro section. - first_valid = { - # Is this our first move? - triggered_desc = { - trigger = { - scope:bg_defender.var:bg_current_round = 1 - this = scope:bg_defender - } - desc = board_games.0001.desc.intro.opening.defender - } - triggered_desc = { - trigger = { - scope:bg_defender.var:bg_current_round = 1 - this = scope:bg_attacker - } - desc = board_games.0001.desc.intro.opening.attacker - } - # Otherwise, standard chained intro. - desc = board_games.0001.desc.intro.subsequent - } - # What did our opponent play? - first_valid = { - ## Diplomacy - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:diplomacy - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:diplomacy - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.diplomacy.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.diplomacy.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.diplomacy.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.diplomacy.crit_failure - } - } - } - } - ## Martial - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:martial - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:martial - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.martial.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.martial.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.martial.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.martial.crit_failure - } - } - } - } - ## Stewardship - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:stewardship - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:stewardship - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.stewardship.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.stewardship.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.stewardship.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.stewardship.crit_failure - } - } - } - } - ## Intrigue - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:intrigue - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:intrigue - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.intrigue.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.intrigue.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.intrigue.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.intrigue.crit_failure - } - } - } - } - ## Learning - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:learning - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:learning - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.learning.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.learning.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.learning.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.learning.crit_failure - } - } - } - } - ## Prowess - triggered_desc = { - trigger = { - OR = { - AND = { - exists = scope:bg_defender - exists = scope:bg_attacker_move - this = scope:bg_defender - scope:bg_attacker_move = flag:prowess - } - AND = { - exists = scope:bg_attacker - exists = scope:bg_defender_move - this = scope:bg_attacker - scope:bg_defender_move = flag:prowess - } - } - } - desc = { - first_valid = { - # Crit Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_success - } - } - } - desc = board_games.0001.desc.intro.prowess.crit_success - } - # Success - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:success - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:success - } - } - } - desc = board_games.0001.desc.intro.prowess.success - } - # Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:failure - } - } - } - desc = board_games.0001.desc.intro.prowess.failure - } - # Crit Failure - triggered_desc = { - trigger = { - OR = { - AND = { - this = scope:bg_defender - scope:bg_attacker.var:bg_move_result = flag:crit_failure - } - AND = { - this = scope:bg_attacker - scope:bg_defender.var:bg_move_result = flag:crit_failure - } - } - } - desc = board_games.0001.desc.intro.prowess.crit_failure - } - } - } - } - } - # Was someone countered? - first_valid = { - # Yes! I countered them. - triggered_desc = { - trigger = { - exists = scope:bg_counterer - this = scope:bg_counterer - } - desc = board_games.0001.desc.i_have_countered - } - # Yes! I have been countered. - triggered_desc = { - trigger = { - exists = scope:bg_counterer - this != scope:bg_counterer - } - desc = board_games.0001.desc.i_am_countered - } - # Nope, just the page breaks please. - desc = board_games.0001.desc.no_counters - } - ## How is the match going? - ### Us relative to each other. - first_valid = { - # I'm winning by miles. - triggered_desc = { - trigger = { var:bg_current_score >= bg_relative_score_heavy_difference_threshold_value } - desc = board_games.0001.desc.relative_victory.winning_heavily - } - # I'm winning. - triggered_desc = { - trigger = { var:bg_current_score >= bg_relative_score_light_difference_threshold_value } - desc = board_games.0001.desc.relative_victory.winning_somewhat - } - # We're essentially equal. - triggered_desc = { - trigger = { - var:bg_current_score >= scope:bg_opponent.var:bg_current_score - } - desc = board_games.0001.desc.relative_victory.drawing - } - # I'm losing. - triggered_desc = { - trigger = { var:bg_current_score <= bg_relative_score_heavy_difference_threshold_value } - desc = board_games.0001.desc.relative_victory.losing_somewhat - } - # I'm losing by miles. - triggered_desc = { - trigger = { var:bg_current_score <= bg_relative_score_light_difference_threshold_value } - desc = board_games.0001.desc.relative_victory.losing_heavily - } - } - ### And either one of us towards actual victory. - first_valid = { - # Either of us could win. - triggered_desc = { - trigger = { - var:bg_current_score >= bg_close_to_winning_threshold_value - scope:bg_opponent.var:bg_current_score >= bg_close_to_winning_threshold_value - } - desc = board_games.0001.desc.actual_victory.both_close - } - # I could win. - triggered_desc = { - trigger = { var:bg_current_score >= bg_close_to_winning_threshold_value } - desc = board_games.0001.desc.actual_victory.i_am_close - } - # They could win. - triggered_desc = { - trigger = { scope:bg_opponent.var:bg_current_score >= bg_close_to_winning_threshold_value } - desc = board_games.0001.desc.actual_victory.they_are_close - - } - # Sudden death is about to kick in. - triggered_desc = { - trigger = { - scope:bg_defender.var:bg_current_round >= bg_round_cap_value - } - desc = board_games.0001.desc.actual_victory.sudden_death - } - # Neither of us are close. - desc = board_games.0001.desc.actual_victory.neither_close - } - ## Fluff segment. - ### Opponent Winning - triggered_desc = { - trigger = { - # Since we're processing a whole mess o'random valids here, and they're *all* fluff, we restrict this to AI only. - is_ai = no - # We let the other player be haughty by making them the tie-breaker. - trigger_if = { - limit = { has_variable = bg_gib_only_losing_locs } - always = yes - } - trigger_else = { - var:bg_current_score <= scope:bg_opponent.var:bg_current_score - } - } - desc = { - random_valid = { - # Categories - ## Attributes - ### Diplomacy - triggered_desc = { - trigger = { scope:bg_opponent.diplomacy <= mediocre_skill_rating } - desc = board_games.0001.desc.opponent_winning.diplomacy.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.diplomacy > mediocre_skill_rating - scope:bg_opponent.diplomacy < high_skill_rating - } - desc = board_games.0001.desc.opponent_winning.diplomacy.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.diplomacy >= high_skill_rating } - desc = board_games.0001.desc.opponent_winning.diplomacy.high - } - ### Martial - #### These generally refer to the act of leading troops, so we put an extra filter on for being able to lead an army. - triggered_desc = { - trigger = { - can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:bg_opponent } - } - desc = { - random_valid = { - triggered_desc = { - trigger = {scope:bg_opponent.martial <= mediocre_skill_rating } - desc = board_games.0001.desc.opponent_winning.martial.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.martial > mediocre_skill_rating - scope:bg_opponent.martial < high_skill_rating - } - desc = board_games.0001.desc.opponent_winning.martial.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.martial >= high_skill_rating } - desc = board_games.0001.desc.opponent_winning.martial.high - } - } - } - } - ### Stewardship - triggered_desc = { - trigger = { scope:bg_opponent.stewardship <= mediocre_skill_rating } - desc = board_games.0001.desc.opponent_winning.stewardship.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.stewardship > mediocre_skill_rating - scope:bg_opponent.stewardship < high_skill_rating - } - desc = board_games.0001.desc.opponent_winning.stewardship.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.stewardship >= high_skill_rating } - desc = board_games.0001.desc.opponent_winning.stewardship.high - } - ### Intrigue - triggered_desc = { - trigger = { scope:bg_opponent.intrigue <= mediocre_skill_rating } - desc = board_games.0001.desc.opponent_winning.intrigue.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.intrigue > mediocre_skill_rating - scope:bg_opponent.intrigue < high_skill_rating - } - desc = board_games.0001.desc.opponent_winning.intrigue.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.intrigue >= high_skill_rating } - desc = board_games.0001.desc.opponent_winning.intrigue.high - } - ### Learning - triggered_desc = { - trigger = { scope:bg_opponent.learning <= mediocre_skill_rating } - desc = board_games.0001.desc.opponent_winning.learning.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.learning > mediocre_skill_rating - scope:bg_opponent.learning < high_skill_rating - } - desc = board_games.0001.desc.opponent_winning.learning.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.learning >= high_skill_rating } - desc = board_games.0001.desc.opponent_winning.learning.high - } - ## Trait Specifics - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = lustful } - } - desc = board_games.0001.desc.opponent_winning.trait.lustful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = chaste } - } - desc = board_games.0001.desc.opponent_winning.trait.chaste - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = gluttonous } - } - desc = board_games.0001.desc.opponent_winning.trait.gluttonous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = temperate } - } - desc = board_games.0001.desc.opponent_winning.trait.temperate - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = greedy } - } - desc = board_games.0001.desc.opponent_winning.trait.greedy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = generous } - } - desc = board_games.0001.desc.opponent_winning.trait.generous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = lazy } - } - desc = board_games.0001.desc.opponent_winning.trait.lazy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = diligent } - } - desc = board_games.0001.desc.opponent_winning.trait.diligent - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = wrathful } - } - desc = board_games.0001.desc.opponent_winning.trait.wrathful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = calm } - } - desc = board_games.0001.desc.opponent_winning.trait.calm - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = patient } - } - desc = board_games.0001.desc.opponent_winning.trait.patient - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = impatient } - } - desc = board_games.0001.desc.opponent_winning.trait.impatient - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = arrogant } - } - desc = board_games.0001.desc.opponent_winning.trait.arrogant - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = humble } - } - desc = board_games.0001.desc.opponent_winning.trait.humble - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = deceitful } - } - desc = board_games.0001.desc.opponent_winning.trait.deceitful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = honest } - } - desc = board_games.0001.desc.opponent_winning.trait.honest - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = craven } - } - desc = board_games.0001.desc.opponent_winning.trait.craven - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = brave } - } - desc = board_games.0001.desc.opponent_winning.trait.brave - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = shy } - } - desc = board_games.0001.desc.opponent_winning.trait.shy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = gregarious } - } - desc = board_games.0001.desc.opponent_winning.trait.gregarious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = ambitious } - } - desc = board_games.0001.desc.opponent_winning.trait.ambitious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = content } - } - desc = board_games.0001.desc.opponent_winning.trait.content - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = arbitrary } - } - desc = board_games.0001.desc.opponent_winning.trait.arbitrary - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = just } - } - desc = board_games.0001.desc.opponent_winning.trait.just - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = cynical } - } - desc = board_games.0001.desc.opponent_winning.trait.cynical - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = zealous } - } - desc = board_games.0001.desc.opponent_winning.trait.zealous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = paranoid } - } - desc = board_games.0001.desc.opponent_winning.trait.paranoid - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = trusting } - } - desc = board_games.0001.desc.opponent_winning.trait.trusting - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = compassionate } - } - desc = board_games.0001.desc.opponent_winning.trait.compassionate - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = callous } - } - desc = board_games.0001.desc.opponent_winning.trait.callous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = sadistic } - } - desc = board_games.0001.desc.opponent_winning.trait.sadistic - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = stubborn } - } - desc = board_games.0001.desc.opponent_winning.trait.stubborn - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = fickle } - } - desc = board_games.0001.desc.opponent_winning.trait.fickle - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = vengeful } - } - desc = board_games.0001.desc.opponent_winning.trait.vengeful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = forgiving } - } - desc = board_games.0001.desc.opponent_winning.trait.forgiving - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = rowdy } - } - desc = board_games.0001.desc.opponent_winning.trait.rowdy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = charming } - } - desc = board_games.0001.desc.opponent_winning.trait.charming - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = curious } - } - desc = board_games.0001.desc.opponent_winning.trait.curious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = pensive } - } - desc = board_games.0001.desc.opponent_winning.trait.pensive - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = bossy } - } - desc = board_games.0001.desc.opponent_winning.trait.bossy - } - ## Prior Matches & Relationships - triggered_desc = { - trigger = { has_relation_friend = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.friend - } - triggered_desc = { - trigger = { has_relation_best_friend = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.best_friend - } - triggered_desc = { - trigger = { has_relation_rival = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.rival - } - triggered_desc = { - trigger = { has_relation_nemesis = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.nemesis - } - triggered_desc = { - trigger = { has_relation_lover = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.lover - } - triggered_desc = { - trigger = { has_relation_soulmate = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.soulmate - } - triggered_desc = { - trigger = { has_relation_bully = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.bully - } - triggered_desc = { - trigger = { has_relation_victim = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.victim - } - triggered_desc = { - trigger = { has_relation_crush = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.crush - } - triggered_desc = { - trigger = { has_relation_guardian = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.guardian - } - triggered_desc = { - trigger = { has_relation_ward = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.relation.ward - } - ## Miscs - ### Hooks - triggered_desc = { - trigger = { has_weak_hook = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.hook_on.weak - } - triggered_desc = { - trigger = { has_strong_hook = scope:bg_opponent } - desc = board_games.0001.desc.opponent_winning.hook_on.strong - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_weak_hook = scope:bg_myself} - } - desc = board_games.0001.desc.opponent_winning.hooked_by.weak - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_strong_hook = scope:bg_myself} - } - desc = board_games.0001.desc.opponent_winning.hooked_by.strong - } - ### Prior Matches - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_default_loss_to - var:bg_recent_default_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_won_against.default - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_land_loss_to - var:bg_recent_land_loss_to = scope:bg_myself - # Don't bring it up if you don't control it any more. - var:bg_recent_land_loss_stake.holder = { - OR = { - this = scope:bg_opponent - any_liege_or_above = { this = scope:bg_opponent } - } - } - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_won_against.county - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_gambling_loss_to - var:bg_recent_gambling_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_won_against.gamble - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_default_loss_to - var:bg_recent_default_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_lost_against.default - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_land_loss_to - var:bg_recent_land_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_lost_against.county - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_gambling_loss_to - var:bg_recent_gambling_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.opponent_winning.match_history.recently_lost_against.gamble - } - ### Other - #### A move for only the pro-est of board gamers. - triggered_desc = { - trigger = { - scope:bg_opponent = { - has_trait = arrogant - has_trait = reclusive - OR = { - learning <= mediocre_skill_rating - # TIT-34022 - } - } - } - desc = board_games.0001.desc.opponent_winning.other.pro_gamer - } - #### A move for an excellent one liner. - triggered_desc = { - trigger = { - # TIT-34022; remove always = no after implementation. - always = no - scope:bg_opponent = { - has_trait = arrogant - has_trait = sadistic - has_trait = arbitrary - intrigue >= very_high_skill_rating - prowess >= very_high_skill_rating - } - } - desc = board_games.0001.desc.opponent_winning.other.avlf - } - } - } - } - ### Current Player Winning - triggered_desc = { - trigger = { - # Since we're processing a whole mess o'random valids here, and they're *all* fluff, we restrict this to AI only. - is_ai = no - # We let the other player be haughty by making them the tie-breaker. - trigger_if = { - limit = { has_variable = bg_gib_only_winning_locs } - always = yes - } - trigger_else = { - var:bg_current_score > scope:bg_opponent.var:bg_current_score - } - } - desc = { - random_valid = { - # Categories - ## Attributes - ### Diplomacy - triggered_desc = { - trigger = { scope:bg_opponent.diplomacy <= mediocre_skill_rating } - desc = board_games.0001.desc.i_am_winning.diplomacy.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.diplomacy > mediocre_skill_rating - scope:bg_opponent.diplomacy < high_skill_rating - } - desc = board_games.0001.desc.i_am_winning.diplomacy.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.diplomacy >= high_skill_rating } - desc = board_games.0001.desc.i_am_winning.diplomacy.high - } - ### Martial - #### These generally refer to the act of leading troops, so we put an extra filter on for being able to lead an army. - triggered_desc = { - trigger = { - can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:bg_opponent } - } - desc = { - random_valid = { - triggered_desc = { - trigger = {scope:bg_opponent.martial <= mediocre_skill_rating } - desc = board_games.0001.desc.i_am_winning.martial.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.martial > mediocre_skill_rating - scope:bg_opponent.martial < high_skill_rating - } - desc = board_games.0001.desc.i_am_winning.martial.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.martial >= high_skill_rating } - desc = board_games.0001.desc.i_am_winning.martial.high - } - } - } - } - ### Stewardship - triggered_desc = { - trigger = { scope:bg_opponent.stewardship <= mediocre_skill_rating } - desc = board_games.0001.desc.i_am_winning.stewardship.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.stewardship > mediocre_skill_rating - scope:bg_opponent.stewardship < high_skill_rating - } - desc = board_games.0001.desc.i_am_winning.stewardship.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.stewardship >= high_skill_rating } - desc = board_games.0001.desc.i_am_winning.stewardship.high - } - ### Intrigue - triggered_desc = { - trigger = { scope:bg_opponent.intrigue <= mediocre_skill_rating } - desc = board_games.0001.desc.i_am_winning.intrigue.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.intrigue > mediocre_skill_rating - scope:bg_opponent.intrigue < high_skill_rating - } - desc = board_games.0001.desc.i_am_winning.intrigue.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.intrigue >= high_skill_rating } - desc = board_games.0001.desc.i_am_winning.intrigue.high - } - ### Learning - triggered_desc = { - trigger = { scope:bg_opponent.learning <= mediocre_skill_rating } - desc = board_games.0001.desc.i_am_winning.learning.low - } - triggered_desc = { - trigger = { - scope:bg_opponent.learning > mediocre_skill_rating - scope:bg_opponent.learning < high_skill_rating - } - desc = board_games.0001.desc.i_am_winning.learning.medium - } - triggered_desc = { - trigger = { scope:bg_opponent.learning >= high_skill_rating } - desc = board_games.0001.desc.i_am_winning.learning.high - } - ## Trait Specifics - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = lustful } - } - desc = board_games.0001.desc.i_am_winning.trait.lustful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = chaste } - } - desc = board_games.0001.desc.i_am_winning.trait.chaste - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = gluttonous } - } - desc = board_games.0001.desc.i_am_winning.trait.gluttonous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = temperate } - } - desc = board_games.0001.desc.i_am_winning.trait.temperate - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = greedy } - } - desc = board_games.0001.desc.i_am_winning.trait.greedy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = generous } - } - desc = board_games.0001.desc.i_am_winning.trait.generous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = lazy } - } - desc = board_games.0001.desc.i_am_winning.trait.lazy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = diligent } - } - desc = board_games.0001.desc.i_am_winning.trait.diligent - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = wrathful } - } - desc = board_games.0001.desc.i_am_winning.trait.wrathful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = calm } - } - desc = board_games.0001.desc.i_am_winning.trait.calm - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = patient } - } - desc = board_games.0001.desc.i_am_winning.trait.patient - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = impatient } - } - desc = board_games.0001.desc.i_am_winning.trait.impatient - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = arrogant } - } - desc = board_games.0001.desc.i_am_winning.trait.arrogant - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = humble } - } - desc = board_games.0001.desc.i_am_winning.trait.humble - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = deceitful } - } - desc = board_games.0001.desc.i_am_winning.trait.deceitful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = honest } - } - desc = board_games.0001.desc.i_am_winning.trait.honest - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = craven } - } - desc = board_games.0001.desc.i_am_winning.trait.craven - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = brave } - } - desc = board_games.0001.desc.i_am_winning.trait.brave - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = shy } - } - desc = board_games.0001.desc.i_am_winning.trait.shy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = gregarious } - } - desc = board_games.0001.desc.i_am_winning.trait.gregarious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = ambitious } - } - desc = board_games.0001.desc.i_am_winning.trait.ambitious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = content } - } - desc = board_games.0001.desc.i_am_winning.trait.content - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = arbitrary } - } - desc = board_games.0001.desc.i_am_winning.trait.arbitrary - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = just } - } - desc = board_games.0001.desc.i_am_winning.trait.just - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = cynical } - } - desc = board_games.0001.desc.i_am_winning.trait.cynical - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = zealous } - } - desc = board_games.0001.desc.i_am_winning.trait.zealous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = paranoid } - } - desc = board_games.0001.desc.i_am_winning.trait.paranoid - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = trusting } - } - desc = board_games.0001.desc.i_am_winning.trait.trusting - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = compassionate } - } - desc = board_games.0001.desc.i_am_winning.trait.compassionate - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = callous } - } - desc = board_games.0001.desc.i_am_winning.trait.callous - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = sadistic } - } - desc = board_games.0001.desc.i_am_winning.trait.sadistic - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = stubborn } - } - desc = board_games.0001.desc.i_am_winning.trait.stubborn - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = fickle } - } - desc = board_games.0001.desc.i_am_winning.trait.fickle - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = vengeful } - } - desc = board_games.0001.desc.i_am_winning.trait.vengeful - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = forgiving } - } - desc = board_games.0001.desc.i_am_winning.trait.forgiving - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = rowdy } - } - desc = board_games.0001.desc.i_am_winning.trait.rowdy - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = charming } - } - desc = board_games.0001.desc.i_am_winning.trait.charming - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = curious } - } - desc = board_games.0001.desc.i_am_winning.trait.curious - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = pensive } - } - desc = board_games.0001.desc.i_am_winning.trait.pensive - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_trait = bossy } - } - desc = board_games.0001.desc.i_am_winning.trait.bossy - } - ## Prior Matches & Relationships - triggered_desc = { - trigger = { has_relation_friend = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.friend - } - triggered_desc = { - trigger = { has_relation_best_friend = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.best_friend - } - triggered_desc = { - trigger = { has_relation_rival = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.rival - } - triggered_desc = { - trigger = { has_relation_nemesis = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.nemesis - } - triggered_desc = { - trigger = { has_relation_lover = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.lover - } - triggered_desc = { - trigger = { has_relation_soulmate = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.soulmate - } - triggered_desc = { - trigger = { has_relation_bully = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.bully - } - triggered_desc = { - trigger = { has_relation_victim = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.victim - } - triggered_desc = { - trigger = { has_relation_crush = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.crush - } - triggered_desc = { - trigger = { has_relation_guardian = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.guardian - } - triggered_desc = { - trigger = { has_relation_ward = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.relation.ward - } - ## Miscs - ### Hooks - triggered_desc = { - trigger = { has_weak_hook = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.hook_on.weak - } - triggered_desc = { - trigger = { has_strong_hook = scope:bg_opponent } - desc = board_games.0001.desc.i_am_winning.hook_on.strong - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_weak_hook = scope:bg_myself} - } - desc = board_games.0001.desc.i_am_winning.hooked_by.weak - } - triggered_desc = { - trigger = { - scope:bg_opponent = { has_strong_hook = scope:bg_myself} - } - desc = board_games.0001.desc.i_am_winning.hooked_by.strong - } - ### Prior Matches - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_default_loss_to - var:bg_recent_default_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_won_against.default - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_land_loss_to - var:bg_recent_land_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_won_against.county - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_gambling_loss_to - var:bg_recent_gambling_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_won_against.gamble - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_default_loss_to - var:bg_recent_default_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_lost_against.default - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_land_loss_to - var:bg_recent_land_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_lost_against.county - } - triggered_desc = { - trigger = { - scope:bg_opponent = { - exists = var:bg_recent_gambling_loss_to - var:bg_recent_gambling_loss_to = scope:bg_myself - } - } - desc = board_games.0001.desc.i_am_winning.match_history.recently_lost_against.gamble - } - ### Other - #### [tumbleweeds] - } - } - } - } - theme = martial_strategy_focus - left_portrait = { - character = scope:bg_myself - triggered_animation = { # Winning by a large margin - trigger = { - scope:bg_myself = { - NOT = { has_trait = humble } - OR = { - var:bg_current_score >= bg_relative_score_heavy_difference_threshold_value - var:bg_current_score >= bg_close_to_winning_threshold_value - } - } - } - animation = chess_certain_win - } - triggered_animation = { # Winning by any margin - trigger = { - scope:bg_myself = { - NOT = { has_trait = humble } - var:bg_current_score >= bg_relative_score_light_difference_threshold_value - } - } - animation = chess_cocky - } - animation = personality_rational - } - right_portrait = { - character = scope:bg_opponent - triggered_animation = { - trigger = { - scope:bg_opponent = { - NOT = { has_trait = humble } - } - scope:bg_myself.var:bg_current_score < scope:bg_opponent.var:bg_current_score - scope:bg_myself.var:bg_current_score <= bg_relative_score_heavy_difference_threshold_value - } - animation = chess_cocky - } - triggered_animation = { - trigger = { - scope:bg_opponent = { - NOT = { has_trait = humble } - } - scope:bg_myself.var:bg_current_score < scope:bg_opponent.var:bg_current_score - OR = { - scope:bg_myself.var:bg_current_score <= bg_relative_score_light_difference_threshold_value - scope:bg_opponent.var:bg_current_score >= bg_close_to_winning_threshold_value - } - } - animation = chess_certain_win - } - animation = scheme - } - artifact = { - target = scope:bg_chess_board - position = lower_center_portrait - } - override_background = { - trigger = { scope:bg_locale = flag:terrain_scope } - reference = terrain_scope - } - override_background = { - trigger = { scope:bg_locale = flag:wilderness_scope } - reference = wilderness_scope - } - override_background = { - trigger = { scope:bg_locale = flag:battlefield } - reference = battlefield - } - override_background = { - trigger = { scope:bg_locale = flag:temple } - reference = temple - } - override_background = { - trigger = { scope:bg_locale = flag:council_chamber } - reference = council_chamber - } - override_background = { - trigger = { scope:bg_locale = flag:courtyard } - reference = courtyard - } - override_background = { - trigger = { scope:bg_locale = flag:dungeon } - reference = dungeon - } - override_background = { - trigger = { scope:bg_locale = flag:docks } - reference = docks - } - override_background = { - trigger = { scope:bg_locale = flag:feast } - reference = feast - } - override_background = { - trigger = { scope:bg_locale = flag:gallows } - reference = gallows - } - override_background = { - trigger = { scope:bg_locale = flag:garden } - reference = garden - } - override_background = { - trigger = { scope:bg_locale = flag:market } - reference = market - } - override_background = { - trigger = { scope:bg_locale = flag:sitting_room } - reference = sitting_room - } - override_background = { - trigger = { scope:bg_locale = flag:bedchamber } - reference = bedchamber - } - override_background = { - trigger = { scope:bg_locale = flag:study } - reference = study - } - override_background = { - trigger = { scope:bg_locale = flag:physicians_study } - reference = physicians_study - } - override_background = { - trigger = { scope:bg_locale = flag:tavern } - reference = tavern - } - override_background = { - trigger = { scope:bg_locale = flag:throne_room } - reference = throne_room - } - override_background = { - trigger = { scope:bg_locale = flag:army_camp } - reference = army_camp - } - - trigger = { - scope:bg_defender = { can_start_board_game_eligibility_checks_trigger = yes } - scope:bg_attacker = { can_start_board_game_eligibility_checks_trigger = yes } - # Invalidate if there's a war for the wagered county or they leave your realm for any reason. - trigger_if = { - limit = { - exists = scope:bg_stake_land_recipient - exists = scope:bg_stake_land_actor - } - OR = { - scope:bg_stake_land_recipient.holder = scope:recipient - scope:bg_stake_land_actor.holder = scope:actor - scope:recipient ={ - is_at_war = yes - any_character_war = { - casus_belli = { - any_target_title = { this = scope:bg_stake_land_recipient } - } - } - } - scope:actor = { - is_at_war = yes - any_character_war = { - casus_belli = { - any_target_title = { this = scope:bg_stake_land_actor } - } - } - } - } - } - } - on_trigger_fail = { bg_fire_clean_up_and_invalidate_effect = yes } - - immediate = { - # Sort scopes for portraits & loc. - save_scope_as = bg_myself - if = { - limit = { this = scope:bg_defender } - scope:bg_attacker = { save_scope_as = bg_opponent } - } - else = { - scope:bg_defender = { save_scope_as = bg_opponent } - } - # TIT-34135 - } - - # Diplomacy: fall back on social acumen. - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.a.random.a - desc = board_games.0001.a.random.b - desc = board_games.0001.a.random.c - desc = board_games.0001.a.random.d - } - } - } - skill = diplomacy - trigger = { - OR = { - scope:bg_skill_a = flag:diplomacy - scope:bg_skill_b = flag:diplomacy - scope:bg_skill_c = flag:diplomacy - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.a.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = diplomacy - LOC_KEY = a - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 0 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = diplomacy - CHARACTER = this - } - - ai_value_modifier = { - ai_sociability = 1 - ai_vengefulness = -1 - } - } - } - - # Martial: play strategically. - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.b.random.a - desc = board_games.0001.b.random.b - desc = board_games.0001.b.random.c - desc = board_games.0001.b.random.d - } - } - } - skill = martial - trigger = { - OR = { - scope:bg_skill_a = flag:martial - scope:bg_skill_b = flag:martial - scope:bg_skill_c = flag:martial - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.b.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = martial - LOC_KEY = b - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 0 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = martial - CHARACTER = this - } - - ai_value_modifier = { - ai_boldness = 1 - ai_energy = 1 - } - } - } - - # Stewardship: play efficiently - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.c.random.a - desc = board_games.0001.c.random.b - desc = board_games.0001.c.random.c - desc = board_games.0001.c.random.d - } - } - } - skill = stewardship - trigger = { - OR = { - scope:bg_skill_a = flag:stewardship - scope:bg_skill_b = flag:stewardship - scope:bg_skill_c = flag:stewardship - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.c.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = stewardship - LOC_KEY = c - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 100 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = stewardship - CHARACTER = this - } - - ai_value_modifier = { - ai_rationality = 1 - # Greed isn't super fitting, tbh, but it's associated with higher stewardship so it makes it easier to judge someone based on their skills. - ai_greed = 1 - } - } - } - - # Intrigue: play with cunning. - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.d.random.a - desc = board_games.0001.d.random.b - desc = board_games.0001.d.random.c - desc = board_games.0001.d.random.d - } - } - } - skill = intrigue - trigger = { - OR = { - scope:bg_skill_a = flag:intrigue - scope:bg_skill_b = flag:intrigue - scope:bg_skill_c = flag:intrigue - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.d.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = intrigue - LOC_KEY = d - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 100 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = intrigue - CHARACTER = this - } - - ai_value_modifier = { - ai_vengefulness = 1 - ai_honor = -1 - } - } - } - - # Learning: play by the (well thought-out) book. - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.e.random.a - desc = board_games.0001.e.random.b - desc = board_games.0001.e.random.c - desc = board_games.0001.e.random.d - } - } - } - skill = learning - trigger = { - OR = { - scope:bg_skill_a = flag:learning - scope:bg_skill_b = flag:learning - scope:bg_skill_c = flag:learning - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.e.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = learning - LOC_KEY = e - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 100 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = learning - CHARACTER = this - } - - ai_value_modifier = { - ai_boldness = -1 - # Sociability isn't anathema to good learning, but it does suggest a more bookish person. - ai_sociability = -1 - } - } - } - - # Prowess: settle arguments over rules with fisticuffs mid-game. - option = { - name = { - text = { - random_valid = { - desc = board_games.0001.f.random.a - desc = board_games.0001.f.random.b - desc = board_games.0001.f.random.c - desc = board_games.0001.f.random.d - } - } - } - skill = prowess - trigger = { - OR = { - scope:bg_skill_a = flag:prowess - scope:bg_skill_b = flag:prowess - scope:bg_skill_c = flag:prowess - } - } - - # Notify the player of the counter type. - custom_tooltip = board_games.0001.f.tt - # Duel-'em-up. - bg_play_move_type_effect = { - SKILL = prowess - LOC_KEY = e - } - - # No stress impact for picking moves, but we apply stress impact in the post-game. - ai_chance = { - base = 100 - - bg_ai_weight_choices_by_skill_modifier = { - SKILL = prowess - CHARACTER = this - } - - ai_value_modifier = { - ai_boldness = 1 - ai_vengefulness = 1 - } - } - } - - after = { - #If we're scope:bg_defender, send scope:bg_attacker their instance of the event. - if = { - limit = { this = scope:bg_defender } - scope:bg_attacker = { trigger_event = board_games.0001 } - } - #Otherwise we're scope:bg_attacker, so end the round. - else = { trigger_event = board_games.0011 } - } -} - -################################################## -# Round End Events -# by Ewan Cowhig Croft -# 0011 - 0020 -################################################## - -scripted_effect bg_calc_current_scores_effect = { - $CURRENT_PLAYER$ = { - set_variable = { - name = bg_current_score - value = { - value = $CURRENT_PLAYER$.var:bg_current_score - # Add results based on move score. - ## First, work out if we've been countered. - if = { - limit = { - exists = scope:bg_counterer - scope:bg_counterer = $OTHER_PLAYER$ - } - # Lots'n'lots for crit successes. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:crit_success } - add = { - value = bg_crit_success_add_value - multiply = bg_counter_mult_value - round = yes - } - } - # Lots for successes. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:success } - add = { - value = bg_success_add_value - multiply = bg_counter_mult_value - round = yes - } - } - # Less for fails. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:failure } - add = { - value = bg_failure_add_value - multiply = bg_counter_mult_value - round = yes - } - } - # Not-lots for crit fails. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:crit_failure } - add = { - value = bg_crit_failure_add_value - multiply = bg_counter_mult_value - round = yes - } - } - } - ## Otherwise, we can use the normal values. - if = { - limit = { - exists = scope:bg_counterer - scope:bg_counterer = $CURRENT_PLAYER$ - } - # Lots'n'lots for crit successes. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:crit_success } - add = bg_crit_success_add_value - } - # Lots for successes. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:success } - add = bg_success_add_value - } - # Less for fails. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:failure } - add = bg_failure_add_value - } - # for crit fails. - if = { - limit = { $CURRENT_PLAYER$.var:bg_move_result = flag:crit_failure } - add = bg_crit_failure_add_value - } - } - } - } - } -} - -scripted_effect bg_finalise_match_end_effect = { - # Track variables. - ## Is either character a player? If so, bookmark them on their opponent. - if = { - limit = { - OR = { - scope:bg_victor = { is_ai = no } - scope:bg_loser = { is_ai = no } - } - } - # Achievement tracking. - if = { - limit = { scope:chess_land ?= yes } - add_achievement_global_variable_effect = { - VARIABLE = fp2_high_stakes_chess_achievement_unlocked - VALUE = yes - } - } - # Process stakes from the interaction. - scope:bg_loser = { - # Mark land stakes especially. - if = { - limit = { scope:chess_land ?= yes } - set_variable = { - name = bg_recent_land_loss_to - value = scope:bg_victor - years = 10 - } - if = { - limit = { scope:bg_loser = scope:recipient } - set_variable = { - name = bg_recent_land_loss_stake - value = scope:bg_stake_land_recipient - years = 10 - } - } - if = { - limit = { scope:bg_loser = scope:actor } - set_variable = { - name = bg_recent_land_loss_stake - value = scope:bg_stake_land_actor - years = 10 - } - } - } - # But also regular gambling. - else_if = { - limit = { - OR = { - scope:chess_gold ?= yes - scope:chess_prestige ?= yes - } - } - set_variable = { - name = bg_recent_gambling_loss_to - value = scope:bg_victor - years = 10 - } - } - # And otherwise we use the default. - else = { - set_variable = { - name = bg_recent_default_loss_to - value = scope:bg_victor - years = 10 - } - } - } - } - ## Is either character a player _or_ a game-master? If so, increment their tallies. - scope:bg_victor = { - if = { - limit = { - OR = { - is_ai = no - # TIT-34022 - } - } - # If they don't have a score tally already, create one. - if = { - limit = { - NOT = { has_variable = bg_win_tally } - } - set_variable = { - name = bg_win_tally - value = 0 - } - } - # Now we make our changes. - change_variable = { - name = bg_win_tally - add = 1 - } - } - } - scope:bg_loser = { - if = { - limit = { - OR = { - is_ai = no - # TIT-34022 - } - } - # If they don't have a score tally already, create one. - if = { - limit = { - NOT = { has_variable = bg_loss_tally } - } - set_variable = { - name = bg_loss_tally - value = 0 - } - } - # Now we make our changes. - change_variable = { - name = bg_loss_tally - add = 1 - } - } - } - # Send out results events. - scope:bg_victor = { trigger_event = board_games.0031 } - scope:bg_loser = { trigger_event = board_games.0041 } - # Clean up effects. - remove_board_game_info_effect = yes - ## Including removing the in-progress match flag for invalidation if this was via interaction. - if = { - limit = { - exists = scope:actor - scope:actor = { has_character_flag = taken_challenge_to_chess_interaction } - } - scope:actor = { remove_character_flag = taken_challenge_to_chess_interaction } - } - # Finally, send out the post-match event for scope:sg_initiator. - scope:bg_initiator = { - trigger_event = { saved_event_id = scope:follow_up_event } - } -} - -# Both players have moved, work out results. -board_games.0011 = { - hidden = yes - - immediate = { - # Work out counterers. - ## First, clear the prior counterer (if any). - clear_saved_scope = bg_counterer - ## Scope:bg_defender. - ### Scope:bg_skill_a > scope:bg_skill_b. - if = { - limit = { - scope:bg_defender_move = scope:bg_skill_a - scope:bg_attacker_move = scope:bg_skill_b - } - scope:bg_defender = { save_scope_as = bg_counterer } - } - ### Scope:bg_skill_b > scope:bg_skill_c. - else_if = { - limit = { - scope:bg_defender_move = scope:bg_skill_b - scope:bg_attacker_move = scope:bg_skill_c - } - scope:bg_defender = { save_scope_as = bg_counterer } - } - ### Scope:bg_skill_c > scope:bg_skill_a. - else_if = { - limit = { - scope:bg_defender_move = scope:bg_skill_c - scope:bg_attacker_move = scope:bg_skill_a - } - scope:bg_defender = { save_scope_as = bg_counterer } - } - ## Scope:bg_attacker. - ### Scope:bg_skill_a > scope:bg_skill_b. - else_if = { - limit = { - scope:bg_attacker_move = scope:bg_skill_a - scope:bg_defender_move = scope:bg_skill_b - } - scope:bg_attacker = { save_scope_as = bg_counterer } - } - ### Scope:bg_skill_b > scope:bg_skill_c. - else_if = { - limit = { - scope:bg_attacker_move = scope:bg_skill_b - scope:bg_defender_move = scope:bg_skill_c - } - scope:bg_attacker = { save_scope_as = bg_counterer } - } - ### Scope:bg_skill_c > scope:bg_skill_a. - else_if = { - limit = { - scope:bg_attacker_move = scope:bg_skill_c - scope:bg_defender_move = scope:bg_skill_a - } - scope:bg_attacker = { save_scope_as = bg_counterer } - } - # Calc new score totals. - bg_calc_current_scores_effect = { - CURRENT_PLAYER = scope:bg_defender - OTHER_PLAYER = scope:bg_attacker - } - bg_calc_current_scores_effect = { - CURRENT_PLAYER = scope:bg_attacker - OTHER_PLAYER = scope:bg_defender - } - # Has anyone managed to win? - ## First we check scope:bg_defender. - if = { - limit = { - scope:bg_defender.var:bg_current_score > bg_winning_threshold_value - scope:bg_defender.var:bg_current_score >= scope:bg_attacker.var:bg_current_score - } - scope:bg_defender = { save_scope_as = bg_victor } - scope:bg_attacker = { save_scope_as = bg_loser } - save_scope_value_as = { - name = bg_victory_type - value = flag:skill - } - bg_finalise_match_end_effect = yes - } - ## Then scope:bg_attacker. - else_if = { - limit = { - scope:bg_attacker.var:bg_current_score > bg_winning_threshold_value - scope:bg_attacker.var:bg_current_score > scope:bg_defender.var:bg_current_score - } - scope:bg_attacker = { save_scope_as = bg_victor } - scope:bg_defender = { save_scope_as = bg_loser } - save_scope_value_as = { - name = bg_victory_type - value = flag:skill - } - bg_finalise_match_end_effect = yes - } - ## Then see if we're above the round limit and should default. - else_if = { - limit = { - scope:bg_defender.var:bg_current_round >= bg_round_cap_value - } - scope:bg_defender = { save_scope_as = bg_victor } - scope:bg_attacker = { save_scope_as = bg_loser } - save_scope_value_as = { - name = bg_victory_type - value = flag:sudden_death - } - bg_finalise_match_end_effect = yes - } - ## Finally, if none of that applies, we just want to spin on to the next event. - else = { - scope:bg_defender = { - change_variable = { - name = bg_current_round - add = 1 - } - trigger_event = board_games.0001 - } - } - } -} - -################################################## -# Default Invalidation Event -# by Ewan Cowhig Croft -# 0021 - 0030 -################################################## - -# The game has invalidated, inform affected parties. -board_games.0021 = { - hidden = yes - - immediate = { - # Inform scope:bg_defender that the game has invalidated. - scope:bg_defender = { - send_interface_toast = { - type = event_toast_effect_neutral - title = board_games.0021.trigger_failure.bg_defender - left_icon = scope:bg_attacker - } - } - # If they're not the same person, inform scope:bg_initiator that the game scope:bg_attacker is playing has invalidated. - if = { - limit = { - scope:bg_attacker != scope:bg_initiator - } - scope:bg_initiator = { - send_interface_toast = { - type = event_toast_effect_neutral - title = board_games.0021.trigger_failure.bg_initiator - left_icon = scope:bg_attacker - right_icon = scope:bg_defender - } - } - } - # Now inform scope:bg_attacker. - scope:bg_attacker = { - send_interface_toast = { - type = event_toast_effect_neutral - title = board_games.0021.trigger_failure.bg_attacker - left_icon = scope:bg_defender - } - } - # Reset cooldowns if this was the interaction. - if = { - limit = { - exists = scope:actor - scope:actor = { has_character_flag = taken_challenge_to_chess_interaction } - } - scope:actor = { - remove_interaction_cooldown = challenge_to_2p_chess_interaction - remove_interaction_cooldown_against = { - interaction = challenge_to_2p_chess_interaction - target = scope:recipient - } - } - } - } -} - -################################################## -# Conclusion Events -# by Ewan Cowhig Croft -# 0031 - 0050 -################################################## -scripted_effect bg_make_friends_after_game_effect = { - duel = { - skill = diplomacy - target = $RECIPIENT$ - # They'd love to play you again. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - opinion_modifier = { - who = $RECIPIENT$ - opinion_target = $ACTOR$ - multiplier = 0.5 - } - desc = board_games.0031.a.tt.success - send_interface_toast = { - type = event_toast_effect_good - title = board_games.0031.a.tt.success - left_icon = $RECIPIENT$ - progress_towards_friend_effect = { - REASON = friend_good_boardgame - CHARACTER = $RECIPIENT$ - OPINION = default_friend_opinion - } - } - } - # They think you suck. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = board_games.0031.a.tt.failure - send_interface_toast = { - type = event_toast_effect_bad - title = board_games.0031.a.tt.failure - left_icon = $RECIPIENT$ - reverse_add_opinion = { - modifier = unfriendly_opinion - target = $RECIPIENT$ - opinion = -30 - } - } - } - } -} - -scripted_effect bg_victor_end_result_tooltip_effect = { - #Clarify the results. - if = { - limit = { scope:bg_victory_type = flag:skill } - custom_tooltip = board_games.0031.desc.result.skill - } - else_if = { - limit = { scope:bg_victory_type = flag:sudden_death } - custom_tooltip = board_games.0031.desc.result.sudden_death - } -} - -scripted_effect bg_loser_end_result_tooltip_effect = { - #Clarify the results. - if = { - limit = { scope:bg_victory_type = flag:skill } - custom_tooltip = board_games.0041.desc.result.skill - } - else_if = { - limit = { scope:bg_victory_type = flag:sudden_death } - custom_tooltip = board_games.0041.desc.result.sudden_death - } -} - -# Scope:bg_victor notification event. -board_games.0031 = { - type = character_event - window = duel_event - title = board_games.0031.t - desc = { - triggered_desc = { # This can be expanded upon with further content if desired, see MR/TIT-34157 comments for more details - trigger = { always = yes } - desc = { # To make it easy to modify and expand upon the dynamic description, it is divided into swappable chunks. - desc = { # SECTION ONE: Descriptor of how you feel/awesome you are >Maximum Word Count: 20< - random_valid = { - desc = board_games.0031.desc.intro.02 - desc = board_games.0031.desc.intro.01 - desc = board_games.0031.desc.intro.03 - } - } - desc = { # SECTION TWO: Descriptor of what happened in the match >Maximum Word Count: 20< - random_valid = { - triggered_desc = { - trigger = { - learning > high_skill_rating - learning > scope:bg_opponent.learning - } - desc = board_games.0031.desc.middle.02 - } - triggered_desc = { - trigger = { - OR = { - piety_level >= high_piety_level - has_trait = zealous - has_trait = holy_warrior - } - } - desc = board_games.0031.desc.middle.03 - } - desc = board_games.0031.desc.middle.01 - } - } - desc = { # SECTION THREE: Descriptor of how the opponent feels/reacts >Maximum Word Count: 20< - random_valid = { - triggered_desc = { - trigger = { scope:bg_opponent = { has_trait = wrathful } } - desc = board_games.0031.desc.end.03 - } - desc = board_games.0031.desc.end.01 - desc = board_games.0031.desc.end.02 - } - } - } - } - } - theme = martial_strategy_focus - - left_portrait = { - character = scope:bg_victor - animation = throne_room_cheer_2 - } - right_portrait = { - character = scope:bg_loser - animation = fear - } - - override_background = { - trigger = { scope:bg_locale = flag:terrain_scope } - reference = terrain_scope - } - override_background = { - trigger = { scope:bg_locale = flag:wilderness_scope } - reference = wilderness_scope - } - override_background = { - trigger = { scope:bg_locale = flag:battlefield } - reference = battlefield - } - override_background = { - trigger = { scope:bg_locale = flag:temple } - reference = temple - } - override_background = { - trigger = { scope:bg_locale = flag:council_chamber } - reference = council_chamber - } - override_background = { - trigger = { scope:bg_locale = flag:courtyard } - reference = courtyard - } - override_background = { - trigger = { scope:bg_locale = flag:dungeon } - reference = dungeon - } - override_background = { - trigger = { scope:bg_locale = flag:docks } - reference = docks - } - override_background = { - trigger = { scope:bg_locale = flag:feast } - reference = feast - } - override_background = { - trigger = { scope:bg_locale = flag:gallows } - reference = gallows - } - override_background = { - trigger = { scope:bg_locale = flag:garden } - reference = garden - } - override_background = { - trigger = { scope:bg_locale = flag:market } - reference = market - } - override_background = { - trigger = { scope:bg_locale = flag:sitting_room } - reference = sitting_room - } - override_background = { - trigger = { scope:bg_locale = flag:bedchamber } - reference = bedchamber - } - override_background = { - trigger = { scope:bg_locale = flag:study } - reference = study - } - override_background = { - trigger = { scope:bg_locale = flag:physicians_study } - reference = physicians_study - } - override_background = { - trigger = { scope:bg_locale = flag:tavern } - reference = tavern - } - override_background = { - trigger = { scope:bg_locale = flag:throne_room } - reference = throne_room - } - override_background = { - trigger = { scope:bg_locale = flag:army_camp } - reference = army_camp - } - - immediate = { - #Hand out Hastiluder reward - if = { - limit = { has_trait = tourney_participant } - add_trait_xp = { - trait = tourney_participant - track = wit - value = { - integer_range = { - min = 1 - max = 5 - } - } - } - } - } - - # Good game! - option = { - name = { - text = { - random_valid = { - desc = board_games.0031.a - desc = board_games.0031.a.a # Untested if this is working - } - } - } - - # Display ending type. - bg_victor_end_result_tooltip_effect = yes - - stress_and_fulfillment_impact = { - gregarious = miniscule_stress_impact_loss - arrogant = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_sociability = 1 - ai_vengefulness = -1 - } - } - } - - # How does it feel to lose, little GetWomanMan? - option = { - name = { text = board_games.0031.b } - name = { # I would *much* rather nest this, but due to script limitations, you cannot nest names like you can descs. It is very unfortuante. - trigger = { - OR = { - has_trait = arrogant - has_trait = wrathful - } - } - text = board_games.0031.b.a - } - name = { - trigger = { - OR = { - has_trait = arrogant - has_trait = wrathful - } - learning > high_skill_rating - learning > scope:bg_opponent.learning - } - text = board_games.0031.b.b - } - - # Display ending type. - bg_victor_end_result_tooltip_effect = yes - # Progress towards rival. - scope:bg_loser = { - send_interface_toast = { - type = event_toast_effect_neutral - title = board_games.0031.b.progress_towards_rival - left_icon = scope:bg_victor - scope:bg_victor = { - progress_towards_rival_effect = { - REASON = rival_you_won_boardgame_challenge - CHARACTER = scope:bg_loser - OPINION = default_rival_opinion - } - } - } - } - - stress_and_fulfillment_impact = { - greedy = miniscule_stress_impact_loss - # Removed: Lustful - } - ai_chance = { - # Low base chance so that only really sore losers will pick fights over simple games. - base = 0 - ai_value_modifier = { - ai_vengefulness = 1 - ai_sociability = -1 - } - } - } - - # I'd love to play again some time... - option = { - name = board_games.0031.c - # We don't let you try this against players, mostly for simplicity's sakes. - trigger = { is_ai = no } - - # Display ending type. - bg_victor_end_result_tooltip_effect = yes - # Try to make friends by running a duel. - bg_make_friends_after_game_effect = { - ACTOR = scope:bg_victor - RECIPIENT = scope:bg_loser - } - - stress_and_fulfillment_impact = { - humble = miniscule_stress_impact_loss - forgiving = miniscule_stress_impact_loss - gregarious = miniscule_stress_impact_loss - arrogant = medium_stress_impact_gain - vengeful = major_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_sociability = 1 - ai_vengefulness = -1 - } - } - } - - # And perhaps, a lucky board... - after = { - # We only support chess boards at the moment. - if = { - limit = { scope:bg_system = flag:chess } - # Hidden effect because random is a precious special snowflake that insists on telling you the percentage chance even when it has nothing to show >:(. - hidden_effect = { - random = { - chance = { - # Default odds are low. - value = 5 - # But if we won a county, we boost 'em. - if = { - limit = { scope:chess_land ?= yes } - multiply = 5 - } - } - trigger_event = { - id = board_games.0051 - months = 6 - } - } - } - } - } -} - -# Scope:bg_loser notification event. -board_games.0041 = { - type = character_event - window = duel_event - title = board_games.0041.t - desc = { - triggered_desc = { # Same comment applies above. When adding new content, I recommend adding an equal amount for both winning and losing. - trigger = { always = yes } - desc = { # To make it easy to modify and expand upon the dynamic description, it is divided into swappable chunks. - desc = { # SECTION ONE: Descriptor of how the opponent feels/reacts >Maximum Word Count: 20< - random_valid = { - desc = board_games.0041.desc.intro.02 - desc = board_games.0041.desc.intro.01 - desc = board_games.0041.desc.intro.03 - } - } - desc = { # SECTION TWO: Descriptor of what happened in the match >Maximum Word Count: 20< - random_valid = { - triggered_desc = { - trigger = { scope:bg_opponent = { learning < low_skill_rating } } - desc = board_games.0041.desc.middle.02 - } - triggered_desc = { - trigger = { - martial > very_high_skill_rating - martial > scope:bg_opponent.martial - has_trait = wrathful - } - desc = board_games.0041.desc.middle.03 - } - desc = board_games.0041.desc.middle.01 - } - } - desc = { # SECTION THREE: Descriptor of how you feel/terrible you are >Maximum Word Count: 20< - random_valid = { - triggered_desc = { - trigger = { has_trait = wrathful } - desc = board_games.0041.desc.end.03 - } - desc = board_games.0041.desc.end.01 - desc = board_games.0041.desc.end.02 - } - } - } - } - } - theme = martial_strategy_focus - - left_portrait = { - character = scope:bg_loser - animation = fear - } - right_portrait = { - character = scope:bg_victor - animation = throne_room_cheer_2 - } - - override_background = { - trigger = { scope:bg_locale = flag:terrain_scope } - reference = terrain_scope - } - override_background = { - trigger = { scope:bg_locale = flag:wilderness_scope } - reference = wilderness_scope - } - override_background = { - trigger = { scope:bg_locale = flag:battlefield } - reference = battlefield - } - override_background = { - trigger = { scope:bg_locale = flag:temple } - reference = temple - } - override_background = { - trigger = { scope:bg_locale = flag:council_chamber } - reference = council_chamber - } - override_background = { - trigger = { scope:bg_locale = flag:courtyard } - reference = courtyard - } - override_background = { - trigger = { scope:bg_locale = flag:dungeon } - reference = dungeon - } - override_background = { - trigger = { scope:bg_locale = flag:docks } - reference = docks - } - override_background = { - trigger = { scope:bg_locale = flag:feast } - reference = feast - } - override_background = { - trigger = { scope:bg_locale = flag:gallows } - reference = gallows - } - override_background = { - trigger = { scope:bg_locale = flag:garden } - reference = garden - } - override_background = { - trigger = { scope:bg_locale = flag:market } - reference = market - } - override_background = { - trigger = { scope:bg_locale = flag:sitting_room } - reference = sitting_room - } - override_background = { - trigger = { scope:bg_locale = flag:bedchamber } - reference = bedchamber - } - override_background = { - trigger = { scope:bg_locale = flag:study } - reference = study - } - override_background = { - trigger = { scope:bg_locale = flag:physicians_study } - reference = physicians_study - } - override_background = { - trigger = { scope:bg_locale = flag:tavern } - reference = tavern - } - override_background = { - trigger = { scope:bg_locale = flag:throne_room } - reference = throne_room - } - override_background = { - trigger = { scope:bg_locale = flag:army_camp } - reference = army_camp - } - - immediate = { - #Hand out Hastiluder reward - if = { - limit = { has_trait = tourney_participant } - add_trait_xp = { - trait = tourney_participant - track = wit - value = { - integer_range = { - min = 1 - max = 5 - } - } - } - } - } - - # We'll see who wins next time... - option = { - name = board_games.0041.a - - # Display ending type. - bg_loser_end_result_tooltip_effect = yes - - stress_and_fulfillment_impact = { - gregarious = miniscule_stress_impact_loss - arrogant = minor_stress_impact_gain - vengeful = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_sociability = 1 - ai_vengefulness = -1 - } - } - } - - # You've made an enemy here today. - option = { - name = { text = board_games.0041.b } - name = { - trigger = { - OR = { - has_trait = arrogant - has_trait = wrathful - } - OR = { - has_trait = zealous - has_trait = holy_warrior - has_trait = heresiarch - has_trait = devoted - } - } - text = board_games.0041.b.b - } - - # Display ending type. - bg_loser_end_result_tooltip_effect = yes - # Progress towards rival. - scope:bg_victor = { - send_interface_toast = { - type = event_toast_effect_neutral - title = board_games.0031.b.progress_towards_rival - left_icon = scope:bg_loser - scope:bg_loser = { - progress_towards_rival_effect = { - REASON = rival_won_boardgame_challenge - CHARACTER = scope:bg_victor - OPINION = default_rival_opinion - } - } - } - } - - stress_and_fulfillment_impact = { - arrogant = miniscule_stress_impact_loss - vengeful = miniscule_stress_impact_loss - humble = medium_stress_impact_gain - forgiving = major_stress_impact_gain - } - ai_chance = { - # Low base chance so that only really sore losers will pick fights over simple games. - base = 0 - ai_value_modifier = { - ai_vengefulness = 1 - ai_sociability = -1 - } - } - } - - # Well, the better GetWomanMan won! - option = { - name = board_games.0041.c - # We don't let you try this against players, mostly for simplicity's sakes. - trigger = { is_ai = no } - - # Display ending type. - bg_loser_end_result_tooltip_effect = yes - # Run the duel. - bg_make_friends_after_game_effect = { - ACTOR = scope:bg_loser - RECIPIENT = scope:bg_victor - } - - stress_and_fulfillment_impact = { - humble = miniscule_stress_impact_loss - forgiving = miniscule_stress_impact_loss - gregarious = miniscule_stress_impact_loss - arrogant = medium_stress_impact_gain - vengeful = major_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_sociability = 1 - ai_vengefulness = -1 - } - } - } -} - -################################################## -# Lucky Chess Board -# by Ewan Cowhig Croft -# 0051 - 0060 -################################################## - -# You favour a particular chess board after a lucky win. -board_games.0051 = { - type = character_event - title = board_games.0051.t - desc = board_games.0051.desc - theme = martial_strategy_focus - left_portrait = { - character = scope:bg_victor - animation = admiration - } - right_portrait = { - character = scope:bg_loser - animation = dismissal - } - override_background = { reference = sitting_room } - - #cooldown = { years = 100 } - - trigger = { - # DLC check. - OR = { - has_fp2_dlc_trigger = yes - has_tgp_dlc_trigger = yes - } - # Standard checks. - is_available_at_peace_adult = yes - is_landed = yes - # Doesn't have a suitable board game. - NOT = { - any_character_artifact = { has_variable = can_be_used_for_board_games } - } - } - - # Ahhh, sure to bring good luck forever more! - option = { - name = board_games.0051.a - - # You gain a standard 2p chess board! - create_artifact_fp2_2p_chess_board_effect = { OWNER = scope:bg_victor } - - # No stress impact here. - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = 1 - ai_rationality = 0.5 - } - } - } - - # Just a few more pieces and I could have a rare set... - option = { - name = board_games.0051.b - trigger = { - location = { - bg_game_type_region_go_trigger = no - } - } - - remove_short_term_gold = medium_gold_value - - # You gain an exotic 4p chess board! - create_artifact_fp2_4p_chess_board_effect = { OWNER = scope:bg_victor } - - # No stress impact here. - ai_chance = { - base = 10 - ai_value_modifier = { - ai_sociability = 1 - ai_energy = 0.5 - } - } - } - - # I don't need special toys. - option = { - name = board_games.0051.c - - # You're truckin' along just fine without all these newfangled games. - add_stress = minor_stress_loss - - # No stress impact here. - ai_chance = { - base = 10 - ai_value_modifier = { - ai_rationality = -0.25 - ai_sociability = -0.5 - } - } - } -} - - -################################################## -# Debug Events -# by Ewan Cowhig Croft -# 0101 - 0130 -################################################## - -# Error suppression. -board_games.0101 = { - hidden = yes - orphan = yes - - immediate = { - # Hidden effect blocks used for easy collapsing. - # Types of game. - hidden_effect = { - save_scope_value_as = { - name = bg_system - value = flag:chess - } - save_scope_value_as = { - name = bg_system - value = flag:pachisi - } - save_scope_value_as = { - name = bg_system - value = flag:tabula - } - save_scope_value_as = { - name = bg_system - value = flag:hnefatafl - } - save_scope_value_as = { - name = bg_system - value = flag:go - } - save_scope_value_as = { - name = bg_system - value = flag:fidchell - } - } - # Backgrounds. - hidden_effect = { - save_scope_value_as = { - name = bg_locale - value = flag:terrain_scope - } - save_scope_value_as = { - name = bg_locale - value = flag:wilderness_scope - } - save_scope_value_as = { - name = bg_locale - value = flag:battlefield - } - save_scope_value_as = { - name = bg_locale - value = flag:temple - } - save_scope_value_as = { - name = bg_locale - value = flag:council_chamber - } - save_scope_value_as = { - name = bg_locale - value = flag:courtyard - } - save_scope_value_as = { - name = bg_locale - value = flag:dungeon - } - save_scope_value_as = { - name = bg_locale - value = flag:docks - } - save_scope_value_as = { - name = bg_locale - value = flag:feast - } - save_scope_value_as = { - name = bg_locale - value = flag:gallows - } - save_scope_value_as = { - name = bg_locale - value = flag:garden - } - save_scope_value_as = { - name = bg_locale - value = flag:market - } - save_scope_value_as = { - name = bg_locale - value = flag:sitting_room - } - save_scope_value_as = { - name = bg_locale - value = flag:bedchamber - } - save_scope_value_as = { - name = bg_locale - value = flag:study - } - save_scope_value_as = { - name = bg_locale - value = flag:physicians_study - } - save_scope_value_as = { - name = bg_locale - value = flag:tavern - } - save_scope_value_as = { - name = bg_locale - value = flag:throne_room - } - save_scope_value_as = { - name = bg_locale - value = flag:army_camp - } - } - # Random variables. - hidden_effect = { - if = { - limit = { exists = var:bg_recent_land_loss_stake } - } - } - } -} - -# Debug board games. -board_games.0102 = { - type = character_event - title = board_games.0102.t - desc = board_games.0102.desc - theme = martial_strategy_focus - left_portrait = { - character = scope:actor - animation = throne_room_applaud_1 - } - right_portrait = { - character = scope:recipient - animation = fear - } - override_background = { reference = sitting_room } - - # Ordinary game, please. - option = { - name = board_games.0102.a - - # No special anything needed. - } - - # Foe only uses winning locs, please. - option = { - name = board_games.0102.b - - set_variable = bg_gib_only_winning_locs - } - - # Foe only uses losing locs, please. - option = { - name = board_games.0102.c - - set_variable = bg_gib_only_losing_locs - } - - after = { - # Chess. - if = { - limit = { scope:board_game_chess = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = chess - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - # Pachisi. - if = { - limit = { scope:board_game_pachisi = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = pachisi - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - # Tabula. - if = { - limit = { scope:board_game_tabula = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = tabula - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - # Hnefatafl. - if = { - limit = { scope:board_game_hnefatafl = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = hnefatafl - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - # Go. - if = { - limit = { scope:board_game_go = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = go - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - # Fidchell. - if = { - limit = { scope:board_game_fidchell = yes } - configure_start_board_game_effect = { - BG_INITIATOR = scope:actor - BG_ATTACKER = scope:actor - BG_DEFENDER = scope:recipient - SYSTEM = fidchell - LOCALE = random_nice_day - OUTPUT_EVENT = perk_interaction.0121 - INVALIDATION_EVENT = board_games.0021 - } - } - } -} diff --git a/events/court_maintenance_events.txt b/events/court_maintenance_events.txt deleted file mode 100644 index d47119803..000000000 --- a/events/court_maintenance_events.txt +++ /dev/null @@ -1,715 +0,0 @@ -#Court Maintenance events of various persuasions - -namespace = court_maintenance - -#Children should acquire personality trait events -court_maintenance.0003 = { - hidden = yes - - trigger = { - OR = { - is_adult = no - any_courtier_or_guest = { - is_adult = no - } - any_prisoner = { - is_adult = no - } - } - } - - immediate = { - if = { - limit = { - is_adult = no - OR = { - age = 9 - age = 11 - age = 13 - age >= 14 #Backup in case something has gone wrong - } - number_of_personality_traits < childhood_personality_trait_gain_limit - } - if = { - limit = { - age = 9 - has_variable = reincarnation_of - can_become_reincarnation_trigger = yes - } - trigger_event = child_personality.9900 - } - else = { - trigger_event = { - on_action = child_personality_gain - days = { 1 360 } - } - } - } - every_courtier_or_guest = { - limit = { - is_adult = no - OR = { - age = 9 - age = 11 - age = 13 - age >= 14 #Backup in case something has gone wrong - } - number_of_personality_traits < childhood_personality_trait_gain_limit - } - trigger_event = { - on_action = child_personality_gain - days = { 1 360 } - } - } - #Small random chance to acquire a fourth personality trait - every_courtier_or_guest = { - limit = { - is_adult = no - number_of_personality_traits = childhood_personality_trait_gain_limit - number_of_personality_traits < personality_trait_limit - } - random = { - chance = childhood_fourth_personality_trait_chance - trigger_event = { - on_action = child_personality_gain - days = { 1 360 } - } - } - } - every_prisoner = { - limit = { - is_adult = no - OR = { - age = 9 - age = 11 - age = 13 - age >= 14 #Backup in case something has gone wrong - } - number_of_personality_traits < childhood_personality_trait_gain_limit - } - trigger_event = { - on_action = child_personality_gain - days = { 1 360 } - } - } - #Small random chance to acquire a fourth personality trait - every_prisoner = { - limit = { - is_adult = no - number_of_personality_traits = childhood_personality_trait_gain_limit - number_of_personality_traits < personality_trait_limit - } - random = { - chance = childhood_fourth_personality_trait_chance - trigger_event = { - on_action = child_personality_gain - days = { 1 360 } - } - } - } - } -} - -court_maintenance.0005 = { - hidden = yes - - trigger = { - scope:new_employer = { - government_has_flag = government_is_holy_order - } - } - - immediate = { - if = { - limit = { - government_has_flag = government_is_military_holy_order - } - add_trait = order_member - } - if = { - limit = { - government_has_flag = government_is_monastic_holy_order - } - add_trait = devoted - } - } -} - -#Absent from your court -court_maintenance.0010 = { - theme = crown - override_background = { reference = council_chamber } - type = character_event - title = court_maintenance.0010.t - left_portrait = { - character = scope:messenger - animation = worry - } - - cooldown = { years = 5 } - - trigger = { - always = no # Disabled for now - has_royal_court = yes - has_dlc_feature = royal_court - is_ai = no - is_available_adult = yes - is_at_war = no - } - - desc = { - desc = court_maintenance.0010.desc - first_valid = { - triggered_desc = { - trigger = { - exists = scope:great_cgv_court - } - desc = court_maintenance.0010.desc.seeking_gainful_employment - } - desc = court_maintenance.0010.desc.general_ending - } - } - - immediate = { - ordered_independent_ruler = { - order_by = court_grandeur_current - limit = { - faith.religion = root.faith.religion - in_diplomatic_range = root - this != root - } - alternative_limit = { - this != root - in_diplomatic_range = root - } - alternative_limit = { - this != root - } - save_scope_as = great_cgv_court - } - random_courtier = { - limit = { - has_any_court_position = yes - } - alternative_limit = { - is_available_adult = yes - } - save_scope_as = messenger - } - } - - option = { - name = court_maintenance.0010.a - #Open Royal Court - custom_tooltip = court_maintenance.0010.a.tooltip - open_view_data = { - view = royal_court - player = root - } - } - - option = { - name = { - text = court_maintenance.0010.b.paranoid - trigger = { has_trait = paranoid } - } - name = { - text = court_maintenance.0010.b.depressed - trigger = { has_trait = depressed } - } - name = { - text = court_maintenance.0010.b.brave - trigger = { has_trait = brave } - } - name = { - text = court_maintenance.0010.b - trigger = { always = yes } - } - change_current_court_grandeur = miniscule_court_grandeur_loss - if = { - limit = { exists = scope:great_cgv_court } - custom_tooltip = court_maintenance.0010.b.tooltip - } - hidden_effect = { - if = { - limit = { exists = scope:great_cgv_court } - random_courtier = { - limit = { - has_any_court_position = no - is_physically_able_ai_adult = yes - is_councillor = no - NOT = { is_vassal_of = root } - NOT = { is_close_family_of = ROOT } - } - set_employer = scope:great_cgv_court - return_to_court = yes - } - } - } - } -} - -#Gained a Royal Court -court_maintenance.0011 = { - theme = new_royal_court - type = character_event - title = { - first_valid = { - triggered_desc = { - trigger = { tgp_is_ceremonial_regent_trigger = yes } # Not 'actual' ruler - desc = court_maintenance.0011.t.regent - } - desc = court_maintenance.0011.t - } - } - window = visit_settlement_window - desc = { - first_valid = { - triggered_desc = { - trigger = { tgp_is_ceremonial_regent_trigger = yes } # Not 'actual' ruler - desc = court_maintenance.0011.desc.regent - } - triggered_desc = { - trigger = { coronation_trigger = yes } - desc = court_maintenance.0011.desc.ach - } - desc = court_maintenance.0011.desc - } - } - - left_portrait = { - character = root - animation = war_over_win - } - right_portrait = { - character = scope:messenger - animation = ecstasy - } - artifact = { # To display the dynasty banner in the event-window - target = scope:dynasty_banner - position = lower_center_portrait - } - artifact = { # To display the house banner in the event-window - target = scope:house_banner - position = lower_right_portrait - } - - trigger = { - is_ai = no - is_landed = yes - has_dlc_feature = royal_court - # To avoid farming and duplication - OR = { - # No owned house banner - NOT = { - any_character_artifact = { - var:banner_house ?= root.house - } - } - AND = { - # Is Dynasty Head - OR = { - this = dynasty.dynast # Dynasty Head - any_parent = { # Parent landless - employer = prev - dynasty ?= prev.dynasty - this = dynasty.dynast - } - } - # Dynasty banner does not exist - NOT = { - any_character_artifact = { - var:banner_dynasty ?= root.dynasty - } - } - } - } - } - - immediate = { - tgp_save_realm_ceremonial_liege_effect = yes - if = { - limit = { - coronation_trigger = yes - NOT = { has_game_rule = coronation_laws_off } - } - coronation_reset_realm_law_effect = yes #we need to reset the crown laws immediately, not wait for the next tick - set_variable = coronation_discount - custom_tooltip = court_maintenance.0011.coronation_discount - - # Coronations law - show_as_tooltip = { - add_realm_law = uncrowned - } - - # Artifact for Coronations setup - create_proper_coronation_artifact_setup = yes - } - - if = { - limit = { - exists = cp:councillor_chancellor - } - cp:councillor_chancellor = { save_scope_as = messenger } - } - else_if = { - limit = { - any_councillor = { - is_kurultai_trigger = yes - } - } - random_councillor = { - limit = { - is_kurultai_trigger = yes - } - save_scope_as = messenger - } - } - else = { - random_vassal = { save_scope_as = messenger } - } - #House banner - if = { - limit = { - tgp_is_ceremonial_regent_trigger = no - NOT = { - any_character_artifact = { - has_variable = banner_house - var:banner_house = root.house - } - } - } - set_variable = banner_from_house - create_artifact_wall_banner_effect = { - OWNER = root - CREATOR = scope:messenger - TARGET = root.house - } - if = { # For artifact portraits - limit = { exists = scope:newly_created_artifact } - scope:newly_created_artifact = { save_scope_as = house_banner } - } - } - #Dynasty banner - if = { - limit = { - tgp_is_ceremonial_regent_trigger = no - OR = { - this = dynasty.dynast # Dynasty Head - any_parent = { # Parent landless - employer = root - dynasty = root.dynasty - this = dynasty.dynast - } - } - NOT = { - any_character_artifact = { - has_variable = banner_dynasty - var:banner_dynasty = root.dynasty - } - } - } - set_variable = banner_from_dynasty - create_artifact_wall_banner_effect = { - OWNER = root - CREATOR = scope:messenger - TARGET = root.dynasty - } - if = { # For artifact portraits - limit = { exists = scope:newly_created_artifact } - scope:newly_created_artifact = { save_scope_as = dynasty_banner } - } - } - #Both - if = { - limit = { - exists = scope:house_banner - exists = scope:dynasty_banner - } - custom_tooltip = court_maintenance.0011.banner_tooltip - } - #House - else_if = { - limit = { exists = scope:house_banner } - custom_tooltip = court_maintenance.0011.banner_house_tooltip - } - #Dynasty - else_if = { - limit = { exists = scope:dynasty_banner } - custom_tooltip = court_maintenance.0011.banner_dynasty_tooltip - } - - # Add extra legitimacy, for the first time they gain the Kingdom title - add_legitimacy_effect = { LEGITIMACY = major_legitimacy_gain } - } - - option = { - name = court_maintenance.0011.coronation - custom_tooltip = court_maintenance.0011.coronation.tooltip - trigger = { - coronation_trigger = yes - NOR = { - has_character_flag = had_coronation_prompt - has_game_rule = coronation_laws_off - tgp_is_ceremonial_regent_trigger = yes - } - } - if = { #ai should always go straight for it if they can - limit = { is_ai = yes can_host_activity = activity_coronation } - ai_attempt_to_host_activity = activity_coronation - } - else_if = { #if you already have a crown, a window opened for you sire - limit = { coronation_has_proper_artifact_trigger = yes is_ai = no } - open_view_data = { - view = activity_list_detail_host_window - data = activity_type:activity_coronation - player = root - } - } - else = { #Else we start creating a crown - create_proper_coronation_artifact_creation = yes - } - - custom_tooltip = court_maintenance.0011.b.tooltip - - ai_chance = { #AI should always start hosting coronations - base = 100 - } - } - - option = { - name = { - text = court_maintenance.0011.a - trigger = { tgp_is_ceremonial_regent_trigger = no } # Not 'actual' ruler - } - name = { - text = court_maintenance.0011.a.regent - trigger = { tgp_is_ceremonial_regent_trigger = yes } # Not 'actual' ruler - } - #Open Royal Court - custom_tooltip = court_maintenance.0011.a.tooltip - if = { - limit = { - coronation_trigger = yes - tgp_is_ceremonial_regent_trigger = no # Not 'actual' ruler - NOR = { - has_character_flag = had_coronation_prompt - has_game_rule = coronation_laws_off - government_has_flag = government_is_mandala - } - } - custom_tooltip = court_maintenance.0011.b.tooltip.ach - } - open_view_data = { - view = royal_court - player = root - } - } - option = { - name = court_maintenance.0011.b - custom_tooltip = court_maintenance.0011.b.tooltip - if = { - limit = { - coronation_trigger = yes - tgp_is_ceremonial_regent_trigger = no # Not 'actual' ruler - NOR = { - has_character_flag = had_coronation_prompt - has_game_rule = coronation_laws_off - government_has_flag = government_is_mandala - } - } - custom_tooltip = court_maintenance.0011.b.tooltip.ach - } - } - - after = { - add_character_flag = had_coronation_prompt - if = { - limit = { - has_tgp_dlc_trigger = yes - government_allows = merit - NOT = { government_has_flag = government_is_celestial } #Created from cycle - } - create_artifact_dynastic_imperial_seal_effect = { - OWNER = root - SMITH = root - } - } - } -} - -#Dynasty Banner improves -scripted_trigger dynasty_banner_improve_rarity_trigger = { - trigger_if = { - limit = { root.dynasty.dynasty_prestige_level = max_dynasty_prestige_level } - NOT = { rarity = illustrious } - } - trigger_else_if = { - limit = { root.dynasty.dynasty_prestige_level >= high_dynasty_prestige_level } - NOR = { - rarity = famed - rarity = illustrious - } - } - trigger_else = { - root.dynasty.dynasty_prestige_level >= medium_dynasty_prestige_level - NOR = { - rarity = masterwork - rarity = famed - rarity = illustrious - } - } -} - -scripted_effect dynasty_banner_improve_rarity_effect = { - if = { - limit = { scope:target.dynasty_prestige_level = max_dynasty_prestige_level } - set_artifact_rarity = illustrious - } - else_if = { - limit = { scope:target.dynasty_prestige_level >= high_dynasty_prestige_level } - set_artifact_rarity = famed - } - else = { set_artifact_rarity = masterwork } - hidden_effect = { - set_artifact_description = artifact_wall_banner_dynasty_description - clear_artifact_modifiers = yes - add_scaled_artifact_modifier_grandeur_small_effect = yes - add_scaled_artifact_modifier_dynasty_prestige_effect = yes - add_scaled_artifact_modifier_prestige_effect = yes - add_scaled_artifact_modifier_rulership_effect = yes - } -} - -court_maintenance.0012 = { - theme = new_royal_court - type = character_event - title = court_maintenance.0012.t - desc = { - desc = court_maintenance.0012.desc - first_valid = { - triggered_desc = { - trigger = { scope:target.dynasty_prestige_level = max_dynasty_prestige_level } - desc = court_maintenance.0012.desc_illustrious - } - triggered_desc = { - trigger = { scope:target.dynasty_prestige_level >= high_dynasty_prestige_level } - desc = court_maintenance.0012.desc_masterwork - } - desc = court_maintenance.0012.desc_famed - } - } - left_portrait = { - character = root - animation = personality_honorable - } - artifact = { # To display the artifact in the event-window - target = scope:banner_scope - position = lower_right_portrait - } - - trigger = { - any_character_artifact = { - trigger_if = { # To stop errors - limit = { exists = var:banner_dynasty } # is a dynasty banner - var:banner_dynasty = root.dynasty # of my dynasty - dynasty_banner_improve_rarity_trigger = yes # and should be a higher level - } - trigger_else = { always = no } - } - } - - immediate = { - dynasty = { save_scope_as = target } # for banner desc - # save relevant banners (all just in case) - every_character_artifact = { - limit = { - has_variable = banner_dynasty - var:banner_dynasty = root.dynasty - dynasty_banner_improve_rarity_trigger = yes - } - add_to_list = dynasty_banner_list - } - random_in_list = { - list = dynasty_banner_list - limit = { is_equipped = yes } - alternative_limit = { always = yes } - save_scope_as = banner_scope - save_scope_as = newly_created_artifact - } - every_in_list = { - list = dynasty_banner_list - dynasty_banner_improve_rarity_effect = yes - } - } - - option = { - name = court_maintenance.0012.a - } -} - -court_maintenance.0013 = { - theme = new_royal_court - type = character_event - title = court_maintenance.0013.t - desc = { - desc = court_maintenance.0013.desc - first_valid = { - triggered_desc = { - trigger = { - exists = scope:banner_scope.var:banner_commissioner - scope:banner_scope.var:banner_commissioner != root - } - desc = court_maintenance.0013.desc_creator - } - desc = court_maintenance.0013.desc_fallback - } - } - left_portrait = { - character = root - animation = personality_honorable - } - artifact = { # To display the artifact in the event-window - target = scope:banner_scope - position = lower_right_portrait - } - - trigger = { - any_character_artifact = { # Has more than one dynasty banner of own dynasty - count > 1 - trigger_if = { # To stop errors - limit = { exists = var:banner_dynasty } - var:banner_dynasty = root.dynasty - } - trigger_else = { always = no } - } - } - - immediate = { - every_character_artifact = { # Fetch all dynasty banners - limit = { - has_variable = banner_dynasty - var:banner_dynasty = root.dynasty - } - add_to_list = dynasty_banner_list - } - ordered_in_list = { # Save oldest dynasty banner - list = dynasty_banner_list - order_by = artifact_age - save_scope_as = banner_scope - } - every_in_list = { # Destroy all but oldest dynasty banner - list = dynasty_banner_list - limit = { - this != scope:banner_scope - } - destroy_artifact = this - } - } - - option = { - name = court_maintenance.0013.a - custom_tooltip = court_maintenance.0013.tt - - } -} diff --git a/events/court_position_management_events.txt b/events/court_position_management_events.txt deleted file mode 100644 index 510406de9..000000000 --- a/events/court_position_management_events.txt +++ /dev/null @@ -1,261 +0,0 @@ -# Court Position re-assignment events -namespace = court_position_management_event - -# Generic / landed character court position vacated event, offer the up to two best candidates by aptitude -court_position_management_event.0001 = { - type = character_event - title = court_position_management_event.0001.t - theme = court - - desc = { - desc = court_position_management_event.0001.desc - triggered_desc = { - trigger = { - scope:employee = { - is_alive = no - } - } - desc = court_position_management_event.0001.desc.dead - } - triggered_desc = { - trigger = { - exists = scope:candidate_1 - NOT = { exists = scope:candidate_2 } - } - desc = court_position_management_event.0001.desc.one_candidate - } - triggered_desc = { - trigger = { - exists = scope:candidate_1 - exists = scope:candidate_2 - } - desc = court_position_management_event.0001.desc.two_candidates - } - triggered_desc = { - trigger = { - NOT = { exists = scope:candidate_1 } - NOT = { exists = scope:candidate_2 } - } - desc = court_position_management_event.0001.desc.no_candidates - } - } - - immediate = { - if = { - limit = { - NOT = { exists = scope:candidate_1 } - NOT = { exists = scope:candidate_2 } - } - save_scope_as = left_portrait_character - } - else = { - scope:candidate_1 = { - save_scope_as = left_portrait_character - } - } - } - - left_portrait = { - character = scope:left_portrait_character - - # If we have no candidates, we're just stand there, thinking - triggered_animation = { - trigger = { scope:left_portrait_character = root } - animation = thinking - } - } - - right_portrait = scope:candidate_2 - lower_center_portrait = scope:employee - - # Pick candidate #1 - option = { - name = court_position_management_event.0001.a - custom_tooltip = court_position_management_event.0001.a.aptitude - trigger = { - exists = scope:candidate_1 - exists = scope:court_position_type - } - appoint_court_position = { - recipient = scope:candidate_1 - court_position = scope:court_position_type - } - } - - # Pick candidate #2 - option = { - name = court_position_management_event.0001.b - custom_tooltip = court_position_management_event.0001.b.aptitude - trigger = { - exists = scope:candidate_2 - } - appoint_court_position = { - recipient = scope:candidate_2 - court_position = scope:court_position_type - } - } - - # Go to a recruitment decision - option = { - name = court_position_management_event.0001.c - custom_tooltip = court_position_management_event.0001.c.tt - - # Court positions that are valid in 'recruit_court_position_decision' - trigger = { - NOT = { exists = scope:candidate_1 } - NOT = { exists = scope:candidate_2 } - OR = { - scope:court_position_type = court_position_type:travel_leader_court_position - scope:court_position_type = court_position_type:court_physician_court_position - scope:court_position_type = court_position_type:wet_nurse_court_position - scope:court_position_type = court_position_type:charioteer_court_position - scope:court_position_type = court_position_type:chief_eunuch_court_position - scope:court_position_type = court_position_type:court_gardener_court_position - } - } - - open_view_data = { - view = decision_detail - data = decision:recruit_court_position_decision - player = root - } - } - - # I will figure this out myself - option = { - name = court_position_management_event.0001.d - custom_tooltip = court_position_management_event.0001.d.tt - - trigger = { - exists = scope:candidate_1 - } - - open_view_data = { - view = appoint_position - data = scope:court_position_type - player = root - } - } - - # Leave it open - option = { - name = court_position_management_event.0001.e - } -} - - -# Landless adventurer court position vacated event, offer the up to two best candidates by aptitude -court_position_management_event.0002 = { - type = character_event - title = court_position_management_event.0002.t - theme = landless_adventurer - - desc = { - desc = court_position_management_event.0002.desc - triggered_desc = { - trigger = { - scope:employee = { - is_alive = no - } - } - desc = court_position_management_event.0002.desc.dead - } - triggered_desc = { - trigger = { - exists = scope:candidate_1 - NOT = { exists = scope:candidate_2 } - } - desc = court_position_management_event.0002.desc.one_candidate - } - triggered_desc = { - trigger = { - exists = scope:candidate_1 - exists = scope:candidate_2 - } - desc = court_position_management_event.0002.desc.two_candidates - } - triggered_desc = { - trigger = { - NOT = { exists = scope:candidate_1 } - NOT = { exists = scope:candidate_2 } - } - desc = court_position_management_event.0002.desc.no_candidates - } - } - - immediate = { - if = { - limit = { - NOT = { exists = scope:candidate_1 } - NOT = { exists = scope:candidate_2 } - } - save_scope_as = left_portrait_character - } - else = { - scope:candidate_1 = { - save_scope_as = left_portrait_character - } - } - } - - left_portrait = { - character = scope:left_portrait_character - - # If we have no candidates, we're just stand there, thinking - triggered_animation = { - trigger = { scope:left_portrait_character = root } - animation = thinking - } - } - - right_portrait = scope:candidate_2 - lower_center_portrait = scope:employee - - # Pick candidate #1 - option = { - name = court_position_management_event.0002.a - custom_tooltip = court_position_management_event.0002.a.aptitude - trigger = { - exists = scope:candidate_1 - exists = scope:court_position_type - } - appoint_court_position = { - recipient = scope:candidate_1 - court_position = scope:court_position_type - } - } - - # Pick candidate #2 - option = { - name = court_position_management_event.0002.b - custom_tooltip = court_position_management_event.0002.b.aptitude - trigger = { - exists = scope:candidate_2 - } - appoint_court_position = { - recipient = scope:candidate_2 - court_position = scope:court_position_type - } - } - - # I will figure this out myself - option = { - name = court_position_management_event.0002.d - custom_tooltip = court_position_management_event.0002.d.tt - - trigger = { - exists = scope:candidate_1 - } - - open_view_data = { - view = appoint_position - data = scope:court_position_type - player = root - } - } - - # Leave it open - option = { - name = court_position_management_event.0002.e - } -} diff --git a/events/marriage_effect_events.txt b/events/marriage_effect_events.txt deleted file mode 100644 index 8834f08a6..000000000 --- a/events/marriage_effect_events.txt +++ /dev/null @@ -1,1127 +0,0 @@ -#################### -# MARRIAGE EFFECT EVENTS -#################### - -namespace = marriage_effect - -#MOTHER - Bastard secret is removed if you marry the right person -marriage_effect.0001 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - OR = { - AND = { - AND = { - is_pregnant = yes - pregnancy_real_father = { this = scope:new_spouse } - } - exists = scope:illegitimate_child - } - exists = scope:illegitimate_child_2 - } - } - desc = marriage_effect.0001.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0001.desc.child - } - triggered_desc = { - trigger = { - pregnancy_real_father = { this = scope:new_spouse } - } - desc = marriage_effect.0001.desc.pregnancy - } - } - } - theme = marriage - left_portrait = { - character = scope:new_spouse - animation = happiness - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - trigger = { - is_female = yes - OR = { - AND = { - has_variable = { - name = unmarried_bastard_pregnancy - name = bastard_pregnancy - } - pregnancy_real_father = { this = scope:spouse } - } - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father ?= { - any_spouse = { this = ROOT } - this = scope:spouse #To make sure it is the new spouse - } - } - } - } - } - - on_trigger_fail = { #If the mother isn't the "major" party in the marriage we need to trigger this for her - if = { - limit = { - scope:spouse = { - is_female = yes - OR = { - AND = { - has_variable = { - name = unmarried_bastard_pregnancy - name = bastard_pregnancy - } - pregnancy_real_father = { this = root } - } - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father ?= { - this = root #To make sure it is the new spouse - } - } - } - } - } - } - save_scope_as = spouse_scope - scope:spouse = { - scope:spouse_scope = { - save_scope_as = spouse - } - trigger_event = marriage_effect.0001 - } - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - save_scope_as = real_mother - if = { - limit = { - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father = { - any_spouse = { this = ROOT } - this = scope:spouse #To make sure it is the new spouse - } - } - } - } - random_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { - any_spouse = { this = ROOT } - this = scope:spouse #To make sure it is the new spouse - } - } - } - secret_target = { - real_father = { - save_scope_as = new_spouse - } - } - } - } - else ={ - pregnancy_real_father = { save_scope_as = new_spouse } - remove_variable = dead_spouse #To make sure the new spouse is set as father - } - - - if = { - limit = { - exists = var:dead_spouse - } - var:dead_spouse ={ - save_scope_as = dead_father - } - } - - #Marks all the children whose corresponding secret should be cleared - every_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { real_father = { this = scope:new_spouse } } - } - secret_target = { - add_character_flag = clear_bastard_secret - save_scope_as = illegitimate_child #Save for portrait and desc - hidden_effect = { - if = { - limit = { - root = { exists = scope:dead_father } - } - set_father = scope:dead_father - } - else = { - set_father = scope:new_spouse - } - } - } - } - - random_child = { #If there is another child, save it as an event target - limit = { - has_character_flag = clear_bastard_secret - this != scope:illegitimate_child - } - save_scope_as = illegitimate_child_2 - hidden_effect = { - if = { - limit = { - root = { exists = scope:dead_father } - } - set_father = scope:dead_father - } - else_if = { - limit = { - root = { - NOT = { - exists = scope:dead_father - } - } - } - set_father = scope:new_spouse - } - } - } - - if = { #To trigger an event for the real_father if he is a secret_knower - limit = { - OR ={ - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father = { this = scope:new_spouse } - } - any_secret_knower = { - this = scope:new_spouse - } - } - has_character_flag = unmarried_bastard_pregnancy - has_character_flag = bastard_pregnancy - } - } - scope:new_spouse = { - trigger_event = marriage_effect.0002 - } - } - #To inform all secret knowers - random_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { this = scope:new_spouse } - } - } - every_secret_knower = { - limit = { - NOR = { - this = scope:new_spouse - this = root - } - } - trigger_event = marriage_effect.0003 - } - } - - #If it's a pregnancy then unmark it as a bastard pregnancy - if = { - limit = { - has_character_flag = unmarried_bastard_pregnancy - } - remove_character_flag = unmarried_bastard_pregnancy - } - if = { - limit = { - has_character_flag = bastard_pregnancy - } - remove_character_flag = bastard_pregnancy - } - } - - option = { - name = marriage_effect.0001.a - - stress_and_fulfillment_impact = { - base = medium_stress_loss - } - - every_secret = { - limit = { - OR = { - secret_target ?= { has_character_flag = clear_bastard_secret } - ROOT = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - } - remove_secret = yes - } - every_child = { - remove_character_flag = clear_bastard_secret - } - } -} - - - - - -#FATHER - notification event if you marry the mother and knows the secret -marriage_effect.0002 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - exists = scope:illegitimate_child - exists = scope:illegitimate_child_2 - } - desc = marriage_effect.0002.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0002.desc.child - } - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - has_variable = { - name = pregnancy_real_father_knows - name = pregnancy_real_father_of_bastard_is_known_flag - } - } - } - desc = marriage_effect.0002.desc.pregnancy - } - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - desc = marriage_effect.0002.desc.pregnancy_not_knowing - } - } - } - theme = marriage - right_portrait = { - character = scope:real_mother - animation = happiness - } - left_portrait = { - character = scope:new_spouse - animation = personality_compassionate - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - trigger = { - is_male = yes - any_spouse = { - this = scope:real_mother - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - #Marks all the children whose corresponding secret should be cleared - scope:new_spouse = { - every_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { this = scope:new_spouse } - mother = { this = scope:real_mother } - } - } - secret_target = { - add_character_flag = saved_child - save_scope_as = illegitimate_child #Save for portrait and desc - } - } - } - - random_child = { #If there is another child, save it as an event target - limit = { - has_character_flag = saved_child - this != scope:illegitimate_child - } - save_scope_as = illegitimate_child_2 - } - } - - option = { - name = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - has_none_of_variables = { - name = pregnancy_real_father_knows - name = pregnancy_real_father_of_bastard_is_known_flag - } - } - } - text = marriage_effect.0001.a_not_knowing - } - name = { - trigger = { always = yes } - text = marriage_effect.0001.a - } - - #To block other events on the subject - scope:real_mother = { - add_character_flag = { - flag = pregnancy_real_father_knows - months = 9 - } - } - - stress_and_fulfillment_impact = { - base = medium_stress_loss - } - } -} - - -#Notification event for every other secret knower -marriage_effect.0003 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - desc = marriage_effect.0003.desc.pregnancy - } - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - exists = scope:illegitimate_child - exists = scope:illegitimate_child_2 - } - desc = marriage_effect.0003.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0003.desc - } - } - } - theme = marriage - right_portrait = { - character = scope:real_mother - animation = happiness - } - left_portrait = { - character = scope:new_spouse - animation = personality_compassionate - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - immediate = { play_music_cue_once = { TRACK = mx_cue_marriage } } - - option = { - name = marriage_effect.0001.a - } -} - - -#MOTHER - Bastard secret is removed if you become the concubine of the right person -marriage_effect.0011 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - OR = { - AND = { - AND = { - is_pregnant = yes - pregnancy_real_father = { this = scope:new_spouse } - } - exists = scope:illegitimate_child - } - exists = scope:illegitimate_child_2 - } - } - desc = marriage_effect.0011.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0011.desc.child - } - triggered_desc = { - trigger = { - pregnancy_real_father = { this = scope:new_spouse } - } - desc = marriage_effect.0011.desc.pregnancy - } - } - } - theme = marriage - left_portrait = { - character = scope:new_spouse - animation = happiness - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - trigger = { - is_female = yes - OR = { - AND = { - has_variable = { - name = unmarried_bastard_pregnancy - name = bastard_pregnancy - } - pregnancy_real_father = { this = scope:consort } - } - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father ?= { - any_consort = { this = ROOT } - this = scope:consort #To make sure it is the new partner - } - } - } - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - save_scope_as = real_mother - if = { - limit = { - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father = { - any_spouse = { this = ROOT } - this = scope:consort #To make sure it is the new partner - } - } - } - } - random_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { - any_spouse = { this = ROOT } - this = scope:consort #To make sure it is the new partner - } - } - } - secret_target = { - real_father = { - save_scope_as = new_spouse - } - } - } - } - else ={ - pregnancy_real_father = { save_scope_as = new_spouse } - remove_variable = dead_spouse #To make sure the new spouse is set as father - } - - if = { - limit = { - exists = var:dead_spouse - } - var:dead_spouse ={ - save_scope_as = dead_father - } - } - - #Marks all the children whose corresponding secret should be cleared - every_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { real_father = { this = scope:new_spouse } } - } - secret_target = { - add_character_flag = clear_bastard_secret - save_scope_as = illegitimate_child #Save for portrait and desc - hidden_effect = { - if = { - limit = { - root = { exists = scope:dead_father } - } - set_father = scope:dead_father - } - else = { - set_father = scope:new_spouse - } - } - } - } - - random_child = { #If there is another child, save it as an event target - limit = { - has_character_flag = clear_bastard_secret - this != scope:illegitimate_child - } - save_scope_as = illegitimate_child_2 - hidden_effect = { - if = { - limit = { - root = { exists = scope:dead_father } - } - set_father = scope:dead_father - } - else_if = { - limit = { - root = { - NOT = { - exists = scope:dead_father - } - } - } - set_father = scope:new_spouse - } - } - } - - if = { #To trigger an event for the real_father if he is a secret_knower - limit = { - OR ={ - any_secret = { - type = secret_unmarried_illegitimate_child - secret_target = { - real_father = { this = scope:new_spouse } - } - any_secret_knower = { - this = scope:new_spouse - } - } - has_character_flag = unmarried_bastard_pregnancy - has_character_flag = bastard_pregnancy - } - } - scope:new_spouse = { - trigger_event = marriage_effect.0012 - } - } - - #To inform all secret knowers - random_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { this = scope:new_spouse } - } - } - every_secret_knower = { - limit = { - NOR = { - this = scope:new_spouse - this = root - } - } - trigger_event = marriage_effect.0013 - } - } - - #If it's a pregnancy then unmark it as a bastard pregnancy - if = { - limit = { - has_character_flag = unmarried_bastard_pregnancy - } - remove_character_flag = unmarried_bastard_pregnancy - } - if = { - limit = { - has_character_flag = bastard_pregnancy - } - remove_character_flag = bastard_pregnancy - } - } - - option = { - name = marriage_effect.0001.a - - stress_and_fulfillment_impact = { - base = medium_stress_loss - } - - every_secret = { - limit = { - exists = secret_target - OR = { - secret_target = { has_character_flag = clear_bastard_secret } - ROOT = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - } - remove_secret = yes - } - every_child = { - remove_character_flag = clear_bastard_secret - } - } -} - - -#FATHER - Concubine - notification event if you marry the mother and knows the secret (basically a copy of marriage_effect.0002) -marriage_effect.0012 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - exists = scope:illegitimate_child - exists = scope:illegitimate_child_2 - } - desc = marriage_effect.0012.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0012.desc.child - } - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - has_variable = { - name = pregnancy_real_father_knows - name = pregnancy_real_father_of_bastard_is_known_flag - } - } - } - desc = marriage_effect.0012.desc.pregnancy - } - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - desc = marriage_effect.0012.desc.pregnancy_not_knowing - } - } - } - theme = marriage - right_portrait = { - character = scope:real_mother - animation = happiness - } - left_portrait = { - character = scope:new_spouse - animation = personality_compassionate - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - trigger = { - is_male = yes - any_consort = { - this = scope:real_mother - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - #Marks all the children whose corresponding secret should be cleared - scope:new_spouse = { - every_secret = { - type = secret_unmarried_illegitimate_child - limit = { - secret_target = { - real_father = { this = scope:new_spouse } - mother = { this = scope:real_mother } - } - } - secret_target = { - add_character_flag = saved_child - save_scope_as = illegitimate_child #Save for portrait and desc - } - } - } - - random_child = { #If there is another child, save it as an event target - limit = { - has_character_flag = saved_child - this != scope:illegitimate_child - } - save_scope_as = illegitimate_child_2 - } - } - - option = { - name = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - has_none_of_variables = { - name = pregnancy_real_father_knows - name = pregnancy_real_father_of_bastard_is_known_flag - } - } - } - text = marriage_effect.0001.a_not_knowing - } - name = { - trigger = { always = yes } - text = marriage_effect.0001.a - } - - #To block other events on the subject - scope:real_mother = { - add_character_flag = { - flag = pregnancy_real_father_knows - months = 9 - } - } - - stress_and_fulfillment_impact = { - base = medium_stress_loss - } - } -} - - -#Concubine - Notification event for every other secret knower (basically a copy of marriage_effect.0003) -marriage_effect.0013 = { - type = character_event - title = marriage_effect.0001.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:real_mother = { - is_pregnant = yes - pregnancy_real_father = { - this = scope:new_spouse - } - } - } - desc = marriage_effect.0013.desc.pregnancy - } - triggered_desc = { #Multiple illegitimate children now legitimate - trigger = { - exists = scope:illegitimate_child - exists = scope:illegitimate_child_2 - } - desc = marriage_effect.0013.desc.multiple - } - triggered_desc = { - trigger = { exists = scope:illegitimate_child } - desc = marriage_effect.0013.desc - } - } - } - theme = marriage - right_portrait = { - character = scope:real_mother - animation = happiness - } - left_portrait = { - character = scope:new_spouse - animation = personality_compassionate - } - lower_left_portrait = scope:illegitimate_child #Only appears if child is already born - lower_center_portrait = scope:illegitimate_child_2 #Only appears if there are multiple bastards already born - - immediate = { play_music_cue_once = { TRACK = mx_cue_marriage } } - - option = { - name = marriage_effect.0001.a - } -} - - - -#If you marry your lover - root -marriage_effect.1001 = { - type = character_event - title = marriage_effect.1001.t - desc = marriage_effect.1001.desc - theme = marriage - left_portrait = { - character = scope:spouse - animation = happiness - } - - trigger = { - any_relation = { - type = lover - this = scope:spouse - } - # We don't want regular events concerning weddings to popup outside the wedding activity - OR = { - NOT = { exists = involved_activity } - involved_activity = { - NOT = { has_activity_type = activity_wedding } - } - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - #If the marriage was set via event, configure scopes for the description correctly. - if = { - limit = { - NOT = { exists = scope:spouse } - } - random_relation = { - type = lover - limit = { is_spouse_of = root } - save_scope_as = spouse - } - } - } - - option = { - name = marriage_effect.1001.a - save_scope_as = spouse_2 - - scope:spouse = { - trigger_event = marriage_effect.1002 - } - } -} - -#If you marry your lover - spouse -marriage_effect.1002 = { - type = character_event - title = marriage_effect.1001.t - desc = marriage_effect.1002.desc - theme = marriage - left_portrait = { - character = scope:spouse_2 - animation = happiness - } - - immediate = { play_music_cue_once = { TRACK = mx_cue_marriage } } - - option = { - name = marriage_effect.1002.a - - } -} - -# Monogamous wedding event -marriage_effect.2001 = { - type = character_event - title = marriage_effect.2001.t - override_background = { reference = ep2_wedding_ceremony } - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:new_spouse = { - is_imprisoned = yes - } - } - desc = marriage_effect.2001.desc.start_prison - } - triggered_desc = { - trigger = { - rite = { - rite_has_parameter = divine_marriage_piety_gain_active - } - scope:new_spouse = { - is_close_family_of = root - } - } - desc = marriage_effect.2001.desc.start_divine_marriage - } - desc = marriage_effect.2001.desc.start_normal - } - desc = marriage_effect.2001.desc.end - } - theme = marriage - left_portrait = { - character = root - triggered_animation = { - trigger = { - scope:new_spouse = { - is_imprisoned = yes - } - } - animation = shame - } - triggered_animation = { - trigger = { always = yes } - animation = happiness - } - } - right_portrait = { - character = scope:new_spouse - triggered_animation = { - trigger = { is_imprisoned = yes } - animation = shame - } - triggered_animation = { - trigger = { always = yes } - animation = flirtation_left - } - } - - trigger = { - # Only rulers are important enough for people to care about their marriage. - is_ruler = yes - - # Is not a LAAMP - is_landed_or_landless_administrative_or_theocratic = yes - - # Only monogamous faiths care enough about a single marriage for the event. - rite = { - rite_has_parameter = marriage_event - } - - # Only a character's first spouse counts. - NOT ={ - any_spouse = { - even_if_dead = yes - this != scope:spouse - } - } - - # Spouse also needs to be alive - scope:spouse = { - is_alive = yes - } - - # If a family was previously generated for us, don't fire the marriage event (we were presumably married before the game started). - # This flag is also used for divorce cases - NOT = { has_character_flag = ignore_marriage_event } - - # We don't want regular events concerning weddings to popup outside the wedding activity - OR = { - NOT = { exists = involved_activity } - involved_activity = { - NOT = { has_activity_type = activity_wedding } - } - } - } - - immediate = { - play_music_cue_once = { TRACK = mx_cue_marriage } - scope:spouse = { - save_scope_as = new_spouse - } - } - - option = { - name = marriage_effect.2001.a - # The wedding levy is a personal windfall, so it goes into the ruler's own purse even for ecclesiastics - add_gold = major_gold_value - } - - option = { - name = marriage_effect.2001.b - add_prestige = major_prestige_value - } - - after = { - if = { - limit = { - rite = { - rite_has_parameter = divine_marriage_piety_gain_active - } - scope:new_spouse = { - is_close_family_of = root - } - } - add_piety = massive_piety_value - } - save_scope_as = spouse_scope - scope:spouse = { - scope:spouse_scope = { - save_scope_as = spouse - } - trigger_event = marriage_effect.0001 - } - - hidden_effect = { - # To disable prestige & gold remarrying exploit - add_character_flag = ignore_marriage_event - } - } -} - - -#Your spouse that you loved divorced you -marriage_effect.3001 = { - hidden = yes - - trigger = { - opinion = { - target = scope:spouse_2 - value >= 30 - } - OR = { - has_relation_lover = scope:spouse_2 - has_opinion_modifier = { - modifier = love_opinion - target = scope:spouse_2 - } - opinion = { - target = scope:spouse_2 - value >= 60 - } - } - } - - immediate = { - add_character_flag = { - flag = make_suicide_available - years = 10 - } - set_variable = { - name = messy_divorce - value = yes - } - } -} diff --git a/events/misc_events.txt b/events/misc_events.txt deleted file mode 100644 index f27ceef4a..000000000 --- a/events/misc_events.txt +++ /dev/null @@ -1,17 +0,0 @@ -namespace = misc - -misc.0001 = { - hidden = yes - - trigger = { - is_ai = no - exists = global_var:rags_to_riches_to_rags_to_riches_first_empire - } - - immediate = { - add_achievement_global_variable_effect = { - VARIABLE = rags_to_riches_to_rags_to_riches_adventurer - VALUE = yes - } - } -} diff --git a/events/mpo_chaotic_kurultai_succession.txt b/events/mpo_chaotic_kurultai_succession.txt deleted file mode 100644 index d02dfd588..000000000 --- a/events/mpo_chaotic_kurultai_succession.txt +++ /dev/null @@ -1,3147 +0,0 @@ -namespace = mpo_chaotic_kurultai_succession - -scripted_trigger disobedient_kurultai_member_trigger = { - is_physically_able_ai_adult = yes - NOR = { - this = root - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - has_trait = loyal - } -} - -mpo_chaotic_kurultai_succession.0001 = { # Siblings become your rivals - type = character_event - title = mpo_chaotic_kurultai_succession.0001.t - theme = raid - override_background = { reference = mpo_steppe_evening } - override_effect_2d = { - reference = rain - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0001.desc - triggered_desc = { - trigger = { - exists = scope:sibling_rival_2 - } - desc = mpo_chaotic_kurultai_succession.0001.desc_addition - } - } - - left_portrait = { - character = scope:sibling_rival_1 - animation = hunting_knife_start - } - right_portrait = { - character = scope:sibling_rival_2 - animation = spymaster - camera = camera_event_left - } - - trigger = { - any_sibling = { - is_physically_able_ai = yes - age >= 12 - can_set_relation_rival_trigger = { CHARACTER = root } - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - can_set_relation_rival_trigger = { CHARACTER = root } - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_1 - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - this = scope:sibling_rival_1 - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_2 - } - scope:sibling_rival_1 = { - set_relation_rival = { - target = root - reason = rival_kurultai_succession - } - } - scope:sibling_rival_2 ?= { - set_relation_rival = { - target = root - reason = rival_kurultai_succession - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0001.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0002 = { # Sibling seizes tributary lands and leaves - type = character_event - title = mpo_chaotic_kurultai_succession.0002.t - theme = raid - override_background = { reference = mpo_steppe_evening } - override_effect_2d = { - reference = smoke - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0002.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0002.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0002.desc_end - } - - left_portrait = { - character = scope:sibling_rival_1 - triggered_animation = { - trigger = { - NOT = { exists = scope:backing_kurultai } - } - animation = horse_surveying - } - animation = horse_conversing_right - camera = camera_event_horse_left - } - right_portrait = { - character = scope:backing_kurultai - animation = horse_conversing_left - camera = camera_event_horse_right - } - - lower_right_portrait = scope:tributary_usurped - - trigger = { - any_tributary = { - is_ai = yes - exists = dynasty - dynasty != root.dynasty - government_has_flag = government_is_nomadic - domicile.herd < root.domicile.herd - is_landed = yes - save_temporary_scope_as = tributary_test - } - any_sibling = { - is_physically_able_ai_adult = yes - is_ruler = no - is_courtier_of = root - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = craven - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - save_temporary_scope_as = sibling_test - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_tributary = { - limit = { - is_ai = yes - exists = dynasty - dynasty != root.dynasty - government_has_flag = government_is_nomadic - domicile.herd < root.domicile.herd - is_landed = yes - } - save_scope_as = tributary_usurped - } - random_sibling = { - limit = { - is_physically_able_ai_adult = yes - is_ruler = no - is_courtier_of = root - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = craven - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_1 - add_character_flag = { - flag = domicile_culture_and_faith_check - days = 1 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - has_trait = loyal - this = scope:sibling_rival_1 - this = scope:tributary_usurped - } - } - save_scope_as = backing_kurultai - } - hidden_effect = { - create_title_and_vassal_change = { - type = usurped - save_scope_as = change - add_claim_on_loss = yes - } - scope:tributary_usurped = { - every_held_title = { - limit = { - tier >= tier_county - is_landless_type_title = no - } - change_title_holder = { - holder = scope:sibling_rival_1 - change = scope:change - } - } - every_vassal = { - change_liege = { - LIEGE = scope:sibling_rival_1 - CHANGE = scope:change - } - } - } - resolve_title_and_vassal_change = scope:change - scope:tributary_usurped = { - every_tributary = { - save_scope_as = current_tributary - start_tributary_interaction_effect = { - TRIBUTARY = scope:current_tributary - SUZERAIN = scope:sibling_rival_1 - } - } - } - scope:sibling_rival_1 = { - domicile ?= { - add_domicile_building = yurt_main_02 - add_random_yurt_external_building_effect = yes - add_random_yurt_external_building_effect = yes - upgrade_random_yurt_external_building_effect = yes - upgrade_random_yurt_external_building_effect = yes - } - } - } - custom_tooltip = sibling_usurped_tributary_lands_tt - scope:sibling_rival_1 = { - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -35 - } - } - scope:tributary_usurped = { - end_tributary = yes - pay_herd = { target = scope:sibling_rival_1 value = scope:tributary_usurped.domicile.herd } - hidden_effect = { - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = scope:sibling_rival_1 } - } - set_relation_potential_rival = root - } - add_opinion = { - target = scope:sibling_rival_1 - modifier = usurped_title - opinion = -50 - } - } - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0002.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0003 = { # Tributary leaves - type = character_event - title = mpo_chaotic_kurultai_succession.0003.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0003.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0003.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0003.desc_end - } - - left_portrait = { - character = scope:tributary_leaving - animation = dismissal - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - trigger = { - any_tributary = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - save_scope_as = tributary_leaving - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:tributary_leaving = { - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0003.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0004 = { # County Control loss - type = character_event - title = mpo_chaotic_kurultai_succession.0004.t - theme = raid - override_background = { reference = mpo_raid_burning_asian } - override_effect_2d = { - reference = smoke - } - - left_portrait = { - character = scope:raider - animation = sword_coup_degrace - hide_info = yes - } - right_portrait = { - character = scope:backing_kurultai - animation = menacing - camera = camera_event_left - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0004.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0004.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0004.desc_end - } - - trigger = { - any_held_title = { - tier = tier_county - is_landless_type_title = no - county_control > 0 - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_pool_character = { - province = root.location - limit = { is_physically_able_ai = yes } - save_scope_as = raider - } - every_held_title = { - limit = { - tier = tier_county - is_landless_type_title = no - county_control > 0 - } - change_county_control = { - value = { - integer_range = { - min = -50 - max = -5 - } - } - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_gold = { - value = { - integer_range = { - min = 10 - max = 100 - } - } - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0004.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0005 = { # Loss of Prestige Level - type = character_event - title = mpo_chaotic_kurultai_succession.0005.t - theme = raid - override_effect_2d = { - reference = rain - } - - left_portrait = { - character = root - animation = stress - } - right_portrait = { - character = scope:backing_kurultai - animation = laugh - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0005.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0005.desc_addition - } - } - - trigger = { - prestige_level > 0 - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - add_prestige_level = -1 - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0005.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0006 = { # 10% of Herd defects to Neighboring realm - type = character_event - title = mpo_chaotic_kurultai_succession.0006.t - theme = raid - override_background = { reference = mpo_campfire_steppe } - override_effect_2d = { - reference = rain - } - - left_portrait = { - character = scope:rustler - animation = betting - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0006.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0006.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0006.desc_end - } - - trigger = { - domicile.herd >= 1000 - any_land_neighboring_realm_with_tributaries_owner = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - } - - immediate = { - save_scope_as = ruler_rustled - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_land_neighboring_realm_with_tributaries_owner = { - limit = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - save_scope_as = rustler - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - save_scope_value_as = { - name = herd_transfer_value - value = { - add = root.domicile.herd - divide = 10 - } - } - show_as_tooltip = { - pay_herd = { - target = scope:rustler - value = scope:herd_transfer_value - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0006.a - ai_chance = { - base = 100 - } - } - - after = { - scope:rustler = { - trigger_event = mpo_chaotic_kurultai_succession.1006 - } - } -} - -mpo_chaotic_kurultai_succession.1006 = { # Response event - type = character_event - title = mpo_chaotic_kurultai_succession.1006.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - left_portrait = { - character = root - animation = thinking - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - lower_right_portrait = scope:ruler_rustled - - desc = { - desc = mpo_chaotic_kurultai_succession.1006.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.1006.desc_addition - } - } - - trigger = { - } - - immediate = { - } - - option = { - name = mpo_chaotic_kurultai_succession.1006.a - scope:ruler_rustled = { - pay_herd = { - target = scope:rustler - value = scope:herd_transfer_value - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1006.b - scope:ruler_rustled = { - send_interface_toast = { - type = event_toast_effect_good - title = mpo_chaotic_kurultai_succession.1006.b.title - left_icon = scope:rustler - custom_tooltip = mpo_chaotic_kurultai_succession.1006.b.tt - add_opinion = { - target = scope:rustler - modifier = grateful_opinion - opinion = 50 - } - if = { - limit = { - NOT = { this = scope:rustler } - can_set_relation_potential_friend_trigger = { CHARACTER = scope:rustler } - } - set_relation_potential_friend = scope:rustler - } - } - } - ai_chance = { - base = 0 - } - } -} - -scripted_trigger is_great_courtier_trigger = { - is_physically_able_ai_adult = yes - NOR = { - is_in_list = obedient_kurultai - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - has_trait = loyal - has_trait = content - is_child_of = root - is_grandchild_of = root - is_great_grandchild_of = root - is_consort_of = root - is_heir_of = root - AND = { - is_female = yes - patrilinear_marriage = yes - } - AND = { - is_male = yes - matrilinear_marriage = yes - } - is_diarch = yes - is_designated_diarch = yes - } - OR = { - AND = { - is_knight = yes - prowess >= 16 - } - has_any_court_position = yes - martial >= monumentally_high_skill_rating - sum_of_all_skills_value >= sum_of_all_skills_threshold_good - martial >= monumentally_high_skill_rating - aptitude:master_of_hunt_court_position >= 4 - aptitude:keeper_of_the_horses_court_position >= 4 - aptitude:boyan_court_position >= 4 - aptitude:siege_engineer_court_position >= 4 - aptitude:yurtchi_court_position >= 4 - aptitude:cherbi_court_position >= 4 - aptitude:yeke_jarquchi_court_position >= 4 - aptitude:foreign_emissary_court_position >= 4 - aptitude:court_physician_court_position >= 4 - } -} - -mpo_chaotic_kurultai_succession.0007 = { # Good Courtiers defect to Neighbor - type = character_event - title = mpo_chaotic_kurultai_succession.0007.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - left_portrait = { - character = scope:courtier_stealer - animation = schadenfreude - } - right_portrait = { - character = scope:backing_kurultai - animation = go_to_your_room - camera = camera_event_left - } - lower_right_portrait = scope:courtier_1 - lower_center_portrait = scope:courtier_2 - lower_left_portrait = scope:courtier_3 - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0007.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0007.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0007.desc_end - } - - trigger = { - any_land_neighboring_realm_with_tributaries_owner = { - is_physically_able_ai_adult = yes - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - any_courtier = { - count >= 3 - is_great_courtier_trigger = yes - } - } - - immediate = { - save_scope_as = ruler_rustled - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_land_neighboring_realm_with_tributaries_owner = { - limit = { - is_physically_able_ai_adult = yes - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - save_scope_as = courtier_stealer - } - random_courtier = { - limit = { - is_great_courtier_trigger = yes - } - save_scope_as = courtier_1 - } - random_courtier = { - limit = { - is_great_courtier_trigger = yes - NOT = { - this = scope:courtier_1 - } - } - save_scope_as = courtier_2 - } - random_courtier = { - limit = { - is_great_courtier_trigger = yes - NOR = { - this = scope:courtier_1 - this = scope:courtier_2 - } - } - save_scope_as = courtier_3 - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - scope:courtier_stealer = { - add_courtier = scope:courtier_1 - add_courtier = scope:courtier_2 - add_courtier = scope:courtier_3 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0007.a - ai_chance = { - base = 100 - } - } - - after = { - scope:courtier_stealer = { - trigger_event = mpo_chaotic_kurultai_succession.1007 - } - } -} - -mpo_chaotic_kurultai_succession.1007 = { # Response event - type = character_event - title = mpo_chaotic_kurultai_succession.1007.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - left_portrait = { - character = root - animation = interested - } - right_portrait = { - character = scope:backing_kurultai - animation = debating - } - lower_right_portrait = scope:courtier_1 - lower_center_portrait = scope:courtier_2 - lower_left_portrait = scope:courtier_3 - - desc = { - desc = mpo_chaotic_kurultai_succession.1007.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.1007.desc_addition - } - } - - trigger = { - } - - immediate = { - show_as_tooltip = { - add_courtier = scope:courtier_1 - add_courtier = scope:courtier_2 - add_courtier = scope:courtier_3 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1007.a - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1007.b - scope:ruler_rustled = { - send_interface_toast = { - type = event_toast_effect_good - title = mpo_chaotic_kurultai_succession.1007.b.title - left_icon = scope:courtier_stealer - scope:ruler_rustled = { - add_courtier = scope:courtier_1 - add_courtier = scope:courtier_2 - add_courtier = scope:courtier_3 - } - add_opinion = { - target = scope:courtier_stealer - modifier = grateful_opinion - opinion = 50 - } - if = { - limit = { - NOT = { this = scope:courtier_stealer } - can_set_relation_potential_friend_trigger = { CHARACTER = scope:courtier_stealer } - } - set_relation_potential_friend = scope:courtier_stealer - } - } - } - ai_chance = { - base = 0 - } - } -} - -mpo_chaotic_kurultai_succession.0008 = { # MaA Regiment defects to neighbor - type = character_event - title = mpo_chaotic_kurultai_succession.0008.t - theme = raid - override_background = { reference = mpo_hunt_steppe } - - left_portrait = { - character = scope:maa_stealer - animation = horse_archer_idle - camera = camera_event_horse_left - } - right_portrait = { - character = scope:backing_kurultai - animation = horse_archer_aggressive - camera = camera_event_horse_left - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0008.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0008.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0008.desc_end - } - - trigger = { - any_land_neighboring_realm_with_tributaries_owner = { - is_physically_able_ai_adult = yes - is_landed = yes - maa_regiments_count < maa_regiments_max_count - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - NOT = { - government_has_flag = government_is_herder - } - } - any_maa_regiment = { - maa_current_troops_count >= maa_max_troops_count - is_raised = no - NOT = { - is_unit_type = siege_weapon - } - } - } - - immediate = { - save_scope_as = ruler_rustled - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_land_neighboring_realm_with_tributaries_owner = { - limit = { - is_physically_able_ai_adult = yes - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - NOT = { - government_has_flag = government_is_herder - } - } - save_scope_as = maa_stealer - } - random_maa_regiment = { - limit = { - maa_current_troops_count >= maa_max_troops_count - is_raised = no - NOT = { - is_unit_type = siege_weapon - } - } - save_scope_as = defecting_maa - } - save_scope_value_as = { - name = maa_size_scope - value = scope:defecting_maa.maa_size - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - custom_tooltip = regiment_destroyed_tt - } - - option = { - name = mpo_chaotic_kurultai_succession.0008.a - ai_chance = { - base = 100 - } - } - - after = { - scope:maa_stealer = { - trigger_event = mpo_chaotic_kurultai_succession.1008 - } - } -} - -mpo_chaotic_kurultai_succession.1008 = { # Response event - type = character_event - title = mpo_chaotic_kurultai_succession.1008.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - left_portrait = { - character = root - animation = marshal_random_weapon - } - right_portrait = { - character = scope:backing_kurultai - animation = bow_idle - } - lower_right_portrait = scope:ruler_rustled - - desc = { - desc = mpo_chaotic_kurultai_succession.1008.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.1008.desc_addition - } - } - - trigger = { - } - - immediate = { - } - - option = { - name = mpo_chaotic_kurultai_succession.1008.a - create_maa_regiment = { - type_of = scope:defecting_maa - check_can_recruit = no - size = 1 - } - custom_tooltip = chaos_upgrade_maa_tt - hidden_effect = { - while = { - random_maa_regiment = { - limit = { - can_upgrade_maa = yes - } - change_maa_regiment_size = 1 - } - count = scope:maa_size_scope - } - scope:ruler_rustled = { - scope:defecting_maa = { - destroy_maa_regiment = yes - } - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1008.b - scope:ruler_rustled = { - send_interface_toast = { - type = event_toast_effect_good - title = mpo_chaotic_kurultai_succession.1008.b.title - left_icon = scope:maa_stealer - add_opinion = { - target = scope:maa_stealer - modifier = grateful_opinion - opinion = 50 - } - if = { - limit = { - NOT = { this = scope:maa_stealer } - can_set_relation_potential_friend_trigger = { CHARACTER = scope:maa_stealer } - } - set_relation_potential_friend = scope:maa_stealer - } - } - } - ai_chance = { - base = 0 - } - } -} - -mpo_chaotic_kurultai_succession.0009 = { # Some Gold divided by Siblings - type = character_event - title = mpo_chaotic_kurultai_succession.0009.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_2 - } - desc = mpo_chaotic_kurultai_succession.0009.desc - } - triggered_desc = { - trigger = { - NOT = { exists = scope:sibling_rival_2 } - } - desc = mpo_chaotic_kurultai_succession.0009.desc_addition - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_2 - } - desc = mpo_chaotic_kurultai_succession.0009.desc_addition2 - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_3 - } - desc = mpo_chaotic_kurultai_succession.0009.desc_addition3 - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_4 - } - desc = mpo_chaotic_kurultai_succession.0009.desc_addition4 - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_5 - } - desc = mpo_chaotic_kurultai_succession.0009.desc_addition5 - } - triggered_desc = { - trigger = { - exists = scope:sibling_rival_2 - } - desc = mpo_chaotic_kurultai_succession.0009.desc_end - } - } - - left_portrait = { - character = scope:sibling_rival_1 - animation = bribing - } - right_portrait = { - character = scope:sibling_rival_2 - animation = steward - } - lower_left_portrait = scope:sibling_rival_3 - lower_center_portrait = scope:sibling_rival_4 - lower_right_portrait = scope:sibling_rival_5 - - trigger = { - gold >= 100 - gold >= medium_gold_value - any_sibling = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_1 - add_to_list = sibling_gold - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - this = scope:sibling_rival_1 - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_2 - add_to_list = sibling_gold - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - this = scope:sibling_rival_1 - this = scope:sibling_rival_2 - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_3 - add_to_list = sibling_gold - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - this = scope:sibling_rival_1 - this = scope:sibling_rival_2 - this = scope:sibling_rival_3 - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_4 - add_to_list = sibling_gold - } - random_sibling = { - limit = { - is_physically_able_ai = yes - age >= 12 - NOR = { - has_relation_friend = root - has_relation_rival = root - has_trait = craven - has_trait = content - this = scope:sibling_rival_1 - this = scope:sibling_rival_2 - this = scope:sibling_rival_3 - this = scope:sibling_rival_4 - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - save_scope_as = sibling_rival_5 - add_to_list = sibling_gold - } - save_scope_value_as = { - name = sibling_gold_sum - value = { - add = root.gold - subtract = { - value = root.minor_gold_value - divide = 2 - min = 50 - } - divide = list_size:sibling_gold - } - } - every_in_list = { - list = sibling_gold - root = { - pay_treasury_or_gold = { - target = prev - value = scope:sibling_gold_sum - } - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0009.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0010 = { # Legitimacy -500 - type = character_event - title = mpo_chaotic_kurultai_succession.0010.t - theme = raid - override_background = { reference = mpo_campfire_steppe } - override_effect_2d = { - reference = rain - } - - left_portrait = { - character = root - animation = rage - } - right_portrait = { - character = scope:backing_kurultai - animation = laugh - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0010.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0010.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0010.desc_end - } - - trigger = { - has_legitimacy = yes - legitimacy > 0 - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - add_legitimacy = -500 - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0010.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0011 = { # 20% of Herd defects to Neighboring realm - type = character_event - title = mpo_chaotic_kurultai_succession.0011.t - theme = raid - override_background = { reference = mpo_campfire_steppe } - override_effect_2d = { - reference = rain - } - - left_portrait = { - character = scope:rustler - animation = manic - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0011.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0011.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0011.desc_end - } - - trigger = { - domicile.herd >= 1000 - any_land_neighboring_realm_with_tributaries_owner = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - } - - immediate = { - save_scope_as = ruler_rustled - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_land_neighboring_realm_with_tributaries_owner = { - limit = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - save_scope_as = rustler - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -25 - } - } - save_scope_value_as = { - name = herd_transfer_value - value = { - add = root.domicile.herd - divide = 5 - } - } - show_as_tooltip = { - pay_herd = { - target = scope:rustler - value = scope:herd_transfer_value - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0011.a - ai_chance = { - base = 100 - } - } - - after = { - scope:rustler = { - trigger_event = mpo_chaotic_kurultai_succession.1006 - } - } -} - -mpo_chaotic_kurultai_succession.0012 = { # 50% Realm Split - type = character_event - title = mpo_chaotic_kurultai_succession.0012.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0012.desc - } - - left_portrait = { - character = scope:sibling_rival_1 - animation = jockey_victory - camera = camera_event_horse_left - } - - trigger = { - OR = { - any_in_list = { - list = disobedient_kurultai - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - any_sibling = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - } - highest_held_title_tier >= tier_kingdom - top_liege = root - primary_title = { - any_in_de_jure_hierarchy = { - count >= 20 - tier = tier_county - holder.top_liege ?= root - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - any_held_title = { - has_variable = guaranteed_disastrous_succession - } - factor = 0.1 - } - } - - immediate = { - hidden_effect = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - every_sibling = { - limit = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - add_to_list = potential_khans - } - every_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - add_to_list = potential_khans - } - random_in_list = { - list = potential_khans - weight = { - base = 1 - modifier = { - add = 100 - is_landed = no - } - } - save_scope_as = sibling_rival_1 - add_character_flag = { - flag = domicile_culture_and_faith_check - days = 1 - } - # The thing below ensures that they are landless if they had land, without breaking realms - nomadic_heir_cleanup_realm_effect = { CLEANUP_SCOPE_CHAR = scope:sibling_rival_1 } - } - nomadic_realm_split_effect = { - ORIGINAL_REALM_HOLDER = root - NEW_RULER = scope:sibling_rival_1 - SPLIT_VALUE = 0.5 - } - scope:sibling_rival_1 = { - if = { - limit = { - has_realm_law = nomadic_authority_1 - } - remove_realm_law = nomadic_authority_1 - } - else_if = { - limit = { - has_realm_law = nomadic_authority_2 - } - remove_realm_law = nomadic_authority_2 - } - if = { - limit = { - NOR = { - has_realm_law = nomadic_authority_4 - has_realm_law = nomadic_authority_5 - } - } - add_realm_law_skip_effects = nomadic_authority_3 - } - } - } - custom_tooltip = sibling_tool_50_percent_tt - pay_treasury_or_gold = { - target = scope:sibling_rival_1 - value = { - add = root.gold - multiply = 0.5 - } - } - pay_herd = { - target = scope:sibling_rival_1 - value = { - add = root.domicile.herd - multiply = 0.5 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0012.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0013 = { # 20% Realm Split - type = character_event - title = mpo_chaotic_kurultai_succession.0013.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0013.desc - } - - left_portrait = { - character = scope:sibling_rival_1 - animation = horse_archer_idle - camera = camera_event_horse_right - } - - trigger = { - NOT = { - has_character_flag = mongol_successor_flag - } - OR = { - any_in_list = { - list = disobedient_kurultai - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - any_sibling = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - } - highest_held_title_tier >= tier_kingdom - top_liege = root - primary_title = { - any_in_de_jure_hierarchy = { - count >= 20 - tier = tier_county - holder.top_liege ?= root - } - } - } - - immediate = { - hidden_effect = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - every_sibling = { - limit = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - add_to_list = potential_khans - } - every_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - highest_held_title_tier <= tier_duchy - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = generous - has_trait = content - } - OR = { - AND = { - is_male = yes - faith_dominant_gender_male_or_equal = yes - } - AND = { - is_female = yes - faith_dominant_gender_female_or_equal = yes - } - } - } - add_to_list = potential_khans - } - random_in_list = { - list = potential_khans - weight = { - base = 1 - modifier = { - add = 100 - is_landed = no - } - } - save_scope_as = sibling_rival_1 - add_character_flag = { - flag = domicile_culture_and_faith_check - days = 1 - } - # The thing below ensures that they are landless if they had land, without breaking realms - nomadic_heir_cleanup_realm_effect = { CLEANUP_SCOPE_CHAR = scope:sibling_rival_1 } - } - nomadic_realm_split_effect = { - ORIGINAL_REALM_HOLDER = root - NEW_RULER = scope:sibling_rival_1 - SPLIT_VALUE = 0.2 - } - scope:sibling_rival_1 = { - if = { - limit = { - has_realm_law = nomadic_authority_1 - } - remove_realm_law = nomadic_authority_1 - } - else_if = { - limit = { - has_realm_law = nomadic_authority_2 - } - remove_realm_law = nomadic_authority_2 - } - if = { - limit = { - NOR = { - has_realm_law = nomadic_authority_4 - has_realm_law = nomadic_authority_5 - } - } - add_realm_law_skip_effects = nomadic_authority_3 - } - } - } - custom_tooltip = sibling_tool_20_percent_tt - pay_treasury_or_gold = { - target = scope:sibling_rival_1 - value = { - add = root.gold - multiply = 0.2 - } - } - pay_herd = { - target = scope:sibling_rival_1 - value = { - add = root.domicile.herd - multiply = 0.2 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0013.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0014 = { # Extreme kurultai disapproval: shatter realm - type = character_event - title = mpo_chaotic_kurultai_succession.0014.t - theme = raid - override_background = { reference = mpo_raid_burning_asian } - override_effect_2d = { - reference = smoke - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - triggered_desc = { - trigger = { - exists = scope:kurultai_1 - } - desc = mpo_chaotic_kurultai_succession.0014.desc - } - triggered_desc = { - trigger = { - NOT = { exists = scope:kurultai_1 } - } - desc = mpo_chaotic_kurultai_succession.0014.desc_alt - } - } - - left_portrait = { - character = scope:kurultai_1 - animation = manic - } - - right_portrait = { - character = scope:kurultai_2 - animation = rage - } - - lower_left_portrait = scope:kurultai_3 - lower_center_portrait = scope:kurultai_4 - lower_right_portrait = scope:kurultai_5 - - trigger = { - #Stop breakup during Mongol breakup - NOT = { - has_character_flag = mongol_successor_flag - } - #This is happening to newly made titles - exists = primary_title.previous_holder - OR = { - any_in_list = { - list = disobedient_kurultai - count >= 4 - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - } - } - "list_size(obedient_kurultai)" <= 0 - } - highest_held_title_tier >= tier_kingdom - top_liege = root - } - #This is the worst one, right? Well... there ya go - weight_multiplier = { - base = 1 - modifier = { - any_held_title = { - has_variable = guaranteed_disastrous_succession - } - factor = 100 - } - } - - immediate = { - every_held_title = { - limit = { - has_variable = guaranteed_disastrous_succession - } - remove_variable = guaranteed_disastrous_succession - } - custom_tooltip = title_chaos_dissolved_tt - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - } - } - save_scope_as = kurultai_1 - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - this = scope:kurultai_1 - } - } - save_scope_as = kurultai_2 - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - this = scope:kurultai_1 - this = scope:kurultai_2 - } - } - save_scope_as = kurultai_3 - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - this = scope:kurultai_1 - this = scope:kurultai_2 - this = scope:kurultai_3 - } - } - save_scope_as = kurultai_4 - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - is_physically_able_ai_adult = yes - NOR = { - has_relation_friend = root - has_relation_potential_friend = root - has_trait = calm - this = scope:kurultai_1 - this = scope:kurultai_2 - this = scope:kurultai_3 - this = scope:kurultai_4 - } - } - save_scope_as = kurultai_5 - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - hidden_effect = { - create_title_and_vassal_change = { - type = independency - save_scope_as = change - add_claim_on_loss = no - } - - every_vassal = { - change_liege_or_become_independent = { - CHANGE = scope:change - VASSAL = this - } - } - - every_vassal = { - limit = { is_ai = no } - send_interface_toast = { - type = event_faction_neutral_text - title = liege_primary_title_dissolution - desc = liege_primary_title_chaos_desc - left_icon = root - } - } - - resolve_title_and_vassal_change = scope:change - - every_held_title = { - limit = { - tier >= tier_kingdom - } - add_to_temporary_list = titles_to_destroy - } - - every_in_list = { - list = titles_to_destroy - holder = { - destroy_title = prev - } - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0014.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0015 = { # 40% of Herd defects to Neighboring realm - type = character_event - title = mpo_chaotic_kurultai_succession.0015.t - theme = raid - override_background = { reference = mpo_campfire_steppe } - override_effect_2d = { - reference = rain - } - - left_portrait = { - character = scope:rustler - animation = eccentric - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0015.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0015.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0015.desc_end - } - - trigger = { - domicile.herd >= 1000 - any_land_neighboring_realm_with_tributaries_owner = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - any_held_title = { - has_variable = guaranteed_disastrous_succession - } - factor = 0.1 - } - } - - immediate = { - save_scope_as = ruler_rustled - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_land_neighboring_realm_with_tributaries_owner = { - limit = { - is_physically_able_ai_adult = yes - government_has_flag = government_is_nomadic - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_lover = root - } - } - save_scope_as = rustler - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - save_scope_value_as = { - name = herd_transfer_value - value = { - add = root.domicile.herd - multiply = 0.4 - } - } - show_as_tooltip = { - pay_herd = { - target = scope:rustler - value = scope:herd_transfer_value - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0015.a - ai_chance = { - base = 100 - } - } - - after = { - scope:rustler = { - trigger_event = mpo_chaotic_kurultai_succession.1006 - } - } -} - -mpo_chaotic_kurultai_succession.0016 = { # 3 Tributaries leave - type = character_event - title = mpo_chaotic_kurultai_succession.0016.t - theme = raid - override_background = { reference = mpo_steppe_evening } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0016.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0016.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0016.desc_end - } - - left_portrait = { - character = scope:tributary_leaving - animation = eyeroll - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - lower_left_portrait = scope:tributary_leaving2 - lower_right_portrait = scope:tributary_leaving3 - - trigger = { - any_tributary = { - count >= 3 - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - save_scope_as = tributary_leaving - } - random_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - this = scope:tributary_leaving - } - } - save_scope_as = tributary_leaving2 - } - random_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - this = scope:tributary_leaving - this = scope:tributary_leaving2 - } - } - save_scope_as = tributary_leaving3 - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:tributary_leaving = { - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - scope:tributary_leaving2 = { - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - scope:tributary_leaving3 = { - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -35 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0016.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.0017 = { # All Tributaries leave - type = character_event - title = mpo_chaotic_kurultai_succession.0017.t - theme = raid - override_background = { reference = mpo_steppe_evening } - override_effect_2d = { - reference = rain - } - - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:dead_parent - } - desc = chaotic_kurultai_intro_1 - } - desc = chaotic_kurultai_intro_2 - } - desc = mpo_chaotic_kurultai_succession.0017.desc - triggered_desc = { - trigger = { - exists = scope:backing_kurultai - } - desc = mpo_chaotic_kurultai_succession.0017.desc_addition - } - desc = mpo_chaotic_kurultai_succession.0017.desc_end - } - - left_portrait = { - character = scope:tributary_leaving - animation = threatening - } - right_portrait = { - character = scope:backing_kurultai - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - trigger = { - any_tributary = { - count >= 5 - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - primary_title = { - has_variable = guaranteed_disastrous_succession - } - factor = 0.1 - } - } - - immediate = { - primary_title.previous_holder = { - if = { - limit = { - is_alive = no - } - save_scope_as = dead_parent - } - } - random_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - } - } - save_scope_as = tributary_leaving - } - every_tributary = { - limit = { - is_physically_able_ai_adult = yes - NOT = { - government_has_flag = government_is_herder - } - is_landed = yes - NOR = { - is_obedient_to = root - has_relation_friend = root - has_relation_potential_friend = root - has_relation_lover = root - has_trait = craven - has_trait = content - has_trait = loyal - this = scope:tributary_leaving - } - } - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - random_in_list = { - list = disobedient_kurultai - limit = { - disobedient_kurultai_member_trigger = yes - } - save_scope_as = backing_kurultai - } - scope:tributary_leaving = { - end_tributary = yes - if = { - limit = { - can_set_relation_potential_rival_trigger = { CHARACTER = root } - } - set_relation_potential_rival = root - } - add_opinion = { - target = root - modifier = weak_opinion - opinion = -100 - } - } - scope:backing_kurultai ?= { - add_opinion = { - target = root - modifier = weak_opinion - opinion = -50 - } - } - } - - option = { - name = mpo_chaotic_kurultai_succession.0017.a - ai_chance = { - base = 100 - } - } -} - -mpo_chaotic_kurultai_succession.1000 = { # Choose successor Khanate - type = character_event - title = mpo_chaotic_kurultai_succession.1000.t - theme = raid - override_background = { reference = mpo_steppe_evening } - override_effect_2d = { - reference = rain - } - - desc = mpo_chaotic_kurultai_succession.1000.desc - - left_portrait = { - character = root - animation = standing_horse - camera = camera_event_standing_with_horse_right - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.a - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.b - trigger = { - exists = scope:ilkhanate_ruler - scope:ilkhanate_ruler != root - } - set_player_character = scope:ilkhanate_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.c - trigger = { - exists = scope:red_horde_ruler - scope:red_horde_ruler != root - } - set_player_character = scope:red_horde_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.d - trigger = { - exists = scope:white_horde_ruler - scope:white_horde_ruler != root - } - set_player_character = scope:white_horde_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.e - trigger = { - exists = scope:aarlud_khanate_ruler - scope:aarlud_khanate_ruler != root - } - set_player_character = scope:aarlud_khanate_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.f - trigger = { - exists = scope:togskol_khanate_ruler - scope:togskol_khanate_ruler != root - } - set_player_character = scope:togskol_khanate_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.g - trigger = { - exists = scope:baruun_khanate_ruler - scope:baruun_khanate_ruler != root - } - set_player_character = scope:baruun_khanate_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.h - trigger = { - exists = scope:golden_horde_ruler - scope:golden_horde_ruler != root - } - set_player_character = scope:golden_horde_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.i - trigger = { - exists = scope:chagatai_ruler - scope:chagatai_ruler != root - } - set_player_character = scope:chagatai_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.j - trigger = { - exists = scope:great_yuan_ruler - scope:great_yuan_ruler != root - } - set_player_character = scope:great_yuan_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.k - trigger = { - exists = scope:blue_horde_ruler - scope:blue_horde_ruler != root - } - set_player_character = scope:blue_horde_ruler - ai_chance = { - base = 100 - } - } - - option = { - name = mpo_chaotic_kurultai_succession.1000.l - trigger = { - exists = scope:omnod_dalai_khanate_ruler - scope:omnod_dalai_khanate_ruler != root - } - set_player_character = scope:omnod_dalai_khanate_ruler - ai_chance = { - base = 100 - } - } -} diff --git a/events/mpo_flavor_events.txt b/events/mpo_flavor_events.txt deleted file mode 100644 index 766de20b8..000000000 --- a/events/mpo_flavor_events.txt +++ /dev/null @@ -1,58 +0,0 @@ -namespace = mpo_special_flavor_events - -mpo_special_flavor_events.0001 = { - type = character_event - theme = nomads - - title = mpo_special_flavor_events.0001.t - desc = mpo_special_flavor_events.0001.desc - - override_background = { - reference = bp3_coast - } - - right_portrait = { - character = root - animation = personality_forgiving - } - - trigger = { - location = { - is_coastal = yes - } - government_has_flag = government_is_nomadic - OR = { - is_ai = no - AND = { - primary_title.tier >= tier_kingdom - is_independent_ruler = yes - } - } - NOT = { - has_character_flag = mpo_nomad_saw_the_sea - } - culture = { - is_target_in_global_variable_list = { - name = fully_landlocked_nomad_cultures - target = this - } - } - } - - immediate = { - add_character_flag = mpo_nomad_saw_the_sea - } - - option = { #cool - name = mpo_special_flavor_events.0001.a - - stress_and_fulfillment_impact = { - base = medium_stress_impact_loss - shy = major_stress_impact_loss - paranoid = major_stress_impact_loss - calm = major_stress_impact_loss - content = major_stress_impact_loss - patient = major_stress_impact_loss - } - } -} diff --git a/events/secret_faith_events.txt b/events/secret_faith_events.txt deleted file mode 100644 index 690dc39dc..000000000 --- a/events/secret_faith_events.txt +++ /dev/null @@ -1,246 +0,0 @@ -################ -# SECRET FAITH EVENTS # -################ - -namespace = secret_faith - -#secret_faith.1001-1999 - Guardian converts ward - -########################## -# GUARDIAN CONVERTS WARD # -########################## - -secret_faith.1001 = { - hidden = yes - - trigger = { - any_relation = { - type = guardian - exists = secret_faith - save_temporary_scope_as = guardian - } - NOR = { - exists = secret_faith - faith = scope:guardian.secret_faith - } - } - - immediate = { - save_scope_as = child - #If guardian and child is AI, immediately convert them - if = { - limit = { - is_ai = yes - any_relation = { - type = guardian - is_ai = yes - has_trait = zealous - } - } - random_relation = { - type = guardian - save_scope_as = guardian - } - child_secret_faith_conversion_success_effect = yes - } - else = { - random_relation = { - type = guardian - trigger_event = secret_faith.1002 - } - } - } -} - -scripted_trigger secret_faith_1002_allow_reveal_outcome_trigger = { - exists = scope:child.liege - scope:guardian = { - this != scope:child.liege - any_secret = { - type = secret_crypto_religionist - OR = { - NOT = { is_known_by = scope:child } - NOT = { is_known_by = scope:child.liege } - } - } - } -} - -#Guardian: convert this child? -secret_faith.1002 = { - type = character_event - title = secret_faith.1002.t - desc = secret_faith.1002.desc - theme = education - left_portrait = scope:child - - #So that we don't abandon our secret_faith inbetween the hidden event and this event triggering - trigger = { - exists = secret_faith - scope:child = { - NOR = { - exists = secret_faith - faith = root.secret_faith - } - } - } - - immediate = { save_scope_as = guardian } - - #Convert them - option = { - name = secret_faith.1002.a - - #Duel if child is AI - if = { - limit = { scope:child = { is_ai = yes } } - duel = { - skill = learning - target = scope:child - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = 0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = ambitious } - add = 20 - } - modifier = { - scope:child = { has_trait = curious } - add = 20 - } - desc = child_secret_faith_conversion_success_effect.desc - child_secret_faith_conversion_success_effect = yes - } - 35 = { - compare_modifier = { - value = scope:duel_value - multiplier = -2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = -0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = craven } - add = 30 - } - desc = child_secret_faith_conversion_failure_effect.desc - child_secret_faith_conversion_failure_effect = yes - } - 15 = { - compare_modifier = { - value = scope:duel_value - multiplier = -2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = -0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = zealous } - add = 150 - } - trigger = { - secret_faith_1002_allow_reveal_outcome_trigger = yes - } - desc = child_secret_faith_conversion_critical_failure_effect.desc - child_secret_faith_conversion_critical_failure_effect = yes - } - } - } - else = { - show_as_tooltip = { - random_list = { - 1 = { - show_chance = no - desc = child_secret_faith_conversion_success_effect.desc - child_secret_faith_conversion_success_effect = yes - } - 1 = { - show_chance = no - desc = child_secret_faith_conversion_failure_effect.desc - child_secret_faith_conversion_failure_effect = yes - } - 1 = { - show_chance = no - trigger = { - secret_faith_1002_allow_reveal_outcome_trigger = yes - } - desc = child_secret_faith_conversion_critical_failure_effect.desc - child_secret_faith_conversion_critical_failure_effect = yes - } - } - } - - scope:child = { - trigger_event = secret_faith.1003 - } - } - - ai_chance = { - base = 100 - - ai_boldness_target_modifier = { VALUE = 50 } - } - } - - #Don't risk it - option = { - name = secret_faith.1002.b - - ai_chance = { - base = 0 - - ai_boldness_target_modifier = { VALUE = -100 } - } - } -} - -secret_faith.1003 = { - type = character_event - title = secret_faith.1003.t - desc = secret_faith.1003.desc - theme = education - left_portrait = { - character = scope:guardian - animation = personality_dishonorable - } - - - - #Yes - option = { - name = secret_faith.1003.a - - child_secret_faith_conversion_success_effect = yes - } - - #No... - option = { - name = secret_faith.1003.b - - child_secret_faith_conversion_failure_effect = yes - } - - #I will tell someone! - option = { - trigger = { - secret_faith_1002_allow_reveal_outcome_trigger = yes - } - name = secret_faith.1003.c - - child_secret_faith_conversion_critical_failure_effect = yes - } -} diff --git a/events/tutorial_events.txt b/events/tutorial_events.txt deleted file mode 100644 index 53455a283..000000000 --- a/events/tutorial_events.txt +++ /dev/null @@ -1,444 +0,0 @@ -namespace = tutorial - -# Someone shows up to warn you that another person has fabricated a claim on one of your titles! -# We use this event to teach the player about some of the diplomatic options available in the game. -tutorial.0001 = { - type = character_event - title = tutorial.0001.t - desc = tutorial.0001.desc - theme = diplomacy - override_background = { reference = relaxing_room } - - left_portrait = { - character = root - animation = disapproval - } - right_portrait = { - character = scope:potential_ally - animation = worry - } - lower_center_portrait = { - character = scope:bad_guy - } - trigger = { - has_global_variable = tutorial_completed - any_neighboring_top_liege_realm_owner = { - count > 1 - } - } - - immediate = { - random_neighboring_top_liege_realm_owner = { - save_scope_as = bad_guy - } - random_neighboring_top_liege_realm_owner = { - limit = { - this != scope:bad_guy - } - save_scope_as = potential_ally - } - - scope:bad_guy = { - add_unpressed_claim = title:c_ennis - } - - hidden_effect = { - scope:bad_guy = { - add_trait = drunkard - add_trait = irritable - } - } - } - - option = { # Become friends with the guy plotting against you - - trigger = { - OR = { - has_trait = education_diplomacy_1 - has_trait = education_diplomacy_2 - has_trait = education_diplomacy_3 - has_trait = education_diplomacy_4 - has_trait = education_diplomacy_5 - } - } - - add_internal_flag = special - name = tutorial.0001.a - flavor = tutorial.0001.a_flavor - - if = { - limit = { - NOT = { - any_scheme = { - type = befriend - scheme_target_character = scope:bad_guy - } - } - } - start_scheme = { - target_character = scope:bad_guy - type = befriend - } - } - custom_tooltip = diplomacy_family.2250.b.tt - hidden_effect = { - random_scheme = { - type = befriend - limit = { - scheme_target_character = scope:bad_guy - } - add_scheme_modifier = { - type = tutorial_extra_success_chance_modifier - } - } - start_tutorial_lesson = reactive_advice_tutorial_schemes - } - } - - option = { # Try go get a 'donation' from the guy who warned you about the plotting - name = tutorial.0001.c - flavor = tutorial.0001.c_flavor - - duel = { - skill = diplomacy - target = scope:potential_ally - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - min = 5 - desc = tutorial.0001.c.tt.success - send_interface_toast = { - title = tutorial.0001.c.tt.success - left_icon = scope:potential_ally - add_gold = major_gold_value - } - - } - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - min = 5 - desc = tutorial.0001.c.tt.failure - send_interface_toast = { - title = tutorial.0001.c.tt.failure - left_icon = scope:potential_ally - reverse_add_opinion = { - target = scope:potential_ally - modifier = insult_opinion - opinion = -35 - } - } - - } - } - } - option = { # Get some Prestige - name = tutorial.0001.b - flavor = tutorial.0001.b_flavor - add_prestige = medium_prestige_gain - } - - - after = { - trigger_event = { - id = health.1001 - months = { 2 3 } - } - trigger_event = { - id = tutorial.0002 - months = { 12 13 } - } - } -} - -tutorial.0002 = { - type = character_event - title = tutorial.0002.t - desc = tutorial.0002.desc - theme = martial - - left_portrait = { - character = root - animation = dismissal - } - right_portrait = { - character = scope:potential_ally - animation = shame - } - lower_center_portrait = { - character = scope:bad_guy - } - trigger = { - has_global_variable = tutorial_completed - } - - option = { - trigger = { - has_trait = impatient - } - start_war = { - casus_belli = "vassalization_cb" - target = scope:bad_guy - } - - add_internal_flag = dangerous - name = tutorial.0002.c - flavor = tutorial.0002.c_flavor - hidden_effect = { - start_tutorial_lesson = reactive_advice_tutorial_war - } - } - - option = { - trigger = { - has_relation_friend = scope:bad_guy - } - add_internal_flag = special - reason = friend - - add_prestige = major_prestige_value - scope:bad_guy = { - add_opinion = { - modifier = friendliness_opinion - target = root - opinion = 20 - } - } - - name = tutorial.0002.b - flavor = tutorial.0002.b_flavor - } - - option = { - name = tutorial.0002.a - flavor = tutorial.0002.a_flavor - - duel = { - skill = diplomacy - target = scope:bad_guy - - # Crit success. - 10 = { - custom_tooltip = tutorial.0002.a.tt - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = tutorial.0002.a.tt.crit_success - send_interface_toast = { - title = tutorial.0002.a.tt.crit_success - left_icon = scope:bad_guy - create_alliance = { - target = scope:bad_guy - allied_through_owner = root - allied_through_target = scope:bad_guy - } - scope:bad_guy = { - add_opinion = { - target = root - modifier = event_negotiated_alliance_opinion - } - } - } - } - - # Success. - 40 = { - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - min = -49 - } - desc = tutorial.0002.a.tt.success - send_interface_toast = { - title = tutorial.0002.a.tt.success - left_icon = scope:bad_guy - add_truce_both_ways = { - character = scope:bad_guy - days = 1825 - name = TRUCE_ENFORCE_TRUCE - result = white_peace - } - } - - } - - # Failure. - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = -3.5 - min = -49 - } - desc = tutorial.0002.a.tt.failure - send_interface_toast = { - title = tutorial.0002.a.tt.failure - left_icon = scope:bad_guy - - scope:bad_guy = { - start_war = { - cb = claim_cb - target = root - claimant = scope:bad_guy - target_title = title:c_ennis - } - } - hidden_effect = { - start_tutorial_lesson = reactive_advice_tutorial_war - } - } - - } - } - - } -} - -tutorial.1001 = { - type = character_event - title = tutorial.1001.t - desc = tutorial.1001.desc - theme = ruler_objectives - override_background = { reference = courtyard } - - left_portrait = { - character = root - animation = eccentric - } - right_portrait = { - character = scope:councillor - animation = toast - } - cooldown = { years = 25 } - trigger = { - always = no # TODO[Ruler Objectives]: Make generally available once ready for it - capital_province = { - geographical_region = custom_ireland - } - NOR = { - house = { - has_house_modifier = ruler_objective_region_conquered_modifier - } - has_variable = ruler_objective_councillor - } - } - immediate = { - random_councillor = { - save_scope_as = councillor - } - set_variable = { - name = ruler_objective_councillor - value = scope:councillor - } - #random_geographical_region = { - # limit = { - # save_temporary_scope_as = region_temp - # any_county_in_region = { - # region = scope:region_temp - # this = root.capital_county - # } - # } - # save_scope_as = region - #} - geographical_region:custom_ireland = { - save_scope_as = region - } - } - option = { - name = tutorial.1001.a - reason = ruler_objectives - flavor = opted_into_tutorial_objectives_tt - custom_tooltip = { - text = enable_unify_region_decision_tt - add_character_flag = opted_into_tutorial_objectives - } - set_ruler_objective_decision = unify_region_decision - } - option = { - name = tutorial.1001.b - add_prestige = minor_prestige_gain - } -} - -tutorial.1002 = { - type = character_event - title = tutorial.1002.t - desc = { - desc = tutorial.1002.desc - first_valid = { - triggered_desc = { - trigger = { var:ruler_objective_councillor ?= { is_alive = yes } } - desc = tutorial.1002.desc_alive - } - desc = tutorial.1002.desc_dead - } - } - theme = ruler_objectives - override_background = { reference = throne_room } - - left_portrait = { - character = root - animation = war_over_win - } - right_portrait = { - character = scope:councillor - animation = throne_room_applaud_1 - } - immediate = { - var:ruler_objective_councillor ?= { - save_scope_as = councillor - } - #random_geographical_region = { - # limit = { - # save_temporary_scope_as = region_temp - # any_county_in_region = { - # region = scope:region_temp - # this = root.capital_county - # } - # } - # save_scope_as = region - #} - geographical_region:custom_ireland = { - save_scope_as = region - } - } - option = { - reason = ruler_objectives - name = { - trigger = { - var:ruler_objective_councillor ?= { - is_alive = yes - } - } - text = tutorial.1002.a_councillor - } - name = { - trigger = { - var:ruler_objective_councillor ?= { - is_alive = no - } - } - text = tutorial.1002.a - } - dynasty = { - add_dynasty_prestige = 500 - } - house = { - add_house_modifier = { - modifier = ruler_objective_region_conquered_modifier - years = 100 - } - } - } - after = { - remove_variable = ruler_objective_councillor - } -} - diff --git a/events/witch_events.txt b/events/witch_events.txt deleted file mode 100644 index 7bb44eec7..000000000 --- a/events/witch_events.txt +++ /dev/null @@ -1,4345 +0,0 @@ -################ -# WITCH EVENTS # -################ - -namespace = witch - -#witch.1001-1999 - Guardian coverts ward -#witch.2001-2899 - Convert to witchcraft scheme -#witch.2900-2999 - Reveal as witch interaction -#witch.3001-3999 - Witch ritual activity events -#witch.4001-4999 - Witch ongoing events -# - -########################## -# GUARDIAN CONVERTS WARD # -########################## - -witch.1001 = { #by Mathilda Bjarnehed - hidden = yes - - trigger = { - is_witch_trigger = no - any_relation = { - type = guardian - is_witch_trigger = yes - } - } - - immediate = { - save_scope_as = child - #If coven and child is AI, immediately convert them - if = { - limit = { - is_ai = yes - house ?= { - has_house_modifier = witch_coven - house_head = { is_ai = yes } - } - any_relation = { - type = guardian - is_ai = yes - } - } - child_witch_conversion_success_effect = yes - } - #For non-covens children and player children, send guardian choice event (AI guardians must chose convert for witch coven player children) - else = { - random_relation = { type = guardian trigger_event = witch.1002 } - } - } -} - -scripted_trigger witch_1002_allow_reveal_outcome_trigger = { - exists = scope:child.liege - scope:guardian = { - this != scope:child.liege - any_secret = { - type = secret_witch - OR = { - NOT = { is_known_by = scope:child } - NOT = { is_known_by = scope:child.liege } - } - } - } -} - -#Guardian: covert this child? -witch.1002 = { #by Mathilda Bjarnehed - type = character_event - title = witch.1002.t - desc = witch.1002.desc - theme = witchcraft - override_background = { - reference = study - } - left_portrait = scope:child - - immediate = { save_scope_as = guardian } - - #Convert them - option = { - name = witch.1002.a - - - #Duel if child is AI - if = { - limit = { scope:child = { is_ai = yes } } - duel = { - skill = learning - target = scope:child - 50 = { - compare_modifier = { - value = scope:duel_value - multiplier = 2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = 0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = ambitious } - add = 20 - } - modifier = { - scope:child = { has_trait = curious } - add = 20 - } - desc = child_witch_conversion_success_effect.desc - child_witch_conversion_success_effect = yes - } - 35 = { - compare_modifier = { - value = scope:duel_value - multiplier = -2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = -0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = craven } - add = 30 - } - desc = child_witch_conversion_failure_effect.desc - child_witch_conversion_failure_effect = yes - } - 15 = { - compare_modifier = { - value = scope:duel_value - multiplier = -2.5 - } - opinion_modifier = { - who = scope:child - opinion_target = scope:guardian - multiplier = -0.25 - step = 5 - } - modifier = { - scope:child = { has_trait = zealous } - add = 150 - } - trigger = { - witch_1002_allow_reveal_outcome_trigger = yes - } - desc = child_witch_conversion_critical_failure_effect.desc - child_witch_conversion_critical_failure_effect = yes - } - } - } - else = { - show_as_tooltip = { - random_list = { - 1 = { - show_chance = no - desc = child_witch_conversion_success_effect.desc - child_witch_conversion_success_effect = yes - } - 1 = { - show_chance = no - desc = child_witch_conversion_failure_effect.desc - child_witch_conversion_failure_effect = yes - } - 1 = { - show_chance = no - trigger = { - witch_1002_allow_reveal_outcome_trigger = yes - } - desc = child_witch_conversion_critical_failure_effect.desc - child_witch_conversion_critical_failure_effect = yes - } - } - } - - scope:child = { - trigger_event = witch.1003 - } - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - - ai_chance = { - base = 100 - - ai_boldness_target_modifier = { VALUE = 50 } - #Player children of witch covens should always be asked - modifier = { - scope:child = { - house ?= { has_house_modifier = witch_coven } - is_ai = no - } - add = 1000 - } - } - } - - #Don't risk it - option = { - name = witch.1002.b - - - - ai_chance = { - base = 0 - - ai_boldness_target_modifier = { VALUE = -100 } - - modifier = { - exists = liege - trait_is_criminal_in_rite_trigger = { TRAIT = trait:witch RITE = liege.rite GENDER_CHARACTER = root } - add = 100 - } - #Player children of witch covens should always be asked - modifier = { - scope:child = { - house ?= { has_house_modifier = witch_coven } - is_ai = no - } - add = -1000 - } - } - } -} - - -#Do I want to become a witch? -witch.1003 = { #by Mathilda Bjarnehed - type = character_event - title = witch.1003.t - desc = witch.1003.desc - theme = witchcraft - override_background = { - reference = study - } - left_portrait = { - character = scope:guardian - animation = personality_dishonorable - } - - - - #Yes - option = { - name = witch.1003.a - - child_witch_conversion_success_effect = yes - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #No... - option = { - name = witch.1003.b - - child_witch_conversion_failure_effect = yes - } - - #I will tell someone! - option = { - trigger = { - witch_1002_allow_reveal_outcome_trigger = yes - } - name = witch.1003.c - - child_witch_conversion_critical_failure_effect = yes - - pam_witch_justice_fulfillment_effect = yes - } -} - - - -############################################## -######COVERT TO WITCHCRAFT SCHEME EVENTS###### -############################################## - -#Do I want to go ahead with this? -witch.2001 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2001.t - desc = { - desc = witch.2001.start.desc - first_valid = { - triggered_desc = { - trigger = { trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:witch GENDER_CHARACTER = root } } - desc = witch.2001.secrecy.desc - } - desc = witch.2001.no_secrecy.desc - } - desc = witch.2001.end.desc - } - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = scope:target - - #Yes - option = { - name = witch.2001.a - custom_tooltip = witch.2001.a.tt - - if = { - limit = { scope:target = { is_ai = no } } - scope:target = { - trigger_event = { - id = witch.2002 - days = 3 - } - } - } - else_if = { - limit = { exists = scope:scheme_successful } - trigger_event = { - id = witch.2003 - days = 3 - } - } - else = { - trigger_event = { - on_action = convert_to_witchcraft_failure_outcome - days = 3 - } - } - - ai_chance = { - base = 100 - } - } - - #No - option = { - name = { - trigger = { - use_convert_to_witchcraft_secrecy_trigger = { OWNER = root } - } - text = witch.2001.b1 - } - name = { - trigger = { - use_convert_to_witchcraft_secrecy_trigger = { OWNER = root } - } - text = witch.2001.b2 - } - scope:scheme = { - end_scheme = yes - } - - ai_chance = { - base = 0 - } - } -} - -#Someone is trying to convert me to become a witch (player only) -witch.2002 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2002.t - desc = { - desc = witch.2002.start.desc - first_valid = { - triggered_desc = { - trigger = { exists = scope:scheme_discovered } - desc = witch.2002.discovery.desc - } - desc = witch.2002.no_discovery.desc - } - desc = witch.2002.end.desc - } - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:left_portrait - triggered_animation = { - trigger = { scope:left_portrait = root } - animation = disbelief - } - animation = personality_dishonorable - } - cooldown = { years = 10 } - - immediate = { - if = { - limit = { exists = scope:scheme_discovered } - scope:owner = { - save_scope_as = left_portrait - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = root } - } - reveal_to = root - save_scope_as = secret_witch_scope - } - } - } - else = { - save_scope_as = left_portrait - } - random_targeting_scheme = { - save_scope_as = scheme - scheme_owner = { save_scope_as = left_portrait save_scope_as = owner } - } - } - - #Yes I want to be a witch - option = { - name = witch.2002.a - - give_witch_secret_or_trait_effect = yes - - if = { - limit = { - NOT = { rite = { rite_has_parameter = witchcraft_accepted } } - } - add_piety = medium_piety_loss - } - - scope:owner = { - trigger_event = witch.2003 - } - - stress_and_fulfillment_impact = { - craven = medium_stress_impact_gain - } - } - - #No I don't want to be a witch - option = { - name = witch.2002.b - - add_piety = medium_piety_gain - - scope:owner = { - trigger_event = witch.2004 - } - - if = { - limit = { exists = scope:scheme_discovered } - reverse_add_opinion = { - target = scope:owner - modifier = disappointed_opinion - opinion = -15 - } - } - - stress_and_fulfillment_impact = { - ambitious = minor_stress_impact_gain - } - } - - #Reveal them to the world! - option = { - trigger = { exists = scope:scheme_discovered } - name = witch.2002.c - - add_piety = medium_piety_gain - - reverse_add_opinion = { - target = scope:owner - modifier = hate_opinion - opinion = -30 - } - - scope:owner = { - if = { - limit = { - any_secret = { - type = secret_witch - } - } - show_as_tooltip = { - random_secret = { - type = secret_witch - expose_secret = scope:target - } - } - } - trigger_event = witch.2005 - } - - pam_witch_justice_fulfillment_effect = yes - - stress_and_fulfillment_impact = { - craven = medium_stress_impact_gain - compassionate = minor_stress_impact_gain - trusting = minor_stress_impact_gain - } - } -} - -#SUCCESS EVENTS -scripted_trigger witch_2003_can_learn_owner_secret = { - save_temporary_scope_as = secret_learner - scope:owner = { - any_secret = { - type = secret_witch - NOT = { is_known_by = scope:secret_learner } - } - } -} - -scripted_trigger witch_2003_unlock_reveal_trigger = { - NOT = { exists = scope:scheme_discovered } - scope:target = { witch_2003_can_learn_owner_secret = yes } -} - - -witch.2003 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2003.t - desc = witch.2003.desc - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:target - animation = personality_rational - } - immediate = { - scope:target = { - give_witch_secret_or_trait_effect = yes - random_secret = { - type = secret_witch - reveal_to = root - } - } - if = { - limit = { exists = scope:scheme_discovered } - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = scope:target } - } - reveal_to = scope:target - } - - reverse_add_opinion = { - target = scope:target - modifier = grateful_opinion - opinion = 20 - } - } - } - - #Great! - option = { - trigger = { witch_2003_unlock_reveal_trigger = no } - name = witch.2003.a - - scope:scheme = { - end_scheme = yes - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Let them know who I am - option = { - trigger = { witch_2003_unlock_reveal_trigger = yes } - name = witch.2003.b - - if = { - limit = { - house ?= { has_house_modifier = witch_coven } - } - custom_tooltip = witch.2003.b.tt - } - - scope:target = { - send_interface_message = { - type = event_witchcraft_good - title = witch.2003.message - left_icon = scope:owner - scope:owner = { - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = scope:target } - } - reveal_to = scope:target - } - } - } - } - - reverse_add_opinion = { - target = scope:target - modifier = grateful_opinion - opinion = 20 - } - - scope:scheme = { - end_scheme = yes - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - - ai_chance = { - base = 100 - - modifier = { - has_trait = honest - add = 50 - } - modifier = { - has_trait = trusting - add = 100 - } - } - } - - #Keep my secret - option = { - trigger = { witch_2003_unlock_reveal_trigger = yes } - name = witch.2003.c - - scope:scheme = { - end_scheme = yes - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - - ai_chance = { - base = 50 - modifier = { - has_trait = paranoid - add = 100 - } - modifier = { - has_trait = craven - add = 50 - } - modifier = { - has_trait = deceitful - add = 50 - } - } - } - - after = { - #Handle discover - if = { - limit = { - exists = scope:scheme_discovered - scope:target = { - is_ai = yes - OR = { - AND = { - is_ruler = no - liege ?= { - witch_2003_can_learn_owner_secret = yes - this != scope:owner - } - } - any_relation = { type = lover witch_2003_can_learn_owner_secret = yes } - any_consort = { witch_2003_can_learn_owner_secret = yes } - any_child = { - age >= 7 - witch_2003_can_learn_owner_secret = yes - } - } - } - } - #Trigger the Overheard-event for the Scheme Owner - trigger_event = witch.2010 - } - } -} - -#Success, but discovered -witch.2010 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2010.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - any_secret = { - type = secret_witch - is_known_by = scope:target - } - } - desc = witch.talk.2010 - } - desc = witch.leave.2010 - } - desc = witch.end.2010 - } - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:target - animation = personality_rational - } - - immediate = { - hidden_effect = { - scope:target = { - random_list = { - 3 = { - trigger = { - is_ruler = no - liege ?= { - witch_2003_can_learn_owner_secret = yes - this != scope:owner - } - } - liege = { save_scope_as = listener } - } - 5 = { - trigger = { - any_relation = { - type = lover - witch_2003_can_learn_owner_secret = yes - } - } - random_relation = { - type = lover - limit = { witch_2003_can_learn_owner_secret = yes } - save_scope_as = listener - } - } - 5 = { - trigger = { - any_consort = { witch_2003_can_learn_owner_secret = yes } - } - random_consort = { - limit = { witch_2003_can_learn_owner_secret = yes } - save_scope_as = listener - } - } - 1 = { - trigger = { - any_child = { - age >= 7 - witch_2003_can_learn_owner_secret = yes - } - } - random_child = { - limit = { - age >= 7 - witch_2003_can_learn_owner_secret = yes - } - save_scope_as = listener - } - } - } - } - #Let's notify the Listener that they learned the secret - scope:listener = { - send_interface_message = { - type = event_witchcraft_neutral - title = witch.2010.message - left_icon = scope:owner - scope:owner = { - random_secret = { - type = secret_witch - reveal_to = scope:listener - } - } - } - } - } - } - option = { - name = witch.2010.a - custom_tooltip = witch.2010.a.tt - } -} - - -#FAILURE EVENTS - -#They refuse -witch.2004 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2004.t - desc = { - desc = witch.2004.start.desc - first_valid = { - triggered_desc = { - trigger = { exists = scope:scheme_discovered } - desc = witch.2004.discovered.desc - } - desc = witch.2004.not_discovered.desc - } - } - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:target - animation = anger - } - - immediate = { - if = { - limit = { exists = scope:scheme_discovered } - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = scope:target } - } - reveal_to = scope:target - } - reverse_add_opinion = { - target = scope:target - modifier = impious_opinion - opinion = -20 - } - } - scope:target = { - add_character_flag = { - flag = block_convert_to_witchcraft - days = 7300 - } - } - } - - option = { - name = witch.2004.a - - scope:scheme = { - end_scheme = yes - } - } -} - -#They tell their liege -witch.2005 = { #by Mathilda Bjarnehed - type = character_event - title = witch.2004.t - desc = { - desc = witch.2004.start.desc - desc = witch.2005.end.desc - } - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:target - animation = anger - } - trigger = { - exists = scope:scheme_discovered - } - - weight_multiplier = { - base = 1 - - ai_value_modifier = { - who = scope:target - ai_zeal = 0.05 - max = 2 - min = -0.5 - } - opinion_modifier = { - who = scope:target - opinion_target = root - multiplier = -0.05 - max = 2 - min = -0.5 - } - } - - - immediate = { - random_secret = { - type = secret_witch - save_scope_as = witch_secret_scope - } - } - - option = { - name = witch.2005.a - flavor = witch.2005.a.tt - if = { - limit = { - scope:witch_secret_scope = { - NOT = { is_known_by = scope:target } - } - } - scope:target = { - send_interface_toast = { - title = witch.2005.toast - left_icon = root - scope:witch_secret_scope = { - reveal_to = scope:target - } - } - } - } - if = { - limit = { - scope:witch_secret_scope = { - NOT = { is_known_by = scope:target.liege } - } - } - scope:target.liege = { - send_interface_toast = { - title = witch.2005.toast - left_icon = root - scope:witch_secret_scope = { - reveal_to = scope:target.liege - } - } - } - } - scope:target = { - add_character_flag = { - flag = block_convert_to_witchcraft - days = 7300 - } - } - reverse_add_opinion = { - target = scope:target - modifier = impious_opinion - opinion = -20 - } - scope:scheme = { - end_scheme = yes - } - } - - after = { - scope:witch_secret_scope = { - expose_secret = scope:target - } - } -} - - -#Target was already a witch! Expose your secrets to each other - for owner -witch.2006 = { #by Linnéa Thimrén - type = character_event - title = witch.2006.t - desc = witch.2006.desc - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:target - animation = shock - } - - trigger = { #Make sure the secrets are still unknown and that target is alive and kicking - any_scheme = { - type = convert_to_witchcraft - scheme_target_character = scope:target - } - scope:target = { - is_alive = yes - any_secret = { - type = secret_witch - NOT = { any_secret_knower = { this = root } } - } - } - } - - immediate = { - scope:target = { - random_secret = { - type = secret_witch - reveal_to = root - } - trigger_event = witch.2007 - } - random_secret = { - type = secret_witch - reveal_to = scope:target - } - reverse_add_opinion = { - target = scope:target - modifier = respect_opinion - opinion = 20 - } - } - - #Great! - option = { - name = witch.2006.a - } - - after = { - scope:scheme = { - end_scheme = yes - } - } -} - - -#Target was already a witch! Expose your secrets to each other - for target -witch.2007 = { #by Linnéa Thimrén - type = character_event - title = witch.2007.t - desc = witch.2007.desc - theme = witchcraft - override_background = { - reference = sitting_room - } - left_portrait = { - character = scope:owner - animation = shock - } - - trigger = { #Make sure the secrets are still unknown and that target is alive and kicking - scope:owner = { - is_alive = yes - is_witch_trigger = yes - } - } - - immediate = { - show_as_tooltip = { - scope:owner = { - random_secret = { - type = secret_witch - reveal_to = root - } - } - random_secret = { - type = secret_witch - reveal_to = scope:owner - } - } - reverse_add_opinion = { - target = scope:owner - modifier = respect_opinion - opinion = 20 - } - } - - #Great! - option = { - name = witch.2007.a - } -} - -############################### -# REVEAL AS WITCH INTERACTION # -############################### - -witch.2900 = { - type = letter_event - opening = witch.2900.t - desc = witch.2900.desc - sender = scope:actor - orphan = yes - - immediate = { - scope:witch_secret = { reveal_to = root } - hidden_effect = { - if = { - limit = { can_set_relation_potential_friend_trigger = { CHARACTER = scope:actor } } - set_relation_potential_friend = scope:actor - } - } - } - - option = { - name = witch.2900.a - scope:actor = { - trigger_event = { - id = witch.2901 - days = 3 - } - } - } -} - -witch.2901 = { - type = letter_event - opening = witch.2901.t - desc = witch.2901.desc - sender = scope:recipient - - option = { - name = witch.2901.a - } -} - - -######################### -# WITCH RITUAL ACTIVITY # -######################### - -witch.3001 = { - type = letter_event - opening = witch.3001.t - desc = witch.3001.desc - sender = scope:host - orphan = yes # deprecated by new activity system - - immediate = { - scope:activity.activity_host = { save_scope_as = host } - debug_log = invitation_received - } - - #Yes! - option = { - name = witch.3001.a - - play_music_cue = "mx_cue_sacredrite" - accept_activity_invite = scope:activity - reverse_add_opinion = { - target = scope:host - modifier = pleased_opinion - opinion = 10 - } - ai_chance = { - base = 100 - opinion_modifier = { - opinion_target = scope:host - } - } - } - - #No... - option = { - name = witch.3001.b - - decline_activity_invite = scope:activity - reverse_add_opinion = { - target = scope:host - modifier = disappointed_opinion - opinion = -10 - } - ai_chance = { - base = 10 - modifier = { - add = 15 - target_is_liege_or_above = scope:host - } - ai_value_modifier = { - ai_boldness = 0.2 - } - } - } -} - -#No guests came -witch.3002 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3002.t - desc = witch.3002.desc - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = { - character = scope:target - animation = sadness - } - - option = { - name = witch.3002.a - } -} - - -#Uninvited guest -scripted_trigger witch_3003_potential_guest_trigger = { - is_adult = yes - NOR = { - has_RelationToMe_relation = { CHARACTER = root } - any_secret = { - type = secret_witch - is_known_by = root - } - } - faith = scope:inviter.faith - culture = { has_same_culture_heritage = scope:inviter.culture } - is_witch_trigger = yes -} - - -witch.3003 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3003.t - desc = witch.3003.desc - theme = witchcraft - override_background = { - reference = corridor_night - } - left_portrait = scope:inviter - right_portrait = scope:new_guest - - trigger = { - scope:activity = { - any_attending_character = { - this != root - is_adult = yes - } - } - } - - immediate = { - hidden_effect = { - capital_province = { save_scope_as = capital } - - #Find inviter - scope:activity = { - random_attending_character = { - limit = { - NOR = { - is_courtier_of = root - this = root - } - is_ai = yes - is_adult = yes - } - alternative_limit = { - is_ai = yes - is_adult = yes - } - alternative_limit = { is_adult = yes } - save_scope_as = inviter - } - } - - #50% chance of pool character guest, 50% chance of new guest - random = { - chance = 50 - random_pool_character = { - province = capital_province - limit = { - witch_3003_potential_guest_trigger = yes - save_temporary_scope_as = potential_guest - OR = { - AND = { - OR = { - has_trait = beauty_good - has_trait = intellect_good - } - matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:potential_guest CHARACTER_2 = root } - } - has_trait = lifestyle_herbalist - } - } - alternative_limit = { - witch_3003_potential_guest_trigger = yes - } - save_scope_as = new_guest - } - } - - if = { - limit = { - NOT = { exists = scope:new_guest } - } - create_witch_effect = { WHO = root } - scope:created_witch = { - save_scope_as = new_guest - visit_court_of = root - } - } - - #Discover secret - scope:new_guest = { - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = root } - } - reveal_to = root - } - add_character_flag = { - flag = grand_rite_new_guest - days = 30 - } - } - } - } - - #You are very welcome! - option = { - name = witch.3003.a - - scope:new_guest = { - add_to_activity = scope:activity - } - reverse_add_opinion = { - target = scope:new_guest - modifier = grateful_opinion - opinion = 15 - } - reverse_add_opinion = { - target = scope:inviter - modifier = grateful_opinion - opinion = 15 - } - } - - #Guest of honor! - option = { - name = witch.3003.b - - scope:new_guest = { - add_to_activity = scope:activity - } - reverse_add_opinion = { - target = scope:new_guest - modifier = grateful_opinion - opinion = 30 - } - reverse_add_opinion = { - target = scope:inviter - modifier = envy_opinion - opinion = -10 - } - } - - #Invitations only, sorry - option = { - name = witch.3003.c - - reverse_add_opinion = { - target = scope:new_guest - modifier = disappointed_opinion - opinion = -15 - } - reverse_add_opinion = { - target = scope:inviter - modifier = disappointed_opinion - opinion = -15 - } - } -} - - -#Grand rite choice - -scripted_effect grand_rite_good_outcome = { - scope:activity = { - every_attending_character = { - limit = { this != root } - custom = every_grand_rite_participant - add_opinion = { - target = root - modifier = impressed_opinion - opinion = 20 - } - } - } -} - -scripted_effect grand_rite_poor_outcome = { - scope:activity = { - every_attending_character = { - limit = { this != root } - custom = every_grand_rite_participant - add_opinion = { - target = root - modifier = disappointed_opinion - opinion = -15 - } - } - } - add_stress = minor_stress_gain -} - -witch.3010 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3010.t - desc = witch.3010.desc - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = root - - immediate = { - save_scope_as = host - capital_province = { save_scope_as = background_wilderness_scope } - } - - #Read old scroll - option = { - name = witch.3010.a - - duel = { - skill = learning - value = average_skill_rating - 75 = { - desc = witch.3010.a.great - compare_modifier = { - value = scope:duel_value - multiplier = 5 - } - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:great_translation - } - show_as_tooltip = { grand_rite_good_outcome = yes } - } - 25 = { - desc = witch.3010.a.poor - compare_modifier = { - value = scope:duel_value - multiplier = -5 - } - min = 10 - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:poor_translation - } - show_as_tooltip = { grand_rite_poor_outcome = yes } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - } - } - - #Use some tricks - option = { - name = witch.3010.b - - duel = { - skill = intrigue - value = average_skill_rating - 75 = { - desc = witch.3010.b.great - compare_modifier = { - value = scope:duel_value - multiplier = 5 - } - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:great_tricks - } - show_as_tooltip = { grand_rite_good_outcome = yes } - } - 25 = { - desc = witch.3010.b.poor - compare_modifier = { - value = scope:duel_value - multiplier = -5 - } - min = 10 - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:poor_tricks - } - show_as_tooltip = { grand_rite_poor_outcome = yes } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - honest = minor_stress_impact_gain - } - } - - #Improvise - option = { - name = witch.3010.c - - duel = { - skill = diplomacy - value = average_skill_rating - 75 = { - desc = witch.3010.c.great - compare_modifier = { - value = scope:duel_value - multiplier = 5 - } - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:great_improvisation - } - show_as_tooltip = { grand_rite_good_outcome = yes } - } - 25 = { - desc = witch.3010.c.poor - compare_modifier = { - value = scope:duel_value - multiplier = -5 - } - min = 10 - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:poor_improvisation - } - show_as_tooltip = { grand_rite_poor_outcome = yes } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - shy = minor_stress_impact_gain - } - } - - #Have a really nice offering - option = { - trigger = { - is_ai = no - short_term_gold >= medium_gold_value - } - name = witch.3010.d - - remove_short_term_gold = medium_gold_value - - save_scope_value_as = { - name = grand_rite_ceremony_outcome - value = flag:offering - } - - grand_rite_good_outcome = yes - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - greedy = minor_stress_impact_gain - } - } - - option = { - trigger = { - short_term_gold < medium_gold_value - } - name = witch.3010.e - custom_tooltip = witch.3010.e.tt - - } - - after = { - scope:activity = { - every_attending_character = { - trigger_event = { - id = witch.3014 - } - } - } - } -} - -#Everyone reacts to the grand rite (host and guests) -scripted_trigger witch_3014_can_have_sex_trigger = { - is_adult = yes - NOR = { - has_sexuality = asexual - has_trait = celibate - } - trigger_if = { - limit = { NOT = { is_consort_of = root } } - might_cheat_on_every_partner_trigger = yes - } -} - -scripted_trigger witch_3014_sex_partner_trigger = { - witch_3014_can_have_sex_trigger = yes - this != root - is_ai = yes - save_temporary_scope_as = seduction_target - matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:seduction_target CHARACTER_2 = root } -} - -scripted_trigger witch_3014_loved_sex_partner_trigger = { - witch_3014_sex_partner_trigger = yes - OR = { - has_relation_lover = root - is_consort_of = root - has_relation_soulmate = root - } -} - -scripted_trigger witch_3014_regular_sex_partner_trigger = { - witch_3014_sex_partner_trigger = yes - NOR = { - has_relation_lover = root - has_relation_soulmate = root - is_consort_of = root - } -} - -scripted_effect witch_3017_soulmate_sex_effect = { - reverse_add_opinion = { - target = scope:sex_partner - modifier = love_opinion - opinion = 20 - } - add_stress = major_stress_loss - had_sex_with_effect = { CHARACTER = scope:sex_partner PREGNANCY_CHANCE = 50 } -} - - -witch.3014 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3010.t - desc = { - #host - first_valid = { - triggered_desc = { - trigger = { root = scope:host } - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:great_translation } - desc = witch.3014.host.great_translation.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:poor_translation } - desc = witch.3014.host.poor_translation.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:great_tricks } - desc = witch.3014.host.great_tricks.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:poor_tricks } - desc = witch.3014.host.poor_tricks.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:great_improvisation } - desc = witch.3014.host.great_improvisation.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:poor_improvisation } - desc = witch.3014.host.poor_improvisation.desc - } - triggered_desc = { - trigger = { scope:grand_rite_ceremony_outcome = flag:offering } - desc = witch.3014.host.offering.desc - } - desc = witch.3014.host.fallback.desc - } - desc = witch.3014.host.end.desc - } - } - #everyone else - desc = { - desc = witch.3014.guest.start.desc - first_valid = { - triggered_desc = { - trigger = { - OR = { - scope:grand_rite_ceremony_outcome = flag:great_translation - scope:grand_rite_ceremony_outcome = flag:great_tricks - scope:grand_rite_ceremony_outcome = flag:great_improvisation - scope:grand_rite_ceremony_outcome = flag:offering - NOT = { exists = scope:grand_rite_ceremony_outcome } - } - } - desc = witch.3014.guest.good.desc - } - triggered_desc = { - trigger = { - OR = { - scope:grand_rite_ceremony_outcome = flag:poor_translation - scope:grand_rite_ceremony_outcome = flag:poor_tricks - scope:grand_rite_ceremony_outcome = flag:poor_improvisation - } - } - desc = witch.3014.guest.bad.desc - } - desc = witch.3014.guest.fallback.desc - } - desc = witch.3014.guest.end.desc - } - } - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = { - trigger = { exists = scope:left_portrait } - character = scope:left_portrait - } - right_portrait = { - trigger = { exists = scope:right_portrait } - character = scope:right_portrait - } - lower_left_portrait = { - trigger = { exists = scope:lower_left_portrait } - character = scope:lower_left_portrait - } - lower_center_portrait = { - trigger = { exists = scope:lower_center_portrait } - character = scope:lower_center_portrait - } - lower_right_portrait = { - trigger = { exists = scope:lower_right_portrait } - character = scope:lower_right_portrait - } - - immediate = { - #Tell everyone secret about everyone else - hidden_effect = { - scope:activity = { - every_attending_character = { - save_temporary_scope_as = learning_secret - scope:activity = { - every_attending_character = { - random_secret = { - type = secret_witch - limit = { - NOT = { is_known_by = scope:learning_secret } - } - reveal_to = scope:learning_secret - } - } - } - } - } - } - - #Give outcome to host - if = { - limit = { - this = scope:host - exists = scope:grand_rite_ceremony_outcome - } - - if = { - limit = { - OR = { - scope:grand_rite_ceremony_outcome = flag:great_translation - scope:grand_rite_ceremony_outcome = flag:great_tricks - scope:grand_rite_ceremony_outcome = flag:great_improvisation - scope:grand_rite_ceremony_outcome = flag:offering - } - } - grand_rite_good_outcome = yes - } - else_if = { - limit = { - OR = { - scope:grand_rite_ceremony_outcome = flag:poor_translation - scope:grand_rite_ceremony_outcome = flag:poor_tricks - scope:grand_rite_ceremony_outcome = flag:poor_improvisation - } - } - grand_rite_poor_outcome = yes - } - } - - - ###What is available to do?### - scope:activity = { - #Talk to new guest - if = { - limit = { root = scope:host } - scope:activity = { - random_attending_character = { - limit = { has_character_flag = grand_rite_new_guest } - save_scope_as = new_guest - } - } - } - - #Herbalism - random_attending_character = { - limit = { - has_trait = lifestyle_herbalist - NOR = { - trigger_if = { - limit = { exists = scope:new_guest } - this = scope:new_guest - } - this = root - } - } - save_scope_as = herbalist - } - - #Teacher (experience ) - random_attending_character = { - limit = { - NOR = { - trigger_if = { - limit = { exists = scope:new_guest } - this = scope:new_guest - } - trigger_if = { - limit = { exists = scope:herbalist } - this = scope:herbalist - } - this = root - } - trigger_if = { - limit = { highest_skill = diplomacy } - root = { diplomacy_lifestyle_perk_points < max_perk_amount_per_lifestyle } - } - trigger_else_if = { - limit = { highest_skill = martial } - root = { martial_lifestyle_perk_points < max_perk_amount_per_lifestyle } - } - trigger_else_if = { - limit = { highest_skill = stewardship } - root = { stewardship_lifestyle_perk_points < max_perk_amount_per_lifestyle } - } - trigger_else_if = { - limit = { highest_skill = intrigue } - root = { intrigue_lifestyle_perk_points < max_perk_amount_per_lifestyle } - } - trigger_else_if = { - limit = { highest_skill = learning } - root = { learning_lifestyle_perk_points < max_perk_amount_per_lifestyle } - } - trigger_else = { - always = no - } - } - weight = { - base = 0 - modifier = { - add = { - if = { - limit = { highest_skill = diplomacy } - add = diplomacy - } - else_if = { - limit = { highest_skill = martial } - add = martial - } - else_if = { - limit = { highest_skill = stewardship } - add = stewardship - } - else_if = { - limit = { highest_skill = intrigue } - add = intrigue - } - else_if = { - limit = { highest_skill = learning } - add = learning - } - } - } - } - save_scope_as = teacher - } - - #Someone to seduce - if = { - limit = { - root = { - witch_3014_can_have_sex_trigger = yes - } - } - #If you have a soulmate here, only sleep with them (not available if they can't sleep with you for some reason) - if = { - limit = { any_attending_character = { has_relation_soulmate = root } } - random_attending_character = { - limit = { - witch_3014_loved_sex_partner_trigger = yes - has_relation_soulmate = root - } - save_scope_as = sex_partner - } - } - else = { - random_list = { - #Just someone regular - 1 = { - trigger = { - any_attending_character = { - witch_3014_regular_sex_partner_trigger = yes - accepts_incest_with_trigger = { CHARACTER = root } #Skip this one if there's only non-accepting incest options available - } - } - random_attending_character = { - limit = { - witch_3014_regular_sex_partner_trigger = yes - save_temporary_scope_as = sex_partner_check #Saved for weight modifier - } - weight = { - base = 10 - modifier = { - has_trait = seducer - add = 10 - } - modifier = { - has_trait = lustful - add = 10 - } - modifier = { - has_trait = beauty_good - add = 10 - } - modifier = { - has_relation_potential_lover = root - add = 10 - } - incest_acceptance_modifier = { - TARGET = scope:sex_partner_check - SEDUCER = root - } - } - save_scope_as = sex_partner - } - } - 1 = { - trigger = { - any_attending_character = { - witch_3014_loved_sex_partner_trigger = yes - } - } - random_attending_character = { - limit = { - witch_3014_loved_sex_partner_trigger = yes - } - weight = { - base = 1 - modifier = { - is_spouse_of = root - add = 2 - } - } - save_scope_as = sex_partner - } - } - } - } - } - - #Set portraits - if = { - limit = { - exists = scope:herbalist - exists = scope:teacher - exists = scope:new_guest - } - scope:herbalist = { save_scope_as = lower_left_portrait } - scope:teacher = { save_scope_as = lower_center_portrait } - scope:new_guest = { save_scope_as = lower_right_portrait } - } - else_if = { - limit = { - exists = scope:herbalist - exists = scope:teacher - } - scope:herbalist = { save_scope_as = left_portrait } - scope:teacher = { save_scope_as = right_portrait } - } - else_if = { - limit = { - exists = scope:herbalist - exists = scope:new_guest - } - scope:herbalist = { save_scope_as = left_portrait } - scope:new_guest = { save_scope_as = right_portrait } - } - else_if = { - limit = { - exists = scope:teacher - exists = scope:new_guest - } - scope:teacher = { save_scope_as = left_portrait } - scope:new_guest = { save_scope_as = right_portrait } - } - else_if = { - limit = { exists = scope:herbalist } - scope:herbalist = { save_scope_as = left_portrait } - } - else_if = { - limit = { exists = scope:teacher } - scope:teacher = { save_scope_as = left_portrait } - } - else_if = { - limit = { exists = scope:new_guest } - scope:new_guest = { save_scope_as = left_portrait } - } - else = { - root = { save_scope_as = left_portrait } - } - } - } - - ###WHAT DO I WANT TO DO?### - - #Herbalism - option = { - trigger = { - exists = scope:herbalist - } - name = witch.3014.a - highlight_portrait = scope:herbalist - - if = { - limit = { NOT = { has_trait = lifestyle_herbalist } } - random_list = { - 40 = { - desc = witch.3014.a.knowledge - send_interface_toast = { - title = witch.3014.a.knowledge - left_icon = scope:herbalist - add_trait = lifestyle_herbalist - } - } - 60 = { - desc = witch.3014.a.inspiration - send_interface_toast = { - title = witch.3014.a.inspiration - left_icon = scope:herbalist - add_character_modifier = { - modifier = seeker_of_knowledge - years = 5 - } - } - } - } - } - else = { - add_character_modifier = { - modifier = seeker_of_knowledge - years = 5 - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - lazy = minor_stress_impact_gain - } - } - - #Teacher gives you lifestyle perk point - option = { - trigger = { exists = scope:teacher } - name = { - text = { - desc = witch.3014.b.start - first_valid = { - triggered_desc = { - trigger = { scope:teacher = { highest_skill = diplomacy } } - desc = witch.3014.b.diplomacy - } - triggered_desc = { - trigger = { scope:teacher = { highest_skill = martial } } - desc = witch.3014.b.martial - } - triggered_desc = { - trigger = { scope:teacher = { highest_skill = stewardship } } - desc = witch.3014.b.stewardship - } - triggered_desc = { - trigger = { scope:teacher = { highest_skill = intrigue } } - desc = witch.3014.b.intrigue - } - triggered_desc = { - trigger = { scope:teacher = { highest_skill = learning } } - desc = witch.3014.b.learning - } - } - } - } - highlight_portrait = scope:teacher - - if = { - limit = { scope:teacher = { highest_skill = diplomacy } } - add_diplomacy_lifestyle_perk_points = 1 - } - else_if = { - limit = { scope:teacher = { highest_skill = martial } } - add_martial_lifestyle_perk_points = 1 - } - else_if = { - limit = { scope:teacher = { highest_skill = stewardship } } - add_stewardship_lifestyle_perk_points = 1 - } - else_if = { - limit = { scope:teacher = { highest_skill = intrigue } } - add_intrigue_lifestyle_perk_points = 1 - } - else_if = { - limit = { scope:teacher = { highest_skill = learning } } - add_learning_lifestyle_perk_points = 1 - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - lazy = minor_stress_impact_gain - } - } - - #Seducer (sneak away) - option = { - trigger = { - exists = scope:sex_partner - NOT = { has_relation_soulmate = scope:sex_partner } - is_attracted_to_gender_of = scope:sex_partner - might_cheat_on_every_partner_trigger = yes - } - name = witch.3014.c - custom_tooltip = witch.3014.c.tt - - if = { - limit = { scope:sex_partner = { witch_3014_loved_sex_partner_trigger = yes } } - trigger_event = { - id = witch.3016 - days = 1 - } - } - else = { - trigger_event = { - id = witch.3015 - days = 1 - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - chaste = medium_stress_impact_gain - shy = minor_stress_impact_gain - rakish = minor_stress_impact_loss - } - } - - #Seducer (soulmate) - option = { - trigger = { - exists = scope:sex_partner - has_relation_soulmate = scope:sex_partner - } - name = witch.3014.e - highlight_portrait = scope:sex_partner - - trigger_event = { - id = witch.3017 - days = 1 - } - show_as_tooltip = { witch_3017_soulmate_sex_effect = yes } - } - - #Talk with new guest - option = { - trigger = { exists = scope:new_guest } - name = witch.3014.d - highlight_portrait = scope:new_guest - - random_list = { - 35 = { #Becomes friend and joins court - desc = witch.3014.d.move_in - compatibility_modifier = { - who = root - compatibility_target = scope:new_guest - multiplier = 3 - max = 50 - min = -30 - } - send_interface_toast = { - title = witch.3014.d.move_in - left_icon = scope:new_guest - set_relation_friend = { reason = friend_bond_at_ceremony target = scope:new_guest } - add_courtier = scope:new_guest - } - } - 50 = { #Becomes friend - desc = witch.3014.d.friend - compatibility_modifier = { - who = root - compatibility_target = scope:new_guest - multiplier = 2 - max = 35 - min = -35 - } - send_interface_toast = { - title = witch.3014.d.friend - left_icon = scope:new_guest - set_relation_friend = { reason = friend_bond_at_ceremony target = scope:new_guest province = root.location } - } - } - 15 = { - desc = witch.3014.d.enemy - compatibility_modifier = { - who = root - compatibility_target = scope:new_guest - multiplier = -3 - max = 60 - min = -9 - } - modifier = { - OR = { - has_trait = vengeful - has_trait = callous - has_trait = sadistic - has_trait = wrathful - } - add = 15 - } - send_interface_toast = { - title = witch.3014.d.enemy - left_icon = scope:new_guest - set_relation_rival = { - target = scope:new_guest - reason = rival_at_ceremony - } - } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - shy = minor_stress_impact_gain - } - } - - #Relax and indulge - option = { - trigger = { - calc_true_if = { - amount <= 3 - exists = scope:herbalist - exists = scope:teacher - exists = scope:sex_partner - exists = scope:new_guest - } - } - name = witch.3014.f - - stress_and_fulfillment_impact = { - base = major_stress_loss - witch = minor_stress_impact_loss - gregarious = minor_stress_impact_loss - drunkard = minor_stress_impact_loss - hashishiyah = minor_stress_impact_loss - comfort_eater = minor_stress_impact_loss - } - } -} - - -#Sleep with someone (regular) -witch.3015 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3015.t - desc = { - desc = witch.3015.start.desc - first_valid = { - triggered_desc = { - trigger = { - exists = scope:new_guest - scope:sex_partner = scope:new_guest - } - desc = witch.3015.new_guest.desc - } - desc = witch.3015.regular.desc - } - desc = witch.3015.end.desc - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = { - character = scope:sex_partner - animation = flirtation - } - - #Yes - option = { - name = witch.3015.a - - progress_towards_lover_effect = { - CHARACTER = scope:sex_partner - REASON = lover_witch_sex_partner - OPINION = default_lover_opinion - } - had_sex_with_effect = { CHARACTER = scope:sex_partner PREGNANCY_CHANCE = 50 } - } - - #No - option = { - name = witch.3015.b - custom_tooltip = witch.3015.b.tt - - reverse_add_opinion = { - target = scope:sex_partner - modifier = disappointed_opinion - opinion = -15 - } - } -} - -#Sleep with someone (spouse/lover -> soulmate) -witch.3016 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3016.t - desc = { - desc = witch.3015.start.desc - desc = witch.3016.end.desc - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = { - character = scope:sex_partner - animation = love - } - - #Yes - option = { - name = witch.3016.a - - set_relation_soulmate = { reason = soulmate_witch_ceremony copy_reason = lover target = scope:sex_partner } - had_sex_with_effect = { CHARACTER = scope:sex_partner PREGNANCY_CHANCE = 50 } - } - - #No - option = { - name = witch.3016.b - custom_tooltip = witch.3015.b.tt - - reverse_add_opinion = { - target = scope:sex_partner - modifier = disappointed_opinion - opinion = -15 - } - } -} - - -#Sleep with someone (soulmate) -witch.3017 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3016.t - desc = { - desc = witch.3015.start.desc - desc = witch.3017.end.desc - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = { - character = scope:sex_partner - animation = love - } - - #Yes - option = { - name = witch.3017.a - witch_3017_soulmate_sex_effect = yes - } - - #No - option = { - name = witch.3017.b - custom_tooltip = witch.3015.b.tt - - reverse_add_opinion = { - target = scope:sex_partner - modifier = disappointed_opinion - opinion = -15 - } - } -} - - -###Grand rite end events## - -#End for host -witch.3098 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3098.t - desc = { - desc = witch.3098.start.desc - desc = witch.3098.end.desc - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = root - - immediate = { - capital_province = { save_scope_as = background_wilderness_scope } - } - - option = { - name = witch.3098.a - } -} - -#End for guest -witch.3099 = { #by Mathilda Bjarnehed - type = activity_event - title = witch.3098.t - desc = { - desc = witch.3099.start.desc - desc = witch.3098.end.desc - } - theme = witchcraft - override_background = { - reference = bp1_bonfire - } - left_portrait = root - - option = { - name = witch.3098.a - custom_tooltip = witch.3099.tt - } -} - - - -######################## -# WITCH ONGOING EVENTS # -######################## - -### Court chaplain / other clergy is an idiot ### - -scripted_trigger witch_4001_annoying_clergy_trigger = { - OR = { - has_council_position = councillor_court_chaplain - is_clergy = yes - } - ai_zeal >= medium_negative_ai_value - NOR = { - is_close_family_of = root - has_relation_friend = root - has_relation_lover = root - opinion = { - target = root - value >= medium_positive_opinion - } - any_secret = { - type = secret_non_believer - } - } - is_ai = yes - faith = root.faith -} - -scripted_effect witch_4001_prank_success_effect = { - add_character_modifier = { - modifier = trickster_modifier - years = 10 - } - stress_and_fulfillment_impact = { - base = medium_stress_impact_loss - compassionate = minor_stress_impact_gain - honest = minor_stress_impact_gain - forgiving = minor_stress_impact_gain - vengeful = minor_stress_impact_loss - sadistic = medium_stress_impact_loss - deceitful = minor_stress_impact_loss - } - scope:annoying_clergy = { - add_prestige = medium_prestige_loss - } -} - -scripted_effect witch_4001_corruption_success_effect = { - scope:annoying_clergy = { - add_secret = { - type = secret_non_believer - } - random_secret = { - type = secret_non_believer - reveal_to = root - } - custom_tooltip = witch_4001_corruption_success_effect.tt - } -} - -scripted_trigger witch_4001_desc_valid_sin_trigger = { - rite = { trait_is_sin_rite = $TRAIT$ } - NOT = { - scope:annoying_clergy = { has_trait = $TRAIT$ } - } -} - -scripted_trigger witch_4001_desc_prefered_sin_trigger = { - witch_4001_desc_valid_sin_trigger = { TRAIT = $TRAIT$ } - has_trait = $TRAIT$ -} - -scripted_trigger witch_4001_zeal_condition_trigger = { - OR = { - ai_zeal <= high_negative_zeal - AND = { - num_sinful_traits >= 1 - ai_zeal < 0 - } - } -} - -scripted_trigger witch_4001_event_available_trigger = { - NOT = { has_character_flag = event_cooldown_witch_4001 } - OR = { - trigger_if = { - limit = { exists = cp:councillor_court_chaplain } - cp:councillor_court_chaplain = { witch_4001_annoying_clergy_trigger = yes } - } - trigger_if = { - limit = { is_landed = no } - any_courtier = { - witch_4001_annoying_clergy_trigger = yes - } - } - trigger_else = { - any_vassal = { - witch_4001_annoying_clergy_trigger = yes - } - } - } -} - -witch.4000 = { #Pre-event to ensure witch if sent through trait-specific on-action - hidden = yes - - trigger = { - is_witch_trigger = yes - witch_4001_event_available_trigger = yes - } - - immediate = { - trigger_event = witch.4001 - } -} - -witch.4001 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4001.t - desc = { - desc = witch.4001.start.desc - #Pick a sin - first_valid = { - #A sin that root has - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = forgiving } } - desc = witch.4001.forgiving.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = deceitful } } - desc = witch.4001.deceitful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = gluttonous } } - desc = witch.4001.gluttonous.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = wrathful } } - desc = witch.4001.wrathful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = greedy } } - desc = witch.4001.greedy.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = arbitrary } } - desc = witch.4001.arbitrary.desc - } - triggered_desc = { - trigger = { - OR = { - witch_4001_desc_prefered_sin_trigger = { TRAIT = sadistic } - witch_4001_desc_prefered_sin_trigger = { TRAIT = callous } - } - } - desc = witch.4001.sadistic.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = craven } } - desc = witch.4001.craven.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = lustful } } - desc = witch.4001.lustful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = vengeful } } - desc = witch.4001.vengeful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_prefered_sin_trigger = { TRAIT = arrogant } } - desc = witch.4001.arrogant.desc - } - #A sin that root doesn't have - random_valid = { - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = forgiving } } - desc = witch.4001.forgiving.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = deceitful } } - desc = witch.4001.deceitful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = gluttonous } } - desc = witch.4001.gluttonous.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = wrathful } } - desc = witch.4001.wrathful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = greedy } } - desc = witch.4001.greedy.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = arbitrary } } - desc = witch.4001.arbitrary.desc - } - triggered_desc = { - trigger = { - OR = { - witch_4001_desc_valid_sin_trigger = { TRAIT = sadistic } - witch_4001_desc_valid_sin_trigger = { TRAIT = callous } - } - } - desc = witch.4001.sadistic.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = craven } } - desc = witch.4001.craven.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = lustful } } - desc = witch.4001.lustful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = vengeful } } - desc = witch.4001.vengeful.desc - } - triggered_desc = { - trigger = { witch_4001_desc_valid_sin_trigger = { TRAIT = arrogant } } - desc = witch.4001.arrogant.desc - } - } - desc = witch.4001.fallback.desc - } - first_valid = { - triggered_desc = { - trigger = { is_witch_trigger = yes } - desc = witch.4001.witch.desc - } - desc = witch.4001.impious.desc - } - } - theme = faith - override_icon = { - trigger = { is_witch_trigger = yes } - reference = "gfx/interface/icons/event_types/type_medicine.dds" - } - left_portrait = scope:annoying_clergy - - trigger = { - OR = { - witch_4001_zeal_condition_trigger = yes - is_witch_trigger = yes - } - witch_4001_event_available_trigger = yes - } - - weight_multiplier = { - base = 0.2 - modifier = { - is_witch_trigger = yes - add = 0.8 - } - modifier = { - num_sinful_traits >= 1 - add = 0.4 - } - } - - immediate = { - add_character_flag = event_cooldown_witch_4001 - if = { - limit = { - exists = cp:councillor_court_chaplain - cp:councillor_court_chaplain = { witch_4001_annoying_clergy_trigger = yes } - } - cp:councillor_court_chaplain = { add_to_list = annoying_clergy_list } - } - if = { - limit = { is_landed = no } - every_courtier = { - limit = { - NOT = { is_in_list = annoying_clergy_list } - witch_4001_annoying_clergy_trigger = yes - } - add_to_list = annoying_clergy_list - } - } - else = { - every_vassal = { - limit = { - NOT = { is_in_list = annoying_clergy_list } - witch_4001_annoying_clergy_trigger = yes - } - add_to_list = annoying_clergy_list - } - } - - - random_in_list = { - list = annoying_clergy_list - weight = { - base = 30 - modifier = { - OR = { - is_councillor = yes - is_powerful_vassal = yes - } - add = 150 - } - opinion_modifier = { - opinion_target = root - multiplier = -1 - min = -25 - } - modifier = { - add = { - value = ai_zeal - divide = 2 - } - } - } - save_scope_as = annoying_clergy - } - - capital_province = { save_scope_as = capital } - } - - #Make a fool of them - option = { - name = witch.4001.a - flavor = witch.4001.a.tt - - duel = { - skill = intrigue - target = scope:annoying_clergy - desc = outcome_in_a_few_days - - 60 = { - desc = witch.4001.a.success - compare_modifier = { - value = scope:duel_value - multiplier = 3.5 - } - show_as_tooltip = { witch_4001_prank_success_effect = yes } - trigger_event = { - id = witch.4002 - days = 3 - } - } - 40 = { - desc = witch.4001.a.failure - compare_modifier = { - value = scope:duel_value - multiplier = -2 - } - send_interface_toast = { - title = witch.4001.a.failure - left_icon = scope:annoying_clergy - reverse_add_opinion = { - target = scope:annoying_clergy - modifier = angry_opinion - opinion = -10 - } - } - } - } - - stress_and_fulfillment_impact = { - compassionate = minor_stress_impact_gain - honest = minor_stress_impact_gain - forgiving = minor_stress_impact_gain - craven = minor_stress_impact_gain - } - - } - - #Impress them - option = { - name = witch.4001.c - - reverse_add_opinion = { - target = scope:annoying_clergy - modifier = pious_opinion - opinion = 20 - } - add_piety = minor_piety_gain - - stress_and_fulfillment_impact = { - honest = minor_stress_impact_gain - cynical = minor_stress_impact_gain - } - } - - #Turn them around - option = { - name = witch.4001.b - - duel = { - desc = outcome_in_a_few_weeks - skill = learning - target = scope:annoying_clergy - - 30 = { - desc = witch.4001.b.success - compare_modifier = { - value = scope:duel_value - multiplier = 3 - } - show_as_tooltip = { witch_4001_corruption_success_effect = yes } - - trigger_event = { - id = witch.4003 - days = { 7 14 } - } - } - 20 = { - desc = witch.4001.b.neutral - compare_modifier = { - value = scope:duel_value - multiplier = 1 - } - custom_tooltip = witch.4001.b.neutral.tt - trigger_event = { - id = witch.4004 - days = { 7 14 } - } - } - 50 = { - desc = witch.4001.b.failure - compare_modifier = { - value = scope:duel_value - multiplier = -3 - } - trigger_event = { - id = witch.4005 - days = { 7 14 } - } - modifier = { - add = { - value = scope:annoying_clergy.ai_zeal - divide = 2 - } - } - } - } - } -} - - -#You made a fool out of them! -witch.4002 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4001.t - desc = { - first_valid = { - triggered_desc = { - trigger = { is_witch_trigger = yes } - desc = witch.4002.witch.desc - } - desc = witch.4002.impious.desc - } - first_valid = { - #A sin - triggered_desc = { - trigger = { - rite = { trait_is_sin_rite = gluttonous } - NOT = { scope:annoying_clergy = { has_trait = temperate } } - } - desc = witch.4002.gluttonous.desc - } - triggered_desc = { - trigger = { - OR = { - rite = { trait_is_sin_rite = wrathful } - rite = { trait_is_sin_rite = drunkard } - } - } - desc = witch.4002.wrathful.desc - } - triggered_desc = { - trigger = { - rite = { - OR = { - trait_is_sin_rite = sadistic - trait_is_sin_rite = callous - trait_is_sin_rite = vengeful - } - } - scope:annoying_clergy = { - NAND = { - has_trait = compassionate - has_trait = forgiving - } - } - exists = scope:vengeful_desc - } - desc = witch.4002.vengeful.desc - } - triggered_desc = { - trigger = { - rite = { trait_is_sin_rite = craven } - NOT = { scope:annoying_clergy = { has_trait = brave } } - } - desc = witch.4002.craven.desc - } - triggered_desc = { - trigger = { - rite = { trait_is_sin_rite = lustful } - exists = scope:lustful_desc - } - desc = witch.4002.lustful.desc - } - triggered_desc = { - trigger = { - rite = { trait_is_sin_rite = arrogant } - NOT = { scope:annoying_clergy = { has_trait = humble } } - } - desc = witch.4002.arrogant.desc - } - #Not sins but it still looks bad - random_valid = { - triggered_desc = { - trigger = { NOT = { scope:annoying_clergy = { has_trait = temperate } } } - desc = witch.4002.gluttonous.desc - } - triggered_desc = { - trigger = { exists = scope:lustful_desc } - desc = witch.4002.lustful.desc - } - triggered_desc = { - trigger = { - scope:annoying_clergy = { - NAND = { - has_trait = compassionate - has_trait = forgiving - } - } - exists = scope:vengeful_desc - } - } - triggered_desc = { - trigger = { NOT = { scope:annoying_clergy = { has_trait = humble } } } - desc = witch.4002.arrogant.desc - } - desc = witch.4002.wrathful.desc - } - - } - desc = witch.4002.end.desc - } - theme = faith - override_icon = { - trigger = { is_witch_trigger = yes } - reference = "gfx/interface/icons/event_types/type_medicine.dds" - } - left_portrait = scope:annoying_clergy - - trigger = { - exists = scope:annoying_clergy - } - - immediate = { - witch_4001_prank_success_effect = yes - if = { - limit = { is_ai = no } #This is just for text - random_courtier = { - limit = { - is_adult = yes - NOR = { - this = root - this = scope:annoying_clergy - is_consort_of = scope:annoying_clergy - has_relation_lover = scope:annoying_clergy - } - scope:annoying_clergy = { is_attracted_to_gender_of = prev } - } - save_scope_as = lustful_desc - } - random_courtier = { - limit = { - is_adult = yes - NOR = { - this = root - this = scope:annoying_clergy - } - } - save_scope_as = vengeful_desc - } - scope:annoying_clergy = { - romance_target_gender_effect = { SCOPE_NAME = wrathful_desc } - } - } - } - - option = { - name = witch.4002.a - - } -} - - -#You corrupted them! -witch.4003 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4001.t - desc = witch.4003.desc - theme = faith - override_icon = { - trigger = { is_witch_trigger = yes } - reference = "gfx/interface/icons/event_types/type_medicine.dds" - } - left_portrait = scope:annoying_clergy - - trigger = { - exists = scope:annoying_clergy - } - - immediate = { - witch_4001_corruption_success_effect = yes - - if = { - limit = { - is_witch_trigger = yes - NOT = { scope:annoying_clergy = { is_witch_trigger = yes } } - } - random = { - chance = 30 - save_scope_value_as = { - name = witch_options - value = yes - } - } - } - } - - #Great! - option = { - name = witch.4003.a - - } - - #Yes, make them a witch! - option = { - trigger = { exists = scope:witch_options } - name = witch.4003.b - trait = witch - - scope:annoying_clergy = { - give_witch_secret_or_trait_effect = yes - random_secret = { - type = secret_witch - reveal_to = root - } - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - - #Yes, make them a witch and tell them about me! - option = { - trigger = { - exists = scope:witch_options - any_secret = { - type = secret_witch - NOT = { is_known_by = scope:annoying_clergy } - } - } - name = witch.4003.c - trait = witch - - scope:annoying_clergy = { - give_witch_secret_or_trait_effect = yes - random_secret = { - type = secret_witch - reveal_to = root - } - } - - random_secret = { - type = secret_witch - reveal_to = scope:annoying_clergy - } - - reverse_add_opinion = { - modifier = respect_opinion - opinion = 20 - target = scope:annoying_clergy - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } -} - -#You're nearly there... -witch.4004 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4001.t - desc = witch.4004.desc - theme = faith - override_icon = { - trigger = { is_witch_trigger = yes } - reference = "gfx/interface/icons/event_types/type_medicine.dds" - } - left_portrait = scope:annoying_clergy - - trigger = { - exists = scope:annoying_clergy - } - - #Keep trying! - option = { - name = witch.4004.a - - stress_and_fulfillment_impact = { - base = major_stress_impact_gain - diligent = medium_stress_impact_loss - lazy = minor_stress_impact_gain - } - - random_list = { - desc = outcome_in_a_few_days - 85 = { - desc = witch.4001.b.success - show_as_tooltip = { - witch_4001_corruption_success_effect = yes - } - trigger_event = { - id = witch.4003 - days = 3 - } - } - 15 = { - desc = witch.4001.b.failure - trigger_event = { - id = witch.4005 - days = 3 - } - } - } - - - ai_chance = { - base = 50 - } - } - - #Give up - option = { - name = witch.4004.b - - ai_chance = { - base = 50 - } - } -} - -#Corruption failed -witch.4005 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4001.t - desc = witch.4005.desc - theme = faith - override_icon = { - trigger = { is_witch_trigger = yes } - reference = "gfx/interface/icons/event_types/type_medicine.dds" - } - left_portrait = scope:annoying_clergy - - trigger = { - exists = scope:annoying_clergy - } - - option = { - name = witch.4005.a - } -} - - -### PERSONAL WITCH RITUAL ### - -scripted_effect witch_4010_option_effect = { - random_list = { - #DIPLOMACY - 10 = { - trigger = { - NOR = { - exists = scope:confident_diplomat - has_character_modifier = confident_diplomat - } - } - modifier = { - has_lifestyle = diplomacy_lifestyle - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = diplomacy - multiply = 2 - } - } - save_scope_value_as = { - name = confident_diplomat - value = yes - } - } - - #MARTIAL - 10 = { - trigger = { - NOR = { - exists = scope:confident_strategist - has_character_modifier = confident_strategist - } - } - modifier = { - has_lifestyle = martial_lifestyle - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = martial - multiply = 2 - } - } - save_scope_value_as = { - name = confident_strategist - value = yes - } - } - - #STEWARDSHIP - 10 = { - trigger = { - NOR = { - exists = scope:confident_organizer - has_character_modifier = confident_organizer - } - } - modifier = { - has_lifestyle = stewardship_lifestyle - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = stewardship - multiply = 2 - } - } - save_scope_value_as = { - name = confident_organizer - value = yes - } - } - - #INTRIGUE - 10 = { - trigger = { - NOR = { - exists = scope:confident_schemer - has_character_modifier = confident_schemer - } - } - modifier = { - has_lifestyle = intrigue_lifestyle - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = intrigue - multiply = 2 - } - } - save_scope_value_as = { - name = confident_schemer - value = yes - } - } - - #LEARNING - 10 = { - trigger = { - NOR = { - exists = scope:confident_scholar - has_character_modifier = confident_scholar - } - } - modifier = { - has_lifestyle = learning_lifestyle - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = learning - multiply = 2 - } - } - save_scope_value_as = { - name = confident_scholar - value = yes - } - } - - #PROWESS - 10 = { - trigger = { - NOR = { - exists = scope:confident_duelist - has_character_modifier = confident_duelist - } - } - modifier = { - has_focus = martial_chivalry_focus - add = 30 - } - modifier = { - add = { - value = extremely_high_skill_rating - subtract = prowess - multiply = 2 - } - } - save_scope_value_as = { - name = confident_duelist - value = yes - } - } - - #ATTRACTION - 20 = { - trigger = { - NOR = { - exists = scope:alluring_confidence - has_character_modifier = alluring_confidence - } - } - modifier = { - OR = { - has_trait = lustful - ai_sociability >= low_positive_ai_value - has_focus = intrigue_temptation_focus - } - add = 50 - } - save_scope_value_as = { - name = alluring_confidence - value = yes - } - } - - #RELAXATION - 20 = { - trigger = { - stress >= low_stress - NOT = { exists = scope:stress } - } - modifier = { - add = { - value = stress - divide = extremely_high_stress - multiply = 80 - } - } - save_scope_value_as = { - name = stress - value = yes - } - } - } -} - - -witch.4010 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4010.t - desc = witch.4010.desc - theme = witchcraft - override_background = { - reference = wilderness - } - left_portrait = root - - trigger = { - NOT = { has_character_flag = event_cooldown_witch_4010 } - is_witch_trigger = yes - } - - weight_multiplier = { - base = 1 - } - - immediate = { - add_character_flag = { - flag = event_cooldown_witch_4010 - days = 1825 - } - - #3 options - witch_4010_option_effect = yes - witch_4010_option_effect = yes - witch_4010_option_effect = yes - } - - #Ask for love - option = { - trigger = { exists = scope:alluring_confidence } - name = witch.4010.a - - add_character_modifier = { - modifier = alluring_confidence - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for diplomacy - option = { - trigger = { exists = scope:confident_diplomat } - name = witch.4010.b - - add_character_modifier = { - modifier = confident_diplomat - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for martial - option = { - trigger = { exists = scope:confident_strategist } - name = witch.4010.c - - add_character_modifier = { - modifier = confident_strategist - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for stewardship - option = { - trigger = { exists = scope:confident_organizer } - name = witch.4010.d - - add_character_modifier = { - modifier = confident_organizer - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for intrigue - option = { - trigger = { exists = scope:confident_schemer } - name = witch.4010.e - - add_character_modifier = { - modifier = confident_schemer - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for learning - option = { - trigger = { exists = scope:confident_scholar } - name = witch.4010.f - - add_character_modifier = { - modifier = confident_scholar - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for prowess - option = { - trigger = { exists = scope:confident_duelist } - name = witch.4010.g - - add_character_modifier = { - modifier = confident_duelist - years = 10 - } - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } - - #Ask for relaxation - option = { - trigger = { exists = scope:stress } - name = witch.4010.h - - add_stress = monumental_stress_loss - - stress_and_fulfillment_impact = { - witch = medium_stress_impact_loss - } - } -} - - -######################## -# WITCH FRIEND: PRAYER # -######################## - -scripted_trigger witch_4020_prayer_friend_trigger = { - this != root - potential_witch_friend_trigger = { CHARACTER = root } - NOT = { is_in_list = prayer_witches } - basic_is_available_ai = yes - OR = { - has_relation_potential_friend = root - opinion = { - target = root - value >= low_positive_opinion - } - } -} - -witch.4020 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4020.t - desc = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:prayer_witch_2 } - desc = witch.4020.two_witches.desc - } - desc = witch.4020.one_witch.desc - } - random_valid = { - desc = witch.4020.full_moon.desc - desc = witch.4020.new_moon.desc - desc = witch.4020.equinox.desc - desc = witch.4020.solstice.desc - } - desc = witch.4020.end.desc - } - theme = witchcraft - override_background = { - reference = wilderness - } - left_portrait = scope:prayer_witch_1 - right_portrait = scope:prayer_witch_2 - - trigger = { - OR = { - any_known_secret = { - secret_owner = { - this != root # Don't include our own secrets! - witch_4020_prayer_friend_trigger = yes - } - } - any_relation = { - type = potential_friend - witch_4020_prayer_friend_trigger = yes - } - any_close_or_extended_family_member = { witch_4020_prayer_friend_trigger = yes } - any_vassal = { witch_4020_prayer_friend_trigger = yes } - any_courtier_or_guest = { witch_4020_prayer_friend_trigger = yes } - any_consort = { witch_4020_prayer_friend_trigger = yes } - } - NOR = { - has_character_modifier = clear_mind_modifier - has_character_flag = event_cooldown_witch_4020 - } - } - - - immediate = { - add_character_flag = { - flag = event_cooldown_witch_4020 - years = 15 - } - every_known_secret = { - limit = { - secret_owner = { - witch_4020_prayer_friend_trigger = yes - this != root - } - } - secret_owner = { add_to_list = prayer_witches } - } - every_relation = { - type = potential_friend - limit = { witch_4020_prayer_friend_trigger = yes } - add_to_list = prayer_witches - } - every_close_or_extended_family_member = { - limit = { witch_4020_prayer_friend_trigger = yes } - add_to_list = prayer_witches - } - every_vassal = { - limit = { witch_4020_prayer_friend_trigger = yes } - add_to_list = prayer_witches - } - every_courtier_or_guest = { - limit = { witch_4020_prayer_friend_trigger = yes } - add_to_list = prayer_witches - } - every_consort = { - limit = { witch_4020_prayer_friend_trigger = yes } - add_to_list = prayer_witches - } - - # Pick two - random_in_list = { - list = prayer_witches - - weight = { - base = 1 - - compatibility_modifier = { - compatibility_target = root - } - opinion_modifier = { - opinion_target = root - } - ai_value_modifier = { - ai_sociability = 0.5 - ai_compassion = 0.2 - ai_boldness = 0.2 - } - modifier = { - has_relation_potential_friend = root - add = 100 - } - } - save_scope_as = prayer_witch_1 - } - - if = { - limit = { exists = scope:prayer_witch_2 } - random_in_list = { - list = prayer_witches - limit = { this != scope:prayer_witch_1 } - weight = { - base = 1 - - compatibility_modifier = { - compatibility_target = root - } - opinion_modifier = { - opinion_target = root - } - ai_value_modifier = { - ai_sociability = 0.5 - ai_compassion = 0.2 - ai_boldness = 0.2 - } - modifier = { - has_relation_potential_friend = root - add = 100 - } - } - save_scope_as = prayer_witch_2 - } - } - } - - # Pray for prayer_witch_1 - option = { - name = witch.4020.a - - progress_towards_friend_effect = { CHARACTER = scope:prayer_witch_1 REASON = friend_prayed_for_witch OPINION = default_friend_opinion } - scope:prayer_witch_1 = { - add_character_modifier = { - modifier = clear_mind_modifier - years = 10 - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - greedy = minor_stress_impact_gain - ambitious = minor_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_greed = -1 - ai_compassion = -0.5 - ai_honor = -0.5 - } - opinion_modifier = { - opinion_target = scope:prayer_witch_1 - } - } - } - - # Pray for prayer_witch_2 - option = { - name = witch.4020.b - trigger = { exists = scope:prayer_witch_2 } - - progress_towards_friend_effect = { CHARACTER = scope:prayer_witch_2 REASON = friend_prayed_for_witch OPINION = default_friend_opinion } - scope:prayer_witch_2 = { - add_character_modifier = { - modifier = clear_mind_modifier - years = 10 - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - greedy = minor_stress_impact_gain - ambitious = minor_stress_impact_gain - } - ai_chance = { - base = 50 - ai_value_modifier = { - ai_greed = -1 - ai_compassion = -0.5 - ai_honor = -0.5 - } - opinion_modifier = { - opinion_target = scope:prayer_witch_2 - } - } - } - - # Pray for me! - option = { - name = witch.4020.c - - add_character_modifier = { - modifier = clear_mind_modifier - years = 10 - } - - stress_and_fulfillment_impact = { - base = minor_stress_impact_loss # It's not be be prayed for - witch = minor_stress_impact_loss - generous = minor_stress_impact_gain - shy = minor_stress_impact_gain - craven = minor_stress_impact_gain - content = minor_stress_impact_gain - } - ai_chance = { - base = 100 - ai_value_modifier = { - ai_greed = 2 - ai_compassion = -1 - ai_honor = -1 - } - } - } -} - - -############# -# RARE BOOK # -############# - -scripted_trigger witch_4030_friend_trigger = { - potential_witch_friend_trigger = { CHARACTER = root } - basic_is_available_ai = yes - is_adult = yes - learning >= decent_skill_rating -} - -scripted_trigger witch_4030_convince_trigger = { - is_witch_trigger = no - is_adult = yes - basic_is_available_ai = yes -} - -scripted_effect witch_4030_convince_success_effect = { - save_scope_as = book_recipient - give_witch_secret_or_trait_effect = yes - random_secret = { - type = secret_witch - reveal_to = root - } - scope:newly_created_artifact = { - set_owner = { - target = scope:book_recipient - history = { - location = root.capital_province - actor = scope:book_holder - recipient = scope:book_recipient - type = given - } - } - } -} - -scripted_effect witch_4030_convince_failure_effect = { - add_character_modifier = { - modifier = on_edge_modifier - years = 10 - } - destroy_artifact = scope:newly_created_artifact -} - -witch.4030 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4030.t - desc = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:witch_friend } - desc = witch.4030.friend.desc - } - desc = witch.4030.no_friend.desc - } - } - theme = witchcraft - override_background = { - reference = study - } - left_portrait = scope:left_portrait - right_portrait = scope:right_portrait - lower_left_portrait = scope:lower_left_portrait - lower_right_portrait = scope:lower_right_portrait - artifact = { - target = scope:newly_created_artifact - position = lower_center_portrait - } - - trigger = { - OR = { - has_trait = witch - any_secret = { type = secret_witch } - } - OR = { - has_lifestyle = diplomacy_lifestyle - has_lifestyle = martial_lifestyle - has_lifestyle = stewardship_lifestyle - has_lifestyle = intrigue_lifestyle - has_lifestyle = learning_lifestyle - } - } - - weight_multiplier = { - base = 1 - - # Friend helping - modifier = { - any_relation = { - type = friend - witch_4030_friend_trigger = yes - } - add = 1 - } - modifier = { - any_relation = { - type = friend - witch_4030_friend_trigger = yes - learning >= high_skill_rating - } - add = 1 - } - - #Your learning - modifier = { - add = { - value = learning - subtract = average_skill_rating - multiply = 0.1 - min = -0.7 - max = 1 - } - } - } - - immediate = { - save_scope_as = book_holder - - #Did a friend help out? Show them :) - random_relation = { - type = friend - limit = { witch_4030_friend_trigger = yes } - weight = { - base = 1 - opinion_modifier = { - opinion_target = root - } - modifier = { - add = { - value = learning - multiply = 5 - } - } - } - save_scope_as = witch_friend - } - - # Who can we convert? Pick two - every_scheme = { - type = convert_to_witchcraft - limit = { - scheme_target_character = { witch_4030_convince_trigger = yes } - } - scheme_target_character = { add_to_list = convince } - } - every_vassal = { - limit = { witch_4030_convince_trigger = yes } - add_to_list = convince - } - every_councillor = { - limit = { witch_4030_convince_trigger = yes } - add_to_list = convince - } - every_spouse = { - limit = { witch_4030_convince_trigger = yes } - add_to_list = convince - } - every_close_or_extended_family_member = { - limit = { witch_4030_convince_trigger = yes } - add_to_list = convince - } - - random_in_list = { - list = convince - limit = { - save_temporary_scope_as = convert_target - root = { - any_scheme = { - type = convert_to_witchcraft - scheme_target_character = scope:convert_target - } - } - } - alternative_limit = { always = yes } - - weight = { - base = 1 - ai_value_modifier = { - ai_greed = 1 - ai_rationality = 1 - } - modifier = { - add = { - value = learning - multiply = 5 - } - } - modifier = { - OR = { - is_powerful_vassal_of = root - is_councillor_of = root - AND = { - exists = root.house - root.house = { NOT = { has_house_modifier = witch_coven } } - house ?= root.house - } - } - add = 50 - } - } - save_scope_as = convince_target_1 - } - - if = { - limit = { exists = scope:convince_target_1 } - random_in_list = { - list = convince - limit = { - this != scope:convince_target_1 - } - - weight = { - base = 1 - ai_value_modifier = { - ai_greed = 1 - ai_rationality = 1 - } - modifier = { - add = { - value = learning - multiply = 5 - } - } - modifier = { - OR = { - is_powerful_vassal_of = root - is_councillor_of = root - AND = { - exists = root.house - root.house = { NOT = { has_house_modifier = witch_coven } } - house ?= root.house - } - } - add = 50 - } - } - save_scope_as = convince_target_2 - } - } - - #Save portraits - if = { - limit = { - exists = scope:witch_friend - exists = scope:convince_target_2 - } - scope:witch_friend = { save_scope_as = left_portrait } - scope:convince_target_1 = { save_scope_as = lower_left_portrait } - scope:convince_target_2 = { save_scope_as = lower_right_portrait } - } - else_if = { - limit = { - exists = scope:witch_friend - exists = scope:convince_target_1 - } - scope:witch_friend = { save_scope_as = left_portrait } - scope:convince_target_1 = { save_scope_as = right_portrait } - } - else_if = { - limit = { exists = scope:witch_friend } - scope:witch_friend = { save_scope_as = left_portrait } - } - else_if = { - limit = { - exists = scope:convince_target_1 - exists = scope:convince_target_2 - } - scope:convince_target_1 = { save_scope_as = left_portrait } - scope:convince_target_2 = { save_scope_as = right_portrait } - } - else_if = { - limit = { exists = scope:convince_target_1 } - scope:convince_target_1 = { save_scope_as = left_portrait } - } - set_variable = { - name = book_subject_witch_scope - value = root - } - save_temporary_scope_value_as = { - name = should_be_trinket - value = yes - } - if = { - limit = { exists = scope:witch_friend } - create_artifact_book_effect = { #using effect to ensure that scope:owner is set properly - OWNER = root - CREATOR = scope:witch_friend - SET_SUBJECT = flag:witch - SET_TOPIC = flag:worship_horned_god - } - } - else = { - hidden_effect = { - random_dummy_gender_effect = yes - } - create_artifact_book_effect = { #using effect to ensure that scope:owner is set properly - OWNER = root - CREATOR = scope:dummy_gender - SET_SUBJECT = flag:witch - SET_TOPIC = flag:worship_horned_god - } - } - remove_variable = book_subject_witch_scope - } - - # Study the book for perk together - option = { - name = { - text = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:witch_friend } - desc = witch.4030.friend.a - } - desc = witch.4030.no_friend.a - } - } - } - - - if = { - limit = { has_lifestyle = diplomacy_lifestyle } - add_diplomacy_lifestyle_perk_points = 1 - } - else_if = { - limit = { has_lifestyle = martial_lifestyle } - add_martial_lifestyle_perk_points = 1 - } - else_if = { - limit = { has_lifestyle = stewardship_lifestyle } - add_stewardship_lifestyle_perk_points = 1 - } - else_if = { - limit = { has_lifestyle = intrigue_lifestyle } - add_intrigue_lifestyle_perk_points = 1 - } - else_if = { - limit = { has_lifestyle = learning_lifestyle } - add_learning_lifestyle_perk_points = 1 - } - - if = { - limit = { exists = scope:witch_friend } - scope:witch_friend = { - if = { - limit = { root = { has_lifestyle = diplomacy_lifestyle } } - add_diplomacy_lifestyle_perk_points = 1 - } - else_if = { - limit = { root = { has_lifestyle = martial_lifestyle } } - add_martial_lifestyle_perk_points = 1 - } - else_if = { - limit = { root = { has_lifestyle = stewardship_lifestyle } } - add_stewardship_lifestyle_perk_points = 1 - } - else_if = { - limit = { root = { has_lifestyle = intrigue_lifestyle } } - add_intrigue_lifestyle_perk_points = 1 - } - else_if = { - limit = { root = { has_lifestyle = learning_lifestyle } } - add_learning_lifestyle_perk_points = 1 - } - } - } - else = { - add_stress = medium_stress_gain # No friend means working harder - } - show_as_tooltip = { - scope:newly_created_artifact = { set_owner = root } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - } - } - - # Sell it to other witches and share profit - option = { - name = witch.4030.b - - add_gold = medium_gold_value - - if = { - limit = { exists = scope:witch_friend } - scope:witch_friend = { add_gold = root.medium_gold_value } - } - destroy_artifact = scope:newly_created_artifact - - } - - # use it to convince someone (option 1) - option = { - trigger = { exists = scope:convince_target_1 } - name = witch.4030.c - - scope:convince_target_1 = { save_scope_as = convince_target } - - random_list = { - desc = outcome_in_a_few_days - 55 = { - desc = witch.4030.c.success - ai_value_modifier = { - who = scope:convince_target_1 - ai_zeal = -0.5 - ai_greed = 0.5 - ai_rationality = 0.5 - } - modifier = { - add = { - value = scope:convince_target_1.learning - multiply = 2 - } - } - trigger_event = { - id = witch.4031 - days = 3 - } - show_as_tooltip = { scope:convince_target_1 = { witch_4030_convince_success_effect = yes } } - } - 45 = { - desc = witch.4030.c.failure - ai_value_modifier = { - who = scope:convince_target_1 - ai_zeal = 0.25 - ai_greed = -0.25 - ai_rationality = -0.25 - } - trigger_event = { - id = witch.4032 - days = 3 - } - show_as_tooltip = { scope:convince_target_1 = { witch_4030_convince_failure_effect = yes } } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - } - } - - # use it to convince someone (option 2) - option = { - trigger = { exists = scope:convince_target_2 } - name = witch.4030.d - - scope:convince_target_2 = { save_scope_as = convince_target } - - random_list = { - desc = outcome_in_a_few_days - 55 = { - desc = witch.4030.d.success - ai_value_modifier = { - who = scope:convince_target_2 - ai_zeal = -0.5 - ai_greed = 0.5 - ai_rationality = 0.5 - } - modifier = { - add = { - value = scope:convince_target_2.learning - multiply = 2 - } - } - trigger_event = { - id = witch.4031 - days = 3 - } - show_as_tooltip = { scope:convince_target_2 = { witch_4030_convince_success_effect = yes } } - } - 45 = { - desc = witch.4030.d.failure - ai_value_modifier = { - who = scope:convince_target_2 - ai_zeal = 0.25 - ai_greed = -0.25 - ai_rationality = -0.25 - } - trigger_event = { - id = witch.4032 - days = 3 - } - show_as_tooltip = { scope:convince_target_2 = { witch_4030_convince_failure_effect = yes } } - } - } - - stress_and_fulfillment_impact = { - witch = minor_stress_impact_loss - } - } -} - -# Convince success -witch.4031 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4030.t - desc = { - desc = witch.4031.start.desc - desc = witch.4031.end.desc - } - theme = witchcraft - left_portrait = { - character = scope:convince_target - animation = personality_rational - } - - trigger = { - exists = scope:convince_target - scope:convince_target = { is_alive = yes } - } - - - option = { - name = witch.4031.a - scope:convince_target = { witch_4030_convince_success_effect = yes } - } -} - -# Convince failure -witch.4032 = { #by Mathilda Bjarnehed - type = character_event - title = witch.4030.t - desc = { - desc = witch.4031.start.desc - desc = witch.4032.end.desc - } - theme = witchcraft - left_portrait = { - character = scope:convince_target - animation = shock - } - - trigger = { - exists = scope:convince_target - scope:convince_target = { is_alive = yes } - } - - - option = { - name = witch.4032.a - scope:convince_target = { witch_4030_convince_failure_effect = yes } - } -} - - - -