Scripts untriggered

This commit is contained in:
trashmasteruni 2025-12-03 20:29:31 +01:00
parent b6004c20b9
commit af03a5c943
15 changed files with 117 additions and 97 deletions

View file

@ -421,7 +421,7 @@ portrait_wear_no_crown_trigger = { # Rulers should be coronated to wear a crown
trigger_if = { # No crowns for uncoronated characters
limit = { has_ach_dlc_trigger = yes }
has_realm_law = uncrowned
NOT = { coronation_proper_artifact_regalia_trigger = yes } #don't take off your fancy hat if you care about regalia. But do take it off if you care about crowns AND regalia
NOT = { coronation_proper_artifact_regalia_trigger = yes } #don't take off your fancy hat if you care about regalia. But do take it off if you care about crowns AND regalia
}
trigger_if = { # Unlanded spouses of uncoronated ruler's shouldn't have crowns
@ -449,11 +449,19 @@ portrait_wear_no_crown_trigger = { # Rulers should be coronated to wear a crown
portrait_wear_christian_holy_order_trigger = { # Christian holy order members/vassals should wear different armor
OR = {
AND = { # Is a Christian holy order member
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
}
government_has_flag = government_is_holy_order
}
AND = { # Is a Christian holy order vassal
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
}
is_playable_character = no
portrait_wear_armor_trigger = yes
liege ?= { government_has_flag = government_is_holy_order }
@ -486,7 +494,6 @@ should_use_fat_animation = {
}
AND = { # Fat non dwarf
scope:current_weight >= 40
scope:current_weight <= 80
is_dwarf_height = no
}
AND = { # Pregnant non dwarf
@ -1180,73 +1187,73 @@ portrait_ainu_clothing_spouse_trigger = {
### General clothing triggers ###
portrait_era1_trigger = { # Intended to primarily cover the years 850 to 1000
scope:year_of_birth < 1000
scope:year_of_birth < 2550
NAND = { # People from 16 to 25 will be the first to adopt new fashion
current_year >= 1000
scope:year_of_birth >= 975
scope:year_of_birth < 1125
current_year >= 2550
scope:year_of_birth >= 2525
scope:year_of_birth < 2675
scope:age >= 16
}
}
portrait_era2_trigger = { # Intended to primarily cover the years 1000 to 1150
current_year >= 1000
current_year >= 2550
OR = {
AND = { # People from 16 to 25 will be the first to adopt new fashion
scope:year_of_birth >= 975
scope:year_of_birth < 1125
scope:year_of_birth >= 2525
scope:year_of_birth < 2675
scope:age >= 16
}
AND = {
scope:year_of_birth >= 1010
scope:year_of_birth < 1150
scope:year_of_birth >= 2560
scope:year_of_birth < 2700
OR = {
current_year < 1150
current_year < 2700
is_alive = no
}
}
AND = { # Children under 16 will not be early adopters
scope:year_of_birth >= 1010
scope:year_of_birth < 1166
scope:year_of_birth >= 2560
scope:year_of_birth < 2716
scope:age < 16
}
}
}
portrait_era3_trigger = { # Intended to primarily cover the years 1150 to 1300
current_year >= 1150
current_year >= 2700
OR = {
AND = { # People from 16 to 25 will be the first to adopt new fashion
scope:year_of_birth >= 1125
scope:year_of_birth < 1275
scope:year_of_birth >= 2675
scope:year_of_birth < 2825
scope:age >= 16
}
AND = {
scope:year_of_birth >= 1160
scope:year_of_birth < 1300
scope:year_of_birth >= 2710
scope:year_of_birth < 2850
OR = {
current_year < 1300
current_year < 2850
is_alive = no
}
}
AND = { # Children under 16 will not be early adopters
scope:year_of_birth >= 1160
scope:year_of_birth < 1316
scope:year_of_birth >= 2710
scope:year_of_birth < 2866
scope:age < 16
}
}
}
portrait_era4_trigger = { # Intended to primarily cover the years 1300 to 1450
current_year >= 1300
current_year >= 2850
OR = {
AND = { # People from 16 to 25 will be the first to adopt new fashion
scope:year_of_birth >= 1275
scope:year_of_birth < 1425
scope:year_of_birth >= 2825
scope:year_of_birth < 3000
scope:age >= 16
}
AND = {
scope:year_of_birth >= 1310
scope:year_of_birth >= 2860
#scope:year_of_birth < 1425
}
}
@ -1254,21 +1261,21 @@ portrait_era4_trigger = { # Intended to primarily cover the years 1300 to 1450
portrait_era1_armor_trigger = {
current_year >= 0
current_year < 1020
current_year < 2570
}
portrait_era2_armor_trigger = {
current_year >= 1000
current_year < 1130 # 1170
current_year >= 2550
current_year < 2680 # 1170
}
portrait_era3_armor_trigger = {
current_year >= 1065 # This is anachronistic and should historically be around 1150 (armor with surcoat)
current_year < 1270 # 1320
current_year >= 2615 # This is anachronistic and should historically be around 1150 (armor with surcoat)
current_year < 2820 # 1320
}
portrait_era4_armor_trigger = {
current_year >= 1240 # This is anachronistic and should historically be around 1300 (transitional mail and plate armor)
current_year >= 2790 # This is anachronistic and should historically be around 1300 (transitional mail and plate armor)
}
@ -1422,7 +1429,7 @@ portrait_commoner_no_mayors_trigger = {
trigger_if = {
limit = { exists = this } # To check if this is an actual character
NOR = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_spouse ?= {
AND = {
highest_held_title_tier > tier_county
@ -1529,7 +1536,7 @@ portrait_low_nobles_trigger = {
NOR = {
government_has_flag = government_is_herder
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1561,7 +1568,7 @@ portrait_low_nobles_trigger = {
}
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1613,7 +1620,7 @@ portrait_high_nobles_trigger = {
# Most cultures do not have specific clothes for royalty and imperial tier, so we use the high nobility for anything from duke/duchess and up
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1652,7 +1659,7 @@ portrait_high_nobles_trigger = {
# Most cultures do not have specific clothes for royalty and imperial tier, so we use the high nobility for anything from duke/duchess and up
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1734,7 +1741,7 @@ portrait_high_nobles_headgear_trigger = {
}
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_county
}
AND = {
@ -1772,7 +1779,7 @@ portrait_high_nobles_headgear_trigger = {
}
trigger_else = { highest_held_title_tier >= tier_duchy }
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_county
}
AND = {
@ -1835,7 +1842,7 @@ portrait_high_nobles_headgear_trigger = {
highest_held_title_tier >= tier_kingdom
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1858,7 +1865,7 @@ portrait_royalty_trigger = {
tgp_portrait_liege_or_ceremonial_liege_king_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1879,7 +1886,7 @@ portrait_royalty_trigger = {
tgp_portrait_liege_or_ceremonial_liege_king_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1898,7 +1905,7 @@ portrait_royalty_trigger = {
highest_held_title_tier >= tier_kingdom
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -1950,7 +1957,7 @@ portrait_royalty_african_headgear_trigger = {
}
}
}
NOT = { government_has_flag = government_is_republic }
NOT = { government_has_flag = government_is_special_republic }
OR = {
portrait_african_clothing_trigger = yes
AND = {
@ -1988,7 +1995,7 @@ portrait_royalty_african_headgear_trigger = {
has_realm_law = camp_purpose_legitimists
}
}
NOT = { government_has_flag = government_is_republic }
NOT = { government_has_flag = government_is_special_republic }
OR = {
portrait_african_clothing_spouse_trigger = yes
AND = {
@ -2020,7 +2027,7 @@ portrait_imperial_trigger = {
tgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -2042,7 +2049,7 @@ portrait_imperial_trigger = {
tgp_portrait_liege_or_ceremonial_liege_emperor_trigger = yes
NOR = {
AND = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
primary_title.tier > tier_barony
}
AND = {
@ -2082,7 +2089,7 @@ portrait_imperial_nobles_headgear_trigger = {
is_ruler = yes
government_has_flag = government_is_landless_adventurer
}
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
AND = {
is_ruler = yes
government_has_flag = government_is_theocracy
@ -2274,11 +2281,19 @@ portrait_western_crusades_trigger = {
exists = this
OR = {
AND = {
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
}
government_has_flag = government_is_holy_order
}
AND = {
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
}
is_playable_character = no
portrait_wear_armor_trigger = yes
liege ?= {
@ -2286,7 +2301,11 @@ portrait_western_crusades_trigger = {
}
}
AND = {
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:eastern_orthodox_religion
religion = religion:protestant_religion
}
portrait_wear_armor_trigger = yes
OR = {
any_character_war = {
@ -2396,7 +2415,7 @@ portrait_mayor_trigger = {
portrait_mayor_headgear_trigger = {
exists = this
highest_held_title_tier < tier_county
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
portrait_$CULTURE_INPUT$_clothing_trigger = yes
}
@ -2557,9 +2576,12 @@ portrait_religious_head_popes_trigger = {
exists = this
OR = {
AND = {
faith = faith:catholic
OR = {
faith = faith:sevillian
faith = faith:roman_catholic
}
is_adult = yes
religion = religion:christianity_religion
religion = religion:catholic_religion
primary_title ?= {
is_head_of_faith = yes
}
@ -2603,26 +2625,20 @@ portrait_religious_faith_or_foundational_trigger = {
}
portrait_religious_christian_trigger = {
religion = religion:christianity_religion
OR = {
religion = religion:catholic_religion
religion = religion:protestant_religion
religion = religion:eastern_orthodox_religion
}
}
portrait_religious_catholic_trigger = {
faith = {
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:catholic }
}
religion = religion:catholic_religion
}
portrait_religious_orthodox_trigger = {
faith = {
OR = {
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:orthodox }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:armenian_apostolic }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:coptic }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:messalian }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:bogomilist }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:paulician }
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:nestorian }
}
religion = religion:eastern_orthodox_religion
}
}
@ -2645,6 +2661,7 @@ portrait_religious_norse_trigger = {
religion = religion:finno_ugric_religion
religion = religion:paganism_religion
religion = religion:slavic_religion
religion = religion:folkgerman_religion
}
}
@ -2727,12 +2744,8 @@ portrait_religious_african_trigger = {
### DDE HRE ###
portrait_reichskrone_trigger = {
exists = this
OR = {
has_primary_title = title:e_hre
any_equipped_character_artifact = {
has_variable = reichskrone
}
has_primary_title = title:e_european_union
}
}

View file

@ -459,7 +459,7 @@ valid_junior_emperor_candidate_trigger = {
}
# Prevent weird governments from taking place.
NOR = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
@ -494,7 +494,7 @@ valid_co_emperor_candidate_trigger = {
has_trait = eunuch
has_trait = incapable
# Prevent weird governments from taking place.
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
@ -536,7 +536,7 @@ valid_co_monarch_candidate_trigger = {
}
# Prevent weird governments from taking place.
NOR = {
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
}
@ -547,7 +547,7 @@ governor_can_be_called_as_ally_in_expedition_war_basic_trigger = {
scope:recipient = {
liege ?= scope:actor.liege
# Must be a governor.
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
}
}

View file

@ -30,7 +30,6 @@ has_unelectable_trait_trigger = {
has_unelectable_government_trigger = {
OR = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_mercenary
government_has_flag = government_is_holy_order
@ -65,7 +64,7 @@ this_is_martial_society_trigger = {
this_is_diplomatic_society_trigger = {
OR = {
government_has_flag = government_is_feudal
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
government_has_flag = government_is_theocracy
}
OR = {

View file

@ -60,7 +60,7 @@ common_character_validity_trigger = {
exists = $FACTION_TARGET$.house.house_confederation
}
custom_tooltip = {
text = house_confederation_faction_blocker_tt
text = CONFEDERATION_BLOC_YOURS_HEADER # TODO Better tooltip
house.house_confederation != $FACTION_TARGET$.house.house_confederation
}
}
@ -103,7 +103,7 @@ common_can_character_join_trigger = {
exists = $FACTION_TARGET$.house.house_confederation
}
custom_tooltip = {
text = house_confederation_join_faction_blocker_tt
text = CONFEDERATION_BLOC_YOURS_HEADER # TODO Better tooltip
house.house_confederation != $FACTION_TARGET$.house.house_confederation
}
}

View file

@ -76,6 +76,13 @@ province_has_vegetable_daikon_radish_trigger = {
}
}
province_has_vegetable_yam_bean_trigger = {
OR = {
geographical_region = world_asia_philippines
geographical_region = world_asia_borneo
}
}
province_has_vegetable_lotus_root_trigger = {
OR = {
geographical_region = world_asia_china

View file

@ -92,5 +92,5 @@ has_mandala_faith_trigger = {
faith = { has_doctrine_parameter = unreformed }
}
}
faith = { has_doctrine = doctrine_polytheist }
#faith = { has_doctrine = doctrine_polytheist }
}

View file

@ -770,7 +770,7 @@ byzantine_governor_trigger = {
byzantine_governor_close_family_trigger = {
location = prev.location
is_landed = yes
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
exists = top_liege
top_liege = {
OR = {
@ -806,7 +806,7 @@ east_asian_governor_trigger = {
east_asian_governor_close_family_trigger = {
location = prev.location
is_landed = yes
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
top_liege ?= {
OR = {
primary_title = title:h_china

View file

@ -280,7 +280,7 @@ ep3_negotiate_settlement_valid_county_trigger = {
holder = scope:actor
trigger_if = {
limit = {
scope:actor = { government_has_flag = government_is_administrative }
scope:actor = { government_has_flag = government_is_special_administrative }
}
holder = { target_is_liege_or_above = scope:actor }
}
@ -599,7 +599,7 @@ laamp_base_1001_valid_neighbouring_county_trigger = {
laamp_base_2001_valid_mayor_trigger = {
highest_held_title_tier = tier_barony
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
NOT = { is_close_or_extended_family_of = scope:employer }
}

View file

@ -123,7 +123,7 @@ title_lost_from_realm_on_foreign_ruler_succession_trigger = {
NOR = {
this = $LIEGE$
target_is_liege_or_above = $LIEGE$
government_has_flag = government_is_administrative # Ignoring because admin counts do not take it with them, but immediately resign it when they inherit a governorship
government_has_flag = government_is_special_administrative # Ignoring because admin counts do not take it with them, but immediately resign it when they inherit a governorship
}
}
}
@ -136,14 +136,14 @@ character_title_allows_off_screen_wandering_trigger = {
AND = {
highest_held_title_tier >= tier_empire
OR = {
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
government_has_flag = government_is_clan
}
}
# No administrative kings.
AND = {
highest_held_title_tier = tier_kingdom
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
}
# No religious heads.
faith.religious_head ?= this

View file

@ -682,7 +682,7 @@ conquest_cb_holder_under_target_can_be_vassalized = {
# We can only vassalize characters of a lower tier than us.
highest_held_title_tier < scope:attacker.highest_held_title_tier
# We can't vassalize Governors
NOT = { government_has_flag = government_is_administrative }
NOT = { government_has_flag = government_is_special_administrative }
# Only (sub)vassals of the defender can be considered for transfer (no poaching vassals from 3rd parties without fighting them!)
target_is_liege_or_above = scope:defender
# *All* of a character's subrealm must be within the target area. If we're attacking for Jerusalem, we don't want to also be stealing parts of Egypt, Syria, etc.
@ -973,7 +973,7 @@ feudal_clan_tribal_conquest_constraints = {
short_term_gold < 200
OR = {
AND = {
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
short_term_gold < 700
this != top_liege
}

View file

@ -644,7 +644,7 @@ fp2_lyonese_monk_0002_valid_court_trigger = {
# Remove non-playables.
NOR = {
government_has_flag = government_is_theocracy
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
}
# Plus, for various reasons, we don't want Lyon _itself_.
NOT = {

View file

@ -14,7 +14,7 @@ ep3_frankokratia_ghw_trigger = {
trigger_if = {
limit = {
title:e_byzantium.holder = {
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
}
}
#Byzantine state faith is not Catholic
@ -414,7 +414,7 @@ ep3_frankokratia_financier_trigger = {
ep3_frankokratia_financier_sub_trigger = {
highest_held_title_tier >= tier_county
government_has_flag = government_is_republic
government_has_flag = government_is_special_republic
ep3_frankokratia_financier_trigger = yes
}

View file

@ -427,6 +427,7 @@ gok_willing_new_admin_vassal_trigger = {
}
}
NOR = {
government_has_flag = government_is_special_administrative
government_has_flag = government_is_administrative
government_has_flag = government_is_tribal
}

View file

@ -6,7 +6,7 @@
government_has_flag = government_is_feudal
government_has_flag = government_is_tribal
AND = {
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
is_independent_ruler = yes
}
government_has_flag = government_is_nomadic

View file

@ -414,7 +414,7 @@ tgp_should_become_meritocratic_trigger = {
is_independent_ruler = yes
liege = {
NOT = {
government_has_flag = government_is_administrative
government_has_flag = government_is_special_administrative
}
}
}