diff --git a/events/scheme_events/befriend_scheme/befriend_ongoing_events.txt b/events/scheme_events/befriend_scheme/befriend_ongoing_events.txt index a013656ad7..e04cf34363 100644 --- a/events/scheme_events/befriend_scheme/befriend_ongoing_events.txt +++ b/events/scheme_events/befriend_scheme/befriend_ongoing_events.txt @@ -176,8 +176,14 @@ befriend_ongoing.1001 = { desc = befriend_ongoing.1001.desc.end } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = personality_honorable + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -306,8 +312,30 @@ befriend_ongoing.1002 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { + OR = { + has_trait = greedy + has_trait = arrogant + } + } + animation = personality_greedy + } + triggered_animation = { + trigger = { has_personality_malicious_trigger = yes } + animation = personality_callous + } + triggered_animation = { + trigger = { has_personality_benevolent_trigger = yes } + animation = personality_compassionate + } + } + right_portrait = { + character = scope:target + animation = personality_honorable + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -444,8 +472,15 @@ befriend_ongoing.1003 = { title = befriend_ongoing.1003.t desc = befriend_ongoing.1003.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:rival + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = schadenfreude + } + lower_center_portrait = scope:rival widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -573,8 +608,15 @@ befriend_ongoing.1004 = { title = befriend_ongoing.1004.t desc = befriend_ongoing.1004.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = scope:rival + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:owner + animation = schadenfreude + } + lower_center_portrait = scope:rival trigger = { exists = scope:scheme @@ -617,8 +659,15 @@ befriend_ongoing.1005 = { title = befriend_ongoing.1005.t desc = befriend_ongoing.1005.desc theme = befriend_scheme - left_portrait = scope:rival - right_portrait = scope:owner + left_portrait = { + character = root + animation = anger + } + right_portrait = { + character = scope:owner + animation = schadenfreude + } + lower_center_portrait = scope:target trigger = { exists = scope:scheme @@ -657,8 +706,14 @@ befriend_ongoing.2001 = { desc = befriend_ongoing.2001.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = admiration + } + right_portrait = { + character = scope:target + animation = happiness + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -687,7 +742,10 @@ befriend_ongoing.2001 = { option = { name = befriend_ongoing.2001.b scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { shy = medium_stress_impact_gain @@ -739,8 +797,15 @@ befriend_ongoing.3001 = { desc = befriend_ongoing.3001.desc theme = befriend_scheme - left_portrait = scope:befriend_envoy - right_portrait = scope:target + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:befriend_envoy + animation = toast + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -750,8 +815,8 @@ befriend_ongoing.3001 = { NOT = { exists = scope:scheme.var:had_befriend_envoy_event } any_relation = { type = friend - NOT = { is_close_or_extended_family_of = scope:scheme.scheme_target } - has_relation_friend = scope:scheme.scheme_target + NOT = { is_close_or_extended_family_of = scope:scheme.scheme_target_character } + has_relation_friend = scope:scheme.scheme_target_character } } @@ -766,8 +831,8 @@ befriend_ongoing.3001 = { random_relation = { type = friend limit = { - NOT = { is_close_or_extended_family_of = scope:scheme.scheme_target } - has_relation_friend = scope:scheme.scheme_target + NOT = { is_close_or_extended_family_of = scope:scheme.scheme_target_character } + has_relation_friend = scope:scheme.scheme_target_character } save_scope_as = befriend_envoy } @@ -804,6 +869,7 @@ befriend_ongoing.3001 = { type = befriend_envoy_working_modifier days = 730 } + add_scheme_progress = scheme_progress_loss } ai_chance = { base = 50 @@ -831,8 +897,15 @@ befriend_ongoing.3002 = { exists = scope:scheme } - left_portrait = scope:befriend_envoy - right_portrait = scope:owner + left_portrait = { + character = root + animation = personality_compassionate + } + right_portrait = { + character = scope:befriend_envoy + animation = toast + } + lower_right_portrait = scope:owner option = { name = befriend_ongoing.3002.a @@ -915,8 +988,37 @@ befriend_ongoing.3003 = { exists = scope:scheme } - left_portrait = scope:befriend_envoy - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { + scope:target = { + has_opinion_modifier = { + target = scope:owner + modifier = sent_charming_envoy_opinion + } + } + } + animation = happiness + } + animation = anger + } + right_portrait = { + character = scope:befriend_envoy + triggered_animation = { + trigger = { + scope:target = { + has_opinion_modifier = { + target = scope:owner + modifier = sent_charming_envoy_opinion + } + } + } + animation = personality_bold + } + animation = worry + } + lower_right_portrait = scope:target option = { name = befriend_ongoing.3003.a @@ -970,8 +1072,15 @@ befriend_ongoing.3007 = { } theme = befriend_scheme - left_portrait = scope:agent_speaking_highly - right_portrait = scope:target + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:agent_speaking_highly + animation = personality_zealous + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -984,7 +1093,7 @@ befriend_ongoing.3007 = { has_strong_religious_conviction_trigger = yes } scope:scheme = { - scheme_target = { + scheme_target_character = { NOR = { has_trait = cynical has_trait = excommunicated @@ -1044,7 +1153,10 @@ befriend_ongoing.3007 = { option = { name = befriend_ongoing.3007.b scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } add_piety = miniscule_piety_value ai_chance = { @@ -1084,8 +1196,15 @@ befriend_ongoing.3009 = { title = befriend_ongoing.3009.t desc = befriend_ongoing.3009.desc theme = befriend_scheme - left_portrait = scope:spouse - right_portrait = scope:target + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:spouse + animation = personality_compassionate + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1100,9 +1219,6 @@ befriend_ongoing.3009 = { any_spouse = { befriend_ongoing_3009_spouse_trigger = yes } - scope:scheme = { - scheme_progress > 1 - } } immediate = { @@ -1143,7 +1259,10 @@ befriend_ongoing.3009 = { } } scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } } scope:target = { @@ -1162,7 +1281,10 @@ befriend_ongoing.3009 = { } show_as_tooltip = { scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_loss + multiply = 2 + } } } trigger_event = { @@ -1212,8 +1334,15 @@ befriend_ongoing.3010 = { title = befriend_ongoing.3010.t desc = befriend_ongoing.3010.desc theme = befriend_scheme - left_portrait = scope:spouse - right_portrait = scope:owner + left_portrait = { + character = root + animation = admiration + } + right_portrait = { + character = scope:spouse + animation = toast + } + lower_right_portrait = scope:owner trigger = { exists = scope:scheme @@ -1238,8 +1367,15 @@ befriend_ongoing.3011 = { title = befriend_ongoing.3009.t desc = befriend_ongoing.3011.desc theme = befriend_scheme - left_portrait = scope:spouse - right_portrait = scope:target + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:spouse + animation = personality_bold + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1262,7 +1398,10 @@ befriend_ongoing.3011 = { option = { name = befriend_ongoing.3011.a scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } } } @@ -1273,8 +1412,15 @@ befriend_ongoing.3012 = { title = befriend_ongoing.3009.t desc = befriend_ongoing.3012.desc theme = befriend_scheme - left_portrait = scope:spouse - right_portrait = scope:target + left_portrait = { + character = root + animation = worry + } + right_portrait = { + character = scope:spouse + animation = sadness + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1287,7 +1433,10 @@ befriend_ongoing.3012 = { option = { name = befriend_ongoing.3012.a scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_loss + multiply = 2 + } } } } @@ -1320,7 +1469,6 @@ befriend_ongoing.3013 = { trigger = { scope:scheme = { NOT = { has_variable = had_event_befriend_ongoing_3013 } - scheme_progress >= 4 } any_spouse = { befriend_ongoing_3013_spouse_trigger = yes @@ -1354,8 +1502,15 @@ befriend_ongoing.3014 = { title = befriend_ongoing.3014.t desc = befriend_ongoing.3014.desc theme = befriend_scheme - left_portrait = scope:spouse - right_portrait = scope:owner + left_portrait = { + character = root + animation = personality_forgiving + } + right_portrait = { + character = scope:spouse + animation = disapproval + } + lower_right_portrait = scope:owner trigger = { exists = scope:scheme @@ -1385,8 +1540,15 @@ befriend_ongoing.3015 = { title = befriend_ongoing.3015.t desc = befriend_ongoing.3015.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:spouse + left_portrait = { + character = root + animation = shock + } + right_portrait = { + character = scope:spouse + animation = personality_cynical + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1436,8 +1598,14 @@ befriend_ongoing.4000 = { container = "custom_widgets_container" } - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = marshal + } trigger = { has_martial_lifestyle_trait_trigger = yes @@ -1459,6 +1627,16 @@ befriend_ongoing.4000 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4002 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -1472,8 +1650,14 @@ befriend_ongoing.4002 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:owner + animation = marshal + } option = { name = befriend_ongoing.4002.a # Yes, respect @@ -1552,8 +1736,22 @@ befriend_ongoing.4004 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4002_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4002_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1569,9 +1767,6 @@ befriend_ongoing.4004 = { trigger = { NOT = { exists = scope:scheme.var:befriend_ongoing_4002_negative } } - scope:scheme = { - add_scheme_progress = scheme_progress_gain - } scope:target = { add_opinion = { target = root @@ -1588,7 +1783,6 @@ befriend_ongoing.4004 = { exists = scope:scheme.var:befriend_ongoing_4002_negative } scope:scheme = { - add_scheme_progress = scheme_progress_loss remove_variable = befriend_ongoing_4002_negative } } @@ -1603,8 +1797,14 @@ befriend_ongoing.4010 = { desc = befriend_ongoing.4010.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = chancellor + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1630,6 +1830,16 @@ befriend_ongoing.4010 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4012 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -1643,8 +1853,14 @@ befriend_ongoing.4012 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = chancellor + } option = { name = befriend_ongoing.4012.a # Yes, respect @@ -1719,8 +1935,22 @@ befriend_ongoing.4014 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4012_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4012_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1770,8 +2000,14 @@ befriend_ongoing.4020 = { desc = befriend_ongoing.4020.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = steward + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1797,6 +2033,16 @@ befriend_ongoing.4020 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4022 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -1810,8 +2056,14 @@ befriend_ongoing.4022 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = steward + } option = { name = befriend_ongoing.4022.a # Yes, respect @@ -1882,8 +2134,22 @@ befriend_ongoing.4024 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4022_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4022_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1933,8 +2199,14 @@ befriend_ongoing.4030 = { desc = befriend_ongoing.4030.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = scheme + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1960,6 +2232,16 @@ befriend_ongoing.4030 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4032 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -1973,8 +2255,14 @@ befriend_ongoing.4032 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = scheme + } option = { name = befriend_ongoing.4032.a # Yes, respect @@ -2045,8 +2333,22 @@ befriend_ongoing.4034 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4032_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4032_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2096,8 +2398,14 @@ befriend_ongoing.4040 = { desc = befriend_ongoing.4040.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = happy_teacher + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2123,6 +2431,16 @@ befriend_ongoing.4040 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4042 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -2136,8 +2454,14 @@ befriend_ongoing.4042 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = happy_teacher + } option = { name = befriend_ongoing.4042.a # Yes, respect @@ -2208,8 +2532,22 @@ befriend_ongoing.4044 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4042_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4042_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2259,8 +2597,14 @@ befriend_ongoing.4050 = { desc = befriend_ongoing.4050.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2286,6 +2630,16 @@ befriend_ongoing.4050 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4052 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -2299,8 +2653,14 @@ befriend_ongoing.4052 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = flirtation + } option = { name = befriend_ongoing.4052.a.wine # Yes, respect @@ -2398,8 +2758,22 @@ befriend_ongoing.4054 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4052_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4052_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2454,11 +2828,11 @@ befriend_ongoing.4060 = { } left_portrait = { character = root - animation = marshal + animation = writing } right_portrait = { character = scope:target - animation = marshal + animation = marshal_wooden_sword } widget = { @@ -2486,6 +2860,16 @@ befriend_ongoing.4060 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4062 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -2503,12 +2887,12 @@ befriend_ongoing.4062 = { reference = courtyard } left_portrait = { - character = scope:owner - animation = marshal + character = root + animation = thinking } right_portrait = { - character = scope:target - animation = marshal + character = scope:owner + animation = marshal_wooden_sword } option = { @@ -2585,11 +2969,19 @@ befriend_ongoing.4064 = { } left_portrait = { character = root - animation = marshal + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4062_negative } + animation = disappointed + } + animation = happiness } right_portrait = { character = scope:target - animation = marshal + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4062_negative } + animation = dismissal + } + animation = toast } widget = { @@ -2641,8 +3033,14 @@ befriend_ongoing.4070 = { desc = befriend_ongoing.4070.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = hunting_shortbow_rest_arrow_default + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2668,6 +3066,16 @@ befriend_ongoing.4070 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4072 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -2681,7 +3089,14 @@ befriend_ongoing.4072 = { exists = scope:scheme } - left_portrait = scope:owner + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = hunting_shortbow_rest_arrow_default + } option = { name = befriend_ongoing.4072.a # Yes, respect @@ -2752,8 +3167,22 @@ befriend_ongoing.4074 = { } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4072_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4072_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2803,8 +3232,15 @@ befriend_ongoing.4080 = { desc = befriend_ongoing.4080.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = toast_goblet + } + widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2830,6 +3266,16 @@ befriend_ongoing.4080 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4082 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -2843,8 +3289,14 @@ befriend_ongoing.4082 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = toast_goblet + } option = { name = befriend_ongoing.4082.a # Yes, respect @@ -2922,8 +3374,22 @@ befriend_ongoing.4084 = { } reference = tavern } - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4082_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4082_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2973,8 +3439,14 @@ befriend_ongoing.4090 = { desc = befriend_ongoing.4090.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = scheme + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3000,6 +3472,16 @@ befriend_ongoing.4090 = { custom_tooltip = befriend_ongoing.4000.a.tt scope:target = { trigger_event = befriend_ongoing.4092 } } + + option = { + name = befriend_ongoing.4000.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } + } } # Scheme target responds @@ -3013,8 +3495,14 @@ befriend_ongoing.4092 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = scheme + } option = { name = befriend_ongoing.4092.a # Yes, respect @@ -3092,8 +3580,22 @@ befriend_ongoing.4094 = { } reference = dungeon } - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4092_negative } + animation = disappointed + } + animation = happiness + } + right_portrait = { + character = scope:target + triggered_animation = { + trigger = { exists = scope:scheme.var:befriend_ongoing_4092_negative } + animation = dismissal + } + animation = toast + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3143,8 +3645,15 @@ befriend_ongoing.4100 = { desc = befriend_ongoing.4100.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:befriend_ongoing_4100_enemy + left_portrait = { + character = root + animation = map_schadenfreude + } + right_portrait = { + character = scope:target + animation = schadenfreude + } + lower_center_portrait = scope:befriend_ongoing_4100_enemy widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3178,7 +3687,10 @@ befriend_ongoing.4100 = { option = { name = befriend_ongoing.4100.a # We are brothers in arms scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } scope:target = { add_opinion = { @@ -3273,7 +3785,10 @@ befriend_ongoing.4110 = { option = { name = befriend_ongoing.4110.a # We have a common objective scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } scope:target = { add_opinion = { @@ -3328,8 +3843,14 @@ befriend_ongoing.4300 = { theme = befriend_scheme theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = marshal + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3402,8 +3923,14 @@ befriend_ongoing.4302 = { exists = scope:scheme } - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:owner + animation = marshal + } option = { name = befriend_ongoing.4302.c # No, paranoia @@ -3724,8 +4251,14 @@ befriend_ongoing.5001 = { desc = befriend_ongoing.5001.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_cynical + } + right_portrait = { + character = scope:target + animation = personality_zealous + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3735,7 +4268,7 @@ befriend_ongoing.5001 = { scope:scheme.scheme_owner = { has_trait = cynical } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { has_trait = zealous } scope:scheme = { @@ -3748,13 +4281,13 @@ befriend_ongoing.5001 = { modifier = { add = -0.5 scope:scheme = { - scheme_progress < 3 + scheme_progress < 20 } } modifier = { add = 0.5 scope:scheme = { - scheme_progress > 7 + scheme_progress >= 20 } } } @@ -3774,7 +4307,7 @@ befriend_ongoing.5001 = { stress_impact = { base = medium_stress_gain } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { add_opinion = { modifier = cynical_vs_zealous_befriend_opinion target = scope:owner @@ -3793,7 +4326,10 @@ befriend_ongoing.5001 = { option = { name = befriend_ongoing.5001.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { @@ -3815,8 +4351,14 @@ befriend_ongoing.5002 = { title = befriend_ongoing.5002.t desc = befriend_ongoing.5002.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_compassionate + } + right_portrait = { + character = scope:target + animation = personality_cynical + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3826,7 +4368,7 @@ befriend_ongoing.5002 = { scope:scheme.scheme_owner = { has_trait = trusting } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { has_trait = cynical } scope:scheme = { @@ -3839,13 +4381,13 @@ befriend_ongoing.5002 = { modifier = { add = -0.5 scope:scheme = { - scheme_progress < 3 + scheme_progress < 20 } } modifier = { add = 0.5 scope:scheme = { - scheme_progress > 7 + scheme_progress >= 20 } } } @@ -3862,7 +4404,7 @@ befriend_ongoing.5002 = { option = { name = befriend_ongoing.5002.a - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { add_opinion = { modifier = trusting_vs_cynical_befriend_opinion target = scope:owner @@ -3880,7 +4422,10 @@ befriend_ongoing.5002 = { base = medium_stress_gain } scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { @@ -3903,8 +4448,14 @@ befriend_ongoing.5003 = { title = befriend_ongoing.5003.t desc = befriend_ongoing.5003.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_compassionate + } + right_portrait = { + character = scope:target + animation = sadness + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3914,7 +4465,7 @@ befriend_ongoing.5003 = { scope:scheme.scheme_owner = { has_trait = gregarious } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { has_trait = depressed } scope:scheme = { @@ -3927,13 +4478,13 @@ befriend_ongoing.5003 = { modifier = { add = -0.5 scope:scheme = { - scheme_progress < 3 + scheme_progress < 20 } } modifier = { add = 0.5 scope:scheme = { - scheme_progress > 7 + scheme_progress >= 20 } } } @@ -3954,7 +4505,10 @@ befriend_ongoing.5003 = { trait = compassionate scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 4 + } } ai_chance = { @@ -3964,9 +4518,9 @@ befriend_ongoing.5003 = { option = { name = befriend_ongoing.5003.a - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { add_opinion = { - modifier = gregarious_vs_depressed_befriend_opinion + modifier = gregarious_vs_depressed_befriend_opinion target = scope:owner } } @@ -3990,7 +4544,10 @@ befriend_ongoing.5003 = { base = medium_stress_gain } scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { @@ -4017,8 +4574,14 @@ befriend_ongoing.5004 = { title = befriend_ongoing.5004.t desc = befriend_ongoing.5004.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_greedy + } + right_portrait = { + character = scope:target + animation = personality_content + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4028,7 +4591,7 @@ befriend_ongoing.5004 = { scope:scheme.scheme_owner = { has_trait = gluttonous } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { has_trait = temperate } scope:scheme = { @@ -4041,13 +4604,13 @@ befriend_ongoing.5004 = { modifier = { add = -0.5 scope:scheme = { - scheme_progress < 3 + scheme_progress < 20 } } modifier = { add = 0.5 scope:scheme = { - scheme_progress > 7 + scheme_progress >= 20 } } } @@ -4068,7 +4631,7 @@ befriend_ongoing.5004 = { stress_impact = { base = medium_stress_gain } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { add_opinion = { modifier = gluttonous_vs_temperate_befriend_opinion target = scope:owner @@ -4087,7 +4650,10 @@ befriend_ongoing.5004 = { option = { name = befriend_ongoing.5004.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { @@ -4109,8 +4675,14 @@ befriend_ongoing.5005 = { title = befriend_ongoing.5005.t desc = befriend_ongoing.5005.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_greedy + } + right_portrait = { + character = scope:target + animation = personality_content + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4120,7 +4692,7 @@ befriend_ongoing.5005 = { scope:scheme.scheme_owner = { has_trait = ambitious } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { has_trait = content } scope:scheme = { @@ -4133,13 +4705,13 @@ befriend_ongoing.5005 = { modifier = { add = -0.5 scope:scheme = { - scheme_progress < 3 + scheme_progress < 20 } } modifier = { add = 0.5 scope:scheme = { - scheme_progress > 7 + scheme_progress >= 20 } } } @@ -4159,7 +4731,7 @@ befriend_ongoing.5005 = { stress_impact = { base = medium_stress_gain } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { add_opinion = { modifier = ambitious_vs_content_befriend_opinion target = scope:owner @@ -4181,7 +4753,10 @@ befriend_ongoing.5005 = { option = { name = befriend_ongoing.5005.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { @@ -4204,8 +4779,14 @@ befriend_ongoing.5006 = { title = befriend_ongoing.5006.t desc = befriend_ongoing.5006.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_rational + } + right_portrait = { + character = scope:target + animation = personality_content + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4219,7 +4800,6 @@ befriend_ongoing.5006 = { NOT = { has_scheme_modifier = befriend_making_effort_modifier } NOT = { has_scheme_modifier = befriend_studious_modifier } NOT = { has_scheme_modifier = befriend_bad_studious_modifier } - scheme_progress >= 1 } number_of_traits_in_common = { target = scope:target @@ -4257,7 +4837,10 @@ befriend_ongoing.5006 = { option = { name = befriend_ongoing.5006.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { base = 10 @@ -4309,8 +4892,14 @@ befriend_ongoing.5007 = { } } theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_bold + } + right_portrait = { + character = scope:target + animation = personality_content + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4322,7 +4911,6 @@ befriend_ongoing.5007 = { NOT = { has_variable = had_event_befriend_ongoing_5007 } NOT = { has_scheme_modifier = befriend_studious_modifier } NOT = { has_scheme_modifier = befriend_bad_studious_modifier } - scheme_progress >= 3 } NOR = { AND = { @@ -4453,7 +5041,10 @@ befriend_ongoing.5007 = { name = befriend_ongoing.5007.b add_stress = minor_stress_loss scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { diligent = minor_stress_impact_gain @@ -4536,8 +5127,15 @@ befriend_ongoing.6002 = { title = befriend_ongoing.6002.t desc = befriend_ongoing.6002.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = scope:prisoner + left_portrait = { + character = scope:target + animation = worry + } + right_portrait = { + character = scope:owner + animation = admiration + } + lower_right_portrait = scope:prisoner option = { #Request their release name = befriend_ongoing.6002.a @@ -4613,8 +5211,15 @@ befriend_ongoing.6004 = { title = befriend_ongoing.6001.t desc = befriend_ongoing.6004.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:prisoner + left_portrait = { + character = scope:owner + animation = thinking + } + right_portrait = { + character = scope:target + animation = personality_compassionate + } + lower_right_portrait = scope:prisoner widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4651,7 +5256,10 @@ befriend_ongoing.6004 = { exists = scope:scheme } scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } } stress_impact = { @@ -4676,7 +5284,9 @@ befriend_ongoing.6004 = { option = { name = befriend_ongoing.6004.b trigger = { - is_in_prison_type = dungeon + scope:prisoner = { + is_in_prison_type = dungeon + } } scope:prisoner = { change_prison_type = house_arrest @@ -4865,8 +5475,14 @@ befriend_ongoing.6009 = { title = befriend_ongoing.6009.t desc = befriend_ongoing.6009.desc theme = befriend_scheme - left_portrait = root - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_cynical + } + right_portrait = { + character = scope:target + animation = personality_compassionate + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4875,7 +5491,6 @@ befriend_ongoing.6009 = { trigger = { scope:scheme = { NOT = { has_variable = had_event_befriend_ongoing_6009 } - scheme_progress > 0 NOT = { has_scheme_modifier = befriend_indebted_myself_modifier } } scope:target = { @@ -4915,7 +5530,10 @@ befriend_ongoing.6009 = { add_scheme_modifier = { type = offered_favor_modifier } - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { patient = medium_stress_impact_gain @@ -5011,8 +5629,14 @@ befriend_ongoing.6010 = { title = befriend_ongoing.6010.t desc = befriend_ongoing.6010.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = personality_content + } + right_portrait = { + character = scope:owner + animation = personality_rational + } option = { name = befriend_ongoing.6010.a @@ -5042,8 +5666,14 @@ befriend_ongoing.6011 = { title = befriend_ongoing.6009.t desc = befriend_ongoing.6011.desc theme = befriend_scheme - right_portrait = root - left_portrait = scope:target + right_portrait = { + character = root + animation = personality_forgiving + } + left_portrait = { + character = scope:target + animation = personality_compassionate + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5120,7 +5750,10 @@ befriend_ongoing.6011 = { name = befriend_ongoing.6011.b custom_tooltip = befriend_ongoing.6011.b.tt scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { gregarious = minor_stress_impact_gain @@ -5141,8 +5774,14 @@ befriend_ongoing.6012 = { title = befriend_ongoing.6010.t desc = befriend_ongoing.6012.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = personality_content + } + right_portrait = { + character = scope:owner + animation = personality_forgiving + } immediate = { scope:owner = { @@ -5177,8 +5816,14 @@ befriend_ongoing.6013 = { title = befriend_ongoing.6009.t desc = befriend_ongoing.6013.desc theme = befriend_scheme - right_portrait = root - left_portrait = scope:target + right_portrait = { + character = root + animation = personality_forgiving + } + left_portrait = { + character = scope:target + animation = personality_compassionate + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5259,7 +5904,10 @@ befriend_ongoing.6013 = { option = { name = befriend_ongoing.6013.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { gregarious = minor_stress_impact_gain @@ -5280,8 +5928,14 @@ befriend_ongoing.6014 = { title = befriend_ongoing.6010.t desc = befriend_ongoing.6014.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = personality_content + } + right_portrait = { + character = scope:owner + animation = personality_forgiving + } immediate = { scope:owner = { @@ -5383,8 +6037,14 @@ befriend_ongoing.6015 = { } } theme = befriend_scheme - right_portrait = root - left_portrait = scope:target + left_portrait = { + character = root + animation = personality_compassionate + } + right_portrait = { + character = scope:target + animation = stress + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5392,7 +6052,6 @@ befriend_ongoing.6015 = { trigger = { scope:scheme = { - scheme_progress >= 5 NOT = { has_variable = had_event_befriend_ongoing_6015 } } stress < high_medium_stress @@ -5446,7 +6105,6 @@ befriend_ongoing.6015 = { add_scheme_modifier = { type = helpful_hand_modifier } - add_scheme_progress = scheme_progress_gain } stress_impact = { base = medium_stress_gain @@ -5472,7 +6130,10 @@ befriend_ongoing.6015 = { option = { name = befriend_ongoing.6015.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { compassionate = medium_stress_impact_gain @@ -5557,8 +6218,14 @@ befriend_ongoing.6016 = { } } theme = befriend_scheme - right_portrait = root - left_portrait = scope:owner + left_portrait = { + character = root + animation = stress + } + right_portrait = { + character = scope:owner + animation = personality_compassionate + } immediate = { show_as_tooltip = { @@ -5605,8 +6272,14 @@ befriend_ongoing.6017 = { title = befriend_ongoing.6017.t desc = befriend_ongoing.6017.desc theme = befriend_scheme - right_portrait = root - left_portrait = scope:target + right_portrait = { + character = root + animation = personality_honorable + } + left_portrait = { + character = scope:target + animation = disbelief + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5617,7 +6290,6 @@ befriend_ongoing.6017 = { highest_held_title_tier >= tier_county scope:scheme = { NOT = { has_variable = had_event_befriend_ongoing_6017 } - scheme_progress >= 2 } scope:target = { any_sub_realm_county = { @@ -5677,7 +6349,6 @@ befriend_ongoing.6017 = { type = cheap_gift_modifier days = 720 } - add_scheme_progress = scheme_progress_gain } scope:target = { trigger_event = befriend_ongoing.6018 @@ -5711,7 +6382,10 @@ befriend_ongoing.6017 = { name = befriend_ongoing.6017.b custom_tooltip = befriend_ongoing.6017.b.tt scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } ai_chance = { base = 50 @@ -5728,8 +6402,14 @@ befriend_ongoing.6018 = { title = befriend_ongoing.6018.t desc = befriend_ongoing.6018.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = root + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:owner + animation = personality_bold + } option = { name = befriend_ongoing.6018.a @@ -5779,8 +6459,15 @@ befriend_ongoing.6019 = { title = befriend_ongoing.6019.t desc = befriend_ongoing.6019.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:opinion_target + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:target + animation = personality_forgiving + } + lower_right_portrait = scope:opinion_target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5860,7 +6547,10 @@ befriend_ongoing.6019 = { name = befriend_ongoing.6019.a add_prestige = minor_prestige_loss scope:scheme = { - add_scheme_progress = scheme_progress_gain + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } scope:opinion_target = { add_opinion = { @@ -5884,7 +6574,10 @@ befriend_ongoing.6019 = { option = { #I want to be loved!! name = befriend_ongoing.6019.b scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_loss + multiply = 2 + } } scope:opinion_target = { add_opinion = { @@ -5933,8 +6626,15 @@ befriend_ongoing.9100 = { title = befriend_ongoing.9100.t desc = befriend_ongoing.9100.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:scoped_rival + left_portrait = { + character = root + animation = anger + } + right_portrait = { + character = scope:scoped_rival + animation = schadenfreude + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5942,17 +6642,13 @@ befriend_ongoing.9100 = { trigger = { scope:scheme = { - scheme_progress > 3 - scheme_progress < 9 + NOT = { has_variable = had_event_befriend_ongoing_9100 } } num_of_relation_rival >= 1 any_relation = { type = rival potential_rival_befriend_ongoing_9100_trigger = yes } - scope:scheme = { - NOT = { has_variable = had_event_befriend_ongoing_9100 } - } } immediate = { @@ -5984,6 +6680,12 @@ befriend_ongoing.9100 = { scope:scoped_rival = { add_prestige = minor_prestige_loss } + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } ai_chance = { base = 40 } @@ -6034,7 +6736,10 @@ befriend_ongoing.9100 = { add_prestige = medium_prestige_loss } scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_loss + multiply = 2 + } } stress_impact = { base = minor_stress_impact_gain @@ -6082,8 +6787,15 @@ befriend_ongoing.9101 = { title = befriend_ongoing.9101.t desc = befriend_ongoing.9101.desc theme = befriend_scheme - left_portrait = scope:target - right_portrait = scope:scoped_friend + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:scoped_friend + animation = admiration + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6091,16 +6803,12 @@ befriend_ongoing.9101 = { trigger = { scope:scheme = { - scheme_progress > 2 - scheme_progress < 7 + NOT = { has_variable = had_event_befriend_ongoing_9101 } } any_relation = { type = friend potential_friend_befriend_ongoing_9101_trigger = yes } - scope:scheme = { - NOT = { has_variable = had_event_befriend_ongoing_9101 } - } } immediate = { @@ -6123,7 +6831,12 @@ befriend_ongoing.9101 = { #Accept option = { name = befriend_ongoing.9101.a - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_loss + multiply = 2 + } + } show_as_tooltip = { scope:scoped_friend = { if = { @@ -6158,6 +6871,12 @@ befriend_ongoing.9101 = { #Refuse option = { name = befriend_ongoing.9101.b + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } ai_chance = { base = 10 } @@ -6170,8 +6889,15 @@ befriend_ongoing.9102 = { title = befriend_ongoing.9101.t desc = befriend_ongoing.9102.desc theme = befriend_scheme - left_portrait = scope:owner - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_compassionate + } + right_portrait = { + character = scope:owner + animation = happiness + } + lower_right_portrait = scope:target immediate = { scope:scoped_friend = { @@ -6226,8 +6952,14 @@ befriend_ongoing.9103 = { } } theme = befriend_scheme - right_portrait = root - left_portrait = scope:target + left_portrait = { + character = root + animation = worry + } + right_portrait = { + character = scope:target + animation = fear + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6235,8 +6967,7 @@ befriend_ongoing.9103 = { trigger = { scope:scheme = { - scheme_progress > 2 - scheme_progress < 7 + NOT = { has_variable = had_event_befriend_ongoing_9103 } } scope:target = { OR = { @@ -6255,9 +6986,6 @@ befriend_ongoing.9103 = { } } } - scope:scheme = { - NOT = { has_variable = had_event_befriend_ongoing_9103 } - } } immediate = { @@ -6275,7 +7003,10 @@ befriend_ongoing.9103 = { name = befriend_ongoing.9103.a add_dread = minor_dread_gain scope:scheme = { - add_scheme_progress = scheme_progress_loss + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } } stress_impact = { compassionate = minor_stress_impact_gain @@ -6324,9 +7055,7 @@ scripted_trigger potential_child_befriend_ongoing_9104_trigger = { liege = scope:owner is_ruler = no is_adult = no - NOT = { - is_player_heir_of_trigger = { CHARACTER = scope:owner } - } + NOT = { is_player_heir_of = scope:owner } } scripted_trigger potential_mate_befriend_ongoing_9104_trigger = { is_alive = yes @@ -6394,7 +7123,7 @@ scripted_trigger potential_monk_befriend_ongoing_9104_trigger = { is_adult = yes is_married = no NOR = { - is_player_heir_of_trigger = { CHARACTER = scope:owner } + is_player_heir_of = scope:owner has_trait = celibate has_trait = devoted } @@ -6410,10 +7139,15 @@ befriend_ongoing.9104 = { desc = befriend_ongoing.9104.desc theme = befriend_scheme - right_portrait = scope:target - left_portrait = root - lower_left_portrait = scope:scoped_child - lower_center_portrait = scope:scoped_monk + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:target + animation = boredom + } + lower_left_portrait = scope:scoped_monk widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6424,8 +7158,7 @@ befriend_ongoing.9104 = { has_trait = cynical } scope:scheme = { - scheme_progress > 3 - scheme_progress < 9 + NOT = { has_variable = had_event_befriend_ongoing_9104 } } scope:target = { faith = scope:owner.faith @@ -6461,9 +7194,6 @@ befriend_ongoing.9104 = { } } } - scope:scheme = { - NOT = { has_variable = had_event_befriend_ongoing_9104 } - } } immediate = { @@ -6604,6 +7334,12 @@ befriend_ongoing.9104 = { option = { #Never mind... name = befriend_ongoing.9104.z + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } stress_impact = { zealous = minor_stress_impact_gain } @@ -6620,9 +7356,16 @@ befriend_ongoing.9105 = { desc = befriend_ongoing.9104.desc theme = befriend_scheme - right_portrait = scope:target - left_portrait = scope:scoped_child - lower_left_portrait = scope:scoped_mate + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:target + animation = boredom + } + lower_left_portrait = scope:scoped_child + lower_center_portrait = scope:scoped_mate widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6633,8 +7376,7 @@ befriend_ongoing.9105 = { has_trait = cynical } scope:scheme = { - scheme_progress > 3 - scheme_progress < 9 + NOT = { has_variable = had_event_befriend_ongoing_9104 } } scope:target = { faith = scope:owner.faith @@ -6675,9 +7417,6 @@ befriend_ongoing.9105 = { } } } - scope:scheme = { - NOT = { has_variable = had_event_befriend_ongoing_9104 } - } } immediate = { @@ -6853,6 +7592,12 @@ befriend_ongoing.9105 = { option = { #Never mind... name = befriend_ongoing.9104.z + scope:scheme = { + add_scheme_progress = { + value = scheme_progress_gain + multiply = 2 + } + } stress_impact = { zealous = minor_stress_impact_gain } diff --git a/events/scheme_events/befriend_scheme/befriend_scheme_outcome_events.txt b/events/scheme_events/befriend_scheme/befriend_scheme_outcome_events.txt index c0a16882cc..e2d9e268c3 100644 --- a/events/scheme_events/befriend_scheme/befriend_scheme_outcome_events.txt +++ b/events/scheme_events/befriend_scheme/befriend_scheme_outcome_events.txt @@ -428,6 +428,7 @@ befriend_outcome.0002 = { #by Mathilda Bjarnehed and Linnéa Thimrén ########## befriend_outcome.2001 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2001.t desc = { desc = befriend_outcome.1001.desc @@ -445,7 +446,7 @@ befriend_outcome.2001 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -487,6 +488,7 @@ befriend_outcome.2001 = { ########## befriend_outcome.2002 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2002.t desc = { desc = befriend_outcome.1002.desc @@ -507,7 +509,7 @@ befriend_outcome.2002 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -571,12 +573,13 @@ befriend_outcome.2002 = { ########## befriend_outcome.2003 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2003.t desc = { triggered_desc = { # Do not trigger if scheme owner is deceitful and the two characters have nothing of note in common. trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } NOT = { has_trait = deceitful AND = { @@ -591,21 +594,21 @@ befriend_outcome.2003 = { first_valid = { triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_fame_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_fame } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_lifestyle_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_lifestyle } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_education_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_education @@ -629,7 +632,7 @@ befriend_outcome.2003 = { trigger = { scope:scheme = { - scheme_target = { + scheme_target_character = { is_travelling = no save_temporary_scope_as = compare_character } @@ -668,6 +671,7 @@ befriend_outcome.2003 = { ########## befriend_outcome.2004 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2004.t desc = { desc = befriend_outcome.2004.opening @@ -743,7 +747,7 @@ befriend_outcome.2004 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no } } @@ -765,6 +769,7 @@ befriend_outcome.2004 = { ########## befriend_outcome.2005 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2005.t desc = { # Relative @@ -844,6 +849,7 @@ befriend_outcome.2005 = { ########## befriend_outcome.2006 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2006.t desc = befriend_outcome.2006.desc @@ -905,6 +911,7 @@ befriend_outcome.2006 = { ########## befriend_outcome.2007 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2006.t desc = { first_valid = { @@ -918,11 +925,10 @@ befriend_outcome.2007 = { } theme = befriend_scheme - override_background = { reference = terrain_travel } left_portrait = { character = scope:owner - animation = personality_honorable + animation = happiness } right_portrait = { character = scope:courier @@ -987,6 +993,7 @@ befriend_outcome.2007 = { ########## befriend_outcome.2201 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2201.t desc = { desc = befriend_outcome.1201.desc @@ -1003,7 +1010,7 @@ befriend_outcome.2201 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1034,6 +1041,7 @@ befriend_outcome.2201 = { #Estate visit befriend_outcome.2301 = { type = character_event + window = scheme_successful_event title = befriend_outcome.1301.t desc = { desc = befriend_outcome.1301.desc @@ -1090,6 +1098,7 @@ befriend_outcome.2301 = { # Failure outcome: Visiting a manor befriend_outcome.4001 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4001.t desc = { desc = befriend_outcome.1001.desc @@ -1109,7 +1118,7 @@ befriend_outcome.4001 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1148,6 +1157,7 @@ befriend_outcome.4001 = { # Failure outcome: Attending a dance befriend_outcome.4002 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4002.t desc = { desc = befriend_outcome.1002.desc @@ -1166,7 +1176,7 @@ befriend_outcome.4002 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1227,26 +1237,27 @@ befriend_outcome.4002 = { # Failure outcome: Common interests befriend_outcome.4003 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4003.t desc = { first_valid = { triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_fame_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_fame } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_lifestyle_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_lifestyle } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_education_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_education @@ -1270,7 +1281,7 @@ befriend_outcome.4003 = { trigger = { scope:scheme = { - scheme_target = { + scheme_target_character = { is_travelling = no save_temporary_scope_as = compare_character } @@ -1308,6 +1319,7 @@ befriend_outcome.4003 = { ########## befriend_outcome.4004 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4004.t desc = { # Spouse/Concubine @@ -1375,7 +1387,15 @@ befriend_outcome.4004 = { theme = befriend_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = stress + } + right_portrait = { + character = scope:target + animation = idle + camera = camera_event_scheme_vs_right_look_right + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1402,6 +1422,7 @@ befriend_outcome.4004 = { # Failure outcome: A Formal Meeting befriend_outcome.4201 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4201.t desc = { desc = befriend_outcome.1201.desc @@ -1418,7 +1439,7 @@ befriend_outcome.4201 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1449,6 +1470,7 @@ befriend_outcome.4201 = { #Estate Visit befriend_outcome.4301 = { type = character_event + window = scheme_failed_event title = befriend_outcome.1301.t desc = { desc = befriend_outcome.1301.desc @@ -1505,6 +1527,7 @@ befriend_outcome.4301 = { ########## befriend_outcome.6001 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2001.t desc = { desc = befriend_outcome.1001.desc @@ -1516,7 +1539,14 @@ befriend_outcome.6001 = { override_background = { reference = feast } - left_portrait = scope:target + center_portrait = { + character = root + animation = debating + } + right_portrait = { + character = scope:target + animation = laugh + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1524,7 +1554,7 @@ befriend_outcome.6001 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1588,6 +1618,7 @@ befriend_outcome.6001 = { ########## befriend_outcome.6002 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2002.t desc = { desc = befriend_outcome.1002.desc @@ -1607,7 +1638,7 @@ befriend_outcome.6002 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -1673,12 +1704,13 @@ befriend_outcome.6002 = { ########## befriend_outcome.6003 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2003.t desc = { triggered_desc = { # Do not trigger if scheme owner is deceitful and the two characters have nothing of note in common. trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } NOT = { has_trait = deceitful AND = { @@ -1693,21 +1725,21 @@ befriend_outcome.6003 = { first_valid = { triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_fame_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_fame } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_lifestyle_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_lifestyle } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_education_as_compare_character_trigger = yes } desc = befriend_outcome.2003.same_education @@ -1752,7 +1784,7 @@ befriend_outcome.6003 = { } immediate = { - scope:scheme.scheme_target = { save_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_scope_as = compare_character } if = { limit = { has_same_fame_as_compare_character_trigger = yes @@ -1789,6 +1821,7 @@ befriend_outcome.6003 = { ########## befriend_outcome.6004 = { type = character_event + window = scheme_successful_event title = befriend_outcome.2004.t desc = { desc = befriend_outcome.2004.opening @@ -1856,7 +1889,14 @@ befriend_outcome.6004 = { theme = befriend_scheme - left_portrait = scope:target + center_portrait = { + character = root + animation = debating + } + right_portrait = { + character = scope:target + animation = happiness + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1893,6 +1933,7 @@ befriend_outcome.6004 = { ########## befriend_outcome.6006 = { type = character_event + window = scheme_successful_event title = befriend_outcome.6006.t desc = befriend_outcome.6006.desc @@ -1959,6 +2000,7 @@ befriend_outcome.6006 = { #Players notified of faction dissolving. befriend_outcome.6007 = { type = character_event + window = scheme_successful_event title = befriend_outcome.6006.t desc = befriend_outcome.6007.desc @@ -2002,6 +2044,7 @@ befriend_outcome.6007 = { #Estate Visit befriend_outcome.6301 = { type = character_event + window = scheme_successful_event title = befriend_outcome.1301.t desc = { desc = befriend_outcome.1301.desc @@ -2062,6 +2105,7 @@ befriend_outcome.6301 = { # Failure outcome: Visiting a manor befriend_outcome.8001 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4001.t desc = { desc = befriend_outcome.1001.desc @@ -2081,7 +2125,7 @@ befriend_outcome.8001 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -2146,6 +2190,7 @@ befriend_outcome.8001 = { # Failure outcome: Attending a dance befriend_outcome.8002 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4002.t desc = { desc = befriend_outcome.1002.desc @@ -2164,7 +2209,7 @@ befriend_outcome.8002 = { } trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -2231,26 +2276,27 @@ befriend_outcome.8002 = { ########### befriend_outcome.8003 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4003.t desc = { first_valid = { triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_fame_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_fame } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_lifestyle_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_lifestyle } triggered_desc = { trigger = { - scope:scheme.scheme_target = { save_temporary_scope_as = compare_character } + scope:scheme.scheme_target_character = { save_temporary_scope_as = compare_character } has_same_education_as_compare_character_trigger = yes } desc = befriend_outcome.4003.same_education @@ -2274,7 +2320,7 @@ befriend_outcome.8003 = { trigger = { scope:scheme = { - scheme_target = { + scheme_target_character = { is_travelling = no save_temporary_scope_as = compare_character } @@ -2318,6 +2364,7 @@ befriend_outcome.8003 = { ########## befriend_outcome.8004 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4004.t desc = { # Spouse/Concubine @@ -2408,6 +2455,7 @@ befriend_outcome.8004 = { ########## befriend_outcome.8005 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4003.t desc = befriend_outcome.8005.desc @@ -2475,6 +2523,7 @@ scripted_trigger faction_member_befriend_outcome_8006_trigger = { } befriend_outcome.8006 = { type = character_event + window = scheme_failed_event title = befriend_outcome.8006.t desc = befriend_outcome.8006.desc @@ -2550,6 +2599,7 @@ scripted_trigger valid_secret_befriend_outcome_8007_trigger = { befriend_outcome.8007 = { type = character_event + window = scheme_failed_event title = befriend_outcome.8007.t desc = befriend_outcome.8007.desc @@ -2669,6 +2719,7 @@ befriend_outcome.8007 = { befriend_outcome.8008 = { type = character_event + window = scheme_failed_event title = befriend_outcome.8008.t desc = befriend_outcome.8008.desc @@ -2741,6 +2792,7 @@ befriend_outcome.8008 = { befriend_outcome.8009 = { type = character_event + window = scheme_failed_event title = befriend_outcome.8009.t desc = befriend_outcome.8009.desc @@ -2794,6 +2846,7 @@ befriend_outcome.8009 = { # Failure outcome: A Formal Meeting befriend_outcome.8201 = { type = character_event + window = scheme_failed_event title = befriend_outcome.4201.t desc = { desc = befriend_outcome.1201.desc @@ -2811,7 +2864,7 @@ befriend_outcome.8201 = { trigger = { is_travelling = no - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no opinion = { target = scope:scheme.scheme_owner @@ -2842,6 +2895,7 @@ befriend_outcome.8201 = { #Estate Visit befriend_outcome.8301 = { type = character_event + window = scheme_failed_event title = befriend_outcome.1301.t desc = { desc = befriend_outcome.1301.desc @@ -2899,6 +2953,7 @@ befriend_outcome.8301 = { #Graveyard visit successful outcome befriend_outcome.9800 = { type = character_event + window = scheme_successful_event title = befriend_outcome.9800.t desc = { desc = befriend_outcome.9800.desc @@ -3055,6 +3110,7 @@ befriend_outcome.9800 = { #Graveyard visit failure befriend_outcome.9900 = { type = character_event + window = scheme_failed_event title = befriend_outcome.9900.t desc = { desc = befriend_outcome.9800.desc @@ -3112,7 +3168,7 @@ befriend_outcome.9900 = { father = { is_alive = no } } } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { is_travelling = no OR = { AND = { diff --git a/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt b/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt index 629162328f..0fd47fe7d7 100644 --- a/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt +++ b/events/scheme_events/court_scheme/court_scheme_ongoing_events.txt @@ -110,7 +110,15 @@ court_ongoing.0501 = { #by Mathilda Bjarnehed desc = court_ongoing.0501.desc theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = admiration + } + right_portrait = { + character = scope:target + animation = personality_compassionate + camera = camera_event_right_forward + } trigger = { OR = { @@ -188,10 +196,6 @@ court_ongoing.0501 = { #by Mathilda Bjarnehed name = starting_event_flavor value = flag:court_start_sparring } - - ai_chance = { - base = 0 - } ai_chance = { base = 1 modifier = { @@ -405,6 +409,11 @@ court_ongoing.0502 = { #by Mathilda Bjarnehed max = 1 } } + + modifier = { + has_relation_lover = scope:owner + add = 1000 + } } } @@ -447,6 +456,10 @@ court_ongoing.0502 = { #by Mathilda Bjarnehed has_relation_rival = scope:owner add = 200 } + modifier = { + has_relation_lover = scope:owner + factor = 0.01 + } } } @@ -478,7 +491,39 @@ court_ongoing.0512 = { ai_chance = { base = 100 - } + + incest_acceptance_modifier = { #Factor between 1 and 0 + SEDUCER = scope:owner + TARGET = scope:target + } + modifier = { + num_of_relation_soulmate = 1 + factor = { + value = 0 + add = { + value = ai_honor + multiply = -0.005 # 0.5 at -100 + } + add = { + value = ai_compassion + multiply = -0.005 # 0.5 at -100 + } + if = { + limit = { + has_trait = lustful + } + add = 0.2 + } + min = 0 + max = 1 + } + } + + modifier = { + has_relation_lover = scope:owner + add = 1000 + } + } } #Ew, no! @@ -524,6 +569,10 @@ court_ongoing.0512 = { has_relation_rival = scope:owner add = 200 } + modifier = { + has_relation_lover = scope:owner + factor = 0.01 + } } } @@ -548,6 +597,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Sodomy reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.public_sodomy_rejection.0503.desc } @@ -555,6 +606,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Incest reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.public_incest_rejection.0503.desc } @@ -578,6 +631,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Sodomy reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.written_sodomy_rejection.0503.desc } @@ -585,6 +640,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Incest reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.written_incest_rejection.0503.desc } @@ -608,6 +665,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Sodomy reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.written_sodomy_rejection.0503.desc } @@ -615,6 +674,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Incest reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.written_incest_rejection.0503.desc } @@ -644,6 +705,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Sodomy reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.public_sodomy_rejection.0503.desc } @@ -651,6 +714,8 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { #Incest reject exists = scope:hard_court_reject scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } } + NOT = { scope:owner = { has_relation_lover = scope:target } } + NOT = { scope:owner = { is_spouse_of = scope:target } } } desc = court_ongoing.public_incest_rejection.0503.desc } @@ -680,7 +745,14 @@ court_ongoing.0503 = { #by Mathilda Bjarnehed trigger = { scope:starting_event_flavor = flag:court_start_song } reference = garden } - left_portrait = scope:target + left_portrait = { + character = root + animation = storyteller + } + right_portrait = { + character = scope:target + animation = admiration + } immediate = { scope:target.location = { save_scope_as = target_location } @@ -895,10 +967,14 @@ court_ongoing.1010 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { + character = root + animation = shock + } + right_portrait = { character = scope:insulter - animation = schadenfreude + animation = manic } - right_portrait = scope:target + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1146,13 +1222,14 @@ court_ongoing.1011 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { - character = scope:insulter - animation = pain + character = scope:owner + animation = personality_honorable } right_portrait = { character = scope:target animation = flirtation_left } + lower_right_portrait = scope:insulter widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1377,8 +1454,12 @@ court_ongoing.1021 = { #by Mathilda Bjarnehed desc = court_ongoing.1021.desc theme = romance_scheme left_portrait = { + character = scope:target + animation = flirtation_left + } + right_portrait = { character = scope:owner - animation = love + animation = beg } immediate = { @@ -1506,7 +1587,14 @@ court_ongoing.1022 = { #by Mathilda Bjarnehed } theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { + character = scope:target + animation = personality_callous + } lower_left_portrait = { trigger = { exists = scope:master_of_hunt @@ -1832,6 +1920,10 @@ court_ongoing.1023 = { #by Mathilda Bjarnehed theme = romance_scheme override_background = { reference = ep2_dog_kennels } left_portrait = { + character = scope:target + animation = shock + } + right_portrait = { character = scope:owner animation = happiness } @@ -1872,7 +1964,11 @@ court_ongoing.1024 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { character = scope:target - animation = shock + animation = grief + } + right_portrait = { + character = scope:owner + animation = shame } @@ -1931,6 +2027,10 @@ court_ongoing.1030 = { #by Mathilda Bjarnehed desc = court_ongoing.1030.desc theme = romance_scheme left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { character = scope:target animation = personality_callous } @@ -2070,7 +2170,14 @@ court_ongoing.1031 = { #by Mathilda Bjarnehed desc = court_ongoing.1031.start.desc theme = romance_scheme - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = love + } + right_portrait = { + character = scope:owner + animation = happiness + } #yes dog! option = { @@ -2132,7 +2239,14 @@ court_ongoing.1032 = { #by Mathilda Bjarnehed desc = court_ongoing.1032.desc theme = romance_scheme - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = love + } + right_portrait = { + character = scope:owner + animation = happiness + } immediate = { assign_cat_eye_color_effect = { COLOR = random } @@ -2205,8 +2319,15 @@ court_ongoing.1040 = { #by Mathilda Bjarnehed } theme = romance_scheme - left_portrait = scope:target - right_portrait = scope:necklace_owner + left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { + character = scope:target + animation = personality_callous + } + lower_right_portrait = scope:necklace_owner trigger = { NOT = { @@ -2401,10 +2522,14 @@ court_ongoing.1050 = { #by Mathilda Bjarnehed reference = garden } left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { character = scope:target animation = flirtation } - right_portrait = scope:helpful_friend + lower_right_portrait = scope:helpful_friend widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2760,7 +2885,14 @@ court_ongoing.1100 = { desc = court_ongoing.1100.desc theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = writing + } + right_portrait = { + character = scope:target + animation = flirtation + } trigger = { scope:target = { @@ -3203,11 +3335,15 @@ court_ongoing.1110 = { desc = court_ongoing.1110.desc theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = disgust + } right_portrait = { character = scope:competitor - animation = flirtation_left + animation = disapproval } + lower_right_portrait = scope:target trigger = { OR = { @@ -3784,11 +3920,15 @@ court_ongoing.1112 = { #by Mathilda Bjarnehed desc = court_ongoing.1112.desc theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = schadenfreude + } right_portrait = { character = scope:competitor animation = pain } + lower_right_portrait = scope:target trigger = { exists = scope:scheme @@ -3807,11 +3947,15 @@ court_ongoing.1113 = { #by Mathilda Bjarnehed desc = court_ongoing.1113.desc theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = pain + } right_portrait = { character = scope:competitor animation = personality_bold } + lower_right_portrait = scope:target trigger = { exists = scope:scheme @@ -3861,13 +4005,14 @@ court_ongoing.1114 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { - character = scope:target - animation = flirtation + character = root + animation = schadenfreude } right_portrait = { character = scope:competitor animation = sick } + lower_right_portrait = scope:target trigger = { exists = scope:scheme @@ -3887,10 +4032,14 @@ court_ongoing.1115 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { - character = scope:target + character = root + animation = shock + } + right_portrait = { + character = scope:competitor animation = dismissal } - right_portrait = scope:competitor + lower_right_portrait = scope:target trigger = { exists = scope:scheme @@ -3942,10 +4091,14 @@ court_ongoing.1116 = { #by Mathilda Bjarnehed theme = romance_scheme left_portrait = { - character = scope:target - animation = fear + character = root + animation = schadenfreude + } + right_portrait = { + character = scope:competitor + animation = dead } - right_portrait = scope:competitor + lower_right_portrait = scope:target trigger = { exists = scope:scheme @@ -3991,11 +4144,15 @@ court_ongoing.1120 = { #by Mathilda Bjarnehed reference = throne_room_scope } left_portrait = { - animation = boredom - character = scope:target + character = root + animation = disgust } - right_portrait = scope:unpleasant_guest - + right_portrait = { + character = scope:unpleasant_guest + animation = wedding_drunk + } + lower_right_portrait = scope:target + trigger = { trigger_if = { limit = { exists = scope:target.host } @@ -4736,6 +4893,10 @@ court_ongoing.1201 = { #by Linnéa Thimrén character = scope:owner animation = beg } + right_portrait = { + character = scope:target + animation = flirtation + } #sleep option = { @@ -4811,7 +4972,14 @@ court_ongoing.1211 = { #by Linnéa Thimrén } theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4915,7 +5083,14 @@ court_ongoing.1212 = { type = character_event title = court_ongoing.1201.t desc = court_ongoing.1212.desc - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = love + } + right_portrait = { + character = scope:owner + animation = personality_bold + } theme = romance_scheme option = { @@ -4932,8 +5107,12 @@ court_ongoing.1213 = { title = court_ongoing.1201.t desc = court_ongoing.1213.desc left_portrait = { + character = scope:target + animation = eyeroll + } + right_portrait = { character = scope:owner - animation = boredom + animation = dead } theme = romance_scheme @@ -4954,6 +5133,10 @@ court_ongoing.1214 = { desc = court_ongoing.1214.desc } left_portrait = { + character = scope:target + animation = love + } + right_portrait = { character = scope:owner animation = personality_bold } @@ -4972,7 +5155,10 @@ court_ongoing.1215 = { type = character_event title = court_ongoing.1201.t desc = court_ongoing.1215.desc - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = eyeroll + } theme = romance_scheme option = { @@ -4996,7 +5182,14 @@ court_ongoing.1221 = { #by Linnéa Thimrén } theme = romance_scheme - left_portrait = scope:target + left_portrait = { + character = scope:owner + animation = beg + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -5092,7 +5285,14 @@ court_ongoing.1222 = { type = character_event title = court_ongoing.1201.t desc = court_ongoing.1222.desc - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = love + } + right_portrait = { + character = scope:owner + animation = sick + } theme = romance_scheme option = { @@ -5112,8 +5312,12 @@ court_ongoing.1223 = { desc = court_ongoing.1223.desc_ending } left_portrait = { + character = scope:target + animation = eyeroll + } + right_portrait = { character = scope:owner - animation = shame + animation = wedding_drunk } theme = romance_scheme @@ -5130,7 +5334,14 @@ court_ongoing.1224 = { type = character_event title = court_ongoing.1201.t desc = court_ongoing.1222.desc - left_portrait = scope:owner + left_portrait = { + character = scope:target + animation = love + } + right_portrait = { + character = scope:owner + animation = sick + } theme = romance_scheme option = { @@ -5150,8 +5361,12 @@ court_ongoing.1225 = { desc = court_ongoing.1223.desc_ending } left_portrait = { + character = scope:target + animation = eyeroll + } + right_portrait = { character = scope:owner - animation = shame + animation = wedding_drunk } theme = romance_scheme diff --git a/events/scheme_events/fabricate_hook_scheme/fabricate_hook_ongoing_events.txt b/events/scheme_events/fabricate_hook_scheme/fabricate_hook_ongoing_events.txt index 1b7f66bd97..68552fc0e1 100644 --- a/events/scheme_events/fabricate_hook_scheme/fabricate_hook_ongoing_events.txt +++ b/events/scheme_events/fabricate_hook_scheme/fabricate_hook_ongoing_events.txt @@ -24,8 +24,15 @@ fabricate_hook_ongoing.0001 = { title = fabricate_hook_ongoing.0001.t desc = fabricate_hook_ongoing.0001.desc theme = intrigue - left_portrait = scope:family_member - right_portrait = scope:target + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:family_member + animation = personality_forgiving + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -39,6 +46,9 @@ fabricate_hook_ongoing.0001 = { fabricate_hook_ongoing_0001_family_member_trigger = yes } } + scope:scheme = { + scheme_agent_charges >= 4 + } } immediate = { @@ -83,6 +93,7 @@ fabricate_hook_ongoing.0001 = { add_scheme_modifier = { type = fabricate_hook_family_success_modifier } + change_opportunities = -4 } } @@ -92,6 +103,7 @@ fabricate_hook_ongoing.0001 = { add_scheme_modifier = { type = fabricate_hook_family_speed_modifier } + change_opportunities = -2 } } @@ -122,13 +134,22 @@ fabricate_hook_ongoing.0002 = { title = fabricate_hook_ongoing.0002.t desc = fabricate_hook_ongoing.0002.desc theme = intrigue - left_portrait = scope:target - right_portrait = scope:hooking_character - + + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:hooking_character + animation = schadenfreude + } + lower_right_portrait = scope:target + trigger = { NOT = { exists = scope:scheme.var:had_event_ongoing_0002 } scope:scheme = { - scheme_progress < 8 + scheme_agent_charges >= 1 + scheme_agent_charges < opportunity_cap_value } scope:target = { OR = { @@ -203,7 +224,7 @@ fabricate_hook_ongoing.0002 = { option = { # How are they making Target act? name = fabricate_hook_ongoing.0002.b scope:scheme = { - add_scheme_progress = 2 + change_opportunities = 2 } } } @@ -231,13 +252,20 @@ fabricate_hook_ongoing.0003 = { desc = fabricate_hook_ongoing.0003.desc_ending } theme = intrigue - left_portrait = scope:target - right_portrait = scope:servant + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:servant + animation = schadenfreude + } + lower_right_portrait = scope:target trigger = { NOT = { exists = scope:scheme.var:had_event_ongoing_0003 } scope:scheme = { - scheme_progress < 8 + scheme_agent_charges >= 1 } scope:target = { is_lowborn = no @@ -351,6 +379,9 @@ fabricate_hook_ongoing.0003 = { type = fabricate_hook_servant_modifier } } + scope:scheme = { + change_opportunities = -1 + } ai_chance = { base = 10 } @@ -398,12 +429,19 @@ fabricate_hook_ongoing.0004 = { title = fabricate_hook_ongoing.0004.t desc = fabricate_hook_ongoing.0004.desc theme = intrigue - left_portrait = scope:target - + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:target + animation = personality_coward + } + trigger = { NOT = { exists = scope:scheme.var:had_event_ongoing_0004 } scope:scheme = { - scheme_progress >= 2 + scheme_agent_charges >= 1 } } @@ -458,11 +496,15 @@ fabricate_hook_ongoing.0004 = { option = { # Take your time name = fabricate_hook_ongoing.0004.b + trigger = { scope:scheme.scheme_agent_charges >= 2 } + show_as_unavailable = { always = yes } scope:scheme = { add_scheme_modifier = { type = fabricate_hook_studied_personality_modifier } - add_scheme_progress = -2 + scope:scheme = { + change_opportunities = -2 + } } } } @@ -473,7 +515,14 @@ fabricate_hook_ongoing.0005 = { title = fabricate_hook_ongoing.0004.t desc = fabricate_hook_ongoing.0005.desc theme = intrigue - left_portrait = scope:target + left_portrait = { + character = root + animation = personality_callous + } + right_portrait = { + character = scope:target + animation = personality_coward + } immediate = { scope:target = { diff --git a/events/scheme_events/hostile_scheme_discovery_events.txt b/events/scheme_events/hostile_scheme_discovery_events.txt index 7695f6d55f..8ce32a3380 100644 --- a/events/scheme_events/hostile_scheme_discovery_events.txt +++ b/events/scheme_events/hostile_scheme_discovery_events.txt @@ -25,13 +25,14 @@ hostile_scheme_discovery.1001 = { first_valid = { triggered_desc = { trigger = { - scope:scheme = { scheme_target = root } + scope:scheme = { scheme_target_character = root } } desc = { first_valid = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.1001.close_relation } @@ -44,6 +45,7 @@ hostile_scheme_discovery.1001 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster scope:targeted_courtier = scope:spymaster } desc = hostile_scheme_discovery.1001.close_relation_spymaster_other_target @@ -51,6 +53,7 @@ hostile_scheme_discovery.1001 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.1001.close_relation_other_target } @@ -64,13 +67,14 @@ hostile_scheme_discovery.1001 = { first_valid = { triggered_desc = { trigger = { - scope:scheme = { scheme_target = root } + scope:scheme = { scheme_target_character = root } } desc = { first_valid = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.1001.desc } @@ -83,6 +87,7 @@ hostile_scheme_discovery.1001 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster scope:targeted_courtier = scope:spymaster } desc = hostile_scheme_discovery.1001.desc_other_target_spymaster @@ -90,6 +95,7 @@ hostile_scheme_discovery.1001 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.1001.desc_other_target } @@ -111,7 +117,7 @@ hostile_scheme_discovery.1001 = { } right_portrait = { character = scope:agent - animation = scheme + animation = fear } immediate = { @@ -119,17 +125,11 @@ hostile_scheme_discovery.1001 = { if = { limit = { scope:scheme = { - scheme_target = { NOT = { this = root } } + scheme_target_character = { NOT = { this = root } } } } scope:scheme = { - scheme_target = { save_scope_as = targeted_courtier } - } - } - scope:agent = { - add_character_flag = { - flag = use_stealth_clothes - days = 1 + scheme_target_character = { save_scope_as = targeted_courtier } } } } @@ -141,7 +141,8 @@ hostile_scheme_discovery.1001 = { expose_scheme_agent = scope:agent } scope:agent = { - add_prestige = medium_prestige_loss + add_prestige = major_prestige_loss + add_stress = major_stress_gain add_opinion = { target = root modifier = accused_of_scheming_opinion @@ -159,11 +160,21 @@ hostile_scheme_discovery.1001 = { #Accuse and imprison option = { name = hostile_scheme_discovery.1001.b + trigger = { + custom_tooltip = { + text = hostile_scheme_discovery.1001.b.tt_not_your_courtier_or_vassal + basic_allowed_to_imprison_character_trigger = { + CHARACTER = scope:agent + } + } + } + show_as_unavailable = { always = yes } scope:scheme = { expose_scheme_agent = scope:agent } scope:agent = { add_prestige = medium_prestige_loss + add_stress = major_stress_gain add_opinion = { target = root modifier = accused_of_scheming_opinion @@ -229,6 +240,7 @@ hostile_scheme_discovery.1002 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.1002.intro } @@ -290,11 +302,11 @@ hostile_scheme_discovery.1002 = { if = { limit = { scope:scheme = { - scheme_target = { NOT = { this = root } } + scheme_target_character = { NOT = { this = root } } } } scope:scheme = { - scheme_target = { + scheme_target_character = { trigger_event = hostile_scheme_discovery.1002 save_scope_as = targeted_courtier } @@ -324,7 +336,7 @@ hostile_scheme_discovery.1002 = { if = { limit = { #Double check since it seems the scheme sometimes hangs around as a scope exists = scope:scheme - exists = scope:scheme.scheme_target + exists = scope:scheme.scheme_target_character } scope:scheme = { end_scheme = yes @@ -336,8 +348,8 @@ hostile_scheme_discovery.1002 = { after = { if = { #Only send it from the host's event so that owner doesn't get duplication if the host and the target isn't the same person limit = { - exists = scope:scheme.scheme_target - scope:scheme.scheme_target = { this = root } + exists = scope:scheme.scheme_target_character + scope:scheme.scheme_target_character = { this = root } } scope:owner = { #Event for the owner that actually ends the scheme trigger_event = hostile_scheme_discovery.3003 @@ -358,6 +370,7 @@ hostile_scheme_discovery.2001 = { triggered_desc = { trigger = { exists = scope:spymaster + exists = cp:councillor_spymaster } desc = hostile_scheme_discovery.2001.intro } @@ -397,6 +410,14 @@ hostile_scheme_discovery.2001 = { } desc = hostile_scheme_discovery.2001.steal_back_artifact } + triggered_desc = { + trigger = { + scope:scheme = { + scheme_type = depose + } + } + desc = hostile_scheme_discovery.2001.depose + } desc = hostile_scheme_discovery.2001.fallback } first_valid = { @@ -471,7 +492,10 @@ hostile_scheme_discovery.3001 = { } } theme = generic_intrigue_scheme - left_portrait = scope:agent + left_portrait = { + character = scope:agent + animation = fear + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -488,12 +512,6 @@ hostile_scheme_discovery.3001 = { IMPRISONER = scope:target.court_owner } } - scope:agent = { - add_character_flag = { - flag = use_stealth_clothes - days = 1 - } - } } option = { @@ -507,8 +525,14 @@ hostile_scheme_discovery.3002 = { title = hostile_scheme_discovery.3002.t desc = hostile_scheme_discovery.3002.desc theme = generic_intrigue_scheme - left_portrait = scope:target - right_portrait = scope:portrait + left_portrait = { + character = scope:target + animation = stress + } + right_portrait = { + character = scope:portrait + animation = worry + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" diff --git a/events/scheme_events/intrigue_scheme_ongoing_events.txt b/events/scheme_events/intrigue_scheme_ongoing_events.txt index 716925d791..ff4ed09fa8 100644 --- a/events/scheme_events/intrigue_scheme_ongoing_events.txt +++ b/events/scheme_events/intrigue_scheme_ongoing_events.txt @@ -51,16 +51,20 @@ intrigue_scheme_ongoing.1001 = { container = "custom_widgets_container" } left_portrait = { + character = root + animation = bribing + } + right_portrait = { character = scope:agent animation = personality_greedy } - right_portrait = scope:target + lower_right_portrait = scope:target trigger = { exists = scope:scheme scope:scheme = { - scheme_number_of_agents > 0 - any_scheme_agent = { + any_scheme_agent_character = { count >= 0 } + any_scheme_agent_character = { is_alive = yes is_courtier_of = scope:target } @@ -71,7 +75,7 @@ intrigue_scheme_ongoing.1001 = { immediate = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { is_courtier_of = scope:target is_alive = yes @@ -197,10 +201,14 @@ intrigue_scheme_ongoing.1002 = { desc = intrigue_scheme_ongoing.1002.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = scheme + } + right_portrait = { character = scope:agent_in_question animation = personality_zealous } - right_portrait = scope:target + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -208,18 +216,18 @@ intrigue_scheme_ongoing.1002 = { trigger = { scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { has_trait = zealous is_christian_trigger = yes intrigue < 4 NOT = { is_agent_exposed_in_scheme = scope:scheme } } - scheme_target = { + scheme_target_character = { piety_level <= medium_piety_level } NOT = { has_variable = had_overly_zealous_agent_event } } - scope:scheme.scheme_target = { + scope:scheme.scheme_target_character = { # Warcraft age > age_15_value is_christian_trigger = yes @@ -237,9 +245,9 @@ intrigue_scheme_ongoing.1002 = { modifier = { factor = 1.5 scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { has_trait = zealous - NOT = { faith = scope:scheme.scheme_target.faith } + NOT = { faith = scope:scheme.scheme_target_character.faith } NOT = { is_agent_exposed_in_scheme = scope:scheme } } } @@ -248,10 +256,10 @@ intrigue_scheme_ongoing.1002 = { immediate = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { has_trait = zealous - NOT = { faith = scope:scheme.scheme_target.faith } + NOT = { faith = scope:scheme.scheme_target_character.faith } NOT = { is_agent_exposed_in_scheme = scope:scheme } } alternative_limit = { @@ -388,10 +396,14 @@ intrigue_scheme_ongoing.1004 = { desc = intrigue_scheme_ongoing.1004.desc theme = generic_intrigue_scheme left_portrait = { - character = scope:agent_in_question + character = root animation = scheme } - right_portrait = scope:target + right_portrait = { + character = scope:agent_in_question + animation = toast + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -399,7 +411,7 @@ intrigue_scheme_ongoing.1004 = { trigger = { scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { has_trait = gregarious } } @@ -408,7 +420,7 @@ intrigue_scheme_ongoing.1004 = { immediate = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { has_trait = gregarious } save_scope_as = agent_in_question add_character_flag = { @@ -533,10 +545,14 @@ intrigue_scheme_ongoing.1006 = { } theme = generic_intrigue_scheme left_portrait = { + character = root + animation = scheme + } + right_portrait = { character = scope:agent_in_question animation = personality_irrational } - right_portrait = scope:target + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -545,7 +561,7 @@ intrigue_scheme_ongoing.1006 = { trigger = { scope:scheme = { NOT = { exists = var:had_slothful_clues_event } - any_scheme_agent = { + any_scheme_agent_character = { has_trait = lazy } } @@ -561,7 +577,7 @@ intrigue_scheme_ongoing.1006 = { value = yes days = 3650 } - random_scheme_agent = { + random_scheme_agent_character = { limit = { has_trait = lazy } save_scope_as = agent_in_question add_character_flag = { @@ -696,10 +712,14 @@ intrigue_scheme_ongoing.1007 = { desc = intrigue_scheme_ongoing.1007.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = scheme + } + right_portrait = { character = scope:caring_agent animation = worry } - right_portrait = scope:target + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -707,9 +727,10 @@ intrigue_scheme_ongoing.1007 = { trigger = { scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { intrigue_scheme_ongoing_1007_caring_character = yes } + scheme_agent_charges < opportunity_cap_value } NOT = { has_character_flag = had_intrigue_scheme_ongoing_1007_event @@ -721,18 +742,11 @@ intrigue_scheme_ongoing.1007 = { modifier = { add = 1 scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { intrigue_scheme_ongoing_1007_particularly_caring_character = yes } } } - compare_modifier = { - target = scope:scheme - value = scheme_power_resistance_ratio - multiplier = -0.5 - min = -0.9 - max = 1 - } } immediate = { @@ -740,8 +754,9 @@ intrigue_scheme_ongoing.1007 = { flag = had_intrigue_scheme_ongoing_1007_event days = 1825 } + save_scope_as = second scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { intrigue_scheme_ongoing_1007_particularly_caring_character = yes } @@ -771,7 +786,7 @@ intrigue_scheme_ongoing.1007 = { option = { #Focus on scheme name = intrigue_scheme_ongoing.1007.a scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } ai_chance = { base = 50 @@ -822,21 +837,25 @@ intrigue_scheme_ongoing.1008 = { desc = intrigue_scheme_ongoing.1008.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = scheme + } + right_portrait = { character = scope:agent animation = scheme } - right_portrait = scope:defender - lower_right_portrait = scope:spymaster + lower_right_portrait = scope:defender + lower_left_portrait = scope:spymaster widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" } trigger = { - NOT = { scope:scheme.scheme_target.court_owner = root } + NOT = { scope:scheme.scheme_target_character.court_owner = root } NOT = { has_character_flag = had_intrigue_scheme_ongoing_1008_event } scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { intrigue_scheme_ongoing_1008_suitable_agent = yes } } @@ -873,7 +892,7 @@ intrigue_scheme_ongoing.1008 = { scheme_defender = { save_scope_as = defender } - random_scheme_agent = { + random_scheme_agent_character = { limit = { intrigue_scheme_ongoing_1008_suitable_agent = yes } @@ -909,6 +928,15 @@ intrigue_scheme_ongoing.1008 = { save_scope_as = councillor } } + else_if = { + limit = { + employs_court_position = second_camp_officer + } + random_court_position_holder = { + type = second_camp_officer + save_scope_as = councillor + } + } } #Let them work it out on their own @@ -1001,7 +1029,7 @@ scripted_trigger intrigue_scheme_ongoing_1008_close_relation = { scope:scheme = { NOT = { scheme_is_character_agent = prev } } - is_valid_as_agent_in_scheme = scope:scheme + char_can_fit_into_scheme_trigger = { SCHEME = scope:scheme } join_scheme_chance = { scheme = scope:scheme min = -15 @@ -1027,8 +1055,15 @@ intrigue_scheme_ongoing.1009 = { } } theme = generic_intrigue_scheme - left_portrait = scope:potential_agent - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:potential_agent + animation = personality_rational + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1036,7 +1071,7 @@ intrigue_scheme_ongoing.1009 = { trigger = { scope:scheme = { - scheme_progress < 8 + scheme_agent_charges < opportunity_cap_value } OR = { any_relation = { @@ -1087,11 +1122,10 @@ intrigue_scheme_ongoing.1009 = { option = { #Please help me name = intrigue_scheme_ongoing.1009.a - scope:potential_agent = { - force_add_to_scheme = { - scheme = scope:scheme - years = 5 - } + try_to_force_assign_character_to_random_agent_slot_effect = { + SCHEME = scope:scheme + CHAR = scope:potential_agent + YEARS = 5 } ai_chance = { base = 100 @@ -1107,18 +1141,10 @@ intrigue_scheme_ongoing.1009 = { option = { #There is one thing you can do... name = intrigue_scheme_ongoing.1009.b scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } ai_chance = { base = 100 - modifier = { - add = -50 - scope:scheme.scheme_power_resistance_difference < 0 - } - compare_modifier = { #Less likely the less advantage you have in the scheme - value = scope:scheme.scheme_power_resistance_difference - multiplier = -1 - } } } } @@ -1143,8 +1169,15 @@ intrigue_scheme_ongoing.2001 = { gui = "event_window_widget_scheme" container = "custom_widgets_container" } - left_portrait = scope:target - right_portrait = scope:agent_in_question + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:agent_in_question + animation = personality_callous + } + lower_right_portrait = scope:target trigger = { scope:target = { @@ -1154,19 +1187,20 @@ intrigue_scheme_ongoing.2001 = { is_ai = yes } scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { reverse_opinion = { target = scope:target value >= 10 } } + scheme_agent_charges < opportunity_cap_value } NOT = { exists = scope:scheme.var:trusting_target_event } } immediate = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { #Try to find someone the target has a very high opinion of. scope:target = { @@ -1213,7 +1247,7 @@ intrigue_scheme_ongoing.2001 = { option = { name = intrigue_scheme_ongoing.2001.b scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } } } @@ -1235,8 +1269,15 @@ intrigue_scheme_ongoing.2002 = { title = intrigue_scheme_ongoing.2002.t desc = intrigue_scheme_ongoing.2002.desc theme = generic_intrigue_scheme - left_portrait = scope:target - right_portrait = scope:agent_in_question + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:agent_in_question + animation = toast_goblet + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1249,9 +1290,9 @@ intrigue_scheme_ongoing.2002 = { is_ai = yes } scope:scheme = { - scheme_number_of_agents > 0 + any_scheme_agent_character = { count >= 0 } NOT = { has_variable = had_drunkard_target_scheme_event } - any_scheme_agent = { + any_scheme_agent_character = { intrigue_scheme_ongoing_2002_agent_trigger = yes } } @@ -1264,7 +1305,7 @@ intrigue_scheme_ongoing.2002 = { value = yes days = 3650 } - random_scheme_agent = { + random_scheme_agent_character = { limit = { intrigue_scheme_ongoing_2002_agent_trigger = yes } @@ -1384,10 +1425,14 @@ intrigue_scheme_ongoing.2003 = { } theme = generic_intrigue_scheme left_portrait = { - character = scope:agent + character = root animation = scheme } - right_portrait = scope:other_secret_target + right_portrait = { + character = scope:agent + animation = spymaster + } + lower_center_portrait = scope:other_secret_target lower_right_portrait = scope:secret_target widget = { gui = "event_window_widget_scheme" @@ -1408,11 +1453,10 @@ intrigue_scheme_ongoing.2003 = { } } scope:scheme = { - scheme_number_of_agents > 0 - any_scheme_agent = { + any_scheme_agent_character = { count >= 0 } + any_scheme_agent_character = { NOT = { is_agent_exposed_in_scheme = scope:scheme } } - scheme_power_resistance_difference > 0 } NOT = { has_character_flag = had_intrigue_scheme_ongoing_2003_event @@ -1424,8 +1468,8 @@ intrigue_scheme_ongoing.2003 = { modifier = { add = 1 scope:scheme = { - scheme_number_of_agents = 1 - any_scheme_agent = { + any_scheme_agent_character = { count = 1 } + any_scheme_agent_character = { NOT = { is_agent_exposed_in_scheme = scope:scheme } } } @@ -1474,7 +1518,7 @@ intrigue_scheme_ongoing.2003 = { } } scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { NOT = { is_agent_exposed_in_scheme = scope:scheme } } @@ -1525,6 +1569,10 @@ intrigue_scheme_ongoing.3001 = { character = root animation = worry } + right_portrait = { + character = scope:target + animation = boredom + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1537,6 +1585,7 @@ intrigue_scheme_ongoing.3001 = { NOT = { has_scheme_modifier = modifier_just_scheming_less } + scheme_agent_charges < opportunity_cap_value } } @@ -1554,6 +1603,9 @@ intrigue_scheme_ongoing.3001 = { #Keep scheming option = { name = intrigue_scheme_ongoing.3001.a + scope:scheme = { + change_opportunities = 2 + } stress_impact = { just = medium_stress_impact_gain } @@ -1606,6 +1658,10 @@ intrigue_scheme_ongoing.3002 = { character = root animation = worry } + right_portrait = { + character = scope:target + animation = boredom + } trigger = { NOT = { has_character_flag = had_intrigue_scheme_ongoing_3002_event } @@ -1616,8 +1672,7 @@ intrigue_scheme_ongoing.3002 = { } ai_compassion > 10 scope:scheme = { - scheme_progress > 2 - scheme_power_resistance_difference > 0 + scheme_agent_charges < opportunity_cap_value } } @@ -1645,7 +1700,7 @@ intrigue_scheme_ongoing.3002 = { } } scope:scheme = { - add_scheme_progress = scheme_progress_loss + change_opportunities = 2 } stress_impact = { compassionate = massive_stress_impact_gain @@ -1757,12 +1812,6 @@ intrigue_scheme_ongoing.3003 = { #by Mathilda Bjarnehed } desc = intrigue_scheme_ongoing.leave_with_target.3003.desc } - triggered_desc = { - trigger = { - scope:scheme = { scheme_type = plague } - } - desc = intrigue_scheme_ongoing.plague.3003.desc - } desc = intrigue_scheme_ongoing.escape_route.3003.desc } desc = intrigue_scheme_ongoing.end.3003.desc @@ -1771,9 +1820,15 @@ intrigue_scheme_ongoing.3003 = { #by Mathilda Bjarnehed override_background = { reference = terrain_scope } - left_portrait = scope:hunter - right_portrait = scope:target - lower_left_portrait = scope:assassin + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:hunter + animation = assassin + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1783,7 +1838,7 @@ intrigue_scheme_ongoing.3003 = { #by Mathilda Bjarnehed exists = scope:target.host exists = scope:target.host.capital_province scope:target.host = { NOT = { this = root } } - scope:scheme = { + scope:scheme = { NOT = { has_variable = had_intrigue_scheme_ongoing_3003_event } @@ -1927,67 +1982,67 @@ intrigue_scheme_ongoing.3003 = { #by Mathilda Bjarnehed } # Will hunter spill the beans - random_list = { - 60 = { # Hunter keeps mouth shut - desc = intrigue_scheme_ongoing.3003.a.success - ai_value_modifier = { - ai_rationality = 0.5 - } - opinion_modifier = { - who = scope:hunter - opinion_target = root - multiplier = 0.5 - } - send_interface_toast = { - title = intrigue_scheme_ongoing.3003.a.success - left_icon = scope:hunter - } - hidden_effect = { - if = { - limit = { - can_set_relation_potential_friend_trigger = { CHARACTER = scope:hunter } - scope:hunter.prowess >= decent_skill_rating - } - set_relation_potential_friend = scope:hunter - } - } + random_list = { + 60 = { # Hunter keeps mouth shut + desc = intrigue_scheme_ongoing.3003.a.success + ai_value_modifier = { + ai_rationality = 0.5 } - 40 = { # Hunter tells tales - desc = intrigue_scheme_ongoing.3003.a.failure - modifier = { - scope:hunter = { - OR = { - has_trait = honest - has_trait = drunkard - } + opinion_modifier = { + who = scope:hunter + opinion_target = root + multiplier = 0.5 + } + send_interface_toast = { + title = intrigue_scheme_ongoing.3003.a.success + left_icon = scope:hunter + } + hidden_effect = { + if = { + limit = { + can_set_relation_potential_friend_trigger = { CHARACTER = scope:hunter } + scope:hunter.prowess >= decent_skill_rating } - add = 20 - } - opinion_modifier = { - who = scope:hunter - opinion_target = scope:target.host #i.e. are they loyal to the local lord/lady - multiplier = 0.3 + set_relation_potential_friend = scope:hunter } - send_interface_toast = { - title = intrigue_scheme_ongoing.3003.a.failure - left_icon = scope:hunter - scope:scheme = { - add_scheme_modifier = { - type = intrigue_scheme_tattletale_modifier + } + } + 40 = { # Hunter tells tales + desc = intrigue_scheme_ongoing.3003.a.failure + modifier = { + scope:hunter = { + OR = { + has_trait = honest + has_trait = drunkard } } + add = 20 + } + opinion_modifier = { + who = scope:hunter + opinion_target = scope:target.host #i.e. are they loyal to the local lord/lady + multiplier = 0.3 + } + send_interface_toast = { + title = intrigue_scheme_ongoing.3003.a.failure + left_icon = scope:hunter + scope:scheme = { + add_scheme_modifier = { + type = intrigue_scheme_tattletale_modifier } - if = { #Player gets a warning - limit = { - scope:defender = { is_ai = no } - scope:scheme = { is_scheme_exposed = no } - } - scope:defender = { trigger_event = intrigue_scheme_ongoing.3004 } + } + } + if = { #Player gets a warning + limit = { + scope:defender = { is_ai = no } + scope:scheme = { is_scheme_exposed = no } } + scope:defender = { trigger_event = intrigue_scheme_ongoing.3004 } } } + } - stress_impact = { + stress_impact = { greedy = medium_stress_impact_gain paranoid = minor_stress_impact_gain } @@ -2079,28 +2134,28 @@ intrigue_scheme_ongoing.3003 = { #by Mathilda Bjarnehed 60 = { # Success desc = intrigue_scheme_ongoing.3003.b.success send_interface_toast = { - title = intrigue_scheme_ongoing.3003.b.success + title = intrigue_scheme_ongoing.3003.b.success scope:scheme = { add_scheme_modifier = { type = intrigue_scheme_mapped_surroundings_modifier } } - } + } } 30 = { # Failure desc = intrigue_scheme_ongoing.3003.b.soft_failure send_interface_toast = { - title = intrigue_scheme_ongoing.3003.b.soft_failure + title = intrigue_scheme_ongoing.3003.b.soft_failure add_stress = minor_stress_gain - } + } } 10 = { # Sick desc = intrigue_scheme_ongoing.3003.b.hard_failure send_interface_toast = { - title = intrigue_scheme_ongoing.3003.b.hard_failure + title = intrigue_scheme_ongoing.3003.b.hard_failure add_stress = medium_stress_gain contract_disease_effect = { DISEASE = ill TREATMENT_EVENT = yes } - } + } } } @@ -2166,6 +2221,10 @@ intrigue_scheme_ongoing.3004 = { #by Mathilda Bjarnehed reference = tavern } left_portrait = { + character = root + animation = worry + } + right_portrait = { character = scope:hunter animation = personality_irrational } @@ -2288,10 +2347,14 @@ intrigue_scheme_ongoing.3005 = { #by Mathilda Bjarnehed desc = intrigue_scheme_ongoing.3005.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = writing + } + right_portrait = { character = scope:pigeon_recipient - animation = scheme + animation = reading } - right_portrait = scope:right_portrait + lower_right_portrait = scope:right_portrait widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2302,7 +2365,7 @@ intrigue_scheme_ongoing.3005 = { #by Mathilda Bjarnehed NOT = { has_variable = had_intrigue_scheme_ongoing_3005_event } OR = { scheme_type = elope - any_scheme_agent = { intrigue_scheme_ongoing_3005_other_agent_trigger = yes } + any_scheme_agent_character = { intrigue_scheme_ongoing_3005_other_agent_trigger = yes } } } exists = scope:target.host @@ -2332,7 +2395,7 @@ intrigue_scheme_ongoing.3005 = { #by Mathilda Bjarnehed #Try to save a random agent scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { intrigue_scheme_ongoing_3005_elope_agent_trigger = yes } save_scope_as = elope_agent add_character_flag = { @@ -2349,7 +2412,7 @@ intrigue_scheme_ongoing.3005 = { #by Mathilda Bjarnehed # Murder/abduct: agent else = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { intrigue_scheme_ongoing_3005_other_agent_trigger = yes } save_scope_as = pigeon_recipient add_character_flag = { @@ -2464,7 +2527,11 @@ intrigue_scheme_ongoing.3010 = { theme = generic_intrigue_scheme left_portrait = { character = root - animation = chancellor + animation = reading + } + right_portrait = { + character = scope:target + animation = writing } trigger = { @@ -2472,6 +2539,7 @@ intrigue_scheme_ongoing.3010 = { NOT = { has_variable = had_intrigue_scheme_ongoing_3010_event } + scheme_agent_charges < opportunity_cap_value } knows_language_of_culture = scope:target.culture NOT = { @@ -2497,7 +2565,6 @@ intrigue_scheme_ongoing.3010 = { add_scheme_modifier = { type = intrigue_scheme_personally_translating_letters_modifier } - add_scheme_progress = 1 } stress_impact = { lazy = medium_stress_gain @@ -2513,7 +2580,9 @@ intrigue_scheme_ongoing.3010 = { option = { #Let the translators handle it name = intrigue_scheme_ongoing.3010.b - + scope:scheme = { + change_opportunities = 2 + } ai_chance = { base = 50 ai_value_modifier = { @@ -2535,21 +2604,25 @@ intrigue_scheme_ongoing.3011 = { #By Daniel Moore desc = intrigue_scheme_ongoing.3011.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = scheme + } + right_portrait = { character = scope:multilingual_agent animation = throne_room_writer } + lower_right_portrait = scope:target trigger = { scope:scheme = { NOT = { has_variable = had_intrigue_scheme_ongoing_3011_event } - - any_scheme_agent ={ + scheme_agent_charges < opportunity_cap_value + any_scheme_agent_character = { num_of_known_languages > 2 } } - } immediate = { @@ -2559,7 +2632,7 @@ intrigue_scheme_ongoing.3011 = { #By Daniel Moore value = yes } - random_scheme_agent = { + random_scheme_agent_character = { limit = { num_of_known_languages > 2 } @@ -2608,7 +2681,7 @@ intrigue_scheme_ongoing.3011 = { #By Daniel Moore option = { #Our efforts are best spent elsewhere name = intrigue_scheme_ongoing.3011.b scope:scheme = { - add_scheme_progress = 1 + change_opportunities = 2 } scope:multilingual_agent = { add_opinion = { @@ -2652,8 +2725,15 @@ intrigue_scheme_ongoing.4001 = { } desc = intrigue_scheme_ongoing.4001.desc theme = generic_intrigue_scheme - left_portrait = scope:agent_in_question - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:agent_in_question + animation = survey + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2661,7 +2741,7 @@ intrigue_scheme_ongoing.4001 = { trigger = { scope:scheme = { - any_scheme_agent ={ + any_scheme_agent_character ={ is_landed = no is_in_the_same_court_as = scope:target } @@ -2677,10 +2757,10 @@ intrigue_scheme_ongoing.4001 = { immediate = { scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { is_landed = no - is_in_the_same_court_as = scope:scheme.scheme_target + is_in_the_same_court_as = scope:scheme.scheme_target_character } save_scope_as = agent_in_question add_character_flag = { @@ -2734,8 +2814,15 @@ intrigue_scheme_ongoing.4002 = { title = intrigue_scheme_ongoing.4002.t desc = intrigue_scheme_ongoing.4002.desc theme = generic_intrigue_scheme - left_portrait = scope:target - right_portrait = scope:parent + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = personality_compassionate + } + lower_right_portrait = scope:parent widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2743,7 +2830,7 @@ intrigue_scheme_ongoing.4002 = { trigger = { scope:scheme = { - scheme_target = { + scheme_target_character = { is_adult = no age >= childhood_education_start_age # Warcraft @@ -2758,6 +2845,7 @@ intrigue_scheme_ongoing.4002 = { } is_at_same_location = scope:scheme.scheme_owner } + scheme_agent_charges < opportunity_cap_value } NOT = { exists = scope:scheme.var:had_child_murder_naivety_event } } @@ -2805,7 +2893,7 @@ intrigue_scheme_ongoing.4002 = { option = { name = intrigue_scheme_ongoing.4002.b scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } } } @@ -2819,8 +2907,15 @@ intrigue_scheme_ongoing.4003 = { title = intrigue_scheme_ongoing.4003.t desc = intrigue_scheme_ongoing.4003.desc theme = generic_intrigue_scheme - left_portrait = scope:agent_in_question - right_portrait = scope:target + left_portrait = { + character = root + animation = disappointed + } + right_portrait = { + character = scope:agent_in_question + animation = disapproval + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2834,6 +2929,7 @@ intrigue_scheme_ongoing.4003 = { exists = scope:scheme.var:friend_of_child_target scope:scheme.var:friend_of_child_target = { is_alive = yes } scheme_is_character_agent = scope:scheme.var:friend_of_child_target + scheme_agent_charges < opportunity_cap_value } NOT = { exists = scope:scheme.var:had_child_murder_agent_second_thoughts_event } } @@ -2888,7 +2984,7 @@ intrigue_scheme_ongoing.4003 = { cynical = minor_stress_impact_gain } scope:scheme = { - add_scheme_progress = scheme_progress_loss + change_opportunities = 2 } } } @@ -2926,8 +3022,15 @@ intrigue_scheme_ongoing.5001 = { } desc = intrigue_scheme_ongoing.5001.desc theme = generic_intrigue_scheme - left_portrait = scope:servant - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:servant + animation = schadenfreude + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -2937,6 +3040,7 @@ intrigue_scheme_ongoing.5001 = { is_available_adult = yes scope:scheme = { NOT = { has_variable = had_itching_scheme_event } + scheme_agent_charges < opportunity_cap_value } scope:target = { is_landed = yes @@ -2972,7 +3076,7 @@ intrigue_scheme_ongoing.5001 = { name = intrigue_scheme_ongoing.5001.a remove_short_term_gold = 50 scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } ai_chance = { base = 100 @@ -3007,8 +3111,16 @@ intrigue_scheme_ongoing.5002 = { title = intrigue_scheme_ongoing.5002.t desc = intrigue_scheme_ongoing.5002.desc theme = generic_intrigue_scheme - left_portrait = scope:target - lower_right_portrait = scope:assassin + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:local_mystic + animation = schadenfreude + } + lower_right_portrait = scope:target + lower_left_portrait = scope:assassin widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3018,6 +3130,8 @@ intrigue_scheme_ongoing.5002 = { is_available_adult = yes scope:scheme = { NOT = { has_variable = had_omen_scheme_event } + scheme_agent_charges >= 2 + scheme_agent_charges < opportunity_cap_value } exists = scope:target.court_owner scope:target = { @@ -3042,7 +3156,25 @@ intrigue_scheme_ongoing.5002 = { days = 3650 } } - random_dummy_gender_clergy_effect = yes + random_pool_character = { + province = root.location + limit = { + has_trait = lifestyle_mystic + } + save_scope_as = local_mystic + } + if = { + limit = { + NOT = { exists = scope:local_mystic } + } + create_character = { + template = default_mystic_character + location = root.location + faith = root.faith + culture = root.culture + save_scope_as = local_mystic + } + } } # Give bad omen @@ -3077,7 +3209,7 @@ intrigue_scheme_ongoing.5002 = { } } scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } } scope:target = { #To give the omen to the character @@ -3090,7 +3222,7 @@ intrigue_scheme_ongoing.5002 = { send_interface_toast = { title = intrigue_scheme_ongoing.5002.a.failure scope:scheme = { - add_scheme_progress = scheme_progress_loss + change_opportunities = -2 } } } @@ -3125,7 +3257,7 @@ intrigue_scheme_ongoing.5002 = { } } scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } } scope:target = { #To give the omen to the character @@ -3150,7 +3282,7 @@ intrigue_scheme_ongoing.5002 = { send_interface_toast = { title = intrigue_scheme_ongoing.5002.b.failure scope:scheme = { - add_scheme_progress = scheme_progress_loss + change_opportunities = -2 } } } @@ -3170,7 +3302,14 @@ intrigue_scheme_ongoing.5003 = { override_background = { reference = throne_room } - left_portrait = scope:target + left_portrait = { + character = scope:target + animation = disbelief + } + right_portrait = { + character = scope:local_mystic + animation = worry + } immediate = { add_character_modifier = { @@ -3182,6 +3321,19 @@ intrigue_scheme_ongoing.5003 = { option = { name = intrigue_scheme_ongoing.5003.a } + + after = { + if = { + limit = { + scope:local_mystic = { + is_pool_character = no + } + } + scope:local_mystic = { + silent_disappearance_effect = yes + } + } + } } #For target: get a good omen @@ -3196,7 +3348,14 @@ intrigue_scheme_ongoing.5004 = { override_background = { reference = throne_room } - left_portrait = scope:target + left_portrait = { + character = scope:target + animation = disbelief + } + right_portrait = { + character = scope:local_mystic + animation = happiness + } immediate = { add_character_modifier = { @@ -3208,6 +3367,19 @@ intrigue_scheme_ongoing.5004 = { option = { name = intrigue_scheme_ongoing.5004.a } + + after = { + if = { + limit = { + scope:local_mystic = { + is_pool_character = no + } + } + scope:local_mystic = { + silent_disappearance_effect = yes + } + } + } } @@ -3220,8 +3392,15 @@ intrigue_scheme_ongoing.5005 = { title = intrigue_scheme_ongoing.5005.t desc = intrigue_scheme_ongoing.5005.desc theme = generic_intrigue_scheme - left_portrait = scope:spymaster - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:spymaster + animation = bribing + } + lower_left_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3232,12 +3411,17 @@ intrigue_scheme_ongoing.5005 = { gold > root.minor_gold_value scope:scheme = { NOT = { has_variable = had_poisonous_gold_event } + scheme_agent_charges < opportunity_cap_value } - exists = cp:councillor_spymaster - cp:councillor_spymaster = { - save_temporary_scope_as = court_spymaster + OR = { + cp:councillor_spymaster ?= { + NOT = { this = scope:target } + } + any_court_position_holder = { + type = second_camp_officer + NOT = { this = scope:target } + } } - NOT = { scope:court_spymaster = scope:target } scope:target = { is_physically_able_adult = yes } @@ -3253,12 +3437,19 @@ intrigue_scheme_ongoing.5005 = { } if = { limit = { - exists = cp:councillor_spymaster + any_court_position_holder = { + type = second_camp_officer + NOT = { this = scope:target } + } } - cp:councillor_spymaster = { + random_court_position_holder = { + type = second_camp_officer save_scope_as = spymaster } } + cp:councillor_spymaster ?= { + save_scope_as = spymaster + } } # Give them poisonous gold @@ -3277,7 +3468,7 @@ intrigue_scheme_ongoing.5005 = { } } scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } scope:target = { #Response event trigger_event = intrigue_scheme_ongoing.5006 @@ -3340,7 +3531,14 @@ intrigue_scheme_ongoing.5006 = { title = intrigue_scheme_ongoing.5006.t desc = intrigue_scheme_ongoing.5006.desc theme = friendly - left_portrait = scope:target + left_portrait = { + character = root + animation = personality_greedy + } + right_portrait = { + character = scope:spymaster + animation = schadenfreude + } immediate = { show_as_tooltip = { @@ -3371,7 +3569,14 @@ intrigue_scheme_ongoing.5007 = { desc = intrigue_scheme_ongoing.5007.desc } theme = skull - left_portrait = scope:poisoned + left_portrait = { + character = root + animation = worry + } + right_portrait = { + character = scope:poisoned + animation = sick_stomach + } immediate = { random_child = { @@ -3402,7 +3607,14 @@ intrigue_scheme_ongoing.5008 = { desc = intrigue_scheme_ongoing.5008.desc } theme = skull - left_portrait = scope:poisoned + left_portrait = { + character = root + animation = eyeroll + } + right_portrait = { + character = scope:poisoned + animation = sick_stomach + } immediate = { cp:councillor_spymaster = { @@ -3446,7 +3658,14 @@ intrigue_scheme_ongoing.5009 = { } desc = intrigue_scheme_ongoing.5009.desc theme = generic_intrigue_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = survey + } + right_portrait = { + character = scope:target + animation = boredom + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3457,6 +3676,7 @@ intrigue_scheme_ongoing.5009 = { has_character_modifier = modifier_hunt_friend_of_animal scope:scheme = { NOT = { has_variable = had_friend_of_animals_event } + scheme_agent_charges < opportunity_cap_value } scope:target = { is_landed = yes @@ -3495,7 +3715,14 @@ intrigue_scheme_ongoing.5010 = { title = intrigue_scheme_ongoing.5009.t desc = intrigue_scheme_ongoing.5010.desc theme = generic_intrigue_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = boredom + } trigger = { exists = scope:scheme @@ -3503,7 +3730,7 @@ intrigue_scheme_ongoing.5010 = { immediate = { scope:scheme = { - add_scheme_progress = scheme_progress_gain + change_opportunities = 2 } hidden_effect = { if = { @@ -3547,7 +3774,14 @@ intrigue_scheme_ongoing.5011 = { title = intrigue_scheme_ongoing.5011.t desc = intrigue_scheme_ongoing.5011.desc theme = generic_intrigue_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = personality_greedy + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3653,7 +3887,14 @@ intrigue_scheme_ongoing.5014 = { title = intrigue_scheme_ongoing.5014.t desc = intrigue_scheme_ongoing.5014.desc theme = generic_intrigue_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = personality_greedy + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3687,7 +3928,7 @@ intrigue_scheme_ongoing.5014 = { 50 = { show_chance = no desc = intrigue_scheme_ongoing.5014.a.success - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { change_opportunities = 2 } scope:target = { add_carpet_modifier_effect = yes } } 50 = { @@ -3729,7 +3970,14 @@ intrigue_scheme_ongoing.5015 = { title = intrigue_scheme_ongoing.5014.t desc = intrigue_scheme_ongoing.5015.desc theme = friendly - left_portrait = scope:owner + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:owner + animation = personality_compassionate + } immediate = { scope:scheme = { @@ -3811,7 +4059,7 @@ scripted_trigger intrigue_scheme_ongoing_5016_target_courtier = { scope:scheme = { NOT = { scheme_is_character_agent = prev } } - is_valid_as_agent_in_scheme = scope:scheme + char_can_fit_into_scheme_trigger = { SCHEME = scope:scheme } } intrigue_scheme_ongoing.5016 = { @@ -3819,8 +4067,15 @@ intrigue_scheme_ongoing.5016 = { title = intrigue_scheme_ongoing.5016.t desc = intrigue_scheme_ongoing.5016.desc theme = generic_intrigue_scheme - left_portrait = scope:servant - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:servant + animation = schadenfreude + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3831,6 +4086,7 @@ intrigue_scheme_ongoing.5016 = { short_term_gold < minor_gold_value_check scope:scheme = { NOT = { has_variable = had_courtier_slander_event } + scheme_agent_charges < opportunity_cap_value } scope:target = { is_ai = yes #Let's not create servants and manipulate courtier's opinion too much for players @@ -3873,22 +4129,30 @@ intrigue_scheme_ongoing.5016 = { } } ai_chance = { - base = 1 + base = 10 ai_value_modifier = { ai_honor = -0.5 } + modifier = { + short_term_gold < minor_gold_value + factor = 0 + } } } # Keep the doors open for me option = { name = intrigue_scheme_ongoing.5016.b remove_short_term_gold = minor_gold_value - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { change_opportunities = 2 } ai_chance = { - base = 1 + base = 10 ai_value_modifier = { ai_boldness = 0.75 } + modifier = { + short_term_gold < minor_gold_value + factor = 0 + } } } #Nah @@ -3903,7 +4167,7 @@ intrigue_scheme_ongoing.5016 = { } remove_short_term_gold = 2 ai_chance = { - base = 0 + base = 1 } } } @@ -3920,7 +4184,7 @@ scripted_trigger intrigue_scheme_ongoing_5017_spouse = { scope:scheme = { NOT = { scheme_is_character_agent = prev } } - is_valid_as_agent_in_scheme = scope:scheme + char_can_fit_into_scheme_trigger = { SCHEME = scope:scheme } } intrigue_scheme_ongoing.5017 = { @@ -3928,8 +4192,15 @@ intrigue_scheme_ongoing.5017 = { title = intrigue_scheme_ongoing.5017.t desc = intrigue_scheme_ongoing.5017.desc theme = generic_intrigue_scheme - left_portrait = scope:spouse - right_portrait = scope:target + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:spouse + animation = personality_callous + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4046,7 +4317,7 @@ intrigue_scheme_ongoing.5017 = { # option = { name = intrigue_scheme_ongoing.5017.b - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { change_opportunities = 2 } ai_chance = { base = 1 } @@ -4065,8 +4336,16 @@ intrigue_scheme_ongoing.5018 = { desc = intrigue_scheme_ongoing.5018.desc theme = generic_intrigue_scheme override_background = { reference = army_camp } #fix for FP3, felt highly appropriate - left_portrait = scope:target - lower_left_portrait = scope:assassin + + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:target + animation = marshal + } + lower_right_portrait = scope:assassin widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4076,6 +4355,7 @@ intrigue_scheme_ongoing.5018 = { is_available_adult = yes scope:scheme = { NOT = { has_variable = had_target_at_war_event } + scheme_agent_charges < opportunity_cap_value } scope:target = { is_at_war = yes @@ -4101,7 +4381,7 @@ intrigue_scheme_ongoing.5018 = { # Plant agents option = { name = intrigue_scheme_ongoing.5018.a - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { change_opportunities = 2 } ai_chance = { base = 1.25 } @@ -4166,10 +4446,14 @@ intrigue_scheme_ongoing.5019 = { desc = intrigue_scheme_ongoing.5019.desc theme = generic_intrigue_scheme left_portrait = { - character = scope:agent + character = root animation = scheme } - right_portrait = scope:target + right_portrait = { + character = scope:agent + animation = happy_teacher + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4183,7 +4467,8 @@ intrigue_scheme_ongoing.5019 = { } scope:scheme = { NOT = { has_variable = had_architectural_papers_event } - any_scheme_agent = { + scheme_agent_charges < opportunity_cap_value + any_scheme_agent_character = { is_alive = yes } } @@ -4196,7 +4481,7 @@ intrigue_scheme_ongoing.5019 = { value = yes days = 3650 } - random_scheme_agent = { + random_scheme_agent_character = { limit = { is_courtier_of = scope:target is_alive = yes @@ -4228,7 +4513,9 @@ intrigue_scheme_ongoing.5019 = { # Cool, let's use them! option = { name = intrigue_scheme_ongoing.5019.a - scope:scheme = { add_scheme_progress = scheme_progress_gain } + scope:scheme = { + change_opportunities = 2 + } } # Inspiration for own rebuilding! @@ -4269,7 +4556,21 @@ intrigue_scheme_ongoing.5021 = { title = intrigue_scheme_ongoing.5021.t desc = intrigue_scheme_ongoing.5021.desc theme = intrigue - left_portrait = scope:owner + left_portrait = { + character = root + triggered_animation = { + trigger = { + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:target } + } + animation = personality_callous + } + animation = disbelief + } + right_portrait = { + character = scope:owner + animation = stressed_teacher + } + lower_right_portrait = scope:target trigger = { # Warcraft @@ -4331,7 +4632,7 @@ intrigue_scheme_ongoing.5021 = { scheme_owner = { save_scope_as = owner } - scheme_target = { + scheme_target_character = { save_scope_as = target } } @@ -4352,7 +4653,7 @@ intrigue_scheme_ongoing.5021 = { scheme_owner = { save_scope_as = owner } - scheme_target = { + scheme_target_character = { save_scope_as = target } } @@ -4425,9 +4726,20 @@ intrigue_scheme_ongoing.5022 = { desc = intrigue_scheme_ongoing.5022.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = stressed_teacher + } + right_portrait = { character = scope:family_member - animation = fear + triggered_animation = { + trigger = { + has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:target } + } + animation = personality_callous + } + animation = disbelief } + lower_right_portrait = scope:target option = { #I would never!! name = intrigue_scheme_ongoing.5022.a @@ -4566,8 +4878,12 @@ intrigue_scheme_ongoing.5023 = { desc = intrigue_scheme_ongoing.5023.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = fear + } + right_portrait = { character = scope:owner - animation = anger + animation = aggressive_dagger } immediate = { @@ -4595,8 +4911,15 @@ intrigue_scheme_ongoing.5024 = { title = intrigue_scheme_ongoing.5024.t desc = intrigue_scheme_ongoing.5024.desc theme = generic_intrigue_scheme - left_portrait = scope:target - right_portrait = scope:agent + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:agent + animation = schadenfreude + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4607,7 +4930,7 @@ intrigue_scheme_ongoing.5024 = { short_term_gold >= medium_gold_value scope:scheme = { NOT = { has_variable = had_local_celebration_event } - scheme_number_of_agents > 0 + any_scheme_agent_character = { count >= 0 } } scope:target = { OR = { @@ -4641,7 +4964,7 @@ intrigue_scheme_ongoing.5024 = { } scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { is_alive = yes } @@ -4680,6 +5003,10 @@ intrigue_scheme_ongoing.5024 = { } ai_chance = { base = 100 + modifier = { + factor = 0 + short_term_gold < medium_gold_value + } } } @@ -4696,6 +5023,10 @@ intrigue_scheme_ongoing.5024 = { add = 50 has_trait = greedy } + modifier = { + add = 1 + short_term_gold < medium_gold_value + } } } } @@ -4720,8 +5051,15 @@ intrigue_scheme_ongoing.5026 = { title = intrigue_scheme_ongoing.5026.t desc = intrigue_scheme_ongoing.5026.desc theme = generic_intrigue_scheme - left_portrait = scope:target - right_portrait = scope:court_chaplain + left_portrait = { + character = root + animation = scheme + } + right_portrait = { + character = scope:court_chaplain + animation = personality_zealous + } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4764,7 +5102,7 @@ intrigue_scheme_ongoing.5026 = { modifier = { #the court chaplain is an agent in the scheme add = 0.5 scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { this = scope:target.cp:councillor_court_chaplain } } diff --git a/events/scheme_events/learn_language_scheme/learn_language_outcome_events.txt b/events/scheme_events/learn_language_scheme/learn_language_outcome_events.txt index 8963596935..2c2ed1b1aa 100644 --- a/events/scheme_events/learn_language_scheme/learn_language_outcome_events.txt +++ b/events/scheme_events/learn_language_scheme/learn_language_outcome_events.txt @@ -8,6 +8,7 @@ # Success! learn_language_outcome.1000 = { type = character_event + window = scheme_successful_event title = learn_language_outcome.1000.t desc = learn_language_outcome.1000.desc theme = education @@ -46,6 +47,7 @@ learn_language_outcome.1000 = { is_ai = no } send_interface_toast = { + type = msg_child_language title = child_learned_language_title left_icon = scope:owner right_icon = scope:target @@ -189,7 +191,13 @@ learn_language_outcome.1000 = { } } } - else = { + else_if = { + limit = { + OR = { + NOT = { is_at_war_with = scope:target } + is_ai = no + } + } custom_tooltip = target_responds scope:target = { trigger_event = learn_language_outcome.1001 @@ -206,6 +214,10 @@ learn_language_outcome.1000 = { factor = 0 ai_sociability <= low_negative_ai_value } + modifier = { + factor = 0 + is_at_war_with = scope:target + } } } @@ -363,6 +375,7 @@ learn_language_outcome.1001 = { # Failure learn_language_outcome.2000 = { type = character_event + window = scheme_failed_event title = learn_language_outcome.2000.t desc = learn_language_outcome.2000.desc theme = education @@ -392,6 +405,7 @@ learn_language_outcome.2000 = { is_ai = no } send_interface_toast = { + type = msg_child_language title = child_learned_language_title left_icon = scope:owner right_icon = scope:target @@ -449,7 +463,7 @@ scripted_trigger is_valid_continuation_target = { root = { can_start_scheme = { type = learn_language - target = prev + target_character = prev } } } @@ -639,13 +653,13 @@ learn_language_outcome.3000 = { limit = { can_start_scheme = { type = learn_language - target = scope:potential_continuation_target_1 + target_character = scope:potential_continuation_target_1 } } start_scheme = { type = learn_language - target = scope:potential_continuation_target_1 + target_character = scope:potential_continuation_target_1 } } @@ -654,7 +668,7 @@ learn_language_outcome.3000 = { random_scheme = { limit = { scheme_type = learn_language - scheme_target = scope:potential_continuation_target_1 + scheme_target_character = scope:potential_continuation_target_1 } if = { limit = { @@ -677,13 +691,13 @@ learn_language_outcome.3000 = { limit = { can_start_scheme = { type = learn_language - target = scope:potential_continuation_target_2 + target_character = scope:potential_continuation_target_2 } } start_scheme = { type = learn_language - target = scope:potential_continuation_target_2 + target_character = scope:potential_continuation_target_2 } } @@ -692,7 +706,7 @@ learn_language_outcome.3000 = { random_scheme = { limit = { scheme_type = learn_language - scheme_target = scope:potential_continuation_target_2 + scheme_target_character = scope:potential_continuation_target_2 exists = root.var:language_progress } if = { @@ -716,13 +730,13 @@ learn_language_outcome.3000 = { limit = { can_start_scheme = { type = learn_language - target = scope:potential_continuation_target_3 + target_character = scope:potential_continuation_target_3 } } start_scheme = { type = learn_language - target = scope:potential_continuation_target_3 + target_character = scope:potential_continuation_target_3 } } @@ -731,7 +745,7 @@ learn_language_outcome.3000 = { random_scheme = { limit = { scheme_type = learn_language - scheme_target = scope:potential_continuation_target_3 + scheme_target_character = scope:potential_continuation_target_3 exists = root.var:language_progress } if = { diff --git a/events/scheme_events/murder_scheme/assassination_ongoing_events.txt b/events/scheme_events/murder_scheme/assassination_ongoing_events.txt index 7cd0da9ddd..0e62425798 100644 --- a/events/scheme_events/murder_scheme/assassination_ongoing_events.txt +++ b/events/scheme_events/murder_scheme/assassination_ongoing_events.txt @@ -15,7 +15,10 @@ assassination_ongoing.0001 = { character = scope:secret_sympathizer animation = scheme } - right_portrait = scope:assassin + right_portrait = { + character = scope:assassin + animation = asssassin + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -25,7 +28,6 @@ assassination_ongoing.0001 = { any_court_position_holder = { type = master_assassin_court_position } - scope:target = { any_courtier = { is_available_ai_adult = yes @@ -42,17 +44,14 @@ assassination_ongoing.0001 = { } } } - NOT = { exists = scope:scheme.var:had_dark_blessing_event } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:target = { random_courtier = { limit = { @@ -72,8 +71,6 @@ assassination_ongoing.0001 = { save_scope_as = secret_sympathizer } } - - hidden_effect = { scope:secret_sympathizer = { if = { @@ -86,7 +83,6 @@ assassination_ongoing.0001 = { } } } - scope:scheme = { set_variable = { name = had_dark_blessing_event @@ -99,15 +95,12 @@ assassination_ongoing.0001 = { # Bless them option = { name = assassination_ongoing.0001.a - add_piety = medium_piety_loss - scope:scheme = { add_scheme_modifier = { type = scheme_helpful_sympathizer_modifier } } - scope:secret_sympathizer = { add_opinion = { target = scope:owner @@ -115,11 +108,9 @@ assassination_ongoing.0001 = { modifier = fp3_blessed_me_opinion } } - stress_impact = { arrogant = minor_stress_impact_gain } - ai_chance = { base = 50 modifier = { @@ -138,7 +129,6 @@ assassination_ongoing.0001 = { # Refuse option = { name = assassination_ongoing.0001.b - flavor = fp3_sympathizer_might_betray_you.flavor scope:scheme = { add_scheme_modifier = { type = scheme_untrustworthy_sympathizer_modifier } @@ -167,10 +157,6 @@ assassination_ongoing.0002 = { desc = assassination_ongoing.0002.desc theme = generic_intrigue_scheme left_portrait = { - character = scope:assassin - animation = personality_greedy - } - right_portrait = { character = root triggered_animation = { trigger = { @@ -184,6 +170,10 @@ assassination_ongoing.0002 = { } animation = dismissal } + right_portrait = { + character = scope:assassin + animation = personality_greedy + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -195,17 +185,14 @@ assassination_ongoing.0002 = { any_court_position_holder = { type = master_assassin_court_position } - NOT = { exists = scope:scheme.var:had_courting_fanatics_event } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:scheme = { set_variable = { name = had_courting_fanatics_event @@ -218,20 +205,16 @@ assassination_ongoing.0002 = { # Pay them option = { name = assassination_ongoing.0002.a - remove_short_term_gold = medium_gold_value - scope:scheme = { add_scheme_modifier = { type = scheme_assassin_recruits_modifier } } - stress_impact = { greedy = minor_stress_impact_gain paranoid = medium_stress_impact_gain } - ai_chance = { base = 50 ai_value_modifier = { @@ -239,13 +222,17 @@ assassination_ongoing.0002 = { ai_sociability = 0.5 ai_greed = -0.9 } + modifier = { + factor = 0 + short_term_gold < medium_gold_value + } } } # Refuse option = { name = assassination_ongoing.0002.b - + stress_impact = { zealous = minor_stress_impact_gain generous = minor_stress_impact_gain @@ -305,15 +292,14 @@ assassination_ongoing.0003 = { any_court_position_holder = { type = master_assassin_court_position } - NOT = { exists = scope:scheme.var:had_usury_assassination_event } scope:scheme = { - is_scheme_exposed = no + is_scheme_exposed = no + scheme_agent_charges < opportunity_cap_value } } immediate = { - scope:scheme = { set_variable = { name = had_usury_assassination_event @@ -321,12 +307,10 @@ assassination_ongoing.0003 = { days = 3650 } } - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:assassin = { save_scope_as = agent } #so we can reuse some loc from the murder scheme } @@ -349,9 +333,7 @@ assassination_ongoing.0003 = { } text = assassination_ongoing.0003.b } - remove_short_term_gold = medium_gold_value - scope:assassin = { duel = { skill = intrigue @@ -395,7 +377,6 @@ assassination_ongoing.0003 = { } } } - if = { limit = { faith = { @@ -408,23 +389,21 @@ assassination_ongoing.0003 = { zealous = medium_stress_gain } } - stress_impact = { greedy = medium_stress_impact_gain } - ai_chance = { base = 50 modifier = { add = 100 has_trait = generous } + modifier = { + factor = 0 + short_term_gold < medium_gold_value + } } } - - - - option = { #Save it name = { trigger = { @@ -444,7 +423,9 @@ assassination_ongoing.0003 = { } text = intrigue_scheme_ongoing.1001.b } - + scope:scheme = { + change_opportunities = 2 + } stress_impact = { impatient = minor_stress_impact_gain } @@ -515,6 +496,10 @@ assassination_ongoing.0004 = { container = "custom_widgets_container" } left_portrait = { + character = scope:owner + animation = thinking + } + right_portrait = { character = scope:assassin animation = worry triggered_animation = { @@ -527,26 +512,19 @@ assassination_ongoing.0004 = { animation = paranoia } } - right_portrait = { - character = scope:owner - animation = thinking - } trigger = { any_court_position_holder = { type = master_assassin_court_position } - NOT = { exists = scope:scheme.var:had_doubt_event } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:scheme = { set_variable = { name = had_doubt_event @@ -558,7 +536,6 @@ assassination_ongoing.0004 = { option = { - name = { trigger = { has_trait = hashishiyah @@ -599,7 +576,6 @@ assassination_ongoing.0004 = { } text = assassination_ongoing.0003.c_meditation } - trigger = { OR = { has_trait = hashishiyah @@ -614,15 +590,13 @@ assassination_ongoing.0004 = { } } } - scope:scheme = { add_scheme_modifier = { type = scheme_strengthened_resolve_modifier } - add_scheme_progress = 1 + change_opportunities = 2 } custom_tooltip = high_risk_of_dying.tt - scope:assassin = { if = { limit = { @@ -644,11 +618,9 @@ assassination_ongoing.0004 = { } } } - stress_impact = { compassionate = medium_stress_impact_gain #hey, you should want to die! } - ai_chance = { #zealous yet social AI will do this base = 100 ai_value_modifier = { @@ -661,7 +633,6 @@ assassination_ongoing.0004 = { option = { name = assassination_ongoing.0004.b #skill challenge - duel = { skill = diplomacy value = medium_skill_rating @@ -683,7 +654,7 @@ assassination_ongoing.0004 = { add_scheme_modifier = { type = scheme_strengthened_resolve_modifier } - add_scheme_progress = 1 + change_opportunities = 2 } custom_tooltip = high_risk_of_dying.tt } @@ -709,11 +680,9 @@ assassination_ongoing.0004 = { } } } - stress_impact = { compassionate = medium_stress_impact_gain } - ai_chance = { #zealous yet energetic AI will do this. Plus, it's mutually exclusive with the first option anyhow. base = 100 ai_value_modifier = { @@ -726,11 +695,9 @@ assassination_ongoing.0004 = { option = { name = assassination_ongoing.0004.c - scope:scheme = { end_scheme = yes } - stress_impact = { compassionate = medium_stress_impact_loss trusting = minor_stress_impact_loss @@ -741,7 +708,6 @@ assassination_ongoing.0004 = { stubborn = minor_stress_impact_gain vengeful = medium_stress_impact_gain } - ai_chance = { #loving, non-zealous AI will do this base = 50 ai_value_modifier = { @@ -765,13 +731,13 @@ assassination_ongoing.0005 = { theme = medicine left_portrait = { - character = scope:assassin - animation = hunting_knife_start - } - right_portrait = { character = root animation = thinking } + right_portrait = { + character = scope:assassin + animation = hunting_knife_start + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -781,17 +747,17 @@ assassination_ongoing.0005 = { any_court_position_holder = { type = master_assassin_court_position } - - NOT = { exists = scope:scheme.var:had_poison_event } + NOT = { exists = scope:scheme.var:had_poison_event } + scope:scheme = { + scheme_agent_charges < opportunity_cap_value + } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:scheme = { set_variable = { name = had_poison_event @@ -815,24 +781,20 @@ assassination_ongoing.0005 = { } text = assassination_ongoing.0005.a_them } - trigger = { OR = { has_trait = lifestyle_herbalist scope:assassin = { has_trait = lifestyle_herbalist } } } - scope:scheme = { add_scheme_modifier = { type = scheme_poisoned_blade_modifier } } - stress_impact = { lazy = minor_stress_impact_gain } - ai_chance = { #AI will do this if they can base = 100 ai_value_modifier = { @@ -845,26 +807,21 @@ assassination_ongoing.0005 = { # Gold! option = { name = assassination_ongoing.0005.b - trigger = { NOR = { has_trait = lifestyle_herbalist scope:assassin = { has_trait = lifestyle_herbalist } } } - remove_short_term_gold = minor_gold_value - scope:scheme = { add_scheme_modifier = { type = scheme_poisoned_blade_modifier } } - stress_impact = { greedy = minor_stress_impact_gain } - ai_chance = { #some AI are hesitant to spend money on this base = 100 ai_value_modifier = { @@ -872,19 +829,21 @@ assassination_ongoing.0005 = { ai_vengefulness = 0.9 ai_greed = -0.9 } + modifier = { + factor = 0 + short_term_gold < minor_gold_value + } } } # Cheap natural poison! option = { name = assassination_ongoing.0005.c - scope:scheme = { add_scheme_modifier = { type = scheme_pestilent_blade_modifier } } - scope:assassin = { add_opinion = { target = scope:owner @@ -892,7 +851,6 @@ assassination_ongoing.0005 = { modifier = frustrated_opinion } } - stress_impact = { gallant = medium_stress_impact_gain generous = minor_stress_impact_gain @@ -912,9 +870,9 @@ assassination_ongoing.0005 = { # Beneath us! option = { name = assassination_ongoing.0005.d - - scope:scheme = { add_scheme_progress = scheme_progress_gain } - + scope:scheme = { + change_opportunities = 2 + } scope:assassin = { add_opinion = { target = scope:owner @@ -922,13 +880,11 @@ assassination_ongoing.0005 = { modifier = respect_opinion } } - stress_impact = { cynical = minor_stress_impact_gain generous = minor_stress_impact_gain vengeful = minor_stress_impact_gain } - ai_chance = { #this is the "honorable" option base = 100 ai_value_modifier = { @@ -950,6 +906,10 @@ assassination_ongoing.0006 = { desc = assassination_ongoing.0006.desc theme = generic_intrigue_scheme left_portrait = { + character = root + animation = personality_vengeful + } + right_portrait = { character = scope:target animation = paranoia } @@ -965,17 +925,14 @@ assassination_ongoing.0006 = { any_court_position_holder = { type = master_assassin_court_position } - NOT = { exists = scope:scheme.var:had_faltering_assassin_event } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:scheme = { set_variable = { name = had_faltering_assassin_event @@ -983,23 +940,19 @@ assassination_ongoing.0006 = { days = 3650 } } - scope:scheme = { add_scheme_modifier = { type = scheme_renegade_assassin_modifier } } - random_dummy_gender_assassin_effect = yes #to set a gender in the loc for the unscoped assassin } option = { name = assassination_ongoing.0006.a - duel = { skill = intrigue value = medium_skill_rating - 20 = { compare_modifier = { value = scope:duel_value @@ -1008,11 +961,8 @@ assassination_ongoing.0006 = { send_interface_toast = { title = assassination_hunted_down_toast.success left_icon = scope:assassin - custom_tooltip = assassination_hunted_down.success - add_dread = medium_dread_gain - scope:scheme = { remove_scheme_modifier = scheme_renegade_assassin_modifier } @@ -1027,23 +977,18 @@ assassination_ongoing.0006 = { send_interface_toast = { title = assassination_hunted_down_toast.failure left_icon = root - custom_tooltip = assassination_hunted_down.failure - - add_prestige = minor_prestige_loss - + add_prestige = minor_prestige_loss } } } } - stress_impact = { lazy = major_stress_impact_gain compassionate = major_stress_impact_gain trusting = medium_stress_impact_gain forgiving = medium_stress_impact_gain } - ai_chance = { base = 100 ai_value_modifier = { @@ -1056,14 +1001,12 @@ assassination_ongoing.0006 = { option = { name = assassination_ongoing.0006.b - stress_impact = { vengeful = major_stress_impact_gain paranoid = major_stress_impact_gain callous = minor_stress_impact_gain sadistic = minor_stress_impact_gain } - ai_chance = { #this is the "honorable" option base = 100 ai_value_modifier = { @@ -1105,26 +1048,8 @@ assassination_ongoing.0007 = { theme = generic_intrigue_scheme left_portrait = { - character = scope:target - triggered_animation = { - trigger = { - ai_honor >= high_positive_ai_value - } - animation = personality_honorable - } - triggered_animation = { - trigger = { - ai_zeal >= high_positive_ai_value - } - animation = personality_zealous - } - triggered_animation = { - trigger = { - ai_greed < low_positive_ai_value - } - animation = personality_compassionate - } - animation = paranoia + character = root + animation = personality_callous } right_portrait = { character = scope:assassin @@ -1136,19 +1061,21 @@ assassination_ongoing.0007 = { } animation = worry } + lower_right_portrait = scope:target widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" } trigger = { - NOT = { exists = scope:scheme.var:had_righteous_target_event } - + NOT = { exists = scope:scheme.var:had_righteous_target_event } + scope:scheme = { + scheme_agent_charges < opportunity_cap_value + } any_court_position_holder = { type = master_assassin_court_position save_temporary_scope_as = temporary_assassin } - scope:temporary_assassin = { NOR = { ai_zeal < low_positive_ai_value @@ -1158,19 +1085,16 @@ assassination_ongoing.0007 = { } } } - scope:target = { righteous_target_trigger = yes } } immediate = { - random_court_position_holder = { type = master_assassin_court_position save_scope_as = assassin } - scope:scheme = { set_variable = { name = had_righteous_target_event @@ -1182,11 +1106,10 @@ assassination_ongoing.0007 = { option = { name = assassination_ongoing.0007.a - - scope:scheme = { add_scheme_progress = scheme_progress_gain } - + scope:scheme = { + change_opportunities = 2 + } add_dread = minor_dread_gain - scope:assassin = { add_opinion = { target = root @@ -1194,15 +1117,11 @@ assassination_ongoing.0007 = { } } custom_tooltip = high_risk_of_dying.tt - stress_impact = { - craven = minor_stress_impact_loss - trusting = minor_stress_impact_loss - trusting = minor_stress_impact_gain + brave = minor_stress_impact_loss trusting = medium_stress_impact_gain - vengeful = medium_stress_impact_gain + forgiving = medium_stress_impact_gain } - ai_chance = { base = 50 ai_value_modifier = { @@ -1215,18 +1134,15 @@ assassination_ongoing.0007 = { option = { name = assassination_ongoing.0007.b - scope:scheme = { end_scheme = yes } - if = { #if target is truly righteous, you'll gain some piety limit = { scope:target = { num_virtuous_traits >= 1 } } add_piety = medium_piety_gain } - stress_impact = { craven = minor_stress_impact_loss trusting = minor_stress_impact_loss @@ -1234,7 +1150,6 @@ assassination_ongoing.0007 = { stubborn = medium_stress_impact_gain vengeful = medium_stress_impact_gain } - ai_chance = { #cautious, trusting AI will do this base = 50 ai_value_modifier = { diff --git a/events/scheme_events/murder_scheme/murder_outcome_events.txt b/events/scheme_events/murder_scheme/murder_outcome_events.txt index d58a6dfdaf..53ac1d2076 100644 --- a/events/scheme_events/murder_scheme/murder_outcome_events.txt +++ b/events/scheme_events/murder_scheme/murder_outcome_events.txt @@ -1,2127 +1,69 @@ -#events for Murder Scheme Outcomes +# System by Petter Vilberg and Linnéa Thimrén -# System by Petter Vilberg and Linnéa Thimrén +########################################################################### +# !!!!!! OUTDATED — REPLACED BY murder_outcome_reworked_events.txt !!!!!! # +########################################################################### namespace = murder_outcome -################################## -# MAINTENANCE EVENTS 0000 - 0099 -################################## - -murder_outcome.0001 = { - - hidden = yes - - immediate = { - add_character_flag = { #To make sure you never resolve two murders at once - flag = is_in_event_murder_outcome_0001 - days = 1 - } - trigger_event = { - #Run the setup for the chosen execution type. - on_action = murder_method_selection - } - } -} - - - -################# -# METHOD SELECTION EVENTS -# 0100-0199 -################# -# These are used to pick out the murder method. - -# Hire an assassin -# by Petter Vilberg -murder_outcome.0101 = { - type = character_event - hidden = yes - - weight_multiplier = { - base = 1 - modifier = { # More likely if lover can save them - add = 0.5 - scope:target = { - num_of_relation_lover > 0 - } - } - #modifier = { # More likely if a Varangian can save them - # add = 1 - # scope:target = { - # any_courtier_or_guest = { - # has_character_flag = is_currently_varangian - # } - # } - #} - modifier = { # More likely if a bodyguard can save them - add = 0.5 - scope:target = { - employs_court_position = bodyguard_court_position - any_court_position_holder = { - type = bodyguard_court_position - is_physically_able = yes - } - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:hired_assassin - } - trigger_event = { on_action = murder_setup } - } -} - -# Hire some thugs -# by Petter Vilberg -murder_outcome.0102 = { - type = character_event - hidden = yes - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:hired_thugs - } - trigger_event = { on_action = murder_setup } - } -} - -# Poison food at a feast -# by Petter Vilberg -murder_outcome.0103 = { - type = character_event - hidden = yes - - # Warcraft - trigger = { - scope:target = { wc_can_be_poisoned_trigger = yes } - } - - weight_multiplier = { - base = 1 - modifier = { # More likely if cat can save them - add = 0.5 - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_cat - } - } - } - modifier = { # More likely if a dog can save them - add = 1 - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_dog - } - } - } - modifier = { # More likely if the target is gluttonous in order to highlight the benefits of the trait - add = 2 - scope:target = { - has_trait = gluttonous - } - } - modifier = { # More likely if you are growing poisonous plants - add = 1 - has_character_modifier = poisonous_plants - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:used_poison - } - trigger_event = { on_action = murder_setup } - } -} - -# Sneak a Creepy Crawly into their room -# by Petter Vilberg -murder_outcome.0104 = { - type = character_event - hidden = yes - - # Warcraft - trigger = { - scope:target = { wc_can_be_poisoned_trigger = yes } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 0.5 - scope:target = { - num_of_relation_lover > 0 - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:creepy_crawly - } - set_local_venomous_creature_effect = yes - trigger_event = { on_action = murder_setup } - } -} - -# A Riled-up Mob -# by Petter Vilberg -murder_outcome.0105 = { - type = character_event - hidden = yes - - trigger = { - scope:target = { - - # Warcraft - can_be_murdered_by_peasants_trigger = yes - - exists = capital_county - capital_county = { county_opinion <= 20 } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 0.5 - scope:target.capital_county = { county_opinion <= -10 } - } - modifier = { - add = 0.5 - scope:target.capital_county = { county_opinion <= -15 } - } - modifier = { - add = 0.5 - scope:target.capital_county = { county_opinion <= -25 } - } - modifier = { - add = 0.5 - scope:target.capital_county = { county_opinion <= -30 } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:riled_up_mob - } - trigger_event = { on_action = murder_setup } - } -} - - -# Immurement -# by Linnéa Thimrén -murder_outcome.0106 = { - type = character_event - hidden = yes - - trigger = { - OR = { - exists = capital_province - exists = location.barony # In case the character is at sea - } - scope:target = { drinks_alcohol_trigger = yes } - } - - weight_multiplier = { - base = 0.5 - modifier = { - add = 0.5 - OR = { - has_trait = lifestyle_reveler - has_trait = drunkard - scope:target = { has_trait = lifestyle_reveler } - scope:target = { has_trait = drunkard } - } - } - modifier = { - add = 0.25 - has_relation_friend = scope:target #Your friend insulted you... - } - modifier = { - add = -0.5 - scope:target = { has_trait = temperate } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:bricked - } - trigger_event = { on_action = murder_setup } - } -} - - -# Sink a boat they're on -# by Linnéa Thimrén -murder_outcome.0107 = { - type = character_event - hidden = yes - - trigger = { - scope:target = { - # Warcraft - wc_can_breath_underwater = no - location = { is_sea_province = yes } - } - } - - weight_multiplier = { - base = 0.5 - modifier = { - add = 0.5 - scope:target = { - OR = { - has_lifestyle = stewardship_lifestyle - stewardship > high_skill_rating - } - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:sunken_boat - } - trigger_event = { on_action = murder_setup } - } -} - -# Poison their drink -# by Linnéa Thimrén -murder_outcome.0108 = { - type = character_event - hidden = yes - - trigger = { - OR = { - exists = capital_province - exists = location - } - } - - weight_multiplier = { - base = 1 - modifier = { # More likely if a cup-bearer taster can save them - add = 1 - scope:target = { - employs_court_position = cupbearer_court_position - any_court_position_holder = { - type = cupbearer_court_position - is_physically_able = yes - } - } - } - - modifier = { # More likely if they're a drunkard - add = 0.5 - scope:target = { - has_trait = drunkard - } - } - - modifier = { # More likely if you are growing poisonous plants - add = 1 - has_character_modifier = poisonous_plants - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:used_poisoned_drink - } - trigger_event = { on_action = murder_setup } - } -} - - -############################# -# CHILD AND INFANT MURDERS -# 0201-0299 -############################# - -# Leave a child in the forest -# by Petter Vilberg -murder_outcome.0201 = { - type = character_event - hidden = yes - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:lured_into_forest - } - trigger_event = { on_action = murder_setup } - } -} - -# Infant Stabbed to Death -# by Petter Vilberg -murder_outcome.0202 = { - type = character_event - hidden = yes - - trigger = { - scope:scheme.scheme_target = { - is_adult = no - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:stab_infant - } - trigger_event = { on_action = murder_setup } - } -} - -# Leave venomous creepy crawly in child's cradle -# by Linnéa Thimrén -murder_outcome.0203 = { - type = character_event - hidden = yes - - trigger = { - scope:scheme.scheme_target = { - # Warcraft - wc_can_be_poisoned_trigger = yes - - is_adult = no - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:infant_creepy_crawly - } - set_local_venomous_creature_effect = yes - trigger_event = { on_action = murder_setup } - } -} - -# Poisoned candy -# by Linnéa Thimrén -murder_outcome.0204 = { - type = character_event - hidden = yes - - # Warcraft - trigger = { - scope:target = { wc_can_be_poisoned_trigger = yes } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:poisoned_candy - } - trigger_event = { on_action = murder_setup } - } -} - - -# Child pushed to death -# by Linnéa Thimrén -murder_outcome.0205 = { - type = character_event - hidden = yes - - # Warcraft - trigger = { - scope:target = { wc_can_fall_trigger = yes } - } - - weight_multiplier = { - base = 0.5 - modifier = { - add = 1 - scope:scheme.scheme_target = { - OR = { - any_owned_story = { story_type = story_cycle_pet_dog } - any_owned_story = { story_type = story_cycle_pet_cat } - has_variable = child_toy_variable - } - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:child_pushed - } - trigger_event = { on_action = murder_setup } - } -} - -################################ -# IMPRISONMENT MURDERS -# 0301-0399 -################################ - -#Beat to death in a dungeon -# by Petter Vilberg -murder_outcome.0301 = { - hidden = yes - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:beat_to_death_in_dungeon - } - trigger_event = { on_action = murder_setup } - } -} - -#Unwelcome guest in House Arrest -# by Petter Vilberg -murder_outcome.0302 = { - hidden = yes - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:unwelcome_guest_house_arrest - } - scope:target = { - if = { - limit = { is_landed = yes } - save_scope_as = home_owner - } - else = { - if = { - limit = { - exists = court_owner - } - court_owner = { - save_scope_as = home_owner - } - } - } - } - if = { - limit = { - exists = scope:home_owner.capital_province - } - scope:home_owner.capital_province = { - barony = { - save_scope_as = target_home - } - } - } - trigger_event = { on_action = murder_setup } - } -} - - -################################# -# VARIOUS SPECIAL MURDERS -# 0400-0499 -################################# - -#Incapable Murder -# by Petter Vilberg -murder_outcome.0401 = { - type = character_event - hidden = yes - - immediate = { - save_scope_value_as = { - name = murder_method - value = flag:strangle_incapable - } - trigger_event = { on_action = murder_setup } - } -} - - -####################################### -# "REGULAR" MURDER SETUPS 1000 - 1999 -####################################### -# Whichever event is randomly rolled here determines what form the event takes. -# Remember to set flags for reference when generating event text in success or failure event. - - -#Setup for a hired assassin -murder_outcome.1001 = { - title = murder_outcome.1001.t - desc = murder_outcome.1001.d - theme = murder_scheme - left_portrait = scope:target - - trigger = { - #Will have been set by murder_outcome.0001 or a special setup event. - scope:murder_method = flag:hired_assassin - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1001.a - murder_outcome_roll_effect = yes - stress_impact = { - arbitrary = minor_stress_impact_loss - compassionate = medium_stress_impact_gain - gregarious = minor_stress_impact_gain - } - } - - option = { - name = murder_outcome.1001.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = medium_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -#Setup for hired thugs -murder_outcome.1002 = { - title = murder_outcome.1002.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:target = { - is_travelling = yes - } - } - desc = murder_outcome.1002.opening_travel - } - desc = murder_outcome.1002.opening - } - } - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - #Will have been set by murder_outcome.0001 or a special setup event. - scope:murder_method = flag:hired_thugs - } - - immediate = { - murder_outcome_roll_setup_effect = yes - if = { - limit = { - scope:target = { is_travelling = yes } - } - scope:target = { - current_travel_plan = { - next_destination_province = { save_scope_as = province } - } - } - } - } - - option = { - name = murder_outcome.1002.a - murder_outcome_roll_effect = yes - stress_impact = { - greedy = minor_stress_impact_gain - compassionate = medium_stress_impact_gain - honest = minor_stress_impact_gain - } - } - - option = { - name = murder_outcome.1002.b - ai_chance = { - base = 0 - } - stress_impact = { - impatient = medium_stress_impact_gain - compassionate = minor_stress_impact_loss - arrogant = medium_stress_impact_gain - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - -#Setup for poison -murder_outcome.1003 = { - title = murder_outcome.1003.t - desc = murder_outcome.1003.d - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - #Will have been set by murder_outcome.0001 or a special setup event. - scope:murder_method = flag:used_poison - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1003.a - murder_outcome_roll_effect = yes - stress_impact = { - gluttonous = minor_stress_impact_gain - craven = minor_stress_impact_loss - paranoid = medium_stress_impact_gain - } - } - - option = { - name = murder_outcome.1003.b - ai_chance = { - base = 0 - } - stress_impact = { - impatient = medium_stress_impact_gain - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -#Setup for creepy-crawly -murder_outcome.1004 = { - title = murder_outcome.1004.t - desc = murder_outcome.1004.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:creepy_crawly - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1004.a - murder_outcome_roll_effect = yes - stress_impact = { - arbitrary = minor_stress_impact_loss - compassionate = medium_stress_impact_gain - gregarious = minor_stress_impact_gain - } - } - - option = { - name = murder_outcome.1004.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = major_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -#Setup for a riled-up mob -murder_outcome.1005 = { - title = murder_outcome.1005.t - desc = murder_outcome.1005.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:riled_up_mob - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:target.capital_province.barony = { - save_scope_as = home_province - } - } - - option = { - name = murder_outcome.1005.a - murder_outcome_roll_effect = yes - stress_impact = { - arbitrary = minor_stress_impact_loss - compassionate = medium_stress_impact_gain - gregarious = minor_stress_impact_gain - } - } - - option = { - name = murder_outcome.1005.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = major_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - -#Setup for immurement -murder_outcome.1006 = { - title = murder_outcome.1006.t - desc = murder_outcome.1006.desc - theme = murder_scheme - left_portrait = { - character = scope:target - animation = toast_goblet - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - override_background = { - reference = bp1_wine_cellar - } - - trigger = { - scope:murder_method = flag:bricked - } - - immediate = { - murder_outcome_roll_setup_effect = yes - if = { - limit = { - exists = capital_province - } - capital_province = { - save_scope_as = home_province - } - } - else = { - location = { - save_scope_as = home_province - } - } - } - - option = { - name = murder_outcome.1006.a - murder_outcome_roll_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - } - } - - option = { - name = murder_outcome.1004.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = major_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -#Setup for sinking a boat they're on -murder_outcome.1007 = { - title = murder_outcome.1007.t - desc = { - first_valid = { - # If the target is traveling, we use this loc - triggered_desc = { - trigger = { - scope:target = { - is_travelling = yes - location = { is_sea_province = yes } - } - } - desc = murder_outcome.1007.travel - } - # If the target isn't traveling, we pick one of these - triggered_desc = { - trigger = { - scope:target = { is_lowborn = yes } - } - desc = murder_outcome.1007.desc_not_inspection - } - desc = murder_outcome.1007.desc - } - # Pick the ending loc - first_valid = { - triggered_desc = { - trigger = { - scope:target = { - is_travelling = yes - location = { is_sea_province = yes } - } - } - desc = murder_outcome.1007.desc_ending_travel - } - desc = murder_outcome.1007.desc_ending - } - } - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:sunken_boat - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:target = { - if = { - limit = { - is_travelling = yes - location = { - is_sea_province = yes - } - } - location = { save_scope_as = province } - } - else_if = { #To save a place with water that's close to target - limit = { - is_landed = yes - any_sub_realm_county = { - is_coastal_county = yes - } - } - random_sub_realm_county = { - limit = { - is_coastal_county = yes - } - save_scope_as = province - } - } - else_if = { - limit = { - location.county = { - any_neighboring_county = { - is_coastal_county = yes - } - } - } - location.county = { - random_neighboring_county = { - limit = { - is_coastal_county = yes - } - save_scope_as = province - } - } - } - else = { - location.county = { - save_scope_as = province - } - } - } - } - - option = { - name = murder_outcome.1007.a - murder_outcome_roll_effect = yes - # Make a list of 3 random entourage members to kill also - # clearing of the variable list is handled in the after block of the follow-up event 2007 - murder_entourage_list_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - } - } - - option = { - name = murder_outcome.1005.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = major_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - -#Setup for poisoned drink -murder_outcome.1008 = { - title = murder_outcome.1008.t - desc = murder_outcome.1008.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:used_poisoned_drink - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1008.a - murder_outcome_roll_effect = yes - stress_impact = { - vengeful = minor_stress_impact_loss - craven = minor_stress_impact_loss - } - } - - option = { - name = murder_outcome.1004.b - ai_chance = { - base = 0 - } - stress_impact = { - impatient = medium_stress_impact_gain - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -##################################### -# CHILD MURDER SETUP 1200 - 1299 -##################################### -########################## -# Lure Target Into Forest -########################## - -murder_outcome.1201 = { - title = murder_outcome.1201.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - exists = scope:acting_agent - } - desc = murder_outcome.1201.desc - } - desc = murder_outcome.1201.no_acting_agent - } - } - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:lured_into_forest - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:scheme = { - if = { - limit = { - any_scheme_agent = { - scope:scheme = { - NOT = {is_scheme_agent_exposed = prev } - } - } - } - random_scheme_agent = { - save_scope_as = acting_agent - } - } - else = { - random_dummy_gender_effect = yes - } - } - } - - option = { - name = murder_outcome.1201.a - custom_tooltip = murder_child_really_tooltip - murder_outcome_roll_effect = yes - } - - option = { - name = murder_outcome.1201.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - -########################## -# Infant Stabbed to Death -########################## - -murder_outcome.1202 = { - title = murder_outcome.1202.t - desc = murder_outcome.1202.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:stab_infant - } - - immediate = { - murder_outcome_roll_setup_effect = yes - random_dummy_gender_effect = yes - } - - option = { - name = murder_outcome.1202.a - remove_short_term_gold = medium_gold_value - custom_tooltip = murder_child_really_tooltip - murder_outcome_roll_effect = yes - } - - option = { - name = murder_outcome.1202.b - ai_chance = { - base = 0 - } - custom_tooltip = do_not_execute_murder_tooltip - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - } -} - - -########################## -# Infant bitten by creepy crawly -########################## - -murder_outcome.1203 = { - title = murder_outcome.1202.t - desc = murder_outcome.1203.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:infant_creepy_crawly - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1202.a - remove_short_term_gold = medium_gold_value - custom_tooltip = murder_child_really_tooltip - murder_outcome_roll_effect = yes - } - - option = { - name = murder_outcome.1202.b - ai_chance = { - base = 0 - } - custom_tooltip = do_not_execute_murder_tooltip - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - } -} - - -########################## -# Poisoned candy -########################## - -murder_outcome.1204 = { - title = murder_outcome.1204.t - desc = murder_outcome.1204.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:poisoned_candy - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:target = { set_favorite_treat_effect = yes } - } - - option = { - name = murder_outcome.1204.a - custom_tooltip = murder_child_really_tooltip - murder_outcome_roll_effect = yes - } - - option = { - name = murder_outcome.1201.b - ai_chance = { - base = 0 - } - custom_tooltip = do_not_execute_murder_tooltip - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - } -} - - -########################## -# Child pushed to death -########################## - -murder_outcome.1205 = { - title = murder_outcome.1205.t - desc = { - desc = murder_outcome.1205.desc_opening - first_valid = { - triggered_desc = { - trigger = { - exists = scope:child_pushed_dog - } - desc = murder_outcome.1205.desc_dog - } - triggered_desc = { - trigger = { - exists = scope:child_pushed_cat - } - desc = murder_outcome.1205.desc_cat - } - triggered_desc = { - trigger = { - exists = scope:child_pushed_toy - } - desc = murder_outcome.1205.desc_toy - } - desc = murder_outcome.1205.desc - } - desc = murder_outcome.1205.desc_ending - } - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:child_pushed - } - - immediate = { - murder_outcome_roll_setup_effect = yes - - hidden_effect = { #Something you can use to lure the child? - random_list = { - 25 = { - trigger = { - scope:target = { any_owned_story = { story_type = story_cycle_pet_dog } } - } - save_scope_value_as = { - name = child_pushed_dog - value = yes - } - } - 25 = { - trigger = { - scope:target = { any_owned_story = { story_type = story_cycle_pet_cat } } - } - save_scope_value_as = { - name = child_pushed_cat - value = yes - } - random = { - chance = 40 - save_scope_value_as = { - name = cat_survives - value = yes - } - } - } - 25 = { - trigger = { - scope:target = { has_variable = child_toy_variable } - } - save_scope_value_as = { - name = child_pushed_toy - value = yes - } - } - 1 = { } - } - } - } - - option = { - name = murder_outcome.1205.a - custom_tooltip = murder_child_really_tooltip - murder_outcome_roll_effect = yes - } - - option = { - name = murder_outcome.1201.b - ai_chance = { - base = 0 - } - custom_tooltip = do_not_execute_murder_tooltip - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - } -} - - -################################### -# PRISON MURDER SETUP 1301-1399 -################################### - -#Beat to death in their cell -murder_outcome.1301 = { - title = murder_outcome.1301.t - desc = murder_outcome.1301.desc - left_portrait = scope:target - theme = murder_scheme - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - #Will have been set by murder_outcome.0301 or a special setup event. - scope:murder_method = flag:beat_to_death_in_dungeon - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:scheme.scheme_target.imprisoner = { - save_scope_as = prison_owner - } - } - - option = { - name = murder_outcome.1301.a - murder_outcome_roll_effect = yes - stress_impact = { - arbitrary = minor_stress_impact_loss - compassionate = medium_stress_impact_gain - gregarious = minor_stress_impact_gain - just = medium_stress_impact_gain - } - } - - option = { - name = murder_outcome.1301.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = medium_stress_impact_gain - stubborn = minor_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - -#Unwelcome Guest in House Arrest -murder_outcome.1302 = { - title = murder_outcome.1302.t - desc = { - desc = murder_outcome.1302.desc - first_valid = { - triggered_desc = { - trigger = { exists = scope:target_home } - desc = murder_outcome.1302.home_court_exists - } - desc = murder_outcome.1302.home_court_does_not_exists - } - desc = murder_outcome.1302.end - } - left_portrait = scope:target - theme = murder_scheme - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - #Will have been set by murder_outcome.0301 or a special setup event. - scope:murder_method = flag:unwelcome_guest_house_arrest - } - - immediate = { - murder_outcome_roll_setup_effect = yes - scope:scheme.scheme_target.imprisoner = { - save_scope_as = prison_owner - } - random_dummy_gender_effect = yes - } - - option = { - name = murder_outcome.1302.a - murder_outcome_roll_effect = yes - stress_impact = { - arbitrary = minor_stress_impact_loss - compassionate = medium_stress_impact_gain - gregarious = minor_stress_impact_gain - just = medium_stress_impact_gain - } - } - - option = { - name = murder_outcome.1302.b - ai_chance = { - base = 0 - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - stress_impact = { - impatient = medium_stress_impact_gain - stubborn = minor_stress_impact_gain - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -############################## -# Various Special Murders -# 1401-1499 -############################## - -#Strangling Incapable -murder_outcome.1401 = { - title = murder_outcome.1401.t - desc = murder_outcome.1401.desc - theme = murder_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - #Will have been set by murder_outcome.0001 or a special setup event. - scope:murder_method = flag:strangle_incapable - } - - immediate = { - murder_outcome_roll_setup_effect = yes - } - - option = { - name = murder_outcome.1401.a - murder_outcome_roll_effect = yes - stress_impact = { - gluttonous = minor_stress_impact_gain - craven = minor_stress_impact_loss - paranoid = medium_stress_impact_gain - } - } - - option = { - name = murder_outcome.1401.b - ai_chance = { - base = 0 - } - stress_impact = { - impatient = medium_stress_impact_gain - } - scope:scheme = { - add_scheme_progress = decline_execution_setback - } - custom_tooltip = do_not_execute_murder_tooltip - } -} - - -##################################### -# SUCCESSFUL OUTCOME 2000 - 2999 -##################################### - - -######################## -# Target was already dead -# by Linnéa Thimrén -######################## - -murder_outcome.2000 = { - type = character_event - title = murder_outcome.2000.t - desc = murder_outcome.2000.desc - theme = murder_scheme - - left_portrait = scope:target - - trigger = { - scope:target = { is_alive = no } - } - - immediate = { - custom_tooltip = murder_outcome.2000.a.tt - } - - option = { - name = murder_outcome.2000.a - } -} - -######################## -# Target has moved far away -# by Bianca Savazzi -######################## - -murder_outcome.2500 = { - type = character_event - title = murder_outcome.2000.t - desc = murder_outcome.2500.desc - theme = murder_scheme - - left_portrait = scope:target - - trigger = { - scope:target = { - NOT = { in_diplomatic_range = scope:owner } - } - } - - option = { - name = murder_outcome.2500.a - } -} - - -######################## -# Hired an assassin -######################## -murder_outcome.2001 = { - type = character_event - title = murder_outcome.2001.t - - ### START DESC - desc = { - # Open with a statement celebrating success - # Remember to name the Target character - random_valid = { - desc = murder_outcome.2001.opening_1 - desc = murder_outcome.2001.opening_2 - desc = murder_outcome.2001.opening_3 - } - triggered_desc = { - # Additional comment if you're sadistic. - trigger = { - has_trait = sadistic - } - desc = murder_outcome.2001.heh - } - - triggered_desc = { - trigger = { - exists = scope:bad_memory - } - desc = murder_outcome.2001.memories - } - - triggered_desc = { - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - desc = murder_outcome.2001.house_feud - } - - first_valid = { - # If the Scheme Owner is known: - triggered_desc = { - trigger = { - exists = scope:scheme_discovered - } - desc = { - random_valid = { - desc = murder_outcome.2001.owner_is_known_1 - desc = murder_outcome.2001.owner_is_known_2 - # desc = # I am known 3 - } - } - } - desc = { - random_valid = { - desc = murder_outcome.2001.no_awareness_1 - desc = murder_outcome.2001.no_awareness_2 - # desc = # Nothing is known 3 - } - } - } - } - - ### END OF DESC - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = pain - } - - trigger = { - scope:murder_method = flag:hired_assassin - } - - immediate = { - murder_success_effect = yes - - random_memory = { - limit = { - has_memory_category = negative - has_memory_participant = scope:target - NOR = { # These read poorly - has_memory_type = became_rivals - has_memory_type = became_nemesis - } - } - - save_scope_as = bad_memory - } - successful_murder_outcome_event_option_effect = yes - } - - option = { - name = { - trigger = { - exists = scope:scheme_discovered - } - text = murder_outcome.2001.a.discovered - } - name = { - trigger = { - NOT = { exists = scope:scheme_discovered } - } - text = murder_outcome.2001.a - } - trigger = { - NOT = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - } - - option = { - name = murder_outcome.2001.b - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - - option = { - name = murder_outcome.2001.c - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - show_as_tooltip = { house_feud_end_modifier_effect = yes } - house_feud_end_story_effect = yes - } -} - - - - -########################## -# Hired a gang of thugs -########################## -murder_outcome.2002 = { - type = character_event - title = murder_outcome.2002.t - - ### START DESC - desc = { - # Open with a statement celebrating success - # Remember to name the Target character - random_valid = { - desc = murder_outcome.2002.opening_1 - desc = murder_outcome.2002.opening_2 - desc = murder_outcome.2002.opening_3 - } - triggered_desc = { - # Additional comment if you're sadistic. - trigger = { - has_trait = sadistic - } - desc = murder_outcome.2002.heh - } - - desc = murder_outcome.2002.no_save - - triggered_desc = { - trigger = { - exists = scope:bad_memory - } - desc = murder_outcome.2001.memories - } - - triggered_desc = { - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - desc = murder_outcome.2001.house_feud - } - - first_valid = { - # If the Scheme Owner is known: - triggered_desc = { - trigger = { - exists = scope:scheme_discovered - } - desc = { - random_valid = { - desc = murder_outcome.2002.owner_is_known_1 - desc = murder_outcome.2002.owner_is_known_2 - } - } - } - desc = { - random_valid = { - desc = murder_outcome.2002.no_awareness_1 - desc = murder_outcome.2002.no_awareness_2 - } - } - } - } - ### END OF DESC - - theme = murder_scheme - override_background = { - reference = terrain_scope - } - left_portrait = { - character = scope:target - animation = pain - } - - trigger = { - scope:murder_method = flag:hired_thugs - } - - immediate = { - scope:target.location = { save_scope_as = background_terrain_scope } - murder_success_effect = yes - - random_memory = { - limit = { - has_memory_category = negative - has_memory_participant = scope:target - NOR = { # These read poorly - has_memory_type = became_rivals - has_memory_type = became_nemesis - } - } - - save_scope_as = bad_memory - } - successful_murder_outcome_event_option_effect = yes - } - - option = { - name = { - trigger = { - exists = scope:scheme_discovered - } - text = murder_outcome.2002.a.discovered - } - name = { - trigger = { - NOT = { exists = scope:scheme_discovered } - NOR = { - has_trait = humble - has_trait = compassionate - has_trait = content - } - } - text = murder_outcome.2002.a - } - name = { - trigger = { - NOT = { exists = scope:scheme_discovered } - OR = { - has_trait = humble - has_trait = compassionate - has_trait = content - } - } - text = murder_outcome.2002.a.less_arrogant - } - trigger = { - NOT = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - } - - option = { - name = murder_outcome.2001.b - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - - option = { - name = murder_outcome.2001.c - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - show_as_tooltip = { house_feud_end_modifier_effect = yes } - house_feud_end_story_effect = yes - } -} - -###################### -# Poisoning -###################### -murder_outcome.2003 = { - type = character_event - title = murder_outcome.2003.t - ### START DESC - desc = { - # Open with a statement celebrating success - # Remember to name the Target character - random_valid = { - desc = murder_outcome.2003.opening_1 - desc = murder_outcome.2003.opening_2 - desc = murder_outcome.2003.opening_3 - } - triggered_desc = { - # Additional comment if you're sadistic. - trigger = { - has_trait = sadistic - } - desc = murder_outcome.2001.heh - } - - triggered_desc = { - trigger = { - exists = scope:bad_memory - } - desc = murder_outcome.2001.memories - } - - triggered_desc = { - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } +##################################### +# SUCCESSFUL OUTCOME 2000 - 2999 +##################################### - } - desc = murder_outcome.2001.house_feud - } - first_valid = { - # If the Scheme Owner is known: - triggered_desc = { - trigger = { - exists = scope:scheme_discovered - } - desc = { - random_valid = { - desc = murder_outcome.2003.owner_is_known_1 - desc = murder_outcome.2003.owner_is_known_2 - desc = murder_outcome.2003.owner_is_known_3 - } - } - } +######################## +# Target was already dead +# by Linnéa Thimrén +######################## - # If the Scheme Owner is not known: - desc = { - random_valid = { - desc = murder_outcome.2003.no_awareness_1 - desc = murder_outcome.2003.no_awareness_2 - } - } - } - } - ### END OF DESC +murder_outcome.2000 = { + type = character_event + title = murder_outcome.2000.t + desc = murder_outcome.2000.desc theme = murder_scheme - override_background = { - reference = feast - } - left_portrait = { - character = scope:target - animation = poison - - } + left_portrait = scope:target trigger = { - scope:murder_method = flag:used_poison + scope:target = { is_alive = no } } immediate = { - - random_memory = { - limit = { - has_memory_category = negative - has_memory_participant = scope:target - NOR = { # These read poorly - has_memory_type = became_rivals - has_memory_type = became_nemesis - } - } - - save_scope_as = bad_memory - } - - murder_success_effect = yes - add_character_flag = { - flag = murdered_by_poison - years = 5 - } - successful_murder_outcome_event_option_effect = yes - } - - option = { - name = { - trigger = { - exists = scope:scheme_discovered - } - text = murder_outcome.2003.a.discovered_1 - } - name = { - trigger = { - exists = scope:scheme_discovered - } - text = murder_outcome.2003.a.discovered_2 - } - name = { - trigger = { - NOT = { exists = scope:scheme_discovered } - } - text = murder_outcome.2003.a - } - trigger = { - NOT = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - } - - option = { - name = murder_outcome.2001.b - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } + custom_tooltip = murder_outcome.2000.a.tt } option = { - name = murder_outcome.2001.c - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - show_as_tooltip = { house_feud_end_modifier_effect = yes } - house_feud_end_story_effect = yes + name = murder_outcome.2000.a } } +######################## +# Target has moved far away +# by Bianca Savazzi +######################## -########################## -# Creepy-Crawly -######################### -murder_outcome.2004 = { +murder_outcome.2500 = { type = character_event - title = murder_outcome.1004.t - ### START DESC - desc = { - # Open with a statement celebrating success - # Remember to name the Target character - random_valid = { - desc = murder_outcome.2004.opening_1 - } - triggered_desc = { - # Additional comment if you're sadistic. - trigger = { - has_trait = sadistic - } - desc = murder_outcome.2001.heh - } - first_valid = { - # If the Scheme Owner is known: - triggered_desc = { - trigger = { - exists = scope:scheme_discovered - } - desc = { - random_valid = { - desc = murder_outcome.2004.owner_is_known_1 - } - } - } - # If the Scheme Owner is not known: - desc = { - first_valid = { - #triggered_desc = { - # trigger = { - # scope:venomous_creature = flag:beaked_mammal - # } - # desc = murder_outcome.2004.no_awareness_1_beaked_mammal - #} - # Warcraft - random_valid = { - desc = murder_outcome.2004.no_awareness_1 - } - } - } - } - - triggered_desc = { - trigger = { - exists = scope:bad_memory - } - desc = murder_outcome.2001.memories - } - - triggered_desc = { - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - desc = murder_outcome.2001.house_feud - } - } - - ### END OF DESC - + title = murder_outcome.2000.t + desc = murder_outcome.2500.desc theme = murder_scheme - left_portrait = { - character = scope:target - animation = pain - } - - trigger = { - scope:murder_method = flag:creepy_crawly - } - - immediate = { - random_memory = { - limit = { - has_memory_category = negative - has_memory_participant = scope:target - NOR = { # These read poorly - has_memory_type = became_rivals - has_memory_type = became_nemesis - } - } - - save_scope_as = bad_memory - } - murder_success_effect = yes - successful_murder_outcome_event_option_effect = yes - } - - option = { - name = { - trigger = { - exists = scope:scheme_discovered - } - text = murder_outcome.2004.a.discovered - } - name = { - trigger = { - NOT = { exists = scope:scheme_discovered } - } - text = murder_outcome.2004.a - } - trigger = { - NOT = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - } - } + left_portrait = scope:target - option = { - name = murder_outcome.2001.b - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } + trigger = { + scope:target = { + NOT = { in_diplomatic_range = scope:owner } } } option = { - name = murder_outcome.2001.c - trigger = { - existing_feud_against_target_trigger = { TARGET = scope:target } - } - show_as_tooltip = { house_feud_end_modifier_effect = yes } - house_feud_end_story_effect = yes + name = murder_outcome.2500.a } } -########################## -# Riled-up Mob +######################### +## Hired an assassin ######################### murder_outcome.2005 = { type = character_event diff --git a/events/scheme_events/murder_scheme/murder_saves/murder_save_events.txt b/events/scheme_events/murder_scheme/murder_saves/murder_save_events.txt deleted file mode 100644 index 1492d07715..0000000000 --- a/events/scheme_events/murder_scheme/murder_saves/murder_save_events.txt +++ /dev/null @@ -1,3135 +0,0 @@ -# Events for saving from a murder attempt - -namespace = murder_save - -#Events: -# 0001 - Target saved from an assassin by a protective lover -# 0002 - Lover dies to a venomous creature instead of target -# 0003 - Target's Mindbreak character sacrifices themselves to stop an assassin -# 0004 - Target's warhorse saves them from hired thugs -# 0005 - Prison Pet saves target's life -# 0006 - Personal Guard saves target from Hired Thugs -# 0007 - Saved from creepy crawlies by cat -# 0008 - Saved from assassin by dog -# 0010 - Family Connections (Murder Save) -# 0011 - Saved from poisoned food by cat -# 0012 - Saved from poisoned food by dog -# 0013 - Gluttonous trait saved you -# 0014 - Language saved you -# 0015 - Artifact saved you - - -############################# -# Execution Events 0000 - 0999 -############################# - -############################# -# Saved from Assassin by Lover -# by Petter Vilberg -############################# -scripted_trigger murder_save_0001_lover_trigger = { - is_landed = no - is_ruler = no - is_available_ai_adult = yes - is_alive = yes -} - -#For scheme owner -murder_save.0001 = { - type = character_event - title = murder_save.0001.t - desc = { - desc = murder_save.0001.opening - triggered_desc = { - trigger = { - OR = { - is_close_or_extended_family_of = scope:lover - is_consort_of = scope:lover - is_employer_of = scope:lover - has_any_scripted_relation = scope:lover - } - } - desc = murder_save.0001.rel_to_me - } - desc = murder_save.0001.end - } - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = grief - } - right_portrait = { - character = scope:lover - animation = pain - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_assassin - scope:target = { - any_relation = { - type = lover - murder_save_0001_lover_trigger = yes - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - scope:target = { - any_relation = { - type = lover - murder_save_0001_lover_trigger = yes - OR = { - has_opinion_modifier = { - target = root - modifier = love_opinion - } - has_relation_soulmate = root - } - } - } - } - # Mortal Adoration Perk: - mortal_adoration_murder_save_modifier = yes - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:lover_stopped_assassin - } - scope:target = { - random_relation = { - type = lover - limit = { - murder_save_0001_lover_trigger = yes - } - weight = { - base = 1 - modifier = { - add = 5 - OR = { - has_opinion_modifier = { - target = root - modifier = love_opinion - } - has_relation_soulmate = root - } - } - } - save_scope_as = lover - } - } - random_dummy_gender_assassin_effect = yes - murder_failure_effect = yes # Fires the response for the target - - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - show_as_tooltip = { - if = { - limit = { - exists = scope:scheme_discovered - } - known_murder_effect = { - VICTIM = scope:lover - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:lover - MURDERER = root - REASON = death_duel - } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from Venomous Creature by Lover -# by Petter Vilberg -############################# -scripted_trigger murder_save_0002_lover_trigger = { - is_landed = no - is_ruler = no - is_available_ai_adult = yes -} -murder_save.0002 = { - type = character_event - title = murder_save.0002.t - desc = { - desc = murder_save.0002.opening - triggered_desc = { - trigger = { - OR = { - is_close_or_extended_family_of = scope:lover - is_consort_of = scope:lover - is_employer_of = scope:lover - has_any_scripted_relation = scope:lover - } - } - desc = murder_save.0002.rel_to_me - } - desc = murder_save.0002.end - } - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = grief - } - right_portrait = { - character = scope:lover - animation = pain - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:creepy_crawly - scope:target = { - any_relation = { - type = lover - murder_save_0002_lover_trigger = yes - } - } - } - - weight_multiplier = { - base = 1 - modifier = { - add = 1 - scope:target = { - any_relation = { - type = lover - murder_save_0002_lover_trigger = yes - has_opinion_modifier = { - target = root - modifier = love_opinion - } - } - } - } - # Mortal Adoration Perk: - mortal_adoration_murder_save_modifier = yes - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:lover_stopped_creepy_crawly - } - scope:target = { - random_relation = { - type = lover - limit = { - murder_save_0002_lover_trigger = yes - } - weight = { - base = 1 - modifier = { - add = 5 - has_opinion_modifier = { - target = root - modifier = love_opinion - } - } - } - save_scope_as = lover - } - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - show_as_tooltip = { - if = { - limit = { - exists = scope:scheme_discovered - } - known_murder_effect = { - VICTIM = scope:lover - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:lover - MURDERER = root - REASON = death_duel - } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from Assassin by Mindbreak character -# by Petter Vilberg -############################# -murder_save.0003 = { - type = character_event - title = murder_save.0003.t - desc = murder_save.0003.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = grief - } - right_portrait = { - character = scope:broken_person - animation = pain - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_assassin - scope:target = { - has_variable = mind_broken_victim - var:mind_broken_victim = { - is_alive = yes - NOT = { is_incapable_trigger = yes } - } - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - scope:target.var:mind_broken_victim = { - save_scope_as = broken_person - } - save_scope_value_as = { - name = murder_saved - value = flag:broken_person_stopped_assassin - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0003.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0003.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - show_as_tooltip = { - if = { - limit = { - exists = scope:scheme_discovered - } - known_murder_effect = { - VICTIM = scope:broken_person - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:broken_person - MURDERER = root - REASON = death_duel - } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from Thugs by War Horse -# by Petter Vilberg -############################# -murder_save.0004 = { - type = character_event - title = murder_save.0004.t - desc = murder_save.0004.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_thugs - scope:target = { - owns_story_of_type = story_cycle_martial_lifestyle_warhorse - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:warhorse_stops_thugs - } - random = { - chance = 30 - save_scope_value_as = { - name = warhorse_survives - value = yes - } - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - if = { - limit = { - NOT = { exists = scope:warhorse_survives } - } - custom_tooltip = murder_save_failure_warhorse_tt - show_as_tooltip = { - scope:target = { - remove_horse_story_modifiers_effect = yes - } - } - scope:target = { - random_owned_story = { - limit = { story_type = story_cycle_martial_lifestyle_warhorse } - hidden_effect = { end_story = yes } - } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from Being Beaten to Death by Prison Pet -# by Petter Vilberg -############################# -murder_save.0005 = { - type = character_event - title = murder_save.0005.t - desc = murder_save.0005.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = grief - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:beat_to_death_in_dungeon - scope:target = { - has_variable = prison_pet_variable - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:prison_pet_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - - -############################# -# Saved from Thugs by Personal Guard -# by Petter Vilberg -############################# -murder_save.0006 = { - type = character_event - title = murder_save.0006.t - desc = { - desc = murder_save.0006.opening - first_valid = { - triggered_desc = { - trigger = { - scope:target = { - is_married = yes - } - } - desc = murder_save.0006.spouse - } - desc = murder_save.0006.no_spouse - } - desc = murder_save.0006.end - } - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = fear - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_thugs - scope:target = { - has_character_modifier = spouse_martial_personal_guard_modifier - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:spouse_personal_guard - } - if = { - limit = { - scope:target = { - is_married = yes - } - } - random_spouse = { - weight = { - base = 1 - compare_modifier = { - value = martial - } - } - save_scope_as = spouse - } - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from creepy crawlies by cat -# by Linnéa Thimrén -############################# -murder_save.0007 = { - type = character_event - title = murder_save.0007.t - desc = murder_save.0007.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:creepy_crawly - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_cat - } - } - } - - immediate = { - random = { - chance = 70 - save_scope_value_as = { - name = cat_survives - value = yes - } - } - save_scope_value_as = { - name = murder_saved - value = flag:cat_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - if = { - limit = { - NOT = { exists = scope:cat_survives } - } - custom_tooltip = murder_save_failure_cat_tt - show_as_tooltip = { - scope:target = { - remove_cat_story_modifiers_effect = yes - } - } - scope:target = { - random_owned_story = { - limit = { story_type = story_cycle_pet_cat } - hidden_effect = { end_story = yes } - } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - -############################# -# Saved from assassin by dog -# by Linnéa Thimrén -############################# -murder_save.0008 = { - type = character_event - title = murder_save.0008.t - desc = murder_save.0008.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_assassin - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_dog - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:dog_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - -########################### -# Family Connections (Murder Save) -# by Petter Vilberg -########################### -murder_save.0009 = { - type = character_event - title = murder_save.0009.t - desc = murder_save.0009.desc - theme = murder_scheme - left_portrait = { - character = scope:target - animation = scheme - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:target = { - exists = dynasty - dynasty = { - has_dynasty_perk = guile_legacy_5 - } - NOT = { has_character_flag = guile_legacy_5_save_used } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:guile_legacy_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0009.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0009.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - custom_tooltip = murder_save.targets_guile_legacy_save_used_up - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from Assassin by Varangian Guard -# by Petter Vilberg -############################# -scripted_trigger murder_save_0010_varangian_trigger = { - always = no - #has_character_flag = is_currently_varangian - #court_owner = scope:target # To block the actual liege of the Varangian character - #is_landed = no - #is_ruler = no - #is_available_ai_adult = yes - #is_alive = yes -} - -#For scheme owner -murder_save.0010 = { - type = character_event - title = murder_save.0010.t - desc = { - desc = murder_save.0010.desc - triggered_desc = { - trigger = { exists = local_var:varangian_dies } - desc = murder_save.0010.varangian_dies - } - } - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - right_portrait = { - character = scope:varangian - animation = pain - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_assassin - scope:target = { - any_courtier_or_guest = { - murder_save_0010_varangian_trigger = yes - } - } - } - - weight_multiplier = { - base = 1 - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:varangian_stopped_assassin - } - scope:target = { - random_courtier_or_guest = { - limit = { - murder_save_0010_varangian_trigger = yes - } - weight = { - base = 1 - compare_modifier = { - value = ai_boldness - multiplier = 0.01 - min = 0 - } - opinion_modifier = { - opinion_target = scope:target - multiplier = 0.01 - min = 0 - } - } - save_scope_as = varangian - } - } - hidden_effect = { - random = { - chance = { - value = 30 - subtract = scope:varangian.prowess - } - set_local_variable = { - name = varangian_dies - value = yes - } - } - } - if = { - limit = { exists = local_var:varangian_dies } - show_as_tooltip = { - if = { - limit = { - exists = scope:scheme_discovered - } - known_murder_effect = { - VICTIM = scope:varangian - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:varangian - MURDERER = root - REASON = death_duel - } - } - } - } - random_dummy_gender_assassin_effect = yes - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0010.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0010.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from poisoned food by cat -# by Linnéa Thimrén -############################# -murder_save.0011 = { - type = character_event - title = murder_save.0011.t - desc = murder_save.0011.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:used_poison - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_cat - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:cat_poison_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - custom_tooltip = murder_save_poison_cat_tt - show_as_tooltip = { - scope:target = { - remove_cat_story_modifiers_effect = yes - } - } - scope:target = { - random_owned_story = { - limit = { story_type = story_cycle_pet_cat } - hidden_effect = { end_story = yes } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -############################# -# Saved from poisoned food by dog -# by Linnéa Thimrén -############################# -murder_save.0012 = { - type = character_event - title = murder_save.0012.t - desc = murder_save.0012.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:used_poison - scope:target = { - any_owned_story = { - story_type = story_cycle_pet_dog - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:dog_poison_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - custom_tooltip = murder_save_poison_dog_tt - show_as_tooltip = { - scope:target = { - remove_dog_story_modifiers_effect = yes - } - } - scope:target = { - random_owned_story = { - limit = { story_type = story_cycle_pet_dog } - hidden_effect = { end_story = yes } - } - } - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - -############################# -# Saved from poisoned food by Gluttonous trait -# by Maxence Voleau -############################# -murder_save.0013 = { - type = character_event - title = murder_save.0013.t - desc = murder_save.0013.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:used_poison - scope:target = { - has_trait = gluttonous - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:gluttonous_instinct - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - -############################# -# Saved from assassin by LINGUISTICS -# by Daniel Moore -############################# -murder_save.0014 = { - type = character_event - title = murder_save.0014.t - desc = murder_save.0014.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:murder_method = flag:hired_assassin - scope:target = { - knows_language_of_culture = scope:owner.culture - NOT = { - scope:target.culture = { - has_same_culture_language = scope:owner.culture - } - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:language_save - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - } - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - -############################# -# Saved from assassin by artifact -# by Daniel Moore -############################# -murder_save.0015 = { - type = character_event - title = murder_save.0015.t - desc = murder_save.0015.desc - - theme = murder_scheme - left_portrait = { - character = scope:target - animation = shock - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - artifact = { - target = scope:this_artifact - position = lower_center_portrait - } - - trigger = { - exists = scope:murder_method - scope:murder_method = flag:hired_assassin - scope:target = { - is_available_healthy_adult = yes - has_any_artifact = yes - any_character_artifact = { - NOT = { - has_variable = saved_from_assassination - } - } - } - } - - immediate = { - save_scope_value_as = { - name = murder_saved - value = flag:artifact_save - } - - scope:target = { - random_character_artifact = { - limit = { - NOT = { - has_variable = saved_from_assassination - } - } - save_scope_as = this_artifact - } - } - scope:this_artifact = { - # Warcraft - if = { - limit = { artifact_can_be_damaged_trigger = yes } - add_durability = { - value = scope:this_artifact.artifact_durability - multiply = -0.25 - } - } - - set_variable = saved_from_assassination - } - murder_failure_effect = yes # Fires the response for the target - } - - option = { - name = murder_save.0001.a - if = { - limit = { exists = scope:scheme_discovered} - add_dread = medium_dread_gain - } - scope:scheme = { - end_scheme = yes - } - - ai_chance = { - base = 100 - } - } - - option = { - name = murder_save.0001.b - show_as_tooltip = { - if = { - limit = { exists = scope:scheme_discovered } - add_dread = medium_dread_gain - } - start_scheme = { - type = murder - target = scope:target - } - } - hidden_effect = { - save_scope_value_as = { - name = restart_scheme - value = yes - } - } - ai_chance = { - base = 0 - } - } - - after = { - hidden_effect = { - trigger_event = murder_outcome.9999 - } - } -} - - -##################################### -# Victim Events -# 1000 - 1999 -##################################### - -#Lover dies to an assassin for you -murder_save.1001 = { - type = character_event - title = murder_save.0001.t - desc = murder_save.1001.desc - left_portrait = { - character = root - animation = grief - } - right_portrait = { - character = scope:lover - animation = pain - } - lower_left_portrait = scope:owner_revealed - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:lover_stopped_assassin - } - - immediate = { - set_variable = { - name = block_death_event_from - value = scope:lover - days = 3 - } - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - known_murder_effect = { - VICTIM = scope:lover - MURDERER = scope:owner - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:lover - MURDERER = scope:owner - REASON = death_duel - } - } - # Warcraft - # add_achievement_flag_effect = { FLAG = achievement_the_things_love_does_for_us_flag } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - option = { #Who could do such a thing? - name = murder_save.1001.c - trigger = { - NOT = { exists = scope:scheme_discovered } - OR = { - has_trait = callous - has_trait = sadistic - } - } - exclusive = yes - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Lover dies to a venomous creature -murder_save.1002 = { - type = character_event - title = murder_save.0002.t - desc = murder_save.1002.desc - left_portrait = { - character = root - animation = grief - } - right_portrait = { - character = scope:lover - animation = pain - } - lower_left_portrait = scope:owner_revealed - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:lover_stopped_creepy_crawly - } - - immediate = { - set_variable = { - name = block_death_event_from - value = scope:lover - days = 3 - } - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = murder_revealed - } - known_murder_effect = { - VICTIM = scope:lover - MURDERER = scope:owner - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:lover - MURDERER = scope:owner - REASON = death_poison - } - } - # Warcraft - # add_achievement_flag_effect = { FLAG = achievement_the_things_love_does_for_us_flag } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Mind broken character sacrifices themselves for it -murder_save.1003 = { - type = character_event - title = murder_save.0003.t - desc = murder_save.1003.desc - left_portrait = { - character = root - animation = shock - } - right_portrait = { - character = scope:broken_person - animation = pain - } - lower_left_portrait = scope:owner_revealed - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:broken_person_stopped_assassin - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - known_murder_effect = { - VICTIM = scope:broken_person - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:broken_person - MURDERER = root - REASON = death_duel - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1003.a - trigger = { - NOT = { exists = scope:scheme_discovered } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1003.a - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Warhorse saves you from thugs -murder_save.1004 = { - type = character_event - title = murder_save.0004.t - desc = { - desc = murder_save.1004.opening - triggered_desc = { - trigger = { NOT = { exists = scope:warhorse_survives } } - desc = murder_save.1004.warhorse_dies - } - } - left_portrait = { - character = root - animation = shock - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:warhorse_stops_thugs - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1004.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - exists = scope:warhorse_survives - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1004.b - trigger = { - exists = scope:scheme_discovered - exists = scope:warhorse_survives - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - option = { #Who could do such a thing? - name = murder_save.1004.c - trigger = { - NOT = { - exists = scope:scheme_discovered - } - NOT = { exists = scope:warhorse_survives } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1004.d - trigger = { - exists = scope:scheme_discovered - NOT = { exists = scope:warhorse_survives } - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - if = { - limit = { - NOT = { exists = scope:warhorse_survives } - } - custom_tooltip = murder_save_warhorse_dies_to_thugs - show_as_tooltip = { - remove_horse_story_modifiers_effect = yes - } - hidden_effect = { - if = { - limit = { - owns_story_of_type = story_cycle_martial_lifestyle_warhorse - } - random_owned_story = { - limit = { - story_type = story_cycle_martial_lifestyle_warhorse - } - end_story = yes - } - } - } - } - } -} - -#Prison Pet saves you -murder_save.1005 = { - type = character_event - title = murder_save.0005.t - desc = murder_save.1005.desc - left_portrait = { - character = root - animation = grief - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:prison_pet_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - random = { - chance = 50 - save_scope_value_as = { - name = prison_pet_survives - value = yes - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1005.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - exists = scope:prison_pet_survives - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1005.a - trigger = { - exists = scope:scheme_discovered - exists = scope:prison_pet_survives - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - option = { #Who could do such a thing? - name = murder_save.1005.b - trigger = { - NOT = { - exists = scope:scheme_discovered - } - NOT = { exists = scope:prison_pet_survives } - } - prison_pet_death_effect = yes - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1005.b - trigger = { - exists = scope:scheme_discovered - NOT = { exists = scope:prison_pet_survives } - } - prison_pet_death_effect = yes - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - - -#Personal Guard saves you -murder_save.1006 = { - type = character_event - title = murder_save.0006.t - desc = { - desc = murder_save.1006.opening - first_valid = { - triggered_desc = { - trigger = { - exists = scope:spouse - } - desc = murder_save.1006.spouse - } - desc = murder_save.1006.no_spouse - } - desc = murder_save.1006.end - } - left_portrait = { - character = root - animation = shock - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:spouse_personal_guard - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - if = { - limit = { - is_married = yes - } - random_spouse = { - weight = { - base = 1 - compare_modifier = { - value = martial - } - } - save_scope_as = spouse - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Cat saves you -murder_save.1007 = { - type = character_event - title = murder_save.0007.t - desc = { - desc = murder_save.1007.opening - triggered_desc = { - trigger = { NOT = { exists = scope:cat_survives } } - desc = murder_save.1007.cat_dies - } - } - left_portrait = { - character = root - triggered_animation = { - trigger = { NOT = { exists = scope:cat_survives } } - animation = grief - } - triggered_animation = { - trigger = { always = yes } - animation = shock - } - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:cat_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1007.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - exists = scope:cat_survives - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1007.b - trigger = { - exists = scope:scheme_discovered - exists = scope:cat_survives - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - option = { #Who could do such a thing? - name = murder_save.1007.c - trigger = { - NOT = { - exists = scope:scheme_discovered - } - NOT = { exists = scope:cat_survives } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1007.d - trigger = { - exists = scope:scheme_discovered - NOT = { exists = scope:cat_survives } - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - if = { - limit = { - NOT = { exists = scope:cat_survives } - } - custom_tooltip = murder_save_creepy_crawlies_cat_dies - show_as_tooltip = { - remove_cat_story_modifiers_effect = yes - } - hidden_effect = { - if = { - limit = { - owns_story_of_type = story_cycle_pet_cat - } - random_owned_story = { - limit = { - story_type = story_cycle_pet_cat - } - end_story = yes - } - } - } - } - } -} - -#Dog saves you -murder_save.1008 = { - type = character_event - title = murder_save.0008.t - desc = murder_save.1008.desc - left_portrait = { - character = root - animation = shock - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:dog_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1008.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Guile Legacy saves you -murder_save.1009 = { - type = character_event - title = murder_save.0009.t - desc = { - desc = murder_save.1009.opening - first_valid = { - triggered_desc = { - trigger = { exists = scope:scheme_discovered } - desc = murder_save.1009.owner_discovered - } - desc = murder_save.1009.owner_not_discovered - } - desc = murder_save.1009.end - } - theme = intrigue - left_portrait = { - character = root - animation = scheme - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:guile_legacy_save - } - - immediate = { - add_character_flag = guile_legacy_5_save_used - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1009.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - custom_tooltip = murder_save.used_up_guile_legacy_5_save - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - custom_tooltip = murder_save.used_up_guile_legacy_5_save - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - #To give players a notification if this character was important - hidden_effect = { - if = { - limit = { - dynasty = { - any_dynasty_member = { - is_ai = no - OR = { - any_vassal = { - this = scope:target - } - any_close_family_member = { - this = scope:target - } - any_consort = { - this = scope:target - } - } - } - } - } - dynasty = { - random_dynasty_member = { - limit = { - is_ai = no - OR = { - any_vassal = { - this = scope:target - } - any_close_family_member = { - this = scope:target - } - any_consort = { - this = scope:target - } - } - } - send_interface_message = { - type = event_spymaster_task_good - title = murder_save.dynasty_member_used_guile_legacy_5_save - desc = murder_save.dynasty_member_used_guile_legacy_5_save_desc - - left_icon = scope:target - - } - } - } - } - } - } -} - -#Varangian saves you from an assassin -murder_save.1010 = { - type = character_event - title = murder_save.0010.t - desc = { - desc = murder_save.1010.desc - triggered_desc = { - trigger = { exists = local_var:varangian_dies } - desc = murder_save.1010.varangian_dies - } - triggered_desc = { - trigger = { exists = scope:scheme_discovered } - desc = murder_save.1010.owner_discovered - } - } - left_portrait = { - character = scope:varangian - animation = pain - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = murder_scheme - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:varangian_stopped_assassin - scope:target = { - NOT = { has_character_flag = recently_saved_by_varangian } - } - } - - immediate = { - add_character_flag = { - flag = recently_saved_by_varangian - years = 10 - } - # Handle the death of the Varangian if necessary - if = { - limit = { exists = local_var:varangian_dies } - save_scope_as = emperor - - # Warcraft - # scope:varangian.liege = { - # trigger_event = { - # id = varangian.3001 - # days = 1 - # } - # } - - if = { - limit = { - exists = scope:scheme_discovered - } - known_murder_effect = { - VICTIM = scope:varangian - MURDERER = root - EXPOSER = scope:target - } - } - else = { - unknown_murder_effect = { - VICTIM = scope:varangian - MURDERER = root - REASON = death_duel - } - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1010.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1010.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Cat saves you from poison -murder_save.1011 = { - type = character_event - title = murder_save.0011.t - desc = murder_save.1011.desc - left_portrait = { - character = root - animation = grief - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:cat_poison_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - custom_tooltip = murder_save_poison_cat_dies - show_as_tooltip = { - remove_cat_story_modifiers_effect = yes - } - hidden_effect = { - if = { - limit = { - owns_story_of_type = story_cycle_pet_cat - } - random_owned_story = { - limit = { - story_type = story_cycle_pet_cat - } - end_story = yes - } - } - } - } -} - -#Dog saves you from poison -murder_save.1012 = { - type = character_event - title = murder_save.0012.t - desc = murder_save.1012.desc - left_portrait = { - character = root - animation = grief - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:dog_poison_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - custom_tooltip = murder_save_poison_dog_dies - show_as_tooltip = { - remove_dog_story_modifiers_effect = yes - } - hidden_effect = { - if = { - limit = { - owns_story_of_type = story_cycle_pet_dog - } - random_owned_story = { - limit = { - story_type = story_cycle_pet_dog - } - end_story = yes - } - } - } - } -} - -#Gluttonous trait saved you -murder_save.1013 = { - type = character_event - title = murder_save.0013.t - desc = murder_save.1013.desc - left_portrait = { - character = root - animation = anger - } - right_portrait = { - character = scope:owner_revealed - animation = anger - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:gluttonous_instinct - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Language saved you -murder_save.1014 = { - type = character_event - title = murder_save.0014.t - desc = murder_save.1014.desc - left_portrait = { - character = root - animation = anger - } - right_portrait = { - character = scope:owner_revealed - animation = rage - } - theme = intrigue - - trigger = { - exists = scope:murder_saved - scope:murder_saved = flag:language_save - } - - immediate = { - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1014.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - } -} - -#Artifact saved you -murder_save.1015 = { - type = character_event - title = murder_save.0015.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:this_artifact = { - OR = { - artifact_type = tapestry - artifact_type = animal_hide - artifact_type = animal_hide_big - artifact_type = necklace - artifact_type = wall_big - #has_variable = christian_loincloth - #has_variable = christian_girdle - } - - } - } - desc = murder_save.1015.strangling_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - OR = { - artifact_type = brooch - artifact_type = philosophers_stone - #has_variable = christian_veil - #has_variable = buddhism_tongue - } - } - } - desc = murder_save.1015.small_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - artifact_type = throne - } - } - desc = murder_save.1015.throne_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - artifact_type = throne_special - } - } - desc = murder_save.1015.throne_special_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - OR = { - artifact_type = sculpture - artifact_type = cabinet - } - } - } - desc = murder_save.1015.sculpture_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - artifact_type = chest - } - } - desc = murder_save.1015.chest_artifact.desc - } - triggered_desc = { - trigger = { - scope:this_artifact = { - artifact_slot_type = primary_armament - } - } - desc = murder_save.1015.actual_weapon_artifact.desc - } - triggered_desc = { - desc = murder_save.1015.blunt_artifact.desc - } - } - } - theme = intrigue - left_portrait = { - character = root - animation = anger - } - right_portrait = { - character = scope:attempted_assassin - animation = loss_1 - } - artifact = { - target = scope:this_artifact - position = lower_center_portrait - } - - trigger = { - OR = { - exists = root.capital_province - exists = root.location.barony # In case the character is at sea - } - exists = scope:murder_saved - scope:murder_saved = flag:artifact_save - } - - immediate = { - ROOT = { - save_scope_as = target - } - scope:this_artifact = { - set_variable = saved_from_assassination - } - - if = { - limit = { - exists = capital_province - } - capital_province = { - save_scope_as = home_province - } - } - else = { - location = { - save_scope_as = home_province - } - } - - if = { - limit = { - any_pool_guest = { - has_no_particular_noble_roots_trigger = yes - is_available_ai_adult = yes - } - } - - random_pool_guest = { - limit = { - has_no_particular_noble_roots_trigger = yes - is_available_ai_adult = yes - } - save_scope_as = attempted_assassin - } - } - else = { - create_character = { - gender_female_chance = 50 - location = scope:home_province - template_character = scope:target - save_scope_as = attempted_assassin - } - } - - scope:attempted_assassin = { - hidden_effect = { - # Warcraft - trigger_race_giving_no_gene_effect = yes #Assigns race trait - add_trait = peasant_leader - if = { - limit = { - NOT = { - has_trait = wounded_2 - } - } - increase_wounds_effect = { REASON = fight } - } - - if = { - limit = { - NOT = { - has_trait = wounded_2 - } - } - increase_wounds_effect = { REASON = fight } - } - } - } - if = { - limit = { - exists = scope:scheme_discovered - } - scope:owner = { - save_scope_as = owner_revealed - } - } - } - - option = { #Who could do such a thing? - name = murder_save.1001.a - trigger = { - NOT = { - exists = scope:scheme_discovered - } - } - scope:this_artifact = { - # Warcraft - if = { - limit = { artifact_can_be_damaged_trigger = yes } - add_durability = { - value = scope:this_artifact.artifact_durability - multiply = -0.25 - } - } - } - custom_tooltip = murder_save.failure_unknown_owner_tt - } - - option = { #Vengeance! - name = murder_save.1001.b - trigger = { - exists = scope:scheme_discovered - } - scope:this_artifact = { - # Warcraft - if = { - limit = { artifact_can_be_damaged_trigger = yes } - add_durability = { - value = scope:this_artifact.artifact_durability - multiply = -0.25 - } - } - } - custom_tooltip = murder_save.failure_known_owner_tt - } - - after = { - add_character_modifier = { - modifier = watchful_modifier - days = watchful_modifier_duration - } - scope:attempted_assassin = { - # Warcraft - override_death_killer_artifact_effect = { death_reason = death_murder killer = scope:target artifact = scope:this_artifact } - } - - if = { - limit = { - scope:target = { - highest_held_title_tier >= tier_kingdom - } - } - scope:this_artifact = { - if = { - limit = { - OR = { - artifact_type = tapestry - artifact_type = animal_hide - artifact_type = animal_hide_big - artifact_type = wall_big - } - } - set_artifact_description = new_artifact_loc_banner - } - else = { - set_artifact_description = new_artifact_loc - } - } - } - } -} - -#Murder succeeds -murder_save.9999 = { - type = character_event - hidden = yes - - trigger = { exists = scope:scheme } - - immediate = { - trigger_event = { - on_action = murder_succeeded - } - } -} diff --git a/events/scheme_events/murder_scheme/murder_scheme_maintenance_events.txt b/events/scheme_events/murder_scheme/murder_scheme_maintenance_events.txt index 48de613708..f3ab5d9071 100644 --- a/events/scheme_events/murder_scheme/murder_scheme_maintenance_events.txt +++ b/events/scheme_events/murder_scheme/murder_scheme_maintenance_events.txt @@ -33,7 +33,7 @@ murder_scheme_maintenance.1 = { list = murder_targets root = { can_start_scheme = { - target = prev + target_character = prev type = murder } } @@ -67,7 +67,7 @@ murder_scheme_maintenance.1 = { limit = { root = { can_start_scheme = { - target = prev + target_character = prev type = murder } } @@ -219,6 +219,21 @@ murder_scheme_maintenance.1 = { # } #} #Scope:target has caused internal strife in the realm + modifier = { + add = strife_opinion + save_temporary_scope_as = the_murder_target + + exists = liege + exists = root.liege + liege = root.liege + strife_opinion >= strife_harm_threshold_value + root = { + opinion = { + target = scope:the_murder_target + value < 0 + } + } + } character_hates_scope_due_to_strife_modifier = { TARGET = this } modifier = { # Family Feud add = 50 @@ -379,7 +394,7 @@ murder_scheme_maintenance.1 = { root = { start_scheme = { type = murder - target = prev + target_character = prev } } } diff --git a/events/scheme_events/seduce_scheme/seduce_ongoing_events.txt b/events/scheme_events/seduce_scheme/seduce_ongoing_events.txt index 4330054d4d..20bd735ba4 100644 --- a/events/scheme_events/seduce_scheme/seduce_ongoing_events.txt +++ b/events/scheme_events/seduce_scheme/seduce_ongoing_events.txt @@ -136,7 +136,14 @@ seduce_ongoing.1101 = { desc = seduce_ongoing.1101.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = scope:owner + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = boredom + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -286,7 +293,14 @@ seduce_ongoing.1201 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -297,10 +311,7 @@ seduce_ongoing.1201 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1401 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1401 } } } @@ -315,7 +326,14 @@ seduce_ongoing.1301 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -323,10 +341,7 @@ seduce_ongoing.1301 = { name = seduce_ongoing.target_unsuccessful.option add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1501 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1501 } } } @@ -389,7 +404,18 @@ seduce_ongoing.1202 = { desc = seduce_ongoing.successful.target } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } + lower_left_portrait = { + trigger = { exists = scope:courtier } + character = scope:courtier + } trigger = { exists = scope:scheme @@ -459,10 +485,7 @@ seduce_ongoing.1202 = { } } scope:owner = { - trigger_event = { - id = seduce_ongoing.1402 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1402 } } } @@ -477,7 +500,14 @@ seduce_ongoing.1302 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -485,10 +515,7 @@ seduce_ongoing.1302 = { name = seduce_ongoing.1302.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1502 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1502 } } } @@ -542,7 +569,14 @@ seduce_ongoing.1203 = { desc = seduce_ongoing.successful.target } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -554,10 +588,7 @@ seduce_ongoing.1203 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1403 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1403 } } } @@ -571,7 +602,14 @@ seduce_ongoing.1303 = { desc = seduce_ongoing.unsuccessful.target } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -579,10 +617,7 @@ seduce_ongoing.1303 = { name = seduce_ongoing.1303.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1503 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1503 } } } @@ -683,7 +718,14 @@ seduce_ongoing.1102 = { type = character_event title = seduce_ongoing.1102.t desc = seduce_ongoing.1102.desc - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = boredom + } theme = seduce_scheme trigger = { @@ -830,7 +872,14 @@ seduce_ongoing.1205 = { desc = seduce_ongoing.1205.desc desc = seduce_ongoing.successful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -842,10 +891,7 @@ seduce_ongoing.1205 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1405 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1405 } } } @@ -860,7 +906,14 @@ seduce_ongoing.1305 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -868,10 +921,7 @@ seduce_ongoing.1305 = { name = seduce_ongoing.1305.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1505 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1505 } } } @@ -924,7 +974,14 @@ seduce_ongoing.1206 = { desc = seduce_ongoing.1206.desc desc = seduce_ongoing.successful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -937,10 +994,7 @@ seduce_ongoing.1206 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1406 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1406 } } } @@ -953,7 +1007,14 @@ seduce_ongoing.1306 = { desc = seduce_ongoing.1306.desc desc = seduce_ongoing.unsuccessful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -962,10 +1023,7 @@ seduce_ongoing.1306 = { name = seduce_ongoing.target_unsuccessful.option add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1506 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1506 } } } @@ -1017,7 +1075,14 @@ seduce_ongoing.1207 = { desc = seduce_ongoing.1207.desc desc = seduce_ongoing.successful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -1030,10 +1095,7 @@ seduce_ongoing.1207 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1407 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1407 } } } @@ -1046,7 +1108,14 @@ seduce_ongoing.1307 = { desc = seduce_ongoing.1307.desc desc = seduce_ongoing.unsuccessful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -1055,10 +1124,7 @@ seduce_ongoing.1307 = { name = seduce_ongoing.1307.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1507 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1507 } } } @@ -1155,7 +1221,14 @@ seduce_ongoing.1103 = { type = character_event title = seduce_ongoing.1103.t desc = seduce_ongoing.1103.desc - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = boredom + } theme = seduce_scheme trigger = { @@ -1309,7 +1382,14 @@ seduce_ongoing.1209 = { desc = seduce_ongoing.1209.desc desc = seduce_ongoing.successful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -1322,10 +1402,7 @@ seduce_ongoing.1209 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1409 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1409 } } } @@ -1338,7 +1415,14 @@ seduce_ongoing.1309 = { desc = seduce_ongoing.1309.desc desc = seduce_ongoing.unsuccessful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -1347,10 +1431,7 @@ seduce_ongoing.1309 = { name = seduce_ongoing.1309.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1509 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1509 } } } @@ -1403,7 +1484,14 @@ seduce_ongoing.1210 = { desc = seduce_ongoing.1210.desc desc = seduce_ongoing.successful.target } - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -1416,10 +1504,7 @@ seduce_ongoing.1210 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1410 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1410 } } @@ -1436,7 +1521,14 @@ seduce_ongoing.1310 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -1444,10 +1536,7 @@ seduce_ongoing.1310 = { name = seduce_ongoing.1310.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1510 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1510 } } } @@ -1502,7 +1591,14 @@ seduce_ongoing.1211 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -1514,10 +1610,7 @@ seduce_ongoing.1211 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1411 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1411 } } } @@ -1532,7 +1625,14 @@ seduce_ongoing.1311 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -1540,10 +1640,7 @@ seduce_ongoing.1311 = { name = seduce_ongoing.1311.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1511 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1511 } } } @@ -1650,7 +1747,14 @@ seduce_ongoing.1104 = { desc = seduce_ongoing.1104.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = boredom + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -1801,7 +1905,14 @@ seduce_ongoing.1204 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -1813,10 +1924,7 @@ seduce_ongoing.1204 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1404 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1404 } } } @@ -1831,7 +1939,14 @@ seduce_ongoing.1304 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -1839,10 +1954,7 @@ seduce_ongoing.1304 = { name = seduce_ongoing.1304.a add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1504 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1504 } } } @@ -1893,7 +2005,14 @@ seduce_ongoing.1208 = { title = seduce_ongoing.1201.t desc = seduce_ongoing.1208.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -1905,10 +2024,7 @@ seduce_ongoing.1208 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1408 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1408 } } } @@ -1919,7 +2035,14 @@ seduce_ongoing.1308 = { title = seduce_ongoing.1301.t desc = seduce_ongoing.1308.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } trigger = { exists = scope:scheme } @@ -1927,10 +2050,7 @@ seduce_ongoing.1308 = { name = seduce_ongoing.target_unsuccessful.option add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1508 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1508 } } } @@ -1983,7 +2103,14 @@ seduce_ongoing.1212 = { title = seduce_ongoing.1201.t desc = seduce_ongoing.1212.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -1995,10 +2122,7 @@ seduce_ongoing.1212 = { days = 3650 } scope:owner = { - trigger_event = { - id = seduce_ongoing.1412 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1412 } } } @@ -2008,7 +2132,14 @@ seduce_ongoing.1312 = { type = character_event title = seduce_ongoing.1301.t desc = seduce_ongoing.1312.desc - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } theme = seduce_scheme trigger = { exists = scope:scheme } @@ -2017,10 +2148,7 @@ seduce_ongoing.1312 = { name = seduce_ongoing.target_unsuccessful.option add_gold = minor_gold_value scope:owner = { - trigger_event = { - id = seduce_ongoing.1512 - days = { 3 5 } - } + trigger_event = seduce_ongoing.1512 } } } @@ -2105,8 +2233,15 @@ seduce_ongoing.3001 = { type = character_event title = seduce_ongoing.3001.t desc = seduce_ongoing.3001.desc - left_portrait = scope:target - right_portrait = scope:close_character + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:close_character + animation = personality_compassionate + } + lower_right_portrait = scope:target theme = seduce_scheme widget = { gui = "event_window_widget_scheme" @@ -2383,8 +2518,15 @@ seduce_ongoing.3002 = { title = seduce_ongoing.3001.t desc = seduce_ongoing.3002.desc theme = friendly - left_portrait = scope:close_character - right_portrait = scope:owner + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:close_character + animation = laugh + } + lower_right_portrait = scope:owner trigger = { NOT = { has_variable = scheme_event_active_flag } @@ -2416,8 +2558,15 @@ seduce_ongoing.3003 = { desc = seduce_ongoing.3003.desc theme = seduce_scheme - left_portrait = scope:close_character - right_portrait = scope:target + left_portrait = { + character = root + animation = happiness + } + right_portrait = { + character = scope:target + animation = admiration + } + lower_right_portrait = scope:close_character trigger = { exists = scope:scheme } @@ -2434,8 +2583,15 @@ seduce_ongoing.3004 = { desc = seduce_ongoing.3004.desc theme = seduce_scheme - left_portrait = scope:close_character - right_portrait = scope:target + left_portrait = { + character = root + animation = disappointed + } + right_portrait = { + character = scope:target + animation = dismissal + } + lower_right_portrait = scope:close_character trigger = { exists = scope:scheme } @@ -2471,10 +2627,17 @@ seduce_ongoing.4001 = { } theme = seduce_scheme - left_portrait = scope:target - lower_left_portrait = { + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { trigger = { exists = scope:court_musician } character = scope:court_musician + animation = dancing + } + lower_right_portrait = { + character = scope:target } widget = { gui = "event_window_widget_scheme" @@ -2751,8 +2914,15 @@ seduce_ongoing.4002 = { } theme = seduce_scheme - left_portrait = scope:owner - lower_left_portrait = { + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = dancing + } + lower_right_portrait = { trigger = { exists = scope:court_musician } character = scope:court_musician } @@ -2793,8 +2963,15 @@ seduce_ongoing.4003 = { } theme = seduce_scheme - left_portrait = scope:owner - lower_left_portrait = { + left_portrait = { + character = root + animation = disapproval + } + right_portrait = { + character = scope:owner + animation = disbelief + } + lower_right_portrait = { trigger = { exists = scope:court_musician } character = scope:court_musician } @@ -2905,7 +3082,14 @@ seduce_ongoing.4006 = { desc = seduce_ongoing.4006.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = admiration + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme } @@ -2929,7 +3113,14 @@ seduce_ongoing.4007 = { desc = seduce_ongoing.4007.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = boredom + } trigger = { exists = scope:scheme } @@ -2996,7 +3187,17 @@ seduce_ongoing.5201 = { desc = seduce_ongoing.5201.desc theme = seduce_scheme - left_portrait = scope:target + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3011,7 +3212,6 @@ seduce_ongoing.5201 = { } has_relation_friend = scope:target } - NOT = { is_consort_of = scope:owner } } immediate = { @@ -3139,10 +3339,7 @@ seduce_ongoing.5201 = { } } scope:target = { - trigger_event = { - id = seduce_ongoing.5202 - days = { 10 20 } - } + trigger_event = seduce_ongoing.5202 } } else_if = { @@ -3168,10 +3365,7 @@ seduce_ongoing.5201 = { } } scope:target = { - trigger_event = { - id = seduce_ongoing.5205 - days = { 10 20 } - } + trigger_event = seduce_ongoing.5205 } } } @@ -3187,7 +3381,17 @@ seduce_ongoing.5202 = { desc = seduce_ongoing.5202.desc theme = seduce_scheme - left_portrait = scope:owner + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } option = { #I'm into it trigger = { @@ -3225,7 +3429,17 @@ seduce_ongoing.5203 = { desc = seduce_ongoing.5203.desc theme = seduce_scheme - left_portrait = scope:target + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3244,7 +3458,17 @@ seduce_ongoing.5204 = { desc = seduce_ongoing.5204.desc theme = seduce_scheme - left_portrait = scope:target + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = dismissal + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3264,7 +3488,17 @@ seduce_ongoing.5205 = { desc = seduce_ongoing.5205.desc theme = seduce_scheme - left_portrait = scope:owner + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:owner + animation = love + } option = { #I am charmed trigger = { @@ -3302,7 +3536,17 @@ seduce_ongoing.5206 = { desc = seduce_ongoing.5206.desc theme = seduce_scheme - left_portrait = scope:target + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3321,7 +3565,17 @@ seduce_ongoing.5207 = { desc = seduce_ongoing.5207.desc theme = seduce_scheme - left_portrait = scope:target + override_background = { + reference = garden + } + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = dismissal + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3359,7 +3613,14 @@ seduce_ongoing.5301 = { desc = seduce_ongoing.5301.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = prayer + } + right_portrait = { + character = scope:target + animation = personality_coward + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3368,8 +3629,10 @@ seduce_ongoing.5301 = { trigger = { NOT = { has_variable = scheme_event_active_flag } scope:target = { - is_close_or_extended_family_of = scope:owner - NOT = { is_consort_of = scope:owner } #All kinds of things might happen + OR = { + is_close_or_extended_family_of = scope:owner + is_consort_of = scope:owner #All kinds of things might happen + } } } @@ -3383,10 +3646,7 @@ seduce_ongoing.5301 = { seduce_ongoing_add_scheme_modifier_effect = { MILESTONE = 2 OUTCOME = success } } scope:target = { - trigger_event = { - id = seduce_ongoing.5302 - days = { 5 10 } - } + trigger_event = seduce_ongoing.5302 } } @@ -3405,10 +3665,7 @@ seduce_ongoing.5301 = { seduce_ongoing_add_scheme_modifier_effect = { MILESTONE = 2 OUTCOME = success } } scope:target = { - trigger_event = { - id = seduce_ongoing.5305 - days = { 5 10 } - } + trigger_event = seduce_ongoing.5305 } } @@ -3434,7 +3691,14 @@ seduce_ongoing.5302 = { desc = seduce_ongoing.5302.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = personality_coward + } + right_portrait = { + character = scope:owner + animation = flirtation + } trigger = { exists = scope:scheme @@ -3491,7 +3755,14 @@ seduce_ongoing.5303 = { desc = seduce_ongoing.5303.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = love + } trigger = { exists = scope:scheme @@ -3510,7 +3781,14 @@ seduce_ongoing.5304 = { desc = seduce_ongoing.5304.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = dismissal + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3533,7 +3811,14 @@ seduce_ongoing.5305 = { desc = seduce_ongoing.5305.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = personality_coward + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme @@ -3604,7 +3889,14 @@ seduce_ongoing.5306 = { desc = seduce_ongoing.5306.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = love + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3635,7 +3927,14 @@ seduce_ongoing.5307 = { desc = seduce_ongoing.5307.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = disgust + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -3684,9 +3983,6 @@ seduce_ongoing.6031 = { has_intrigue_lifestyle_trait_trigger = yes } } - scope:scheme = { - scheme_power_resistance_difference > 0 - } } immediate = { set_variable = scheme_event_active_flag } @@ -3968,7 +4264,14 @@ seduce_ongoing.1801 = { } theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = personality_bold + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4254,7 +4557,21 @@ seduce_ongoing.1802 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + triggered_animation = { + trigger = { scope:compliment_outcome ?= flag:good } + animation = flirtation_left + } + triggered_animation = { + trigger = { NOT = { scope:compliment_outcome ?= flag:good } } + animation = dismissal + } + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme @@ -4374,7 +4691,14 @@ seduce_ongoing.7001 = { desc = seduce_ongoing.7001.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = thinking + } + right_portrait = { + character = scope:target + animation = personality_coward + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -4477,7 +4801,14 @@ seduce_ongoing.7101 = { } theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } trigger = { exists = scope:scheme } @@ -4498,7 +4829,14 @@ seduce_ongoing.7102 = { desc = seduce_ongoing.7102.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = disgust + } trigger = { exists = scope:scheme } @@ -4515,7 +4853,14 @@ seduce_ongoing.7201 = { desc = seduce_ongoing.7201.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } trigger = { exists = scope:scheme } @@ -4544,7 +4889,14 @@ seduce_ongoing.7202 = { } theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = disappointed + } trigger = { exists = scope:scheme } @@ -4639,7 +4991,14 @@ seduce_ongoing.1001 = { desc = seduce_ongoing.1001.desc } - left_portrait = scope:target + left_portrait = { + character = root + animation = dancing + } + right_portrait = { + character = scope:target + animation = dancing + } theme = seduce_scheme widget = { gui = "event_window_widget_scheme" @@ -4649,9 +5008,6 @@ seduce_ongoing.1001 = { trigger = { NOT = { has_variable = scheme_event_active_flag } exists = scope:target.court_owner - scope:scheme = { - scheme_power_resistance_difference > 0 - } scope:target = { exists = location.barony # In case the character in question is at sea OR = { @@ -5013,7 +5369,14 @@ seduce_ongoing.1003 = { } } - left_portrait = scope:owner + left_portrait = { + character = root + animation = dancing + } + right_portrait = { + character = scope:owner + animation = dancing + } theme = seduce_scheme trigger = { @@ -5062,8 +5425,16 @@ seduce_ongoing.1004 = { } } - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = dancing + } theme = unfriendly + override_background = { reference = feast } trigger = { exists = scope:scheme @@ -5110,8 +5481,12 @@ seduce_ongoing.1005 = { } left_portrait = { + character = root + animation = dancing + } + right_portrait = { character = scope:target - animation = happiness + animation = dancing } theme = seduce_scheme widget = { @@ -5166,7 +5541,14 @@ seduce_ongoing.1006 = { } } - left_portrait = scope:target + left_portrait = { + character = root + animation = dancing_plague + } + right_portrait = { + character = scope:target + animation = dismissal + } theme = seduce_scheme trigger = { @@ -5800,7 +6182,14 @@ seduce_ongoing.1701 = { title = seduce_ongoing.1701.t desc = seduce_ongoing.1701.desc - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } theme = seduce_scheme widget = { gui = "event_window_widget_scheme" @@ -5809,9 +6198,6 @@ seduce_ongoing.1701 = { trigger = { NOT = { has_variable = scheme_event_active_flag } - scope:scheme = { - scheme_power_resistance_difference > 0 - } scope:target = { is_landed = yes OR = { @@ -6134,7 +6520,6 @@ seduce_ongoing.1701 = { } } - #Target: Success seduce_ongoing.1703 = { type = character_event @@ -6170,7 +6555,14 @@ seduce_ongoing.1703 = { } } - left_portrait = scope:owner + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:owner + animation = flirtation + } theme = seduce_scheme trigger = { @@ -6217,8 +6609,14 @@ seduce_ongoing.1704 = { desc = seduce_ongoing.1704.fallback } } - - left_portrait = scope:owner + left_portrait = { + character = root + animation = eyeroll + } + right_portrait = { + character = scope:owner + animation = debating + } theme = unfriendly trigger = { @@ -6266,8 +6664,12 @@ seduce_ongoing.1705 = { } left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target - animation = happiness + animation = flirtation } theme = seduce_scheme widget = { @@ -6287,7 +6689,6 @@ seduce_ongoing.1705 = { } } - #Owner: Failure seduce_ongoing.1706 = { type = character_event @@ -6323,8 +6724,12 @@ seduce_ongoing.1706 = { } left_portrait = { + character = root + animation = sadness + } + right_portrait = { character = scope:target - animation = disapproval + animation = eyeroll } theme = unfriendly widget = { @@ -6346,7 +6751,6 @@ seduce_ongoing.1706 = { ###END JOUSTING DAY CHAIN - #### # Love Potion Chain # 2001-2011 @@ -6360,7 +6764,14 @@ seduce_ongoing.2001 = { desc = seduce_ongoing.2001.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6377,7 +6788,7 @@ seduce_ongoing.2001 = { } } scope:scheme = { - scheme_progress >= 4 + scheme_agent_charges >= 4 } } @@ -6576,6 +6987,10 @@ seduce_ongoing.2002 = { desc = seduce_ongoing.2002.desc left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:owner animation = flirtation } @@ -6614,6 +7029,10 @@ seduce_ongoing.2003 = { desc = seduce_ongoing.2003.desc left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = flirtation } @@ -6653,7 +7072,12 @@ seduce_ongoing.2004 = { title = seduce_ongoing.2001.t desc = seduce_ongoing.2004.desc + left_portrait = { + character = root + animation = disgust + } + right_portrait = { character = scope:owner animation = sadness } @@ -6692,6 +7116,10 @@ seduce_ongoing.2005 = { desc = seduce_ongoing.2005.desc left_portrait = { + character = root + animation = sadness + } + right_portrait = { character = scope:target animation = dismissal } @@ -6726,7 +7154,14 @@ seduce_ongoing.2006 = { title = seduce_ongoing.2006.t desc = seduce_ongoing.2006.desc - left_portrait = scope:owner + left_portrait = { + character = root + animation = sick + } + right_portrait = { + character = scope:owner + animation = crying + } theme = physical_health trigger = { @@ -6754,8 +7189,6 @@ seduce_ongoing.2006 = { name = seduce_ongoing.2006.a custom_tooltip = seduce_ongoing.2006.a.tt } - - } #Schemer: Failure, they fell ill! @@ -6765,6 +7198,10 @@ seduce_ongoing.2007 = { desc = seduce_ongoing.2007.desc left_portrait = { + character = root + animation = crying + } + right_portrait = { character = scope:target animation = sick } @@ -6778,7 +7215,7 @@ seduce_ongoing.2007 = { name = seduce_ongoing.2007.a show_as_tooltip = { scope:target = { - add_trait = ill + contract_disease_effect = { DISEASE = ill TREATMENT_EVENT = yes } add_opinion = { modifier = respect_opinion target = scope:owner @@ -6803,6 +7240,10 @@ seduce_ongoing.2008 = { desc = seduce_ongoing.2008.desc left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:owner animation = happiness } @@ -6839,7 +7280,14 @@ seduce_ongoing.2009 = { title = seduce_ongoing.2001.t desc = seduce_ongoing.2009.desc - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = happiness + } theme = seduce_scheme widget = { gui = "event_window_widget_scheme" @@ -6871,7 +7319,14 @@ seduce_ongoing.2010 = { title = seduce_ongoing.2001.t desc = seduce_ongoing.2010.desc - left_portrait = scope:owner + left_portrait = { + character = root + animation = dismissal + } + right_portrait = { + character = scope:owner + animation = sadness + } theme = unfriendly trigger = { @@ -6902,6 +7357,10 @@ seduce_ongoing.2011 = { desc = seduce_ongoing.2011.desc left_portrait = { + character = root + animation = sadness + } + right_portrait = { character = scope:target animation = dismissal } @@ -6941,7 +7400,14 @@ seduce_ongoing.4011 = { desc = seduce_ongoing.4011.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -6949,15 +7415,14 @@ seduce_ongoing.4011 = { trigger = { scope:scheme = { - scheme_progress >= 5 + scheme_agent_charges > 3 } + is_landed = yes scope:target = { NOT = { is_consort_of = scope:owner } exists = court_owner exists = court_owner.capital_province } - is_landed = yes - exists = scope:target.court_owner } weight_multiplier = { @@ -7141,7 +7606,14 @@ seduce_ongoing.4012 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:owner + animation = flirtation + } trigger = { exists = scope:scheme @@ -7179,7 +7651,14 @@ seduce_ongoing.4013 = { } theme = unfriendly - left_portrait = scope:owner + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:owner + animation = disapproval + } trigger = { exists = scope:scheme @@ -7302,7 +7781,14 @@ seduce_ongoing.4016 = { } theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:owner + animation = flirtation + } trigger = { exists = scope:scheme @@ -7421,7 +7907,14 @@ seduce_ongoing.4101 = { } theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = admiration + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -7587,6 +8080,10 @@ seduce_ongoing.4102 = { theme = seduce_scheme left_portrait = { + character = root + animation = eavesdrop + } + right_portrait = { character = scope:owner animation = personality_forgiving } @@ -7670,6 +8167,10 @@ seduce_ongoing.4103 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = flirtation } @@ -7703,6 +8204,10 @@ seduce_ongoing.4104 = { theme = seduce_scheme left_portrait = { + character = root + animation = shame + } + right_portrait = { character = scope:target animation = anger } @@ -7738,7 +8243,14 @@ seduce_ongoing.4105 = { desc = seduce_ongoing.4105.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = shock + } + right_portrait = { + character = scope:owner + animation = love + } trigger = { exists = scope:scheme @@ -7835,6 +8347,10 @@ seduce_ongoing.4106 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = flirtation } @@ -7878,6 +8394,10 @@ seduce_ongoing.4107 = { theme = seduce_scheme left_portrait = { + character = root + animation = sadness + } + right_portrait = { character = scope:target triggered_animation = { trigger = { scope:target = { has_trait = paranoid } } @@ -7916,7 +8436,14 @@ seduce_ongoing.4108 = { desc = seduce_ongoing.4108.desc theme = seduce_scheme - left_portrait = scope:owner + left_portrait = { + character = root + animation = boredom + } + right_portrait = { + character = scope:owner + animation = flirtation + } trigger = { exists = scope:scheme @@ -7991,7 +8518,14 @@ seduce_ongoing.4109 = { desc = seduce_ongoing.4109.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -8021,7 +8555,14 @@ seduce_ongoing.4110 = { desc = seduce_ongoing.4110.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:target + animation = dismissal + } trigger = { exists = scope:scheme @@ -8108,6 +8649,10 @@ seduce_ongoing.5001 = { } left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target triggered_animation = { trigger = { @@ -8154,10 +8699,6 @@ seduce_ongoing.5001 = { seduce_ongoing_5001_bodily_trigger = yes } } - scope:scheme = { - scheme_progress > 0 - scheme_progress < 7 - } } immediate = { @@ -8541,7 +9082,14 @@ seduce_ongoing.5003 = { } } - left_portrait = scope:owner + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:owner + animation = admiration + } theme = seduce_scheme override_background = { reference = garden @@ -8589,7 +9137,14 @@ seduce_ongoing.5004 = { } } - left_portrait = scope:owner + left_portrait = { + character = root + animation = sadness + } + right_portrait = { + character = scope:owner + animation = disgust + } theme = unfriendly override_background = { reference = garden @@ -8637,7 +9192,14 @@ seduce_ongoing.5005 = { desc = seduce_ongoing.5005.ending } - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = admiration + } theme = seduce_scheme override_background = { reference = garden @@ -8687,6 +9249,10 @@ seduce_ongoing.5006 = { } left_portrait = { + character = root + animation = sadness + } + right_portrait = { character = scope:target triggered_animation = { trigger = { scope:rival_approach = flag:conversation } @@ -8741,6 +9307,10 @@ seduce_ongoing.5011 = { theme = seduce_scheme left_portrait = { + character = root + animation = schadenfreude + } + right_portrait = { character = scope:target animation = rage } @@ -8751,9 +9321,6 @@ seduce_ongoing.5011 = { trigger = { NOT = { has_variable = scheme_event_active_flag } - scope:scheme = { - scheme_progress <= 7 - } is_healthy = yes has_trait = wrathful scope:target = { @@ -8785,24 +9352,6 @@ seduce_ongoing.5011 = { has_trait = physique_good_3 } } - modifier = { - add = 2 - scope:scheme = { - scheme_progress <= 3 - } - } - modifier = { - add = 5 - scope:scheme = { - scheme_progress > 3 - } - } - modifier = { - add = 5 - scope:scheme = { - scheme_progress > 6 - } - } modifier = { add = 5 scope:scheme = { @@ -8982,6 +9531,10 @@ seduce_ongoing.5012 = { theme = seduce_scheme left_portrait = { + character = root + animation = schadenfreude + } + right_portrait = { character = scope:owner animation = rage } @@ -9053,6 +9606,10 @@ seduce_ongoing.5013 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = flirtation } @@ -9086,6 +9643,10 @@ seduce_ongoing.5014 = { theme = seduce_scheme left_portrait = { + character = root + animation = shock + } + right_portrait = { character = scope:target animation = anger } @@ -9113,6 +9674,10 @@ seduce_ongoing.5015 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:owner animation = personality_compassionate } @@ -9195,6 +9760,10 @@ seduce_ongoing.5016 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = personality_compassionate } @@ -9228,6 +9797,10 @@ seduce_ongoing.5017 = { theme = seduce_scheme left_portrait = { + character = root + animation = shock + } + right_portrait = { character = scope:target animation = anger } @@ -9255,6 +9828,10 @@ seduce_ongoing.5018 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:owner animation = anger } @@ -9295,6 +9872,10 @@ seduce_ongoing.5019 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:target animation = schadenfreude } @@ -9328,6 +9909,10 @@ seduce_ongoing.5020 = { theme = seduce_scheme left_portrait = { + character = root + animation = shock + } + right_portrait = { character = scope:target animation = dismissal } @@ -9364,7 +9949,14 @@ seduce_ongoing.5101 = { desc = seduce_ongoing.5101.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -9373,8 +9965,7 @@ seduce_ongoing.5101 = { trigger = { NOT = { has_variable = scheme_event_active_flag } scope:scheme = { - scheme_power_resistance_difference > 0 - scheme_progress >= 2 + scheme_agent_charges >= 2 } scope:target = { is_vassal_of = scope:owner @@ -9498,6 +10089,10 @@ seduce_ongoing.5102 = { theme = seduce_scheme left_portrait = { + character = root + animation = flirtation + } + right_portrait = { character = scope:owner animation = personality_compassionate } @@ -9643,6 +10238,10 @@ seduce_ongoing.5105 = { theme = seduce_scheme left_portrait = { + character = root + animation = love + } + right_portrait = { character = scope:owner animation = flirtation } @@ -9796,7 +10395,14 @@ seduce_ongoing.6001 = { desc = seduce_ongoing.6001.desc theme = seduce_scheme - left_portrait = scope:target + left_portrait = { + character = root + animation = love + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -9901,7 +10507,14 @@ seduce_ongoing.6011 = { desc = seduce_ongoing.6011.desc theme = war - left_portrait = scope:target + left_portrait = { + character = root + animation = hunting_horn + } + right_portrait = { + character = scope:target + animation = dismissal + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -9915,9 +10528,6 @@ seduce_ongoing.6011 = { has_lifestyle = martial_lifestyle has_martial_lifestyle_trait_trigger = yes } - scope:scheme = { - scheme_power_resistance_difference > 0 - } scope:target = { is_available_adult = yes martial >= 10 @@ -9992,7 +10602,14 @@ seduce_ongoing.6021 = { desc = seduce_ongoing.6021.desc theme = war - left_portrait = scope:target + left_portrait = { + character = root + animation = reading + } + right_portrait = { + character = scope:target + animation = debating + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" @@ -10005,9 +10622,6 @@ seduce_ongoing.6021 = { has_lifestyle = martial_lifestyle has_martial_lifestyle_trait_trigger = yes } - scope:scheme = { - scheme_power_resistance_difference > 0 - } scope:target = { is_available_adult = yes OR = { @@ -10110,7 +10724,14 @@ seduce_ongoing.6051 = { } theme = diplomacy - left_portrait = scope:target + left_portrait = { + character = root + animation = flirtation_left + } + right_portrait = { + character = scope:target + animation = flirtation + } widget = { gui = "event_window_widget_scheme" container = "custom_widgets_container" diff --git a/events/scheme_events/seduce_scheme/seduce_scheme_outcome_events.txt b/events/scheme_events/seduce_scheme/seduce_scheme_outcome_events.txt deleted file mode 100644 index 6c26f9b952..0000000000 --- a/events/scheme_events/seduce_scheme/seduce_scheme_outcome_events.txt +++ /dev/null @@ -1,3743 +0,0 @@ -# The outcome of a seduction scheme - -namespace = seduce_outcome - -# NOTE: To set up a new scheme outcome, make sure that you make an event for the owner and one for the target, and add them to their relevant on_actions. - - -# 0000-0999: Maintenance events -# 1000-1999: Setup events -# 2000-2999: Success events for scheme owner -# 3000-3999: Success events for scheme target -# 4000-4999: Failure events for scheme owner - -##"Hard" rejections that block the target for future schemes -# 8100-8999: Early outcome events - - - -###################################################### -# MAINTENANCE EVENTS -# 0000-0999 -###################################################### - -#I am a player and there is a discovery chance. Do I want to take the risk? -seduce_outcome.0001 = { #by Mathilda Bjarnehed - type = character_event - title = seduce_outcome.0001.t - desc = { - desc = seduce_outcome.0001.desc - first_valid = { - triggered_desc = { - trigger = { scope:scheme.scheme_success_chance >= 60 } - desc = seduce_outcome.0001.positive.desc - } - desc = seduce_outcome.0001.negative.desc - } - } - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - immediate = { - scope:target = { liege = { save_scope_as = discoverer } } - } - - option = { - name = seduce_outcome.0001.a - custom_tooltip = seduce_outcome.0001.a.tt - trigger_event = seduce_outcome.0002 #Do the rolls! - - stress_impact = { - craven = minor_stress_impact_gain - } - } - - option = { - name = seduce_outcome.0001.b - scope:scheme = { - end_scheme = yes - } - } -} - -#Rolls success and discovery, and triggers on_actions (or sends "player's choice" event) -seduce_outcome.0002 = { - type = character_event - - hidden = yes - - immediate = { - #SUCCESS ROLL - random = { - chance = scope:scheme.scheme_success_chance - - save_scope_value_as = { - name = scheme_successful - value = yes - } - } - - #DISCOVERY ROLL - save_scope_value_as = { - name = discovery_chance - value = { - value = 100 - subtract = scope:scheme.scheme_secrecy - } - } - - random = { - chance = scope:discovery_chance - save_scope_value_as = { - name = scheme_discovered - value = yes - } - } - - #FOR AI TARGETS, SEND ON_ACTIONS - if = { - limit = { scope:target = { is_ai = yes } } - if = { - limit = { - exists = scope:scheme_successful - } - trigger_event = { - on_action = seduce_success - } - } - else = { - trigger_event = { - on_action = seduce_failure - } - } - } - #FOR PLAYER CHARACTER, SEND CHOICE EVENT - else = { - scope:target = { - trigger_event = { - id = seduce_outcome.0003 - } - } - } - } -} - -#Player scheme target selects outcome -seduce_outcome.0003 = { #by Mathilda Bjarnehed & Petter Vilberg - type = character_event - title = seduce_outcome.0003.t - desc = { - first_valid = { - triggered_desc = { - trigger = { exists = scope:scheme_successful } - desc = seduce_outcome.0003.success.desc - } - desc = seduce_outcome.0003.failure.desc - } - } - - theme = seduce_scheme - left_portrait = scope:owner - - #Success: I want to be your lover - option = { - trigger = { matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:owner CHARACTER_2 = scope:target } } - name = { - trigger = { exists = scope:scheme_successful } - text = seduce_outcome.0003.a.success - } - name = { - trigger = { NOT = { exists = scope:scheme_successful } } - text = seduce_outcome.0003.a.failure - } - - show_as_tooltip = { - had_sex_with_effect = { - CHARACTER = scope:owner - PREGNANCY_CHANCE = seduce_pregnancy_chance - } - custom_tooltip = seduce_outcome.0003.a.tt - } - - #As owner's intent might be seen as incestuous/sodomy, apply a secret that player can reveal if they want to - hidden_effect = { - scope:owner = { - #Sodomy - give_homosexual_secret_or_nothing_with_target_effect = { CHARACTER = scope:target } - - #Incest - give_incest_secret_or_nothing_with_target_effect = { CHARACTER = scope:target } - - #Adultery/fornication isn't a secret, but is applied as traits when the secrets are revealed - } - } - - scope:scheme = { #Unlocks "become lover" option against player characters - save_scope_value_as = { - name = continued_relationship - value = yes - } - } - - scope:owner = { - trigger_event = { #Owner gets any success event, and then target will be notified of their choice - on_action = seduce_success - } - } - - #Stress - if = { - limit = { #Extra stress for zealous - faith = { save_temporary_scope_as = my_faith } - OR = { - relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:owner } - relation_with_character_is_sodomy_trigger = { CHARACTER = scope:owner } - AND = { - NOT = { is_consort_of = scope:owner } - OR = { - trait_is_shunned_in_faith_trigger = { TRAIT = adulterer FAITH = scope:my_faith GENDER_CHARACTER = root } #Fornicator is handled by same rules - trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = scope:my_faith GENDER_CHARACTER = root } #Fornicator is handled by same rules - } - } - } - } - stress_impact = { - chaste = medium_stress_impact_gain - zealous = medium_stress_impact_gain - } - } - else = { #Regular stress - stress_impact = { - chaste = medium_stress_impact_gain - } - } - } - - #Success: Okay, we can have sex but nothing more - option = { - name = { - trigger = { exists = scope:scheme_successful } - text = seduce_outcome.0003.b.success - } - name = { - trigger = { NOT = { exists = scope:scheme_successful } } - text = seduce_outcome.0003.b.failure - } - - show_as_tooltip = { - had_sex_with_effect = { - CHARACTER = scope:owner - PREGNANCY_CHANCE = seduce_pregnancy_chance - } - } - - scope:owner = { - trigger_event = { #Owner gets any success event, and then target will be notified of their choice (owner can't pick become lovers) - on_action = seduce_success - } - } - - #Stress - if = { - limit = { #Extra stress for zealous - faith = { save_temporary_scope_as = my_faith } - OR = { - relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:owner } - relation_with_character_is_sodomy_trigger = { CHARACTER = scope:owner } - AND = { - NOT = { is_consort_of = scope:owner } - OR = { - trait_is_shunned_in_faith_trigger = { TRAIT = adulterer FAITH = scope:my_faith GENDER_CHARACTER = root } #Fornicator is handled by same rules - trait_is_criminal_in_faith_trigger = { TRAIT = adulterer FAITH = scope:my_faith GENDER_CHARACTER = root } #Fornicator is handled by same rules - } - } - } - } - stress_impact = { - chaste = medium_stress_impact_gain - compassionate = minor_stress_impact_gain - zealous = medium_stress_impact_gain - } - } - else = { #Regular stress - stress_impact = { - chaste = medium_stress_impact_gain - compassionate = minor_stress_impact_gain - } - } - } - - #Failure: let down easy - option = { - name = seduce_outcome.0003.c - - save_scope_value_as = { - name = target_chose_nice_reject - value = yes - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - scope:owner = { - trigger_event = { - id = seduce_outcome.4001 #Nice reject - days = 1 - } - } - - #Stress - stress_impact = { - lustful = medium_stress_impact_gain - } - if = { #Hard to say no to someone who is seductive - limit = { - NOT = { has_trait = chaste } - exists = scope:scheme_successful - } - add_stress = minor_stress_gain - } - } - - #Failure: be mean - option = { - trigger = { NOT = { is_consort_of = scope:owner }} # Not an option if you're already married/concubines (it's not adultery then!) - name = seduce_outcome.0003.d - - save_scope_value_as = { - name = target_chose_mean_reject - value = yes - } - show_as_tooltip = { - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } - - seduction_block_character_effect = { CHARACTER = scope:owner } - - reverse_add_opinion = { - target = scope:owner - modifier = angry_opinion - opinion = -20 - } - scope:owner = { - trigger_event = { - id = seduce_outcome.4003 #Mean reject - days = 1 - } - } - - #Stress - stress_impact = { - lustful = medium_stress_impact_gain - compassionate = medium_stress_gain - } - } - - #Failure: no lovers at all please! - option = { - name = seduce_outcome.0003.e - custom_tooltip = seduce_outcome.0003.e.tt - add_character_flag = { - flag = block_seduce_attempts - years = 10 - } - - save_scope_value_as = { - name = target_chose_nice_reject - value = yes - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - scope:owner = { - trigger_event = { - id = seduce_outcome.4001 #Nice reject - days = 1 - } - } - - #Stress - stress_impact = { - lustful = medium_stress_impact_gain - } - } -} - -#Gained lover relation through different means -#by Linnéa Thimrén -seduce_outcome.0004 = { - type = character_event - title = seduce_outcome.0004.t - desc = seduce_outcome.0004.desc - - theme = seduce_scheme - left_portrait = scope:target - #No scheme, no widget - - option = { - name = seduce_outcome.0004.a - } -} - -#Target died -#by Ewan Cowhig Croft -seduce_outcome.0005 = { - type = character_event - title = seduce_outcome.0005.t - desc = seduce_outcome.0005.desc - - theme = seduce_scheme - left_portrait = scope:target - #No scheme, no widget - - option = { - name = seduce_outcome.0005.a - } -} - -###################################################### -# SUCCESS EVENTS FOR OWNER -# 2000-2999 -###################################################### - -scripted_trigger seduce_outcome_become_lovers_trigger = { - OR = { - scope:scheme = { exists = scope:continued_relationship } - scope:target = { is_ai = yes } - } - matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:owner CHARACTER_2 = scope:target } -} - -scripted_trigger seduce_outcome_just_sex_trigger = { - OR = { - scope:target = { is_ai = yes } - scope:owner = { is_ai = yes } - AND = { - scope:target = { is_ai = no } - scope:scheme = { NOT = { exists = scope:continued_relationship } } - } - NOT = { matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:owner CHARACTER_2 = scope:target } } - } -} - -# Target is the Pope and you are the same religion -# by Tobias Bodlund -seduce_outcome.2000 = { - type = character_event - title = seduce_outcome.2000.t - desc = seduce_outcome.2000.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - - trigger = { - scope:target.faith = root.faith - - # Warcraft - always = no - # scope:target = { has_title = title:k_papal_state } - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2000.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2000.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option if - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3000 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -# Both are drunkards -# by Tobias Bodlund -seduce_outcome.2010 = { - type = character_event - title = seduce_outcome.2010.t - desc = seduce_outcome.2010.desc - - theme = seduce_scheme - override_background = { - reference = bedchamber - } - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - has_trait = drunkard - scope:target = { has_trait = drunkard } - } - - weight_multiplier = { - base = 100 - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2010.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2010.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3010 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -# In the privy -seduce_outcome.2020 = { - type = character_event - title = seduce_outcome.2020.t - desc = seduce_outcome.2020.desc - - theme = seduce_scheme - override_background = { - reference = courtyard - } - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2020.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2020.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3020 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -# Both are Gluttonous -# by Tobias Bodlund and Linnéa Thimrén -seduce_outcome.2030 = { - type = character_event - title = seduce_outcome.2030.t - desc = { - desc = seduce_outcome.2030.a.desc - triggered_desc = { - trigger = { - drinks_alcohol_trigger = yes - } - desc = seduce_outcome.2030.alcohol.desc - } - desc = seduce_outcome.2030.b.desc - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - has_trait = gluttonous - scope:target = { has_trait = gluttonous } - } - - weight_multiplier = { - base = 50 - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2030.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2030.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3030 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -# At the walls -# by Tobias Bodlund and Linnéa Thimrén -seduce_outcome.2040 = { - type = character_event - title = seduce_outcome.2040.t - desc = seduce_outcome.2040.desc - - theme = seduce_scheme - override_background = { - reference = courtyard - } - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - immediate = { - get_quirk_character_effect = yes - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2040.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2040.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3040 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -# Both are Chaste and at least one is married to another -seduce_outcome.2050 = { - type = character_event - title = seduce_outcome.2050.t - desc = seduce_outcome.2050.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - has_trait = chaste - num_of_relation_lover < 1 - scope:target = { - has_trait = chaste - num_of_relation_lover < 1 - NOT = { is_spouse_of = root } - } - OR = { - is_married = yes - scope:target = { is_married = yes } - } - } - - weight_multiplier = { - base = 100 - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2050.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2050.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3050 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -#Go to the target's chambers -#by Linnéa Thimrén -seduce_outcome.2301 = { - type = character_event - title = seduce_outcome.2301.t - desc = seduce_outcome.2301.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - weight_multiplier = { - base = 0.5 - modifier = { #More likely if you're in the same court - add = 0.7 - seduction_target_is_close_trigger = yes - } - modifier = { #Less likely if you're the target's spouse - add = -0.2 - scope:target = { is_spouse_of = root } - } - } - - immediate = { - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2301.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - flavor = seduce_outcome.2301.a.tt - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2301.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3301 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - -#Sneak into target's court (long distance seduction) -#by Linnéa Thimrén -seduce_outcome.2302 = { - type = character_event - title = seduce_outcome.2302.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - scope:target = { court_owner = scope:target } - } - desc = seduce_outcome.2302.desc_court_owner - } - desc = seduce_outcome.2302.desc_not_court_owner - } - desc = seduce_outcome.2302.desc_end - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - seduction_target_is_close_trigger = no - exists = scope:target.location.barony - } - - weight_multiplier = { - base = 0.5 - modifier = { #More likely if they're in a different realm - add = 1 - scope:target = { - NOT = { - top_liege = root.top_liege - } - } - } - } - - immediate = { - scope:target.location.barony = { - save_scope_as = court_of_residence - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): yes - owner_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2302.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2302.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3302 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Gregarious target(and owner), gushing compliments -#by Linnéa Thimrén -seduce_outcome.2303 = { - type = character_event - title = seduce_outcome.2303.t - desc = seduce_outcome.2303.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:target = { has_trait = gregarious } - } - - weight_multiplier = { - base = 0.5 - modifier = { #More likely if you're also gregarious! - add = 2 - has_trait = gregarious - } - } - - immediate = { - get_quirk_character_effect = yes - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2303.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2303.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3303 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Meet under the open sky (primarily for hunters etc.) -#by Linnéa Thimrén -seduce_outcome.2304 = { - type = character_event - title = seduce_outcome.2304.t - desc = seduce_outcome.2304.desc - - theme = seduce_scheme - override_background = { - reference = terrain - } - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - weight_multiplier = { - base = 0.5 - modifier = { #Much more likely if target is a hunter - add = 2 - scope:target = { has_trait = lifestyle_hunter } - } - modifier = { #More likely if you're also a hunter! - add = 1 - has_trait = lifestyle_hunter - } - modifier = { - add = 0.5 - seduction_target_is_close_trigger = no - } - } - - immediate = { - select_local_animal_effect = { TYPE = harmless } # Save scope to limit possible animals: any/big/small/dangerous/harmless/prowling - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success):yes - owner_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2304.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2304.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3304 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Love letter -#by Linnéa Thimrén -seduce_outcome.2305 = { - type = character_event - title = seduce_outcome.2305.t - desc = { - desc = seduce_outcome.2305.desc_opening - desc = seduce_outcome.2305.desc_ending - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - weight_multiplier = { - base = 0.5 - modifier = { - add = 1 - scope:target = { has_learning_lifestyle_trait_trigger = yes } - } - modifier = { - add = 1 - scope:target = { has_trait = education_learning } - } - } - - immediate = { - save_scope_as = love_letter_target - scope:target = { - love_letter_calculation_effect = yes - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2305.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - flavor = { - first_valid = { - triggered_desc = { - trigger = { scope:target = { var:love_letter_quality = 1 } } - desc = seduce_outcome.2305.a_terrible - } - triggered_desc = { - trigger = { scope:target = { var:love_letter_quality = 2 } } - desc = seduce_outcome.2305.a_okay - } - triggered_desc = { - trigger = { scope:target = { var:love_letter_quality = 3 } } - desc = seduce_outcome.2305.a_great - } - triggered_desc = { - trigger = { scope:target = { var:love_letter_quality = 4 } } - desc = seduce_outcome.2305.a_amazing - } - } - } - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2305.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3305 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Seduce your spouse -#by Linnéa Thimrén -seduce_outcome.2306 = { - type = character_event - title = seduce_outcome.2306.t - desc = seduce_outcome.2306.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:target = { - is_spouse_of = root - } - } - - weight_multiplier = { - base = 10 - } - - immediate = { - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - set_object_of_significance_effect = ye - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success):s - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2306.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2306.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3306 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Seduction of rival -#by Linnéa Thimrén -seduce_outcome.2307 = { - type = character_event - title = seduce_outcome.2307.t - desc = seduce_outcome.2307.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - OR = { - has_relation_rival = scope:target - opinion = { - target = scope:target - value < medium_negative_opinion - } - reverse_opinion = { - target = scope:target - value < medium_negative_opinion - } - } - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2307.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2307.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3307 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Seduction of close family member -#by Linnéa Thimrén -seduce_outcome.2308 = { - type = character_event - title = seduce_outcome.2308.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:target } - } - desc = seduce_outcome.2308.desc_illigal - } - desc = seduce_outcome.2308.desc_not_illigal - } - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - is_close_or_extended_family_of = scope:target - } - - immediate = { - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - name = seduce_outcome.2308.a - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2308.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3308 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - -#Outcome using the sex scene generator -#by Linnéa Thimrén -seduce_outcome.2309 = { - type = character_event - title = seduce_outcome.2309.t - desc = { - desc = seduce_outcome.2309.desc_opening - desc = seduce_outcome.2309.desc_ending - } - - theme = seduce_scheme - override_background = { reference = bedchamber } - left_portrait = { - character = scope:target - animation = flirtation_left - } - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - NOR = { - has_trait = chaste - scope:target = { has_trait = chaste } - } - } - - weight_multiplier = { - base = 0.5 - modifier = { - add = 1 - scope:target = { has_trait = lustful } - } - modifier = { - add = 1 - has_trait = lustful - } - modifier = { - add = -2 - OR = { - has_sexuality = asexual - scope:target = { has_sexuality = asexual } - } - } - } - - immediate = { - hidden_effect = { - random = { - chance = 30 - set_random_sex_scene_location_effect = yes - transfer_sex_scene_location_to_character_effect = { CHARACTER = scope:target } - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - owner_seduce_outcome_sex_effect = yes - } - - option = { #Go for both consummation and relationship - name = seduce_outcome.2309.a - trigger = { seduce_outcome_become_lovers_trigger = yes } #Enabled if a player target said "lovers please" or target is AI - - owner_seduce_outcome_become_lovers_option_effects = yes - - ai_chance = { - base = 100 - } - } - - option = { #I'm just here for the fun time! - name = seduce_outcome.2301.b - trigger = { seduce_outcome_just_sex_trigger = yes } #Blocks this option for AI owners if the target is a player who said "lovers please" - - owner_seduce_outcome_just_sex_effects = yes - - ai_chance = { - base = 0 - ai_value_modifier = { - ai_greed = 0.25 - ai_vengefulness = 0.25 - } - } - } - - after = { - scope:target = { - trigger_event = seduce_outcome.3309 - } - show_as_tooltip = { - scope:scheme = { - end_scheme = yes - } - } - } -} - - - - - -#We were discovered! Triggered after the success event by owner_seduce_outcome_become_lovers_option_effects and owner_seduce_outcome_just_sex_effects -seduce_outcome.2900 = { #by Mathilda Bjarnehed - type = character_event - title = seduce_outcome.2900.t - desc = { - desc = seduce_outcome.2900.start.desc - triggered_desc = { - trigger = { exists = scope:capital } - desc = seduce_outcome.2900.capital.desc - } - desc = seduce_outcome.2900.end.desc - } - - theme = seduce_scheme - override_background = { - reference = terrain - } - left_portrait = scope:target - right_portrait = scope:target_liege - #No widget - - trigger = { - exists = scope:target.liege - } - - immediate = { - scope:target = { - liege = { - save_scope_as = target_liege - - if = { - limit = { exists = capital_barony } - capital_barony = { save_scope_as = capital } - } - } - } - } - - option = { - name = seduce_outcome.2900.a - - show_as_tooltip = { - seduce_outcome_success_discovered_effect = yes #This is actually applied in target_liege's event seduce_outcome.3901 - } - - scope:target.liege = { - trigger_event = seduce_outcome.3901 - } - } -} - - -###################################################### -# SUCCESS EVENTS FOR TARGET (mirror of owner's) -# 3000-3999 -###################################################### - -# Pope -seduce_outcome.3000 = { - type = character_event - title = seduce_outcome.2000.t - desc = seduce_outcome.3000.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3000.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_seduction_effect_pope - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2000.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -# Drunkards -seduce_outcome.3010 = { - type = character_event - title = seduce_outcome.2010.t - desc = seduce_outcome.3010.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - - play_music_cue = "mx_cue_seduction" - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2010.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_seducing_drunkards - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2010.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -# Privy -seduce_outcome.3020 = { - type = character_event - title = seduce_outcome.2020.t - desc = seduce_outcome.3020.desc - - theme = seduce_scheme - override_background = { - reference = courtyard - } - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2020.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_seducing_privy - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2020.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -# Gluttons -seduce_outcome.3030 = { - type = character_event - title = seduce_outcome.2030.t - desc = { - desc = seduce_outcome.3030.a.desc - triggered_desc = { - trigger = { - drinks_alcohol_trigger = yes - } - desc = seduce_outcome.3030.alcohol.desc - } - desc = seduce_outcome.3030.b.desc - } - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2030.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_glutton - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2030.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -# At the walls -seduce_outcome.3040 = { - type = character_event - title = seduce_outcome.2040.t - desc = seduce_outcome.3040.desc - - theme = seduce_scheme - override_background = { - reference = courtyard - } - left_portrait = scope:owner - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - - play_music_cue = "mx_cue_seduction" - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2040.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_walls - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2040.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -# Chaste -seduce_outcome.3050 = { - type = character_event - title = seduce_outcome.2050.t - desc = seduce_outcome.3050.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2050.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_chaste - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2050.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -#Owner comes to the target's chambers -seduce_outcome.3301 = { - type = character_event - title = seduce_outcome.3301.t - desc = seduce_outcome.3301.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - - play_music_cue = "mx_cue_seduction" - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3301.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - flavor = seduce_outcome.3301.a.tt - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_chambers - LOCATION = scope:seduction_location - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.3301.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -#Owner sneaks into target's court (distance seduction) -seduce_outcome.3302 = { - type = character_event - title = seduce_outcome.2302.t - desc = { - desc = seduce_outcome.3302.desc_opening - first_valid = { - triggered_desc = { - trigger = { - OR = { - scope:target = { court_owner = scope:target } - NOT = { exists = scope:target.court_owner } - } - } - desc = seduce_outcome.3302.desc_court_owner - } - desc = seduce_outcome.3302.desc_not_court_owner - } - desc = seduce_outcome.3302.desc_end - } - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - if = { - limit = { - NOT = { scope:target.court_owner = scope:target } - exists = scope:target.court_owner - } - scope:target.court_owner = { save_scope_as = court_owner } - } - if = { - limit = { exists = location } - location = { - save_scope_as = foreign_court - } - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as foreign_court } - } - else = { - random_province = { - save_scope_as = foreign_court - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - play_music_cue = "mx_cue_seduction" - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3302.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - REASON = lover_seduction_distance - LOCATION = scope:foreign_court - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -#Gregarious target(and owner), gushing compliments -seduce_outcome.3303 = { - type = character_event - title = seduce_outcome.2303.t - desc = seduce_outcome.3303.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - assign_quirk_effect = yes - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3303.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_gregarious - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -#Out in the woods -seduce_outcome.3304 = { - type = character_event - title = seduce_outcome.2304.t - desc = seduce_outcome.3304.desc - - theme = seduce_scheme - override_background = { - reference = terrain - } - left_portrait = scope:owner - - immediate = { - if = { - limit = { exists = var:animal_type } - set_variable = { - name = animal_type_old - value = var:animal_type - } - remove_variable = animal_type - } - select_local_animal_effect = { TYPE = harmless } # Save scope to limit possible animals: any/big/small/dangerous/harmless/prowling - - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3304.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_woods - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - remove_variable = animal_type - - if = { - limit = { has_variable = animal_type_old } - set_variable = { - name = animal_type - value = var:animal_type_old - } - remove_variable = animal_type_old - } - } -} - -#Love letter -seduce_outcome.3305 = { - type = character_event - title = seduce_outcome.2305.t - desc = seduce_outcome.3305.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - save_scope_as = love_letter_target - scope:owner = { - love_letter_calculation_effect = yes - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3305.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_letter - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - - -#Seduction of spouse -seduce_outcome.3306 = { - type = character_event - title = seduce_outcome.3306.t - desc = seduce_outcome.3306.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3306.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_spouse - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - - -#Seduction of rival -seduce_outcome.3307 = { - type = character_event - title = seduce_outcome.3307.t - desc = seduce_outcome.3307.desc - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3307.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_rival - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.3307.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - - -#Seduction of close family member -seduce_outcome.3308 = { - type = character_event - title = seduce_outcome.3308.t - desc = { - first_valid = { - triggered_desc = { - trigger = { - relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } - } - desc = seduce_outcome.3308.desc_illigal - } - desc = seduce_outcome.3308.desc_not_illigal - } - } - - theme = seduce_scheme - left_portrait = scope:owner - - immediate = { - scope:owner = { - assign_quirk_effect = yes - } - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.3308.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - if = { - limit = { - relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = scope:owner } - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_close_family - } - } - else = { - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = root.location - REASON = lover_close_family_legal - } - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.3307.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - -#Outcome using the sex scene generator -seduce_outcome.3309 = { - type = character_event - title = seduce_outcome.2309.t - desc = { - desc = seduce_outcome.3309.desc_opening - desc = seduce_outcome.3309.desc - } - - theme = seduce_scheme - left_portrait = { - character = scope:owner - animation = flirtation_left - } - - immediate = { - #Either runs had_sex_with_effect or shows a tooltip of it (effect is always just run once per success): - target_seduce_outcome_sex_effect = yes - - if = { - limit = { - exists = root.location - } - root.location = { save_scope_as = seduction_location } #Used only in the set_relation effect - } - else_if = { - limit = { - exists = scope:owner.location - } - scope:owner.location = { save_scope_as = seduction_location } - } - else = { - random_province = { - save_scope_as = seduction_location - } - } - } - - option = { #We went for both consummation and relationship - name = seduce_outcome.2309.a - trigger = { scope:owner = { has_character_flag = consummation_and_relationship } } - - if = { - limit = { - exists = var:sex_scene_location - var:sex_scene_location = flag:garden - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_garden - } - } - else_if = { - limit = { - exists = var:sex_scene_location - var:sex_scene_location = flag:private_chamber - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_private_chamber - } - } - else_if = { - limit = { - exists = var:sex_scene_location - var:sex_scene_location = flag:stable - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_stable - } - } - else_if = { - limit = { - exists = var:sex_scene_location - var:sex_scene_location = flag:copse - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_copse - } - } - else_if = { - limit = { - exists = var:sex_scene_location - var:sex_scene_location = flag:kitchen - } - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_kitchen - } - } - else = { - set_relation_lover_through_seduction_effect = { - CHARACTER = scope:owner - LOCATION = scope:seduction_location - REASON = lover_seduction_general - } - } - } - - option = { #We're just here for the fun time! - name = seduce_outcome.2302.b - trigger = { scope:owner = { NOT = { has_character_flag = consummation_and_relationship } } } - - scope:scheme = { - end_scheme = yes - } - } - - after = { - if = { - limit = { scope:owner = { has_character_flag = consummation_and_relationship } } - scope:owner = { remove_character_flag = consummation_and_relationship } - } - } -} - - -##We were discovered! Outcommented because the scheme target should always be unlanded if discovery happens. -#seduce_outcome.3900 = { #by Mathilda Bjarnehed -# type = character_event -# title = seduce_outcome.3900.t -# desc = seduce_outcome.3900.desc -# -# theme = seduce_scheme -# left_portrait = scope:owner -# right_portrait = scope:target_liege -# -# option = { -# name = seduce_outcome.2900.a - # -# show_as_tooltip = { - #seduce_outcome_success_discovered_effect = yes #This is actually applied in target_liege's event seduce_outcome.3901, sent by 3900 -# } -# -# scope:target_liege = { -# trigger_event = seduce_outcome.3901 -# } -# } -#} -#seduce_outcome.3900.t: "Discovered!" -#seduce_outcome.3900.desc: "Mere moments after I have kissed [owner.GetTitledFirstName] goodbye, my [ROOT.Char.Custom2('RelationToMeShort', SCOPE.sC('target_liege'))]'s enraged shouts cut through the peaceful silence.\n\nMy heart sinks like a stone.\n\nKnowing that there is nothing I can do or say to prevent the coming disaster, I brace myself for [target_liege.GetTitledFirstNamePossessive] wrath." - -#Discovery event for spouse/liege -seduce_outcome.3901 = { #by Mathilda Bjarnehed - type = character_event - title = seduce_outcome.3901.t - desc = seduce_outcome.3901.desc - - theme = seduce_scheme - override_background = { - reference = sitting_room - } - left_portrait = scope:owner - right_portrait = scope:target - #No scheme, no widget - - immediate = { - random_dummy_gender_servant_effect = yes - } - - option = { - name = seduce_outcome.3900.a - - scope:target = { seduce_outcome_success_discovered_effect = yes } - } -} - -###################################################### -# FAILURE EVENTS FOR OWNER -# 4000-4999 -###################################################### - -# Nice rejection - I don't think about you that way -# by Linnéa Thimrén and Mathilda Bjarnehed -seduce_outcome.4001 = { - type = character_event - title = seduce_outcome.4001.t - desc = { - first_valid = { - triggered_desc = { - trigger = { scope:target = { relation_with_character_is_incestuous_in_my_faith_trigger = { CHARACTER = root } } } - desc = seduce_outcome.4001.incest.desc - } - desc = seduce_outcome.4001.regular.desc - } - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - OR = { - NOT = { exists = scope:scheme_discovered } - exists = scope:target_chose_nice_reject #Player chose this outcome - } - } - - weight_multiplier = { - base = 0.75 - modifier = { - reverse_opinion = { - target = scope:target - value >= high_positive_opinion - } - factor = 1.3 - } - modifier = { - OR = { - has_relation_friend = scope:target - is_spouse_of = scope:target - } - factor = 1.3 - } - modifier = { #Very unlikely if they don't dislike you - NOR = { - reverse_opinion = { - target = scope:target - value >= low_positive_opinion - } - AND = { - scope:target = { ai_compassion >= medium_positive_ai_value } - reverse_opinion = { - target = scope:target - value >= low_negative_opinion - } - } - } - factor = 0.1 - } - } - - immediate = { - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - } - - option = { - name = seduce_outcome.4001.a - - scope:target = { seduction_cooldown_for_character_effect = { CHARACTER = scope:owner } } - - scope:scheme = { - end_scheme = yes - } - } -} - -# Never! Hard reject -# by Mathilda Bjarnehed -seduce_outcome.4002 = { - type = character_event - title = seduce_outcome.4001.t - desc = seduce_outcome.4002.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - OR = { - reverse_opinion = { #Dislikes you - target = scope:target - value < 0 - } - AND = { #Thinks that you're ugly - scope:target = { ai_compassion < medium_positive_ai_value } - attraction < 0 - } - ai_values_divergence = { #Very different - target = scope:target - value >= high_ai_values_divergence - } - scope:target = { has_trait = chaste } #Chaste - scope:target = { #This is not honorable - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = adulterer GENDER_CHARACTER = scope:target } - OR = { - ai_honor >= low_positive_ai_value - has_trait = zealous - has_trait = honest - } - } - } - NOT = { exists = scope:scheme_discovered } - NOT = { is_spouse_of = scope:target } - - # Disabled by Graceful Recovery Perk - NOT = { has_perk = graceful_recovery_perk } - } - - weight_multiplier = { - base = 1 - modifier = { - reverse_opinion = { - target = scope:target - value >= high_positive_opinion - } - factor = 0.1 - } - } - - - option = { - name = seduce_outcome.4002.a - - scope:target = { seduction_block_character_effect = { CHARACTER = scope:owner } } - - scope:scheme = { - end_scheme = yes - } - } -} - -# Never! And I will tell everyone! (reveals, not dependent of discovery roll) -# by Mathilda Bjarnehed -seduce_outcome.4003 = { - type = character_event - title = seduce_outcome.4003.t - desc = { - random_valid = { - triggered_desc = { #They have a mean plot - trigger = { - scope:target = { - OR = { - opinion = { - target = root - value < 0 - } - ai_honor <= low_negative_ai_value - ai_compassion <= low_negative_ai_value - ai_vengefulness >= low_positive_ai_value - has_trait = sadistic - has_trait = vengeful - has_trait = deceitful - } - } - NOR = { - has_trait = compassionate - has_trait = chaste - has_trait = zealous - } - } - desc = seduce_outcome.4003.plot.desc - } - desc = seduce_outcome.4003.regular.desc - } - } - theme = seduce_scheme - left_portrait = { - character = scope:target - animation = anger - } - - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - OR = { - #Regular conditions - reverse_opinion = { #Dislikes you - target = scope:target - value < 0 - } - AND = { #Thinks that you're ugly - scope:target = { ai_compassion < medium_positive_ai_value } - attraction < 0 - } - ai_values_divergence = { #Very different - target = scope:target - value >= high_ai_values_divergence - } - scope:target = { has_trait = chaste } #Chaste - scope:target = { #This is not honorable - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = adulterer GENDER_CHARACTER = scope:target } - OR = { - ai_honor >= low_positive_ai_value - has_trait = zealous - has_trait = honest - } - } - #Was triggered by player choice - exists = scope:target_chose_mean_reject - } - NOT = { is_consort_of = scope:target } - - #Disabled by Graceful Recovery Perk - NOT = { has_perk = graceful_recovery_perk } - } - - weight_multiplier = { - base = 0.5 - modifier = { - scope:target = { ai_vengefulness >= medium_positive_ai_value } - add = 1 - } - modifier = { - scope:target = { ai_compassion < medium_positive_ai_value } - add = 1 - } - modifier = { - has_relation_rival = scope:target - add = 2 - } - modifier = { - has_trait = zealous - add = 1 - } - modifier = { - #A fellow homo-/bisexual character will hesitate to call you out in public - scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = root } } - add = -0.5 - } - } - - immediate = { play_music_cue = "mx_cue_negative" } - - option = { - name = { - text = seduce_outcome.4003.a.plot - trigger = { - scope:target = { - OR = { - opinion = { - target = root - value < 0 - } - ai_honor <= low_negative_ai_value - ai_compassion <= low_negative_ai_value - ai_vengefulness >= low_positive_ai_value - has_trait = sadistic - has_trait = vengeful - has_trait = deceitful - } - } - NOR = { - has_trait = compassionate - has_trait = chaste - has_trait = zealous - } - } - } - name = seduce_outcome.4003.a.regular - if = { - limit = { - OR = { - scope:target = { is_landed = yes } - AND = { - exists = host - host = root - } - } - } - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } - else_if = { - limit = { - scope:target = { - exists = liege - NOT = { liege = scope:owner } - } - } - show_as_tooltip = { - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } - scope:target = { liege = { trigger_event = seduce_outcome.4900 } } - } - - scope:target = { seduction_block_character_effect = { CHARACTER = scope:owner } } - - scope:scheme = { - end_scheme = yes - } - } -} - - -# We cannot be together (it would be incest or sodomy) -# by Mathilda Bjarnehed -seduce_outcome.4004 = { - type = character_event - title = seduce_outcome.4004.t - desc = { - desc = seduce_outcome.4004.start.desc - first_valid = { - triggered_desc = { - trigger = { scope:target = { relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = root } } } - desc = seduce_outcome.4004.incest.desc - } - triggered_desc = { - trigger = { scope:target = { relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = root } } } - desc = seduce_outcome.4004.sodomy.desc - } - } - desc = seduce_outcome.4004.end.desc - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:target = { - OR = { - relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = root } - AND = { - relation_with_character_is_sodomy_in_my_or_lieges_faith_trigger = { CHARACTER = root } - opinion = { - target = root - value >= low_positive_opinion - } - OR = { - opinion = { - target = root - value >= medium_positive_opinion - } - has_trait = lustful - root = { attraction >= low_positive_attraction } - } - } - } - } - NOT = { exists = scope:scheme_discovered } - } - - weight_multiplier = { - base = 1 - modifier = { - reverse_opinion = { - target = scope:target - value >= high_positive_opinion - } - add = 1 - } - } - - option = { - name = seduce_outcome.4004.a - - scope:target = { seduction_cooldown_for_character_effect = { CHARACTER = scope:owner } } - - hidden_effect = { - if = { - limit = { - can_set_relation_potential_lover_trigger = { CHARACTER = scope:target } - } - random = { - chance = 50 - set_relation_potential_lover = scope:target - } - } - } - - scope:scheme = { - end_scheme = yes - } - } -} - -# Discovered failure! -# by Mathilda Bjarnehed -seduce_outcome.4005 = { - type = character_event - title = seduce_outcome.2900.t - desc = seduce_outcome.4005.desc - - theme = seduce_scheme - override_background = { - reference = courtyard - } - left_portrait = scope:target - right_portrait = scope:target_liege - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - exists = scope:scheme_discovered - scope:target = { - is_landed = no - exists = host - } - } - - immediate = { - scope:target = { host = { save_scope_as = target_liege } } - } - - option = { - name = seduce_outcome.4005.a - - show_as_tooltip = { - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } #Is actually applied in 4900 - - scope:target = { seduction_cooldown_for_character_effect = { CHARACTER = scope:owner } } - - scope:scheme = { - end_scheme = yes - } - #Send "failed seduction attempt discovered" event to target's liege - scope:target_liege = { trigger_event = seduce_outcome.4900 } - } -} - -# Nice...? rejection - Thanks for the attention -# by Bianca Savazzi -seduce_outcome.4100 = { - type = character_event - title = seduce_outcome.4001.t - desc = { - desc = seduce_outcome.4100.desc - first_valid = { - triggered_desc = { - trigger = { - scope:target = { - is_married = yes - any_consort = { NOT = { this = scope:owner } } - } - } - desc = seduce_outcome.4100.desc_married - } - desc = seduce_outcome.4100.desc_fallback - } - } - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - scope:target = { - is_ai = yes - OR = { - has_trait = seducer - has_trait = lustful - has_trait_malicious_trigger = yes - } - any_consort = { NOT = { this = scope:owner } } - } - NOT = { exists = scope:scheme_discovered } - } - - weight_multiplier = { - base = 1 - modifier = { - reverse_opinion = { - target = scope:target - value >= high_positive_opinion - } - factor = 1.3 - } - modifier = { - has_trait_malicious_trigger = yes - factor = 1.2 - } - modifier = { - has_trait = lustful - factor = 1.5 - } - modifier = { - has_trait = seducer - factor = 2 - } - modifier = { - OR = { - can_touch_someone_trigger = no - scope:target = { can_touch_someone_trigger = no } - } - factor = 0.5 - } - } - - immediate = { - scope:target = { - if = { - limit = { exists = primary_spouse } - primary_spouse = { save_scope_as = target_spouse } - } - } - } - - option = { - name = seduce_outcome.4100.a - - scope:target = { seduction_cooldown_for_character_effect = { CHARACTER = scope:owner } } - - scope:scheme = { - end_scheme = yes - } - } -} - -# Target's host get notified of your attempt -# by Mathilda Bjarnehed -seduce_outcome.4900 = { - type = character_event - title = seduce_outcome.3901.t - desc = seduce_outcome.4900.desc - theme = seduce_scheme - override_background = { - reference = corridor_night - } - left_portrait = scope:owner - right_portrait = scope:target - - immediate = { save_scope_as = target_liege } - - option = { - name = { - trigger = { - OR = { - is_spouse_of = scope:target - is_close_or_extended_family_of = scope:target - } - } - text = seduce_outcome.4900.a.family - } - name = { - trigger = { - NOR = { - is_spouse_of = scope:target - is_close_or_extended_family_of = scope:target - } - } - text = seduce_outcome.4900.a.courtier - } - - - scope:owner = { - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } - } -} - -########################## -# EARLY OUTCOMES -# 8100-8999 -########################## - -#Target: Close family hard reject choice -#by Linnéa Thimrén -seduce_outcome.8101 = { - type = character_event - title = seduce_outcome.8101.t - desc = { - desc = seduce_outcome.8101.desc - first_valid = { - #It's love! - triggered_desc = { - trigger = { - OR = { - has_relation_potential_lover = scope:owner - AND = { - accepts_incest_with_trigger = { CHARACTER = scope:owner } - opinion = { - target = scope:owner - value >= 50 - } - } - } - } - desc = seduce_outcome.8101.desc_positive - } - #I hate them / it's forbidden! - triggered_desc = { - trigger = { - OR = { - opinion = { - target = scope:owner - value < 0 - } - has_relation_rival = scope:owner - AND = { - relation_with_character_is_incestuous_in_my_or_lieges_faith_trigger = { CHARACTER = scope:owner } - has_negative_attitude_towards_trait_trigger = { TRAIT = incestuous GENDER_CHARACTER = scope:owner } - } - } - } - desc = seduce_outcome.8101.desc_negative - } - #Neutral - desc = seduce_outcome.8101.desc_neutral - } - } - - theme = seduce_scheme - left_portrait = scope:owner - - trigger = { - exists = scope:scheme - scope:owner = { is_alive = yes } - } - - immediate = { - hidden_effect = { - #For clearer and more controllable ai outcomes, we determine the outcome here: - - #HARD REJECT OR NOT? - if = { # Guaranteed rejection - limit = { guaranteed_under_20_incest_rejection_trigger = { TARGET = scope:target SEDUCER = scope:owner } } - save_scope_value_as = { - name = incest_outcome - value = flag:reject - } - } - else_if = { #Guaranteed acceptance (as long as guaranteed_under_20_incest_rejection_trigger is false) - limit = { scope:owner = { has_perk = subtle_desire_perk } } - save_scope_value_as = { - name = incest_outcome - value = flag:accept - } - } - else = { #Randomization - random = { - chance = 100 - incest_acceptance_modifier = { #A factor between 1 and 0 - TARGET = scope:target - SEDUCER = scope:owner - } - save_scope_value_as = { - name = incest_outcome - value = flag:accept - } - } - if = { - limit = { NOT = { exists = scope:incest_outcome } } - save_scope_value_as = { - name = incest_outcome - value = flag:reject - } - } - } - - #SPECIFY REJECTION TYPE - if = { - limit = { - exists = scope:incest_outcome - scope:incest_outcome = flag:reject - } - - #What kind of reject? - random_list = { - 30 = { #Reveal - opinion_modifier = { - opinion_target = scope:owner - multiplier = -0.25 - } - ai_value_modifier = { - ai_boldness = 0.5 - ai_compassion = -0.5 - ai_vengefulness = 0.5 - } - ai_boldness_target_modifier = { VALUE = 100 } - ai_vengefulness_target_modifier = { VALUE = 100 } - min = 1 # To ensure 'incest_outcome' is never left unset. - - save_scope_value_as = { - name = incest_outcome - value = flag:reject_reveal - } - } - 70 = { #Silent reject - opinion_modifier = { - opinion_target = scope:owner - multiplier = 0.25 - } - modifier = { #Less harsh on child - is_parent_of = scope:owner - add = 30 - } - modifier = { #Less harsh if you stand to inherit - is_heir_of = scope:owner - add = 30 - } - ai_value_modifier = { - ai_boldness = -0.5 - ai_compassion = 0.5 - ai_vengefulness = -0.5 - } - ai_greed_target_modifier = { VALUE = 75 } - min = 1 # To ensure 'incest_outcome' is never left unset. - - save_scope_value_as = { - name = incest_outcome - value = flag:reject_no_reveal - } - } - } - } - } - } - - option = { #Leave me be!! - name = seduce_outcome.8101.a - trigger = { - trigger_if = { - limit = { - OR = { - faith = { has_doctrine = doctrine_consanguinity_unrestricted } - scope:owner = { has_perk = graceful_recovery_perk } - } - } - is_ai = no - } - } - - reverse_add_opinion = { - target = scope:owner - modifier = refusal_opinion - opinion = -20 - } - - seduction_block_character_effect = { CHARACTER = scope:owner } - - scope:owner = { - trigger_event = seduce_outcome.8102 - } - - ai_chance = { - base = 0 - modifier = { - add = 100 - scope:incest_outcome = flag:reject_no_reveal - } - } - } - - option = { #I will tell everyone about this! - name = seduce_outcome.8101.c - trigger = { - trigger_if = { - limit = { - scope:owner = { has_perk = graceful_recovery_perk } - } - is_ai = no - } - NOT = { - faith = { has_doctrine = doctrine_consanguinity_unrestricted } - } - } - - reverse_add_opinion = { - target = scope:owner - modifier = angry_opinion - opinion = -35 - } - - seduction_block_character_effect = { CHARACTER = scope:owner } - - #Reveals incest (and sodomy/adultery) - show_as_tooltip = { - scope:owner = { - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - } - } - - scope:owner = { - trigger_event = seduce_outcome.8103 - } - - ai_chance = { - base = 0 - modifier = { - add = 100 - scope:incest_outcome = flag:reject_reveal - } - } - } - - option = { #Sin be damned, lets go! - name = seduce_outcome.8101.b - custom_tooltip = seduce_outcome.8101.b.tt - - ai_chance = { - base = 0 - modifier = { - add = 100 - scope:incest_outcome = flag:accept - } - } - } -} - - -#Owner: Rejected by close family -#by Linnéa Thimrén -seduce_outcome.8102 = { - type = character_event - title = seduce_outcome.8102.t - desc = seduce_outcome.8102.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - immediate = { - scope:target = { - if = { - limit = { root = { is_ai = no } } - assign_quirk_effect = yes - } - } - } - - option = { - name = seduce_outcome.8102.a - custom_tooltip = seduce_outcome.blocked_from_seduction - - scope:target = { seduction_block_character_effect = { CHARACTER = scope:owner } } - - if = { - limit = { exists = scope:scheme } - scope:scheme = { - end_scheme = yes - } - } - - reverse_add_opinion = { - target = scope:target - modifier = respect_opinion - opinion = -25 - } - } -} - -#Owner: Rejected by close family, and revealed! -#by Linnéa Thimrén -seduce_outcome.8103 = { - type = character_event - title = seduce_outcome.8103.t - desc = seduce_outcome.8103.desc - - theme = seduce_scheme - left_portrait = scope:target - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - immediate = { - scope:target = { - assign_quirk_effect = yes - } - } - - option = { - name = seduce_outcome.8103.a - custom_tooltip = seduce_outcome.blocked_from_seduction - - seduce_outcome_publicised_attempted_crimes_or_nothing_effect = { - TARGET = scope:target - OWNER = scope:owner - } - - scope:target = { seduction_block_character_effect = { CHARACTER = scope:owner } } - - if = { - limit = { exists = scope:scheme } - scope:scheme = { - end_scheme = yes - } - } - - reverse_add_opinion = { - target = scope:target - modifier = respect_opinion - opinion = -40 - } - } -} diff --git a/events/scheme_events/steal_back_artifact_scheme/steal_back_artifact_ongoing_events.txt b/events/scheme_events/steal_back_artifact_scheme/steal_back_artifact_ongoing_events.txt index 15bb97dbc1..71bf8b2daf 100644 --- a/events/scheme_events/steal_back_artifact_scheme/steal_back_artifact_ongoing_events.txt +++ b/events/scheme_events/steal_back_artifact_scheme/steal_back_artifact_ongoing_events.txt @@ -162,7 +162,7 @@ steal_back_artifact_ongoing.1001 = { if = { limit = { scope:scheme = { - any_scheme_agent = { + any_scheme_agent_character = { is_ai = yes has_trait_beauty_good_trigger = yes scope:antiquarian = { is_attracted_to_gender_of = prev } @@ -170,7 +170,7 @@ steal_back_artifact_ongoing.1001 = { } } scope:scheme = { - random_scheme_agent = { + random_scheme_agent_character = { limit = { is_adult = yes has_trait_beauty_good_trigger = yes @@ -372,103 +372,103 @@ steal_back_artifact_ongoing.1001 = { } } -steal_back_artifact_ongoing.1002 = { - type = character_event - title = steal_back_artifact_ongoing.1002.t - desc = steal_back_artifact_ongoing.1002.desc - theme = generic_intrigue_scheme - - left_portrait = scope:agent - - widget = { - gui = "event_window_widget_scheme" - container = "custom_widgets_container" - } - - trigger = { - exists = scope:scheme - scope:scheme = { - NOT = { has_variable = had_event_steal_back_artifact_ongoing_1002 } - - any_scheme_agent = { - count > 0 - } - } - } - - immediate = { - scope:scheme = { - set_variable = { - name = had_event_steal_back_artifact_ongoing_1002 - value = yes - days = 3650 - } - random_scheme_agent = { - # Opinion outcome has a higher impact if the agent picked is of interest - weight = { - base = 1 - modifier = { - add = 10 - is_of_major_interest_to_root_trigger = yes - } - modifier = { - add = 5 - is_of_minor_interest_to_root_trigger = yes - } - } - save_scope_as = agent - } - } - } - - option = { # micromanage - name = steal_back_artifact_ongoing.1002.a - scope:agent = { - add_opinion = { - modifier = annoyed_opinion - target = root - opinion = -30 - } - } - add_character_modifier = { - modifier = micromanaging_modifier - years = 5 - } - scope:scheme = { - add_scheme_progress = scheme_progress_gain - } - stress_impact = { - lazy = major_stress_impact_gain - } - ai_chance = { - base = 5 - modifier = { - add = 45 - OR = { - has_trait = ambitious - has_trait = diligent - } - } - } - } - - option = { #Do nothing - name = steal_back_artifact_ongoing.1002.b - - scope:agent = { - add_opinion = { - modifier = trust_opinion - target = root - opinion = 15 - } - } - - ai_chance = { - base = 5 - modifier = { - add = 45 - has_trait = lazy - } - } - } -} +#steal_back_artifact_ongoing.1002 = { +# type = character_event +# title = steal_back_artifact_ongoing.1002.t +# desc = steal_back_artifact_ongoing.1002.desc +# theme = generic_intrigue_scheme +# +# left_portrait = scope:agent +# +# widget = { +# gui = "event_window_widget_scheme" +# container = "custom_widgets_container" +# } +# +# trigger = { +# exists = scope:scheme +# scope:scheme = { +# NOT = { has_variable = had_event_steal_back_artifact_ongoing_1002 } +# +# any_scheme_agent_character = { +# count > 0 +# } +# } +# } +# +# immediate = { +# scope:scheme = { +# set_variable = { +# name = had_event_steal_back_artifact_ongoing_1002 +# value = yes +# days = 3650 +# } +# random_scheme_agent_character = { +# # Opinion outcome has a higher impact if the agent picked is of interest +# weight = { +# base = 1 +# modifier = { +# add = 10 +# is_of_major_interest_to_root_trigger = yes +# } +# modifier = { +# add = 5 +# is_of_minor_interest_to_root_trigger = yes +# } +# } +# save_scope_as = agent +# } +# } +# } +# +# option = { # micromanage +# name = steal_back_artifact_ongoing.1002.a +# scope:agent = { +# add_opinion = { +# modifier = annoyed_opinion +# target = root +# opinion = -30 +# } +# } +# add_character_modifier = { +# modifier = micromanaging_modifier +# years = 5 +# } +# scope:scheme = { +# add_scheme_progress = scheme_progress_gain +# } +# stress_impact = { +# lazy = major_stress_impact_gain +# } +# ai_chance = { +# base = 5 +# modifier = { +# add = 45 +# OR = { +# has_trait = ambitious +# has_trait = diligent +# } +# } +# } +# } +# +# option = { #Do nothing +# name = steal_back_artifact_ongoing.1002.b +# +# scope:agent = { +# add_opinion = { +# modifier = trust_opinion +# target = root +# opinion = 15 +# } +# } +# +# ai_chance = { +# base = 5 +# modifier = { +# add = 45 +# has_trait = lazy +# } +# } +# } +#} diff --git a/events/stress_events/stress_threshold_prison_events.txt b/events/stress_events/stress_threshold_prison_events.txt index 362987e21c..29d137097f 100644 --- a/events/stress_events/stress_threshold_prison_events.txt +++ b/events/stress_events/stress_threshold_prison_events.txt @@ -1178,10 +1178,9 @@ stress_threshold_prison.3001 = { faith = root.faith save_scope_as = fictional_friend } - scope:fictional_friend = { add_character_flag = high_noble_clothing } - - # Warcraft - scope:fictional_friend = { + scope:fictional_friend = { + add_character_flag = high_noble_clothing + # Warcraft trigger_race_giving_no_gene_effect = yes #Assigns race trait }