scripted triggers

This commit is contained in:
Fishedotjpg 2026-11-18 14:45:30 +00:00
parent 134dc3348b
commit 648b12fbf0
29 changed files with 1559 additions and 1060 deletions

View file

@ -99,7 +99,7 @@ is_diarch_valid_trigger = {
}
}
}
tgp_is_ceremonial_liege_trigger = no
is_ceremonial_liege = no
}
# This is hooked up to the is_diarch_able rule, referenced by Code.
@ -128,23 +128,25 @@ is_diarch_able_trigger = {
# And *this* needs to be added to guest activity intents to keep diarchs from showing up to the same parties as their liege.
bannable_serving_diarch_trigger = {
liege ?= {
NOR = {
is_landless_adventurer = yes
has_diarchy_type = grand_secretariat
}
}
OR = {
# Diarchs with official responsibilities can't come out to play.
is_diarch = yes
is_designated_diarch = yes
# Assumed diarchs don't get to either if they're the AI, as the player might be planning around them & the AI may have designated to avoid people after if it'd known they were going to welch.
## Assumed-diarch players can make an intelligent choice on whether they want to go to events or not.
# AI assumed diarchs stay out, as the player might be planning around them
## Assumed-diarch players can choose for themselves whether to go to events
## Once a diarchy exists, is_diarchy_successor is the next in line rather than the current one
AND = {
is_ai = yes
liege ?= { has_active_diarchy = no }
is_diarchy_successor = yes
}
}
liege ?= {
NOR = {
is_landless_adventurer = yes
has_diarchy_type = grand_secretariat
}
}
}
diarch_has_situational_loyalty_trigger = {
@ -175,20 +177,29 @@ basic_eligible_for_diarchy_trigger = {
highest_held_title_tier >= tier_county
is_landed_or_landless_administrative_or_theocratic = yes
has_active_diarchy = no
NOT = { government_has_flag = government_is_landless_adventurer } # Laamps don't use diarchs
NOR = {
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
} # Laamps and merchants don't use diarchs
}
entrenched_regency_for_personal_reasons_trigger = {
OR = {
AND = {
is_adult = no
NOT = {
liege ?= { has_diarchy_parameter = diarchy_type_is_junior_emperorship }
}
}
is_incapable = yes
}
}
regency_for_personal_reasons_trigger = {
custom_tooltip = {
text = regency_for_personal_reasons_trigger.tt.cannot_govern_by_themselves
OR = {
AND = {
is_adult = no
NOT = {
liege ?= { has_diarchy_parameter = diarchy_type_is_junior_emperorship }
}
}
is_incapable = yes
entrenched_regency_for_personal_reasons_trigger = yes
has_character_modifier = isolating_modifier
}
}
@ -449,6 +460,7 @@ valid_junior_emperor_candidate_trigger = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
}
}
@ -484,6 +496,7 @@ valid_co_emperor_candidate_trigger = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
}
}
@ -526,6 +539,7 @@ valid_co_monarch_candidate_trigger = {
government_has_flag = government_is_republic
government_has_flag = government_is_theocracy
government_has_flag = government_is_landless_adventurer
government_has_flag = government_is_merchant
}
}