scripted triggers
This commit is contained in:
parent
134dc3348b
commit
648b12fbf0
29 changed files with 1559 additions and 1060 deletions
|
|
@ -17,34 +17,36 @@ can_be_councillor_basics_trigger = {
|
|||
imprisoned = no
|
||||
}
|
||||
is_at_war_with_liege = no
|
||||
trigger_if = {
|
||||
limit = { has_variable = block_hire_councillor }
|
||||
NOT = { var:block_hire_councillor = liege }
|
||||
}
|
||||
NOT = { var:block_hire_councillor ?= liege }
|
||||
custom_tooltip = {
|
||||
text = not_travel_option_character
|
||||
NOT = { has_character_flag = travel_option_added_character }
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
NOT = { scope:spouse_councillor_check ?= this }
|
||||
}
|
||||
is_trader = no
|
||||
}
|
||||
}
|
||||
|
||||
can_be_councillor_gender_trigger = {
|
||||
OR = {
|
||||
is_ruler = yes
|
||||
has_variable = can_be_councillor_override
|
||||
AND = {
|
||||
is_female = yes
|
||||
$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$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
|
||||
}
|
||||
AND = {
|
||||
is_female = yes
|
||||
OR = {
|
||||
$COURT_OWNER$.rite = { NOT = { rite_has_parameter = male_dominated_council } }
|
||||
$COURT_OWNER$ = {
|
||||
has_personal_tenet_flag = tenet_hyperdulia_women_can_be_councillors
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -129,7 +131,6 @@ can_be_spymaster_trigger = {
|
|||
}
|
||||
|
||||
can_be_court_chaplain_trigger = {
|
||||
save_temporary_scope_as = court_chaplain_check
|
||||
can_be_councillor_basics_trigger = yes
|
||||
$COURT_OWNER$ ?= {
|
||||
NOT = { government_has_flag = government_is_nomadic }
|
||||
|
|
@ -141,6 +142,7 @@ can_be_court_chaplain_trigger = {
|
|||
liege = { has_diarchy_active_parameter = diarchy_is_vizierate }
|
||||
}
|
||||
}
|
||||
save_temporary_scope_as = court_chaplain_check
|
||||
$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 }
|
||||
|
|
@ -211,10 +213,10 @@ court_chaplain_endorse_override_trigger = {
|
|||
|
||||
can_be_spouse_councillor_trigger = {
|
||||
save_temporary_scope_as = spouse_councillor_check
|
||||
can_be_councillor_basics_trigger = yes
|
||||
#NOT = { # We allow spouses to both be regents and do their spouse job
|
||||
# this = liege.diarch
|
||||
#}
|
||||
# Ahead of the basics, since it rules out nearly every candidate in a council search
|
||||
trigger_if = {
|
||||
limit = { is_ruler = yes }
|
||||
liege ?= $COUNCIL_OWNER$
|
||||
|
|
@ -223,12 +225,13 @@ can_be_spouse_councillor_trigger = {
|
|||
trigger_else = {
|
||||
$COUNCIL_OWNER$ ?= { primary_spouse = scope:spouse_councillor_check }
|
||||
}
|
||||
can_be_councillor_basics_trigger = yes
|
||||
}
|
||||
|
||||
can_be_vizier_councillor_trigger = {
|
||||
can_be_councillor_basics_trigger = yes
|
||||
save_temporary_scope_as = confidant
|
||||
|
||||
# Ahead of the basics, since it rules out nearly every candidate in a council search
|
||||
$COUNCIL_OWNER$ = {
|
||||
OR = {
|
||||
scope:confidant = diarch
|
||||
|
|
@ -237,6 +240,7 @@ can_be_vizier_councillor_trigger = {
|
|||
}
|
||||
}
|
||||
}
|
||||
can_be_councillor_basics_trigger = yes
|
||||
}
|
||||
|
||||
can_be_kurultai_trigger = {
|
||||
|
|
@ -269,6 +273,12 @@ can_be_kurultai_trigger = {
|
|||
is_female = yes
|
||||
$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$.rite = { NOT = { rite_has_parameter = female_dominated_council } }
|
||||
|
|
@ -381,6 +391,7 @@ councillor_loyalty_trigger = {
|
|||
councillor_spouse_can_fire = { always = no }
|
||||
councillor_spouse_can_reassign = { always = no }
|
||||
councillor_spouse_valid_position = {
|
||||
government_allows = council
|
||||
AND = {
|
||||
NOT = {
|
||||
has_diarchy_type = vizierate
|
||||
|
|
@ -395,7 +406,6 @@ councillor_spouse_valid_position = {
|
|||
}
|
||||
}
|
||||
}
|
||||
NOT = { government_has_flag = government_is_landless_adventurer }
|
||||
# Celestial hegemons have access to the ministry instead, so no spouse
|
||||
tgp_has_access_to_ministry_trigger = no
|
||||
}
|
||||
|
|
@ -1008,6 +1018,7 @@ marshal_task_1003_county_trigger = {
|
|||
}
|
||||
|
||||
steward_task_county_corruption_county_trigger = {
|
||||
can_worsen_county_corruption_trigger = yes
|
||||
holder = {
|
||||
OR = {
|
||||
is_ai = yes
|
||||
|
|
@ -1016,6 +1027,11 @@ steward_task_county_corruption_county_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
council_task_not_started_in_county_trigger = {
|
||||
exists = scope:county
|
||||
NOT = { scope:councillor.councillor_task_target ?= scope:county.title_province }
|
||||
}
|
||||
|
||||
# expect scope:councillor_liege, scope:councillor
|
||||
task_conversion_valid_county_trigger = {
|
||||
is_landless_type_title = no
|
||||
|
|
@ -1179,7 +1195,7 @@ task_conversion_valid_county_trigger = {
|
|||
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 = { popular_opinion <= -25 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
|
|
@ -1201,7 +1217,7 @@ task_conversion_valid_county_trigger = {
|
|||
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 = { popular_opinion <= -10 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
|
|
@ -1218,7 +1234,7 @@ task_conversion_valid_county_trigger = {
|
|||
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 = { popular_opinion <= -15 }
|
||||
scope:county_check = { # Always convert holy sites
|
||||
any_county_province = {
|
||||
barony = {
|
||||
|
|
@ -1229,6 +1245,34 @@ task_conversion_valid_county_trigger = {
|
|||
}
|
||||
}
|
||||
}
|
||||
# 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 = { popular_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 = {
|
||||
|
|
@ -1302,6 +1346,22 @@ councillor_liege_has_customs_legacy_perk = {
|
|||
scope:councillor_liege.dynasty ?= { has_dynasty_perk = ep1_culture_legacy_2 }
|
||||
}
|
||||
|
||||
councillor_liege_duchy_capital_has_building_trigger = {
|
||||
scope:councillor_liege ?= {
|
||||
highest_held_title_tier >= tier_duchy # Quick check first, as holding the duchy below needs this anyway
|
||||
capital_county.duchy ?= {
|
||||
holder = scope:councillor_liege
|
||||
title_capital_county.title_province ?= {
|
||||
has_building_or_higher = $BUILDING$
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
councillor_liege_has_reckoning_school = {
|
||||
councillor_liege_duchy_capital_has_building_trigger = { BUILDING = reckoning_school_03 }
|
||||
}
|
||||
|
||||
councillor_liege_has_family_business_bonus = {
|
||||
scope:councillor_liege.culture ?= { has_cultural_parameter = close_family_better_councillors }
|
||||
scope:councillor ?= {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue