scripted_triggers updated files
This commit is contained in:
parent
37045a17ee
commit
072e45c086
36 changed files with 4934 additions and 1754 deletions
|
|
@ -11,7 +11,7 @@
|
|||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { government_allows = administrative }
|
||||
limit = { government_has_mechanic = administrative }
|
||||
is_independent_ruler = yes
|
||||
}
|
||||
trigger_else = {
|
||||
|
|
@ -66,15 +66,132 @@ coronation_hostile_to_host_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
is_important_hof_trigger = {
|
||||
faith = {
|
||||
# The HoF actually matters
|
||||
NOT = { has_doctrine = doctrine_theocracy_temporal }
|
||||
# And this HoF is relevant to the activity
|
||||
this = scope:host.faith
|
||||
# We save coronation_anointment_authority silently because another tooltip trigger already reports it
|
||||
coronation_anointment_save_authority_trigger = {
|
||||
trigger_if = {
|
||||
limit = { exists = religious_head_or_challenger }
|
||||
religious_head_or_challenger = { save_temporary_scope_as = coronation_anointment_authority }
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
exists = rite.head_of_rite
|
||||
rite.head_of_rite = { pam_is_clergy_ruler_trigger = yes }
|
||||
}
|
||||
rite.head_of_rite = { save_temporary_scope_as = coronation_anointment_authority }
|
||||
}
|
||||
trigger_else = {
|
||||
# No authority: callers check scope:coronation_anointment_authority
|
||||
always = yes
|
||||
}
|
||||
}
|
||||
|
||||
coronation_anointment_authority_available_trigger = {
|
||||
coronation_anointment_save_authority_trigger = yes
|
||||
custom_description = {
|
||||
text = CORONATION_RELIGIOUS_AUTHORITY_DOESNT_EXIST
|
||||
exists = scope:coronation_anointment_authority
|
||||
}
|
||||
}
|
||||
|
||||
# Kept in step with activity_types/coronation.txt is_location_valid for anointment location
|
||||
coronation_anointment_no_holy_site_available_trigger = {
|
||||
NOT = {
|
||||
AND = {
|
||||
$AUTHORITY$ = { is_landed = yes }
|
||||
$AUTHORITY$.faith = {
|
||||
any_holy_site_barony = {
|
||||
holder = {
|
||||
target_is_same_character_or_above = $AUTHORITY$
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
$HOST$.faith = {
|
||||
any_holy_site_barony = {
|
||||
holder = {
|
||||
target_is_same_character_or_above = $HOST$
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
coronation_anointment_authority_is_trigger = {
|
||||
trigger_if = {
|
||||
limit = { exists = religious_head_or_challenger }
|
||||
religious_head_or_challenger ?= $CHARACTER$
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
exists = rite.head_of_rite
|
||||
rite.head_of_rite = { pam_is_clergy_ruler_trigger = yes }
|
||||
}
|
||||
rite.head_of_rite ?= $CHARACTER$
|
||||
}
|
||||
trigger_else = {
|
||||
always = no
|
||||
}
|
||||
}
|
||||
|
||||
is_important_hof_trigger = {
|
||||
# The HoF actually matters
|
||||
rite = { NOT = { rite_has_doctrine = doctrine_theocracy_temporal } }
|
||||
government_has_flag = government_is_theocracy
|
||||
any_held_title = { is_head_of_faith = yes }
|
||||
OR = {
|
||||
AND = {
|
||||
# Preserve the ordinary-coronation Head of Faith behavior
|
||||
faith = scope:host.faith
|
||||
any_held_title = { is_head_of_faith = yes }
|
||||
}
|
||||
AND = {
|
||||
scope:host.involved_activity ?= {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = coronation_type_anointment
|
||||
}
|
||||
}
|
||||
scope:host = {
|
||||
coronation_anointment_authority_is_trigger = { CHARACTER = root }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
is_coronation_artifact_trigger = {
|
||||
artifact_owner = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
faith = {
|
||||
coronation_proper_artifact_crown_trigger = yes
|
||||
coronation_proper_artifact_regalia_trigger = no
|
||||
}
|
||||
}
|
||||
prev = {
|
||||
artifact_slot_type = helmet
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
faith = {
|
||||
coronation_proper_artifact_regalia_trigger = yes
|
||||
coronation_proper_artifact_crown_trigger = no
|
||||
}
|
||||
}
|
||||
prev = {
|
||||
artifact_slot_type = regalia
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
prev = {
|
||||
OR = {
|
||||
artifact_slot_type = helmet
|
||||
artifact_slot_type = regalia
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
coronation_has_proper_artifact_trigger = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue