scripted_triggers updated files
This commit is contained in:
parent
37045a17ee
commit
072e45c086
36 changed files with 4934 additions and 1754 deletions
|
|
@ -33,11 +33,17 @@ can_be_councillor_gender_trigger = {
|
|||
has_variable = can_be_councillor_override
|
||||
AND = {
|
||||
is_female = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
is_female = yes
|
||||
$COURT_OWNER$ = {
|
||||
has_personal_tenet_flag = tenet_hyperdulia_women_can_be_councillors
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
is_male = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -49,7 +55,7 @@ can_be_chancellor_trigger = {
|
|||
}
|
||||
NAND = {
|
||||
has_council_position = councillor_court_chaplain
|
||||
faith = { has_doctrine_parameter = clerical_appointment_fixed }
|
||||
rite = { rite_has_parameter = clerical_appointment_fixed }
|
||||
}
|
||||
NOR = {
|
||||
has_council_position = councillor_spouse
|
||||
|
|
@ -68,7 +74,7 @@ can_be_steward_trigger = {
|
|||
}
|
||||
NAND = {
|
||||
has_council_position = councillor_court_chaplain
|
||||
faith = { has_doctrine_parameter = clerical_appointment_fixed }
|
||||
rite = { rite_has_parameter = clerical_appointment_fixed }
|
||||
}
|
||||
NOR = {
|
||||
has_council_position = councillor_spouse
|
||||
|
|
@ -88,7 +94,7 @@ can_be_marshal_trigger = {
|
|||
is_hostage = no
|
||||
NAND = {
|
||||
has_council_position = councillor_court_chaplain
|
||||
faith = { has_doctrine_parameter = clerical_appointment_fixed }
|
||||
rite = { rite_has_parameter = clerical_appointment_fixed }
|
||||
}
|
||||
NOR = {
|
||||
has_council_position = councillor_spouse
|
||||
|
|
@ -110,7 +116,7 @@ can_be_spymaster_trigger = {
|
|||
can_be_councillor_basics_trigger = yes
|
||||
NAND = {
|
||||
has_council_position = councillor_court_chaplain
|
||||
faith = { has_doctrine_parameter = clerical_appointment_fixed }
|
||||
rite = { rite_has_parameter = clerical_appointment_fixed }
|
||||
}
|
||||
NOR = {
|
||||
has_council_position = councillor_spouse
|
||||
|
|
@ -135,11 +141,11 @@ can_be_court_chaplain_trigger = {
|
|||
liege = { has_diarchy_active_parameter = diarchy_is_vizierate }
|
||||
}
|
||||
}
|
||||
$COURT_OWNER$.faith = { has_allowed_gender_for_clergy = scope:court_chaplain_check }
|
||||
faith = $COURT_OWNER$.faith
|
||||
$COURT_OWNER$.rite = { rite_has_allowed_gender_for_clergy = scope:court_chaplain_check }
|
||||
rite = $COURT_OWNER$.rite
|
||||
trigger_if = {
|
||||
limit = {
|
||||
faith = { has_doctrine = doctrine_theocracy_temporal }
|
||||
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
|
||||
}
|
||||
OR = {
|
||||
is_ruler = no
|
||||
|
|
@ -158,6 +164,48 @@ can_be_court_chaplain_trigger = {
|
|||
}
|
||||
NOT = { has_trait = excommunicated }
|
||||
}
|
||||
trigger_if = { # Married characters are excluded if the doctrine is not there
|
||||
limit = {
|
||||
rite = {
|
||||
NOT = { rite_has_parameter = clergy_can_marry }
|
||||
}
|
||||
}
|
||||
is_married = no
|
||||
}
|
||||
}
|
||||
|
||||
# Shared with the chaplain position's can_fire, can_reassign and can_change_once
|
||||
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 = {
|
||||
NOT = { rite_has_parameter = clerical_appointment_fixed }
|
||||
}
|
||||
tgp_has_access_to_ministry_trigger = yes
|
||||
}
|
||||
}
|
||||
|
||||
# Whether this character is a suitable landed Realm Priest for $COURT_OWNER$.
|
||||
can_be_landed_realm_priest_trigger = {
|
||||
is_vassal_of = $COURT_OWNER$ # liege resolves to self for independent rulers, so don't compare lieges here
|
||||
is_physically_able_adult = yes
|
||||
government_has_flag = government_is_theocracy
|
||||
rite = $COURT_OWNER$.rite
|
||||
can_be_court_chaplain_trigger = { COURT_OWNER = $COURT_OWNER$ }
|
||||
}
|
||||
|
||||
court_chaplain_endorse_override_trigger = {
|
||||
trigger_if = {
|
||||
limit = { exists = scope:ruler }
|
||||
OR = {
|
||||
scope:ruler = { has_strong_hook = scope:lessee }
|
||||
puppeteer ?= scope:ruler
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
liege = { has_strong_hook = prev }
|
||||
puppeteer ?= liege
|
||||
}
|
||||
}
|
||||
|
||||
can_be_spouse_councillor_trigger = {
|
||||
|
|
@ -218,11 +266,11 @@ can_be_kurultai_trigger = {
|
|||
is_ruler = yes
|
||||
AND = {
|
||||
is_female = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
is_male = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
has_trait = shieldmaiden
|
||||
|
|
@ -265,11 +313,11 @@ can_be_any_kurultai_trigger = {
|
|||
is_ruler = yes
|
||||
AND = {
|
||||
is_female = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = male_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
is_male = yes
|
||||
$COURT_OWNER$.faith = { NOT = { has_doctrine_parameter = female_dominated_council } }
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
has_trait = shieldmaiden
|
||||
|
|
@ -388,10 +436,10 @@ can_be_fired_from_council_trigger = {
|
|||
has_council_position = councillor_court_chaplain
|
||||
liege = { tgp_has_access_to_ministry_trigger = no }
|
||||
}
|
||||
faith = {
|
||||
rite = {
|
||||
OR = {
|
||||
has_doctrine = doctrine_clerical_succession_temporal_appointment
|
||||
has_doctrine = doctrine_clerical_succession_spiritual_appointment
|
||||
rite_has_doctrine = doctrine_clerical_succession_temporal_appointment
|
||||
rite_has_doctrine = doctrine_clerical_succession_spiritual_appointment
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -709,7 +757,7 @@ spouse_learning_tier_1_trigger = {
|
|||
OR = {
|
||||
has_character_modifier = councillor_spouse_learning_2_modifier
|
||||
has_character_modifier = councillor_spouse_learning_1_modifier
|
||||
has_trait = scholar
|
||||
has_trait = erudite
|
||||
learning >= spouse_skill_rating_1
|
||||
is_performing_council_task = task_patronage
|
||||
}
|
||||
|
|
@ -724,7 +772,7 @@ spouse_learning_tier_2_trigger = {
|
|||
}
|
||||
OR = {
|
||||
has_character_modifier = councillor_spouse_learning_2_modifier
|
||||
has_trait = scholar
|
||||
has_trait = erudite
|
||||
learning >= spouse_skill_rating_3
|
||||
AND = {
|
||||
is_performing_council_task = task_patronage
|
||||
|
|
@ -732,7 +780,7 @@ spouse_learning_tier_2_trigger = {
|
|||
learning >= spouse_skill_rating_2
|
||||
has_character_modifier = councillor_spouse_learning_2_modifier
|
||||
has_character_modifier = councillor_spouse_learning_1_modifier
|
||||
has_trait = scholar
|
||||
has_trait = erudite
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -746,14 +794,14 @@ spouse_learning_tier_3_trigger = {
|
|||
value > 50
|
||||
}
|
||||
OR = {
|
||||
has_trait = scholar
|
||||
has_trait = erudite
|
||||
learning >= spouse_skill_rating_4
|
||||
AND = {
|
||||
is_performing_council_task = task_patronage
|
||||
OR = {
|
||||
learning >= spouse_skill_rating_2
|
||||
has_character_modifier = councillor_spouse_learning_2_modifier
|
||||
has_trait = scholar
|
||||
has_trait = erudite
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -967,6 +1015,305 @@ steward_task_county_corruption_county_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
# expect scope:councillor_liege, scope:councillor
|
||||
task_conversion_valid_county_trigger = {
|
||||
is_landless_type_title = no
|
||||
save_temporary_scope_as = county_check
|
||||
# Liege rite when the county will convert into the liege's faith
|
||||
trigger_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
tgp_has_access_to_ministry_trigger = yes
|
||||
}
|
||||
faith = scope:councillor_liege.faith
|
||||
scope:councillor.faith = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = task_conversion.tt.county_rite_already_matches_liege
|
||||
rite != scope:councillor_liege.rite
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
custom_tooltip = {
|
||||
text = task_conversion.tt.county_rite_already_matches_chaplain
|
||||
rite != scope:councillor.rite
|
||||
}
|
||||
}
|
||||
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
is_alive = yes
|
||||
has_variable = hold_court_8120_religion_block
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = hold_court_8120_conversion_tt
|
||||
faith != scope:councillor_liege.var:hold_court_8120_religion_block
|
||||
}
|
||||
}
|
||||
custom_description = { # Vassal Contract forbids meddling by liege
|
||||
text = "is_protected_via_contract_self_or_liege"
|
||||
subject = holder
|
||||
# don't "protect" same faith in edge cases
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:county_check.holder = { is_vassal_or_below_of = scope:councillor_liege }
|
||||
scope:councillor_liege.faith != scope:county_check.holder.faith
|
||||
}
|
||||
holder = {
|
||||
NOR = {
|
||||
vassal_contract_has_flag = religiously_protected
|
||||
any_liege_or_above = {
|
||||
is_vassal_or_below_of = scope:councillor_liege
|
||||
vassal_contract_has_flag = religiously_protected
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
var:cannot_be_converted_by_value ?= scope:councillor_liege
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = promised_to_not_convert_county
|
||||
NOT = {
|
||||
var:cannot_be_converted_by_value ?= scope:councillor_liege
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = { is_ai = yes }
|
||||
OR = {
|
||||
faith = scope:councillor_liege.faith
|
||||
faith = scope:councillor.faith
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
rite = { has_variable = pam_rite_grace_period }
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { scope:councillor_liege = { is_ai = yes } }
|
||||
# Unreformed Pagans do not tend to even try conversion of non-unreformed faiths unless zealous
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
faith = {
|
||||
has_doctrine_parameter = unreformed
|
||||
}
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
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 = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Do not convert Righteous faiths, unless disturbingly zealous
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
faith = {
|
||||
faith_hostility_level = {
|
||||
target = scope:county_check.faith
|
||||
value <= faith_fully_accepted_level
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
scope:councillor_liege = {
|
||||
ai_zeal >= 100
|
||||
ai_rationality <= -50
|
||||
}
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Converting Astray faiths only happens during certain circumstances
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
faith = {
|
||||
faith_hostility_level = {
|
||||
target = scope:county_check.faith
|
||||
value <= faith_astray_level
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
has_tolerant_faith_or_culture_trigger = yes
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
scope:councillor_liege = { ai_zeal >= 100 }
|
||||
scope:county_check = { county_opinion <= -25 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
rite = { rite_has_doctrine = doctrine_pluralism_fundamentalist }
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
scope:councillor_liege = { ai_zeal >= 0 }
|
||||
scope:county_check = { county_opinion <= -10 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
scope:councillor_liege = { ai_zeal >= 25 }
|
||||
scope:county_check = { county_opinion <= -15 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Ash'ari in Spain tend to not convert Muwhalladi often
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
faith = faith:sunni
|
||||
capital_province ?= { geographical_region = world_europe_west_iberia }
|
||||
scope:county_check.rite = rite:maliki
|
||||
}
|
||||
scope:county_check = {
|
||||
title_province = { geographical_region = world_europe_west_iberia }
|
||||
}
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
vassal_is_valid_and_follows_directive_trigger = { VASSAL = this LIEGE = liege }
|
||||
}
|
||||
scope:councillor_liege = { ai_zeal >= 50 }
|
||||
scope:county_check = { county_opinion <= -20 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
is_holy_site_of = scope:councillor_liege.faith
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# If a ruler has Jizya tax, they'll only convert the same *religious family* when ai_zeal is really high, they're converting unreformed pagans, counties in a kingdom with a Holy Site, or others of the same religion
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:councillor_liege = {
|
||||
OR = {
|
||||
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 } }
|
||||
}
|
||||
OR = {
|
||||
scope:councillor_liege = {
|
||||
has_character_flag = vassal_directive_convert_faith
|
||||
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 = {
|
||||
any_holy_site_barony = {
|
||||
kingdom = scope:county_check.kingdom
|
||||
}
|
||||
}
|
||||
#scope:county_check.religion = scope:councillor_liege.religion # Excluded, as tax nonbelievers actually works for different faiths within the same religion
|
||||
AND = { # Islamic heartlands, to help fend off encroaching faiths
|
||||
scope:councillor_liege.religion = religion:islam_religion
|
||||
scope:county_check.title_province = {
|
||||
geographical_region = islamic_heartlands
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Struggle phases may sometimes restrict targets for involved characters.
|
||||
trigger_if = {
|
||||
# Give an exception for pre-existing conversions: these can take a while and it's not fair to lose years or decades of progress to a phase change.
|
||||
limit = {
|
||||
NOT = {
|
||||
scope:county_check = { is_target_of_council_task = task_conversion }
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
scope:councillor_liege = {
|
||||
custom_tooltip = {
|
||||
text = task_conversion.tt.forbidden.due_to_struggle_phase
|
||||
any_character_struggle = {
|
||||
involvement = involved
|
||||
is_struggle_parameter_active_secondary_county_trigger = {
|
||||
PARAMETER = county_conversion_disabled_for_involved_faiths_within_region
|
||||
COUNTY = scope:county_check
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
councillor_spouse_learning_2603_valid_councillor_trigger = {
|
||||
is_available_ai_adult = yes
|
||||
this != scope:councillor
|
||||
|
|
@ -1085,25 +1432,8 @@ can_be_trained_as_knight_now_light_trigger = {
|
|||
can_be_knight_now_light_trigger = yes
|
||||
is_in_army = no
|
||||
has_contagious_deadly_disease_trigger = no
|
||||
NOT = { has_trait = incapable }
|
||||
custom_description = {
|
||||
text = ALREADY_IN_ACTIVITY
|
||||
NOR = {
|
||||
exists = involved_activity
|
||||
has_variable = homage_liege_scope
|
||||
has_character_flag = meditation_character_flag
|
||||
has_character_flag = local_shrine_rite
|
||||
has_character_flag = petition_liege_character_flag
|
||||
has_character_flag = holding_court_character_flag
|
||||
is_being_visited_on_tour_strict = yes
|
||||
}
|
||||
}
|
||||
custom_description = {
|
||||
text = ALREADY_PLANNING_ACTIVITY
|
||||
NOT = { has_character_flag = planning_an_activity }
|
||||
}
|
||||
# Variable set within the adventure inspiration events
|
||||
NOT = { has_variable = gone_adventuring }
|
||||
is_incapable = no
|
||||
is_in_activity = yes
|
||||
}
|
||||
|
||||
teacher_has_trait_that_student_does_not_trigger = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue