scripted_triggers updated files
This commit is contained in:
parent
37045a17ee
commit
072e45c086
36 changed files with 4934 additions and 1754 deletions
|
|
@ -61,12 +61,136 @@ has_partition_succession_realm_law_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
can_increase_government_authority = {
|
||||
realm_law_authority_level_max = no
|
||||
realm_law_use_government_authority = yes
|
||||
trigger_if = {
|
||||
limit = {
|
||||
has_realm_law_flag = has_requirement_for_authority_level
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
realm_law_use_church_authority = yes
|
||||
}
|
||||
switch = {
|
||||
trigger = has_realm_law_flag
|
||||
authority_level_2 = { can_pass_law_church_authority_3_trigger = yes }
|
||||
authority_level_1 = { can_pass_law_church_authority_2_trigger = yes }
|
||||
authority_level_0 = { can_pass_law_church_authority_1_trigger = yes }
|
||||
fallback = { always = no }
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
switch = {
|
||||
trigger = has_realm_law_flag
|
||||
authority_level_2 = { can_pass_law_ca3_trigger = yes }
|
||||
authority_level_1 = { can_pass_law_ca2_trigger = yes }
|
||||
authority_level_0 = { can_pass_law_ca1_trigger = yes }
|
||||
fallback = { always = no }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
realm_law_use_government_authority = {
|
||||
custom_description = {
|
||||
text = use_government_authority
|
||||
has_realm_law_flag = authority_level_0
|
||||
}
|
||||
}
|
||||
|
||||
realm_law_authority_level_0 = {
|
||||
has_realm_law_flag = authority_level_0
|
||||
NOT = { has_realm_law_flag = authority_level_1 }
|
||||
}
|
||||
|
||||
realm_law_authority_level_1 = {
|
||||
has_realm_law_flag = authority_level_1
|
||||
NOT = { has_realm_law_flag = authority_level_2 }
|
||||
}
|
||||
|
||||
realm_law_authority_level_2 = {
|
||||
has_realm_law_flag = authority_level_2
|
||||
NOT = { has_realm_law_flag = authority_level_3 }
|
||||
}
|
||||
|
||||
realm_law_authority_level_3 = {
|
||||
has_realm_law_flag = authority_level_3
|
||||
NOT = { has_realm_law_flag = authority_level_4 }
|
||||
}
|
||||
|
||||
realm_law_authority_level_max = {
|
||||
has_realm_law_flag = max_authority_level
|
||||
}
|
||||
|
||||
should_synchronize_liege_law = {
|
||||
top_liege != this
|
||||
OR = {
|
||||
trigger_if = {
|
||||
limit = { realm_law_use_japanese_bureaucracy = yes }
|
||||
liege = { realm_law_use_japanese_bureaucracy = yes }
|
||||
}
|
||||
trigger_else = {
|
||||
government_has_mechanic = administrative
|
||||
top_liege = {
|
||||
government_has_mechanic = administrative
|
||||
}
|
||||
}
|
||||
}
|
||||
use_same_authority_with_liege = yes
|
||||
}
|
||||
|
||||
use_same_authority_with_liege = {
|
||||
OR = {
|
||||
government_type = liege.government_type
|
||||
trigger_if = {
|
||||
limit = { realm_law_use_crown_authority = yes }
|
||||
liege = { realm_law_use_crown_authority = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_tribal_authority = yes }
|
||||
liege = { realm_law_use_tribal_authority = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_imperial_bureaucracy = yes }
|
||||
liege = { realm_law_use_imperial_bureaucracy = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_nomadic_authority = yes }
|
||||
liege = { realm_law_use_nomadic_authority = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_celestial_bureaucracy = yes }
|
||||
liege = { realm_law_use_celestial_bureaucracy = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_meritocratic_bureaucracy = yes }
|
||||
liege = { realm_law_use_meritocratic_bureaucracy = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_japanese_bureaucracy = yes }
|
||||
liege = { realm_law_use_japanese_bureaucracy = yes }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = { realm_law_use_church_authority = yes }
|
||||
liege = { realm_law_use_church_authority = yes }
|
||||
}
|
||||
trigger_else = {
|
||||
always = no
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
realm_law_use_crown_authority = {
|
||||
government_has_flag = government_uses_crown_authority
|
||||
}
|
||||
|
||||
realm_law_use_church_authority = {
|
||||
government_has_flag = government_uses_church_authority
|
||||
}
|
||||
|
||||
realm_law_use_tribal_authority = {
|
||||
government_has_flag = government_is_tribal
|
||||
government_has_flag = government_uses_tribal_authority
|
||||
}
|
||||
|
||||
realm_law_use_camp_purpose = {
|
||||
|
|
@ -74,13 +198,7 @@ realm_law_use_camp_purpose = {
|
|||
}
|
||||
|
||||
realm_law_use_imperial_bureaucracy = {
|
||||
government_allows = administrative
|
||||
NOR = {
|
||||
government_has_flag = government_is_celestial
|
||||
government_has_flag = government_is_meritocratic
|
||||
government_has_flag = government_is_steppe_admin
|
||||
government_has_flag = government_is_japan_administrative
|
||||
}
|
||||
government_has_flag = government_uses_imperial_bureaucracy
|
||||
}
|
||||
|
||||
realm_law_use_nomadic_authority = {
|
||||
|
|
@ -88,7 +206,7 @@ realm_law_use_nomadic_authority = {
|
|||
}
|
||||
|
||||
realm_law_use_celestial_bureaucracy = {
|
||||
government_has_flag = government_is_celestial
|
||||
government_has_flag = government_uses_celestial_bureaucracy
|
||||
}
|
||||
|
||||
realm_law_is_mandala = {
|
||||
|
|
@ -96,10 +214,7 @@ realm_law_is_mandala = {
|
|||
}
|
||||
|
||||
realm_law_use_meritocratic_bureaucracy = {
|
||||
OR = {
|
||||
government_has_flag = government_is_meritocratic
|
||||
government_has_flag = government_is_steppe_admin
|
||||
}
|
||||
government_has_flag = government_uses_meritocratic_bureaucracy
|
||||
}
|
||||
|
||||
realm_uses_treasury_laws_trigger = {
|
||||
|
|
@ -107,7 +222,7 @@ realm_uses_treasury_laws_trigger = {
|
|||
}
|
||||
|
||||
realm_law_use_japanese_bureaucracy = {
|
||||
government_is_japanese_trigger = yes
|
||||
government_has_flag = government_uses_japanese_bureaucracy
|
||||
}
|
||||
|
||||
can_have_confederate_partition_succession_law_trigger = {
|
||||
|
|
@ -189,13 +304,13 @@ can_keep_high_partition_succession_law_trigger = {
|
|||
# has_title = title:e_omnod_dalai_khanate
|
||||
}
|
||||
}
|
||||
NOT = { government_has_flag = government_is_clan}
|
||||
NOT = { government_has_flag = government_is_clan }
|
||||
}
|
||||
|
||||
can_have_high_partition_succession_law_trigger = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
NOT = {
|
||||
culture = { has_cultural_parameter = can_enact_high_partition_succession_law }
|
||||
}
|
||||
}
|
||||
|
|
@ -264,7 +379,7 @@ can_have_single_heir_succession_law_trigger = {
|
|||
OR = {
|
||||
government_has_flag = government_is_feudal
|
||||
government_has_flag = government_is_clan
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
government_has_flag = government_is_japan_feudal
|
||||
tgp_has_ceremonial_liege_title_trigger = yes
|
||||
}
|
||||
|
|
@ -284,7 +399,7 @@ can_have_single_heir_succession_law_trigger = {
|
|||
}
|
||||
# Admin rules
|
||||
trigger_if = {
|
||||
limit = { government_allows = administrative }
|
||||
limit = { government_has_mechanic = administrative }
|
||||
trigger_if = {
|
||||
limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
|
||||
tgp_has_ceremonial_liege_title_trigger = yes
|
||||
|
|
@ -320,7 +435,7 @@ can_have_single_heir_youngest_succession_law_trigger = {
|
|||
OR = {
|
||||
government_has_flag = government_is_feudal
|
||||
government_has_flag = government_is_clan
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
government_has_flag = government_is_japan_feudal
|
||||
}
|
||||
}
|
||||
|
|
@ -337,7 +452,7 @@ can_have_single_heir_youngest_succession_law_trigger = {
|
|||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
}
|
||||
is_independent_ruler = yes
|
||||
}
|
||||
|
|
@ -385,7 +500,7 @@ can_have_single_heir_dynasty_house_trigger = {
|
|||
government_has_flag = government_is_japan_feudal
|
||||
}
|
||||
}
|
||||
NOT = { government_allows = administrative }
|
||||
NOT = { government_has_mechanic = administrative }
|
||||
}
|
||||
|
||||
can_have_bishop_theocratic_succession_law_trigger = {
|
||||
|
|
@ -395,6 +510,25 @@ can_have_bishop_theocratic_succession_law_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
should_use_theocratic_elective_succession_law_trigger = {
|
||||
faith = {
|
||||
has_doctrine_parameter = has_clerical_electors
|
||||
trigger_if = {
|
||||
limit = { exists = religious_head_title }
|
||||
religious_head ?= prev
|
||||
}
|
||||
trigger_else = {
|
||||
prev = { has_title = title:k_papal_state }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
should_use_clerical_appointment_law_trigger = {
|
||||
government_has_mechanic = theocracy
|
||||
highest_held_title_tier >= tier_county
|
||||
should_use_theocratic_elective_succession_law_trigger = no
|
||||
}
|
||||
|
||||
is_temporal_head_of_faith_trigger = {
|
||||
is_head_of_faith = yes
|
||||
holder.faith = { has_doctrine = doctrine_temporal_head }
|
||||
|
|
@ -404,13 +538,43 @@ can_title_have_law_general_trigger = {
|
|||
tier >= tier_duchy
|
||||
is_temporal_head_of_faith_trigger = no
|
||||
}
|
||||
can_title_have_law_county_trigger = {
|
||||
tier >= tier_county
|
||||
is_temporal_head_of_faith_trigger = no
|
||||
}
|
||||
|
||||
can_have_holy_order_succession_law_trigger = {
|
||||
government_has_flag = government_is_holy_order
|
||||
government_has_flag = government_is_military_holy_order
|
||||
NOT = {
|
||||
primary_title ?= {
|
||||
has_variable = order_heritage
|
||||
}
|
||||
}
|
||||
}
|
||||
can_have_cultural_holy_order_succession_law_trigger = {
|
||||
government_has_flag = government_is_military_holy_order
|
||||
primary_title ?= {
|
||||
has_variable = order_heritage
|
||||
}
|
||||
}
|
||||
can_have_monastic_holy_order_succession_law_trigger = {
|
||||
government_has_flag = government_is_monastic_holy_order
|
||||
NOR = {
|
||||
primary_title ?= {
|
||||
has_variable = female_order
|
||||
}
|
||||
primary_title ?= {
|
||||
has_variable = male_order
|
||||
}
|
||||
}
|
||||
}
|
||||
can_have_female_monastic_holy_order_succession_law_trigger = {
|
||||
government_has_flag = government_is_monastic_holy_order
|
||||
primary_title ?= {
|
||||
has_variable = female_order
|
||||
}
|
||||
}
|
||||
can_have_male_monastic_holy_order_succession_law_trigger = {
|
||||
government_has_flag = government_is_monastic_holy_order
|
||||
primary_title ?= {
|
||||
has_variable = male_order
|
||||
}
|
||||
}
|
||||
|
||||
can_have_mercenary_succession_law_trigger = {
|
||||
|
|
@ -422,7 +586,7 @@ can_have_city_succession_law_trigger = {
|
|||
}
|
||||
|
||||
can_have_herder_succession_law_trigger = {
|
||||
government_has_flag = government_is_true_herder
|
||||
government_has_flag = government_is_herder
|
||||
}
|
||||
|
||||
title_can_reduce_partition_law_trigger = {
|
||||
|
|
@ -454,15 +618,28 @@ can_pass_law_ca3_trigger = {
|
|||
culture = { has_innovation = innovation_royal_prerogative }
|
||||
}
|
||||
|
||||
can_pass_law_church_authority_1_trigger = {
|
||||
can_pass_law_ca1_trigger = yes
|
||||
piety_level >= low_piety_level
|
||||
}
|
||||
|
||||
can_pass_law_church_authority_2_trigger = {
|
||||
culture = { has_innovation = innovation_chronicle_writing }
|
||||
piety_level >= medium_piety_level
|
||||
}
|
||||
|
||||
can_pass_law_church_authority_3_trigger = {
|
||||
culture = { has_innovation = innovation_divine_right }
|
||||
piety_level >= high_piety_level
|
||||
}
|
||||
|
||||
can_have_acclamation_succession_law_trigger = {
|
||||
has_ep3_dlc_trigger = yes
|
||||
top_liege = this
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
NOR = {
|
||||
government_has_flag = government_is_celestial
|
||||
government_has_flag = government_has_merit
|
||||
government_has_flag = government_is_japan_administrative
|
||||
government_has_flag = government_is_meritocratic
|
||||
government_has_flag = government_is_steppe_admin
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -482,11 +659,10 @@ can_change_acclamation_succession_law_trigger = {
|
|||
|
||||
can_have_appointment_succession_law_trigger = {
|
||||
has_ep3_dlc_trigger = yes
|
||||
government_allows = administrative
|
||||
government_has_mechanic = administrative
|
||||
NOR = {
|
||||
government_has_flag = government_is_celestial
|
||||
government_has_flag = government_has_merit
|
||||
government_has_flag = government_is_japan_administrative
|
||||
government_has_flag = government_is_meritocratic
|
||||
}
|
||||
is_independent_ruler = no
|
||||
}
|
||||
|
|
@ -495,7 +671,7 @@ can_keep_appointment_succession_law_trigger = {
|
|||
has_ep3_dlc_trigger = yes
|
||||
trigger_if = {
|
||||
limit = {
|
||||
has_realm_law = appointment_succession_law
|
||||
has_realm_law = appointment_succession_law
|
||||
}
|
||||
can_have_appointment_succession_law_trigger = yes
|
||||
}
|
||||
|
|
@ -504,3 +680,35 @@ can_keep_appointment_succession_law_trigger = {
|
|||
can_change_appointment_succession_law_trigger = {
|
||||
has_ep3_dlc_trigger = yes
|
||||
}
|
||||
|
||||
# Scope's $AUTHORITY$ authority law level is at least $CHARACTER$'s
|
||||
has_higher_or_equal_authority_trigger = {
|
||||
OR = {
|
||||
has_realm_law = $AUTHORITY$_authority_3
|
||||
AND = {
|
||||
has_realm_law = $AUTHORITY$_authority_2
|
||||
$CHARACTER$ = {
|
||||
OR = {
|
||||
has_realm_law = $AUTHORITY$_authority_0
|
||||
has_realm_law = $AUTHORITY$_authority_1
|
||||
has_realm_law = $AUTHORITY$_authority_2
|
||||
}
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
has_realm_law = $AUTHORITY$_authority_1
|
||||
$CHARACTER$ = {
|
||||
OR = {
|
||||
has_realm_law = $AUTHORITY$_authority_0
|
||||
has_realm_law = $AUTHORITY$_authority_1
|
||||
}
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
has_realm_law = $AUTHORITY$_authority_0
|
||||
$CHARACTER$ = {
|
||||
has_realm_law = $AUTHORITY$_authority_0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue