From 65000f2b5842d6e2c5d3c99461b6200ce206a024 Mon Sep 17 00:00:00 2001 From: trashb0at Date: Mon, 24 Mar 2025 11:27:25 -0400 Subject: [PATCH] fixed clothing triggers --- .../00_clothing_triggers.txt | 592 +++++++++++------- 1 file changed, 372 insertions(+), 220 deletions(-) diff --git a/common/scripted_triggers/00_clothing_triggers.txt b/common/scripted_triggers/00_clothing_triggers.txt index e524ee94..1be04948 100644 --- a/common/scripted_triggers/00_clothing_triggers.txt +++ b/common/scripted_triggers/00_clothing_triggers.txt @@ -2,49 +2,51 @@ # Character must be an adult. exists = this is_adult = yes - # Character must have a valid reasion to be naked. OR = { - faith = { - has_doctrine_parameter = naked_adherents_active - } - AND = { - faith = { - has_doctrine_parameter = naked_priests_active - } - OR = { - ai_zeal >= 50 - has_trait = devoted - has_trait = zealous - government_has_flag = government_is_theocracy - has_council_position = councillor_court_chaplain - } - } has_character_modifier = diplomacy_majesty_4090_no_raiment_modifier # Lunatic event where character goes naked instead of buying new clothes. has_character_flag = is_naked # Special flag used in certain events. + faith = { has_doctrine_parameter = naked_adherents_active } + trigger_if = { + limit = { + faith = { has_doctrine_parameter = naked_priests_active } + } + OR = { + government_has_flag = government_is_theocracy + has_council_position = councillor_court_chaplain + has_trait = devoted + has_trait = zealous + ai_zeal >= 50 + } + } } - } # Can only be checked in the interface since the setting isn't synced should_be_fully_naked_portrait_trigger = { - should_be_naked_trigger = yes should_show_nudity = yes + should_be_naked_trigger = yes } should_be_topless_portrait_trigger = { + should_show_nudity = yes exists = this OR = { has_character_flag = should_be_topless has_character_flag = single_combat_stripped_to_waist activity_tournament_shirtless_trigger = yes } - should_show_nudity = yes } portrait_wear_no_headgear_trigger = { OR = { - scope:age < 16 # No headgear for children under 16 # + AND = { + scope:age < 16 # No headgear for children under 16 # + NOR = { + portrait_sami_clothing_trigger = yes + portrait_ugro_permian_clothing_trigger = yes + } + } has_character_flag = no_hat portrait_prisoner_trigger = yes has_character_modifier = hajj_halq_modifier # To show shaved hair @@ -112,6 +114,8 @@ portrait_wear_no_headgear_trigger = { portrait_wear_armor_trigger = { exists = this + is_incapable = no + is_imprisoned = no trigger_if = { limit = { exists = involved_activity } involved_activity = { @@ -122,40 +126,34 @@ portrait_wear_armor_trigger = { } } } - is_incapable = no NOT = { has_any_charioteer_trait = yes } - is_imprisoned = no portrait_ep2_wedding_clothes_trigger = no trigger_if = { limit = { portrait_sickness_trigger = yes } is_in_army = yes } OR = { - # Mercenaries + # Mercenaries, Holy Orders, Adventurers AND = { is_ruler = yes - government_has_flag = government_is_mercenary - } - # Adventurers - AND = { - is_ruler = yes - government_has_flag = government_is_landless_adventurer OR = { + government_has_flag = government_is_mercenary + government_has_flag = government_is_holy_order has_realm_law = camp_purpose_mercenaries has_realm_law = camp_purpose_brigands } } - # Holy Orders - AND = { - is_ruler = yes - government_has_flag = government_is_holy_order - } has_trait = order_member # Commanding an army is_commanding_army = yes # Knight in an army exists = knight_army AND = { + OR = { + is_landed_or_landless_administrative = no + liege = { is_at_war = yes } + } + is_councillor = no OR = { AND = { is_knight = yes @@ -186,17 +184,12 @@ portrait_wear_armor_trigger = { has_court_position = light_infantry_captain_camp_officer has_court_position = pike_captain_camp_officer } - is_councillor = no - OR = { - is_playable_character = no - liege = { is_at_war = yes } - } } # Marshal lower than Duke AND = { has_council_position = councillor_marshal OR = { - is_playable_character = no + is_landed_or_landless_administrative = no primary_title.tier < tier_kingdom } } @@ -381,8 +374,7 @@ portrait_wear_christian_holy_order_trigger = { # Christian holy order members/va religion = religion:christianity_religion is_playable_character = no portrait_wear_armor_trigger = yes - exists = liege - liege = { government_has_flag = government_is_holy_order } + liege ?= { government_has_flag = government_is_holy_order } } } } @@ -409,10 +401,8 @@ portrait_shared_clothing_contents_trigger = { } trigger_else_if = { limit = { - exists = this - exists = var:adopted_cultural_style + exists = this.var:adopted_cultural_style } - var:adopted_cultural_style = flag:$CULTURE_FLAG$ has_variable = years_as_varangian is_landed = no @@ -422,6 +412,42 @@ portrait_shared_clothing_contents_trigger = { } } +## CCP4 Sami Travel trigger ## + +portrait_ccp4_sami_travel_coat_trigger = { + trigger_if = { + limit = { + NOR = { + has_realm_law = camp_purpose_explorers + liege ?= { has_realm_law = camp_purpose_explorers } + } + } + exists = current_travel_plan + # Must be traveling + is_travelling = yes + } + age > 4 + # thou shalt shed thy cloak whilst at an activity + trigger_if = { + limit = { + exists = involved_activity + involved_activity = { + NOR = { + has_activity_type = activity_hunt + has_activity_type = activity_roaming + } + } + } + NOT = { + involved_activity = { activity_location = root.location } + } + } + # Used for the following cultures + OR = { + portrait_sami_clothing_trigger = yes + } +} + portrait_byzantine_clothing_trigger = { portrait_shared_clothing_contents_trigger = { CULTURE_SCOPE = scope:culture @@ -483,6 +509,19 @@ portrait_northern_clothing_trigger = { CULTURE_SCOPE = scope:culture CULTURE_FLAG = northern } + NAND = { + has_cp4_dlc_trigger = yes + OR = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = sami + } + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = ugro_permian + } + } + } } portrait_northern_clothing_spouse_trigger = { @@ -490,6 +529,19 @@ portrait_northern_clothing_spouse_trigger = { CULTURE_SCOPE = culture CULTURE_FLAG = northern } + NAND = { + has_cp4_dlc_trigger = yes + OR = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = sami + } + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = ugro_permian + } + } + } } @@ -505,9 +557,8 @@ portrait_fp2_iberian_muslim_clothing_trigger = { trigger_if = { limit = { exists = this } AND = { - is_playable_character = yes religion = religion:islam_religion - capital_province = { + capital_province ?= { geographical_region = world_europe_west_iberia } } @@ -523,9 +574,8 @@ portrait_fp2_iberian_muslim_clothing_spouse_trigger = { CULTURE_FLAG = iberian_muslim } AND = { - is_playable_character = yes religion = religion:islam_religion - capital_province = { + capital_province ?= { geographical_region = world_europe_west_iberia } } @@ -542,9 +592,8 @@ portrait_fp2_iberian_christian_clothing_trigger = { trigger_if = { limit = { exists = this } AND = { - is_playable_character = yes religion = religion:christianity_religion - capital_province = { + capital_province ?= { geographical_region = world_europe_west_iberia } } @@ -560,16 +609,15 @@ portrait_fp2_iberian_christian_clothing_spouse_trigger = { CULTURE_FLAG = iberian_christian } AND = { - is_playable_character = yes religion = religion:christianity_religion - capital_province = { + capital_province ?= { geographical_region = world_europe_west_iberia } } } } -### FP3 - Sands of Time ### +### FP3 - Legacy of Persia ### #iranian portrait_fp3_iranian_clothing_trigger = { has_fp3_dlc_trigger = yes @@ -616,7 +664,7 @@ portrait_afr_berber_clothing_trigger = { limit = { exists = this } NAND = { is_landed = yes - capital_province = { geographical_region = world_europe_west_iberia } + capital_province ?= { geographical_region = world_europe_west_iberia } } } } @@ -629,7 +677,59 @@ portrait_afr_berber_clothing_spouse_trigger = { } NAND = { is_landed = yes - capital_province = { geographical_region = world_europe_west_iberia } + capital_province ?= { geographical_region = world_europe_west_iberia } + } +} + +### POL ### + +portrait_west_slavic_clothing_trigger = { + has_pol_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = west_slavic + } +} + +portrait_west_slavic_clothing_spouse_trigger = { + has_pol_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = west_slavic + } +} + +### CCP4 KHANTY / SAMI ### + +portrait_sami_clothing_trigger = { + has_cp4_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = sami + } +} + +portrait_sami_clothing_spouse_trigger = { + has_cp4_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = sami + } +} + +portrait_ugro_permian_clothing_trigger = { #AKA Khanty + has_cp4_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = ugro_permian #khanty + } +} + +portrait_ugro_permian_clothing_spouse_trigger = { #AKA Khanty + has_cp4_dlc_trigger = yes + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = ugro_permian #khanty } } @@ -743,6 +843,46 @@ portrait_sp2_western_clothing_spouse_trigger = { } } +portrait_rus_clothing_trigger = { + OR = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = east_slavic + } + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = west_slavic + } + } +} + +portrait_rus_clothing_spouse_trigger = { + OR = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = east_slavic + } + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = west_slavic + } + } +} + +portrait_turkic_clothing_trigger = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = scope:culture + CULTURE_FLAG = turkic + } +} + +portrait_turkic_clothing_spouse_trigger = { + portrait_shared_clothing_contents_trigger = { + CULTURE_SCOPE = culture + CULTURE_FLAG = turkic + } +} + portrait_can_use_noble_headgear_trigger = { NAND = { portrait_has_trait_trigger = { TRAIT = peasant_leader } @@ -859,15 +999,11 @@ portrait_era4_armor_trigger = { court_fashion_level_4_trigger = { scope:highest_held_title_tier < tier_duchy NOT = { - AND = { - exists = primary_spouse - primary_spouse = { - highest_held_title_tier >= tier_county - } + primary_spouse ?= { + highest_held_title_tier >= tier_county } } - exists = court_owner - court_owner = { + court_owner ?= { has_royal_court = yes has_dlc_feature = royal_court amenity_level = { type = court_fashion value = 4 } @@ -878,15 +1014,11 @@ court_fashion_level_4_trigger = { court_fashion_level_4_headgear_trigger = { scope:highest_held_title_tier < tier_duchy NOT = { - AND = { - exists = primary_spouse - primary_spouse = { - highest_held_title_tier >= tier_duchy - } + primary_spouse ?= { + highest_held_title_tier >= tier_duchy } } - exists = court_owner - court_owner = { + court_owner ?= { has_royal_court = yes has_dlc_feature = royal_court amenity_level = { type = court_fashion value >= 4 } @@ -897,15 +1029,11 @@ court_fashion_level_4_headgear_trigger = { court_fashion_level_5_trigger = { scope:highest_held_title_tier < tier_duchy NOT = { - AND = { - exists = primary_spouse - primary_spouse = { - highest_held_title_tier >= tier_duchy - } + primary_spouse ?= { + highest_held_title_tier >= tier_duchy } } - exists = court_owner - court_owner = { + court_owner ?= { has_royal_court = yes has_dlc_feature = royal_court amenity_level = { type = court_fashion value = 5 } @@ -926,24 +1054,22 @@ portrait_ruler_designer_trigger = { } portrait_commoner_trigger = { + portrait_$CULTURE_INPUT$_clothing_trigger = yes OR = { - AND = { + AND = { # You are not a ruler and not the courtier of a republic scope:highest_held_title_tier < tier_barony NOT = { - portrait_mayor_trigger = { + portrait_mayor_trigger = { # "Lives in a city" CULTURE_INPUT = $CULTURE_INPUT$ } } } - AND = { + AND = { # You are a Scholar Adventurer government_has_flag = government_is_landless_adventurer has_realm_law = camp_purpose_scholars } } NOR = { - portrait_low_nobles_trigger = { - CULTURE_INPUT = $CULTURE_INPUT$ - } portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } @@ -953,38 +1079,30 @@ portrait_commoner_trigger = { portrait_imperial_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } + portrait_low_nobles_trigger = { + CULTURE_INPUT = $CULTURE_INPUT$ + } } trigger_if = { limit = { exists = this } # To check if this is an actual character NOR = { - AND = { - exists = primary_spouse - primary_spouse ?= { - AND = { - highest_held_title_tier > tier_barony - NAND = { - government_has_flag = government_is_landless_adventurer - has_realm_law = camp_purpose_legitimists - } + primary_spouse ?= { # You have a spouse that is higher than baron, unless Legitimists + AND = { + highest_held_title_tier > tier_barony + NAND = { + government_has_flag = government_is_landless_adventurer + has_realm_law = camp_purpose_legitimists } } } - AND = { - government_has_flag = government_is_republic - primary_title.tier > tier_barony - } - AND = { - is_ruler = yes - government_has_flag = government_is_theocracy - } - AND = { + AND = { # You cannot be the courtier of a Legitimist Adventurer is_ruler = no government_has_flag = government_is_landless_adventurer liege ?= { has_realm_law = camp_purpose_legitimists } } - has_no_particular_noble_roots_trigger = no + has_no_particular_noble_roots_trigger = no # You cannot have noble roots AND = { # Members of Council liege ?= { highest_held_title_tier >= tier_duchy @@ -992,23 +1110,19 @@ portrait_commoner_trigger = { OR = { has_council_position = councillor_chancellor has_council_position = councillor_steward - } - portrait_$CULTURE_INPUT$_clothing_trigger = yes + } + } + } + trigger_if = { + limit = { + court_owner ?= { has_royal_court = yes } + has_dlc_feature = royal_court + } + court_owner = { + amenity_level = { type = court_fashion value < 4 } } } } - trigger_if = { - limit = { - exists = this - exists = court_owner - court_owner = { has_royal_court = yes } - has_dlc_feature = royal_court - } - court_owner = { - amenity_level = { type = court_fashion value < 4 } - } - } - portrait_$CULTURE_INPUT$_clothing_trigger = yes } portrait_commoner_clothing_trigger = { @@ -1019,6 +1133,7 @@ portrait_commoner_clothing_trigger = { } portrait_commoner_no_mayors_trigger = { + portrait_$CULTURE_INPUT$_clothing_trigger = yes OR = { scope:highest_held_title_tier < tier_barony AND = { @@ -1029,37 +1144,27 @@ portrait_commoner_no_mayors_trigger = { trigger_if = { limit = { exists = this } # To check if this is an actual character NOR = { - AND = { - exists = primary_spouse - primary_spouse = { - AND = { - highest_held_title_tier > tier_county - NAND = { - government_has_flag = government_is_landless_adventurer - has_realm_law = camp_purpose_legitimists - } + government_has_flag = government_is_republic + primary_spouse ?= { + AND = { + highest_held_title_tier > tier_county + NAND = { + government_has_flag = government_is_landless_adventurer + has_realm_law = camp_purpose_legitimists } } } - government_has_flag = government_is_republic - AND = { - is_ruler = yes - government_has_flag = government_is_theocracy + } + trigger_if = { + limit = { + court_owner ?= { has_royal_court = yes } + has_dlc_feature = royal_court + } + court_owner = { + amenity_level = { type = court_fashion value < 4 } } } } - trigger_if = { - limit = { - exists = this - exists = court_owner - court_owner = { has_royal_court = yes } - has_dlc_feature = royal_court - } - court_owner = { - amenity_level = { type = court_fashion value < 4 } - } - } - portrait_$CULTURE_INPUT$_clothing_trigger = yes portrait_wear_no_armor_trigger = yes } @@ -1073,27 +1178,24 @@ portrait_low_nobles_trigger = { trigger_if = { limit = { exists = this } # To check if this is an actual character NOT = { - AND = { - exists = primary_spouse - primary_spouse = { - highest_held_title_tier >= tier_duchy - trigger_if = { - limit = { - government_has_flag = government_is_landless_adventurer - } - has_realm_law = camp_purpose_legitimists + primary_spouse ?= { + highest_held_title_tier >= tier_duchy + trigger_if = { + limit = { + government_has_flag = government_is_landless_adventurer } + has_realm_law = camp_purpose_legitimists } } } NOR = { - portrait_high_nobles_trigger = { + portrait_imperial_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } portrait_royalty_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } - portrait_imperial_trigger = { + portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } } @@ -1113,18 +1215,14 @@ portrait_low_nobles_trigger = { portrait_$CULTURE_INPUT$_clothing_trigger = yes } AND = { # Courtiers - highest_held_title_tier < tier_county - exists = this - exists = court_owner - court_owner = { + highest_held_title_tier < tier_county + court_owner ?= { highest_held_title_tier > tier_duchy } portrait_$CULTURE_INPUT$_clothing_trigger = yes } - AND = { # Mayors - portrait_mayor_trigger = { - CULTURE_INPUT = $CULTURE_INPUT$ - } + portrait_mayor_trigger = { # Mayors + CULTURE_INPUT = $CULTURE_INPUT$ } AND = { # Mercenaries government_has_flag = government_is_mercenary @@ -1144,7 +1242,6 @@ portrait_low_nobles_trigger = { highest_held_title_tier = tier_county } NOR = { - # has_dynasty = no AND = { government_has_flag = government_is_republic primary_title.tier > tier_barony @@ -1174,7 +1271,6 @@ portrait_low_nobles_trigger = { } } NOR = { - # has_dynasty = no AND = { government_has_flag = government_is_republic primary_title.tier > tier_barony @@ -1249,12 +1345,11 @@ portrait_high_nobles_trigger = { portrait_$CULTURE_INPUT$_clothing_trigger = yes } AND = { # Spouses of rulers - exists = primary_spouse OR = { is_ruler = no highest_held_title_tier <= tier_county } - primary_spouse = { + primary_spouse ?= { OR = { highest_held_title_tier >= tier_duchy AND = { @@ -1359,7 +1454,10 @@ portrait_high_nobles_headgear_trigger = { government_has_flag = government_is_republic primary_title.tier > tier_county } - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } } NOR = { # Blocked for mercenaries and adventurers government_has_flag = government_is_mercenary @@ -1421,7 +1519,6 @@ portrait_royalty_trigger = { OR = { # Rulers AND = { - is_governor = no highest_held_title_tier = tier_kingdom NOR = { AND = { @@ -1432,17 +1529,17 @@ portrait_royalty_trigger = { is_ruler = yes government_has_flag = government_is_theocracy } + is_governor = yes } portrait_$CULTURE_INPUT$_clothing_trigger = yes } # Spouses AND = { - exists = primary_spouse OR = { is_ruler = no highest_held_title_tier = tier_barony } - primary_spouse = { + primary_spouse ?= { is_governor = no highest_held_title_tier = tier_kingdom NOR = { @@ -1460,9 +1557,8 @@ portrait_royalty_trigger = { } # Co-Rulers AND = { - exists = liege is_diarch = yes - liege = { + liege ?= { has_diarchy_active_parameter = diarchy_is_co_rulership highest_held_title_tier >= tier_kingdom NOR = { @@ -1501,7 +1597,10 @@ portrait_royalty_african_headgear_trigger = { AND = { OR = { highest_held_title_tier = tier_kingdom - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } } NAND = { # Blocked for mercenaries and adventurers is_ruler = yes @@ -1538,7 +1637,10 @@ portrait_royalty_african_headgear_trigger = { primary_spouse = { OR = { highest_held_title_tier = tier_kingdom - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } } NAND = { # Blocked for mercenaries is_ruler = yes @@ -1653,26 +1755,37 @@ portrait_imperial_nobles_headgear_trigger = { portrait_$CULTURE_INPUT$_clothing_trigger = yes } -portrait_commoner_armor_trigger = { - portrait_commoner_trigger = { - CULTURE_INPUT = $CULTURE_INPUT$ - } +portrait_armor_generic_trigger = { OR = { has_character_flag = need_military_outfit portrait_wear_armor_trigger = yes } +} + +portrait_commoner_armor_trigger = { + OR = { + has_character_flag = need_military_outfit + portrait_wear_armor_trigger = yes + } + portrait_commoner_trigger = { + CULTURE_INPUT = $CULTURE_INPUT$ + } NOT = { portrait_accoladed_knight_trigger = yes } } portrait_commoner_armor_in_army_trigger = { + portrait_wear_armor_currently_in_army_trigger = yes portrait_commoner_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } - portrait_wear_armor_currently_in_army_trigger = yes NOT = { portrait_accoladed_knight_trigger = yes } } portrait_low_nobles_armor_trigger = { + OR = { + has_character_flag = need_military_outfit + portrait_wear_armor_trigger = yes + } OR = { portrait_low_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ @@ -1681,14 +1794,11 @@ portrait_low_nobles_armor_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } } - OR = { - has_character_flag = need_military_outfit - portrait_wear_armor_trigger = yes - } NOT = { portrait_accoladed_knight_trigger = yes } } portrait_low_nobles_armor_in_army_trigger = { + portrait_wear_armor_currently_in_army_trigger = yes OR = { portrait_low_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ @@ -1697,11 +1807,14 @@ portrait_low_nobles_armor_in_army_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } } - portrait_wear_armor_currently_in_army_trigger = yes NOT = { portrait_accoladed_knight_trigger = yes } } portrait_high_nobles_armor_trigger = { + OR = { + has_character_flag = need_military_outfit + portrait_wear_armor_trigger = yes + } OR = { portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ @@ -1714,13 +1827,10 @@ portrait_high_nobles_armor_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } } - OR = { - has_character_flag = need_military_outfit - portrait_wear_armor_trigger = yes - } } portrait_high_nobles_armor_in_army_trigger = { + portrait_wear_armor_currently_in_army_trigger = yes OR = { portrait_high_nobles_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ @@ -1729,32 +1839,31 @@ portrait_high_nobles_armor_in_army_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } } - portrait_wear_armor_currently_in_army_trigger = yes } portrait_royalty_armor_trigger = { - portrait_royalty_trigger = { - CULTURE_INPUT = $CULTURE_INPUT$ - } OR = { has_character_flag = need_military_outfit portrait_wear_armor_trigger = yes } -} - -portrait_royalty_armor_in_army_trigger = { portrait_royalty_trigger = { CULTURE_INPUT = $CULTURE_INPUT$ } +} + +portrait_royalty_armor_in_army_trigger = { portrait_wear_armor_currently_in_army_trigger = yes + portrait_royalty_trigger = { + CULTURE_INPUT = $CULTURE_INPUT$ + } } portrait_war_nobles_accoladed_trigger = { + portrait_accoladed_knight_trigger = yes OR = { portrait_wear_armor_trigger = yes portrait_wear_armor_currently_in_army_trigger = yes } - portrait_accoladed_knight_trigger = yes } portrait_war_nobles_helmet_trigger = { @@ -1773,8 +1882,7 @@ portrait_war_nobles_helmet_trigger = { religion = religion:christianity_religion is_playable_character = no portrait_wear_armor_trigger = yes - exists = liege - liege = { + liege ?= { government_has_flag = government_is_holy_order } } @@ -1835,8 +1943,7 @@ portrait_western_crusades_trigger = { religion = religion:christianity_religion is_playable_character = no portrait_wear_armor_trigger = yes - exists = liege - liege = { + liege ?= { government_has_flag = government_is_holy_order } } @@ -1921,9 +2028,9 @@ portrait_stealth_trigger = { portrait_mayor_trigger = { - scope:highest_held_title_tier < tier_county - scope:government = government_type:republic_government - portrait_$CULTURE_INPUT$_clothing_trigger = yes + scope:highest_held_title_tier < tier_county # You are a baron or unlanded + scope:government = government_type:republic_government # You are a republic ruler or courtier + portrait_$CULTURE_INPUT$_clothing_trigger = yes # You have the cultural clothing } portrait_mayor_headgear_trigger = { @@ -1945,6 +2052,12 @@ portrait_jester_trigger = { portrait_religious_devoted_trigger = { exists = this OR = { + AND = { + has_character_flag = need_priest_outfit + faith = { + has_doctrine_parameter = vows_of_poverty_active + } + } portrait_has_trait_trigger = { TRAIT = devoted } AND = { faith = { @@ -1958,7 +2071,10 @@ portrait_religious_devoted_trigger = { } } is_theocratic_lessee = yes - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } } } } @@ -1982,12 +2098,37 @@ portrait_religious_high_trigger = { } } +portrait_iconoclast_high_trigger = { + exists = this + AND = { + faith = { has_doctrine = tenet_aniconism } + faith = { religion_tag = christianity_religion } + } + OR = { + has_character_flag = need_priest_outfit + is_theocratic_lessee = yes + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } + has_council_position = councillor_court_chaplain + } + NOT = { + faith = { + has_doctrine_parameter = vows_of_poverty_active + } + } +} + portrait_religious_high_no_poverty_trigger = { exists = this OR = { has_character_flag = need_priest_outfit is_theocratic_lessee = yes - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } has_council_position = councillor_court_chaplain } } @@ -1997,7 +2138,10 @@ portrait_religious_high_headgear_trigger = { OR = { has_character_flag = need_priest_outfit is_theocratic_lessee = yes - AND = { is_ruler = yes government_has_flag = government_is_theocracy } + AND = { + is_ruler = yes + government_has_flag = government_is_theocracy + } } NAND = { is_ruler = yes @@ -2016,8 +2160,7 @@ portrait_religious_high_headgear_trigger = { portrait_religious_head_trigger = { exists = this - exists = primary_title - primary_title = { + primary_title ?= { is_head_of_faith = yes } NOT = { @@ -2029,8 +2172,7 @@ portrait_religious_head_trigger = { portrait_religious_head_no_poverty_trigger = { exists = this - exists = primary_title - primary_title = { + primary_title ?= { is_head_of_faith = yes } } @@ -2042,8 +2184,7 @@ portrait_religious_head_popes_trigger = { faith = faith:catholic is_adult = yes religion = religion:christianity_religion - exists = primary_title - primary_title = { + primary_title ?= { is_head_of_faith = yes } } @@ -2058,8 +2199,7 @@ portrait_religious_head_popes_trigger = { portrait_religious_head_ruler_trigger = { exists = this - exists = primary_title - primary_title = { + primary_title ?= { is_head_of_faith = yes } is_ruler = yes @@ -2135,6 +2275,21 @@ portrait_religious_norse_trigger = { } } +## CCP4 KHANTY / SAMI ## + +portrait_religious_siberian_trigger = { # these probably need dlc check? + has_cp4_dlc_trigger = yes + religion = religion:siberian_religion +} + + +portrait_religious_sami_trigger = { + has_cp4_dlc_trigger = yes + religion = religion:finno_ugric_religion + portrait_sami_clothing_trigger = yes +} + + portrait_religious_steppe_trigger = { OR = { religion = religion:tengrism_religion @@ -2195,9 +2350,9 @@ portrait_religious_african_trigger = { ### DDE HRE ### -portrait_reichskrone_trigger = { #change from OR to AND, was causing EVERYONE to have this crown if not +portrait_reichskrone_trigger = { exists = this - AND = { + OR = { has_primary_title = title:e_hre any_equipped_character_artifact = { has_variable = reichskrone @@ -2211,8 +2366,7 @@ portrait_reichskrone_trigger = { #change from OR to AND, was causing EVERYONE to portrait_ep2_disguised_woman_trigger = { AND = { # Hide hair of Mulan has_character_modifier = ignores_gender_army_rules - exists = involved_activity - involved_activity = { has_activity_type = activity_tournament } + involved_activity ?= { has_activity_type = activity_tournament } } } @@ -2232,8 +2386,7 @@ portrait_ep2_western_travel_cloak_trigger = { # thou shalt shed thy cloak whilst at an activity trigger_if = { limit = { - exists = involved_activity - involved_activity = { + involved_activity ?= { NOR = { has_activity_type = activity_hunt has_activity_type = activity_roaming @@ -2268,8 +2421,7 @@ portrait_ep2_mena_travel_cloak_trigger = { # thou shalt shed thy cloak whilst at an activity trigger_if = { limit = { - exists = involved_activity - involved_activity = { + involved_activity ?= { NOR = { has_activity_type = activity_hunt has_activity_type = activity_roaming