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

@ -1,17 +1,22 @@

### Legal trigger list
opposes_succession_law_change_trigger = {
opposes_law_change_trigger = {
is_imprisoned = no
opinion = {
target = liege
value < 0
}
custom_description = {
text = law_change_approval_is_cowed
has_dread_level_towards = {
trigger_if = {
limit = {
exists = liege
}
opinion = {
target = liege
level < 2
value < 0
}
custom_description = {
text = law_change_approval_is_cowed
has_dread_level_towards = {
target = liege
level < 2
}
}
}
}
@ -48,15 +53,6 @@ can_change_succession_laws_realm_flag_trigger = {
can_change_succession_law_trigger = {
can_change_succession_laws_realm_flag_trigger = yes
custom_description = {
text = "no_powerful_vassal_with_negative_opinion"
NOT = {
any_vassal = {
is_powerful_vassal = yes
opposes_succession_law_change_trigger = yes
}
}
}
}
can_change_single_heir_dynasty_house_succession_law_trigger = {
@ -65,12 +61,12 @@ can_change_single_heir_dynasty_house_succession_law_trigger = {
culture = {
OR = {
this = culture:czech
this = culture:NEOW_slovak
this = culture:slovien
any_parent_culture_or_above = {
this = culture:czech
}
any_parent_culture_or_above = {
this = culture:NEOW_slovak
this = culture:slovien
}
}
}
@ -85,15 +81,6 @@ can_change_single_heir_dynasty_house_succession_law_trigger = {
trigger_else = {
can_change_succession_laws_realm_flag_trigger = yes
}
custom_description = {
text = "no_powerful_vassal_with_negative_opinion"
NOT = {
any_vassal = {
is_powerful_vassal = yes
opposes_succession_law_change_trigger = yes
}
}
}
}
can_change_to_equal_succession_law_trigger = {
@ -109,17 +96,9 @@ can_change_to_equal_succession_law_trigger = {
trigger_else = {
can_change_succession_laws_realm_flag_trigger = yes
}
custom_description = {
text = "no_powerful_vassal_with_negative_opinion"
NOT = {
any_vassal = {
is_powerful_vassal = yes
opposes_succession_law_change_trigger = yes
}
}
}
}
#TODO_GDP: This trigger doesn't seem to generate accurate custom descs when the law is unavailable
can_change_partition_succession_law_trigger = {
custom_description = {
text = "has_law_allowing_partition_succession_law_change"
@ -128,15 +107,6 @@ can_change_partition_succession_law_trigger = {
has_realm_law_flag = can_change_succession_laws
}
}
custom_description = {
text = "no_powerful_vassal_with_negative_opinion"
NOT = {
any_vassal = {
is_powerful_vassal = yes
opposes_succession_law_change_trigger = yes
}
}
}
}
@ -152,6 +122,17 @@ can_designate_heir_trigger = {
# Admin always has access to this
limit = { government_has_mechanic = administrative }
}
trigger_else_if = {
# Republics also has access to this
limit = { government_has_flag = government_is_republic }
custom_description = {
text = "has_republic_allowing_designate_heir"
any_held_title = {
is_noble_family_title = yes
}
}
}
trigger_else_if = {
# Feudal and clan can get this by increasing crown authority
limit = { has_realm_law_in_group = crown_authority }