From 9591d0f4f6da6b17abff886a4850627da25334da Mon Sep 17 00:00:00 2001 From: Thakia Date: Tue, 13 Oct 2026 21:45:07 -0300 Subject: [PATCH] Trigger Fixes --- .../activities/activity_types/coronation.txt | 2 +- .../decisions/dlc_decisions/ep3_decisions.txt | 8 +- .../scripted_triggers/00_laamp_triggers.txt | 90 +---- .../00_major_decision_triggers.txt | 22 +- .../00_religious_triggers.txt | 57 ++- .../03_fp2_scripted_triggers.txt | 25 +- common/scripted_triggers/07_ep3_triggers.txt | 71 +++- .../07_frankokratia_triggers.txt | 343 +----------------- common/scripted_triggers/10_tgp_triggers.txt | 2 + 9 files changed, 130 insertions(+), 490 deletions(-) diff --git a/common/activities/activity_types/coronation.txt b/common/activities/activity_types/coronation.txt index 0eeb9a844..154a905eb 100644 --- a/common/activities/activity_types/coronation.txt +++ b/common/activities/activity_types/coronation.txt @@ -3686,7 +3686,7 @@ scope:activity ?= { activity_location = { NOT = { has_holding_type = church_holding } } scope:host = { - #show_byzantion_throne_room_background = yes + show_byzantion_throne_room_background = yes } has_current_phase = coronation_phase_coronation } diff --git a/common/decisions/dlc_decisions/ep3_decisions.txt b/common/decisions/dlc_decisions/ep3_decisions.txt index 4b34e4486..486da39f4 100644 --- a/common/decisions/dlc_decisions/ep3_decisions.txt +++ b/common/decisions/dlc_decisions/ep3_decisions.txt @@ -2632,15 +2632,15 @@ embrace_heresy_decision = { top_liege ?= { any_realm_county = { OR = { - faith = { - faith_is_interesting_heresy_to_state_faith_trigger = yes + rite = { + rite_is_interesting_heresy_to_state_rite_trigger = yes } any_neighboring_county = { holder.top_liege ?= { this != root.top_liege } - faith = { - faith_is_interesting_heresy_to_state_faith_trigger = yes + rite = { + rite_is_interesting_heresy_to_state_rite_trigger = yes } } } diff --git a/common/scripted_triggers/00_laamp_triggers.txt b/common/scripted_triggers/00_laamp_triggers.txt index d4bf7d765..b415594a3 100644 --- a/common/scripted_triggers/00_laamp_triggers.txt +++ b/common/scripted_triggers/00_laamp_triggers.txt @@ -55,85 +55,25 @@ any_laamp_portion_at_sea_trigger = { } } -#character_is_valid_for_harrying_of_the_north_trigger = { -# title:k_england.holder ?= { owns_story_of_type = story_cycle_harrying_of_the_north } -# trigger_if = { -# limit = { is_ruler = yes } -# OR = { -# this = title:k_england.holder -# any_liege_or_above = { this = title:k_england.holder } -# } -# } -# trigger_else = { -# domicile ?= { -# domicile_location = { -# county ?= { -# holder = { -# OR = { -# this = title:k_england.holder -# any_liege_or_above = { this = title:k_england.holder } -# } -# } -# } -# } -# } -# } -# OR = { -# character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = yes -# character_is_valid_norman_for_harrying_of_the_north_trigger = yes -# } -#} +character_is_valid_for_harrying_of_the_north_trigger = { + always = no +} -#character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = { -# culture = { -# OR = { -# this = culture:anglo_saxon -# any_parent_culture_or_above = { this = culture:anglo_saxon } -# } -# NOR = { -# this = culture:norman -# any_parent_culture_or_above = { this = culture:norman } -# } -# } -#} +character_is_valid_anglo_saxon_for_harrying_of_the_north_trigger = { + always = no +} -#character_is_valid_norman_for_harrying_of_the_north_trigger = { -# culture = { -# OR = { -# this = culture:norman -# any_parent_culture_or_above = { this = culture:norman } -# } -# NOR = { -# this = culture:anglo_saxon -# any_parent_culture_or_above = { this = culture:anglo_saxon } -# } -# } -#} +character_is_valid_norman_for_harrying_of_the_north_trigger = { + always = no +} -#disable_interaction_for_hereward_trigger = { -# trigger_if = { -# limit = { scope:recipient = character:90028 } -# custom_tooltip = { -# text = owns_a_story_trigger -# scope:puppet_or_actor = { -# NOR = { -# owns_story_of_type = story_cycle_harrying_of_the_north -# any_liege_or_above = { owns_story_of_type = story_cycle_harrying_of_the_north } -# } -# } -# } -# } -#} +disable_interaction_for_hereward_trigger = { + always = no +} -#disable_interaction_for_hasan_trigger = { -# trigger_if = { -# limit = { scope:recipient = character:41702 } -# custom_tooltip = { -# text = owns_a_story_trigger -# scope:recipient = { owns_story_of_type = story_hasan } -# } -# } -#} +disable_interaction_for_hasan_trigger = { + always = no +} laamp_request_likely_marriable_woman_trigger = { is_available_quick = { diff --git a/common/scripted_triggers/00_major_decision_triggers.txt b/common/scripted_triggers/00_major_decision_triggers.txt index 8f292c384..5b009a5ee 100644 --- a/common/scripted_triggers/00_major_decision_triggers.txt +++ b/common/scripted_triggers/00_major_decision_triggers.txt @@ -244,23 +244,7 @@ launch_hungarian_migration_misplaced_count_suitable_liege_trigger = { # } #} # -#hre_valid_prince_elector_trigger = { -# is_landed = yes -# faith = root.faith -# OR = { # must be de-jure vassal of empire -# AND = { -# capital_province.kingdom.holder ?= root -# capital_province.empire != title:e_italy -# } -# capital_province.empire.holder ?= root -# } -# NOT = { # not already selected -# any_held_title = { -# is_target_in_global_variable_list = { -# name = hre_elector_list -# target = this -# } -# } -# } -#} +hre_valid_prince_elector_trigger = { + always = no +} # \ No newline at end of file diff --git a/common/scripted_triggers/00_religious_triggers.txt b/common/scripted_triggers/00_religious_triggers.txt index 289f52051..eaa5ee720 100644 --- a/common/scripted_triggers/00_religious_triggers.txt +++ b/common/scripted_triggers/00_religious_triggers.txt @@ -833,40 +833,29 @@ secret_is_blackmailable_trigger = { # Heresy Triggers # ################### -##Christian Heresy Groups -#faiths_are_in_western_christianity_group = { -# OR = { -# $FAITH_1$ = faith:catholic -# $FAITH_1$ = faith:cathar -# $FAITH_1$ = faith:waldensian -# $FAITH_1$ = faith:lollard -# } -# OR = { -# $FAITH_2$ = faith:catholic -# $FAITH_2$ = faith:cathar -# $FAITH_2$ = faith:waldensian -# $FAITH_2$ = faith:lollard -# $FAITH_2$ = faith:gnostic_faith -# } -#} -# -#faiths_are_in_orthodox_christianity_group = { -# OR = { -# $FAITH_1$ = faith:orthodox -# $FAITH_1$ = faith:iconoclast -# $FAITH_1$ = faith:bogomilist -# $FAITH_1$ = faith:paulician -# } -# OR = { -# $FAITH_2$ = faith:orthodox -# $FAITH_2$ = faith:iconoclast -# $FAITH_2$ = faith:bogomilist -# $FAITH_2$ = faith:paulician -# $FAITH_2$ = faith:bosnian_church -# $FAITH_2$ = faith:gnostic_faith -# } -#} -# +#Christian Heresy Groups +faiths_are_in_western_christianity_group = { + OR = { + $FAITH_1$ = faith.religion = religion:catholic_religion + $FAITH_1$ = faith.religion = religion:protestant_religion + } + OR = { + $FAITH_2$ = faith.religion = religion:catholic_religion + $FAITH_2$ = faith.religion = religion:protestant_religion + } +} + +faiths_are_in_orthodox_christianity_group = { + OR = { + $FAITH_1$ = faith.religion = religion:eastern_orthodox_religion + $FAITH_1$ = faith.religion = religion:oriental_orthodox_religion + } + OR = { + $FAITH_2$ = faith.religion = religion:eastern_orthodox_religion + $FAITH_2$ = faith.religion = religion:oriental_orthodox_religion + } +} + #faiths_are_in_eastern_christianity_group = { # OR = { # $FAITH_1$ = faith:miaphysitism diff --git a/common/scripted_triggers/03_fp2_scripted_triggers.txt b/common/scripted_triggers/03_fp2_scripted_triggers.txt index 5dda508b7..fadc8b9c2 100644 --- a/common/scripted_triggers/03_fp2_scripted_triggers.txt +++ b/common/scripted_triggers/03_fp2_scripted_triggers.txt @@ -58,11 +58,8 @@ eligible_for_fp2_dynasty_legacies_trigger = { #is_toledo_ownership_valid_trigger = { -# title:c_toledo.holder = { -# target_is_same_character_or_above = root -# rite = rite:mozarabic_church -# } -#} + always = no +} ################################################## # Cultural & Regional Triggers @@ -706,21 +703,9 @@ struggle_can_access_unlocks_bargain_fealty_interaction_trigger = { # } #} # -#fp2_eligible_for_yearly_events_trigger = { -# has_fp2_dlc_trigger = yes -# OR = { -# any_character_struggle = { -# involvement = involved -# is_struggle_type = iberian_struggle -# } -# culture = { -# has_cultural_pillar = heritage_iberian -# } -# capital_province ?= { -# geographical_region = world_europe_west_iberia -# } -# } -#} +fp2_eligible_for_yearly_events_trigger = { + always = no +} fp2_purchase_truce_interaction_soft_requirements_trigger = { OR = { diff --git a/common/scripted_triggers/07_ep3_triggers.txt b/common/scripted_triggers/07_ep3_triggers.txt index 8cc7029b2..75cc6d0b4 100644 --- a/common/scripted_triggers/07_ep3_triggers.txt +++ b/common/scripted_triggers/07_ep3_triggers.txt @@ -1179,16 +1179,9 @@ has_any_gallowsbait_xp_trigger = { } } -#ep3_restored_rome_hard_mode_trigger = { -# OR = { -# this = title:h_roman_empire.holder -# this = title:h_eastern_roman_empire.holder -# } -# any_owned_story = { -# type = ep3_story_cycle_restoring_rome -# has_variable = roman_empire_hard_mode -# } -#} +ep3_restored_rome_hard_mode_trigger = { always = no } +is_eastern_roman_emperor_primary_title_trigger = { always = no } +show_byzantion_throne_room_background = { always = no } rite_is_interesting_heresy_to_state_rite_trigger = { faith.religion = root.top_liege.primary_title.state_rite.faith.religion @@ -1792,6 +1785,64 @@ estate_can_construct_japanese_tea_plantation_06_trigger = { domicile ?= { has_domicile_building_or_higher = japanese_manor_main_05 } } +# Minority Communities N3OW + +estate_can_construct_militia_barracks_03_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_02 } +} +estate_can_construct_militia_barracks_04_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_03 } +} +estate_can_construct_militia_barracks_05_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_04 } +} +estate_can_construct_militia_barracks_06_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_05 } +} + +estate_can_construct_village_market_06_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_05 } +} + +estate_can_construct_village_workshop_carpenter_03_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_02 } +} +estate_can_construct_village_workshop_carpenter_04_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_03 } +} +estate_can_construct_village_workshop_carpenter_05_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_04 } +} +estate_can_construct_village_workshop_carpenter_06_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_05 } +} + +estate_can_construct_village_workshop_mason_03_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_02 } +} +estate_can_construct_village_workshop_mason_04_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_03 } +} +estate_can_construct_village_workshop_mason_05_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_04 } +} +estate_can_construct_village_workshop_mason_06_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_05 } +} + +estate_can_construct_village_workshop_textile_03_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_02 } +} +estate_can_construct_village_workshop_textile_04_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_03 } +} +estate_can_construct_village_workshop_textile_05_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_04 } +} +estate_can_construct_village_workshop_textile_06_trigger = { + domicile ?= { has_domicile_building_or_higher = minority_community_main_05 } +} + # Check succession law types for Influence Candidacy validity # TYPE should always be 'realm' or 'title' influence_candidacy_valid_succession_law_trigger = { diff --git a/common/scripted_triggers/07_frankokratia_triggers.txt b/common/scripted_triggers/07_frankokratia_triggers.txt index 3a2fea38a..6f3f8566b 100644 --- a/common/scripted_triggers/07_frankokratia_triggers.txt +++ b/common/scripted_triggers/07_frankokratia_triggers.txt @@ -387,330 +387,19 @@ # #} # -#ep3_frankokratia_financier_trigger = { -# faith = faith:catholic -# is_ai = yes -# #Not pals with byz emperor -# NOR = { -# is_allied_to = title:e_byzantium.holder -# is_vassal_of = title:e_byzantium.holder -# has_relation_friend = title:e_byzantium.holder -# has_relation_lover = title:e_byzantium.holder -# has_relation_soulmate = title:e_byzantium.holder -# AND = { -# exists = faith.religious_head -# this = faith.religious_head -# } -# } -# #Gotta have money to be a financier -# gold >= 0 -# #Your capital needs to be somewhere useful -# capital_county = { -# title_province = { -# OR = { -# geographical_region = world_europe_south -# geographical_region = world_europe_west_iberia -# geographical_region = world_europe_west_francia -# } -# } -# is_coastal_county = yes -# } -# is_at_war = no -#} -# -#ep3_frankokratia_financier_sub_trigger = { -# highest_held_title_tier >= tier_county -# government_has_flag = government_is_republic -# ep3_frankokratia_financier_trigger = yes -#} -# -#ep3_frankokratia_financier_exists_trigger = { -# OR = { -# AND = { -# exists = title:k_venice.holder -# title:k_venice.holder = { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# title:e_italy = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:k_sicily = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:k_croatia = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:k_burgundy = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:k_aquitaine = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:e_spain = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# ep3_frankokratia_financier_sub_trigger = yes -# } -# } -# } -# title:e_italy = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# highest_held_title_tier >= tier_county -# highest_held_title_tier < tier_empire -# ep3_frankokratia_financier_trigger = yes -# } -# } -# } -# title:k_sicily = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# highest_held_title_tier >= tier_county -# highest_held_title_tier < tier_empire -# ep3_frankokratia_financier_trigger = yes -# } -# } -# } -# title:k_croatia = { -# any_in_de_jure_hierarchy = { -# count >= 1 -# holder ?= { -# highest_held_title_tier >= tier_county -# highest_held_title_tier < tier_empire -# ep3_frankokratia_financier_trigger = yes -# } -# } -# } -# } -#} -# -#ep3_frankokratia_valid_joiner_trigger = { -# NOR = { -# has_character_flag = had_event_frankokratia_0020 -# this = faith.religious_head -# any_liege_or_above = { -# this = title:e_byzantium.holder -# } -# is_allied_to = title:e_byzantium.holder -# is_vassal_of = title:e_byzantium.holder -# has_truce = title:e_byzantium.holder -# has_relation_friend = title:e_byzantium.holder -# any_owned_story = { -# type = frankokratia_story -# } -# } -#} -# -#ep3_frankokratia_latin_kingdom_available_trigger = { -# OR = { -# NOT = { exists = holder } -# holder = { -# this = title:e_byzantium.holder -# } -# holder = { -# is_vassal_or_below_of = title:e_byzantium.holder -# NOT = { -# is_at_war_with = title:e_byzantium.holder -# } -# } -# } -# #At least 2 counties in the kingdom belong to byzantine emperor -# any_de_jure_county = { -# count >= 2 -# OR = { -# holder = { -# this = title:e_byzantium.holder -# } -# holder = { -# is_vassal_or_below_of = title:e_byzantium.holder -# NOT = { -# is_at_war_with = title:e_byzantium.holder -# } -# } -# } -# } -#} -# -#ep3_frankokratia_discard_old_lands_trigger = { -# NAND = { -# primary_title = { -# tier <= tier_empire -# empire = title:e_byzantium -# } -# any_sub_realm_county = { -# empire = title:e_byzantium -# } -# } -#} -# -#ep3_frankokratia_beneficiary_trigger = { -# is_ruler = no -# is_imprisoned = no -# is_adult = yes -# faith = scope:frankokratia_crusader.faith -# NOR = { -# this = scope:financier -# any_heir_title = { } -# has_trait = incapable -# has_trait = devoted -# AND = { -# scope:frankokratia_crusader.rite = { -# rite_has_doctrine = doctrine_theocracy_temporal -# } -# has_council_position = councillor_court_chaplain -# } -# } -# OR = { #Either not married, or not married to a ruler. -# is_married = no -# NOT = { -# any_spouse = { -# is_ruler = yes -# } -# } -# } -# OR = { -# AND = { -# is_male = yes -# age < 50 -# } -# AND = { -# is_female = yes -# age <= 35 -# } -# any_child = { -# count >= 1 -# is_ruler = no -# ep3_frankokratia_beneficiary_gender_soft_trigger = yes -# } -# } -#} -# -#ep3_frankokratia_beneficiary_gender_trigger = { -# trigger_if = { -# limit = { -# scope:frankokratia_crusader = { -# OR = { -# has_realm_law = male_preference_law -# has_realm_law = male_only_law -# } -# } -# } -# is_male = yes -# } -# trigger_else_if = { -# limit = { -# scope:frankokratia_crusader = { -# OR = { -# has_realm_law = female_preference_law -# has_realm_law = female_only_law -# } -# } -# } -# is_female = yes -# } -# trigger_else = { -# scope:frankokratia_crusader = { -# has_realm_law = equal_law -# } -# } -#} -# -#ep3_frankokratia_beneficiary_gender_soft_trigger = { -# trigger_if = { -# limit = { -# scope:frankokratia_crusader = { -# has_realm_law = male_only_law -# } -# } -# is_male = yes -# } -# trigger_else_if = { -# limit = { -# scope:frankokratia_crusader = { -# has_realm_law = female_only_law -# } -# } -# is_female = yes -# } -# trigger_else = { -# scope:frankokratia_crusader = { -# OR = { -# has_realm_law = male_preference_law -# has_realm_law = female_preference_law -# has_realm_law = equal_law -# } -# } -# } -#} -# -#ep3_frankokratia_notification_recipient_trigger = { -# OR = { -# #Rulers in the Byz region -# capital_province = { -# county = { -# empire = title:e_byzantium -# } -# } -# #Most affected Christians -# faith = faith:catholic -# faith = faith:orthodox -# faith = faith:miaphysitism -# faith = faith:armenian_apostolic -# #Target faith of crusade -# faith = scope:defender.faith -# #Vassals of crusade defender -# liege ?= scope:defender -# #Vassals of byz emp -# AND = { -# exists = title:e_byzantium.holder -# liege ?= title:e_byzantium.holder -# } -# #Byz emp -# AND = { -# exists = title:e_byzantium.holder -# this ?= title:e_byzantium.holder -# } -# is_in_list = non_christian_franko_leaders -# } -#} -# -#ep3_orthodox_faith_trigger = { -# OR = { -# faith = faith:orthodox -# faith = faith:miaphysitism -# faith = faith:armenian_apostolic -# faith = faith:iconoclast -# faith = faith:bogomilist -# faith = faith:paulician -# faith = faith:nestorian -# } -#} +ep3_frankokratia_financier_trigger = { always = no } +ep3_frankokratia_financier_sub_trigger = { always = no } +ep3_frankokratia_financier_exists_trigger = { always = no } +ep3_frankokratia_valid_joiner_triggerr = { always = no } +ep3_frankokratia_latin_kingdom_available_trigger = { always = no } +ep3_frankokratia_discard_old_lands_trigger = { always = no } +ep3_frankokratia_beneficiary_trigger = { always = no } +ep3_frankokratia_beneficiary_gender_trigger = { always = no } +ep3_frankokratia_beneficiary_gender_soft_trigger = { always = no } +ep3_frankokratia_notification_recipient_trigger = { always = no } +ep3_orthodox_faith_trigger = { + OR = { + religion = religion:eastern_orthodox_religion + religion = religion:oriental_orthodox_religion + } +} diff --git a/common/scripted_triggers/10_tgp_triggers.txt b/common/scripted_triggers/10_tgp_triggers.txt index 10cc6d6bb..5d555211f 100644 --- a/common/scripted_triggers/10_tgp_triggers.txt +++ b/common/scripted_triggers/10_tgp_triggers.txt @@ -1111,3 +1111,5 @@ tgp_cranial_trophies_collection_trigger = { has_personal_tenet_flag = killing_bestows_heads } } + +tgp_primary_title_is_ministry = { always = no } \ No newline at end of file