on actions updated files

This commit is contained in:
Thakia 2026-10-09 17:58:54 -03:00
parent 707660e545
commit 6fe43fad95
13 changed files with 3892 additions and 965 deletions

View file

@ -2,10 +2,33 @@
# scope:character: The character that paid for the construction, if available
on_building_completed = {
effect = {
# Bonus only come with buildings acctually constructed by you
scope:character ?= {
if = {
limit = {
is_available_quick = {
alive = yes
advanced_ruler = yes
}
has_personal_tenet_flag = spiritual_fulfillment_from_building_personal
NOT = { has_variable = spiritual_fulfillment_from_building_personal }
}
send_interface_toast = {
title = spiritual_fulfillment_from_building_personal_toast
left_icon = root.county
change_spiritual_fulfillment = miniscule_spiritual_fulfillment_value
set_variable = {
name = spiritual_fulfillment_from_building_personal
value = yes
days = 30
}
}
}
}
#save the county holder as the character in case the construction wasn't started through GUI or by the AI
if = {
limit = {
NOT = { exists = scope:character }
NOT = { scope:character ?= { is_alive = yes } }
}
root.county.holder = {
save_scope_as = character
@ -15,7 +38,7 @@ on_building_completed = {
# Preservation tenet
if = {
limit = {
scope:character.faith = { has_doctrine_parameter = building_temples_gives_development }
scope:character.rite = { rite_has_parameter = building_temples_gives_development }
OR = {
has_holding_type = church_holding
has_holding_type = temple_citadel_holding
@ -25,7 +48,7 @@ on_building_completed = {
scope:character = {
send_interface_toast = {
title = building_temples_gives_development_toast
left_icon = root
left_icon = root.county
root.county = {
change_development_progress_with_overflow = minor_development_progress_gain
set_variable = {
@ -38,6 +61,29 @@ on_building_completed = {
}
}
# Pentarchy tenet
if = {
limit = {
scope:character = { has_personal_tenet_flag = tenet_pentarchy_development_growth_in_holy_sites }
barony = { is_holy_site_of = scope:character.faith }
NOT = { county = { has_variable = dev_gain_cooldown } }
}
scope:character = {
send_interface_toast = {
title = tenet_pentarchy_development_growth_in_holy_sites_toast
left_icon = scope:character
root.county = {
change_development_progress_with_overflow = medium_development_progress_gain
set_variable = {
name = dev_gain_cooldown
value = yes
days = 365
}
}
}
}
}
# Hard working Tradition
if = {
limit = {
@ -131,6 +177,45 @@ on_building_completed = {
}
}
# PAM - Khachkar Personal Tenet
if = {
limit = {
scope:character = { has_personal_tenet_flag = tenet_khachkar_building_bonuses }
OR = {
has_holding_type = church_holding
has_holding_type = temple_citadel_holding
}
}
scope:character = {
send_interface_toast = {
title = pam_khachkar_building_toast
left_icon = root
add_piety = minor_piety_gain
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
}
# PAM - Megaliths Personal Tenet
if = {
limit = {
scope:character = { has_personal_tenet_flag = tenet_megaliths_rough_terrain_construction_fulfillment }
OR = {
terrain = hills
terrain = terraced_hills
terrain = mountains
terrain = desert_mountains
}
}
scope:character = {
send_interface_toast = {
title = pam_megaliths_rough_terrain_construction_toast
left_icon = root
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
}
}
# FP2 Dynasty perk
if = {
limit = {
@ -351,7 +436,24 @@ on_building_completed = {
}
}
}
#The Christian Church Situation catalysts
# if = {
# limit = {
# has_variable = pam_temple_holding_under_construction
# has_holding_type = church_holding
# scope:character = {
# any_character_situation = {
# situation_type = the_christian_church
# situation_top_has_catalyst = catalyst_the_christian_church_temple_holding_created
# }
# }
# }
# remove_variable = pam_temple_holding_under_construction
# situation:the_christian_church = {
# trigger_situation_catalyst = catalyst_the_christian_church_temple_holding_created
# }
# }
# Points of Interest
# Apply them here directly so they are more promptly added than monthly via the POI update
if = {
@ -425,7 +527,7 @@ on_building_completed = {
if = {
limit = {
is_alive = yes
is_landed_or_landless_administrative = yes
is_landed_or_landless_administrative_or_theocratic = yes
is_available = yes
}
#Then remove the safeguard event that would clean up the Builder
@ -611,7 +713,7 @@ on_building_completed = {
scope:character = {
send_interface_toast = {
title = coronation_vassal_building_tt
left_icon = root
left_icon = root.barony
add_prestige = medium_prestige_gain
}
}
@ -624,7 +726,10 @@ on_building_completed = {
scope:character = {
if = {
limit = { government_has_flag = government_is_mandala }
limit = {
is_alive = yes
government_has_flag = government_is_mandala
}
if = {
limit = {
exists = house
@ -658,6 +763,53 @@ on_building_completed = {
}
}
}
#Created Monastic church holding
if = {
limit = {
has_variable = monastic_order_capital
has_building = temple_01
county.holder ?= {
faith = root.var:monastic_order_capital
}
}
county.holder = {
save_scope_as = founder
}
root.barony = { save_scope_as = barony }
scope:founder = {
create_character = {
template = monastic_order_leader_character
location = scope:barony.title_province
save_scope_as = leader
}
scope:leader = {
add_character_flag = {
flag = temp_monastic_leader
days = 5
}
}
create_holy_order_neutral_effect = {
LEADER = scope:leader
CAPITAL = scope:barony
NEW_HO_SCOPE = new_holy_order
FOUNDER = scope:founder
ORDER_TYPE = monastic
}
scope:leader = {
every_courtier = {
add_trait = devoted
}
}
#Choose a tenet and a leader
trigger_event = holy_order.2010
add_achievement_global_variable_effect = {
VARIABLE = holy_order_give_a_dog_a_bone_achievement
VALUE = yes
}
}
remove_variable = monastic_order_capital
}
}
}
@ -674,6 +826,14 @@ on_building_started = {
save_scope_as = character
}
}
if = {
limit = {
has_pam_dlc_trigger = yes
has_holding = no
has_construction_with_flag = temple
}
set_variable = pam_temple_holding_under_construction
}
if = {
limit = {
OR = {
@ -738,7 +898,12 @@ on_building_started = {
# root: The province in which the building was cancelled
# scope:character: The character that paid for the construction, if available
on_building_cancelled = {
effect = {}
effect = {
if = {
limit = { has_variable = pam_temple_holding_under_construction }
remove_variable = pam_temple_holding_under_construction
}
}
}
# root: The holder of the province doing the razing