diff --git a/events/accolade_events.txt b/events/accolade_events.txt index 932ddfc11..f24906e61 100644 --- a/events/accolade_events.txt +++ b/events/accolade_events.txt @@ -150,3 +150,344 @@ accolade.0002 = { } } } + +#Create a sellsword band led by your Acclaimed Knight +accolade.0100 = { + type = character_event + title = accolade.0100.t + desc = accolade.0100.desc + theme = war + + left_portrait = { + character = root + animation = frontend_left_idle + camera = camera_event_left_to_the_left + } + right_portrait = { + character = scope:recipient + animation = sword_coup_degrace + } + + #NAMING WIDGET + widget = { + gui = "event_window_widget_enter_text" + container = "dynamic_birth_name" + controller = { + type = text + data = { + key = new_laamp_title_name + ### Accolade's Name + default = { + localization_key = accolade_mercenary_accolade_name + trigger = { + exists = scope:accolade + root = { is_ai = no } + } + } + default = { + localization_key = accolade_mercenary_kings_men_name + trigger = { + root = { + prestige_level >= 3 + } + scope:acclaimed_knight = { + is_male = yes + } + } + } + default = { + localization_key = accolade_mercenary_knightly_company_name + trigger = { + root = { + culture = { + OR = { + has_graphical_western_culture_group_trigger = yes + has_graphical_iberian_culture_group_trigger = yes + } + } + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + AND = { + NOT = { + government_has_mechanic = administrative + } + culture = { + NOT = { has_cultural_era_or_later = culture_era_high_medieval } + } + } + } + } + } + } + default = { + localization_key = accolade_honor_band_name + trigger = { + root = { + OR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + AND = { + NOT = { + government_has_mechanic = administrative + } + culture = { + NOT = { has_cultural_era_or_later = culture_era_high_medieval } + } + } + } + } + } + } + default = { + localization_key = accolade_rulers_swords_name + trigger = { + root = { + OR = { + government_has_flag = government_is_tribal + AND = { + NOT = { + government_has_mechanic = administrative + } + culture = { + NOT = { has_cultural_era_or_later = culture_era_high_medieval } + } + } + } + NOT = { government_has_flag = government_is_nomadic } + } + } + } + default = { + localization_key = accolade_culture_riders_name + trigger = { + root = { + government_has_flag = government_is_nomadic + } + } + } + default = { + localization_key = accolade_culture_company_name + trigger = { + root = { + NOR = { + government_has_flag = government_is_tribal + government_has_flag = government_is_nomadic + AND = { + NOT = { + government_has_mechanic = administrative + } + culture = { + NOT = { has_cultural_era_or_later = culture_era_high_medieval } + } + } + } + } + } + } + default = { + localization_key = accolade_free_knights_name + #Only triggers when King X's Men doesn't + trigger = { + OR = { + root = { + prestige_level < 3 + } + scope:acclaimed_knight = { + is_male = no + } + } + } + } + } + } + setup_scope = { + scope:acclaimed_knight = { save_scope_as = text_target } + } + } + + immediate = { + scope:acclaimed_knight = { save_scope_as = acclaimed_mercenary } + play_music_cue = "mx_cue_combat_2" + } + option = { + trigger = { + is_ai = no + has_dlc_feature = landless_playable + } + name = accolade.0100.a_special + add_internal_flag = dangerous + custom_tooltip = switch_to_acclaimed_mercenary_tt + if = { + limit = { + NOT = { + scope:recipient.dynasty ?= scope:actor.dynasty + } + } + custom_tooltip = danger_dynasty_abandon_tt + } + save_scope_as = switch + add_character_flag = { + flag = switching_to_knight + days = 20 + } + + + ai_chance = { + base = 0 + } + } + option = { + name = accolade.0100.a + + scope:accolade_owner = { + custom_tooltip = accolade_mercenary_gold_tt + scope:acclaimed_knight = { + set_variable = { + name = acc_merc_patron + value = scope:accolade_owner + } + } + } + } + + after = { + clear_variable_list = realm_title_names + + scope:acclaimed_knight = { + if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_mercenary_accolade_name + } + add_character_flag = { + flag = accolade_mercenary_accolade_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_mercenary_kings_men_name + } + add_character_flag = { + flag = accolade_mercenary_kings_men_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_mercenary_knightly_company_name + } + add_character_flag = { + flag = accolade_mercenary_knightly_company_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_honor_band_name + } + add_character_flag = { + flag = accolade_honor_band_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_rulers_swords_name + } + add_character_flag = { + flag = accolade_rulers_swords_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_culture_riders_name + } + add_character_flag = { + flag = accolade_culture_riders_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_free_knights_name + } + add_character_flag = { + flag = accolade_free_knights_name + days = 20 + } + } + else_if = { + limit = { + var:new_laamp_title_name ?= flag:accolade_culture_company_name + } + add_character_flag = { + flag = accolade_culture_company_name + days = 20 + } + } + else = { + add_character_flag = { + flag = new_laamp_title_name_entered_text + days = 20 + } + } + accolade_to_mercenary_effect = yes + } + } +} +#Sellsword band sends you gold +accolade.0110 = { + hidden = yes + immediate = { + send_interface_message = { + type = msg_accolade_merc + title = accolade_merc_gold.t + left_icon = scope:accolade_merc + desc = accolade_merc_gold.desc + scope:accolade_merc = { + #Send a little bit of gold + if = { + limit = { + gold > 0 + } + if = { + limit = { + gold >= five_times_monumental_value + } + pay_short_term_gold = { + target = root + gold = massive_gold_value + } + } + else_if = { + limit = { + gold >= monumental_gold_value + } + pay_short_term_gold = { + target = root + gold = medium_gold_value + } + } + else = { + pay_short_term_gold = { + target = root + gold = minor_gold_value + } + } + } + #If you have no gold, secretly gain it and then send it + else = { + hidden_effect = { + add_gold = minor_gold_value + } + pay_short_term_gold = { + target = root + gold = minor_gold_value + } + } + } + } + } +} diff --git a/events/board_game_events.txt b/events/board_game_events.txt index fdd010fb3..ed52941a0 100644 --- a/events/board_game_events.txt +++ b/events/board_game_events.txt @@ -2860,7 +2860,7 @@ board_games.0031 = { # Display ending type. bg_victor_end_result_tooltip_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { gregarious = miniscule_stress_impact_loss arrogant = minor_stress_impact_gain } @@ -2915,7 +2915,7 @@ board_games.0031 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = miniscule_stress_impact_loss # Removed: Lustful } @@ -2943,7 +2943,7 @@ board_games.0031 = { RECIPIENT = scope:bg_loser } - stress_impact = { + stress_and_fulfillment_impact = { humble = miniscule_stress_impact_loss forgiving = miniscule_stress_impact_loss gregarious = miniscule_stress_impact_loss @@ -3144,7 +3144,7 @@ board_games.0041 = { # Display ending type. bg_loser_end_result_tooltip_effect = yes - stress_impact = { + stress_and_fulfillment_impact = { gregarious = miniscule_stress_impact_loss arrogant = minor_stress_impact_gain vengeful = minor_stress_impact_gain @@ -3195,7 +3195,7 @@ board_games.0041 = { } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss vengeful = miniscule_stress_impact_loss humble = medium_stress_impact_gain @@ -3225,7 +3225,7 @@ board_games.0041 = { RECIPIENT = scope:bg_victor } - stress_impact = { + stress_and_fulfillment_impact = { humble = miniscule_stress_impact_loss forgiving = miniscule_stress_impact_loss gregarious = miniscule_stress_impact_loss diff --git a/events/bookmark_events.txt b/events/bookmark_events.txt index a7a76f343..6438920c2 100644 --- a/events/bookmark_events.txt +++ b/events/bookmark_events.txt @@ -1,2497 +1,3 @@ -# -#namespace = bookmark -# -# -################################ -## 867 - WRATH OF THE NORTHMEN # -################################ -# -####Æthelred isn't as cool as Alfred so we kill him -#bookmark.0001 = { #by Mathilda Bjarnehed -# type = character_event -# hidden = yes -# -# trigger = { -# this = character:33358 #Æthelred -# is_ai = yes -# player_heir ?= character:7627 #Alfred the Great -# } -# -# immediate = { -# if = { -# limit = { is_at_war = yes } -# -# random_list = { -# 20 = { #Very wounded -# increase_wounds_effect = { REASON = battle } -# if = { -# limit = { is_alive = yes } -# increase_wounds_effect = { REASON = battle } -# } -# if = { -# limit = { is_alive = yes } -# increase_wounds_effect = { REASON = battle } -# } -# if = { -# limit = { is_alive = yes } -# increase_wounds_effect = { REASON = battle } -# } -# } -# 80 = { #Killed -# random_war_enemy = { -# if = { -# limit = { is_commanding_army = yes } -# save_scope_as = killer -# } -# else = { -# random_knight = { -# save_scope_as = killer -# } -# } -# } -# if = { -# limit = { exists = scope:killer } -# death = { -# death_reason = death_hunting_accident -# killer = scope:killer -# } -# } -# } -# } -# } -# else = { -# random_list = { -# 10 = { #Cancer -# contract_disease_effect = { DISEASE = cancer TREATMENT_EVENT = no } -# } -# 90 = { #Hunting accident -# death = { -# death_reason = death_hunting_accident -# } -# } -# } -# } -# } -#} -# -#### Alfred is pretty cool so we give him a nickname -#bookmark.0002 = { #by Mathilda Bjarnehed -# type = character_event -# title = bookmark.0002.t -# desc = bookmark.0002.desc -# theme = crown -# left_portrait = { -# character = root -# animation = personality_honorable -# } -# -# trigger = { -# is_ai = no -# top_liege = this -# } -# -# #Resend -# on_trigger_fail = { -# if = { -# limit = { is_ai = no } -# trigger_event = { -# id = bookmark.0002 -# days = 1800 #~5 years -# } -# } -# } -# -# immediate = { -# play_music_cue = "mx_cue_positive_effect" -# capital_province = { save_scope_as = capital } -# random_realm_province = { -# limit = { this != scope:capital } -# save_scope_as = province -# } -# give_nickname = nick_the_great -# } -# -# option = { -# name = bookmark.0002.a -# } -#} -# -#### The Ragnarsson brothers catch King Aella ## -## The event can trigger when you imprison Aella as one of his sons -## It also works for other norse! -# -#bookmark.0003 = { #by Mathilda Bjarnehed -# type = character_event -# hidden = yes -# -# trigger = { -# scope:imprisoner.faith = { trait_is_virtue = vengeful } -# scope:imprisoner = { -# any_close_family_member = { -# even_if_dead = yes -# killer ?= root -# save_temporary_scope_as = killed_character -# } -# } -# #If the imprisoner don't know you're the killer you might reveal yourself if you're dumb or not sneaky -# trigger_if = { -# limit = { -# any_secret = { -# type = secret_murder -# secret_target = scope:killed_character -# NOT = { any_secret_knower = { this = scope:imprisoner } } -# } -# } -# OR = { -# has_trait = intellect_bad -# has_trait = dull -# intrigue <= medium_skill_rating -# } -# NOR = { -# has_trait = shrewd -# has_trait = intellect_good -# has_trait = schemer -# } -# } -# trigger_if = { -# limit = { this = character:163103 } #Aella -# NOT = { -# is_target_in_global_variable_list = { -# name = triggered_bookmark_events -# target = flag:bookmark_867_northmen_aellas_capture -# } -# } -# } -# } -# -# immediate = { -# if = { -# limit = { this = character:163103 } #Aella -# add_to_global_variable_list = { -# name = triggered_bookmark_events -# target = flag:bookmark_867_northmen_aellas_capture -# } -# } -# save_scope_as = prisoner -# -# scope:imprisoner = { -# random_close_family_member = { -# even_if_dead = yes -# limit = { -# killer ?= root -# this = character:163109 #Lodbrok -# } -# alternative_limit = { -# killer ?= root -# } -# save_scope_as = dead -# } -# trigger_event = { -# id = bookmark.0004 -# days = 1 -# } -# } -# } -#} -# -#bookmark.0004 = { #by Mathilda Bjarnehed -# type = character_event -# title = bookmark.0004.t -# desc = { -# first_valid = { -# triggered_desc = { -# trigger = { #You did not know they had killed your family-member -# scope:prisoner = { -# any_secret = { -# type = secret_murder -# secret_target = scope:dead -# NOT = { any_secret_knower = { this = root } } -# } -# } -# } -# desc = bookmark.0004.desc_unknown -# } -# desc = bookmark.0004.desc -# } -# } -# theme = dungeon -# left_portrait = { -# character = scope:prisoner -# animation = fear -# } -# lower_right_portrait = scope:dead -# -# trigger = { -# NOT = { -# any_in_list = { -# list = captured_rivals -# this = scope:prisoner -# } -# } -# } -# -# immediate = { -# play_music_cue = "mx_cue_murder" -# if = { -# limit = { -# scope:prisoner = { -# any_secret = { -# type = secret_murder -# secret_target = scope:dead -# NOT = { any_secret_knower = { this = root } } -# } -# } -# } -# scope:prisoner = { -# random_secret = { -# type = secret_murder -# limit = { -# secret_target = scope:dead -# NOT = { any_secret_knower = { this = root } } -# } -# reveal_to = root -# } -# } -# } -# } -# -# #Blood eagle -# option = { -# name = bookmark.0004.a -# -# add_dread = medium_dread_gain -# add_prestige = medium_prestige_gain -# scope:prisoner = { -# death = { -# death_reason = death_execution_blood_eagle -# killer = root -# } -# } -# scope:dead = { -# every_close_family_member = { -# custom = bookmark.0004.a.custom -# limit = { this != root } -# add_opinion = { -# modifier = pleased_opinion -# opinion = 30 -# target = root -# } -# } -# } -# execute_opinion_effect = { VICTIM = scope:prisoner EXECUTIONER = root } -# -# ai_chance = { -# base = 50 -# modifier = { -# scope:dead = character:163109 #Lodbrok -# add = 1000 -# } -# } -# } -# -# #Sacrifice to Odin -# option = { -# name = bookmark.0004.b -# trigger = { faith = { has_doctrine_parameter = human_sacrifice_active } } -# -# add_piety = major_piety_gain -# scope:prisoner = { -# death = { -# death_reason = death_execution_blood_eagle -# killer = root -# } -# } -# scope:dead = { -# every_close_family_member = { -# custom = bookmark.0004.a.custom -# limit = { this != root } -# add_opinion = { -# modifier = pleased_opinion -# opinion = 30 -# target = root -# } -# } -# } -# execute_opinion_effect = { VICTIM = scope:prisoner EXECUTIONER = root } -# -# ai_chance = { -# base = 50 -# } -# } -# -# #I have other plans... -# option = { -# name = bookmark.0004.c -# -# ai_chance = { -# base = 0 -# modifier = { -# ai_vengefulness <= medium_negative_ai_value -# add = 100 -# } -# } -# } -#} -# -################################ -## 867 - THE GREAT ADVENTURERS # -################################ -# -#### Daurama takes Bawo under her wing. -#bookmark.0101 = { -# type = character_event -# title = bookmark.0101.t -# desc = { -# desc = bookmark.0101.desc_intro -# first_valid = { -# triggered_desc = { -# trigger = { -# scope:bayajidda = { is_alive = yes } -# } -# desc = bookmark.0101.desc_living -# } -# desc = bookmark.0101.desc_dead -# } -# } -# theme = crown -# left_portrait = { -# character = root -# animation = personality_rational -# } -# right_portrait = { -# character = scope:bayajidda -# } -# lower_center_portrait = { -# character = scope:bewo -# } -# -# trigger = { -# is_ai = no -# character:251181 = { is_alive = yes } -# } -# -# immediate = { -# play_music_cue = "mx_cue_succession" -# character:251180 = { save_scope_as = bayajidda } -# character:251181 = { save_scope_as = bewo } -# character:251252 = { save_scope_as = shawata } -# title:k_hausaland = { save_scope_as = hausaland} -# } -# -# # Remember your heritage, my child. -# option = { -# name = bookmark.0101.a -# -# #Move Bewo to Daurama's house. -# custom_tooltip = bookmark.0101.a.tt -# character:251181 = { set_house = root.house } -# add_courtier = character:251181 #Move him to your court -# -# #Bayajidda is, understandably, a little hurt by all this. -# character:251180 = { -# add_opinion = { -# modifier = hurt_opinion -# target = root -# opinion = -20 -# } -# } -# -# ai_chance = { -# base = 0 #The AI should never get this event, but if they do, shouldn't opt in. -# } -# } -# -# # He is my blood, whatever his name. -# option = { -# name = bookmark.0101.b -# -# character:251180 = { -# add_opinion = { -# modifier = pleased_opinion -# target = root -# opinion = 40 -# } -# } -# custom_tooltip = bookmark.0101.b.tt -# -# ai_chance = { -# base = 100 #AI doesn't get this event, but should always pick no. -# } -# } -# -# # The Magajiya will continue to rule! -# option = { -# name = bookmark.0101.c -# -# add_realm_law_skip_effects = female_preference_law -# scope:bewo = { -# set_house = root.house -# add_trait = disinherited -# } -# scope:shawata = { -# if = { -# limit = { -# is_alive = yes -# OR = { -# matrilinear_marriage = yes -# is_married = no -# } -# } -# custom_tooltip = bookmark.0101.c.tt -# } -# else = { -# custom_tooltip = bookmark.0101.b.tt -# } -# } -# -# -# ai_chance = { -# base = 0 #The AI should never get this event, but if they do, shouldn't opt in. -# } -# } -#} -####Radhanites were influential in Khazaria, so we spawn a bunch of them -#bookmark.0200 = { #by James Beaumont -# type = character_event -# hidden = yes -# -# trigger = { -# this = title:e_caspian-pontic_steppe.holder #Khagan of Khazaria -# is_alive = yes -# is_landed = yes -# } -# -# immediate = { -# create_character = { -# location = title:e_caspian-pontic_steppe.holder.capital_province -# trait = lifestyle_mystic -# random_traits = yes -# faith = faith:kabarism -# culture = culture:radhanite -# gender_female_chance = { -# if = { -# limit = { faith:kabarism = { has_doctrine = doctrine_gender_male_dominated } } -# add = 0 -# } -# else_if = { -# limit = { faith:kabarism = { has_doctrine = doctrine_gender_female_dominated } } -# add = 100 -# } -# else = { -# add = 50 -# } -# } -# save_scope_as = new_courtier -# } -# title:e_caspian-pontic_steppe.holder = { add_courtier = scope:new_courtier } -# create_character = { -# location = title:e_caspian-pontic_steppe.holder.capital_province -# faith = faith:kabarism -# culture = culture:radhanite -# random_traits_list = { -# count = 1 -# education_learning_2 = {} -# education_learning_3 = {} -# education_learning_4 = {} -# } -# random_traits = yes -# gender_female_chance = { -# if = { -# limit = { faith:kabarism = { has_doctrine = doctrine_gender_male_dominated } } -# add = 0 -# } -# else_if = { -# limit = { faith:kabarism = { has_doctrine = doctrine_gender_female_dominated } } -# add = 100 -# } -# else = { -# add = 50 -# } -# } -# save_scope_as = new_courtier -# } -# title:e_caspian-pontic_steppe.holder = { add_courtier = scope:new_courtier } -# create_character = { -# location = title:e_caspian-pontic_steppe.holder.capital_province -# age = { 18 35 } -# random_traits_list = { -# count = 1 -# education_martial_2 = {} -# education_martial_3 = {} -# education_martial_4 = {} -# } -# random_traits_list = { -# count = 1 -# brave = {} -# just = {} -# } -# random_traits_list = { #Something nice -# honest = {} -# gregarious = {} -# trusting = {} -# compassionate = {} -# generous = {} -# humble = {} -# calm = {} -# } -# random_traits_list = { -# count = 1 -# lustful = {} -# chaste = {} -# wrathful = {} -# arrogant = {} -# impatient = {} -# patient = {} -# impatient = {} -# ambitious = {} -# cynical = {} -# zealous = {} -# stubborn = {} -# } -# random_traits = no -# martial = { -# min_template_decent_skill -# max_template_decent_skill -# } -# prowess = { -# min_template_decent_skill -# max_template_decent_skill -# } -# faith = faith:kabarism -# culture = culture:radhanite -# gender_female_chance = { -# add = 25 -# } -# save_scope_as = new_courtier -# } -# title:e_caspian-pontic_steppe.holder = { add_courtier = scope:new_courtier } -# create_character = { -# location = title:e_caspian-pontic_steppe.holder.capital_province -# random_traits = yes -# faith = faith:kabarism -# culture = culture:radhanite -# gender_female_chance = { -# add = 25 -# } -# save_scope_as = new_courtier -# } -# title:e_caspian-pontic_steppe.holder = { add_courtier = scope:new_courtier } -# create_character = { -# location = title:e_caspian-pontic_steppe.holder.capital_province -# random_traits = yes -# faith = faith:kabarism -# culture = culture:radhanite -# gender_female_chance = { -# add = 25 -# } -# save_scope_as = new_courtier -# } -# title:e_caspian-pontic_steppe.holder = { add_courtier = scope:new_courtier } -# } -#} -# -############### -## 867 - MISC # -############### -# -################################################### -## In Memory of Your Good Taste -## by Ewan Cowhig Croft & Stu Taylor -## 0211 - 0220 -################################################### -# -## Basileios has just murdered Michael. -### Credit to Stu Taylor of Dead Good Comics for the title line and entire lead-in to this event. -#bookmark.0211 = { -# type = character_event -# title = bookmark.0211.t -# desc = bookmark.0211.desc -# theme = murder_scheme -# left_portrait = { -# character = scope:basil -# animation = toast_goblet -# outfit_tags = { military_outfit no_cloak no_headgear } -# } -# right_portrait = { -# character = scope:michael -# animation = map_fear -# } -# override_background = { reference = ep3_byzantine_feast } -# -# trigger = { is_alive = yes } -# -# immediate = { -# play_music_cue = "mx_cue_murder" -# character:1700 = { save_scope_as = basil } -# character:70490 = { -# save_scope_as = michael -# # Remove his nickname, which we have to leave on him for future bookmarks otherwise. -# hidden_effect = { remove_nickname = yes } -# } -# } -# -# # Michael the Drunkard. -# option = { -# name = bookmark.0211.a -# flavor = bookmark.0211.a.flavour -# -# scope:michael = { give_nickname = nick_the_drunkard_michael_iii } -# add_legitimacy_effect = { LEGITIMACY = major_legitimacy_gain } -# -# # No stress, no AI. -# } -# -# # Michael the Pious. -# option = { -# name = bookmark.0211.b -# trigger = { is_ai = no } -# flavor = bookmark.0211.b.flavour -# -# scope:michael = { give_nickname = nick_the_pious_michael_iii } -# add_piety = massive_piety_gain -# -# # No stress, no AI. -# } -# -# # Michael the Young. -# option = { -# name = bookmark.0211.c -# trigger = { is_ai = no } -# flavor = bookmark.0211.c.flavour -# -# scope:michael = { give_nickname = nick_the_young_michael_iii } -# -# domicile ?= { -# switch = { -# trigger = has_domicile_building -# vineyard_05 = { add_domicile_building = vineyard_06 } -# vineyard_04 = { add_domicile_building = vineyard_05 } -# vineyard_03 = { add_domicile_building = vineyard_04 } -# vineyard_02 = { add_domicile_building = vineyard_03 } -# vineyard_01 = { add_domicile_building = vineyard_02 } -# fallback = { -# if = { -# limit = { free_external_domicile_building_slots >= 1 } -# add_domicile_building = vineyard_01 -# } -# else = { -# root = { add_prestige = major_prestige_gain } -# } -# } -# } -# } -# -# # No stress, no AI. -# } -#} -# -# -########################## -## 1066 - RAGS TO RICHES # -########################## -# -#### Matilda start-up event -#bookmark.1066 = { -# type = character_event -# title = bookmark.1066.t -# desc = bookmark.1066.desc -# theme = marriage -# override_background = { reference = ep2_wedding_ceremony } -# override_effect_2d = { -# reference = rain -# } -# left_portrait = { -# character = root -# animation = stress -# } -# right_portrait = { -# character = scope:hunchback -# animation = ecstasy -# } -# lower_right_portrait = { -# character = scope:hunchbacks_father -# } -# lower_left_portrait = { -# character = scope:mum -# } -# -# trigger = { -# #this = character:7757 -# } -# -# immediate = { -# play_music_cue = "mx_cue_succession" -# character:20248 = { save_scope_as = hunchback } -# character:11030 = { save_scope_as = hunchbacks_father } -# mother = { save_scope_as = mum } -# hidden_effect = { -# add_opinion = { -# target = scope:hunchback -# modifier = disgusted_opinion -# opinion = -75 -# } -# } -# } -# -# option = { # Murder the husband, with a *hefty* bonus (*Potentially* Historical Option) -# name = bookmark.1066.a -# flavor = bookmark.1066.a_flavor -# -# marry = scope:hunchback -# -# if = { -# limit = { -# NOT = { -# any_scheme = { -# type = murder -# scheme_target_character = scope:hunchback -# } -# } -# } -# start_scheme = { -# target_character = scope:hunchback -# type = murder -# } -# } -# custom_tooltip = diplomacy_family.2250.b.tt -# hidden_effect = { -# random_scheme = { -# type = murder -# limit = { -# scheme_target_character = scope:hunchback -# } -# add_scheme_modifier = { -# type = massive_extra_success_chance_modifier -# } -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Physically abandon and permanently avoid him (Historical Option) -# name = bookmark.1066.b -# flavor = bookmark.1066.b_flavor -# -# add_character_modifier = { -# modifier = abandoned_marriage_modifier -# } -# -# if = { -# limit = { -# betrothed ?= scope:hunchback -# } -# break_betrothal = scope:hunchback -# } -# else_if = { -# limit = { -# is_spouse_of = scope:hunchback -# } -# divorce_effect = { -# DIVORCER = root -# DIVORCEE = scope:hunchback -# } -# } -# -# scope:hunchbacks_father = { -# if = { -# limit = { -# NOT = { -# scope:hunchback = { -# is_courtier_of = scope:hunchbacks_father -# } -# } -# } -# add_courtier = scope:hunchback -# } -# } -# -# reverse_add_opinion = { -# target = scope:hunchback -# modifier = abandoned_me_opinion -# years = 30 -# opinion = -50 -# } -# -# reverse_add_opinion = { -# target = scope:hunchbacks_father -# modifier = insulted_opinion -# years = 30 -# opinion = -50 -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Use your influence to flip the lineality of the marriage -# name = bookmark.1066.c -# flavor = bookmark.1066.c_flavor -# -# add_piety = -100 -# -# marry_matrilineal = scope:hunchback -# -# reverse_add_opinion = { -# target = scope:hunchbacks_father -# modifier = annoyed_opinion -# opinion = -20 -# } -# -# ai_chance = { -# base = 100 -# modifier = { -# factor = 0 -# scope:hunchbacks_father = { -# is_ai = no -# } -# } -# } -# } -# -# option = { # Just hope he dies... -# name = bookmark.1066.d -# flavor = lineality_warning -# add_internal_flag = dangerous -# -# marry = scope:hunchback -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## Matilda, a witch or not? -#bookmark.1067 = { -# type = character_event -# title = bookmark.1067.t -# desc = bookmark.1067.desc -# theme = faith -# override_background = { reference = bp1_bonfire } -# override_effect_2d = { -# reference = smoke -# } -# left_portrait = { -# character = root -# animation = personality_cynical -# } -# -# right_portrait = { -# character = scope:witch -# animation = happy_teacher -# } -# -# trigger = { -# NOR = { -# is_witch_trigger = yes -# has_trait = lifestyle_herbalist -# } -# } -# -# immediate = { -# play_music_cue = "mx_cue_epic_sacral_moment" -# if = { -# limit = { -# any_pool_character = { -# province = root.location -# is_physically_able_ai_adult = yes -# has_no_particular_noble_roots_trigger = yes -# is_female = yes -# age > root.age -# age >= 25 -# has_education_intrigue_trigger = yes -# } -# } -# random_pool_character = { -# province = root.location -# limit = { -# is_physically_able_ai_adult = yes -# has_no_particular_noble_roots_trigger = yes -# is_female = yes -# age > root.age -# age >= 25 -# has_education_intrigue_trigger = yes -# } -# save_scope_as = witch -# } -# } -# else = { -# hidden_effect = { -# create_character = { -# template = witchy_template -# gender_female_chance = 100 -# location = root.location -# culture = root.location.culture -# faith = root.location.faith -# dynasty = none -# save_scope_as = witch -# } -# } -# } -# hidden_effect = { -# scope:witch ?= { -# if = { -# limit = { -# NOT = { -# has_trait = eccentric -# } -# } -# add_trait = eccentric -# } -# give_witch_secret_or_trait_effect = yes -# } -# } -# } -# -# option = { # Embrace the knowledge -# name = bookmark.1067.a -# flavor = bookmark.1067.a_flavor -# add_internal_flag = dangerous -# -# set_focus = intrigue_skulduggery_focus -# -# add_intrigue_lifestyle_perk_points = 5 -# -# give_witch_secret_or_trait_effect = yes -# -# add_trait = lifestyle_herbalist -# -# ai_chance = { -# base = 25 -# } -# } -# -# option = { # No, I'm pious! -# name = bookmark.1067.b -# flavor = bookmark.1067.b_flavor -# -# add_learning_lifestyle_xp = major_lifestyle_experience -# -# add_piety = 500 -# -# add_learning_skill = 2 -# -# ai_chance = { -# base = 75 -# } -# } -#} -# -## Vratislav chooses whether to lay claims, or appease the emperor -#bookmark.1068 = { -# type = character_event -# title = bookmark.1068.t -# desc = bookmark.1068.desc -# theme = war -# override_background = { reference = ep2_travel_bridge } -# left_portrait = { -# character = root -# animation = personality_cynical -# } -# right_portrait = { -# character = scope:emperor -# animation = personality_cynical -# } -# -# trigger = { -# exists = title:d_meissen.holder -# exists = title:d_lausitz.holder -# NOR = { -# has_claim_on = title:d_meissen -# has_claim_on = title:d_lausitz -# title:d_lausitz.holder = root -# title:d_meissen.holder = root -# } -# title:e_hre.holder ?= { -# this != root -# } -# is_vassal_of = title:e_hre.holder -# } -# -# immediate = { -# play_music_cue = "mx_cue_positive_effect" -# title:e_hre.holder = { -# save_scope_as = emperor -# } -# } -# -# option = { # Lay claim to the lands -# name = bookmark.1068.a -# flavor = bookmark.1068.a_flavor -# add_pressed_claim = title:d_meissen -# add_pressed_claim = title:d_lausitz -# -# ai_chance = { -# base = 25 -# } -# } -# -# option = { # Appease the Emperor -# name = bookmark.1068.b -# flavor = bookmark.1068.b_flavor -# -# add_prestige = 500 -# add_legitimacy_effect = { LEGITIMACY = medium_legitimacy_gain } -# -# scope:emperor = { -# add_opinion = { -# target = root -# modifier = pleased_opinion -# opinion = 30 -# } -# } -# -# if = { -# limit = { -# scope:emperor = { is_ai = yes } -# can_add_hook = { -# target = scope:emperor -# type = favor_hook -# } -# } -# add_hook = { -# type = favor_hook -# target = scope:emperor -# } -# } -# -# ai_chance = { -# base = 75 -# } -# } -#} -# -## The matter of Jaromir -#bookmark.1069 = { -# type = character_event -# title = bookmark.1069.t -# desc = bookmark.1069.desc -# theme = faith -# override_background = { reference = holy_site_generic } -# override_effect_2d = { -# reference = rain -# } -# left_portrait = { -# character = character:john_monk -# animation = prayer -# } -# right_portrait = { -# character = scope:jaromir -# animation = dismissal -# } -# lower_right_portrait = root.faith.religious_head -# -# trigger = { -# character:528 ?= { -# is_alive = yes -# is_councillor_of = root -# } -# character:john_monk ?= { -# is_alive = yes -# } -# } -# -# immediate = { -# play_music_cue = "mx_cue_negative" -# character:528 = { -# save_scope_as = jaromir -# } -# character:john_monk = { -# save_scope_as = john_monk -# } -# } -# -# option = { # Replace Jaromir with John -# name = bookmark.1069.a -# flavor = bookmark.1069.a_flavor -# -# faith.religious_head = { -# add_opinion = { -# target = root -# modifier = impious_opinion -# opinion = -30 -# } -# } -# -# create_title_and_vassal_change = { -# type = granted -# save_scope_as = change -# } -# title:c_opava = { -# change_title_holder = { -# holder = scope:john_monk -# change = scope:change -# take_baronies = no -# } -# } -# resolve_title_and_vassal_change = scope:change -# scope:john_monk = { -# hidden_effect = { -# change_government = theocracy_government -# } -# } -# if = { -# limit = { character:528 = { is_councillor_of = root } } -# fire_councillor = character:528 -# } -# assign_councillor_type = { -# type = councillor_court_chaplain -# remove_existing_councillor = yes -# target = character:john_monk -# } -# add_character_flag = { -# flag = bishop_assignment -# days = 1 -# } -# ai_chance = { -# base = 25 -# } -# } -# -# option = { # Make great concessions to Jaromir -# name = bookmark.1069.b -# flavor = bookmark.1069.b_flavor -# -# pay_short_term_gold = { -# target = scope:jaromir -# gold = medium_gold_value -# } -# -# scope:jaromir = { -# add_opinion = { -# target = root -# modifier = pleased_opinion -# opinion = 30 -# } -# remove_relation_rival = root -# } -# -# ai_chance = { -# base = 75 -# } -# } -# -# option = { # Make great concessions to Jaromir -# name = bookmark.1069.c -# flavor = bookmark.1069.c_flavor -# -# ai_chance = { -# base = 75 -# } -# } -# -# after = { -# hidden_effect = { -# if = { -# limit = { -# has_character_flag = bishop_assignment -# } -# assign_councillor_type = { -# type = councillor_court_chaplain -# remove_existing_councillor = yes -# target = character:john_monk -# } -# } -# } -# } -#} -# -## A Norman Sicily -#bookmark.1070 = { -# type = character_event -# title = bookmark.1070.t -# desc = bookmark.1070.desc -# theme = war -# override_background = { reference = terrain } -# -# left_portrait = { -# character = root -# animation = hunting_knife_start -# } -# -# lower_right_portrait = scope:pope -# lower_left_portrait = scope:emperor -# -# trigger = { -# -# } -# -# immediate = { -# play_music_cue = "mx_cue_positive_effect" -# -# title:e_hre.holder = { save_scope_as = emperor } -# root.faith.religious_head = { save_scope_as = pope } -# -# custom_tooltip = claim_sicily -# hidden_effect = { -# add_pressed_claim = title:d_salerno -# add_pressed_claim = title:c_napoli -# add_pressed_claim = title:d_capua -# add_pressed_claim = title:c_siracusa -# add_pressed_claim = title:c_agrigento -# add_pressed_claim = title:c_palermo -# } -# } -# -# option = { -# name = bookmark.1070.a -# -# add_pressed_claim = title:d_benevento -# add_pressed_claim = title:d_spoleto -# show_as_tooltip = { -# spawn_army = { -# levies = 750 -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# hidden_effect = { -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = conrois -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = conrois -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = conrois -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# -# scope:emperor = { -# add_opinion = { -# target = root -# modifier = angry_opinion -# opinion = -30 -# } -# } -# -# scope:pope = { -# add_opinion = { -# target = root -# modifier = angry_opinion -# opinion = -30 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { -# name = bookmark.1070.b -# -# add_pressed_claim = title:d_benevento -# -# show_as_tooltip = { -# spawn_army = { -# levies = 500 -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# hidden_effect = { -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# -# scope:pope = { -# add_opinion = { -# target = root -# modifier = angry_opinion -# opinion = -30 -# } -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { -# name = bookmark.1070.c -# -# spawn_army = { -# levies = 125 -# men_at_arms = { -# type = bowmen -# men = 50 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# ai_chance = { -# base = 100 -# } -# } -#} -# -## The Pretender Monk -#bookmark.1071 = { -# type = character_event -# title = bookmark.1071.t -# desc = bookmark.1071.desc -# theme = martial -# override_background = { reference = throne_room } -# -# left_portrait = { -# character = root -# animation = thinking -# } -# -# right_portrait = { -# character = scope:raiktor -# animation = beg -# } -# -# trigger = { -# gold >= 100 -# is_at_war = no -# title:e_byzantium.holder ?= { -# this != root -# } -# } -# -# on_trigger_fail = { -# if = { -# limit = { -# title:e_byzantium.holder ?= { -# this != root -# } -# } -# trigger_event = { -# id = bookmark.1071 -# days = 25 -# } -# } -# } -# -# immediate = { -# title:e_byzantium.holder ?= { save_scope_as = byz_emperor } -# create_character = { -# template = monk_character_template -# name = Raiktor -# culture = culture:greek -# faith = faith:orthodox -# age = 30 -# gender_female_chance = 0 -# save_scope_as = raiktor -# employer = root -# intrigue = { min_template_high_skill max_template_high_skill } -# learning = { min_template_high_skill max_template_high_skill } -# } -# hidden_effect = { -# scope:raiktor = { -# add_unpressed_claim = title:e_byzantium -# if = { -# limit = { -# has_trait = honest -# } -# remove_trait = honest -# } -# add_trait = deceitful -# add_trait = historical_character -# add_character_flag = raiktor -# set_variable = { -# name = show_historical_gui -# value = 1 -# } -# } -# } -# } -# -# option = { -# name = bookmark.1071.a -# -# flavor = hard_raiktor_war -# -# custom_tooltip = start_raiktor_war -# custom_tooltip = gain_war_troops -# -# hidden_effect = { -# start_war = { -# cb = raiktor_claim_cb -# target = title:e_byzantium.holder -# claimant = scope:raiktor -# target_title = title:e_byzantium -# } -# random_character_war = { -# limit = { -# using_cb = raiktor_claim_cb -# } -# save_scope_as = war -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# -# ai_chance = { -# base = 10 -# modifier = { -# factor = 0.1 -# title:e_byzantium.holder ?= { is_ai = no } -# } -# } -# } -# -# option = { -# name = bookmark.1071.b -# -# flavor = easy_raiktor_war -# -# custom_tooltip = start_raiktor_conquest_war -# custom_tooltip = gain_war_troops -# -# hidden_effect = { -# start_war = { -# cb = raiktor_conquest_cb -# target = title:e_byzantium.holder -# claimant = scope:raiktor -# target_title = title:c_dyrrachion -# target_title = title:c_avlonas -# target_title = title:c_buthrotum -# } -# random_character_war = { -# limit = { -# using_cb = raiktor_conquest_cb -# } -# save_scope_as = war -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# -# spawn_army = { -# war = scope:war -# levies = 300 -# men_at_arms = { -# type = bowmen -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 75 -# } -# men_at_arms = { -# type = armored_horsemen -# men = 25 -# } -# location = root.capital_province -# name = norman_highwaymen -# } -# } -# -# ai_chance = { -# base = 100 -# modifier = { -# factor = 0.1 -# title:e_byzantium.holder ?= { is_ai = no } -# } -# } -# } -# -# option = { -# name = bookmark.1071.c -# -# scope:raiktor = { select_and_move_to_pool_effect = yes } -# -# ai_chance = { -# base = 10 -# modifier = { -# factor = 10 -# title:e_byzantium.holder ?= { is_ai = no } -# } -# } -# } -#} -# -## Conquering Cordoba -#bookmark.1072 = { -# type = character_event -# title = bookmark.1072.t -# desc = bookmark.1072.desc -# theme = martial -# override_background = { reference = terrain_scope } -# -# left_portrait = { -# character = root -# animation = spymaster -# } -# -# right_portrait = { -# character = title:c_cordoba.holder -# animation = steward -# } -# -# trigger = { -# exists = title:c_cordoba.holder -# NOT = { title:c_cordoba.holder = root } -# } -# -# immediate = { -# title:c_cordoba.holder = { save_scope_as = cordoba_holder } -# title:c_cordoba.title_province = { save_scope_as = background_terrain_scope } -# } -# -# option = { -# name = bookmark.1072.a -# trait = schemer -# -# custom_tooltip = intrigue_challenge -# add_character_flag = intrigue_duel_on_attack -# -# custom_tooltip = start_cordoba_war -# hidden_effect = { -# if = { -# limit = { -# title:c_cordoba.holder = { -# has_title = title:c_cabra -# } -# } -# start_war = { -# cb = county_conquest_cb -# target = title:c_cordoba.holder -# target_title = title:c_cordoba -# target_title = title:c_cabra -# } -# } -# else = { -# start_war = { -# cb = county_conquest_cb -# target = title:c_cordoba.holder -# target_title = title:c_cordoba -# } -# } -# } -# -# ai_chance = { -# base = 90 -# } -# } -# -# option = { -# name = bookmark.1072.b -# -# spawn_army = { -# levies = 100 -# men_at_arms = { -# type = abudrar -# men = 100 -# } -# men_at_arms = { -# type = light_horsemen -# men = 50 -# } -# location = root.capital_province -# name = event_troop_default_name -# } -# -# custom_tooltip = start_cordoba_war -# hidden_effect = { -# if = { -# limit = { -# title:c_cordoba.holder = { -# has_title = title:c_cabra -# } -# } -# start_war = { -# cb = county_conquest_cb -# target = title:c_cordoba.holder -# target_title = title:c_cordoba -# target_title = title:c_cabra -# } -# } -# else = { -# start_war = { -# cb = county_conquest_cb -# target = title:c_cordoba.holder -# target_title = title:c_cordoba -# } -# } -# } -# -# ai_chance = { -# base = 10 -# } -# } -# -# option = { -# name = bookmark.1072.c -# -# ai_chance = { -# base = 0 -# } -# } -#} -# -## The Seljuk Scion -#bookmark.1073 = { -# type = character_event -# title = bookmark.1073.t -# desc = bookmark.1073.desc -# theme = martial -# override_background = { reference = terrain_scope } -# -# left_portrait = { -# character = root -# animation = stress -# } -# right_portrait = { -# character = scope:alp_arslan -# animation = war_over_win -# } -# lower_left_portrait = scope:qutalmish -# lower_right_portrait = scope:tughril -# -# immediate = { -# character:3040 = { save_scope_as = alp_arslan } -# character:3033 = { save_scope_as = qutalmish } -# character:3038 = { save_scope_as = tughril } -# title:e_persia.title_capital_county.title_province = { save_scope_as = background_terrain_scope } -# show_as_tooltip = { -# scope:alp_arslan = { -# set_relation_rival = { reason = rival_killed_parent target = root } -# } -# add_realm_law = camp_purpose_mercenaries -# } -# if = { -# limit = { -# has_mpo_dlc_trigger = yes -# } -# spawn_army = { -# name = event_troop_default_name -# men_at_arms = { -# type = horse_archers -# stacks = 2 -# } -# men_at_arms = { -# type = steppe_raiders -# stacks = 2 -# } -# men_at_arms = { -# type = heavy_horse_archers -# stacks = 2 -# } -# location = root.location -# origin = root.location -# } -# } -# else = { -# spawn_army = { -# name = event_troop_default_name -# men_at_arms = { -# type = horse_archers -# stacks = 2 -# } -# men_at_arms = { -# type = steppe_raiders -# stacks = 2 -# } -# men_at_arms = { -# type = heavy_horse_archers -# stacks = 2 -# } -# location = root.location -# origin = root.location -# } -# } -# } -# -# option = { -# name = bookmark.1073.a -# add_prestige_level = 1 -# if = { -# limit = { -# has_mpo_dlc_trigger = yes -# } -# spawn_army = { -# name = event_troop_default_name -# men_at_arms = { -# type = horse_archers -# stacks = 2 -# } -# men_at_arms = { -# type = steppe_raiders -# stacks = 2 -# } -# men_at_arms = { -# type = heavy_horse_archers -# stacks = 2 -# } -# location = root.location -# origin = root.location -# } -# } -# else = { -# spawn_army = { -# name = event_troop_default_name -# men_at_arms = { -# type = horse_archers -# stacks = 2 -# } -# men_at_arms = { -# type = light_horsemen -# stacks = 2 -# } -# men_at_arms = { -# type = light_footmen -# stacks = 2 -# } -# location = root.location -# origin = root.location -# } -# } -# ai_chance = { -# base = 90 -# } -# } -# -# option = { -# name = bookmark.1073.b -# add_unpressed_claim = title:e_persia -# add_realm_law = camp_purpose_legitimists -# scope:alp_arslan = { -# set_relation_nemesis = { reason = rival_killed_parent target = root } -# } -# ai_chance = { -# base = 10 -# } -# } -#} -# -####We let the player decide which dynasty Sibylla's son will belong to avoid undesirable potential game overs -#bookmark.0300 = { -# type = character_event -# title = bookmark.0300.t -# desc = bookmark.0300.desc -# -# theme = family -# left_portrait = { -# character = root -# animation = personality_rational -# } -# lower_center_portrait = { -# character = scope:dead_husband -# animation = dead -# } -# right_portrait = { -# character = scope:baby_baudouin -# } -# -# trigger = { -# is_ai = no -# character:223541 = { -# is_ai = yes -# is_alive = yes -# } -# } -# -# immediate = { -# character:223541 = { save_scope_as = baby_baudouin } -# character:223540 = { save_scope_as = dead_husband } -# } -# -# option = { -# name = bookmark.0300.a -# -# character:223541 = { set_house = root.house } -# -# ai_chance = { -# base = 0 # The AI shouldn't get this event, but should want to maintain the status quo if it did -# } -# } -# -# option = { -# name = bookmark.0300.b -# -# ai_chance = { -# base = 100 # AI doesn't get this event, but should always pick no. -# } -# custom_tooltip = bookmark.0300.b.tt -# } -#} -# -#bookmark.0400 = { -# type = character_event -# title = bookmark.0400.t -# desc = bookmark.0400.desc -# -# theme = family -# -# left_portrait = { -# character = root -# animation = disapproval -# } -# lower_left_portrait = { -# character = scope:brother -# } -# lower_right_portrait = { -# character = scope:child -# } -# right_portrait = { -# character = scope:emperor -# animation = pain -# } -# -# trigger = { -# is_ai = no -# character:206651 = { # your husband -# is_alive = yes -# is_ai = yes -# is_landed = yes -# } -# character:206653 = { # your child -# is_alive = yes -# is_ai = yes -# top_liege = root.top_liege -# } -# character:tangut_liang_2 = { # your brother -# is_alive = yes -# is_ai = yes -# top_liege = root.top_liege -# } -# } -# -# immediate = { -# character:206651 = { save_scope_as = emperor } -# character:206653 = { save_scope_as = child } -# character:tangut_liang_2 = { save_scope_as = brother } -# scope:emperor.primary_title = { save_scope_as = xia } -# } -# -# option = { -# name = bookmark.0400.a -# -# custom_tooltip = { -# text = bookmark.0400.a.tt -# -# scope:emperor = { -# every_held_title = { -# limit = { -# tier >= tier_county -# is_landless_type_title = no -# } -# add_to_list = titles_to_transfer -# } -# } -# -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = change -# add_claim_on_loss = yes -# } -# -# every_in_list = { -# list = titles_to_transfer -# change_title_holder = { -# holder = root -# change = scope:change -# } -# } -# -# scope:emperor = { -# every_vassal = { -# limit = { -# NOT = { -# this = root -# } -# } -# change_liege = { -# LIEGE = root -# CHANGE = scope:change -# } -# } -# } -# -# resolve_title_and_vassal_change = scope:change -# -# scope:emperor = { -# death = { -# death_reason = death_wounds -# } -# } -# } -# -# if = { -# limit = { -# exists = cp:councillor_chancellor -# cp:councillor_chancellor != character:tangut_liang_2 -# } -# fire_councillor = cp:councillor_chancellor -# assign_councillor_type = { -# type = councillor_chancellor -# target = character:tangut_liang_2 -# } -# } -# -# every_child = { -# limit = { -# house != root.house -# } -# set_house = root.house -# } -# -# ai_chance = { -# base = 0 -# } -# } -# -# option = { -# name = bookmark.0400.b -# -# custom_tooltip = { -# text = bookmark.0400.b.tt -# add_character_flag = has_had_diarch_intro_event_flag -# -# scope:emperor = { -# designate_diarch = root -# try_start_diarchy = regency -# set_diarchy_swing = 100 -# if = { -# limit = { -# exists = cp:councillor_chancellor -# cp:councillor_chancellor != character:tangut_liang_2 -# } -# fire_councillor = cp:councillor_chancellor -# scope:brother = { -# set_employer = scope:emperor -# } -# assign_councillor_type = { -# type = councillor_chancellor -# target = character:tangut_liang_2 -# } -# } -# } -# } -# change_influence = monumental_influence_gain -# add_prestige = monumental_prestige_gain -# -# ai_chance = { -# base = 100 -# } -# } -# option = { -# name = bookmark.0400.c -# -# custom_tooltip = { -# text = bookmark.0400.c.tt -# add_character_flag = has_had_diarch_intro_event_flag -# -# scope:emperor = { -# death = { -# death_reason = death_wounds -# } -# } -# scope:brother = { -# set_employer = scope:child -# } -# scope:child = { -# set_diarch = root -# set_diarchy_swing = 100 -# if = { -# limit = { -# exists = cp:councillor_chancellor -# cp:councillor_chancellor != character:tangut_liang_2 -# } -# fire_councillor = cp:councillor_chancellor -# assign_councillor_type = { -# type = councillor_chancellor -# target = character:tangut_liang_2 -# } -# } -# } -# } -# change_influence = monumental_influence_gain -# add_prestige = monumental_prestige_gain -# -# ai_chance = { -# base = 0 -# } -# } -# after = { -# add_hook = { -# type = loyalty_hook -# target = scope:brother -# } -# -# scope:brother = { -# change_influence = massive_influence_gain -# add_prestige = massive_prestige_gain -# } -# } -#} -# -#bookmark.0500 = { -# type = character_event -# title = bookmark.0500.t -# desc = bookmark.0500.desc -# window = big_event_window -# theme = merit -# override_background = bedchamber -# -# left_portrait = { -# character = root -# animation = disapproval -# } -# -# trigger = { -# } -# -# immediate = { -# } -# -# option = { -# name = bookmark.0500.a -# -# add_character_modifier = { -# modifier = tgp_wiles_is_the_way_modifier -# years = 10 -# } -# -# domicile ?= { -# hidden_effect = { -# add_domicile_building = east_asian_peasant_quarters_01 -# add_domicile_building = east_asian_peasant_quarters_02 -# add_domicile_building = east_asian_peasant_quarters_03 -# } -# add_domicile_building = east_asian_peasant_quarters_04 -# custom_tooltip = domicile_building_parameter_can_use_incite_revolts -# custom_tooltip = domicile_building_parameter_can_join_peasant_factions -# } -# -# ai_chance = { -# base = 100 -# } -# } -# -# option = { -# name = bookmark.0500.b -# -# trigger = { -# is_landed = no -# } -# -# add_trait = conqueror -# -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = change -# } -# title:c_caozhou = { -# change_title_holder = { -# holder = root -# change = scope:change -# take_baronies = yes -# } -# } -# hidden_effect = { -# becomes_independent = { -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# start_war = { -# casus_belli = admin_barbarian_conquest_cb -# target = title:d_biansong.holder -# } -# -# spawn_army = { -# levies = 5000 -# location = root.capital_province -# origin = root.capital_province -# inheritable = no -# uses_supply = yes -# name = faithful_followers -# } -# -# ai_chance = { -# base = 0 -# } -# } -# option = { -# name = bookmark.0500.c -# -# trigger = { -# has_dlc_feature = roads_to_power -# } -# -# create_landless_adventurer_title_tooltip_effect = yes -# add_character_modifier = { -# modifier = ep3_voluntary_laamp_character_modifier -# years = 5 -# } -# hidden_effect = { -# # Create Adventurer -# create_landless_adventurer_title_effect = { -# REASON = flag:runaway_allowed -# FLAVOR_CHAR = root -# } -# domicile ?= { -# change_provisions = major_provisions_gain -# } -# } -# -# ai_chance = { -# base = 0 -# } -# } -# -# option = { -# name = bookmark.0500.d -# -# trigger = { -# is_landed = no -# } -# -# set_character_faith = faith:maitreya -# -# faith:maitreya = { -# change_fervor = { -# value = 100 -# desc = maitreya_has_descended_fervor_desc -# } -# } -# -# add_character_modifier = claimed_mantle_of_maitreya_modifier -# -# hidden_effect = { -# set_global_variable = { -# name = the_maitreya_has_descended -# value = yes -# } -# } -# add_trait = peasant_leader -# -# create_title_and_vassal_change = { -# type = usurped -# save_scope_as = change -# } -# title:c_caozhou = { -# change_title_holder = { -# holder = root -# change = scope:change -# take_baronies = yes -# } -# } -# hidden_effect = { -# becomes_independent = { -# change = scope:change -# } -# } -# resolve_title_and_vassal_change = scope:change -# -# start_war = { -# casus_belli = admin_barbarian_conquest_cb -# target = title:d_biansong.holder -# } -# -# spawn_army = { -# levies = 5000 -# location = root.capital_province -# origin = root.capital_province -# inheritable = no -# uses_supply = yes -# name = maitreya_devotees -# } -# -# ai_chance = { -# base = 0 -# } -# } -#} -# \ No newline at end of file +############################### +## Blanked to Prevent Errors ## +############################### \ No newline at end of file diff --git a/events/court_maintenance_events.txt b/events/court_maintenance_events.txt index d31e9efa2..d47119803 100644 --- a/events/court_maintenance_events.txt +++ b/events/court_maintenance_events.txt @@ -120,7 +120,18 @@ court_maintenance.0005 = { } immediate = { - add_trait = order_member + if = { + limit = { + government_has_flag = government_is_military_holy_order + } + add_trait = order_member + } + if = { + limit = { + government_has_flag = government_is_monastic_holy_order + } + add_trait = devoted + } } } @@ -423,7 +434,10 @@ court_maintenance.0011 = { custom_tooltip = court_maintenance.0011.banner_house_tooltip } #Dynasty - else = { custom_tooltip = court_maintenance.0011.banner_dynasty_tooltip } + else_if = { + limit = { exists = scope:dynasty_banner } + custom_tooltip = court_maintenance.0011.banner_dynasty_tooltip + } # Add extra legitimacy, for the first time they gain the Kingdom title add_legitimacy_effect = { LEGITIMACY = major_legitimacy_gain } @@ -514,7 +528,7 @@ court_maintenance.0011 = { limit = { has_tgp_dlc_trigger = yes government_allows = merit - NOT = { has_government = celestial_government } #Created from cycle + NOT = { government_has_flag = government_is_celestial } #Created from cycle } create_artifact_dynastic_imperial_seal_effect = { OWNER = root diff --git a/events/easteregg_events.txt b/events/easteregg_events.txt index b86bce39f..6438920c2 100644 --- a/events/easteregg_events.txt +++ b/events/easteregg_events.txt @@ -1,62 +1,3 @@ -#namespace = easteregg_event -# -################################################### -## #Vanity Events -## 0001 - 10002 Charna and Jakub duel -################################################### -# -## Secret event to decide who should have the rock. -#easteregg_event.0001 = { -# hidden = yes -# scope = none -# -# trigger = { -# game_start_date <= 1070.1.1 -# exists = character:easteregg_jakub_potapczyk -# exists = character:easteregg_charna_frostwhisper -# } -# -# immediate = { -# character:easteregg_jakub_potapczyk = { -# configure_start_single_combat_effect = { -# SC_INITIATOR = character:easteregg_jakub_potapczyk -# SC_ATTACKER = character:easteregg_jakub_potapczyk -# SC_DEFENDER = character:easteregg_charna_frostwhisper -# FATALITY = no -# FIXED = no -# LOCALE = terrain_scope -# INVALIDATION_EVENT = single_combat.1006 -# OUTPUT_EVENT = easteregg_event.0002 -# } -# } -# } -#} -# -#easteregg_event.0002 = { -# hidden = yes -# -# immediate = { -# # If Jakub wins, he takes back his beloved rock. Charna will not forget that. -# if = { -# limit = { scope:sc_victor = character:easteregg_jakub_potapczyk } -# scope:sc_victor = { -# add_character_modifier = prison_pet_stone_modifier -# set_relation_rival = { -# target = scope:sc_loser -# reason = rival_rock -# } -# } -# scope:sc_loser = {remove_character_modifier = prison_pet_stone_modifier} -# } -# # Otherwise, Charna won, and Jakub will never, ever forgive her. -# else = { -# scope:sc_victor = { -# set_relation_rival = { -# target = scope:sc_loser -# reason = rival_rock -# } -# } -# } -# } -#} -# \ No newline at end of file +############################### +## Blanked to Prevent Errors ## +############################### \ No newline at end of file diff --git a/events/game_rule_events.txt b/events/game_rule_events.txt index 1be0b8ca8..fb475b64b 100644 --- a/events/game_rule_events.txt +++ b/events/game_rule_events.txt @@ -9,7 +9,7 @@ scripted_trigger de_jure_liege_title_to_destroy = { is_landless_type_title = no is_head_of_faith = no save_temporary_scope_as = de_jure_liege_title - + NOT = { ROOT = { any_sub_realm_title = { @@ -18,7 +18,7 @@ scripted_trigger de_jure_liege_title_to_destroy = { } } } - + NAND = { has_game_rule = on_limited_de_jure_requirement holder = { @@ -30,7 +30,7 @@ scripted_trigger de_jure_liege_title_to_destroy = { game_rule.1 = { # De Jure Requirement hidden = yes - + trigger = { NOT = { has_game_rule = off_de_jure_requirement } any_held_title = { @@ -104,7 +104,7 @@ game_rule.1000 = { game_rule.1001 = { #by Mathilda Bjarnehed type = character_event hidden = yes - + trigger = { is_from_ruler_designer = no # Do not modify the family of someone from the ruler designer #Is in need of family @@ -137,7 +137,7 @@ game_rule.1001 = { #by Mathilda Bjarnehed immediate = { if = { - limit = { faith = { has_doctrine_parameter = marriage_event } } + limit = { rite = { rite_has_parameter = marriage_event } } add_character_flag = ignore_marriage_event } save_scope_as = location_scope @@ -154,7 +154,7 @@ game_rule.1001 = { #by Mathilda Bjarnehed } save_scope_as = childless_heir game_rule_create_spouse_and_children = { CHARACTER = scope:childless_heir LOCATION = scope:location_scope } - + #In case your grandchildren are very old every_child = { limit = { @@ -162,7 +162,7 @@ game_rule.1001 = { #by Mathilda Bjarnehed } save_scope_as = childless_heir game_rule_create_spouse_and_children = { CHARACTER = scope:childless_heir LOCATION = scope:location_scope } - + #In case your great-grandchildren are very old every_child = { limit = { @@ -188,13 +188,13 @@ game_rule.1001 = { #by Mathilda Bjarnehed game_rule.2 = { # Exclave Independence, on death hidden = yes - + trigger = { exclave_independence_trigger = yes } immediate = { - + if = { # None limit = { has_game_rule = off_exclave_independence @@ -229,7 +229,7 @@ game_rule.2 = { # Exclave Independence, on death game_rule.3 = { # Exclave Independence, on war end hidden = yes - + trigger = { exclave_independence_trigger = yes } @@ -252,7 +252,7 @@ game_rule.3 = { # Exclave Independence, on war end } scripted_trigger weak_empire = { - tier = tier_empire + tier >= tier_empire is_titular = no is_landless_type_title = no is_head_of_faith = no @@ -284,7 +284,7 @@ game_rule.4 = { # Empire Obscurity Game Rule character = root animation = grief } - + cooldown = { years = 25 } trigger = { @@ -296,7 +296,7 @@ game_rule.4 = { # Empire Obscurity Game Rule weak_empire = yes } NOR = { - government_allows = administrative # Byzantium should survive when small + government_has_mechanic = administrative # Byzantium should survive when small government_has_flag = government_is_nomadic # Nomads can have very 'small' empires where most of it is tributaries government_has_flag = government_is_mandala # Mandalas don't need as much dejure land for titles } @@ -313,10 +313,10 @@ game_rule.4 = { # Empire Obscurity Game Rule option = { # No! I just need time! name = game_rule.4.a - + add_prestige = -2000 add_prestige_experience = -2000 - + ai_chance = { base = 0 } @@ -324,10 +324,10 @@ game_rule.4 = { # Empire Obscurity Game Rule option = { # Farewell, dear empire... name = game_rule.4.b - + destroy_title = scope:falling_empire add_pressed_claim = scope:falling_empire - + ai_chance = { base = 100 } @@ -7258,7 +7258,7 @@ game_rule.1142 = { option = { name = game_rule.1142.b trigger = { is_ai = no } - + reverse_add_opinion = { target = scope:elect modifier = grateful_opinion @@ -7281,7 +7281,7 @@ game_rule.1142 = { is_ai = no scope:elect = { is_ai = yes } } - + set_player_character = scope:elect trigger_event = { id = game_rule.1143 diff --git a/events/global_culture_events.txt b/events/global_culture_events.txt index b6c718bb2..6438920c2 100644 --- a/events/global_culture_events.txt +++ b/events/global_culture_events.txt @@ -1 +1,3 @@ -#dummy \ No newline at end of file +############################### +## Blanked to Prevent Errors ## +############################### \ No newline at end of file diff --git a/events/global_religion_events.txt b/events/global_religion_events.txt index ecdef1d9f..1c243df2b 100644 --- a/events/global_religion_events.txt +++ b/events/global_religion_events.txt @@ -170,39 +170,39 @@ # save_scope_as = actor #for the effect to work properly # } # } -## #Geographical regions to also push extra for -## 2 = { -## trigger = { #Russia - orthodox -## capital_province = { -## geographical_region = ghw_region_russia -## } -## exists = faith:orthodox -## faith:orthodox = { -## exists = religious_head -## } -## } -## faith:orthodox = { -## religious_head = { -## save_scope_as = actor #for the effect to work properly -## } -## } -## } -## 2 = { -## trigger = { #Scandinavia - catholic -## capital_province = { -## geographical_region = ghw_region_scandinavia -## } -## exists = faith:catholic -## faith:catholic = { -## exists = religious_head -## } -## } -## faith:catholic = { -## religious_head = { -## save_scope_as = actor #for the effect to work properly -## } -## } -## } +# #Geographical regions to also push extra for +# 2 = { +# trigger = { #Russia - orthodox +# capital_province = { +# geographical_region = ghw_region_russia +# } +# exists = faith:orthodox +# faith:orthodox = { +# exists = religious_head +# } +# } +# faith:orthodox = { +# religious_head = { +# save_scope_as = actor #for the effect to work properly +# } +# } +# } +# 2 = { +# trigger = { #Scandinavia - catholic +# capital_province = { +# geographical_region = ghw_region_scandinavia +# } +# exists = faith:catholic +# faith:catholic = { +# exists = religious_head +# } +# } +# faith:catholic = { +# religious_head = { +# save_scope_as = actor #for the effect to work properly +# } +# } +# } # 100 = { # modifier = { # A parallel system for africans lowers the need for this # add = 50 @@ -212,10 +212,7 @@ # } # modifier = { # Historically held out for a long time # add = 150 -# OR = { -# faith.religion = religion:baltic_religion -# faith.religion = religion:adonist_religion -# } +# faith.religion = religion:baltic_religion # } # modifier = { # Less susceptible # add = 50 @@ -227,23 +224,23 @@ # } # modifier = { # add = -40 -# current_date >= 2600.1.1 +# current_date >= 868.1.1 # } # modifier = { # add = -15 -# current_date >= 2650.1.1 +# current_date >= 900.1.1 # } # modifier = { # add = -25 -# current_date >= 2700.1.1 +# current_date >= 950.1.1 # } # modifier = { # add = -10 -# current_date >= 2750.1.1 +# current_date >= 1000.1.1 # } # modifier = { #100 % that something happens if it can # add = -10 -# current_date >= 2850.1.1 +# current_date >= 1100.1.1 # } # } # } @@ -272,13 +269,7 @@ # capital_province ?= { geographical_region = world_steppe } # } # } -# if = { -# limit = { -# faith = { religion_tag = islam_religion } -# } -# change_government = clan_government -# } -# else = { change_government = feudal_government } +# update_feudal_governments_by_religion_effect = yes # capital_county = { # set_county_faith = prev.faith # } @@ -296,13 +287,7 @@ # capital_province ?= { geographical_region = world_steppe } # } # } -# if = { -# limit = { -# faith = { religion_tag = islam_religion } -# } -# change_government = clan_government -# } -# else = { change_government = feudal_government } +# update_feudal_governments_by_religion_effect = yes # capital_county = { # set_county_faith = root.faith # } @@ -319,20 +304,26 @@ global_religion.1000 = { first_valid = { triggered_desc = { trigger = { - exists = scope:seeking_same_faith_counties - scope:target_faith_associated_county_faith != scope:target_faith + OR = { + exists = scope:seeking_same_rite_counties + exists = scope:seeking_same_faith_counties + } + scope:target_rite_associated_county_rite != scope:target_rite } desc = global_religion.1000.desc_same_faith_counties_alt } triggered_desc = { trigger = { - exists = scope:seeking_same_faith_counties + OR = { + exists = scope:seeking_same_rite_counties + exists = scope:seeking_same_faith_counties + } } desc = global_religion.1000.desc_same_faith_counties } triggered_desc = { trigger = { - scope:target_faith_associated_county_faith = scope:target_faith + scope:target_rite_associated_county_rite = scope:target_rite } desc = global_religion.1000.desc_any_counties_alt } @@ -354,29 +345,44 @@ global_religion.1000 = { } immediate = { + # Stored here so the take-up-rite option does not have to check again + if = { + limit = { + pam_rite_locally_present_trigger = { RITE = scope:target_rite } + } + save_scope_value_as = { + name = exiles_rite_locally_present + value = yes + } + } hidden_effect_new_object = { - scope:target_faith = { + scope:target_rite = { var:associated_culture = { - save_scope_as = target_faith_associated_culture + save_scope_as = target_rite_associated_culture } var:associated_county = { - save_scope_as = target_faith_associated_county - faith = { save_scope_as = target_faith_associated_county_faith } + save_scope_as = target_rite_associated_county + rite = { save_scope_as = target_rite_associated_county_rite } } } save_scope_value_as = { name = initial_available_development - value = scope:target_faith.var:converted_development + value = scope:target_rite.var:converted_development + } + # Defaulted so the loops below still evaluate when no starting County is found. + save_scope_value_as = { + name = remaining_converted_development + value = 0 } - # Save same-faith Counties if that's what we're looking for, they can be all over the place + # Save same-rite Counties if that's what we're looking for, they can be all over the place if = { limit = { - exists = scope:seeking_same_faith_counties + exists = scope:seeking_same_rite_counties } random_sub_realm_county = { limit = { - faith = scope:target_faith + rite = scope:target_rite } save_scope_as = initial_county_target add_to_list = counties_to_move_in_to @@ -415,7 +421,79 @@ global_religion.1000 = { } random_sub_realm_county = { limit = { - faith = scope:target_faith + rite = scope:target_rite + NOT = { + is_in_list = counties_to_move_in_to + } + } + add_to_list = counties_to_move_in_to + set_variable = { + name = county_development_to_get + value = { + value = development_level + divide = 10 + floor = yes + add = 1 + max = scope:remaining_converted_development + min = 1 + } + } + save_scope_value_as = { + name = remaining_converted_development + value = { + value = scope:remaining_converted_development + subtract = var:county_development_to_get + } + } + } + } + } + else_if = { + limit = { + exists = scope:seeking_same_faith_counties + } + random_sub_realm_county = { + limit = { + faith = scope:target_rite.faith + } + save_scope_as = initial_county_target + add_to_list = counties_to_move_in_to + set_variable = { + name = county_development_to_get + value = { + value = development_level + divide = 10 + floor = yes + add = 1 + max = scope:initial_available_development + min = 1 + } + } + save_scope_value_as = { + name = remaining_converted_development + value = { + value = scope:initial_available_development + subtract = var:county_development_to_get + } + } + } + while = { + count = { + add = root.primary_title.tier + if = { + limit = { + root.primary_title.tier <= tier_duchy + } + add = -1 + min = 1 + } + } + limit = { + scope:remaining_converted_development > 0 + } + random_sub_realm_county = { + limit = { + faith = scope:target_rite.faith NOT = { is_in_list = counties_to_move_in_to } @@ -450,8 +528,8 @@ global_religion.1000 = { faith = root.faith NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:target_faith + name = rites_converted_in_the_county + target = scope:target_rite } } trigger_if = { @@ -512,8 +590,8 @@ global_religion.1000 = { faith = root.faith NOT = { is_target_in_variable_list = { - name = faiths_converted_in_the_county - target = scope:target_faith + name = rites_converted_in_the_county + target = scope:target_rite } } trigger_if = { @@ -584,16 +662,17 @@ global_religion.1000 = { } create_character = { template = pool_repopulate_learning - faith = scope:target_faith - culture = scope:target_faith_associated_culture + faith = scope:target_rite.faith + rite = scope:target_rite + culture = scope:target_rite_associated_culture location = root.capital_province gender_female_chance = { if = { - limit = { scope:target_faith = { has_doctrine = doctrine_gender_male_dominated } } + limit = { scope:target_rite = { rite_has_doctrine = doctrine_gender_male_dominated } } add = 0 } else_if = { - limit = { scope:target_faith = { has_doctrine = doctrine_gender_female_dominated } } + limit = { scope:target_rite = { rite_has_doctrine = doctrine_gender_female_dominated } } add = 100 } else = { @@ -603,6 +682,7 @@ global_religion.1000 = { save_scope_as = local_character } scope:local_character = { + set_character_rite = scope:target_rite add_trait = lifestyle_mystic set_variable = { name = loc_number @@ -636,9 +716,12 @@ global_religion.1000 = { capital_county = { if = { limit = { - faith != scope:target_faith + OR = { + faith != scope:target_rite.faith + rite != scope:target_rite + } } - faith = { + rite = { if = { limit = { OR = { @@ -706,10 +789,13 @@ global_religion.1000 = { } if = { limit = { - root.faith != scope:target_faith - faith != scope:target_faith + OR = { + root.faith != scope:target_rite.faith + rite != scope:target_rite + } } - set_county_faith = scope:target_faith + set_county_faith = scope:target_rite.faith + set_county_rite = scope:target_rite } change_development_level = { value = { @@ -740,11 +826,11 @@ global_religion.1000 = { if = { limit = { - culture != scope:target_faith_associated_culture + culture != scope:target_rite_associated_culture } culture = { change_cultural_acceptance = { - target = scope:target_faith_associated_culture + target = scope:target_rite_associated_culture value = { value = scope:initial_available_development subtract = scope:remaining_converted_development @@ -754,7 +840,7 @@ global_religion.1000 = { } } - scope:target_faith = { + scope:target_rite = { change_variable = { name = converted_development subtract = { @@ -771,6 +857,7 @@ global_religion.1000 = { if = { limit = { is_ai = no + NOT = { exists = scope:pam_syncretic_exiles_decision } } add_achievement_global_variable_effect = { VARIABLE = achieved_ep4_20_promised_land_achievement @@ -809,11 +896,11 @@ global_religion.1000 = { if = { limit = { - culture != scope:target_faith_associated_culture + culture != scope:target_rite_associated_culture } culture = { change_cultural_acceptance = { - target = scope:target_faith_associated_culture + target = scope:target_rite_associated_culture value = { value = scope:initial_available_development subtract = scope:remaining_converted_development @@ -824,14 +911,14 @@ global_religion.1000 = { } } - scope:target_faith = { + scope:target_rite = { change_variable = { name = converted_development subtract = 1 } } - stress_impact = { + stress_and_fulfillment_impact = { generous = massive_stress_impact_gain compassionate = massive_stress_impact_gain humble = medium_stress_impact_gain @@ -856,14 +943,21 @@ global_religion.1000 = { name = global_religion.1000.special add_internal_flag = dangerous trigger = { - faith != scope:target_faith + rite != scope:target_rite faith.religious_head != root + trigger_if = { # The AI only takes up a rite that already has a foothold nearby, unless it is unreformed and this is its road out of paganism; players may follow their conscience + limit = { is_ai = yes } + OR = { + exists = scope:exiles_rite_locally_present + rite = { rite_has_parameter = unreformed } + } + } } show_as_tooltip = { - set_character_faith_with_conversion = scope:target_faith + set_character_rite_with_conversion = scope:target_rite if = { limit = { - scope:target_faith = { has_doctrine = doctrine_monotheist } + scope:target_rite = { has_doctrine = doctrine_monotheist } } custom_description_no_bullet = { text = mandala_monotheist_warning_tt } } @@ -880,8 +974,8 @@ global_religion.1000 = { } else_if = { limit = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } - scope:target_faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + scope:target_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } } add_piety = minor_piety_gain } @@ -889,7 +983,7 @@ global_religion.1000 = { add_piety_level = -2 } hidden_effect = { - set_character_faith_with_conversion = scope:target_faith + set_character_rite_with_conversion = scope:target_rite } if = { limit = { @@ -906,25 +1000,27 @@ global_religion.1000 = { } if = { limit = { - domicile_faith != scope:target_faith + domicile_faith != scope:target_rite.faith } - set_domicile_faith = scope:target_faith + set_domicile_faith = scope:target_rite.faith } } every_held_title = { limit = { tier = tier_county is_landless_type_title = no - faith = root.faith + rite = root.rite } - set_county_faith = scope:target_faith + set_county_faith = scope:target_rite.faith + set_county_rite = scope:target_rite } } else = { every_in_list = { list = counties_to_move_in_to change_development_level = var:county_development_to_get - set_county_faith = scope:target_faith + set_county_faith = scope:target_rite.faith + set_county_rite = scope:target_rite change_county_control = { value = var:county_development_to_get multiply = -5 @@ -934,11 +1030,11 @@ global_religion.1000 = { if = { limit = { - culture != scope:target_faith_associated_culture + culture != scope:target_rite_associated_culture } culture = { change_cultural_acceptance = { - target = scope:target_faith_associated_culture + target = scope:target_rite_associated_culture value = { value = scope:initial_available_development subtract = scope:remaining_converted_development @@ -948,7 +1044,7 @@ global_religion.1000 = { } } - scope:target_faith = { + scope:target_rite = { change_variable = { name = converted_development subtract = { @@ -960,13 +1056,14 @@ global_religion.1000 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain } if = { limit = { is_ai = no + NOT = { exists = scope:pam_syncretic_exiles_decision } } add_achievement_global_variable_effect = { VARIABLE = achieved_ep4_20_promised_land_achievement @@ -978,25 +1075,27 @@ global_religion.1000 = { base = 0 modifier = { current_year >= 1000 - faith = { - has_doctrine_parameter = unreformed - NOT = { religion_tag = baltic_religion } + rite = { + rite_has_parameter = unreformed + faith = { + NOT = { religion_tag = baltic_religion } + } } add = 10 } modifier = { - faith = { has_doctrine = doctrine_pluralism_pluralistic } - scope:target_faith = { has_doctrine = doctrine_pluralism_pluralistic } + rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } + scope:target_rite = { rite_has_doctrine = doctrine_pluralism_pluralistic } OR = { - faith.religion = scope:target_faith.religion + faith.religion = scope:target_rite.faith.religion AND = { faith.religion = { is_in_family = rf_eastern } - scope:target_faith.religion = { is_in_family = rf_eastern } + scope:target_rite.faith.religion = { is_in_family = rf_eastern } } AND = { faith.religion = { is_in_family = rf_sinitic } - scope:target_faith.religion = { is_in_family = rf_sinitic } + scope:target_rite.faith.religion = { is_in_family = rf_sinitic } } } @@ -1013,35 +1112,35 @@ global_religion.1000 = { modifier = { faith.religion = { is_in_family = rf_abrahamic } NOT = { - scope:target_faith.religion = { is_in_family = rf_abrahamic } + scope:target_rite.faith.religion = { is_in_family = rf_abrahamic } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_sunni_doctrine } + rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_sunni_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_shia_doctrine } + rite = { rite_has_doctrine = muhammad_succession_shia_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_shia_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_shia_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } + rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } + rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine } } factor = 0 } @@ -1057,7 +1156,10 @@ global_religion.1000 = { add_courtier = scope:local_character if = { limit = { - exists = scope:seeking_same_faith_counties + OR = { + exists = scope:seeking_same_rite_counties + exists = scope:seeking_same_faith_counties + } } if = { limit = { @@ -1101,9 +1203,9 @@ global_religion.1000 = { } if = { limit = { - domicile_faith != scope:target_faith + domicile_faith != scope:target_rite.faith } - set_domicile_faith = scope:target_faith + set_domicile_faith = scope:target_rite.faith } } every_held_title = { @@ -1112,7 +1214,8 @@ global_religion.1000 = { is_landless_type_title = no faith = root.faith } - set_county_faith = scope:target_faith + set_county_faith = scope:target_rite.faith + set_county_rite = scope:target_rite } } else = { @@ -1129,7 +1232,8 @@ global_religion.1000 = { multiply = 2 } } - set_county_faith = scope:target_faith + set_county_faith = scope:target_rite.faith + set_county_rite = scope:target_rite change_county_control = { value = var:county_development_to_get multiply = -5 @@ -1140,11 +1244,11 @@ global_religion.1000 = { if = { limit = { - culture != scope:target_faith_associated_culture + culture != scope:target_rite_associated_culture } culture = { change_cultural_acceptance = { - target = scope:target_faith_associated_culture + target = scope:target_rite_associated_culture value = { value = scope:initial_available_development subtract = scope:remaining_converted_development @@ -1154,7 +1258,7 @@ global_religion.1000 = { } } - scope:target_faith = { + scope:target_rite = { change_variable = { name = converted_development subtract = { @@ -1169,6 +1273,7 @@ global_religion.1000 = { if = { limit = { is_ai = no + NOT = { exists = scope:pam_syncretic_exiles_decision } } add_achievement_global_variable_effect = { VARIABLE = achieved_ep4_20_promised_land_achievement @@ -1176,33 +1281,43 @@ global_religion.1000 = { } } + # Sheltering exiles of your own religion is spiritually fulfilling; housing foreign faiths is realm business + if = { + limit = { + faith.religion = scope:target_rite.faith.religion + } + change_spiritual_fulfillment = minor_spiritual_fulfillment_value + } + ai_chance = { base = 0 modifier = { - faith = scope:target_faith + rite = scope:target_rite add = 5000 } modifier = { current_year >= 1000 - faith = { - has_doctrine_parameter = unreformed - NOT = { religion_tag = baltic_religion } + rite = { + rite_has_parameter = unreformed + faith = { + NOT = { religion_tag = baltic_religion } + } } add = 10 } modifier = { faith.religion = { is_in_family = rf_eastern } - scope:target_faith.religion = { is_in_family = rf_eastern } + scope:target_rite.faith.religion = { is_in_family = rf_eastern } add = 1000 } modifier = { faith.religion = { is_in_family = rf_sinitic } - scope:target_faith.religion = { is_in_family = rf_sinitic } + scope:target_rite.faith.religion = { is_in_family = rf_sinitic } add = 1000 } modifier = { culture = { has_cultural_pillar = heritage_chinese } - scope:target_faith.religion = { is_in_family = rf_sinitic } + scope:target_rite.faith.religion = { is_in_family = rf_sinitic } add = 1000 } modifier = { @@ -1214,51 +1329,51 @@ global_religion.1000 = { } is_open_to_inviting_other_faiths_trigger = yes faith.religion = { is_in_family = rf_eastern } - scope:target_faith = { num_county_followers < 5 } + scope:target_rite.faith = { num_county_followers < 5 } add = 1000 } modifier = { is_open_to_inviting_other_faiths_trigger = yes - scope:target_faith = { faith_is_open_minded_trigger = yes } + scope:target_rite = { faith_is_open_minded_trigger = yes } add = 10 } modifier = { faith.religion = { is_in_family = rf_abrahamic } NOT = { - scope:target_faith.religion = { is_in_family = rf_abrahamic } + scope:target_rite.faith.religion = { is_in_family = rf_abrahamic } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_sunni_doctrine } + rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_sunni_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_sunni_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_shia_doctrine } + rite = { rite_has_doctrine = muhammad_succession_shia_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_shia_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_shia_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } + rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_muhakkima_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_muhakkima_doctrine } } factor = 0 } modifier = { - faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } + rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine } NOT = { - scope:target_faith = { has_doctrine = muhammad_succession_zandaqa_doctrine } + scope:target_rite = { rite_has_doctrine = muhammad_succession_zandaqa_doctrine } } factor = 0 } modifier = { - faith != scope:target_faith + faith != scope:target_rite.faith any_sub_realm_county = { count < { value = { @@ -1293,7 +1408,7 @@ global_religion.1000 = { else = { if = { limit = { - faith != scope:target_faith + faith != scope:target_rite.faith } add_piety = { value = { diff --git a/events/historical_character_events.txt b/events/historical_character_events.txt index 6d7aa595d..8b78e5065 100644 --- a/events/historical_character_events.txt +++ b/events/historical_character_events.txt @@ -46,10 +46,7 @@ historical_char_creation_events.1 = { override_background = { trigger = { scope:historical_character = { - OR = { - has_trait = eunuch_1 - has_trait = beardless_eunuch - } + is_eunuch_trigger = yes } } reference = relaxing_room @@ -93,7 +90,7 @@ historical_char_creation_events.1 = { trigger = { scope:historical_character = { OR = { - has_trait = scholar + has_trait = erudite has_trait = administrator } } @@ -146,19 +143,19 @@ historical_char_creation_events.1 = { } triggered_animation = { trigger = { - OR = { - has_variable = takezaki_suenaga - has_variable = sakata_kintoki + has_variable = { + name = takezaki_suenaga + name = sakata_kintoki } } animation = hasso_no_kamae } triggered_animation = { trigger = { - OR = { - has_variable = yue_fei - has_variable = wen_tianxiang - has_variable = pham_ngu_lao + has_variable = { + name = yue_fei + name = wen_tianxiang + name = pham_ngu_lao } } animation = relaxed_spear @@ -171,20 +168,14 @@ historical_char_creation_events.1 = { } triggered_animation = { trigger = { - OR = { - has_trait = eunuch_1 - has_trait = beardless_eunuch - } + is_eunuch_trigger = yes has_education_intrigue_trigger = yes } animation = scheme } triggered_animation = { trigger = { - OR = { - has_trait = eunuch_1 - has_trait = beardless_eunuch - } + is_eunuch_trigger = yes } animation = obsequious_bow } @@ -220,7 +211,7 @@ historical_char_creation_events.1 = { has_trait = lifestyle_poet OR = { has_trait = theologian - has_trait = scholar + has_trait = erudite } } animation = happy_teacher @@ -312,9 +303,13 @@ historical_char_creation_events.1 = { hidden_effect = { scope:historical_character = { - populate_location_with_contracts_effect = { - AREA_CHAR = scope:historical_character - AMOUNT = 3 + # The option tooltip evaluates this before the adventurer title exists; skip the null capital_province there. + if = { + limit = { has_government = landless_adventurer_government } + populate_location_with_contracts_effect = { + AREA_CHAR = scope:historical_character + AMOUNT = 3 + } } if = { limit = { diff --git a/events/marriage_effect_events.txt b/events/marriage_effect_events.txt index c9c99388d..8834f08a6 100644 --- a/events/marriage_effect_events.txt +++ b/events/marriage_effect_events.txt @@ -49,9 +49,9 @@ marriage_effect.0001 = { is_female = yes OR = { AND = { - OR = { - has_character_flag = unmarried_bastard_pregnancy - has_character_flag = bastard_pregnancy + has_variable = { + name = unmarried_bastard_pregnancy + name = bastard_pregnancy } pregnancy_real_father = { this = scope:spouse } } @@ -74,9 +74,9 @@ marriage_effect.0001 = { is_female = yes OR = { AND = { - OR = { - has_character_flag = unmarried_bastard_pregnancy - has_character_flag = bastard_pregnancy + has_variable = { + name = unmarried_bastard_pregnancy + name = bastard_pregnancy } pregnancy_real_father = { this = root } } @@ -254,7 +254,7 @@ marriage_effect.0001 = { option = { name = marriage_effect.0001.a - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss } @@ -306,9 +306,9 @@ marriage_effect.0002 = { pregnancy_real_father = { this = scope:new_spouse } - OR = { - has_character_flag = pregnancy_real_father_knows - has_character_flag = pregnancy_real_father_of_bastard_is_known_flag + has_variable = { + name = pregnancy_real_father_knows + name = pregnancy_real_father_of_bastard_is_known_flag } } } @@ -382,9 +382,9 @@ marriage_effect.0002 = { pregnancy_real_father = { this = scope:new_spouse } - NOR = { - has_character_flag = pregnancy_real_father_knows - has_character_flag = pregnancy_real_father_of_bastard_is_known_flag + has_none_of_variables = { + name = pregnancy_real_father_knows + name = pregnancy_real_father_of_bastard_is_known_flag } } } @@ -403,7 +403,7 @@ marriage_effect.0002 = { } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss } } @@ -505,9 +505,9 @@ marriage_effect.0011 = { is_female = yes OR = { AND = { - OR = { - has_character_flag = unmarried_bastard_pregnancy - has_character_flag = bastard_pregnancy + has_variable = { + name = unmarried_bastard_pregnancy + name = bastard_pregnancy } pregnancy_real_father = { this = scope:consort } } @@ -676,7 +676,7 @@ marriage_effect.0011 = { option = { name = marriage_effect.0001.a - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss } @@ -726,9 +726,9 @@ marriage_effect.0012 = { pregnancy_real_father = { this = scope:new_spouse } - OR = { - has_character_flag = pregnancy_real_father_knows - has_character_flag = pregnancy_real_father_of_bastard_is_known_flag + has_variable = { + name = pregnancy_real_father_knows + name = pregnancy_real_father_of_bastard_is_known_flag } } } @@ -802,9 +802,9 @@ marriage_effect.0012 = { pregnancy_real_father = { this = scope:new_spouse } - NOR = { - has_character_flag = pregnancy_real_father_knows - has_character_flag = pregnancy_real_father_of_bastard_is_known_flag + has_none_of_variables = { + name = pregnancy_real_father_knows + name = pregnancy_real_father_of_bastard_is_known_flag } } } @@ -823,7 +823,7 @@ marriage_effect.0012 = { } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss } } @@ -967,8 +967,8 @@ marriage_effect.2001 = { } triggered_desc = { trigger = { - faith = { - has_doctrine_parameter = divine_marriage_piety_gain_active + rite = { + rite_has_parameter = divine_marriage_piety_gain_active } scope:new_spouse = { is_close_family_of = root @@ -1013,11 +1013,11 @@ marriage_effect.2001 = { is_ruler = yes # Is not a LAAMP - is_landed_or_landless_administrative = yes + is_landed_or_landless_administrative_or_theocratic = yes # Only monogamous faiths care enough about a single marriage for the event. - faith = { - has_doctrine_parameter = marriage_event + rite = { + rite_has_parameter = marriage_event } # Only a character's first spouse counts. @@ -1055,7 +1055,8 @@ marriage_effect.2001 = { option = { name = marriage_effect.2001.a - add_treasury_or_gold = major_treasury_or_gold_value + # The wedding levy is a personal windfall, so it goes into the ruler's own purse even for ecclesiastics + add_gold = major_gold_value } option = { @@ -1066,8 +1067,8 @@ marriage_effect.2001 = { after = { if = { limit = { - faith = { - has_doctrine_parameter = divine_marriage_piety_gain_active + rite = { + rite_has_parameter = divine_marriage_piety_gain_active } scope:new_spouse = { is_close_family_of = root diff --git a/events/mpo_chaotic_kurultai_succession.txt b/events/mpo_chaotic_kurultai_succession.txt index 3de86ea54..d02dfd588 100644 --- a/events/mpo_chaotic_kurultai_succession.txt +++ b/events/mpo_chaotic_kurultai_succession.txt @@ -3,6 +3,7 @@ scripted_trigger disobedient_kurultai_member_trigger = { is_physically_able_ai_adult = yes NOR = { + this = root is_obedient_to = root has_relation_friend = root has_relation_lover = root diff --git a/events/mpo_flavor_events.txt b/events/mpo_flavor_events.txt index 669d0fd24..766de20b8 100644 --- a/events/mpo_flavor_events.txt +++ b/events/mpo_flavor_events.txt @@ -46,7 +46,7 @@ mpo_special_flavor_events.0001 = { option = { #cool name = mpo_special_flavor_events.0001.a - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss shy = major_stress_impact_loss paranoid = major_stress_impact_loss @@ -55,4 +55,4 @@ mpo_special_flavor_events.0001 = { patient = major_stress_impact_loss } } -} \ No newline at end of file +} diff --git a/events/single_combat_events.txt b/events/single_combat_events.txt index f83a8b40e..8d1a14fd1 100644 --- a/events/single_combat_events.txt +++ b/events/single_combat_events.txt @@ -650,11 +650,11 @@ scripted_effect select_special_tier_move_effect = { # NOR = { # AND = { # this = scope:sc_defender -# scope:sc_attacker = { has_title = title:e_byzantium } +# scope:sc_attacker = { is_roman_emperor_trigger = yes } # } # AND = { # this = scope:sc_attacker -# scope:sc_defender = { has_title = title:e_byzantium } +# scope:sc_defender = { is_roman_emperor_trigger = yes } # } # } # # Block special moves twice in a row. @@ -1890,18 +1890,10 @@ scripted_effect work_out_wounds_or_death_effect = { limit = { scope:fatality = flag:default } if = { limit = { fatality_default_will_die_trigger = yes } - scope:sc_loser = { - death = { - killer = scope:sc_victor - death_reason = death_duel - } - } if = { limit = { scope:sc_victor = { - faith = { - has_doctrine = tenet_cranial_trophies - } + tgp_cranial_trophies_collection_trigger = yes } } tgp_cranial_trophies_beheading_effect = { @@ -1909,6 +1901,12 @@ scripted_effect work_out_wounds_or_death_effect = { DEAD = scope:sc_loser } } + scope:sc_loser = { + death = { + killer = scope:sc_victor + death_reason = death_duel + } + } } else = { scope:sc_loser = { @@ -1928,18 +1926,10 @@ scripted_effect work_out_wounds_or_death_effect = { add_kinslayer_trait_or_nothing_effect = { VICTIM = scope:sc_loser } } } - scope:sc_loser = { - death = { - killer = scope:sc_victor - death_reason = death_duel - } - } if = { limit = { scope:sc_victor = { - faith = { - has_doctrine = tenet_cranial_trophies - } + tgp_cranial_trophies_collection_trigger = yes } } tgp_cranial_trophies_beheading_effect = { @@ -1947,6 +1937,12 @@ scripted_effect work_out_wounds_or_death_effect = { DEAD = scope:sc_loser } } + scope:sc_loser = { + death = { + killer = scope:sc_victor + death_reason = death_duel + } + } } } @@ -2247,15 +2243,21 @@ scripted_effect finalise_combat_results_effect = { # Specific to Germanic pagans. religion = religion:folk_germanic_religion # And they gotta be warlike. - faith = { - OR = { - has_doctrine_parameter = warmonger - has_doctrine_parameter = conquest_cb_enabled - has_doctrine_parameter = invasion_cb_enabled - has_doctrine_parameter = great_holy_wars_active_if_reformed - has_doctrine_parameter = clergy_can_fight - has_doctrine_parameter = cheaper_holy_wars_active - has_doctrine_parameter = great_holy_wars_active + OR = { + faith = { + OR = { + has_doctrine_parameter = conquest_cb_enabled + has_doctrine_parameter = invasion_cb_enabled + has_doctrine_parameter = great_holy_wars_active_if_reformed + has_doctrine_parameter = cheaper_holy_wars_active + has_doctrine_parameter = great_holy_wars_active + } + } + rite = { + OR = { + rite_has_parameter = warmonger + rite_has_parameter = clergy_can_fight + } } } } @@ -6678,7 +6680,7 @@ single_combat.0001 = { hidden_effect = { combat_move_wait_and_hope_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { patient = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss impatient = miniscule_stress_impact_gain @@ -6763,7 +6765,7 @@ single_combat.0001 = { hidden_effect = { combat_move_enthusiastic_onslaught_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss wrathful = miniscule_stress_impact_loss patient = miniscule_stress_impact_gain @@ -6794,7 +6796,7 @@ single_combat.0001 = { hidden_effect = { combat_move_hail_mary_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss brave = minor_stress_impact_loss patient = miniscule_stress_impact_gain @@ -6825,7 +6827,7 @@ single_combat.0001 = { hidden_effect = { combat_move_pocket_sand_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = miniscule_stress_impact_loss arbitrary = miniscule_stress_impact_loss honest = miniscule_stress_impact_gain @@ -6856,7 +6858,7 @@ single_combat.0001 = { hidden_effect = { combat_move_nut_em_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = miniscule_stress_impact_loss arbitrary = miniscule_stress_impact_loss honest = miniscule_stress_impact_gain @@ -6887,7 +6889,7 @@ single_combat.0001 = { hidden_effect = { combat_move_guard_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { patient = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss impatient = miniscule_stress_impact_gain @@ -6944,7 +6946,7 @@ single_combat.0001 = { hidden_effect = { combat_move_onslaught_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss wrathful = miniscule_stress_impact_loss patient = miniscule_stress_impact_gain @@ -7001,7 +7003,7 @@ single_combat.0001 = { hidden_effect = { combat_move_taunt_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { callous = miniscule_stress_impact_loss sadistic = miniscule_stress_impact_loss compassionate = miniscule_stress_impact_gain @@ -7031,7 +7033,7 @@ single_combat.0001 = { hidden_effect = { combat_move_put_the_boot_in_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss brave = minor_stress_impact_loss patient = miniscule_stress_impact_gain @@ -7062,7 +7064,7 @@ single_combat.0001 = { hidden_effect = { combat_move_strict_guard_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { patient = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss impatient = miniscule_stress_impact_gain @@ -7119,7 +7121,7 @@ single_combat.0001 = { hidden_effect = { combat_move_expert_onslaught_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss wrathful = miniscule_stress_impact_loss patient = miniscule_stress_impact_gain @@ -7150,7 +7152,7 @@ single_combat.0001 = { hidden_effect = { combat_move_attempt_disarm_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { patient = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss impatient = miniscule_stress_impact_gain @@ -7181,7 +7183,7 @@ single_combat.0001 = { hidden_effect = { combat_move_lightning_assault_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { impatient = miniscule_stress_impact_loss diligent = miniscule_stress_impact_loss patient = miniscule_stress_impact_gain @@ -7212,7 +7214,7 @@ single_combat.0001 = { hidden_effect = { combat_move_tire_opponent_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7246,7 +7248,7 @@ single_combat.0001 = { hidden_effect = { combat_move_reason_you_suck_speech_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { callous = miniscule_stress_impact_loss sadistic = miniscule_stress_impact_loss gregarious = miniscule_stress_impact_loss @@ -7281,7 +7283,7 @@ single_combat.0001 = { hidden_effect = { combat_move_technique_from_legend_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_loss trusting = minor_stress_impact_loss # A trusting character *totally* believes the legends are both true and accurate! craven = minor_stress_impact_gain @@ -7290,10 +7292,10 @@ single_combat.0001 = { ai_chance = { base = 100 sce_shrewd_fighter_scripted_modifier = yes - # Weight up relevant traits: scholar + # Weight up relevant traits: erudite modifier = { add = sce_ai_mod_trait_weight_medium - has_trait = scholar + has_trait = erudite } # Weight up relevant traits: theologian modifier = { @@ -7325,7 +7327,7 @@ single_combat.0001 = { hidden_effect = { combat_move_like_a_viper_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss arbitrary = minor_stress_impact_loss honest = minor_stress_impact_gain @@ -7369,7 +7371,7 @@ single_combat.0001 = { hidden_effect = { combat_move_pocket_silver_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = miniscule_stress_impact_loss arbitrary = miniscule_stress_impact_loss generous = miniscule_stress_impact_loss @@ -7410,7 +7412,7 @@ single_combat.0001 = { hidden_effect = { combat_move_martial_voice_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { callous = miniscule_stress_impact_loss sadistic = miniscule_stress_impact_loss gregarious = miniscule_stress_impact_loss @@ -7447,7 +7449,7 @@ single_combat.0001 = { hidden_effect = { combat_move_mocking_boast_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { callous = miniscule_stress_impact_loss sadistic = miniscule_stress_impact_loss arrogant = miniscule_stress_impact_loss @@ -7508,7 +7510,7 @@ single_combat.0001 = { hidden_effect = { combat_move_desert_warrior_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7542,7 +7544,7 @@ single_combat.0001 = { hidden_effect = { combat_move_jungle_stalker_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7576,7 +7578,7 @@ single_combat.0001 = { hidden_effect = { combat_move_open_terrain_expert_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7610,7 +7612,7 @@ single_combat.0001 = { hidden_effect = { combat_move_rough_terrain_expert_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7644,7 +7646,7 @@ single_combat.0001 = { hidden_effect = { combat_move_forest_fighter_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = miniscule_stress_impact_loss calm = miniscule_stress_impact_loss lazy = miniscule_stress_impact_gain @@ -7736,7 +7738,7 @@ single_combat.0001 = { hidden_effect = { combat_move_feint_and_stab_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_loss arbitrary = minor_stress_impact_loss honest = minor_stress_impact_gain @@ -7770,7 +7772,7 @@ single_combat.0001 = { hidden_effect = { combat_move_butchery_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss sadistic = minor_stress_impact_loss compassionate = minor_stress_impact_gain @@ -7881,7 +7883,7 @@ single_combat.0001 = { hidden_effect = { combat_move_wrath_of_highgod_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { # Takes a bold human to stop fighting entirely and pray, however loudly, in the middle of a duel. craven = miniscule_stress_impact_loss brave = miniscule_stress_impact_gain @@ -7966,7 +7968,7 @@ single_combat.0001 = { hidden_effect = { combat_move_something_to_hide_effect = yes } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = miniscule_stress_impact_loss arbitrary = miniscule_stress_impact_loss honest = miniscule_stress_impact_gain @@ -9888,7 +9890,7 @@ single_combat.0031 = { # Consolation prize for being a sore loser to a rival. else = { add_stress = minor_stress_loss } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_loss vengeful = medium_stress_impact_loss humble = minor_stress_impact_gain @@ -9953,9 +9955,9 @@ single_combat.0031 = { limit = { is_ai = no } if = { #check for variables set up in set_temporary_signature_weapon limit = { - OR = { - has_variable = og_signature_weapon - has_variable = temporary_signature_weapon + has_variable = { + name = og_signature_weapon + name = temporary_signature_weapon } } if = { #remove the signature_weapon variable if the character didn't have anything before @@ -11303,7 +11305,7 @@ single_combat.0041 = { } if = { limit = { - scope:sc_victor.faith = { has_doctrine = tenet_cranial_trophies } + scope:sc_victor = { tgp_cranial_trophies_collection_trigger = yes } } show_as_tooltip = { tgp_cranial_trophies_beheading_effect = { @@ -11435,7 +11437,7 @@ single_combat.0041 = { limit = { has_relation_rival = scope:sc_loser } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss } } @@ -11516,9 +11518,9 @@ single_combat.0041 = { limit = { is_ai = no } if = { #check for variables set up in set_temporary_signature_weapon limit = { - OR = { - has_variable = og_signature_weapon - has_variable = temporary_signature_weapon + has_variable = { + name = og_signature_weapon + name = temporary_signature_weapon } } if = { #remove the signature_weapon variable if the character didn't have anything before diff --git a/events/title_events.txt b/events/title_events.txt index eb91140e3..5eaaf1b7e 100644 --- a/events/title_events.txt +++ b/events/title_events.txt @@ -155,13 +155,9 @@ title_event.9900 = { } } } - #Otherwise go vanilla + #Otherwise go feudals else = { - if = { - limit = { ep3_is_clan_inclined_trigger = yes } - change_government = clan_government - } - else = { change_government = feudal_government } + assign_feudal_governments_effect = yes } } #Otherwise we have city_construction_is_castle @@ -175,13 +171,9 @@ title_event.9900 = { } capital_province = { set_holding_type = castle_holding } } - #Otherwise go vanilla + #Otherwise go feudals else = { - if = { - limit = { ep3_is_clan_inclined_trigger = yes } - change_government = clan_government - } - else = { change_government = feudal_government } + assign_feudal_governments_effect = yes } } remove_variable = city_construction_is_temple_citadel diff --git a/events/varangian_events.txt b/events/varangian_events.txt index 1587e7a36..6438920c2 100644 --- a/events/varangian_events.txt +++ b/events/varangian_events.txt @@ -1,1307 +1,3 @@ -#namespace = varangian -# -## Events about the Varangian Guard -# # varangian.0001 - Find a potential Varangian and fire chain, by Petter Vilberg -# # varangian.0002 - Event for the liege of the Varangian candidate, by Petter Vilberg -# # varangian.0003 - Emperor gets a new varangian, by Petter Vilberg -# # varangian.1001 - Varangian decides to return, by Petter Vilberg -# # varangian.1002 - Varangian comes home to liege, by Petter Vilberg -# -# # Ongoing Varangian events -# # varangian.2001 - Become Best Friends with another Varangian, by Petter Vilberg -# # varangian.2002 - Become Lover with a fellow Varangian, by Petter Vilberg -# # varangian.2003 - Become Friends with a local ruler, by Petter Vilberg -# # varangian.2004 - Become Rivals with a local ruler, by Petter Vilberg -# # varangian.2005 - Marry your lover, by Petter Vilberg -# # varangian.2008 - Get wounded, by Petter Vilberg -# # varangian.2011 - Become lover with a local, by Petter Vilberg -# # varangian.2012 - Increase Prowess, by Petter Vilberg -# # varangian.2013 - Increase Martial, by Petter Vilberg -# # varangian.2014 - Increase Learning, by Petter Vilberg -# # varangian.2015 - Increase Diplomacy, by Petter Vilberg -# # varangian.2016 - Become Brave, by Petter Vilberg -# # varangian.2017 - Become Ambitious, by Petter Vilberg -# # varangian.2018 - Become Diligent, by Petter Vilberg -# -## Evaluate whether the target is valid for varangians -#scripted_trigger varangian_0001_available_varangian_trigger = { -# can_be_knight_trigger = { -# ARMY_OWNER = title:e_byzantium.holder -# } -# age < 40 -# is_married = no -# NOR = { -# has_character_flag = has_asked_to_be_varangian -# has_trait = varangian -# } -# religion = religion:folk_germanic_religion -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# has_trait = craven -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# has_relation_rival = title:e_byzantium.holder -# } -#} -# -#varangian.0001 = { -# hidden = yes -# -# trigger = { -# religion = religion:folk_germanic_religion -# NOR = { -# faith = { -# has_doctrine_parameter = pacifist_opinion_active -# } -# has_character_flag = had_recent_varangian_sendoff -# } -# is_at_war = no -# age >= 6 -# exists = title:e_byzantium.holder -# NOR = { -# this = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# is_at_war_with = title:e_byzantium.holder -# any_sub_realm_county = { -# this = title:c_byzantion -# } -# has_relation_rival = title:e_byzantium.holder -# } -# any_courtier = { -# varangian_0001_available_varangian_trigger = yes -# } -# } -# -# immediate = { -# # Find a suitable courtier -# random_courtier = { -# limit = { -# varangian_0001_available_varangian_trigger = yes -# } -# weight = { -# base = 1 -# compare_modifier = { -# value = martial -# multiplier = 0.25 -# } -# compare_modifier = { -# value = prowess -# multiplier = 0.5 -# } -# modifier = { -# add = 5 -# OR = { -# has_trait = brave -# has_trait = arrogant -# } -# } -# modifier = { -# add = -1 -# has_trait = content -# } -# modifier = { -# add = -1 -# has_trait = lazy -# } -# modifier = { -# add = -1 -# has_trait = craven -# } -# modifier = { -# add = 3 -# is_of_major_interest_to_root_trigger = yes -# } -# modifier = { -# add = 2 -# is_of_minor_interest_to_root_trigger = yes -# } -# modifier = { -# add = 1 -# exists = dynasty -# } -# # Reduce chances if they seem likely to inherit stuff soon -# modifier = { -# factor = 0.2 -# any_heir_title = { -# holder ?= { -# this = root -# OR = { -# age >= 60 -# health <= poor_health -# } -# } -# } -# } -# } -# add_character_flag = has_asked_to_be_varangian -# save_scope_as = varangian_candidate -# } -# -# title:e_byzantium.holder = { -# save_scope_as = emperor -# if = { -# limit = { capital_county = title:c_byzantion } -# set_local_variable = { -# name = to_miklagard -# value = yes -# } -# } -# } -# -# # Send event to court owner -# trigger_event = varangian.0002 -# } -#} -# -# -## Varangian requests permission to leave -#varangian.0002 = { -# type = character_event -# title = varangian.0002.t -# desc = { -# desc = varangian.0002.opening -# first_valid = { -# triggered_desc = { -# trigger = { exists = local_var:to_miklagard } -# desc = varangian.0002.miklagard -# } -# desc = varangian.0002.elsewhere -# } -# desc = varangian.0002.end -# } -# theme = martial -# left_portrait = { -# character = root -# animation = war_over_tie -# } -# right_portrait = { -# character = scope:varangian_candidate -# animation = personality_bold -# } -# lower_right_portrait = scope:emperor -# -# immediate = { -# add_character_flag = { -# flag = had_recent_varangian_sendoff -# years = 5 -# } -# } -# -# option = { # Approve -# name = varangian.0002.a -# show_as_tooltip = { -# scope:varangian_candidate = { -# visit_court_of = scope:emperor -# add_trait = varangian -# } -# } -# every_scheme = { -# limit = { -# any_scheme_agent_character = { this = scope:varangian_candidate } -# } -# save_scope_as = scheme -# scope:varangian_candidate = { forbid_from_scheme = scope:scheme } -# } -# hidden_effect = { -# scope:emperor = { -# trigger_event = varangian.0003 -# } -# } -# debug_log = "Someone got sent as a Varangian" -# debug_log_scopes = yes -# ai_chance = { -# base = 100 -# } -# } -# -# option = { # Keep them -# name = varangian.0002.b -# scope:varangian_candidate = { -# add_opinion = { -# target = root -# modifier = angry_opinion -# opinion = -20 -# } -# } -# ai_chance = { -# base = 0 -# } -# } -#} -# -## Emperor gets a new varangian -#varangian.0003 = { -# hidden = yes -# -# immediate = { -# send_interface_message = { -# type = event_martial_text_good -# left_icon = scope:varangian_candidate -# title = varangian_arrived.title -# desc = varangian_arrived.desc -# if = { -# limit = { -# exists = scope:varangian_candidate.liege -# scope:varangian_candidate.liege = { -# is_ai = yes -# } -# } -# scope:varangian_candidate = { move_to_pool_at = root.capital_province } -# } -# add_visiting_courtier = scope:varangian_candidate -# scope:varangian_candidate = { -# add_trait = varangian -# add_character_flag = is_currently_varangian -# set_variable = { -# name = years_as_varangian -# value = 1 # Set to one year ahead of time for the sake of event evaluation -# } -# trigger_event = { -# on_action = varangian_ongoing -# days = { 340 380 } -# } -# } -# } -# } -#} -# -# -## Return home eventually -#scripted_trigger varangian_1001_partner_can_be_brought_home_trigger = { -# is_alive = yes -# is_landed = no -# any_heir_title = { -# always = no -# } -#} -# -#varangian.1001 = { -# hidden = yes -# -# trigger = { -# liege ?= { -# OR = { -# culture = { has_cultural_pillar = heritage_north_germanic } -# dynasty = { has_dynasty_perk = fp1_adventure_legacy_1 } -# } -# } -# var:years_as_varangian > 5 -# is_available_ai_adult = yes -# has_character_flag = is_currently_varangian -# } -# -# weight_multiplier = { -# base = 1 -# modifier = { -# add = { -# value = var:years_as_varangian -# subtract = 5 -# multiply = 0.25 -# } -# always = yes -# } -# } -# -# immediate = { -# if = { -# limit = { -# exists = var:spouse_from_varangian_guard -# var:spouse_from_varangian_guard = { -# varangian_1001_partner_can_be_brought_home_trigger = yes -# is_consort_of = root -# } -# } -# var:spouse_from_varangian_guard = { -# save_scope_as = new_partner -# } -# } -# else_if = { -# limit = { -# exists = var:lover_from_varangian_guard -# var:lover_from_varangian_guard = { -# varangian_1001_partner_can_be_brought_home_trigger = yes -# has_relation_lover = root -# } -# } -# var:lover_from_varangian_guard = { -# save_scope_as = new_partner -# } -# } -# remove_character_flag = is_currently_varangian -# save_scope_as = returning_varangian -# if = { -# limit = { exists = title:e_byzantium.holder } -# title:e_byzantium.holder = { -# save_scope_as = emperor -# } -# } -# liege = { -# trigger_event = varangian.1002 -# } -# } -#} -# -## Liege - Varangian returns home -#varangian.1002 = { -# type = character_event -# title = varangian.1002.t -# desc = { -# desc = varangian.1002.opening -# triggered_desc = { -# trigger = { -# exists = scope:new_partner -# } -# desc = varangian.1002.new_partner -# } -# desc = varangian.1002.ending -# } -# theme = martial -# left_portrait = { -# character = root -# animation = war_over_tie -# } -# right_portrait = { -# character = scope:returning_varangian -# animation = personality_bold -# } -# lower_left_portrait = scope:new_partner -# lower_right_portrait = scope:emperor -# -# immediate = { -# scope:returning_varangian = { -# scope:emperor.culture = { save_scope_as = advanced_culture } -# hidden_effect = { adopt_cultural_fashion_effect = yes } -# if = { -# limit = { -# is_foreign_court_guest = yes -# } -# return_to_court = yes -# } -# else_if = { -# limit = { -# exists = dynasty.dynast.primary_title -# } -# dynasty.dynast = { -# if = { -# limit = { -# scope:returning_varangian = { -# NOT = { -# is_courtier_of = prev -# } -# } -# } -# add_courtier = scope:returning_varangian -# } -# } -# } -# else_if = { -# limit = { -# exists = dynasty -# any_close_family_member = { -# is_ai = no -# } -# } -# random_close_family_member = { -# limit = { -# is_ai = no -# } -# add_courtier = scope:returning_varangian -# } -# } -# else_if = { -# limit = { -# any_close_family_member = { -# is_ruler = yes -# } -# } -# random_close_family_member = { -# limit = { -# is_ruler = yes -# } -# add_courtier = scope:returning_varangian -# } -# } -# else = { -# move_to_pool = yes -# } -# } -# hidden_effect = { -# if = { -# limit = { -# exists = scope:new_partner -# NOT = { scope:new_partner = { is_courtier_of = root } } -# } -# scope:returning_varangian.court_owner = { -# add_courtier = scope:new_partner -# } -# } -# } -# debug_log = "Someone got home from the Varangian Guard" -# debug_log_scopes = yes -# } -# -# option = { # Wow -# name = varangian.1002.a -# scope:returning_varangian = { -# add_prestige = medium_prestige_gain -# add_gold = medium_gold_value -# } -# } -#} -# -# -## Return home because of inheritance -## varangian.1003 -# -## Liege - Varangian has returned home to be vassal -## varangian.1004 -# -# -## Become friends with local Varangian -#scripted_trigger varangian_2001_varangian_friend_trigger = { -# has_character_flag = is_currently_varangian -# is_ai = yes -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -#} -# -#varangian.2001 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any friends -# any_relation = { -# type = best_friend -# always = no -# } -# host ?= { -# any_courtier_or_guest = { -# varangian_2001_varangian_friend_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_courtier_or_guest = { -# limit = { -# varangian_2001_varangian_friend_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# OR = { -# has_relation_potential_friend = root -# has_relation_friend = root -# } -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_best_friend = { reason = best_friend_varangian copy_reason = friend target = scope:varangian_friend } -# } -#} -# -## Become lover with a fellow Varangian -#scripted_trigger varangian_2002_varangian_lover_trigger = { -# has_character_flag = is_currently_varangian -# is_ai = yes -# is_adult = yes -# save_temporary_scope_as = potential_cheater -# OR = { -# is_married = no -# any_spouse = { -# count = all -# save_temporary_scope_as = partner -# scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } -# } -# } -# is_attracted_to_gender_of = root -# root = { -# is_attracted_to_gender_of = prev -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -# opinion = { -# target = root -# value > 10 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -#} -# -#varangian.2002 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any lovers -# any_relation = { -# type = lover -# always = no -# } -# host ?= { -# any_courtier_or_guest = { -# varangian_2002_varangian_lover_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_courtier_or_guest = { -# limit = { -# varangian_2002_varangian_lover_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_lover = root -# } -# } -# save_scope_as = varangian_lover -# } -# } -# set_relation_lover = { reason = lover_varangian_lover target = scope:varangian_lover } -# set_variable = { -# name = lover_from_varangian_guard -# value = scope:varangian_lover -# } -# } -#} -# -## Become friends with local ruler -#scripted_trigger varangian_2003_local_ruler_friend_trigger = { -# is_ai = yes -# opinion = { -# target = root -# value > 0 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -#} -# -#varangian.2003 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any friends -# any_relation = { -# type = friend -# always = no -# } -# host ?= { -# any_vassal = { -# varangian_2003_local_ruler_friend_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_vassal = { -# limit = { -# varangian_2003_local_ruler_friend_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_friend = root -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_friend = { reason = friend_varangian target = scope:varangian_friend } -# } -#} -# -## Become rivals with local ruler -#scripted_trigger varangian_2004_local_ruler_rival_trigger = { -# is_ai = yes -# opinion = { -# target = root -# value < 0 -# } -# reverse_opinion = { -# target = root -# value < 0 -# } -# NOR = { -# this = root -# has_relation_friend = root -# has_relation_lover = root -# } -#} -# -#varangian.2004 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# # Only if you don't have any rival -# any_relation = { -# type = rival -# always = no -# } -# host ?= { -# any_vassal = { -# varangian_2004_local_ruler_rival_trigger = yes -# } -# } -# } -# -# immediate = { -# host = { -# random_vassal = { -# limit = { -# varangian_2004_local_ruler_rival_trigger = yes -# } -# weight = { -# base = 1 -# opinion_modifier = { -# opinion_target = root -# multiplier = 0.1 # +10 at 100 -# } -# modifier = { -# add = 10 -# has_relation_potential_friend = root -# } -# } -# save_scope_as = varangian_friend -# } -# } -# set_relation_rival = { reason = rival_varangian target = scope:varangian_friend } -# } -#} -# -## Marry Lover -#scripted_trigger varangian_2005_lover_to_marry = { -# is_ai = yes -# is_married = no -# can_marry_character_trigger = { -# CHARACTER = root -# } -# OR = { -# is_in_the_same_court_as_or_guest = root -# top_liege = root.host -# AND = { -# exists = host -# host.top_liege = root.host -# } -# } -#} -# -#scripted_trigger varangian_2005_should_marry_this_character_matrilineally = { -# is_female = yes -# OR = { -# AND = { -# is_landed = yes -# $OTHER_CHARACTER$ = { # Not if they are heir to anything -# any_heir_title = { -# always = no -# } -# } -# } -# AND = { -# faith = { -# has_doctrine = doctrine_gender_female_dominated -# } -# $OTHER_CHARACTER$ = { -# faith = { -# OR = { -# has_doctrine = doctrine_gender_female_dominated -# has_doctrine = doctrine_gender_equal -# } -# } -# } -# } -# } -#} -# -#varangian.2005 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# is_married = no -# any_relation = { -# type = lover -# varangian_2005_lover_to_marry = yes -# NOT = { has_been_promised_grand_wedding = yes } -# } -# NOT = { has_been_promised_grand_wedding = yes } -# } -# -# immediate = { -# random_relation = { -# type = lover -# limit = { -# varangian_2005_lover_to_marry = yes -# NOT = { has_been_promised_grand_wedding = yes } -# } -# save_scope_as = lover_to_marry -# } -# if = { -# limit = { -# OR = { -# varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = scope:lover_to_marry } -# scope:lover_to_marry = { -# varangian_2005_should_marry_this_character_matrilineally = { OTHER_CHARACTER = root } -# } -# } -# } -# marry_matrilineal = scope:lover_to_marry -# } -# else = { -# marry = scope:lover_to_marry -# } -# set_variable = { -# name = spouse_from_varangian_guard -# value = scope:lover_to_marry -# } -# } -#} -# -## Get Murdered -## varangian.2006 -# -## Liege - notification they were murdered -# -## Get Wounded -#varangian.2008 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOR = { -# has_trait = wounded -# has_character_flag = had_severe_injury_in_varangian_guard -# } -# } -# -# immediate = { -# add_character_flag = had_severe_injury_in_varangian_guard -# random_list = { -# 10 = { -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# } -# 5 = { -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# increase_wounds_effect = { REASON = fight } -# } -# 5 = { -# trigger = { -# NOT = { has_trait = one_eyed } -# } -# add_trait = one_eyed -# } -# 5 = { -# trigger = { -# NOT = { has_trait = one_legged } -# } -# add_trait = one_legged -# } -# 2 = { -# trigger = { -# is_eunuch_trigger = no -# NOR = { -# is_female = yes -# age < 12 -# } -# } -# add_trait = eunuch_1 -# } -# 2 = { -# trigger = { -# NOR = { -# has_trait = blind -# is_male = yes -# } -# } -# add_trait = blind -# } -# } -# } -#} -# -## Get Killed in battle -## varangian.2009 -# -## Liege - notification they were killed -## varangian.2010 -# -## Become lover with a local -#scripted_trigger varangian_2011_local_lover_trigger = { -# is_ai = yes -# is_adult = yes -# is_attracted_to_gender_of = root -# root = { -# is_attracted_to_gender_of = prev -# } -# save_temporary_scope_as = potential_cheater -# OR = { -# is_married = no -# any_spouse = { -# count = all -# save_temporary_scope_as = partner -# scope:potential_cheater = { might_cheat_on_partner_trigger = { PARTNER = scope:partner } } -# } -# } -# NOR = { -# this = root -# has_relation_rival = root -# has_relation_lover = root -# } -# opinion = { -# target = root -# value > 10 -# } -# reverse_opinion = { -# target = root -# value > 0 -# } -#} -# -#varangian.2011 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# exists = host -# } -# -# immediate = { -# random_list = { -# 10 = { # Find someone suitable -# trigger = { -# host = { -# OR = { -# varangian_2011_local_lover_trigger = yes -# any_courtier = { -# varangian_2011_local_lover_trigger = yes -# } -# any_vassal = { -# varangian_2011_local_lover_trigger = yes -# any_courtier = { -# varangian_2011_local_lover_trigger = yes -# } -# } -# } -# } -# } -# host = { -# if = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_courtier = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_vassal = { -# if = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# every_courtier = { -# limit = { varangian_2011_local_lover_trigger = yes } -# add_to_list = potential_lover -# } -# } -# } -# random_in_list = { -# list = potential_lover -# weight = { -# base = 1 -# modifier = { -# add = 5 -# is_landed = no -# } -# } -# save_scope_as = lover -# } -# } -# 10 = { # Create a beautiful peasant -# create_character = { -# template = beautiful_peasant_character -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 10 = { # Create a noble -# create_character = { -# template = pool_repopulate_spouse -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# dynasty = generate -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 5 = { # Create a witch -# create_character = { -# template = witchy_template -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# 5 = { # Create a witch with a Dynasty -# create_character = { -# template = witchy_template -# age = { age_compared_to_root_minus_ten_always_adult age_compared_to_root_plus_ten_always_adult } -# gender_female_chance = root_attraction_based_female_chance -# employer = root.host -# faith = root.host.faith -# culture = root.host.culture -# dynasty = generate -# -# after_creation = { -# #Sometimes adjust sexuality to create compatibility with root -# if = { -# limit = { -# root = { is_attracted_to_gender_of = prev } -# NOT = { is_attracted_to_gender_of = root } -# } -# set_sexuality = bisexual -# } -# } -# -# save_scope_as = lover -# } -# } -# } -# set_relation_lover = { reason = lover_varangian_local target = scope:lover } -# } -#} -# -## Increase Prowess -#varangian.2012 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_prowess } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current Prowess over 15 -# value = prowess -# multiplier = -0.1 -# offset = -15 -# trigger = { -# prowess > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_prowess -# years = 2 -# } -# add_prowess_skill = 1 -# } -#} -# -## Increase Martial -#varangian.2013 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_martial } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current martial over 15 -# value = martial -# multiplier = -0.1 -# offset = -15 -# trigger = { -# martial > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_martial -# years = 2 -# } -# add_martial_skill = 1 -# } -#} -# -## Increase Learning -#varangian.2014 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_learning } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current learning over 15 -# value = learning -# multiplier = -0.1 -# offset = -15 -# trigger = { -# learning > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_learning -# years = 2 -# } -# add_learning_skill = 1 -# } -#} -# -## Increase Diplomacy -#varangian.2015 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# NOT = { has_character_flag = varangian_recently_increased_diplomacy } -# } -# -# weight_multiplier = { -# base = 1 -# compare_modifier = { # Reduce chance for each current diplomacy over 15 -# value = diplomacy -# multiplier = -0.1 -# offset = -15 -# trigger = { -# diplomacy > 15 -# } -# } -# } -# -# immediate = { -# add_character_flag = { -# flag = varangian_recently_increased_diplomacy -# years = 2 -# } -# add_diplomacy_skill = 1 -# } -#} -# -## Become Brave -#varangian.2016 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = brave } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# else_if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# add_trait = brave -# } -#} -# -## Become Ambitious -#varangian.2017 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = ambitious } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# else_if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# add_trait = ambitious -# } -#} -# -## Become Diligent -#varangian.2018 = { -# hidden = yes -# -# trigger = { -# has_character_flag = is_currently_varangian -# OR = { -# has_trait = craven -# has_trait = lazy -# has_trait = content -# } -# NOT = { has_trait = diligent } -# } -# -# weight_multiplier = { -# base = 1 -# } -# -# immediate = { -# if = { -# limit = { has_trait = lazy } -# remove_trait = lazy -# } -# else_if = { -# limit = { has_trait = content } -# remove_trait = content -# } -# else_if = { -# limit = { has_trait = craven } -# remove_trait = craven -# } -# add_trait = diligent -# } -#} -# -## Liege: Varangian has died saving the Emeperor's life -# # by Petter Vilberg -#varangian.3001 = { -# type = character_event -# title = varangian.3001.t -# desc = varangian.3001.desc -# theme = murder_scheme -# left_portrait = scope:varangian -# right_portrait = { -# character = scope:emperor -# animation = sadness -# } -# -# option = { -# name = varangian.3001.a -# add_gold = major_gold_value -# } -#} -# -## Emperor: Varangians are great fighters -# -# \ No newline at end of file +############################### +## Blanked to Prevent Errors ## +############################### \ No newline at end of file diff --git a/events/witch_events.txt b/events/witch_events.txt index 4f8837e0b..7bb44eec7 100644 --- a/events/witch_events.txt +++ b/events/witch_events.txt @@ -179,6 +179,10 @@ witch.1002 = { #by Mathilda Bjarnehed trigger_event = witch.1003 } } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } ai_chance = { base = 100 @@ -208,7 +212,7 @@ witch.1002 = { #by Mathilda Bjarnehed modifier = { exists = liege - trait_is_criminal_in_faith_trigger = { TRAIT = trait:witch FAITH = liege.faith GENDER_CHARACTER = root } + trait_is_criminal_in_rite_trigger = { TRAIT = trait:witch RITE = liege.rite GENDER_CHARACTER = root } add = 100 } #Player children of witch covens should always be asked @@ -245,6 +249,10 @@ witch.1003 = { #by Mathilda Bjarnehed name = witch.1003.a child_witch_conversion_success_effect = yes + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #No... @@ -262,6 +270,8 @@ witch.1003 = { #by Mathilda Bjarnehed name = witch.1003.c child_witch_conversion_critical_failure_effect = yes + + pam_witch_justice_fulfillment_effect = yes } } @@ -279,7 +289,7 @@ witch.2001 = { #by Mathilda Bjarnehed desc = witch.2001.start.desc first_valid = { triggered_desc = { - trigger = { trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = trait:witch GENDER_CHARACTER = root } } + trigger = { trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:witch GENDER_CHARACTER = root } } desc = witch.2001.secrecy.desc } desc = witch.2001.no_secrecy.desc @@ -410,9 +420,7 @@ witch.2002 = { #by Mathilda Bjarnehed if = { limit = { - faith = { - NOT = { has_doctrine_parameter = witchcraft_accepted } - } + NOT = { rite = { rite_has_parameter = witchcraft_accepted } } } add_piety = medium_piety_loss } @@ -421,8 +429,7 @@ witch.2002 = { #by Mathilda Bjarnehed trigger_event = witch.2003 } - stress_impact = { - zealous = massive_stress_impact_gain + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain } } @@ -446,7 +453,7 @@ witch.2002 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { ambitious = minor_stress_impact_gain } } @@ -481,7 +488,9 @@ witch.2002 = { #by Mathilda Bjarnehed trigger_event = witch.2005 } - stress_impact = { + pam_witch_justice_fulfillment_effect = yes + + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain compassionate = minor_stress_impact_gain trusting = minor_stress_impact_gain @@ -552,6 +561,10 @@ witch.2003 = { #by Mathilda Bjarnehed scope:scheme = { end_scheme = yes } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Let them know who I am @@ -593,6 +606,10 @@ witch.2003 = { #by Mathilda Bjarnehed end_scheme = yes } + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } + ai_chance = { base = 100 @@ -616,6 +633,10 @@ witch.2003 = { #by Mathilda Bjarnehed end_scheme = yes } + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } + ai_chance = { base = 50 modifier = { @@ -1155,10 +1176,6 @@ witch.3002 = { #by Mathilda Bjarnehed option = { name = witch.3002.a - - scope:activity = { - set_variable = activity_invalidated - } } } @@ -1412,6 +1429,10 @@ witch.3010 = { #by Mathilda Bjarnehed show_as_tooltip = { grand_rite_poor_outcome = yes } } } + + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss + } } #Use some tricks @@ -1448,7 +1469,8 @@ witch.3010 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss honest = minor_stress_impact_gain } } @@ -1487,7 +1509,8 @@ witch.3010 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss shy = minor_stress_impact_gain } } @@ -1509,7 +1532,8 @@ witch.3010 = { #by Mathilda Bjarnehed grand_rite_good_outcome = yes - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss greedy = minor_stress_impact_gain } } @@ -1541,7 +1565,10 @@ scripted_trigger witch_3014_can_have_sex_trigger = { has_sexuality = asexual has_trait = celibate } - might_cheat_on_every_partner_trigger = yes + trigger_if = { + limit = { NOT = { is_consort_of = root } } + might_cheat_on_every_partner_trigger = yes + } } scripted_trigger witch_3014_sex_partner_trigger = { @@ -1550,7 +1577,6 @@ scripted_trigger witch_3014_sex_partner_trigger = { is_ai = yes save_temporary_scope_as = seduction_target matching_gender_and_sexuality_trigger = { CHARACTER_1 = scope:seduction_target CHARACTER_2 = root } - might_cheat_on_every_partner_trigger = yes } scripted_trigger witch_3014_loved_sex_partner_trigger = { @@ -1661,13 +1687,26 @@ witch.3014 = { #by Mathilda Bjarnehed override_background = { reference = bp1_bonfire } - left_portrait = scope:left_portrait - right_portrait = scope:right_portrait - lower_left_portrait = scope:lower_left_portrait - lower_center_portrait = scope:lower_center_portrait - lower_right_portrait = scope:lower_right_portrait - - + left_portrait = { + trigger = { exists = scope:left_portrait } + character = scope:left_portrait + } + right_portrait = { + trigger = { exists = scope:right_portrait } + character = scope:right_portrait + } + lower_left_portrait = { + trigger = { exists = scope:lower_left_portrait } + character = scope:lower_left_portrait + } + lower_center_portrait = { + trigger = { exists = scope:lower_center_portrait } + character = scope:lower_center_portrait + } + lower_right_portrait = { + trigger = { exists = scope:lower_right_portrait } + character = scope:lower_right_portrait + } immediate = { #Tell everyone secret about everyone else @@ -1692,7 +1731,10 @@ witch.3014 = { #by Mathilda Bjarnehed #Give outcome to host if = { - limit = { this = scope:host } + limit = { + this = scope:host + exists = scope:grand_rite_ceremony_outcome + } if = { limit = { @@ -1705,7 +1747,14 @@ witch.3014 = { #by Mathilda Bjarnehed } grand_rite_good_outcome = yes } - else = { + else_if = { + limit = { + OR = { + scope:grand_rite_ceremony_outcome = flag:poor_translation + scope:grand_rite_ceremony_outcome = flag:poor_tricks + scope:grand_rite_ceremony_outcome = flag:poor_improvisation + } + } grand_rite_poor_outcome = yes } } @@ -1938,7 +1987,7 @@ witch.3014 = { #by Mathilda Bjarnehed scope:new_guest = { save_scope_as = left_portrait } } else = { - save_scope_as = left_portrait + root = { save_scope_as = left_portrait } } } } @@ -1984,7 +2033,8 @@ witch.3014 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss lazy = minor_stress_impact_gain } } @@ -2042,7 +2092,8 @@ witch.3014 = { #by Mathilda Bjarnehed add_learning_lifestyle_perk_points = 1 } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss lazy = minor_stress_impact_gain } } @@ -2072,7 +2123,8 @@ witch.3014 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss chaste = medium_stress_impact_gain shy = minor_stress_impact_gain rakish = minor_stress_impact_loss @@ -2162,7 +2214,8 @@ witch.3014 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss shy = minor_stress_impact_gain } } @@ -2180,8 +2233,9 @@ witch.3014 = { #by Mathilda Bjarnehed } name = witch.3014.f - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_loss + witch = minor_stress_impact_loss gregarious = minor_stress_impact_loss drunkard = minor_stress_impact_loss hashishiyah = minor_stress_impact_loss @@ -2399,7 +2453,7 @@ scripted_effect witch_4001_prank_success_effect = { modifier = trickster_modifier years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss compassionate = minor_stress_impact_gain honest = minor_stress_impact_gain @@ -2427,7 +2481,7 @@ scripted_effect witch_4001_corruption_success_effect = { } scripted_trigger witch_4001_desc_valid_sin_trigger = { - faith = { trait_is_sin = $TRAIT$ } + rite = { trait_is_sin_rite = $TRAIT$ } NOT = { scope:annoying_clergy = { has_trait = $TRAIT$ } } @@ -2727,7 +2781,7 @@ witch.4001 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain honest = minor_stress_impact_gain forgiving = minor_stress_impact_gain @@ -2747,7 +2801,7 @@ witch.4001 = { #by Mathilda Bjarnehed } add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { honest = minor_stress_impact_gain cynical = minor_stress_impact_gain } @@ -2825,7 +2879,7 @@ witch.4002 = { #by Mathilda Bjarnehed #A sin triggered_desc = { trigger = { - faith = { trait_is_sin = gluttonous } + rite = { trait_is_sin_rite = gluttonous } NOT = { scope:annoying_clergy = { has_trait = temperate } } } desc = witch.4002.gluttonous.desc @@ -2833,22 +2887,26 @@ witch.4002 = { #by Mathilda Bjarnehed triggered_desc = { trigger = { OR = { - faith = { trait_is_sin = wrathful } - faith = { trait_is_sin = drunkard } + rite = { trait_is_sin_rite = wrathful } + rite = { trait_is_sin_rite = drunkard } } } desc = witch.4002.wrathful.desc } triggered_desc = { trigger = { - OR = { - faith = { trait_is_sin = sadistic } - faith = { trait_is_sin = callous } - faith = { trait_is_sin = vengeful } + rite = { + OR = { + trait_is_sin_rite = sadistic + trait_is_sin_rite = callous + trait_is_sin_rite = vengeful + } } - NOR = { - NOT = { scope:annoying_clergy = { has_trait = compassionate } } - NOT = { scope:annoying_clergy = { has_trait = forgiving } } + scope:annoying_clergy = { + NAND = { + has_trait = compassionate + has_trait = forgiving + } } exists = scope:vengeful_desc } @@ -2856,21 +2914,21 @@ witch.4002 = { #by Mathilda Bjarnehed } triggered_desc = { trigger = { - faith = { trait_is_sin = craven } + rite = { trait_is_sin_rite = craven } NOT = { scope:annoying_clergy = { has_trait = brave } } } desc = witch.4002.craven.desc } triggered_desc = { trigger = { - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } exists = scope:lustful_desc } desc = witch.4002.lustful.desc } triggered_desc = { trigger = { - faith = { trait_is_sin = arrogant } + rite = { trait_is_sin_rite = arrogant } NOT = { scope:annoying_clergy = { has_trait = humble } } } desc = witch.4002.arrogant.desc @@ -2887,9 +2945,11 @@ witch.4002 = { #by Mathilda Bjarnehed } triggered_desc = { trigger = { - NOR = { - NOT = { scope:annoying_clergy = { has_trait = compassionate } } - NOT = { scope:annoying_clergy = { has_trait = forgiving } } + scope:annoying_clergy = { + NAND = { + has_trait = compassionate + has_trait = forgiving + } } exists = scope:vengeful_desc } @@ -3008,6 +3068,10 @@ witch.4003 = { #by Mathilda Bjarnehed reveal_to = root } } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } @@ -3041,6 +3105,10 @@ witch.4003 = { #by Mathilda Bjarnehed opinion = 20 target = scope:annoying_clergy } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } } @@ -3064,7 +3132,7 @@ witch.4004 = { #by Mathilda Bjarnehed option = { name = witch.4004.a - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain diligent = medium_stress_impact_loss lazy = minor_stress_impact_gain @@ -3367,6 +3435,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = alluring_confidence years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for diplomacy @@ -3378,6 +3450,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_diplomat years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for martial @@ -3389,6 +3465,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_strategist years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for stewardship @@ -3400,6 +3480,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_organizer years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for intrigue @@ -3411,6 +3495,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_schemer years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for learning @@ -3422,6 +3510,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_scholar years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for prowess @@ -3433,6 +3525,10 @@ witch.4010 = { #by Mathilda Bjarnehed modifier = confident_duelist years = 10 } + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } #Ask for relaxation @@ -3441,6 +3537,10 @@ witch.4010 = { #by Mathilda Bjarnehed name = witch.4010.h add_stress = monumental_stress_loss + + stress_and_fulfillment_impact = { + witch = medium_stress_impact_loss + } } } @@ -3616,7 +3716,8 @@ witch.4020 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss greedy = minor_stress_impact_gain ambitious = minor_stress_impact_gain } @@ -3646,7 +3747,8 @@ witch.4020 = { #by Mathilda Bjarnehed } } - stress_impact = { + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss greedy = minor_stress_impact_gain ambitious = minor_stress_impact_gain } @@ -3672,8 +3774,9 @@ witch.4020 = { #by Mathilda Bjarnehed years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss # It's not be be prayed for + witch = minor_stress_impact_loss generous = minor_stress_impact_gain shy = minor_stress_impact_gain craven = minor_stress_impact_gain @@ -4064,6 +4167,10 @@ witch.4030 = { #by Mathilda Bjarnehed show_as_tooltip = { scope:newly_created_artifact = { set_owner = root } } + + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss + } } # Sell it to other witches and share profit @@ -4124,6 +4231,10 @@ witch.4030 = { #by Mathilda Bjarnehed show_as_tooltip = { scope:convince_target_1 = { witch_4030_convince_failure_effect = yes } } } } + + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss + } } # use it to convince someone (option 2) @@ -4170,6 +4281,10 @@ witch.4030 = { #by Mathilda Bjarnehed show_as_tooltip = { scope:convince_target_2 = { witch_4030_convince_failure_effect = yes } } } } + + stress_and_fulfillment_impact = { + witch = minor_stress_impact_loss + } } } diff --git a/events/yearly_events/bp1_yearly_james.txt b/events/yearly_events/bp1_yearly_james.txt index e317752fb..d05c7b376 100644 --- a/events/yearly_events/bp1_yearly_james.txt +++ b/events/yearly_events/bp1_yearly_james.txt @@ -117,7 +117,7 @@ bp1_yearly.9001 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain pensive = minor_stress_impact_gain bossy = minor_stress_impact_gain @@ -225,7 +225,7 @@ bp1_yearly.9002 = { CHARACTER = scope:bp1_yearly_9001_shy_kid OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain compassionate = minor_stress_impact_gain forgiving = minor_stress_impact_gain @@ -282,7 +282,7 @@ bp1_yearly.9002 = { add_trait = shy } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = minor_stress_impact_gain sadistic = minor_stress_impact_gain callous = minor_stress_impact_gain @@ -311,7 +311,7 @@ bp1_yearly.9002 = { is_adult = yes } scope:bp1_yearly_9001_shy_kid = { add_trait = forgiving } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_gain callous = minor_stress_impact_gain vengeful = minor_stress_impact_gain @@ -431,7 +431,7 @@ bp1_yearly.9004 = { scope:bp1_yearly_9001_shy_kid = { add_trait = forgiving } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain bossy = medium_stress_impact_gain } @@ -445,7 +445,7 @@ bp1_yearly.9004 = { scope:bp1_yearly_9001_shy_kid = { add_trait = shy } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain } ai_chance = { @@ -528,7 +528,7 @@ bp1_yearly.9005 = { 10 = { modifier = { # I won't go for the eyes if people think it's virtuous factor = 0.5 - faith = { trait_is_virtue = one_eyed } + rite = { trait_is_virtue_rite = one_eyed } } add_trait = one_eyed } @@ -558,7 +558,7 @@ bp1_yearly.9005 = { destroyer = scope:bp1_yearly_9001_toy_hater } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = major_stress_impact_gain vengeful = medium_stress_impact_loss just = minor_stress_impact_gain @@ -596,7 +596,7 @@ bp1_yearly.9005 = { destroyer = scope:bp1_yearly_9001_toy_hater } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = major_stress_impact_gain vengeful = medium_stress_impact_loss just = major_stress_impact_gain @@ -618,7 +618,7 @@ bp1_yearly.9005 = { option = { # Turn the other cheek like a beta name = bp1_yearly.9005.c destroy_character_memory = scope:destroyed_toy_memory - stress_impact = { + stress_and_fulfillment_impact = { vengeful = massive_stress_impact_gain } ai_chance = { @@ -632,8 +632,8 @@ bp1_yearly.9005 = { ############################################ scripted_trigger bp1_yearly_9006_both_have_same_sin = { - faith = { trait_is_sin = $SINFUL_TRAIT$ } - $SINFUL_COURTIER$.faith = { trait_is_sin = $SINFUL_TRAIT$ } + rite = { trait_is_sin_rite = $SINFUL_TRAIT$ } + $SINFUL_COURTIER$.rite = { trait_is_sin_rite = $SINFUL_TRAIT$ } has_trait = $SINFUL_TRAIT$ $SINFUL_COURTIER$ = { has_trait = $SINFUL_TRAIT$ } } @@ -794,6 +794,8 @@ bp1_yearly.9006 = { has_dlc_feature = friends_and_foes num_sinful_traits >= 1 is_valid_for_narrow_yearly_events_adult = yes + # Bonding with a courtier over flouting "the priests" miscasts a clergy ruler as a resentful layperson. + pam_is_clergy_ruler_trigger = no OR = { liege= { any_vassal = { @@ -942,7 +944,7 @@ bp1_yearly.9006 = { } } add_piety = medium_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain paranoid = massive_stress_impact_gain } @@ -955,7 +957,7 @@ bp1_yearly.9006 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { shy = massive_stress_impact_gain } } @@ -982,7 +984,7 @@ bp1_yearly.9006 = { option = { name = bp1_yearly.9006.b add_piety = minor_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain gregarious = medium_stress_impact_gain cynical = medium_stress_impact_gain @@ -1078,7 +1080,7 @@ bp1_yearly.9007 = { value = scope:bp1_yearly_9007_doppelganger } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain paranoid = medium_stress_impact_gain eccentric = medium_stress_impact_loss @@ -1094,7 +1096,7 @@ bp1_yearly.9007 = { has_trait = sadistic } unknown_murder_effect = { VICTIM = scope:bp1_yearly_9007_doppelganger MURDERER = root REASON = death_murder } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = massive_stress_impact_gain lustful = medium_stress_impact_gain calm = medium_stress_impact_gain @@ -1114,7 +1116,7 @@ bp1_yearly.9007 = { scope:bp1_yearly_9007_doppelganger = { silent_disappearance_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { eccentric = medium_stress_impact_gain compassionate = medium_stress_impact_gain paranoid = medium_stress_impact_gain @@ -1173,7 +1175,7 @@ bp1_yearly.9008 = { modifier = bp1_living_as_peasant_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = massive_stress_impact_gain ambitious = major_stress_impact_gain diligent = medium_stress_impact_gain @@ -1189,7 +1191,7 @@ bp1_yearly.9008 = { option = { # Refuse name = bp1_yearly.9008.b - stress_impact = { + stress_and_fulfillment_impact = { trusting = massive_stress_impact_gain humble = medium_stress_impact_gain content = medium_stress_impact_gain @@ -1239,29 +1241,23 @@ bp1_yearly.9009 = { is_valid_for_narrow_yearly_events_adult = yes exists = house NOT = { has_character_flag = had_event_bp1_yearly_9009 } - exists = var:my_doppelganger - var:my_doppelganger = { is_available_ai_adult = yes } + var:my_doppelganger ?= { + is_available_ai_adult = yes + might_cheat_on_every_partner_trigger = yes + } OR = { any_relation = { type = lover - save_temporary_scope_as = lover_1_scope + can_set_relation_lover_trigger = { CHARACTER = root.var:my_doppelganger } is_available_ai_adult = yes NOT = { has_trait = pregnant } - NOT = { scope:lover_1_scope = root.var:my_doppelganger } - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:lover_1_scope - CHARACTER_2 = root.var:my_doppelganger - } + might_cheat_on_every_partner_trigger = yes } any_spouse = { - save_temporary_scope_as = spouse_1_scope + can_set_relation_lover_trigger = { CHARACTER = root.var:my_doppelganger } is_available_ai_adult = yes NOT = { has_trait = pregnant } - NOT = { scope:spouse_1_scope = root.var:my_doppelganger } - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:spouse_1_scope - CHARACTER_2 = root.var:my_doppelganger - } + might_cheat_on_every_partner_trigger = yes } } } @@ -1272,27 +1268,19 @@ bp1_yearly.9009 = { limit = { any_relation = { type = lover - save_temporary_scope_as = lover_1_scope + can_set_relation_lover_trigger = { CHARACTER = root.var:my_doppelganger } is_available_ai_adult = yes NOT = { has_trait = pregnant } - scope:lover_1_scope != root.var:my_doppelganger - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:lover_1_scope - CHARACTER_2 = root.var:my_doppelganger - } + might_cheat_on_every_partner_trigger = yes } } random_relation = { type = lover limit = { - save_temporary_scope_as = lover_1_scope + can_set_relation_lover_trigger = { CHARACTER = root.var:my_doppelganger } is_available_ai_adult = yes NOT = { has_trait = pregnant } - scope:lover_1_scope != root.var:my_doppelganger - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:lover_1_scope - CHARACTER_2 = root.var:my_doppelganger - } + might_cheat_on_every_partner_trigger = yes } save_scope_as = bp1_yearly_9009_lover } @@ -1300,14 +1288,10 @@ bp1_yearly.9009 = { else = { random_spouse = { limit = { - save_temporary_scope_as = spouse_1_scope + can_set_relation_lover_trigger = { CHARACTER = root.var:my_doppelganger } is_available_ai_adult = yes NOT = { has_trait = pregnant } - scope:spouse_1_scope != root.var:my_doppelganger - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = scope:spouse_1_scope - CHARACTER_2 = root.var:my_doppelganger - } + might_cheat_on_every_partner_trigger = yes } save_scope_as = bp1_yearly_9009_lover } @@ -1372,7 +1356,7 @@ bp1_yearly.9009 = { CHARACTER = scope:bp1_yearly_9009_lover OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain } ai_chance = { @@ -1386,7 +1370,7 @@ bp1_yearly.9009 = { TARGET = scope:bp1_yearly_9007_doppelganger IMPRISONER = root } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain } ai_chance = { @@ -1398,7 +1382,7 @@ bp1_yearly.9009 = { name = bp1_yearly.9009.c if = { limit = { accepts_adultery_without_penalty_trigger = no } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain diligent = major_stress_impact_gain arrogant = massive_stress_impact_gain @@ -1412,22 +1396,12 @@ bp1_yearly.9009 = { option = { # Become a polycule name = bp1_yearly.9009.d trigger = { - accepts_adultery_without_penalty_trigger = yes - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = root - CHARACTER_2 = scope:bp1_yearly_9007_doppelganger - } + can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9007_doppelganger } } set_relation_lover = { reason = lover_my_own_clone_now_neither_of_us_will_be_virgins target = scope:bp1_yearly_9007_doppelganger } if = { limit = { - NOT = { - has_relation_lover = scope:bp1_yearly_9009_lover - } - matching_gender_and_sexuality_trigger = { - CHARACTER_1 = root - CHARACTER_2 = scope:bp1_yearly_9009_lover - } + can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9009_lover } } set_relation_lover = { reason = lover_doppelganger_threesome target = scope:bp1_yearly_9009_lover involved_character = scope:bp1_yearly_9007_doppelganger } } @@ -1439,10 +1413,16 @@ bp1_yearly.9009 = { CHARACTER = scope:bp1_yearly_9009_lover PREGNANCY_CHANCE = 50 } - stress_impact = { + stress_and_fulfillment_impact = { + lustful = medium_stress_impact_loss + chaste = major_stress_impact_gain } ai_chance = { base = 10 + modifier = { + factor = 0 + accepts_adultery_without_penalty_trigger = no + } } } @@ -1528,7 +1508,7 @@ bp1_yearly.9010 = { OUTPUT_EVENT = bp1_yearly.9011 INVALIDATION_EVENT = fp1_tbc.0102 } - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain wrathful = minor_stress_impact_loss } @@ -1553,7 +1533,7 @@ bp1_yearly.9010 = { type = story_doppelganger end_story = yes } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -1663,7 +1643,7 @@ bp1_yearly.9012 = { } } add_trait = disputed_heritage - stress_impact = { + stress_and_fulfillment_impact = { } ai_chance = { base = 10 @@ -1708,7 +1688,7 @@ bp1_yearly.9013 = { TARGET = scope:bp1_yearly_9007_doppelganger IMPRISONER = root } - stress_impact = { + stress_and_fulfillment_impact = { } ai_chance = { base = 10 @@ -1788,13 +1768,11 @@ bp1_yearly.9014 = { } set_relation_soulmate = { reason = soulmate_doppelganger copy_reason = lover target = scope:bp1_yearly_9007_doppelganger } } - else = { - if = { - limit = { NOT = { has_relation_lover = scope:bp1_yearly_9007_doppelganger } } - set_relation_lover = { reason = lover_my_own_clone_now_neither_of_us_will_be_virgins target = scope:bp1_yearly_9007_doppelganger } - } + else_if = { + limit = { can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9007_doppelganger } } + set_relation_lover = { reason = lover_my_own_clone_now_neither_of_us_will_be_virgins target = scope:bp1_yearly_9007_doppelganger } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain chaste = medium_stress_impact_gain zealous = medium_stress_impact_gain @@ -1812,7 +1790,7 @@ bp1_yearly.9014 = { opinion = -25 } add_character_flag = rejected_advances_bp1_yearly_9014 - stress_impact = { + stress_and_fulfillment_impact = { lustful = major_stress_impact_gain arrogant = massive_stress_impact_gain } @@ -1862,7 +1840,7 @@ bp1_yearly.9015 = { has_relation_soulmate = root } } - NOT = { faith = { has_doctrine_parameter = consanguinity_unrestricted_incest } } + NOT = { rite = { rite_has_parameter = consanguinity_unrestricted_incest } } } } @@ -1895,10 +1873,10 @@ bp1_yearly.9015 = { any_secret = { type = secret_incest } } is_adult = yes - trait_is_shunned_or_criminal_in_faith_trigger = { + trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = trait:incestuous GENDER_CHARACTER = scope:bp1_yearly_9007_doppelganger - FAITH = root.faith + RITE = root.rite } } add_secret = { @@ -1918,10 +1896,10 @@ bp1_yearly.9015 = { any_secret = { type = secret_incest } } is_adult = yes - trait_is_shunned_or_criminal_in_faith_trigger = { + trait_is_shunned_or_criminal_in_rite_trigger = { TRAIT = trait:incestuous GENDER_CHARACTER = root - FAITH = scope:bp1_yearly_9007_doppelganger.faith + RITE = scope:bp1_yearly_9007_doppelganger.rite } } add_secret = { @@ -1972,13 +1950,13 @@ bp1_yearly.9015 = { } if = { # Your religion thinks your incest is cool, give piety limit = { - faith = { has_doctrine_parameter = divine_marriage_piety_gain_active } + rite = { rite_has_parameter = divine_marriage_piety_gain_active } OR = { scope:bp1_yearly_9007_doppelganger = { is_consort_of = root } NOT = { - sexual_activity_with_partner_is_criminal_in_faith_trigger = { + sexual_activity_with_partner_is_criminal_in_rite_trigger = { PARTNER = scope:bp1_yearly_9007_doppelganger - FAITH = root.faith + RITE = root.rite } } } @@ -1987,7 +1965,7 @@ bp1_yearly.9015 = { } if = { # I'm not having sexual relations with my clone, become friends limit = { - NOT = { + NOR = { has_any_scripted_relation = scope:bp1_yearly_9007_doppelganger scope:bp1_yearly_9007_doppelganger = { is_consort_of = root } } @@ -2025,23 +2003,23 @@ bp1_yearly.9015 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain deceitful = medium_stress_impact_gain chaste = medium_stress_impact_gain } if = { limit = { - NOT = { faith = { has_doctrine_parameter = divine_marriage_piety_gain_active } } + NOT = { rite = { rite_has_parameter = divine_marriage_piety_gain_active } } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain zealous = major_stress_impact_gain } } } else = { # Stress gain for not incest - stress_impact = { + stress_and_fulfillment_impact = { deceitful = medium_stress_impact_gain humble = medium_stress_impact_gain } @@ -2057,14 +2035,14 @@ bp1_yearly.9015 = { has_relation_soulmate = root } } - NOT = { faith = { has_doctrine_parameter = consanguinity_unrestricted_incest } } + NOT = { rite = { rite_has_parameter = consanguinity_unrestricted_incest } } } } } option = { # Suppress information name = bp1_yearly.9015.b - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain humble = major_stress_impact_gain content = major_stress_impact_gain @@ -2080,9 +2058,9 @@ bp1_yearly.9015 = { has_relation_soulmate = root } } - faith = { has_doctrine_parameter = divine_marriage_piety_gain_active } + rite = { rite_has_parameter = divine_marriage_piety_gain_active } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain } } @@ -2097,7 +2075,7 @@ bp1_yearly.9015 = { has_relation_soulmate = root } } - faith = { has_doctrine_parameter = consanguinity_unrestricted_incest } + rite = { rite_has_parameter = consanguinity_unrestricted_incest } } modifier = { factor = 0 @@ -2294,7 +2272,7 @@ bp1_yearly.9016 = { name = bp1_yearly.9016.a trigger = { NOT = { - culture ?= { has_cultural_tradition = tradition_mystical_ancestors } + culture ?= { has_cultural_parameter = cannot_disherit } } } scope:bp1_yearly_9016_uppity_child = { @@ -2338,7 +2316,7 @@ bp1_yearly.9016 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain just = major_stress_impact_gain compassionate = major_stress_impact_gain @@ -2360,7 +2338,7 @@ bp1_yearly.9016 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = major_stress_impact_gain brave = major_stress_impact_gain honest = massive_stress_impact_gain @@ -2541,7 +2519,7 @@ bp1_yearly.9017 = { REASON = friend_encouraged_differences } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain callous = major_stress_impact_gain sadistic = major_stress_impact_gain @@ -2556,7 +2534,7 @@ bp1_yearly.9017 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain } } @@ -2590,7 +2568,7 @@ bp1_yearly.9017 = { REASON = friend_encouraged_differences } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain callous = major_stress_impact_gain sadistic = major_stress_impact_gain @@ -2605,7 +2583,7 @@ bp1_yearly.9017 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain } } @@ -2615,7 +2593,7 @@ bp1_yearly.9017 = { name = bp1_yearly.9017.c trigger = { NOT = { - culture ?= { has_cultural_tradition = tradition_mystical_ancestors } + culture ?= { has_cultural_parameter = cannot_disherit } } } scope:bp1_yearly_9017_uppity_child = { @@ -2640,7 +2618,7 @@ bp1_yearly.9017 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { just = massive_stress_impact_gain compassionate = massive_stress_impact_gain forgiving = major_stress_impact_gain @@ -2803,7 +2781,7 @@ bp1_yearly.9018 = { REASON = friend_good_chats } } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain arrogant = major_stress_impact_gain callous = major_stress_impact_gain @@ -2834,7 +2812,7 @@ bp1_yearly.9018 = { opinion = 25 } } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = major_stress_impact_gain forgiving = major_stress_impact_gain @@ -2850,7 +2828,7 @@ bp1_yearly.9018 = { has_trait = callous } NOT = { - culture ?= { has_cultural_tradition = tradition_mystical_ancestors } + culture ?= { has_cultural_parameter = cannot_disherit } } } scope:bp1_yearly_9018_illegitimate_child = { @@ -2899,7 +2877,7 @@ bp1_yearly.9018 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { just = massive_stress_impact_gain compassionate = massive_stress_impact_gain forgiving = major_stress_impact_gain @@ -2933,11 +2911,11 @@ scripted_trigger bp1_yearly_9019_spouse_trigger = { has_trait = ambitious has_trait = arbitrary AND = { - faith = { has_doctrine_parameter = homosexuality_accepted } + rite = { rite_has_parameter = homosexuality_accepted } NOT = { - trait_is_shunned_in_faith_trigger = { + trait_is_shunned_in_rite_trigger = { TRAIT = trait:adulterer - FAITH = root.faith + RITE = root.rite GENDER_CHARACTER = root } } @@ -2945,9 +2923,11 @@ scripted_trigger bp1_yearly_9019_spouse_trigger = { } # Zealous spouses generally shouldn't want to do this if their faith shuns it NAND = { - OR = { - faith = { has_doctrine_parameter = homosexuality_illegal } - faith = { has_doctrine_parameter = homosexuality_shunned } + rite = { + OR = { + rite_has_parameter = homosexuality_illegal + rite_has_parameter = homosexuality_shunned + } } has_trait = zealous } @@ -2976,8 +2956,8 @@ scripted_trigger bp1_yearly_9019_courtier_trigger = { is_adult = yes NAND = { OR = { - faith = { has_doctrine_parameter = homosexuality_illegal } - faith = { has_doctrine_parameter = homosexuality_shunned } + rite = { rite_has_parameter = homosexuality_illegal } + rite = { rite_has_parameter = homosexuality_shunned } } has_trait = zealous } @@ -3176,9 +3156,7 @@ bp1_yearly.9019 = { } if = { limit = { - NOT = { - has_relation_lover = scope:bp1_yearly_9019_lover - } + can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9019_lover } } set_relation_lover = { reason = lover_threesome_with_spouse target = scope:bp1_yearly_9019_lover involved_character = scope:bp1_yearly_9019_spouse } } @@ -3194,7 +3172,7 @@ bp1_yearly.9019 = { partner_2 = scope:bp1_yearly_9019_lover } } - stress_impact = { + stress_and_fulfillment_impact = { chaste = major_stress_impact_gain shy = major_stress_impact_gain lustful = major_stress_impact_loss @@ -3219,9 +3197,7 @@ bp1_yearly.9019 = { has_trait = arbitrary has_trait = lustful } - NOT = { - has_relation_lover = scope:bp1_yearly_9019_lover - } + can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9019_lover } } had_sex_with_effect = { CHARACTER = scope:bp1_yearly_9019_lover @@ -3233,7 +3209,7 @@ bp1_yearly.9019 = { CHARACTER = scope:bp1_yearly_9019_spouse OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = major_stress_impact_gain family_first = major_stress_impact_gain @@ -3256,9 +3232,9 @@ bp1_yearly.9019 = { name = bp1_yearly.9019.c if = { # Lose piety if in gay-accepting Carnal Exaltation faith limit = { - faith = { - has_doctrine_parameter = homosexuality_accepted - trait_is_virtue = lustful + rite = { + rite_has_parameter = homosexuality_accepted + trait_is_virtue_rite = lustful } } add_piety = minor_piety_loss @@ -3271,7 +3247,7 @@ bp1_yearly.9019 = { modifier = hurt_opinion opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { lustful = massive_stress_impact_gain family_first = major_stress_impact_gain } @@ -3290,7 +3266,7 @@ bp1_yearly.9019 = { } modifier = { factor = 2 - NOT = { faith = { has_doctrine_parameter = homosexuality_accepted } } + NOT = { rite = { rite_has_parameter = homosexuality_accepted } } has_trait = zealous } } @@ -3362,9 +3338,11 @@ bp1_yearly.9020 = { is_deviant_trigger = yes # Zealous spouses generally shouldn't want to do this if their faith shuns it NAND = { - OR = { - faith = { has_doctrine_parameter = deviancy_illegal } - faith = { has_doctrine_parameter = deviancy_shunned } + rite = { + OR = { + rite_has_parameter = deviancy_illegal + rite_has_parameter = deviancy_shunned + } } has_trait = zealous } @@ -3388,9 +3366,11 @@ bp1_yearly.9020 = { is_deviant_trigger = yes # Zealous spouses generally shouldn't want to do this if their faith shuns it NAND = { - OR = { - faith = { has_doctrine_parameter = deviancy_illegal } - faith = { has_doctrine_parameter = deviancy_shunned } + rite = { + OR = { + rite_has_parameter = deviancy_illegal + rite_has_parameter = deviancy_shunned + } } has_trait = zealous } @@ -3426,7 +3406,7 @@ bp1_yearly.9020 = { REASON = lover_spouse_indulged OPINION = default_lover_opinion } - stress_impact = { + stress_and_fulfillment_impact = { chaste = major_stress_impact_gain shy = major_stress_impact_gain lustful = major_stress_impact_loss @@ -3450,7 +3430,7 @@ bp1_yearly.9020 = { modifier = disappointed_opinion opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { lustful = massive_stress_impact_gain family_first = major_stress_impact_gain } @@ -3473,7 +3453,7 @@ bp1_yearly.9020 = { option = { # I would report you to the authorities for love name = bp1_yearly.9020.c trigger = { - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = root } + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = root } exists = scope:bp1_yearly_9020_spouse_secret } scope:bp1_yearly_9020_spouse_secret = { @@ -3484,7 +3464,7 @@ bp1_yearly.9020 = { CHARACTER = scope:bp1_yearly_9020_spouse OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { lustful = massive_stress_impact_gain family_first = major_stress_impact_gain } @@ -3503,7 +3483,7 @@ bp1_yearly.9020 = { } modifier = { factor = 2 - NOT = { faith = { has_doctrine_parameter = homosexuality_accepted } } + NOT = { rite = { rite_has_parameter = homosexuality_accepted } } has_trait = zealous } } @@ -3540,21 +3520,19 @@ bp1_yearly.9021 = { trigger = { has_dlc_feature = friends_and_foes is_available_at_peace_adult = yes - is_eunuch_trigger = no NOR = { # Can have sex and isn't already pregnant has_trait = celibate has_trait = pregnant } any_spouse = { is_available_at_peace_ai_adult = yes - is_eunuch_trigger = no NOR = { has_trait = chaste has_trait = celibate has_trait = pregnant } has_relation_rival = root - NOT = { has_relation_lover = root } + can_set_relation_lover_trigger = { CHARACTER = root } } } @@ -3566,13 +3544,13 @@ bp1_yearly.9021 = { random_spouse = { limit = { is_available_at_peace_ai_adult = yes - is_eunuch_trigger = no NOR = { has_trait = chaste has_trait = celibate has_trait = pregnant } has_relation_rival = root + can_set_relation_lover_trigger = { CHARACTER = root } } save_scope_as = bp1_yearly_9021_rival_spouse } @@ -3589,7 +3567,7 @@ bp1_yearly.9021 = { option = { # We should do that again! name = bp1_yearly.9021.a set_relation_lover = { reason = lover_rival_spouse target = scope:bp1_yearly_9021_rival_spouse } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain chaste = major_stress_impact_gain shy = major_stress_impact_gain @@ -3614,7 +3592,7 @@ bp1_yearly.9021 = { modifier = disappointed_opinion opinion = -5 } - stress_impact = { + stress_and_fulfillment_impact = { lustful = massive_stress_impact_gain } ai_chance = { @@ -3757,7 +3735,7 @@ bp1_yearly.9022 = { value = scope:duel_value multiplier = 2.5 } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain arrogant = medium_stress_impact_gain } @@ -3801,7 +3779,7 @@ bp1_yearly.9022 = { interventioner = scope:bp1_yearly_9022_friend } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain arrogant = major_stress_impact_gain } @@ -3823,7 +3801,7 @@ bp1_yearly.9022 = { modifier = disappointed_opinion opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { humble = major_stress_impact_gain } ai_chance = { @@ -3933,7 +3911,7 @@ bp1_yearly.9023 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = major_stress_impact_gain compassionate = major_stress_impact_gain gregarious = major_stress_impact_gain @@ -3958,7 +3936,7 @@ bp1_yearly.9023 = { type = learn_language target_character = scope:bp1_yearly_9023_friend } - stress_impact = { + stress_and_fulfillment_impact = { lazy = major_stress_impact_gain shy = major_stress_impact_gain } @@ -4006,7 +3984,7 @@ bp1_yearly.9023 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { diligent = major_stress_impact_gain compassionate = major_stress_impact_gain gregarious = major_stress_impact_gain @@ -4099,11 +4077,11 @@ bp1_yearly.9024 = { has_trait = paranoid } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss } } - stress_impact = { + stress_and_fulfillment_impact = { shy = major_stress_impact_gain diligent = major_stress_impact_gain paranoid = major_stress_impact_gain @@ -4134,7 +4112,7 @@ bp1_yearly.9024 = { CHARACTER = scope:bp1_yearly_9024_friend OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { trusting = major_stress_impact_gain lazy = major_stress_impact_gain gregarious = major_stress_impact_gain @@ -4213,7 +4191,7 @@ bp1_yearly.9025 = { CHARACTER = scope:bp1_yearly_9025_friend REASON = rival_better_understanding } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = major_stress_impact_gain trusting = major_stress_impact_gain loyal = major_stress_impact_gain @@ -4261,7 +4239,7 @@ bp1_yearly.9025 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain shy = major_stress_impact_gain lazy = medium_stress_impact_gain @@ -4321,49 +4299,49 @@ bp1_yearly.9026 = { triggered_desc = { trigger = { has_trait = greedy - faith = { trait_is_sin = greedy } + rite = { trait_is_sin_rite = greedy } } desc = bp1_yearly.9026.desc.greedy } triggered_desc = { trigger = { has_trait = wrathful - faith = { trait_is_sin = wrathful } + rite = { trait_is_sin_rite = wrathful } } desc = bp1_yearly.9026.desc.wrathful } triggered_desc = { trigger = { has_trait = torturer - faith = { trait_is_sin = deceitful } # We don't make lifestyle traits sins/virtues so best to check an adjacent trait + rite = { trait_is_sin_rite = deceitful } # We don't make lifestyle traits sins/virtues so best to check an adjacent trait } desc = bp1_yearly.9026.desc.torturer } triggered_desc = { trigger = { has_trait = arbitrary - faith = { trait_is_sin = arbitrary } + rite = { trait_is_sin_rite = arbitrary } } desc = bp1_yearly.9026.desc.arbitrary } triggered_desc = { # Let's assume callous is basically always bad trigger = { has_trait = callous - NOT = { faith = { trait_is_virtue = callous } } + NOT = { rite = { trait_is_virtue_rite = callous } } } desc = bp1_yearly.9026.desc.callous } triggered_desc = { # Same for sadistic trigger = { has_trait = sadistic - NOT = { faith = { trait_is_virtue = sadistic } } + NOT = { rite = { trait_is_virtue_rite = sadistic } } } desc = bp1_yearly.9026.desc.sadistic } triggered_desc = { trigger = { has_trait = vengeful - faith = { trait_is_sin = vengeful } + rite = { trait_is_sin_rite = vengeful } } desc = bp1_yearly.9026.desc.vengeful } @@ -4371,42 +4349,42 @@ bp1_yearly.9026 = { triggered_desc = { trigger = { has_trait = deceitful - faith = { trait_is_sin = deceitful } + rite = { trait_is_sin_rite = deceitful } } desc = bp1_yearly.9026.desc.deceitful } triggered_desc = { trigger = { has_trait = impatient - faith = { trait_is_sin = impatient } + rite = { trait_is_sin_rite = impatient } } desc = bp1_yearly.9026.desc.impatient } triggered_desc = { trigger = { has_trait = arrogant - faith = { trait_is_sin = arrogant } + rite = { trait_is_sin_rite = arrogant } } desc = bp1_yearly.9026.desc.arrogant } triggered_desc = { trigger = { has_trait = craven - faith = { trait_is_sin = craven } + rite = { trait_is_sin_rite = craven } } desc = bp1_yearly.9026.desc.craven } triggered_desc = { trigger = { has_trait = ambitious - faith = { trait_is_sin = ambitious } + rite = { trait_is_sin_rite = ambitious } } desc = bp1_yearly.9026.desc.ambitious } triggered_desc = { trigger = { has_trait = lazy - faith = { trait_is_sin = lazy } + rite = { trait_is_sin_rite = lazy } } desc = bp1_yearly.9026.desc.lazy } @@ -4414,49 +4392,49 @@ bp1_yearly.9026 = { triggered_desc = { trigger = { has_trait = cynical - faith = { trait_is_sin = cynical } + rite = { trait_is_sin_rite = cynical } } desc = bp1_yearly.9026.desc.cynical } triggered_desc = { trigger = { has_trait = shy - faith = { trait_is_sin = shy } + rite = { trait_is_sin_rite = shy } } desc = bp1_yearly.9026.desc.shy } triggered_desc = { trigger = { has_trait = gluttonous - faith = { trait_is_sin = gluttonous } + rite = { trait_is_sin_rite = gluttonous } } desc = bp1_yearly.9026.desc.gluttonous } triggered_desc = { trigger = { has_trait = lustful - faith = { trait_is_sin = lustful } + rite = { trait_is_sin_rite = lustful } } desc = bp1_yearly.9026.desc.lustful } triggered_desc = { trigger = { has_trait = temperate - faith = { trait_is_sin = temperate } + rite = { trait_is_sin_rite = temperate } } desc = bp1_yearly.9026.desc.temperate } triggered_desc = { trigger = { has_trait = chaste - faith = { trait_is_sin = chaste } + rite = { trait_is_sin_rite = chaste } } desc = bp1_yearly.9026.desc.chaste } triggered_desc = { trigger = { has_trait = honest - faith = { trait_is_sin = honest } + rite = { trait_is_sin_rite = honest } } desc = bp1_yearly.9026.desc.honest } @@ -4486,11 +4464,11 @@ bp1_yearly.9026 = { num_sinful_traits >= 1 AND = { has_trait = sadistic - NOT = { faith = { trait_is_virtue = sadistic } } + NOT = { rite = { trait_is_virtue_rite = sadistic } } } AND = { has_trait = callous - NOT = { faith = { trait_is_virtue = callous } } + NOT = { rite = { trait_is_virtue_rite = callous } } } } any_memory = { @@ -4569,7 +4547,7 @@ bp1_yearly.9026 = { name = bp1_yearly.9026.a add_piety = medium_piety_gain bp1_yearly_9026_determine_sin_and_virtue = yes - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_gain arrogant = major_stress_impact_gain cynical = major_stress_impact_gain @@ -4597,7 +4575,7 @@ bp1_yearly.9026 = { value = scope:duel_value multiplier = 2.5 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = major_stress_impact_loss } scope:marley_story_cycle_scope = { end_story = yes } @@ -4612,7 +4590,7 @@ bp1_yearly.9026 = { bp1_yearly_9026_determine_sin_and_virtue = yes } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain zealous = major_stress_impact_gain just = medium_stress_impact_gain @@ -4647,7 +4625,7 @@ bp1_yearly.9027 = { triggered_desc = { trigger = { has_trait = greedy - faith = { trait_is_sin = greedy } + rite = { trait_is_sin_rite = greedy } } desc = bp1_yearly.9027.desc.greedy } @@ -4698,7 +4676,7 @@ bp1_yearly.9027 = { } # For determining final event bp1_increase_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain greedy = major_stress_impact_gain cynical = major_stress_impact_gain @@ -4739,7 +4717,7 @@ bp1_yearly.9027 = { } # For determining final event bp1_decrease_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain humble = medium_stress_impact_gain compassionate = major_stress_impact_gain @@ -4766,7 +4744,7 @@ bp1_yearly.9027 = { option = { # You want HOW much?? name = bp1_yearly.9027.c add_piety = medium_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain compassionate = medium_stress_impact_gain humble = medium_stress_impact_gain @@ -4908,7 +4886,7 @@ bp1_yearly.9028 = { add_piety = medium_piety_gain add_character_flag = had_event_bp1_promised_to_ammend_rivalry bp1_increase_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain zealous = minor_stress_impact_loss @@ -4930,7 +4908,7 @@ bp1_yearly.9028 = { option = { # Not a chance! name = bp1_yearly.9028.b bp1_decrease_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5090,7 +5068,7 @@ bp1_yearly.9029 = { value = scope:bp1_yearly_9029_rival } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain zealous = minor_stress_impact_loss @@ -5118,7 +5096,7 @@ bp1_yearly.9029 = { } } bp1_decrease_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5157,10 +5135,8 @@ bp1_yearly.9030 = { is_available_adult = yes is_at_war = no is_landed = yes - faith = { - NOT = { has_doctrine_parameter = forbidden_from_pilgrimage } - any_holy_site = { exists = this } - } + rite = { NOT = { rite_has_parameter = forbidden_from_pilgrimage } } + faith = { any_holy_site_barony = {} } #Check if all of your holy sites are on cooldown trigger_if = { limit = { @@ -5170,7 +5146,7 @@ bp1_yearly.9030 = { } } faith = { - any_holy_site = { + any_holy_site_barony = { save_temporary_scope_as = site_check NOT = { root = { @@ -5244,10 +5220,8 @@ bp1_yearly.9030 = { is_available_adult = yes is_at_war = no is_landed = yes - faith = { - NOT = { has_doctrine_parameter = forbidden_from_pilgrimage } - any_holy_site = { exists = this } - } + rite = { NOT = { rite_has_parameter = forbidden_from_pilgrimage } } + faith = { any_holy_site_barony = {} } #Check if all of your holy sites are on cooldown trigger_if = { limit = { @@ -5257,7 +5231,7 @@ bp1_yearly.9030 = { } } faith = { - any_holy_site = { + any_holy_site_barony = { save_temporary_scope_as = site_check NOT = { root = { @@ -5289,7 +5263,7 @@ bp1_yearly.9030 = { add_stress = medium_stress_loss } bp1_increase_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain zealous = minor_stress_impact_loss @@ -5310,7 +5284,7 @@ bp1_yearly.9030 = { option = { # Not a chance! name = bp1_yearly.9030.b bp1_decrease_good_deeds = yes - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5419,6 +5393,7 @@ bp1_yearly.9031 = { var:second_ghost = { save_scope_as = bp1_yearly_9031_rival random_close_or_extended_family_member = { + limit = { this != root } save_scope_as = bp1_yearly_9031_rival_family } } @@ -5496,7 +5471,7 @@ bp1_yearly.9031 = { } add_prestige = medium_prestige_loss } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain @@ -5531,7 +5506,7 @@ bp1_yearly.9031 = { CHARACTER = scope:bp1_yearly_9031_rival_family OPINION = default_rival_opinion } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5600,7 +5575,7 @@ bp1_yearly.9032 = { OPINION = default_friend_opinion REASON = friend_apologise } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_loss arrogant = medium_stress_impact_gain vengeful = major_stress_impact_gain @@ -5630,7 +5605,7 @@ bp1_yearly.9032 = { scope:bp1_yearly_9032_rival = { increase_wounds_effect = { REASON = fight } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5713,10 +5688,10 @@ bp1_yearly.9033 = { trigger = { is_available_at_peace_adult = yes - OR = { - has_character_flag = had_event_bp1_yearly_9030 - has_character_flag = had_event_bp1_yearly_9031 - has_character_flag = had_event_bp1_yearly_9032 + has_variable = { + name = had_event_bp1_yearly_9030 + name = had_event_bp1_yearly_9031 + name = had_event_bp1_yearly_9032 } any_owned_story = { type = story_being_visited_by_angry_ghosts @@ -5741,7 +5716,7 @@ bp1_yearly.9033 = { } add_piety = medium_piety_gain - stress_impact = { + stress_and_fulfillment_impact = { base = massive_stress_impact_loss cynical = medium_stress_impact_gain # Offset if you're cynical; you believe it less } @@ -5755,7 +5730,7 @@ bp1_yearly.9033 = { } } add_piety = medium_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain just = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -5815,7 +5790,7 @@ bp1_yearly.9033 = { } add_trait = compassionate } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain cynical = medium_stress_impact_gain # Offset if you're cynical; you believe it less } @@ -6004,7 +5979,7 @@ bp1_yearly.9034 = { scope:bp1_yearly_9034_witch = { silent_disappearance_effect = yes } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain rowdy = medium_stress_impact_gain curious = minor_stress_impact_gain @@ -6054,7 +6029,7 @@ bp1_yearly.9034 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = massive_stress_impact_gain pensive = major_stress_impact_gain bossy = minor_stress_impact_gain @@ -6110,10 +6085,10 @@ bp1_yearly.9035 = { CANDIDATE = scope:bp1_yearly_9034_witch EMPLOYER = root } - stress_impact = { + pam_witch_embrace_fulfillment_effect = yes + stress_and_fulfillment_impact = { pensive = major_stress_impact_gain bossy = minor_stress_impact_gain - zealous = minor_stress_impact_gain } ai_chance = { base = 30 @@ -6141,7 +6116,7 @@ bp1_yearly.9035 = { give_witch_secret_or_trait_effect = yes set_relation_guardian = scope:bp1_yearly_9034_witch set_relation_friend = { reason = friend_deviant_fun target = scope:bp1_yearly_9034_witch } - stress_impact = { + stress_and_fulfillment_impact = { pensive = major_stress_impact_gain bossy = minor_stress_impact_gain zealous = minor_stress_impact_gain @@ -6395,7 +6370,7 @@ bp1_yearly.9037 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = massive_stress_impact_gain pensive = major_stress_impact_gain bossy = minor_stress_impact_gain @@ -6408,7 +6383,7 @@ bp1_yearly.9037 = { option = { # Run away in terror name = bp1_yearly.9037.b - stress_impact = { + stress_and_fulfillment_impact = { base = 5 brave = medium_stress_impact_gain rowdy = medium_stress_impact_gain @@ -6553,7 +6528,7 @@ bp1_yearly.9038 = { expose_secret = root } add_prestige = minor_prestige_loss - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain trusting = medium_stress_impact_gain vengeful = medium_stress_impact_gain @@ -6612,7 +6587,7 @@ bp1_yearly.9038 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { craven = major_stress_impact_gain forgiving = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -6736,7 +6711,7 @@ bp1_yearly.9040 = { modifier = bp1_indulging_ghost_sex years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = major_stress_impact_loss lustful = major_stress_impact_loss chaste = minor_stress_impact_gain @@ -6753,7 +6728,7 @@ bp1_yearly.9040 = { modifier = bp1_withholding_ghost_sex years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain lustful = major_stress_impact_gain compassionate = medium_stress_impact_gain @@ -6851,7 +6826,7 @@ bp1_yearly.9041 = { CHARACTER = scope:bp1_yearly_9041_sibling REASON = generic_familial_bonding } - stress_impact = { + stress_and_fulfillment_impact = { shy = major_stress_impact_gain pensive = major_stress_impact_gain bossy = minor_stress_impact_gain @@ -6877,7 +6852,7 @@ bp1_yearly.9041 = { limit = { NOT = { scope:bp1_yearly_9041_sibling = { has_relation_bully = root } } } scope:bp1_yearly_9041_sibling = { set_relation_bully = root } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_impact_gain compassionate = medium_stress_impact_gain forgiving = medium_stress_impact_gain @@ -6972,7 +6947,7 @@ bp1_yearly.9042 = { flag_as_unwanted_artifact = yes } add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = major_stress_impact_gain } ai_chance = { @@ -7030,7 +7005,7 @@ bp1_yearly.9042 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { gregarious = medium_stress_impact_gain forgiving = medium_stress_impact_gain } @@ -7064,7 +7039,7 @@ bp1_yearly.9042 = { modifier = full_of_jesus_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain gluttonous = minor_stress_impact_gain comfort_eater = minor_stress_impact_gain @@ -7115,14 +7090,14 @@ bp1_yearly.9043 = { OR = { AND = { is_deviant_trigger = yes - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = cp:councillor_court_chaplain } } AND = { is_cannibal_trigger = yes - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = cp:councillor_court_chaplain } @@ -7146,7 +7121,7 @@ bp1_yearly.9043 = { } if = { limit = { - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = cp:councillor_court_chaplain } @@ -7167,7 +7142,7 @@ bp1_yearly.9043 = { } if = { limit = { - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = cp:councillor_court_chaplain } @@ -7196,19 +7171,14 @@ bp1_yearly.9043 = { name = bp1_yearly.9043.a if = { limit = { - AND = { - OR = { - is_attracted_to_gender_of = scope:bp1_yearly_9043_chaplain - has_perk = unshackled_lust_perk - } + can_set_relation_lover_trigger = { CHARACTER = scope:bp1_yearly_9043_chaplain } + trigger_if = { + limit = { NOT = { is_consort_of = scope:bp1_yearly_9043_chaplain } } + might_cheat_on_every_partner_trigger = yes scope:bp1_yearly_9043_chaplain = { - OR = { - is_attracted_to_gender_of = root - has_perk = unshackled_lust_perk - } + might_cheat_on_every_partner_trigger = yes } } - NOT = { has_relation_lover = scope:bp1_yearly_9043_chaplain } } set_relation_lover = { reason = lover_induled_in_forbidden_pleasures target = scope:bp1_yearly_9043_chaplain } } @@ -7226,7 +7196,7 @@ bp1_yearly.9043 = { } if = { limit = { - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:cannibal GENDER_CHARACTER = root } @@ -7247,7 +7217,7 @@ bp1_yearly.9043 = { } if = { limit = { - trait_is_shunned_or_criminal_in_my_or_lieges_faith_trigger = { + trait_is_shunned_or_criminal_in_my_or_lieges_rite_trigger = { TRAIT = trait:deviant GENDER_CHARACTER = root } @@ -7260,7 +7230,7 @@ bp1_yearly.9043 = { add_trait = deviant } } - stress_impact = { + stress_and_fulfillment_impact = { calm = major_stress_impact_gain patient = major_stress_impact_gain brave = major_stress_impact_gain @@ -7310,7 +7280,7 @@ bp1_yearly.9043 = { } give_nickname = nick_baby_eating } - stress_impact = { + stress_and_fulfillment_impact = { lustful = medium_stress_impact_gain deviant = medium_stress_impact_gain forgiving = medium_stress_impact_gain @@ -7338,7 +7308,7 @@ bp1_yearly.9043 = { option = { # Keep it to yourself name = bp1_yearly.9043.c - stress_impact = { + stress_and_fulfillment_impact = { honest = medium_stress_impact_gain deviant = medium_stress_impact_gain } @@ -7595,7 +7565,7 @@ bp1_yearly.9045 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { calm = major_stress_impact_gain patient = major_stress_impact_gain just = major_stress_impact_gain @@ -7716,7 +7686,7 @@ bp1_yearly.9046 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { calm = minor_stress_impact_gain patient = minor_stress_impact_gain just = minor_stress_impact_gain @@ -7752,7 +7722,7 @@ bp1_yearly.9046 = { option = { # We gotta cover this up name = bp1_yearly.9046.b - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_gain honest = major_stress_impact_gain sadistic = major_stress_impact_gain @@ -7879,7 +7849,7 @@ bp1_yearly.9047 = { add_trait = loyal } } - stress_impact = { + stress_and_fulfillment_impact = { humble = medium_stress_impact_gain disloyal = medium_stress_impact_gain } @@ -7902,7 +7872,7 @@ bp1_yearly.9047 = { modifier = hurt_opinion opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { loyal = major_stress_impact_gain lustful = major_stress_impact_gain sadistic = major_stress_impact_gain @@ -7987,7 +7957,7 @@ bp1_yearly.9048 = { name = bp1_yearly.9048.a if = { limit = { - root.faith = { trait_is_virtue = brave } + root.rite = { trait_is_virtue_rite = brave } } add_piety = medium_piety_gain } @@ -8016,7 +7986,7 @@ bp1_yearly.9048 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { patient = medium_stress_impact_gain calm = medium_stress_impact_gain craven = medium_stress_impact_gain @@ -8051,11 +8021,11 @@ bp1_yearly.9048 = { add_prestige = minor_prestige_loss if = { limit = { - root.faith = { trait_is_virtue = brave } + root.rite = { trait_is_virtue_rite = brave } } add_piety = minor_piety_loss } - stress_impact = { + stress_and_fulfillment_impact = { brave = major_stress_impact_gain impatient = major_stress_impact_gain wrathful = major_stress_impact_gain @@ -8109,7 +8079,7 @@ bp1_yearly.9049 = { scope:bp1_yearly_9048_nemesis = { increase_wounds_effect = { REASON = duel } } - stress_impact = { + stress_and_fulfillment_impact = { patient = medium_stress_impact_gain calm = medium_stress_impact_gain craven = medium_stress_impact_gain @@ -8132,7 +8102,7 @@ bp1_yearly.9049 = { option = { # This rivalry is over name = bp1_yearly.9049.b remove_relation_nemesis = scope:bp1_yearly_9048_nemesis - stress_impact = { + stress_and_fulfillment_impact = { brave = major_stress_impact_gain impatient = major_stress_impact_gain wrathful = major_stress_impact_gain @@ -8168,7 +8138,7 @@ bp1_yearly.9049 = { death_reason = death_duel } } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain patient = medium_stress_impact_gain calm = medium_stress_impact_gain @@ -8286,7 +8256,7 @@ bp1_yearly.9050 = { modifier = flattered_opinion opinion = 25 } - stress_impact = { + stress_and_fulfillment_impact = { brave = major_stress_impact_gain impatient = major_stress_impact_gain wrathful = major_stress_impact_gain @@ -8331,7 +8301,7 @@ bp1_yearly.9050 = { add_prestige = medium_prestige_loss } } - stress_impact = { + stress_and_fulfillment_impact = { patient = medium_stress_impact_gain calm = medium_stress_impact_gain craven = medium_stress_impact_gain diff --git a/events/yearly_events/court_yearly_events.txt b/events/yearly_events/court_yearly_events.txt index 360d6a8dc..2c3f1c7b1 100644 --- a/events/yearly_events/court_yearly_events.txt +++ b/events/yearly_events/court_yearly_events.txt @@ -147,7 +147,7 @@ court_yearly.1000 = { modifier = { factor = 0.1 OR = { - faith = { trait_is_sin = drunkard } + rite = { trait_is_sin_rite = drunkard } religion = religion:islam_religion } } @@ -160,7 +160,7 @@ court_yearly.1000 = { trigger = { can_be_hashishiyah = yes } modifier = { factor = 0.1 - faith = { trait_is_sin = hashishiyah } + rite = { trait_is_sin_rite = hashishiyah } } save_scope_value_as = { name = debauchery_type @@ -171,7 +171,7 @@ court_yearly.1000 = { trigger = { can_be_rakish = yes } modifier = { factor = 0.1 - faith = { trait_is_virtue = lustful } + rite = { trait_is_virtue_rite = lustful } } save_scope_value_as = { name = debauchery_type @@ -786,7 +786,7 @@ court_yearly.2001 = { # Add a little CGV for all these obsequious toadies constantly making a big deal about you. change_current_court_grandeur = miniscule_court_grandeur_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss humble = major_stress_impact_gain } @@ -846,7 +846,7 @@ court_yearly.2001 = { # Add a little CGV for all these obsequious toadies constantly making a big deal about you. change_current_court_grandeur = minor_court_grandeur_gain - stress_impact = { + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_loss humble = major_stress_impact_gain } @@ -878,7 +878,7 @@ court_yearly.2001 = { opinion = -25 } - stress_impact = { + stress_and_fulfillment_impact = { humble = miniscule_stress_impact_loss arrogant = medium_stress_impact_gain } @@ -921,7 +921,7 @@ court_yearly.2001 = { opinion = -35 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = miniscule_stress_impact_loss generous = major_stress_impact_gain } @@ -941,7 +941,7 @@ court_yearly.2001 = { # Gain some fame for your straight-talking. add_prestige_experience = medium_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { shy = miniscule_stress_impact_loss gregarious = minor_stress_impact_gain } @@ -1256,7 +1256,7 @@ court_yearly.6041 = { type = event_toast_effect_bad title = court.6041.b.failure.tt left_icon = scope:scrounger - stress_impact = { + stress_and_fulfillment_impact = { ambitious = medium_stress_impact_gain } } @@ -1689,10 +1689,10 @@ court_yearly.5010 = { option = { #Dismiss their fears and denounce their superstition name = court.5010.a trigger = { - faith = { + rite = { NOR = { - has_doctrine = tenet_ancestor_worship - has_doctrine = tenet_adorcism + rite_has_tenet = tenet_ancestor_worship + rite_has_tenet = tenet_adorcism } } } @@ -1715,10 +1715,10 @@ court_yearly.5010 = { option = { #Encourage them to be respectful and leave the ghost be name = court.5010.b trigger = { - faith = { + rite = { OR = { - has_doctrine = tenet_ancestor_worship - has_doctrine = tenet_adorcism + rite_has_tenet = tenet_ancestor_worship + rite_has_tenet = tenet_adorcism } } } @@ -1819,6 +1819,9 @@ court_yearly.5020 = { years = 10 } random_courtier = { + limit = { + is_available_ai_adult = yes + } weight = { #More likely if you dislike each other opinion_modifier = { opinion_target = root @@ -2121,7 +2124,7 @@ court_yearly.6030 = { opinion = -20 } } - stress_impact = { + stress_and_fulfillment_impact = { just = medium_stress_impact_gain gregarious = medium_stress_impact_gain shy = medium_stress_impact_gain @@ -2324,7 +2327,7 @@ court_yearly.6030 = { opinion = -25 } } - stress_impact = { + stress_and_fulfillment_impact = { eccentric = medium_stress_impact_loss shy = major_stress_impact_gain compassionate = major_stress_impact_gain @@ -2451,7 +2454,6 @@ court_yearly.7100 = { geographical_region = world_europe geographical_region = world_tibet geographical_region = world_himalaya - geographical_region = world_burma geographical_region = world_middle_east_persia geographical_region = world_asia_china geographical_region = world_asia_japan @@ -2489,7 +2491,6 @@ court_yearly.7100 = { geographical_region = world_india geographical_region = world_tibet geographical_region = world_himalaya - geographical_region = world_burma geographical_region = world_asia_china geographical_region = world_asia_korea geographical_region = world_asia_southeast @@ -2525,7 +2526,7 @@ court_yearly.7100 = { } } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain } } @@ -2533,7 +2534,7 @@ court_yearly.7100 = { # I shall keep it as a pet! option = { name = court.7100.b - stress_impact = { + stress_and_fulfillment_impact = { craven = medium_stress_impact_gain } random = { @@ -2678,7 +2679,7 @@ court_yearly.7200 = { option = { name = court.7200.a - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_gain } @@ -2707,7 +2708,7 @@ court_yearly.7200 = { option = { name = court.7200.b - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_impact_loss } @@ -2745,7 +2746,7 @@ court_yearly.7200 = { # Just knock it off, okay? option = { name = court.7200.c - stress_impact = { + stress_and_fulfillment_impact = { calm = medium_stress_impact_gain wrathful = medium_stress_impact_loss } @@ -2842,7 +2843,7 @@ court_yearly.7030 = { } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = minor_stress_gain } @@ -2914,7 +2915,7 @@ court_yearly.7030 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_gain } } @@ -2948,7 +2949,7 @@ court_yearly.7030 = { } } - stress_impact = { + stress_and_fulfillment_impact = { eccentric = minor_stress_impact_loss generous = medium_stress_impact_gain compassionate = medium_stress_impact_gain @@ -2960,15 +2961,17 @@ court_yearly.7030 = { ### One of your courtiers has started sitting on a pillar during the day scripted_trigger court_7040_ascetic_religion_trigger = { - faith = { - OR = { - OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } - religion_tag = buddhism_religion - religion_tag = jainism_religion - religion_tag = taoism_religion -# religion_tag = dualism_religion - has_doctrine = tenet_asceticism + OR = { + faith = { + OR = { + OR = { religion_tag = eastern_orthodox_religion religion_tag = catholic_religion religion_tag = protestant_religion } + religion_tag = buddhism_religion + religion_tag = jainism_religion + religion_tag = taoism_religion + #religion_tag = dualism_religion + } } + rite = { rite_has_tenet = tenet_asceticism } } } @@ -3060,7 +3063,7 @@ court_yearly.7040 = { faith = { change_fervor = { - value = 5 + value = notable_fervor_gain desc = fervor_gain_ascetic_example } } @@ -3082,7 +3085,7 @@ court_yearly.7040 = { years = 10 } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_gain cynical = minor_stress_gain } @@ -3101,7 +3104,7 @@ court_yearly.7040 = { add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_gain } @@ -3135,7 +3138,7 @@ court_yearly.7040 = { add_piety = minor_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_gain impatient = minor_stress_gain } @@ -3492,7 +3495,7 @@ court_yearly.4355 = { } add_diplomacy_lifestyle_xp = major_lifestyle_xp add_dread = medium_dread_gain - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_loss wrathful = medium_stress_loss } @@ -3507,7 +3510,7 @@ court_yearly.4355 = { option = { name = court.4355.c flavor = court.4355.c.tt - stress_impact = { + stress_and_fulfillment_impact = { arbitrary = medium_stress_loss craven = medium_stress_loss } @@ -3638,7 +3641,7 @@ court_yearly.4800 = { option = { name = court.4800.a - stress_impact = { + stress_and_fulfillment_impact = { compassionate = medium_stress_impact_gain just = medium_stress_impact_gain arbitrary = minor_stress_loss @@ -3719,7 +3722,7 @@ court_yearly.4800 = { option = { name = court.4800.b - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_gain just = minor_stress_gain sadistic = miniscule_stress_impact_loss @@ -3802,6 +3805,7 @@ scripted_effect event_0101_spawn_criminal_effect = { location = root.capital_province template = generic_peasant_character faith = root.capital_province.faith #Character is meant to be a random lowborn, should be the local faith/culture rather than ruling class + rite = root.capital_province.rite culture = root.capital_province.culture save_scope_as = lowborn_criminal } @@ -3810,11 +3814,11 @@ scripted_effect event_0101_spawn_criminal_effect = { 10 = { modifier = { factor = 0 - root.faith = { has_doctrine_parameter = deviancy_accepted } + root.rite = { rite_has_parameter = deviancy_accepted } } modifier = { factor = 0.5 - root.faith = { has_doctrine_parameter = deviancy_shunned } + root.rite = { rite_has_parameter = deviancy_shunned } } add_trait = deviant save_scope_value_as = { @@ -3828,11 +3832,11 @@ scripted_effect event_0101_spawn_criminal_effect = { 10 = { modifier = { factor = 0 - root.faith = { has_doctrine_parameter = witchcraft_accepted } + root.rite = { rite_has_parameter = witchcraft_accepted } } modifier = { factor = 0.5 - root.faith = { has_doctrine_parameter = witchcraft_shunned } + root.rite = { rite_has_parameter = witchcraft_shunned } } add_trait = witch save_scope_value_as = { @@ -3880,7 +3884,7 @@ scripted_effect event_0101_spawn_criminal_effect = { 10 = { #Holy man murderer modifier = { factor = 0 - NOT = { has_allowed_gender_for_clergy = scope:lowborn_criminal } + NOT = { faith = { has_allowed_gender_for_clergy = scope:lowborn_criminal } } } replace_with_learning_trait_effect = yes add_character_flag = { @@ -4181,7 +4185,7 @@ court_yearly.0101 = { scope:lowborn_criminal = { has_trait = murderer has_character_flag = need_priest_outfit - faith = { has_doctrine_parameter = sky_burials_active } + rite = { rite_has_parameter = sky_burials_active } } } text = court.0101.a.priest.sky @@ -4255,13 +4259,27 @@ court_yearly.0101 = { } text = court.0101.a } - stress_impact = { - zealous = minor_stress_impact_loss #They are a criminal afterall - vengeful = minor_stress_impact_loss - wrathful = minor_stress_impact_loss - sadistic = major_stress_impact_loss - compassionate = major_stress_impact_gain - forgiving = major_stress_impact_gain + if = { + limit = { scope:lowborn_criminal = { has_trait = witch } } + pam_witch_justice_fulfillment_effect = yes + stress_impact = { + zealous = minor_stress_impact_loss #They are a criminal afterall + vengeful = minor_stress_impact_loss + wrathful = minor_stress_impact_loss + sadistic = major_stress_impact_loss + compassionate = major_stress_impact_gain + forgiving = major_stress_impact_gain + } + } + else = { + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss #They are a criminal afterall + vengeful = minor_stress_impact_loss + wrathful = minor_stress_impact_loss + sadistic = major_stress_impact_loss + compassionate = major_stress_impact_gain + forgiving = major_stress_impact_gain + } } scope:lowborn_criminal = { every_child = { @@ -4354,7 +4372,7 @@ court_yearly.0101 = { } text = court.0101.c } - stress_impact = { + stress_and_fulfillment_impact = { zealous = minor_stress_impact_gain vengeful = minor_stress_impact_gain sadistic = minor_stress_impact_gain #You wanna see them hurt, even if you are both sadists @@ -4372,6 +4390,7 @@ court_yearly.0101 = { if = { limit = { has_trait = deviant + might_cheat_on_every_partner_trigger = yes can_set_relation_lover_trigger = { CHARACTER = scope:lowborn_criminal } } set_relation_lover = { reason = lover_deviant target = scope:lowborn_criminal } @@ -4484,7 +4503,7 @@ court_yearly.0102 = { modifier = grateful_opinion opinion = 15 } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_gain sadistic = minor_stress_impact_gain shy = minor_stress_impact_gain @@ -4511,7 +4530,7 @@ court_yearly.0102 = { scope:executioner = { add_stress = minor_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss sadistic = minor_stress_impact_loss shy = minor_stress_impact_gain @@ -4533,7 +4552,7 @@ court_yearly.0102 = { scope:executioner = { add_stress = minor_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss compassionate = minor_stress_impact_gain gregarious = minor_stress_impact_gain @@ -4565,9 +4584,9 @@ court_yearly.0103 = { has_trait = just AND = { has_trait = zealous - faith = { + rite = { NOT = { - has_doctrine = tenet_ritual_cannibalism + rite_has_tenet = tenet_ritual_cannibalism } } } @@ -4687,7 +4706,7 @@ court_yearly.0103 = { } add_gold = medium_gold_value add_piety = major_piety_loss - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss sadistic = minor_stress_impact_loss greedy = major_stress_impact_loss @@ -4710,7 +4729,7 @@ court_yearly.0103 = { TARGET = scope:executioner IMPRISONER = root } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain just = minor_stress_impact_loss zealous = minor_stress_impact_loss @@ -4732,7 +4751,7 @@ court_yearly.0103 = { modifier = grateful_opinion opinion = 15 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = major_stress_impact_gain just = minor_stress_impact_gain zealous = minor_stress_impact_gain @@ -4890,7 +4909,7 @@ court_yearly.0104 = { REASON = friend_torture_stories } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = minor_stress_impact_loss shy = minor_stress_impact_gain compassionate = major_stress_impact_gain @@ -4928,7 +4947,7 @@ court_yearly.0104 = { scope:executioner = { add_stress = minor_stress_gain } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss sadistic = minor_stress_impact_loss shy = minor_stress_impact_gain @@ -4965,7 +4984,7 @@ court_yearly.0104 = { REASON = friend_torture_stories } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = minor_stress_impact_gain gregarious = minor_stress_impact_gain } @@ -5097,7 +5116,7 @@ court_yearly.0106 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_loss sadistic = minor_stress_impact_loss callous = minor_stress_impact_loss @@ -5141,7 +5160,7 @@ court_yearly.0106 = { OPINION = default_rival_opinion } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_gain sadistic = minor_stress_impact_gain compassionate = major_stress_impact_loss @@ -5182,7 +5201,7 @@ court_yearly.0106 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = minor_stress_impact_gain sadistic = minor_stress_impact_gain compassionate = minor_stress_impact_gain @@ -5244,8 +5263,8 @@ court_yearly.0110 = { cp:councillor_court_chaplain ?= { is_available_adult = yes } is_available_adult = yes OR = { - trait_is_shunned_in_faith_trigger = { TRAIT = trait:adulterer FAITH = root.faith GENDER_CHARACTER = root } #Fornicator is handled by same rules - trait_is_criminal_in_faith_trigger = { TRAIT = trait:adulterer FAITH = root.faith GENDER_CHARACTER = root } #Fornicator is handled by same rules + trait_is_shunned_in_rite_trigger = { TRAIT = trait:adulterer RITE = root.rite GENDER_CHARACTER = root } #Fornicator is handled by same rules + trait_is_criminal_in_rite_trigger = { TRAIT = trait:adulterer RITE = root.rite GENDER_CHARACTER = root } #Fornicator is handled by same rules } OR = { has_trait = deviant @@ -5322,7 +5341,7 @@ court_yearly.0110 = { } progress_towards_rival_effect = { REASON = rival_parent_imprisoned - CHARACTER = cp:councillor_court_chaplain + CHARACTER = scope:chaplain OPINION = default_rival_opinion } imprison_character_effect = { @@ -5333,7 +5352,7 @@ court_yearly.0110 = { TARGET = cp:councillor_court_chaplain IMPRISONER = root } - stress_impact = { + stress_and_fulfillment_impact = { just = major_stress_impact_gain compassionate = major_stress_impact_gain forgiving = major_stress_impact_gain @@ -5363,7 +5382,8 @@ court_yearly.0110 = { modifier = relieved_opinion opinion = 15 } - stress_impact = { + stress_and_fulfillment_impact = { + chaste = medium_stress_impact_loss vengeful = minor_stress_impact_gain lustful = major_stress_impact_gain rakish = massive_stress_impact_gain @@ -5400,7 +5420,7 @@ court_yearly.0110 = { modifier = disappointed_opinion opinion = -15 } - stress_impact = { + stress_and_fulfillment_impact = { } ai_chance = { base = 50 @@ -5506,7 +5526,7 @@ court_yearly.8100 = { option = { # Your strongest potion, you say? name = court.8100.a - stress_impact = { + stress_and_fulfillment_impact = { craven = major_stress_impact_gain # What if I am not strong enough? humble = medium_stress_impact_gain # I am fine with my strength content = medium_stress_impact_gain # "" @@ -5544,7 +5564,7 @@ court_yearly.8100 = { modifier = feeling_unwell_modifier years = 5 } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_impact_gain } } @@ -5672,7 +5692,7 @@ court_yearly.8100 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { brave = medium_stress_impact_gain # What if I am not strong enough? humble = medium_stress_impact_gain # I am fine with my strength content = medium_stress_impact_gain # "" @@ -5720,7 +5740,7 @@ court_yearly.8100 = { modifier = angry_opinion opinion = -15 } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain # There is no god arrogant = medium_stress_impact_gain # I want to be swole ambitious = medium_stress_impact_gain # "" @@ -5754,7 +5774,7 @@ court_yearly.8100 = { modifier = insulted_opinion opinion = -5 } - stress_impact = { + stress_and_fulfillment_impact = { brave = minor_stress_impact_gain arrogant = medium_stress_impact_gain # I want to be swole ambitious = medium_stress_impact_gain # "" @@ -5789,15 +5809,32 @@ court_yearly.8100 = { scripted_trigger root_faith_compare_doctrine_trigger = { OR = { AND = { - faith = { has_doctrine = $DOCTRINE$ } + rite = { rite_has_doctrine = $DOCTRINE$ } NOT = { - ROOT.faith = { has_doctrine = $DOCTRINE$ } + ROOT.rite = { rite_has_doctrine = $DOCTRINE$ } } } AND = { - ROOT.faith = { has_doctrine = $DOCTRINE$ } + ROOT.rite = { rite_has_doctrine = $DOCTRINE$ } NOT = { - faith = { has_doctrine = $DOCTRINE$ } + rite = { rite_has_doctrine = $DOCTRINE$ } + } + } + } +} + +scripted_trigger root_faith_compare_doctrine_parameter_trigger = { + OR = { + AND = { + rite = { rite_has_parameter = $DOCTRINE_PARAMETER$ } + NOT = { + ROOT.rite = { rite_has_parameter = $DOCTRINE_PARAMETER$ } + } + } + AND = { + ROOT.rite = { rite_has_parameter = $DOCTRINE_PARAMETER$ } + NOT = { + rite = { rite_has_parameter = $DOCTRINE_PARAMETER$ } } } } @@ -5891,7 +5928,7 @@ scripted_trigger court_8120_debater_trigger = { root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_divorce_disallowed } # Divorce root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_adultery_women_accepted } # Adultery Female root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_adultery_men_accepted } # Adultery Male - root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_witchcraft_accepted } # Witchcraft + root_faith_compare_doctrine_parameter_trigger = { DOCTRINE_PARAMETER = witchcraft_accepted } # Witchcraft root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_gender_equal } # Equality root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_consanguinity_unrestricted } # Cosanguity } @@ -5988,7 +6025,7 @@ court_yearly.8120 = { } if = { # Accuser attacks polygamy limit = { - faith = { has_doctrine = doctrine_monogamy } + rite = { rite_has_doctrine = doctrine_monogamy } } save_scope_as = accuser } @@ -6006,7 +6043,7 @@ court_yearly.8120 = { } if = { # Accuser attacks divorce limit = { - faith = { has_doctrine = doctrine_divorce_disallowed } + rite = { rite_has_doctrine = doctrine_divorce_disallowed } } save_scope_as = accuser } @@ -6028,7 +6065,7 @@ court_yearly.8120 = { if = { # Accuser attacks adultery limit = { NOT = { - faith = { has_doctrine = doctrine_adultery_women_accepted } + rite = { rite_has_doctrine = doctrine_adultery_women_accepted } } } save_scope_as = accuser @@ -6037,7 +6074,7 @@ court_yearly.8120 = { } 4 = { # Witchcraft trigger = { - root_faith_compare_doctrine_trigger = { DOCTRINE = doctrine_witchcraft_accepted } # 1/2 faiths have this + root_faith_compare_doctrine_parameter_trigger = { DOCTRINE_PARAMETER = witchcraft_accepted } # 1/2 faiths have this } ROOT = { set_variable = { # To track which issue was raised @@ -6048,7 +6085,7 @@ court_yearly.8120 = { if = { # Accuser attacks magic limit = { NOT = { - faith = { has_doctrine_parameter = witchcraft_accepted } + rite = { rite_has_parameter = witchcraft_accepted } } } save_scope_as = accuser @@ -6067,7 +6104,7 @@ court_yearly.8120 = { } if = { # Accuser attacks inequality limit = { - faith = { has_doctrine = doctrine_gender_equal } + rite = { rite_has_doctrine = doctrine_gender_equal } } save_scope_as = accuser } @@ -6086,7 +6123,7 @@ court_yearly.8120 = { if = { # Accuser attacks intermarriage limit = { NOT = { - faith = { has_doctrine = doctrine_consanguinity_unrestricted } + rite = { rite_has_doctrine = doctrine_consanguinity_unrestricted } } } save_scope_as = accuser @@ -6194,7 +6231,7 @@ court_yearly.8120 = { custom_description_no_bullet = { text = mandala_monotheist_warning_tt } } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = massive_stress_impact_gain stubborn = medium_stress_impact_gain lazy = medium_stress_impact_gain @@ -6243,7 +6280,7 @@ court_yearly.8120 = { modifier = respect_opinion opinion = 15 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss diplomat = minor_stress_impact_loss cynical = medium_stress_impact_gain @@ -6322,7 +6359,7 @@ court_yearly.8120 = { } } } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_impact_loss lazy = major_stress_impact_gain } @@ -6376,7 +6413,7 @@ court_yearly.8120 = { opinion = 10 } } - stress_impact = { + stress_and_fulfillment_impact = { cynical = medium_stress_impact_gain } ai_chance = { diff --git a/events/yearly_events/yearly_events_3.txt b/events/yearly_events/yearly_events_3.txt index f4f30fec8..339d49365 100644 --- a/events/yearly_events/yearly_events_3.txt +++ b/events/yearly_events/yearly_events_3.txt @@ -328,7 +328,7 @@ yearly.3001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { paranoid = medium_stress_impact_gain } } @@ -388,7 +388,7 @@ yearly.3001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain } } @@ -544,7 +544,10 @@ yearly.3001 = { } } else = { - war_for_imprison_effect = yes + war_for_imprison_effect = { + LIEGE = root + REBEL = scope:vassal + } } } #If target is a baron or unlanded, have them escape. @@ -557,7 +560,7 @@ yearly.3001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = major_stress_impact_gain } @@ -622,7 +625,7 @@ yearly.3002 = { add_prestige = medium_prestige_gain } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = medium_stress_impact_gain } @@ -655,7 +658,7 @@ yearly.3002 = { } } - stress_impact = { + stress_and_fulfillment_impact = { deceitful = minor_stress_impact_gain callous = medium_stress_impact_gain vengeful = major_stress_impact_gain @@ -714,7 +717,7 @@ yearly.3003 = { gold = root.major_gold_value } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } @@ -763,7 +766,7 @@ yearly.3003 = { } } - stress_impact = { + stress_and_fulfillment_impact = { arrogant = major_stress_impact_gain } @@ -863,7 +866,7 @@ yearly.3004 = { } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = major_stress_impact_gain paranoid = medium_stress_impact_gain sadistic = medium_stress_impact_gain @@ -879,7 +882,7 @@ yearly.3004 = { } add_prestige = minor_prestige_gain - stress_impact = { + stress_and_fulfillment_impact = { forgiving = medium_stress_impact_gain } @@ -900,7 +903,7 @@ yearly.3004 = { EXECUTIONER = root } - stress_impact = { + stress_and_fulfillment_impact = { compassionate = major_stress_impact_gain forgiving = major_stress_impact_gain } @@ -973,7 +976,7 @@ yearly.3005 = { } } - stress_impact = { + stress_and_fulfillment_impact = { callous = medium_stress_impact_gain sadistic = medium_stress_impact_gain } @@ -992,7 +995,7 @@ yearly.3005 = { IMPRISONER = root } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = major_stress_impact_gain just = major_stress_impact_gain } @@ -1184,7 +1187,7 @@ yearly.3011 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } @@ -1264,7 +1267,7 @@ yearly.3011 = { } } - stress_impact = { + stress_and_fulfillment_impact = { shy = minor_stress_impact_gain } @@ -1781,7 +1784,7 @@ yearly.3021 = { scope:deathbed_character = { death = natural } - stress_impact = { + stress_and_fulfillment_impact = { base = medium_stress_loss } add_piety = medium_piety_gain @@ -2018,7 +2021,7 @@ yearly.3031 = { opinion = -15 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain } } @@ -2391,7 +2394,7 @@ yearly.3031 = { opinion = -15 } - stress_impact = { + stress_and_fulfillment_impact = { base = minor_stress_gain } } @@ -2995,7 +2998,7 @@ yearly.3041 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain } @@ -3023,7 +3026,7 @@ yearly.3041 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain } @@ -3055,7 +3058,7 @@ yearly.3041 = { } } - stress_impact = { + stress_and_fulfillment_impact = { zealous = medium_stress_impact_gain } @@ -3080,9 +3083,6 @@ yearly.3041 = { scripted_trigger yearly_3051_county_trigger = { tier = tier_county this != holder.primary_title - NOT = { - is_nomad_title = yes - } NOT = { root = { has_claim_on = prev @@ -3257,7 +3257,7 @@ yearly.3051 = { } } - stress_impact = { + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } @@ -3278,7 +3278,7 @@ yearly.3051 = { opinion = 30 } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain ambitious = minor_stress_impact_gain } @@ -3455,6 +3455,9 @@ yearly.3071 = { option = { # Pray the nightmares away name = yearly.3071.a add_piety = medium_piety_gain + stress_and_fulfillment_impact = { + zealous = minor_stress_impact_loss + } } option = { # The flesh seemed delicious diff --git a/events/yearly_events/yearly_events_sahara.txt b/events/yearly_events/yearly_events_sahara.txt index e6ef4f75d..44e307362 100644 --- a/events/yearly_events/yearly_events_sahara.txt +++ b/events/yearly_events/yearly_events_sahara.txt @@ -145,7 +145,7 @@ yearly_saharan.0001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { just = minor_stress_impact_gain greedy = minor_stress_impact_loss } @@ -190,7 +190,7 @@ yearly_saharan.0001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = minor_stress_impact_gain zealous = minor_stress_impact_loss } @@ -221,41 +221,24 @@ yearly_saharan.0001 = { #If you share the same faith as the province, this act is a pious protection of the spirituality of your people. Unless you're pluralist. if = { limit = { - root.faith = scope:target_county.faith - NOR = { - root.faith = { has_doctrine = doctrine_pluralism_pluralistic } - #Not syncretised with Eastern Family. - AND = { - root.faith = { has_doctrine = tenet_eastern_syncretism } - scope:source_county.faith.religion = { is_in_family = rf_eastern } - } - #Not syncretised with Christianity. - AND = { - root.faith = { has_doctrine_parameter = christian_syncretic_actor_opinion_active } - scope:source_county = { NEOW_religion_is_broadly_christian_trigger = yes } - } - #Not syncretised with Islam. - AND = { - root.faith = { has_doctrine_parameter = islamic_syncretic_actor_opinion_active } - scope:source_county.faith = { religion_tag = islam_religion } - } - #Not syncretised with Judaism. - AND = { - root.faith = { has_doctrine_parameter = jewish_syncretic_actor_opinion_active } - scope:source_county.faith = { religion_tag = judaism_religion } + faith = scope:target_county.faith + rite = { + NOR = { + rite_has_doctrine = doctrine_pluralism_pluralistic + rite_is_syncretic_with = { RITE = scope:source_county.location.rite } } } } #Piety scales depending on how monistic you are. if = { limit = { - root.faith = { has_doctrine = doctrine_pluralism_righteous } + root.rite = { rite_has_doctrine = doctrine_pluralism_righteous } } add_piety = minor_piety_value } if = { limit = { - root.faith = { has_doctrine = doctrine_pluralism_fundamentalist } + root.rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist } } add_piety = medium_piety_value } @@ -292,7 +275,7 @@ yearly_saharan.0001 = { } } - stress_impact = { + stress_and_fulfillment_impact = { greedy = medium_stress_impact_gain zealous = medium_stress_impact_loss } @@ -447,7 +430,7 @@ yearly_saharan.0003 = { } } - stress_impact = { generous = medium_stress_impact_gain } + stress_and_fulfillment_impact = { generous = medium_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { @@ -524,7 +507,7 @@ yearly_saharan.0004 = { } } - stress_impact = { lazy = minor_stress_impact_gain } + stress_and_fulfillment_impact = { lazy = minor_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { @@ -546,7 +529,7 @@ yearly_saharan.0004 = { #Gold please! add_treasury_or_gold = medium_treasury_or_gold_value - stress_impact = { generous = miniscule_stress_impact_gain } + stress_and_fulfillment_impact = { generous = miniscule_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { ai_greed = 0.50 } @@ -566,7 +549,7 @@ yearly_saharan.0004 = { #Stonks of gold please! add_treasury_or_gold = major_treasury_or_gold_value - stress_impact = { generous = miniscule_stress_impact_gain } + stress_and_fulfillment_impact = { generous = miniscule_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { ai_greed = 0.75 } @@ -628,7 +611,7 @@ yearly_saharan.0005 = { } } - stress_impact = { cynical = miniscule_stress_impact_gain } + stress_and_fulfillment_impact = { cynical = miniscule_stress_impact_gain } ai_chance = { #The AI should always take this option, if it's available. base = 100 @@ -674,7 +657,7 @@ yearly_saharan.0005 = { set_county_faith = scope:target_county_old_faith } - stress_impact = { + stress_and_fulfillment_impact = { forgiving = minor_stress_impact_gain cynical = minor_stress_impact_gain compassionate = medium_stress_impact_gain @@ -840,6 +823,7 @@ yearly_saharan.0021 = { location = scope:target_county.title_province template = saharan_clan_leader_character faith = scope:target_county.faith + rite = scope:target_county.rite culture = culture:zaghawa save_scope_as = nomad_leader } @@ -851,6 +835,7 @@ yearly_saharan.0021 = { location = scope:target_county.title_province template = saharan_clan_leader_character faith = scope:target_county.faith + rite = scope:target_county.rite culture = culture:butr save_scope_as = nomad_leader } @@ -913,7 +898,7 @@ yearly_saharan.0021 = { else = { set_county_culture = culture:butr } } - stress_impact = { arrogant = minor_stress_impact_gain } + stress_and_fulfillment_impact = { arrogant = minor_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { @@ -944,7 +929,7 @@ yearly_saharan.0021 = { else = { set_county_culture = culture:butr } } - stress_impact = { arrogant = miniscule_stress_impact_gain } + stress_and_fulfillment_impact = { arrogant = miniscule_stress_impact_gain } ai_chance = { #The AI should never take this option: if they're small enough not to get Option A, they shouldn't wipe themselves out, and if they're large enough to receive it, they should pick that instead. base = 0 @@ -975,7 +960,7 @@ yearly_saharan.0021 = { } hidden_effect = { set_relation_potential_friend = scope:nomad_leader } - stress_impact = { shy = medium_stress_impact_gain } + stress_and_fulfillment_impact = { shy = medium_stress_impact_gain } ai_chance = { base = 100 ai_value_modifier = { @@ -1107,7 +1092,7 @@ yearly_saharan.0031 = { #Has a state faith that allows for this. faith = { - NOT = { has_doctrine_parameter = pacifist_opinion_active } + NOT = { has_doctrine_parameter = pacifist } } #Has at least one domain county in the Sahel. @@ -1235,7 +1220,7 @@ yearly_saharan.0031 = { } } - stress_impact = { + stress_and_fulfillment_impact = { sadistic = medium_stress_impact_loss generous = medium_stress_impact_gain compassionate = major_stress_impact_gain @@ -1281,7 +1266,7 @@ yearly_saharan.0031 = { #The clamp down negatively affects your realm. scope:slave_raider_county = { change_county_control = medium_county_control_loss } - stress_impact = { + stress_and_fulfillment_impact = { generous = minor_stress_impact_loss compassionate = major_stress_impact_loss just = major_stress_impact_loss @@ -1372,7 +1357,7 @@ yearly_saharan.0031 = { } } - stress_impact = { + stress_and_fulfillment_impact = { lazy = minor_stress_impact_loss sadistic = minor_stress_impact_gain generous = minor_stress_impact_gain @@ -1597,7 +1582,7 @@ yearly_saharan.0032 = { } } - stress_impact = { + stress_and_fulfillment_impact = { vengeful = medium_stress_impact_loss compassionate = major_stress_impact_loss just = major_stress_impact_loss @@ -1654,7 +1639,7 @@ yearly_saharan.0032 = { } } - stress_impact = { + stress_and_fulfillment_impact = { callous = minor_stress_impact_loss greedy = minor_stress_impact_loss sadistic = major_stress_impact_loss @@ -1708,7 +1693,7 @@ yearly_saharan.0032 = { #And the county suffers damage. scope:raided_county = { change_county_control = massive_county_control_loss } - stress_impact = { + stress_and_fulfillment_impact = { } ai_chance = { base = 100