fixing that thing where it looks like characters hanged themselves

This commit is contained in:
Thakia 2026-10-01 13:11:41 -03:00
parent 3a8b2882cb
commit 273cb89aa5
21 changed files with 3227 additions and 775 deletions

View file

@ -47,7 +47,6 @@ accolade_the_knight_of_the_animal = {
OR = {
geographical_region = world_india
geographical_region = world_middle_east
geographical_region = world_burma
geographical_region = world_tibet
geographical_region = world_asia_china
geographical_region = world_asia_japan
@ -75,7 +74,7 @@ accolade_the_knight_of_the_animal = {
liege.capital_county.title_province ?= {
NOR = {
geographical_region = world_africa
geographical_region = world_burma
geographical_region = world_asia_southeast
geographical_region = world_steppe
}
}
@ -456,7 +455,6 @@ accolade_the_knight_of_the_animal = {
geographical_region = world_africa_north_east
geographical_region = world_africa_west
geographical_region = world_india
geographical_region = world_burma
geographical_region = world_asia_southeast
}
}
@ -477,7 +475,6 @@ accolade_the_knight_of_the_animal = {
geographical_region = world_africa
geographical_region = world_middle_east
geographical_region = world_india
geographical_region = world_burma
geographical_region = world_asia_minor
geographical_region = world_steppe_tarim
geographical_region = world_tibet
@ -596,7 +593,6 @@ accolade_the_animal_of_capital = {
OR = {
geographical_region = world_india
geographical_region = world_middle_east
geographical_region = world_burma
geographical_region = world_tibet
geographical_region = world_asia_china
geographical_region = world_asia_japan
@ -624,7 +620,7 @@ accolade_the_animal_of_capital = {
liege.capital_county.title_province ?= {
NOR = {
geographical_region = world_africa
geographical_region = world_burma
geographical_region = world_asia_southeast
geographical_region = world_steppe
}
}
@ -1029,7 +1025,6 @@ accolade_the_animal_of_capital = {
geographical_region = world_africa_north_east
geographical_region = world_africa_west
geographical_region = world_india
geographical_region = world_burma
geographical_region = world_asia_southeast
}
}
@ -1050,7 +1045,6 @@ accolade_the_animal_of_capital = {
geographical_region = world_africa
geographical_region = world_middle_east
geographical_region = world_india
geographical_region = world_burma
geographical_region = world_asia_minor
geographical_region = world_steppe_tarim
geographical_region = world_tibet
@ -2952,6 +2946,7 @@ accolade_knight_of_god = {
trigger = {
NOR = {
faith.religion = religion:finnic_religion
# faith.religion = religion:finno_ugric_religion
# faith.religion = religion:north_african_religion
# faith.religion = religion:paganism_religion
# faith.religion = religion:west_african_religion
@ -2967,6 +2962,7 @@ accolade_knight_of_god = {
potential = {
exists = liege
religion = liege.religion
NOT = { faith.religion = religion:west_african_bori_religion }
}
}
@ -3875,7 +3871,7 @@ accolade_the_foe_of_enemy_faith = {
}
faith = {
NOR = {
has_doctrine_parameter = unreformed_syncretic_actor_opinion_active
has_doctrine_parameter = unreformed_syncretic_actor
has_doctrine_parameter = unreformed
}
}
@ -3919,7 +3915,7 @@ accolade_the_foe_of_enemy_faith = {
faith.religion = religion:catholic_religion
faith.religion = religion:protestant_religion
faith = {
has_doctrine_parameter = christian_syncretic_actor_opinion_active
has_doctrine_parameter = christian_syncretic_actor
}
}
liege.capital_county.title_province ?= {
@ -3939,13 +3935,9 @@ accolade_the_foe_of_enemy_faith = {
triggered_desc = {
trigger = {
NOR = {
OR = {
faith.religion = religion:eastern_orthodox_religion
faith.religion = religion:catholic_religion
faith.religion = religion:protestant_religion
}
faith.religion = religion:christianity_religion
faith = {
has_doctrine_parameter = christian_syncretic_actor_opinion_active
has_doctrine_parameter = christian_syncretic_actor
}
}
liege.capital_county.title_province ?= {
@ -3967,7 +3959,7 @@ accolade_the_foe_of_enemy_faith = {
NOR = {
faith.religion = religion:islam_religion
faith = {
has_doctrine_parameter = islamic_syncretic_actor_opinion_active
has_doctrine_parameter = islamic_syncretic_actor
}
}
liege.capital_county.title_province ?= {
@ -3993,14 +3985,13 @@ accolade_the_foe_of_enemy_faith = {
NOR = {
faith.religion = religion:buddhism_religion
faith = {
has_doctrine_parameter = eastern_syncretic_actor_opinion_active
has_doctrine_parameter = eastern_syncretic_actor
}
}
liege.capital_county.title_province ?= {
OR = {
geographical_region = world_tibet
geographical_region = world_steppe_tarim
geographical_region = world_burma
geographical_region = world_india_rajastan
geographical_region = world_india_bengal
geographical_region = world_asia_china
@ -4020,14 +4011,13 @@ accolade_the_foe_of_enemy_faith = {
NOR = {
faith.religion = religion:buddhism_religion
faith = {
has_doctrine_parameter = eastern_syncretic_actor_opinion_active
has_doctrine_parameter = eastern_syncretic_actor
}
}
liege.capital_county.title_province ?= {
OR = {
geographical_region = world_tibet
geographical_region = world_steppe_tarim
geographical_region = world_burma
geographical_region = world_india_rajastan
geographical_region = world_india_bengal
geographical_region = world_asia_china
@ -4047,7 +4037,7 @@ accolade_the_foe_of_enemy_faith = {
NOR = {
faith.religion = religion:hinduism_religion
faith = {
has_doctrine_parameter = eastern_syncretic_actor_opinion_active
has_doctrine_parameter = eastern_syncretic_actor
}
}
liege.capital_county.title_province ?= {
@ -4066,10 +4056,10 @@ accolade_the_foe_of_enemy_faith = {
is_playable_character = yes
}
faith = liege.faith
faith = {
rite = {
NOR = {
has_doctrine = doctrine_pluralism_pluralistic
has_doctrine_parameter = pacifist_opinion_active
rite_has_doctrine = doctrine_pluralism_pluralistic
rite_has_parameter = pacifist
}
}
NOT = {

View file

@ -0,0 +1,161 @@
## 01. The Two Swords
#ce3_04_the_two_swords_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_04_the_two_swords_achievement_trigger
# title:e_hre.holder ?= {
# puppeteer ?= root
# }
# title:k_papal_state.holder ?= {
# pam_pope_is_head_of_faith_or_rite_trigger = yes
# puppeteer ?= root
# }
# }
# }
#}
#
## 02. Guido's Guiding Light
#ce3_02_guidos_guiding_light_achievement = {
# possible = {
# this = character:et_milano_1066_1
# }
# happened = {
# custom_description = {
# text = ce3_02_guidos_guiding_light_achievement_trigger
# this = character:et_milano_1066_1
# exists = global_var:ce3_02_guido_declared_antipope
# faith:catholic.main_rite ?= rite:ambrosian_rite
# }
# }
#}
#
## 03. Servus Servorum Dei
#ce3_11_servus_servorum_dei_achievement = {
# possible = {
# has_character_flag = ce3_11_servus_servorum_dei_achievement_start
# }
# happened = {
# custom_description = {
# text = ce3_11_servus_servorum_dei_achievement_trigger
# has_character_flag = ce3_11_servus_servorum_dei_achievement_start
# has_title = title:k_papal_state
# pam_pope_is_head_of_faith_or_rite_trigger = yes
# }
# }
#}
#
## 04. Papal Bull
#ce3_12_papal_bull_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_12_papal_bull_achievement_trigger
# exists = global_var:ce3_12_papal_bull_achievement_unlocked
# }
# }
#}
#
## 05. The Father, the Son, and the Holy Grandson
#ce3_07_the_father_the_son_and_the_holy_grandson_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_07_the_father_the_son_and_the_holy_grandson_achievement_trigger
# exists = global_var:ce3_07_the_father_the_son_and_the_holy_grandson_achievement_unlocked
# }
# }
#}
#
## 06. Where There's a Will
#ce3_13_where_theres_a_will_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_13_where_theres_a_will_achievement_trigger
# exists = global_var:ce3_13_where_theres_a_will_achievement_unlocked
# }
# }
#}
#
## 07. Home See Advantage
#ce3_14_home_see_advantage_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_14_home_see_advantage_achievement_trigger
# exists = global_var:ce3_14_home_see_advantage_achievement_unlocked
# }
# }
#}
#
## 08. Cardinal Sin
#ce3_15_cardinal_sin_achievement = {
# possible = {
# exists = global_var:started_ce3_15_cardinal_sin_achievement
# }
# happened = {
# custom_description = {
# text = ce3_15_cardinal_sin_achievement_trigger
# exists = global_var:started_ce3_15_cardinal_sin_achievement
# exists = dynasty
# pam_college_of_cardinals_election_active_trigger = yes
# trigger_if = {
# limit = { exists = faith:catholic.religious_head_title }
# faith:catholic.religious_head_title = {
# any_elector = {
# count >= 5
# dynasty ?= root.dynasty
# }
# }
# }
# trigger_else = {
# title:k_papal_state = {
# any_elector = {
# count >= 5
# dynasty ?= root.dynasty
# }
# }
# }
# }
# }
#}
#
## 09. Father's best side
#ce3_06_fathers_best_side_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_06_fathers_best_side_achievement_trigger
# exists = global_var:ce3_06_fathers_best_side_achievement_unlocked
# }
# }
#}
#
## 10. Holier Than Thou
#ce3_16_holier_than_thou_achievement = {
# possible = {
#
# }
# happened = {
# custom_description = {
# text = ce3_16_holier_than_thou_achievement_trigger
# any_personal_tenet = {
# count >= 3
# }
# spiritual_fulfillment >= 100 # MAX_SPIRITUAL_FULFILLMENT
# }
# }
#}

View file

@ -3,21 +3,11 @@
has_ep3_dlc_trigger = yes
has_government = landless_adventurer_government
is_adult = yes
#Every other activity must be blocked until an uncrowned AI crowns themselves
trigger_if = {
limit = {
is_ai = yes
}
NOT = {
has_realm_law = uncrowned
}
}
}
can_start_showing_failures_only = {
NOT = { is_activity_type_on_cooldown = activity_camp_party }
is_available = yes
age >= 16
}
is_valid = {
@ -25,27 +15,19 @@
is_alive = yes
is_imprisoned = no
has_government = landless_adventurer_government
NOT = { is_incapable = yes }
is_incapable = no
}
}
on_invalidated = {
# Host becomes incapable
if = {
limit = {
scope:host = { is_incapable = yes }
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
scope:host = {
trigger_event = activity_system.0330
}
every_attending_character = {
limit = { this != scope:host }
trigger_event = activity_system.0331
}
}
invalidation_incapable_effect = yes
invalidation_imprisoned_effect = yes
invalidation_nobody_present_effect = yes
invalidation_host_isolated_effect = yes
}
on_host_death = {
activity_try_use_new_host_effect = yes
}
province_filter = domicile_domain
@ -162,6 +144,7 @@
is_shown = { always = yes }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
custom_tooltip = {
text = camp_party_food_options_invalid
domicile ?= {
@ -233,6 +216,7 @@
is_shown = { always = yes }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
custom_tooltip = {
text = camp_party_food_options_invalid
domicile ?= {
@ -318,6 +302,7 @@
is_shown = { always = yes }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
custom_tooltip = {
text = camp_party_drinks_adequate_invalid
domicile ?= {
@ -389,6 +374,7 @@
is_shown = { always = yes }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
custom_tooltip = {
text = camp_party_drinks_abundant_invalid
domicile ?= {
@ -496,6 +482,9 @@
host_gains_diplo_xp
host_gains_intrigue_xp
hook_trusting_guest
apa_passive_religious_learning_host
apa_passive_religious_learning_guest
}
chance_of_no_event = 2
}
@ -546,6 +535,8 @@
}
add = -75
}
add = activity_general_ai_will_do_value
}
ai_check_interval = 60
@ -658,6 +649,11 @@
desc = ACTIVITY_GUEST_ADVENTURER_REASON
}
modifier = { #Emperors
primary_title.tier = tier_hegemony
add = -125
desc = ACTIVITY_GUEST_LANDLESS_REASON
}
modifier = { #Emperors
primary_title.tier = tier_empire
add = -100
@ -689,6 +685,8 @@
# GRAPHICS
###################
header_background = "gfx/interface/illustrations/activity_header_backgrounds/activity_camp_party.dds"
#Backgrounds mostly not needed here
background = { #Campfire
trigger = {

View file

@ -4,15 +4,8 @@
is_landed = yes
culture = { has_cultural_parameter = hosts_chariot_races }
has_dlc_feature = roads_to_power
#Every other activity must be blocked until an uncrowned AI crowns themselves
trigger_if = {
limit = {
is_ai = yes
}
NOT = {
has_realm_law = uncrowned
}
}
ai_activity_war_check = yes
ai_activity_coronation_check = yes
}
can_start_showing_failures_only = {
@ -34,50 +27,16 @@
}
on_invalidated = {
# Host becomes unlanded
if = {
limit = {
scope:host = { is_landed = no }
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
every_attending_character = {
trigger_event = activity_system.0320
}
}
if = { # No one shows up
limit = {
has_attending_activity_guests = no
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
activity_location = { save_scope_as = location }
}
scope:host = { trigger_event = activity_system.0100 }
}
invalidation_incapable_effect = yes
invalidation_unlanded_effect = yes
invalidation_imprisoned_effect = yes
invalidation_nobody_present_effect = yes
invalidation_host_isolated_effect = yes
chariot_race_remove_variables_effect = yes
}
on_host_death = {
# Make the title heir the new host
if = {
limit = { exists = scope:host.primary_title.current_heir }
scope:host.primary_title.current_heir = { save_scope_as = new_host }
}
# Otherwise pass to primary heir
else = {
scope:host.primary_heir = { save_scope_as = new_host }
}
# If we have a new host, set them
if = {
limit = { exists = scope:new_host }
set_activity_host = scope:new_host
scope:new_host = {
trigger_event = { id = activity_system.0080 days = 1 }
}
}
activity_try_use_new_host_effect = yes
}
# desc is only shown in debug AI watch window
@ -140,6 +99,8 @@
desc = reclusive
}
}
add = activity_general_ai_will_do_value
}
ai_check_interval = 60
@ -302,6 +263,9 @@
chariot_option_entertainment = {
chariot_entertainment_bad = {
default = {
has_personal_tenet_flag = tenet_vows_of_poverty_humble_host
}
# desc is only shown in debug AI watch window
ai_will_do = {
@ -328,7 +292,12 @@
}
}
chariot_entertainment_normal = {
default = yes
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
default = {
NOT = { has_personal_tenet_flag = tenet_vows_of_poverty_humble_host }
}
# desc is only shown in debug AI watch window
ai_will_do = {
value = 10
@ -354,6 +323,9 @@
}
}
chariot_entertainment_good = {
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
# desc is only shown in debug AI watch window
ai_will_do = {
value = 10
@ -412,7 +384,12 @@
}
this != scope:host
}
remove_short_term_gold = chariot_race_entrance_fee
send_interface_toast = {
type = event_toast_effect_neutral
title = activity_chariot_race_pay_entrance_fee
left_icon = scope:host
remove_short_term_gold = chariot_race_entrance_fee
}
}
# we add some money to the pot either way to offset the gains in case a bunch of people make good bets
scope:activity = {
@ -462,6 +439,7 @@
location = scope:activity.activity_location
template = generic_bookmaker_character
faith = scope:activity.activity_location.faith
rite = scope:activity.activity_location.rite
culture = scope:activity.activity_location.culture
save_scope_as = bookmaker
}
@ -817,7 +795,11 @@
chariot_race_pivotal_moment_widget = "widget_activity_pivotal_moment_event_window"
}
### Backgrounds
###################
# GRAPHICS
###################
header_background = "gfx/interface/illustrations/activity_header_backgrounds/activity_chariot_race.dds"
# Travel
background = { # Bridge

View file

@ -11,9 +11,9 @@
has_realm_law = uncrowned
AND = {
has_game_rule = coronation_laws_off
NOR = {
has_variable = crowned_king_var
has_variable = crowned_emperor_var
has_none_of_variables = {
name = crowned_king_var
name = crowned_emperor_var
}
}
}
@ -29,7 +29,7 @@
has_realm_law = crowned_emperor
AND = {
has_realm_law = crowned_king
faith = { has_doctrine = doctrine_no_anointment }
rite = { rite_has_doctrine = doctrine_no_anointment }
}
}
}
@ -51,17 +51,24 @@
trigger_if = {
limit = {
scope:special_option ?= flag:coronation_type_anointment
NOT = { faith.religious_head ?= this }
coronation_anointment_authority_available_trigger = yes
NOT = { scope:coronation_anointment_authority ?= this }
}
custom_tooltip = {
text = activity_coronation_not_approved_anointment
faith.religious_head = {
scope:coronation_anointment_authority = {
is_target_in_variable_list = {
name = supported_anointments
target = root
}
}
}
scope:coronation_anointment_authority ?= {
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
}
}
# In realms with Ceremonial Lieges, only independent Ceremonial Lieges may hold a Coronation
trigger_if = {
@ -73,58 +80,39 @@
}
trigger_if = {
# Missing authority skips this block, so a regular coronation stays valid
limit = {
highest_held_title_tier >= tier_empire
faith = {
has_doctrine = doctrine_spiritual_head
has_doctrine = doctrine_imperial_anointment
}
rite = { rite_has_doctrine = doctrine_imperial_anointment }
coronation_anointment_authority_available_trigger = yes
}
faith.religious_head ?= {
save_temporary_scope_as = hof_temp
}
trigger_if = {
limit = {
exists = scope:hof_temp
}
scope:hof_temp = {
custom_description = {
text = HOF_is_ai_tt
is_ai = yes
}
is_available_allow_travelling = yes
}
}
trigger_else = {
custom_description = {
text = HOF_DOESNT_EXIST
exists = scope:hof_temp
scope:coronation_anointment_authority = {
is_available_allow_travelling = yes
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
}
NOT = { has_trait = excommunicated }
trigger_if = {
limit = {
is_ai = no
}
piety_level >= 2
}
}
}
is_location_valid = {
has_holding = yes
trigger_if = { # If it is an anointment, it must happen within the HoF's lands if they hold a holy site
trigger_if = {
# A missing authority is already reported by the anointment option's validity
limit = { scope:special_option ?= flag:coronation_type_anointment }
scope:host = { coronation_anointment_save_authority_trigger = yes }
}
trigger_if = { # If it is an anointment, it must happen within the authority's lands if they hold a holy site
limit = {
scope:special_option ?= flag:coronation_type_anointment
scope:host.faith.religious_head ?= {
scope:coronation_anointment_authority ?= {
is_landed = yes
faith = {
any_holy_site = {
barony.holder = {
OR = {
this = scope:host.faith.religious_head
any_liege_or_above = { this = scope:host.faith.religious_head }
}
any_holy_site_barony = {
holder = {
target_is_same_character_or_above = scope:coronation_anointment_authority
}
}
}
@ -134,39 +122,30 @@
text = coronation_location_hof_owned
barony = { is_holy_site_of = scope:host.faith }
barony.holder = {
OR = {
this = scope:host.faith.religious_head
any_liege_or_above = { this = scope:host.faith.religious_head }
}
target_is_same_character_or_above = scope:coronation_anointment_authority
}
}
}
#If it is an anointment and HoF has no holy site - but you do - must be held there
trigger_else_if = { # If it is an anointment, it must happen within the HoF's lands if they hold a holy site
#If it is an anointment and the authority has no holy site - but you do - it must be held there
trigger_else_if = {
limit = {
scope:special_option ?= flag:coronation_type_anointment
scope:host.faith = {
any_holy_site = {
barony.holder = {
OR = {
this = scope:host
any_liege_or_above = { this = scope:host }
}
any_holy_site_barony = {
holder = {
target_is_same_character_or_above = scope:host
}
}
}
#head of faith has no holy site
scope:host.faith.religious_head ?= {
#The approving authority has no holy site
scope:coronation_anointment_authority ?= {
OR = {
is_landed = no
NOT = {
faith = {
any_holy_site = {
barony.holder = {
OR = {
this = scope:host.faith.religious_head
any_liege_or_above = { this = scope:host.faith.religious_head }
}
any_holy_site_barony = {
holder = {
target_is_same_character_or_above = scope:coronation_anointment_authority
}
}
}
@ -178,21 +157,26 @@
text = coronation_location_holy_site_host
barony = { is_holy_site_of = scope:host.faith }
barony.holder = {
OR = {
this = scope:host
any_liege_or_above = { this = scope:host }
}
target_is_same_character_or_above = scope:host
}
}
}
#If it is an anointment and neither the authority nor the host holds a holy site, it must be held at the authority's capital
trigger_else_if = {
limit = {
scope:special_option ?= flag:coronation_type_anointment
exists = scope:coronation_anointment_authority.capital_province
}
custom_tooltip = {
text = coronation_location_authority_capital
this = scope:coronation_anointment_authority.capital_province
}
}
trigger_else = { # Else it must happen in your lands
custom_tooltip = {
text = coronation_location_owned
county.holder ?= {
OR = {
this = scope:host
any_liege_or_above = { this = scope:host }
}
target_is_same_character_or_above = scope:host
}
}
}
@ -200,12 +184,30 @@
limit = {
NOT = { is_county_capital = yes }
}
custom_tooltip = {
text = coronation_location_neither_capital_nor_holy_site
OR = {
this = scope:host.capital_province
is_county_capital = yes
barony = { is_holy_site_of = scope:host.faith }
# Anointment authority is only saved on that path, and the tooltip evaluates every line
trigger_if = {
limit = {
scope:special_option ?= flag:coronation_type_anointment
}
custom_tooltip = {
text = coronation_location_neither_capital_nor_holy_site
OR = {
this = scope:host.capital_province
is_county_capital = yes
barony = { is_holy_site_of = scope:host.faith }
# The anointment authority's seat is a valid venue even when it is a temple barony
scope:coronation_anointment_authority.capital_province ?= this
}
}
}
trigger_else = {
custom_tooltip = {
text = coronation_location_neither_capital_nor_holy_site
OR = {
this = scope:host.capital_province
is_county_capital = yes
barony = { is_holy_site_of = scope:host.faith }
}
}
}
}
@ -247,9 +249,7 @@
is_valid = {
scope:host = {
# Standard checks
is_alive = yes
is_incapable = no
is_imprisoned = no
is_physically_able = yes
is_landed_or_landless_administrative = yes
trigger_if = {
limit = {
@ -312,23 +312,6 @@
}
on_invalidated = {
# Host becomes incapable
if = {
limit = {
scope:host = { is_incapable = yes }
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
scope:host = {
trigger_event = activity_system.0330
}
every_attending_character = {
limit = { this != scope:host }
trigger_event = activity_system.0331
}
}
#Host has different primary title
if = {
limit = {
@ -345,23 +328,8 @@
}
}
# Host becomes unlanded
if = {
limit = {
scope:host = {
is_landed_or_landless_administrative = no
}
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
every_attending_character = {
trigger_event = activity_system.0320
}
}
# Host is dead
if = {
else_if = {
limit = {
scope:host = { is_alive = no }
}
@ -377,7 +345,7 @@
}
#Host has been imprisoned
if = {
else_if = {
limit = {
scope:host = { is_imprisoned = yes }
}
@ -395,7 +363,7 @@
}
# No one shows up
if = {
else_if = {
limit = {
has_attending_activity_guests = no
}
@ -403,7 +371,7 @@
}
# Officiator death
if = {
else_if = {
limit = {
scope:host = { has_character_flag = cancelled_coronation }
}
@ -422,7 +390,7 @@
# Host excommunicated during anointment
if = {
else_if = {
limit = {
scope:host = { has_trait = excommunicated }
scope:activity = {
@ -438,7 +406,7 @@
scope:activity = {
every_attending_character = {
limit = {
NOT = { this = scope:host }
this != scope:host
}
trigger_event = ach_maintenance_events.0105
}
@ -448,6 +416,12 @@
}
}
else = {
invalidation_incapable_effect = yes
invalidation_unlanded_non_nf_effect = yes
invalidation_host_or_special_guest_isolated_effect = yes
}
#Cleanup
if = {
limit = {
@ -517,18 +491,11 @@
trigger_if = {
limit = {
highest_held_title_tier >= tier_empire
faith = {
OR = {
has_doctrine = doctrine_holy_order_head
has_doctrine = doctrine_spiritual_head
}
}
}
NOT = {
faith = {
has_doctrine = doctrine_imperial_anointment
rite = {
rite_has_doctrine = doctrine_imperial_anointment
}
}
NOT = { coronation_anointment_authority_available_trigger = yes }
}
trigger_else = {
always = yes
@ -544,16 +511,19 @@
trigger_if = {
limit = {
highest_held_title_tier >= tier_empire
faith = {
OR = {
has_doctrine = doctrine_holy_order_head
has_doctrine = doctrine_spiritual_head
}
rite = {
rite_has_doctrine = doctrine_imperial_anointment
}
}
# Regular coronation is only blocked while an anointment authority exists;
# with no Head of Faith and no clergy Head of Rite it remains fully valid.
NOT = {
faith = {
has_doctrine = doctrine_imperial_anointment
OR = {
exists = religious_head_or_challenger
AND = {
exists = rite.head_of_rite
rite.head_of_rite = { pam_is_clergy_ruler_trigger = yes }
}
}
}
}
@ -563,17 +533,14 @@
if = {
limit = {
highest_held_title_tier > tier_kingdom
faith = {
rite = {
OR = {
has_doctrine = doctrine_holy_order_head
has_doctrine = doctrine_spiritual_head
}
OR = {
has_doctrine = doctrine_imperial_anointment
has_doctrine = doctrine_anointment_permitted
rite_has_doctrine = doctrine_imperial_anointment
rite_has_doctrine = doctrine_anointment_permitted
}
}
faith.religious_head ?= {
coronation_anointment_authority_available_trigger = yes
scope:coronation_anointment_authority ?= {
is_target_in_variable_list = {
name = supported_anointments
target = root
@ -595,10 +562,11 @@
trigger_if = {
limit = {
highest_held_title_tier >= tier_empire
rite = {
rite_has_doctrine = doctrine_imperial_anointment
}
}
faith = {
has_doctrine = doctrine_imperial_anointment
}
coronation_anointment_authority_available_trigger = yes
}
trigger_else = {
always = no
@ -606,65 +574,41 @@
}
is_valid = {
#trigger_ifs are to make player-facing triggers look nice
faith = {
OR = {
has_doctrine = doctrine_holy_order_head
has_doctrine = doctrine_spiritual_head
}
coronation_anointment_authority_available_trigger = yes
rite = {
trigger_if = {
limit = {
NOT = {
has_doctrine = doctrine_anointment_permitted
}
NOT = { rite_has_doctrine = doctrine_anointment_permitted }
}
has_doctrine = doctrine_imperial_anointment
rite_has_doctrine = doctrine_imperial_anointment
}
trigger_else = {
has_doctrine = doctrine_anointment_permitted
}
religious_head ?= {
save_temporary_scope_as = hof_temp
rite_has_doctrine = doctrine_anointment_permitted
}
}
trigger_if = {
limit = {
exists = scope:hof_temp
}
scope:hof_temp = {
# No authority: the availability trigger above already reports the failure
limit = { exists = scope:coronation_anointment_authority }
scope:coronation_anointment_authority = {
is_available_allow_travelling = yes
custom_description = {
text = HOF_is_ai_tt
is_ai = yes
custom_tooltip = {
text = activity_coronation_hof_no_anointment_situation
NOT = { pam_the_christian_church_no_anointment_trigger = { RULER = root } }
}
}
}
trigger_else = {
custom_description = {
text = HOF_DOESNT_EXIST
exists = scope:hof_temp
}
}
highest_held_title_tier >= tier_empire
NOT = { has_trait = excommunicated }
trigger_if = {
limit = {
is_ai = no
}
piety_level >= 2
}
}
ai_will_do = {
#If valid, the AI should attempt anointment. Unless they hate the pope
#They will likely often go for regular coronation regardless because they can't afford this or haven't done the request anointment interaction
#If valid, the AI should attempt anointment unless they hate their religious authority
value = 100
if = {
limit = {
highest_held_title_tier > tier_kingdom
AND = {
exists = faith.religious_head
faith.religious_head ?= { has_any_bad_relationship_with_character_trigger = { CHARACTER = root } }
}
coronation_anointment_authority_available_trigger = yes
scope:coronation_anointment_authority ?= { has_any_bad_relationship_with_character_trigger = { CHARACTER = root } }
}
add = -90
}
@ -674,8 +618,13 @@
ceremony_size = {
coronation_small_ceremony = {
default = {
coronation_has_proper_artifact_trigger = no
highest_held_title_tier = tier_kingdom
OR = {
has_personal_tenet_flag = tenet_vows_of_poverty_humble_host
AND = {
coronation_has_proper_artifact_trigger = no
highest_held_title_tier = tier_kingdom
}
}
}
is_valid = {
custom_tooltip = {
@ -866,6 +815,12 @@
}
}
is_valid = {
trigger_if = {
limit = {
NOT = { scope:special_option ?= flag:coronation_type_anointment }
}
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
trigger_if = {
limit = {
coronation_proper_artifact_crown_trigger = yes
@ -1065,6 +1020,7 @@
}
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
trigger_if = {
limit = {
coronation_proper_artifact_crown_trigger = yes
@ -1135,6 +1091,7 @@
trigger_if = {
limit = {
exists = scope:special_option
pam_vows_of_poverty_premium_activity_option_valid_trigger = no
}
NOT = { scope:special_option = flag:coronation_type_anointment }
}
@ -1318,6 +1275,7 @@
}
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
trigger_if = {
limit = {
coronation_proper_artifact_crown_trigger = yes
@ -1524,6 +1482,7 @@
}
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
trigger_if = {
limit = {
coronation_proper_artifact_crown_trigger = yes
@ -1631,8 +1590,8 @@
max_province_icons = 3
province_filter = holy_sites_realm
ai_province_filter = holy_sites_realm
province_filter = anointment_candidates
ai_province_filter = anointment_candidates
max_guest_arrival_delay_time = { months = 5 }
@ -1640,6 +1599,9 @@
ai_will_do = { #AI should always do coronations asap as possible if they fulfill the requirements
value = 1000
# add = activity_general_ai_will_do_value
#...unless the game rule is turned off
if = {
limit = {
@ -1694,10 +1656,19 @@
if = {
limit = {
barony = { is_holy_site_of = scope:host.faith }
barony.holder ?= {
OR = {
this = scope:host.faith.religious_head
any_liege_or_above = { this = scope:host.faith.religious_head }
OR = {
AND = {
exists = scope:host.religious_head_or_challenger
barony.holder ?= {
target_is_same_character_or_above = scope:host.religious_head_or_challenger
}
}
AND = {
scope:special_option ?= flag:coronation_type_anointment
scope:host = { coronation_anointment_authority_available_trigger = yes }
barony.holder ?= {
target_is_same_character_or_above = scope:coronation_anointment_authority
}
}
}
}
@ -1752,8 +1723,9 @@
# Vassals send you an angry letter if you didn't invite any
if = {
limit = {
NOT = {
any_vassal = {
any_vassal = {
highest_held_title_tier > tier_barony
NOT = {
is_participant_in_activity = scope:activity
}
}
@ -2220,6 +2192,8 @@
loyalty_pledge nobles_cheer regalia_impresses_attendees supporters_bond detractors_bond befriend_loyalists supporter_stresses_detractor praised_king_together bonded_over_help beautiful_choir_song heir_diplomacy_boost heir_stewardship_boost heir_learning_boost
# General Actions
guest_friendship guest_insulted
# Passive Rite Learning APAs
apa_passive_religious_learning_host apa_passive_religious_learning_guest
}
chance_of_no_event = 5
}
@ -2231,19 +2205,22 @@
is_shown = {
scope:special_option ?= flag:coronation_type_anointment
exists = faith.religious_head
NOT = { faith.religious_head = this }
coronation_anointment_save_authority_trigger = yes
# Also covers a pre-selected authority that is no longer valid, for example after a rite switch
custom_description = {
text = CORONATION_ANOINTMENT_GUEST_AUTHORITY_DOESNT_EXIST
exists = scope:coronation_anointment_authority
}
NOT = { scope:coronation_anointment_authority = this }
}
select_character = {
faith.religious_head ?= {
save_scope_as = character
}
coronation_save_anointment_authority_effect = { SCOPE = character }
}
}
}
max_guests = 100
max_guests = 200
guest_invite_rules = {
rules = {
@ -2266,6 +2243,7 @@
1 = activity_invite_rule_vassals
1 = activity_invite_rule_tributaries
2 = activity_invite_rule_fellow_vassals
2 = activity_invite_rule_clergy
3 = activity_invite_rule_courtiers
4 = activity_invite_rule_guests
2 = activity_invite_rule_all_lieges
@ -2286,23 +2264,30 @@
# Scripted Modifiers
activity_guest_shared_ai_accept_modifier = yes
activity_guest_clergy_shared_ai_accept_modifier = yes
#All vassals attend if they are capable
modifier = {
is_vassal_of = scope:host
NOT = { faith.religious_head ?= this }
NOT = { religious_head_or_challenger ?= this }
NOT = {
AND = {
scope:special_type = flag:coronation_type_anointment
scope:host = { coronation_anointment_authority_is_trigger = { CHARACTER = root } }
}
}
add = 500
desc = coronation_special_vassal_value
}
modifier = {
is_vassal_of = scope:host
faith.religious_head ?= this
scope:host = { coronation_anointment_authority_is_trigger = { CHARACTER = root } }
scope:special_type = flag:coronation_type_anointment
add = 25
desc = coronation_special_vassal_value
}
modifier = {
faith.religious_head ?= this
religious_head_or_challenger ?= this
NOT = { scope:special_type = flag:coronation_type_anointment }
add = -1000
desc = coronation_pope_not_anointment
@ -2340,9 +2325,8 @@
add = 20
}
# Special modifier for the HoF
modifier = {
faith.religious_head ?= this
scope:host = { coronation_anointment_authority_is_trigger = { CHARACTER = root } }
scope:special_type = flag:coronation_type_anointment
is_target_in_variable_list = {
name = supported_anointments
@ -2742,16 +2726,30 @@
}
}
}
# Set HoF as officiant in anointments
# Save the approving authority separately from any replacement officiator
if = {
limit = {
scope:special_option ?= flag:coronation_type_anointment
exists = scope:host.faith.religious_head
}
scope:host = { coronation_save_anointment_authority_effect = { SCOPE = anointment_authority } }
scope:activity = {
set_variable = {
name = anointment_authority
value = scope:anointment_authority
}
set_variable = {
name = officiator
value = scope:host.faith.religious_head
value = scope:anointment_authority
}
}
# Auto-add so a declined required guest cannot invalidate the ceremony
scope:anointment_authority ?= {
if = {
limit = {
NOT = { involved_activity ?= scope:activity }
can_join_activity = scope:activity
}
add_to_activity = scope:activity
}
}
}
@ -2933,7 +2931,10 @@
}
if = {
limit = {
scope:activity.activity_host.faith.religious_head ?= scope:activity.var:officiator
OR = {
scope:activity.var:anointment_authority ?= scope:activity.var:officiator
scope:activity.activity_host.religious_head_or_challenger ?= scope:activity.var:officiator
}
}
create_character_memory = {
type = crowned_by_hof_memory
@ -3358,7 +3359,12 @@
}
}
## Activity Backgrounds
###################
# GRAPHICS
###################
header_background = "gfx/interface/illustrations/activity_header_backgrounds/activity_coronation.dds"
# Arrival - Courtyard Pictures
background = { #Nomadic MENA
trigger = {
@ -3680,15 +3686,7 @@
scope:activity ?= {
activity_location = { NOT = { has_holding_type = church_holding } }
scope:host = {
OR = {
location = province:b_constantinople
# AND = {
# primary_title = title:e_byzantium
# title:c_byzantion = {
# any_de_jure_top_liege = { this = root }
# }
# }
}
#show_byzantion_throne_room_background = yes
}
has_current_phase = coronation_phase_coronation
}

View file

@ -9,10 +9,7 @@
activity_feast = {
is_shown = {
OR = {
is_landed_or_landless_administrative = yes
has_government = landless_minority_government
}
is_landed_or_landless_administrative_or_theocratic = yes
highest_held_title_tier > tier_barony
trigger_if = {
limit = {
@ -33,48 +30,23 @@ activity_feast = {
trigger_if = { # Throttle Counts
limit = {
highest_held_title_tier = tier_county
NOR = {
has_government = japan_administrative_government
has_government = japan_feudal_government
}
government_is_japanese_trigger = no
}
ai_sociability >= 100
}
}
#Every other activity must be blocked until an uncrowned AI crowns themselves
trigger_if = {
limit = {
is_ai = yes
}
NOT = {
has_realm_law = uncrowned
}
}
ai_activity_coronation_check = yes
}
can_start_showing_failures_only = {
NOT = { is_activity_type_on_cooldown = activity_feast }
trigger_if = {
limit = {
OR = {
is_ai = no
NOT = { has_character_flag = feast_ai_override }
}
}
is_available_adult = yes
}
is_physically_able_adult = yes
}
is_valid = {
scope:host = {
is_alive = yes
is_capable_adult = yes
is_imprisoned = no
OR = {
is_landed_or_landless_administrative = yes
has_government = landless_minority_government
}
NOT = { is_incapable = yes }
is_physically_able_adult = yes
is_landed_or_landless_administrative_or_theocratic = yes
}
# If no one shows up
trigger_if = {
@ -137,9 +109,9 @@ activity_feast = {
}
scope:activity.special_guest:honorary_guest = { is_alive = yes } #but they're alive
scope:host = { #and you didn't back down/fail
NOR = {
has_variable = murder_feast_murder_back_down
has_variable = murder_feast_murder_failure_var
has_none_of_variables = {
name = murder_feast_murder_back_down
name = murder_feast_murder_failure_var
}
}
}
@ -172,22 +144,7 @@ activity_feast = {
trigger_event = feast.2011
}
}
if = {
limit = {
scope:host = { is_incapable = yes }
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
scope:host = {
trigger_event = activity_system.0330
}
every_attending_character = {
limit = { this != scope:host }
trigger_event = activity_system.0331
}
}
if = { # No one shows up
else_if = { # No one shows up
limit = {
has_attending_activity_guests = no
}
@ -197,6 +154,11 @@ activity_feast = {
}
scope:host = { trigger_event = feast.2003 }
}
else = {
invalidation_unlanded_non_nf_effect = yes
invalidation_nobody_present_effect = yes
invalidation_host_isolated_effect = yes
}
# Accolade stuff
if = {
limit = {
@ -224,20 +186,6 @@ activity_feast = {
remove_character_modifier = accolade_charmer_party_high_modifier
}
}
# Host becomes unlanded
if = {
limit = {
scope:host = {
is_landed_or_landless_administrative = no
}
}
scope:activity = {
activity_type = { save_scope_as = activity_type }
}
every_attending_character = {
trigger_event = activity_system.0320
}
}
}
###################
@ -287,6 +235,10 @@ activity_feast = {
desc = activity_feast_province_desc_alhambra
}
# ++ / double plus good
triggered_desc = {
trigger = { has_building_or_higher = farm_estates_01 }
desc = activity_feast_province_desc_farm_estates
}
triggered_desc = {
trigger = { has_building_or_higher = paddy_fields_01 }
desc = activity_feast_province_desc_paddy_fields
@ -545,7 +497,7 @@ activity_feast = {
}
if = {
limit = {
faith = { has_doctrine = tenet_ritual_celebrations }
rite = { rite_has_tenet = tenet_ritual_celebrations }
}
add = {
value = 35
@ -554,7 +506,7 @@ activity_feast = {
}
if = {
limit = {
faith = { has_doctrine = tenet_hedonistic }
rite = { rite_has_tenet = tenet_hedonistic }
}
add = {
value = 35
@ -563,8 +515,8 @@ activity_feast = {
}
if = {
limit = {
host.faith = {
has_doctrine = tenet_asceticism
host.rite = {
rite_has_tenet = tenet_asceticism
}
}
add = {
@ -662,7 +614,7 @@ activity_feast = {
}
if = { # Unless...
limit = {
faith = { has_doctrine = tenet_ritual_celebrations }
rite = { rite_has_tenet = tenet_ritual_celebrations }
}
add = {
value = 100
@ -736,56 +688,9 @@ activity_feast = {
}
}
}
# Plague
if = {
limit = {
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity < apocalyptic }
}
would_follow_social_distancing_value >= -1
}
add = {
value = -60
desc = "Plague in Domain"
}
}
else_if = {
limit = {
any_realm_county = {
has_province_with_epidemic = { intensity < apocalyptic }
}
would_follow_social_distancing_value >= -1
}
add = {
value = -20
desc = "Plague in Top Realm"
}
}
if = {
limit = {
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = apocalyptic }
}
}
add = {
value = -200
desc = "Apocalyptic Plague in Domain"
}
}
else_if = {
limit = {
any_held_title = {
title_tier = county
has_province_with_epidemic = { intensity = apocalyptic }
}
}
add = {
value = -40
desc = "Apocalyptic Plague in Top Realm"
}
}
add = activity_general_ai_will_do_value
if = {
limit = {
is_ai = yes
@ -830,6 +735,7 @@ activity_feast = {
1 = activity_invite_rule_confederates
1 = activity_invite_rule_vassals
2 = activity_invite_rule_fellow_vassals
2 = activity_invite_rule_clergy
3 = activity_invite_rule_courtiers
4 = activity_invite_rule_guests
1 = activity_invite_spouses
@ -844,12 +750,12 @@ activity_feast = {
}
host_intents = {
intents = { reduce_stress_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent spread_legend_intent legitimacy_intent }
intents = { reduce_stress_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent spread_legend_intent legitimacy_intent spread_personal_tenet_intent praise_the_gods_intent }
default = reduce_stress_intent
}
guest_intents = {
intents = { reduce_stress_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent banquet_mischief_intent spread_legend_intent legitimacy_intent }
intents = { reduce_stress_intent murder_attendee_intent woo_attendee_intent befriend_attendee_intent banquet_mischief_intent spread_legend_intent legitimacy_intent spread_personal_tenet_intent praise_the_gods_intent }
default = reduce_stress_intent
}
@ -860,6 +766,8 @@ activity_feast = {
# Scripted Modifiers
activity_guest_shared_ai_accept_modifier = yes
activity_guest_feast_ai_accept_modifier = yes
activity_guest_clergy_shared_ai_accept_modifier = yes
activity_guest_clergy_frivolous_ai_accept_modifier = yes
# If the Host has hosted a Murder Feast recently people are sus
modifier = {
@ -872,13 +780,14 @@ activity_feast = {
# Master of Revels Accolade increasing invite acceptance
modifier = {
scope:host = {
any_active_accolade = {
scope:host = {
any_active_accolade = {
accolade_parameter = acclaimed_knight_feast_wedding_invite_acceptance_bonus
}
}
add = accolade_feast_wedding_invite_acceptance_value
}
}
add = accolade_feast_wedding_invite_acceptance_value
desc = acclaimed_knight_feast_wedding_invite_acceptance_bonus_tt
}
}
special_guests = {
@ -1001,7 +910,26 @@ activity_feast = {
# has_title = title:e_minister_of_revenue
# }
# multiply = 0.85
# }
# }
if = {
limit = {
has_personal_tenet_flag = tenet_transubstantiation_feast_discount
}
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
# By God Alone - Secular Faith & Rite: a promised free feast (0038) zeroes the cost.
if = {
limit = {
has_character_modifier = pam_sf_free_feast_modifier
}
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
treasury = {
if = {
@ -1019,15 +947,24 @@ activity_feast = {
}
value = 0
}
# else = {
# value = base_feast_cost_value
else = {
value = base_feast_cost_value
# if = {
# limit = {
# has_title = title:e_minister_of_revenue
# }
# multiply = 0.85
# }
# }
if = {
limit = {
has_personal_tenet_flag = tenet_transubstantiation_feast_discount
}
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
}
}
piety = {
if = {
@ -1044,6 +981,15 @@ activity_feast = {
}
else = {
add = base_feast_cost_value
if = {
limit = {
has_personal_tenet_flag = tenet_transubstantiation_feast_discount
}
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
}
}
barter_goods = {
@ -1055,6 +1001,15 @@ activity_feast = {
}
else = {
add = base_feast_cost_value
if = {
limit = {
has_personal_tenet_flag = tenet_transubstantiation_feast_discount
}
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
}
}
}
@ -1079,6 +1034,14 @@ activity_feast = {
value = base_feast_ui_cost_value
}
if = {
limit = { has_personal_tenet_flag = tenet_transubstantiation_feast_discount }
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -1086,6 +1049,14 @@ activity_feast = {
desc = mpo_nerge_1060_free_feast_desc
}
}
# By God Alone - Secular Faith & Rite: a promised free feast (0038) zeroes the cost.
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
treasury = { # Make sure this matches the gold cost above
if = {
@ -1101,6 +1072,14 @@ activity_feast = {
value = base_feast_cost_value
}
if = {
limit = { has_personal_tenet_flag = tenet_transubstantiation_feast_discount }
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -1121,6 +1100,14 @@ activity_feast = {
value = base_feast_ui_cost_value
}
if = {
limit = { has_personal_tenet_flag = tenet_transubstantiation_feast_discount }
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -1141,6 +1128,14 @@ activity_feast = {
value = base_feast_ui_cost_value
}
if = {
limit = { has_personal_tenet_flag = tenet_transubstantiation_feast_discount }
multiply = {
value = 0.8
desc = feast_cost_discount_transubstantiation
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -1180,6 +1175,12 @@ activity_feast = {
map_entity = "building_western_feast_01_entity"
###################
# GRAPHICS
###################
header_background = "gfx/interface/illustrations/activity_header_backgrounds/activity_feast.dds"
# Travel
background = { # Bridge
trigger = {
@ -3030,6 +3031,13 @@ activity_feast = {
}
else = {
value = feast_type_murder_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -3057,6 +3065,13 @@ activity_feast = {
}
else = {
value = feast_type_murder_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
multiply = {
@ -3080,7 +3095,7 @@ activity_feast = {
}
}
blocked_intents = { murder_attendee_intent befriend_attendee_intent woo_attendee_intent } #you can only relax mate
blocked_intents = { murder_attendee_intent befriend_attendee_intent woo_attendee_intent spread_personal_tenet_intent } #you can only relax mate
ai_will_do = {
value = 0
@ -3289,6 +3304,9 @@ activity_feast = {
feast_option_food = {
feast_food_bad = {
is_shown = { has_dlc_feature = advanced_activities }
default = {
has_personal_tenet_flag = tenet_vows_of_poverty_humble_host
}
ai_will_do = {
value = 0
@ -3299,7 +3317,18 @@ activity_feast = {
}
}
feast_food_normal = {
default = yes
is_valid = {
trigger_if = {
limit = { has_dlc_feature = advanced_activities }
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
}
default = {
OR = {
NOT = { has_personal_tenet_flag = tenet_vows_of_poverty_humble_host }
NOT = { has_dlc_feature = advanced_activities }
}
}
cost = {
gold = {
if = {
@ -3321,6 +3350,13 @@ activity_feast = {
}
else = {
value = feast_food_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
treasury = { # Make sure this matches the gold cost above
@ -3341,6 +3377,13 @@ activity_feast = {
}
else = {
value = feast_food_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
piety = {
@ -3358,6 +3401,13 @@ activity_feast = {
}
else = {
value = feast_food_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
barter_goods = {
@ -3375,6 +3425,13 @@ activity_feast = {
}
else = {
value = feast_food_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
}
@ -3393,6 +3450,9 @@ activity_feast = {
}
feast_food_good = {
is_shown = { has_dlc_feature = advanced_activities }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
cost = {
gold = {
@ -3415,6 +3475,13 @@ activity_feast = {
}
else = {
value = feast_food_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
treasury = {
@ -3435,6 +3502,13 @@ activity_feast = {
}
else = {
value = feast_food_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
piety = {
@ -3452,6 +3526,13 @@ activity_feast = {
}
else = {
value = feast_food_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
barter_goods = {
@ -3469,6 +3550,13 @@ activity_feast = {
}
else = {
value = feast_food_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
}
@ -3487,6 +3575,9 @@ activity_feast = {
feast_option_courses = {
feast_courses_bad = {
is_shown = { has_dlc_feature = advanced_activities }
default = {
has_personal_tenet_flag = tenet_vows_of_poverty_humble_host
}
ai_will_do = {
value = 0
@ -3497,7 +3588,18 @@ activity_feast = {
}
}
feast_courses_normal = {
default = yes
is_valid = {
trigger_if = {
limit = { has_dlc_feature = advanced_activities }
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
}
default = {
OR = {
NOT = { has_personal_tenet_flag = tenet_vows_of_poverty_humble_host }
NOT = { has_dlc_feature = advanced_activities }
}
}
cost = {
gold = {
@ -3520,6 +3622,13 @@ activity_feast = {
}
else = {
value = feast_courses_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
treasury = { # Make sure this matches the gold cost above
@ -3540,6 +3649,13 @@ activity_feast = {
}
else = {
value = feast_courses_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
@ -3558,6 +3674,13 @@ activity_feast = {
}
else = {
value = feast_courses_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
@ -3584,6 +3707,13 @@ activity_feast = {
}
else = {
value = feast_courses_normal_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
if = {
limit = { has_variable = mpo_nerge_1060_free_feast }
@ -3610,6 +3740,9 @@ activity_feast = {
}
feast_courses_good = {
is_shown = { has_dlc_feature = advanced_activities }
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
cost = {
gold = {
@ -3632,6 +3765,13 @@ activity_feast = {
}
else = {
value = feast_courses_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
treasury = {
@ -3652,6 +3792,13 @@ activity_feast = {
}
else = {
value = feast_courses_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
piety = {
@ -3669,6 +3816,13 @@ activity_feast = {
}
else = {
value = feast_courses_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
@ -3687,6 +3841,13 @@ activity_feast = {
}
else = {
value = feast_courses_good_value
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
multiply = {
value = 0
desc = pam_sf_free_feast_discount_desc
}
}
}
}
}
@ -3736,6 +3897,9 @@ activity_feast = {
}
}
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
cost = {
gold = {
@ -3882,6 +4046,9 @@ activity_feast = {
}
}
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
cost = {
gold = {
@ -4023,6 +4190,9 @@ activity_feast = {
has_dlc_feature = advanced_activities
domicile ?= { has_domicile_parameter = estate_unlock_feast_influence_option_3 }
}
is_valid = {
pam_vows_of_poverty_premium_activity_option_valid_trigger = yes
}
cost = {
gold = {
@ -4635,6 +4805,8 @@ activity_feast = {
guest_chokes_on_bone guest_brawl spouse_insults_host ridiculed_food
host_gains_diplo_xp host_gains_steward_xp host_gains_intrigue_xp
leftover_food_giveaway virtuous_feast noble_privileges good_kitty good_puppy antiquarian_admires_artifact jester_entertained_guests apa_executioner
apa_passive_religious_learning_host apa_passive_religious_learning_guest
apa_pam_spread_tenet_host apa_pam_spread_tenet_guest apa_pam_mendicant_preachers_conversion
}
chance_of_no_event = 5
}
@ -4674,6 +4846,27 @@ activity_feast = {
limit = { has_variable = mpo_nerge_1060_free_feast }
remove_variable = mpo_nerge_1060_free_feast
}
# By God Alone - Secular Faith & Rite: spend the promised free feast (0038) as it begins.
if = {
limit = { has_character_modifier = pam_sf_free_feast_modifier }
remove_character_modifier = pam_sf_free_feast_modifier
}
#The Christian Church catalyst
# if = {
# limit = {
# is_clergy = yes
# any_character_situation = {
# situation_type = the_christian_church
# situation_top_has_catalyst = catalyst_clergy_hosted_feast
# }
# }
# situation:the_christian_church = {
# trigger_situation_catalyst = {
# catalyst = catalyst_clergy_hosted_feast
# character = scope:host
# }
# }
# }
#Mandala Serenity tracker
if = {
limit = {
@ -4932,6 +5125,8 @@ activity_feast = {
}
else = {
disburse_feast_reveler_rewards = yes
hedonistic_feast_gout_risk_effect = yes
hedonistic_obesity_modifier_sync_effect = yes
trigger_event = feast.7151
}
}
@ -4948,9 +5143,9 @@ activity_feast = {
option = feast_type_murder
}
}
NOR = {
has_variable = murder_feast_murder_failure_var
has_variable = murder_feast_murder_back_down
has_none_of_variables = {
name = murder_feast_murder_failure_var
name = murder_feast_murder_back_down
}
}
set_global_variable = {
@ -4966,6 +5161,33 @@ activity_feast = {
}
}
# The Christian Church catalyst: an Archbishop or Cardinal attended a secular ruler's feast
# if = {
# limit = {
# this = scope:host
# is_clergy = no
# any_character_situation = {
# situation_type = the_christian_church
# situation_top_has_catalyst = catalyst_clergy_attended_feast
# }
# scope:activity = {
# any_attending_character = {
# this != scope:host
# OR = {
# any_held_title = { has_clerical_region = yes }
# exists = clerical_elector_title
# }
# }
# }
# }
# situation:the_christian_church = {
# trigger_situation_catalyst = {
# catalyst = catalyst_clergy_attended_feast
# character = scope:host
# }
# }
# }
# Struggle Catalysts
# fp3_struggle_catalysts_for_activities_effect = yes
}

View file

@ -97,6 +97,10 @@ coronation_seize_advantages = {
icon = seize_advantages_intent
scripted_animation = { animation = interested }
is_valid = {
highest_held_title_tier >= tier_county
}
auto_complete = yes
ai_will_do = {