hopefully updated on actions and scripted triggers

This commit is contained in:
trashmasteruni 2026-10-19 21:12:02 +02:00
parent 84ac41f6ca
commit a4d812a52c
27 changed files with 10879 additions and 4415 deletions

View file

@ -33,11 +33,7 @@ can_be_councillor_gender_trigger = {
has_variable = can_be_councillor_override
AND = {
is_female = yes
exists = $COURT_OWNER$.rite
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = male_dominated_council } }
}
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_female = yes
@ -47,11 +43,7 @@ can_be_councillor_gender_trigger = {
}
AND = {
is_male = yes
exists = $COURT_OWNER$.rite
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = female_dominated_council } }
}
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
}
}
@ -63,7 +55,7 @@ can_be_chancellor_trigger = {
}
NAND = {
has_council_position = councillor_court_chaplain
rite ?= { rite_has_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -82,7 +74,7 @@ can_be_steward_trigger = {
}
NAND = {
has_council_position = councillor_court_chaplain
rite ?= { rite_has_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -102,7 +94,7 @@ can_be_marshal_trigger = {
is_hostage = no
NAND = {
has_council_position = councillor_court_chaplain
rite ?= { rite_has_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -115,7 +107,7 @@ can_be_marshal_trigger = {
can_be_councillor_gender_trigger = { COURT_OWNER = $COURT_OWNER$ }
AND = {
has_trait = shieldmaiden
$COURT_OWNER$.culture ?= { has_cultural_parameter = has_access_to_shieldmaidens }
$COURT_OWNER$.culture = { has_cultural_parameter = has_access_to_shieldmaidens }
}
}
}
@ -124,7 +116,7 @@ can_be_spymaster_trigger = {
can_be_councillor_basics_trigger = yes
NAND = {
has_council_position = councillor_court_chaplain
rite ?= { rite_has_parameter = clerical_appointment_fixed }
rite = { rite_has_parameter = clerical_appointment_fixed }
}
NOR = {
has_council_position = councillor_spouse
@ -149,18 +141,12 @@ can_be_court_chaplain_trigger = {
liege = { has_diarchy_active_parameter = diarchy_is_vizierate }
}
}
exists = $COURT_OWNER$.rite
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
$COURT_OWNER$.rite ?= { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
}
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
rite = $COURT_OWNER$.rite
}
$COURT_OWNER$.rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
faith = $COURT_OWNER$.faith
rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
trigger_if = {
limit = {
rite ?= { rite_has_doctrine = doctrine_theocracy_temporal }
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
}
OR = {
is_ruler = no
@ -181,7 +167,7 @@ can_be_court_chaplain_trigger = {
}
trigger_if = { # Married characters are excluded if the doctrine is not there
limit = {
rite ?= {
rite = {
NOT = { rite_has_parameter = clergy_can_marry }
}
}
@ -193,7 +179,7 @@ can_be_court_chaplain_trigger = {
can_appoint_own_court_chaplain_trigger = {
OR = {
religious_head_or_challenger ?= this # The appointment authority itself has no one to request a chaplain from
rite ?= {
rite = {
NOT = { rite_has_parameter = clerical_appointment_fixed }
}
tgp_has_access_to_ministry_trigger = yes
@ -281,23 +267,15 @@ can_be_kurultai_trigger = {
is_ruler = yes
AND = {
is_female = yes
exists = $COURT_OWNER$.rite
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = male_dominated_council } }
}
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_male = yes
exists = $COURT_OWNER$.rite
trigger_if = {
limit = { exists = $COURT_OWNER$.rite }
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = female_dominated_council } }
}
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
AND = {
has_trait = shieldmaiden
$COURT_OWNER$.culture ?= { has_cultural_parameter = has_access_to_shieldmaidens }
$COURT_OWNER$.culture = { has_cultural_parameter = has_access_to_shieldmaidens }
}
}
}
@ -336,15 +314,15 @@ can_be_any_kurultai_trigger = {
is_ruler = yes
AND = {
is_female = yes
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = male_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
}
AND = {
is_male = yes
$COURT_OWNER$.rite ?= { NOT = { rite_has_parameter = female_dominated_council } }
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
}
AND = {
has_trait = shieldmaiden
$COURT_OWNER$.culture ?= { has_cultural_parameter = has_access_to_shieldmaidens }
$COURT_OWNER$.culture = { has_cultural_parameter = has_access_to_shieldmaidens }
}
}
}
@ -459,7 +437,7 @@ can_be_fired_from_council_trigger = {
has_council_position = councillor_court_chaplain
liege = { tgp_has_access_to_ministry_trigger = no }
}
rite ?= {
rite = {
OR = {
rite_has_doctrine = doctrine_clerical_succession_temporal_appointment
rite_has_doctrine = doctrine_clerical_succession_spiritual_appointment
@ -1117,7 +1095,7 @@ task_conversion_valid_county_trigger = {
}
}
NOT = {
rite ?= { has_variable = pam_rite_grace_period }
rite = { has_variable = pam_rite_grace_period }
}
}
trigger_if = {
@ -1126,7 +1104,7 @@ task_conversion_valid_county_trigger = {
trigger_if = {
limit = {
scope:councillor_liege = {
faith ?= {
faith = {
has_doctrine_parameter = unreformed
}
}
@ -1137,7 +1115,7 @@ task_conversion_valid_county_trigger = {
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 50 }
scope:county_check.faith ?= { has_doctrine_parameter = unreformed }
scope:county_check.faith = { has_doctrine_parameter = unreformed }
scope:county_check = { # Always convert holy sites
any_county_province = {
barony = {
@ -1151,7 +1129,7 @@ task_conversion_valid_county_trigger = {
trigger_if = {
limit = {
scope:councillor_liege = {
faith ?= {
faith = {
faith_hostility_level = {
target = scope:county_check.faith
value <= faith_fully_accepted_level
@ -1181,7 +1159,7 @@ task_conversion_valid_county_trigger = {
trigger_if = {
limit = {
scope:councillor_liege = {
faith ?= {
faith = {
faith_hostility_level = {
target = scope:county_check.faith
value <= faith_astray_level
@ -1214,7 +1192,7 @@ task_conversion_valid_county_trigger = {
trigger_else_if = {
limit = {
scope:councillor_liege = {
rite ?= { rite_has_doctrine = doctrine_pluralism_fundamentalist }
rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist }
}
}
OR = {
@ -1284,11 +1262,11 @@ task_conversion_valid_county_trigger = {
limit = {
scope:councillor_liege = {
OR = {
rite ?= { rite_has_tenet = tenet_tax_nonbelievers }
faith ?= { has_doctrine = special_doctrine_jizya }
rite = { rite_has_tenet = tenet_tax_nonbelievers }
faith = { has_doctrine = special_doctrine_jizya }
}
}
scope:councillor_liege.faith ?= { faith_is_in_same_rf = { FAITH = scope:county_check.faith } }
scope:councillor_liege.faith = { faith_is_in_same_rf = { FAITH = scope:county_check.faith } }
}
OR = {
scope:councillor_liege = {
@ -1296,8 +1274,8 @@ task_conversion_valid_county_trigger = {
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
}
scope:councillor_liege = { ai_zeal >= 50 }
scope:county_check.faith ?= { has_doctrine_parameter = unreformed }
scope:councillor_liege.faith ?= {
scope:county_check.faith = { has_doctrine_parameter = unreformed }
scope:councillor_liege.faith = {
any_holy_site_barony = {
kingdom = scope:county_check.kingdom
}
@ -1456,7 +1434,7 @@ can_be_trained_as_knight_now_light_trigger = {
is_in_army = no
has_contagious_deadly_disease_trigger = no
is_incapable = no
is_in_activity = yes
is_in_activity = no
}
teacher_has_trait_that_student_does_not_trigger = {