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

@ -50,7 +50,7 @@ on_army_monthly = {
}
}
# called when a county is (fully) occupied. Does not fire on reoccupation by province owner
# called when a county is (fully) occupied. Does not fire on reoccupation by province owner, there is on_liberation_siege_completion for that.
# root is the occupant
# scope:county is the county title
# scope:barony is the barony title that got occupied
@ -404,7 +404,7 @@ on_county_occupied = {
}
}
# called when a siege completes. Does *not* fire on reoccupation by province order
# called when a siege completes. Does not fire on reoccupation by province owner, there is on_liberation_siege_completion for that.
# root is the occupant
# scope:barony is the barony title that got occupied
# scope:county is the county title for the barony
@ -416,6 +416,7 @@ on_siege_completion = {
siege.0101 # Notify holders/lieges that the county was lost to siege
siege.0001 # Capture/kill prisoners
siege.0031 # Chance to steal an artifact
siege.0032 # Chance to steal an artifact from holy site
faction_demand.1010 #Reinforce populist rebels
faction_demand.1110 #Reinforce peasant rebels
siege.1001 #Someone I care about was immured here...
@ -437,7 +438,7 @@ on_siege_completion = {
# If you have the Sacred Destruction tenet get piety/destroy development
if = {
limit = {
faith = { has_doctrine_parameter = successful_sieges_give_piety }
rite = { rite_has_parameter = successful_sieges_give_piety }
}
send_interface_toast = {
title = successful_sieges_give_piety_toast
@ -447,6 +448,54 @@ on_siege_completion = {
}
}
if = {
limit = {
rite = { rite_has_parameter = tenet_aniconism_siege_destruction_bonus }
exists = scope:previous_controller
scope:previous_controller.rite ?= { NOT = { rite_has_tenet = tenet_aniconism } }
}
send_interface_toast = {
title = tenet_aniconism_siege_destruction_toast
left_icon = root
add_piety = minor_piety_gain
scope:barony.county = { change_development_progress_with_overflow = -3 }
}
}
# Extinction of Dharma: razing a rival faith's holdings hastens the dharma's decline
if = {
limit = {
rite = { rite_has_parameter = extinction_of_dharma_siege_bonus }
exists = scope:previous_controller
scope:previous_controller = {
faith.religion = root.faith.religion
NOT = { faith = root.faith }
}
}
send_interface_toast = {
title = extinction_of_dharma_siege_toast
left_icon = root
add_piety = minor_piety_gain
scope:barony.county = { change_development_progress_with_overflow = -3 }
}
}
# If you have the Miles Christi tenet get SP
pam_miles_christi_fulfillment_from_combat_effect = yes
if = {
limit = {
has_personal_tenet_flag = tenet_aniconism_destruction_fulfillment
exists = scope:previous_controller
scope:previous_controller.rite ?= { NOT = { rite_has_tenet = tenet_aniconism } }
}
send_interface_toast = {
title = pam_aniconism_siege_toast
left_icon = root
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
}
# We change your legend to reflect this siege
if = {
limit = {
@ -593,6 +642,17 @@ on_siege_completion = {
}
}
# called when a "liberation siege" completes, meaning a siege that turns an occupied barony into an unoccupied one.
# root is the liberator of the occupation.
# scope:barony is the barony title that got liberated
# scope:county is the county title for the barony
# scope:previous_controller is the previous controller of the county
# scope:war is the war causing the previous controller and the liberator to be hostile
# liberated_baronies is a list of all baronies that the siege caused the occupier to control (I.E., can include baronies with no fort level)
on_liberation_siege_completion = {
}
# Called when a siege loots a holding
# root is sieging character
# scope:barony is the barony title that got looted
@ -667,8 +727,12 @@ on_siege_looting = {
multiply = 5
}
}
tgp_treasury_raided_effect = yes
scope:barony.title_province ?= {
random_army_in_location = {
limit = { army_owner = root }
tgp_treasury_raided_effect = yes
}
}
}
}
@ -871,10 +935,10 @@ on_raid_action_completion = {
tgp_silk_road_raid_effect = yes
}
}
scope:county.holder = { add_to_list = raid_targets }
scope:county.holder.liege ?= { add_to_list = raid_targets }
scope:county.holder.liege.liege ?= { add_to_list = raid_targets }
scope:county.holder.liege.liege.liege ?= { add_to_list = raid_targets }
scope:county.holder = {
add_to_list = raid_targets
every_liege_or_above = { add_to_list = raid_targets }
}
every_in_list = {
list = raid_targets
send_interface_message = {
@ -917,6 +981,15 @@ on_raid_action_completion = {
# log_debug_variable_for_persian_struggle_effect = { VAR = concession_catalyst_raided_involved }
# }
# }
# }
#
# if = { # PAM - Catalysts
# limit = {
# pam_neighboring_unreformed_pagan_raid_you_catalyst_trigger = yes
# }
# situation:the_christian_church = {
# trigger_situation_catalyst = catalyst_neighboring_unreformed_pagan_raid_you
# }
# }
# Commander trait leveling