fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -13,9 +13,13 @@
## pam_theocratic_ruler_events.0010 - The Sword or the Crozier
## pam_theocratic_ruler_events.0011 - Sword of the Fallen Knight
## pam_theocratic_ruler_events.0012 - A Sacred Grove (travel)
## pam_theocratic_ruler_events.0013 - An Angelic Anthem
## pam_theocratic_ruler_events.0013 - An Angelic Inspiration
## pam_theocratic_ruler_events.0014 - A Convert's Plea
## pam_theocratic_ruler_events.0015 - Prayer Hearing
## pam_theocratic_ruler_events.0015 - Readiness to Rule
## pam_theocratic_ruler_events.0016 - Bishops Breaking Bread
## pam_theocratic_ruler_events.0017 - Honest Intentions
## pam_theocratic_ruler_events.0018 - Bishop or Merchant
## pam_theocratic_ruler_events.0019 - In the Midst of Animosity
############################
@ -1456,7 +1460,7 @@ pam_theocratic_ruler_events.0007 = {
is_in_debt = no
NOT = {
any_sub_realm_county = {
county_control <= 90
county_control < county_control_baseline
}
}
exists = liege
@ -1626,7 +1630,7 @@ pam_theocratic_ruler_events.0008 = {
title_held_years <= 15
any_county_province = {
has_holding_type = castle_holding
has_building_or_higher = curtain_walls_01
has_building_or_higher = outer_walls_1
}
}
}
@ -1638,24 +1642,24 @@ pam_theocratic_ruler_events.0008 = {
title_held_years <= 15
any_county_province = {
has_holding_type = castle_holding
has_building_or_higher = curtain_walls_01
has_building_or_higher = outer_walls_1
}
}
save_scope_as = inherited_stone_county
random_county_province = {
limit = {
has_holding_type = castle_holding
has_building_or_higher = curtain_walls_01
has_building_or_higher = outer_walls_1
}
weight = {
base = 1
modifier = {
add = 5
has_building_or_higher = curtain_walls_05
has_building_or_higher = outer_walls_5
}
modifier = {
add = 3
has_building_or_higher = curtain_walls_03
has_building_or_higher = outer_walls_3
}
}
save_scope_as = stone_province
@ -1686,7 +1690,7 @@ pam_theocratic_ruler_events.0008 = {
option = {
name = pam_theocratic_ruler_events.0008.b
scope:stone_province = {
destroy_or_downgrade_building_effect = { BUILDING = curtain_walls }
destroy_or_downgrade_district_building_effect = { BUILDING = outer_walls }
}
domicile ?= {
switch = {
@ -2454,7 +2458,7 @@ pam_theocratic_ruler_events.0012 = {
}
###########################
## pam_theocratic_ruler_events.0013 — An Angelic Anthem
## pam_theocratic_ruler_events.0013 — An Angelic Inspiration
############################
pam_theocratic_ruler_events.0013 = {
@ -2649,9 +2653,25 @@ pam_theocratic_ruler_events.0013 = {
## pam_theocratic_ruler_events.0014 — A Convert's Plea
############################
scripted_trigger pam_theocratic_ruler_0014_offerable_tenet_trigger = {
save_temporary_scope_as = candidate_tenet
root = {
NOR = {
has_personal_tenet = scope:candidate_tenet
rite = { rite_has_tenet = scope:candidate_tenet }
}
}
}
scripted_trigger pam_theocratic_ruler_0014_neighbour_county_trigger = {
culture != root.culture
faith != root.faith
faith.main_rite = {
any_rite_tenet = {
status = core
pam_theocratic_ruler_0014_offerable_tenet_trigger = yes
}
}
}
scripted_effect pam_theocratic_ruler_events_0014_grant_mass_conversion_discount_effect = {
@ -2741,17 +2761,7 @@ pam_theocratic_ruler_events.0014 = {
random_rite_tenet = {
status = core
limit = {
NOT = { root = { has_personal_tenet = this } }
NOT = {
root = {
rite = {
has_tenet_status = {
tenet = this
status = core
}
}
}
}
pam_theocratic_ruler_0014_offerable_tenet_trigger = yes
}
save_scope_as = offered_tenet_a
}
@ -2763,17 +2773,7 @@ pam_theocratic_ruler_events.0014 = {
status = core
limit = {
this != scope:offered_tenet_a
NOT = { root = { has_personal_tenet = this } }
NOT = {
root = {
rite = {
has_tenet_status = {
tenet = this
status = core
}
}
}
}
pam_theocratic_ruler_0014_offerable_tenet_trigger = yes
}
save_scope_as = offered_tenet_b
}
@ -2949,7 +2949,7 @@ pam_theocratic_ruler_events.0014 = {
}
###########################
## pam_theocratic_ruler_events.0015 — Prayer Hearing
## pam_theocratic_ruler_events.0015 — Readiness to Rule
############################
scripted_effect pam_theocratic_ruler_events_0015_highest_clerical_skill_point_effect = {
@ -3147,3 +3147,764 @@ pam_theocratic_ruler_events.0015 = {
}
}
}
###########################
## pam_theocratic_ruler_events.0016 — Bishops Breaking Bread
############################
scripted_trigger pam_theocratic_ruler_events_0016_subordinate_clergy_trigger = {
this != root
is_available_adult = yes
faith = root.faith
}
pam_theocratic_ruler_events.0016 = {
type = character_event
title = pam_theocratic_ruler_events.0016.t
desc = pam_theocratic_ruler_events.0016.desc
theme = faith
window = big_event_window
override_background = { reference = feast }
left_portrait = {
character = root
animation = toast
camera = camera_event_center_close_to_right
}
center_portrait = {
character = scope:subordinate_bishop_1
animation = debating
camera = camera_event_center_pointing_forward_fov35
}
right_portrait = {
character = scope:subordinate_bishop_2
animation = chaplain
camera = camera_event_center_pointing_forward_fov35
}
cooldown = { years = 10 }
trigger = {
pam_government_is_religious_playable_trigger = yes
is_landed = yes
is_available_adult = yes
any_subordinate = {
count >= 2
pam_theocratic_ruler_events_0016_subordinate_clergy_trigger = yes
}
}
immediate = {
every_subordinate = {
limit = {
pam_theocratic_ruler_events_0016_subordinate_clergy_trigger = yes
}
add_to_list = pam_theocratic_ruler_events_0016_bishop_candidates
}
if = {
limit = {
list_size = {
name = pam_theocratic_ruler_events_0016_bishop_candidates
value >= 2
}
}
random_in_list = {
list = pam_theocratic_ruler_events_0016_bishop_candidates
save_scope_as = subordinate_bishop_1
}
random_in_list = {
list = pam_theocratic_ruler_events_0016_bishop_candidates
limit = {
this != scope:subordinate_bishop_1
}
save_scope_as = subordinate_bishop_2
}
}
if = {
limit = {
scope:subordinate_bishop_1 = {
has_relation_friend = root
}
}
scope:subordinate_bishop_1 = {
save_scope_as = friend_subordinate_bishop
}
}
else_if = {
limit = {
scope:subordinate_bishop_2 = {
has_relation_friend = root
}
}
scope:subordinate_bishop_2 = {
save_scope_as = friend_subordinate_bishop
}
}
if = {
limit = {
scope:subordinate_bishop_1 = {
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
}
scope:subordinate_bishop_2 = {
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
}
}
random_list = {
50 = {
scope:subordinate_bishop_1 = {
save_scope_as = tenet_teacher_bishop
}
}
50 = {
scope:subordinate_bishop_2 = {
save_scope_as = tenet_teacher_bishop
}
}
}
}
else_if = {
limit = {
scope:subordinate_bishop_1 = {
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
}
}
scope:subordinate_bishop_1 = {
save_scope_as = tenet_teacher_bishop
}
}
else_if = {
limit = {
scope:subordinate_bishop_2 = {
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
}
}
scope:subordinate_bishop_2 = {
save_scope_as = tenet_teacher_bishop
}
}
if = {
limit = {
exists = scope:tenet_teacher_bishop
}
scope:tenet_teacher_bishop = {
random_character_tenet = {
knowledge_filter = known
limit = {
save_temporary_scope_as = pam_theocratic_ruler_events_0016_tenet_candidate
NOT = { root = { knows_tenet = scope:pam_theocratic_ruler_events_0016_tenet_candidate } }
root.faith.main_rite = {
has_tenet_status = {
tenet = scope:pam_theocratic_ruler_events_0016_tenet_candidate
status = unknown
}
}
}
save_scope_as = shared_tenet
}
}
}
}
# Accept a friend's pledge of support.
option = {
name = pam_theocratic_ruler_events.0016.a
reason = friend
trigger = {
exists = scope:friend_subordinate_bishop
}
add_piety = medium_piety_value
stress_and_fulfillment_impact = {
zealous = minor_stress_impact_loss
generous = minor_stress_impact_loss
}
ai_chance = {
base = 35
ai_value_modifier = {
ai_zeal = 0.35
ai_compassion = 0.2
}
}
}
# Let us speak of wise stewardship.
option = {
name = pam_theocratic_ruler_events.0016.b
skill = stewardship
duel = {
skill = stewardship
value = medium_skill_rating
60 = {
desc = pam_theocratic_ruler_events.0016.b.success
compare_modifier = {
value = scope:duel_value
multiplier = 3.5
}
send_interface_toast = {
type = event_toast_effect_good
title = pam_theocratic_ruler_events.0016.b.toast.success
left_icon = scope:subordinate_bishop_1
right_icon = scope:subordinate_bishop_2
add_stewardship_lifestyle_xp = minor_lifestyle_xp
scope:subordinate_bishop_1 = {
add_stewardship_skill = 1
}
scope:subordinate_bishop_2 = {
add_stewardship_skill = 1
}
}
}
40 = {
desc = pam_theocratic_ruler_events.0016.b.failure
compare_modifier = {
value = scope:duel_value
multiplier = -3.5
}
send_interface_toast = {
type = event_toast_effect_neutral
title = pam_theocratic_ruler_events.0016.b.toast.failure
left_icon = root
add_stress = minor_stress_gain
}
}
}
stress_and_fulfillment_impact = {
diligent = minor_stress_impact_loss
lazy = minor_stress_impact_gain
}
ai_chance = {
base = 30
ai_value_modifier = {
ai_rationality = 0.3
}
}
}
# Learn a tenet one bishop knows.
option = {
name = pam_theocratic_ruler_events.0016.c
trigger = {
exists = scope:shared_tenet
}
add_known_tenet = scope:shared_tenet
add_learning_lifestyle_xp = minor_lifestyle_xp
stress_and_fulfillment_impact = {
zealous = minor_stress_impact_loss
cynical = minor_stress_impact_gain
}
ai_chance = {
base = 25
ai_value_modifier = {
ai_zeal = 0.3
ai_rationality = 0.25
}
}
}
# Break bread and deepen bonds.
option = {
name = pam_theocratic_ruler_events.0016.d
trigger = {
NOT = { exists = scope:friend_subordinate_bishop }
}
progress_towards_friend_effect = {
REASON = friend_broke_bread_over_faith_reason
CHARACTER = scope:subordinate_bishop_1
OPINION = 0
}
progress_towards_friend_effect = {
REASON = friend_broke_bread_over_faith_reason
CHARACTER = scope:subordinate_bishop_2
OPINION = 0
}
stress_and_fulfillment_impact = {
compassionate = minor_stress_impact_loss
shy = minor_stress_impact_gain
}
ai_chance = {
base = 30
ai_value_modifier = {
ai_compassion = 0.35
ai_sociability = 0.25
}
}
}
}
###########################
## pam_theocratic_ruler_events.0017 — Honest Intentions
############################
pam_theocratic_ruler_events.0017 = {
type = character_event
title = pam_theocratic_ruler_events.0017.t
desc = pam_theocratic_ruler_events.0017.desc
theme = faith
override_background = { reference = council_chamber }
left_portrait = {
character = root
animation = priest_good
}
lower_center_portrait = {
character = scope:church_authority
animation = zealous_superior
}
right_portrait = {
character = cp:councillor_chancellor
animation = chancellor
}
cooldown = { years = 10 }
trigger = {
pam_government_is_religious_playable_trigger = yes
is_landed = yes
is_available_adult = yes
exists = top_participant_group:the_christian_church
is_decision_on_cooldown = pam_shape_the_christian_church_decision
OR = {
exists = superior
NOT = {
faith.main_rite = {
head_of_rite ?= root
}
}
}
cp:councillor_chancellor ?= {
is_available_adult = yes
}
faith = {
OR = {
religious_head ?= {
NOT = { this = root }
is_available_adult = yes
}
main_rite = {
head_of_rite ?= {
NOT = { this = root }
is_available_adult = yes
}
}
}
}
}
immediate = {
cp:councillor_chancellor = { save_scope_as = chancellor }
if = {
limit = {
faith.religious_head ?= {
NOT = { this = root }
is_available_adult = yes
}
}
faith.religious_head = { save_scope_as = church_authority }
}
else = {
faith.main_rite.head_of_rite = { save_scope_as = church_authority }
}
}
# I could do so much more.
option = {
name = pam_theocratic_ruler_events.0017.a
trigger = {
has_trait = ambitious
}
custom_tooltip = {
text = pam_theocratic_ruler_events.0017.a.cooldown_tt
remove_decision_cooldown = pam_shape_the_christian_church_decision
}
scope:church_authority = {
add_opinion = {
modifier = grateful_opinion
target = root
opinion = 10
}
}
stress_and_fulfillment_impact = {
ambitious = minor_stress_impact_loss
zealous = minor_stress_impact_loss
}
ai_chance = {
base = 40
ai_value_modifier = {
ai_zeal = 0.35
ai_boldness = 0.25
}
}
}
# I am but a servant
option = {
name = pam_theocratic_ruler_events.0017.b
add_piety = medium_piety_value
scope:church_authority = {
add_opinion = {
modifier = grateful_opinion
target = root
opinion = 5
}
}
stress_and_fulfillment_impact = {
arrogant = minor_stress_impact_gain
humble = minor_stress_impact_loss
}
ai_chance = {
base = 30
ai_value_modifier = {
ai_zeal = 0.3
}
}
}
# No one questions my convictions.
option = {
name = pam_theocratic_ruler_events.0017.c
add_prestige = medium_prestige_gain
scope:church_authority = {
add_opinion = {
modifier = disappointed_opinion
target = root
opinion = -15
}
}
stress_and_fulfillment_impact = {
arrogant = minor_stress_impact_loss
deceitful = minor_stress_impact_loss
humble = minor_stress_impact_gain
}
ai_chance = {
base = 20
ai_value_modifier = {
ai_honor = -0.2
ai_boldness = 0.15
}
}
}
}
###########################
## pam_theocratic_ruler_events.0018 — Bishop or Merchant
############################
scripted_trigger pam_theocratic_ruler_events_0018_political_bishop_trigger = {
this != root
is_available_adult = yes
faith = root.faith
NOT = { has_trait = zealous }
OR = {
has_trait = greedy
has_trait = cynical
stewardship > learning
}
}
pam_theocratic_ruler_events.0018 = {
type = character_event
title = pam_theocratic_ruler_events.0018.t
desc = pam_theocratic_ruler_events.0018.desc
theme = faith
override_background = { reference = council_chamber }
left_portrait = {
character = root
animation = villain
camera = camera_event_center_pointing_right
}
right_portrait = {
character = scope:political_bishop
animation = debating
}
cooldown = { years = 8 }
trigger = {
pam_government_is_religious_playable_trigger = yes
is_landed = yes
is_available_adult = yes
any_subordinate = {
pam_theocratic_ruler_events_0018_political_bishop_trigger = yes
}
}
immediate = {
every_subordinate = {
limit = {
pam_theocratic_ruler_events_0018_political_bishop_trigger = yes
}
add_to_list = pam_theocratic_ruler_events_0018_bishop_candidates
}
if = {
limit = {
list_size = {
name = pam_theocratic_ruler_events_0018_bishop_candidates
value >= 1
}
}
ordered_in_list = {
list = pam_theocratic_ruler_events_0018_bishop_candidates
order_by = stewardship
save_scope_as = political_bishop
}
}
}
# Praise the bishop's stewardship.
option = {
name = pam_theocratic_ruler_events.0018.a
add_character_modifier = {
modifier = pam_bishop_or_merchant_modifier
years = 5
}
scope:political_bishop = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 10
}
}
stress_and_fulfillment_impact = {
gregarious = minor_stress_impact_loss
cynical = minor_stress_impact_loss
zealous = minor_stress_impact_gain
}
ai_chance = {
base = 35
ai_value_modifier = {
ai_rationality = 0.3
ai_sociability = 0.25
}
}
}
# Demand a return to spiritual duty.
option = {
name = pam_theocratic_ruler_events.0018.b
add_piety = medium_piety_gain
scope:political_bishop = {
add_opinion = {
modifier = disappointed_opinion
target = root
opinion = -10
}
add_stress = minor_stress_gain
}
stress_and_fulfillment_impact = {
zealous = minor_stress_impact_loss
diligent = minor_stress_impact_loss
cynical = minor_stress_impact_gain
}
ai_chance = {
base = 40
ai_value_modifier = {
ai_zeal = 0.4
ai_honor = 0.2
}
}
}
}
###########################
## pam_theocratic_ruler_events.0019 — In the Midst of Animosity
############################
pam_theocratic_ruler_events.0019 = {
type = character_event
title = pam_theocratic_ruler_events.0019.t
desc = pam_theocratic_ruler_events.0019.desc
theme = faith
override_background = { reference = council_chamber }
left_portrait = {
character = root
animation = chess_certain_win
}
lower_center_portrait = {
character = scope:animosity_liege
animation = disapproval
}
lower_right_portrait = {
character = scope:animosity_superior
animation = zealous_superior
}
cooldown = { years = 25 }
trigger = {
pam_government_is_religious_playable_trigger = yes
is_landed = yes
is_available_adult = yes
exists = liege
exists = superior
liege != superior
liege = {
is_available_adult = yes
this != root
}
superior = {
is_available_adult = yes
this != root
}
liege = {
opinion = {
target = root.superior
value <= -25
}
}
superior = {
opinion = {
target = root.liege
value <= -25
}
}
}
immediate = {
liege = { save_scope_as = animosity_liege }
superior = { save_scope_as = animosity_superior }
}
# Play them against each other.
option = {
name = pam_theocratic_ruler_events.0019.c
flavor = pam_theocratic_ruler_events.0019.c.flavor
skill = intrigue
trigger = {
intrigue >= high_skill_rating
}
show_as_unavailable = {
always = yes
}
add_intrigue_lifestyle_xp = major_lifestyle_xp
scope:animosity_liege = {
add_opinion = {
modifier = disappointed_opinion
target = scope:animosity_superior
opinion = -15
}
}
scope:animosity_superior = {
add_opinion = {
modifier = disappointed_opinion
target = scope:animosity_liege
opinion = -15
}
}
stress_and_fulfillment_impact = {
deceitful = minor_stress_impact_loss
ambitious = minor_stress_impact_loss
honest = minor_stress_impact_gain
just = minor_stress_impact_gain
}
ai_chance = {
base = 25
ai_value_modifier = {
ai_honor = -0.4
ai_rationality = 0.2
}
}
}
# Help them find common ground.
option = {
name = pam_theocratic_ruler_events.0019.d
flavor = pam_theocratic_ruler_events.0019.d.flavor
skill = diplomacy
trigger = {
diplomacy >= high_skill_rating
}
show_as_unavailable = {
always = yes
}
add_diplomacy_lifestyle_xp = major_lifestyle_xp
scope:animosity_liege = {
add_opinion = {
modifier = grateful_opinion
target = scope:animosity_superior
opinion = 15
}
}
scope:animosity_superior = {
add_opinion = {
modifier = grateful_opinion
target = scope:animosity_liege
opinion = 15
}
}
stress_and_fulfillment_impact = {
diplomat = minor_stress_impact_loss
compassionate = minor_stress_impact_loss
wrathful = minor_stress_impact_gain
}
ai_chance = {
base = 25
ai_value_modifier = {
ai_compassion = 0.3
ai_rationality = 0.25
}
}
}
# Openly support my liege.
option = {
name = pam_theocratic_ruler_events.0019.a
add_prestige = medium_prestige_gain
scope:animosity_liege = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 10
}
}
scope:animosity_superior = {
add_opinion = {
modifier = disappointed_opinion
target = root
opinion = -10
}
}
stress_and_fulfillment_impact = {
ambitious = minor_stress_impact_loss
craven = minor_stress_impact_gain
}
ai_chance = {
base = 30
ai_value_modifier = {
ai_boldness = 0.25
ai_zeal = -0.15
}
}
}
# Openly support my superior.
option = {
name = pam_theocratic_ruler_events.0019.b
add_piety = medium_piety_gain
scope:animosity_superior = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 10
}
}
scope:animosity_liege = {
add_opinion = {
modifier = disappointed_opinion
target = root
opinion = -10
}
}
stress_and_fulfillment_impact = {
zealous = minor_stress_impact_loss
craven = minor_stress_impact_gain
}
ai_chance = {
base = 30
ai_value_modifier = {
ai_zeal = 0.3
ai_boldness = 0.15
}
}
}
}