Fixes to saints (again) and holy orders probably

This commit is contained in:
Greekman 2026-10-23 01:13:20 +01:00
parent 78d2874d13
commit 5ea21e5248
11 changed files with 371 additions and 377 deletions

View file

@ -1,4 +1,4 @@
### Found Holy Order ###
### Found Military Order ###
create_holy_order_decision = {
picture = {
trigger = {
@ -12,6 +12,12 @@ create_holy_order_decision = {
}
reference = "gfx/interface/illustrations/holding_types/tgp_castle_se_asia.dds"
}
picture = {
trigger = {
OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
}
reference = "gfx/interface/illustrations/event_story/pam_the_christian_church_crusade.dds"
}
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
@ -21,59 +27,42 @@ create_holy_order_decision = {
is_shown = {
is_landed = yes
NOR = {
faith = {
has_doctrine = special_doctrine_immaterial_harmony
}
faith = {
any_faith_holy_order = {
holy_order_patron = root
save_temporary_scope_as = order
}
}
}
# Jomsvikings should use their special decision if appropriate.
trigger_if = {
limit = { has_fp1_dlc_trigger = yes }
faith = {
NOT = { fp1_valid_norse_faith_for_jomsvikings_trigger = yes }
}
}
# trigger_if = {
# limit = {
# any_character_struggle = {
# involvement = involved
# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes
# }
# highest_held_title_tier >= tier_duchy
# }
# NOT = {
# any_sub_realm_barony = {
# is_under_holy_order_lease = yes
# }
# }
# }
OR = {
# AND = {
# any_character_struggle = {
# involvement = involved
# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes
# }
# highest_held_title_tier >= tier_duchy
# }
highest_held_title_tier >= tier_kingdom
any_held_county = {
any_in_de_jure_hierarchy = {
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
AND = {
highest_held_title_tier >= tier_duchy
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = holy_order_can_be_created_by_dukes
}
}
}
any_patroned_holy_order = {
count = 0
leader ?= {
government_has_flag = government_is_military_holy_order
}
}
character_can_create_holy_order_basic_trigger = yes
# Jomsvikings should use their special decision if appropriate.
trigger_if = {
limit = { has_fp1_dlc_trigger = yes }
faith = {
fp1_valid_norse_faith_for_jomsvikings_trigger = no
}
}
}
widget = {
controller = create_holy_order
barony_valid = {
title_valid = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
@ -93,16 +82,16 @@ create_holy_order_decision = {
}
is_valid = {
# trigger_if = {
# limit = {
# any_character_struggle = {
# involvement = involved
# has_struggle_phase_parameter = holy_order_can_be_created_by_dukes
# }
# }
# highest_held_title_tier >= tier_duchy
# }
trigger_if = {
limit = {
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = holy_order_can_be_created_by_dukes
}
}
highest_held_title_tier >= tier_duchy
}
trigger_else = {
custom_description = {
text = "is_king_or_emperor"
highest_held_title_tier >= tier_kingdom
@ -135,6 +124,25 @@ create_holy_order_decision = {
}
}
}
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
NOT = { rite = { rite_has_parameter = lay_clergy } }
}
OR = {
custom_tooltip = {
text = government_is_theocracy
government_has_flag = government_is_theocracy
}
custom_tooltip = {
text = has_clerical_puppet_tt
OR = {
exists = root.puppet:theological_agent_puppet
exists = root.puppet:external_theological_agent_puppet
}
}
}
}
trigger_if = {
limit = {
@ -200,15 +208,32 @@ create_holy_order_decision = {
location = scope:barony.title_province
save_scope_as = leader
}
hidden_effect = {
scope:leader = { set_character_rite ?= root.rite }
}
create_holy_order_neutral_effect = {
LEADER = scope:leader
CAPITAL = scope:barony
NEW_HO_SCOPE = new_holy_order
FOUNDER = root
ORDER_TYPE = military
}
# PAM - Catalysts
if = {
limit = {
has_pam_dlc_trigger = yes
OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_the_christian_church_founded_military_order
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_the_christian_church_founded_military_order
}
}
}
create_holy_order_effect = yes
create_holy_order_accompanying_effect = yes
}
ai_potential = {
@ -233,7 +258,7 @@ create_holy_order_decision = {
modifier = {
add = {
faith = {
# Don't create more than 5 holy orders for a faith
# Don't create more than 5 Military Orders for a faith
every_faith_holy_order = {
subtract = 40
}
@ -247,7 +272,7 @@ create_holy_order_decision = {
}
}
### Borrow Gold from Holy Order ###
### Borrow Gold from Military Order ###
borrow_from_holy_order_decision = { #by Linnéa Thimrén
picture = {
trigger = {
@ -255,6 +280,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
reference = "gfx/interface/illustrations/decisions/hindu_religious.dds"
}
decision_group_type = religious
picture = {
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
}
@ -277,11 +303,15 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
cooldown = { days = 5475 }
is_shown = {
is_playable_character = yes
highest_held_title_tier > tier_barony
faith = {
any_faith_holy_order = { count >= 1 } #Your faith must have a Holy Order
faith ?= {
any_faith_holy_order = { #Your faith must have a Military Order
leader = {
government_has_flag = government_is_military_holy_order
}
}
}
is_playable_character = yes
# cannot already have a loan - keep it simple
NOR = {
exists = var:loan_amount_owed
@ -296,7 +326,8 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
faith = {
any_faith_holy_order = {
leader = {
gold >= holy_order_gold_value
government_has_flag = government_is_military_holy_order
gold >= root.holy_order_gold_value
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
@ -312,7 +343,8 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
random_faith_holy_order = {
limit = {
leader = {
gold >= holy_order_gold_value
gold >= root.holy_order_gold_value
government_has_flag = government_is_military_holy_order
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
@ -333,6 +365,10 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
ai_will_do = {
base = 50
modifier = {
factor = 0
gold >= holy_order_gold_value
}
ai_value_modifier = {
ai_zeal = -0.5
}
@ -342,7 +378,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
}
### Revoke Holy Order Lease ###
### Revoke Military Order Lease ###
cancel_holy_order_lease_decision = {
picture = {
trigger = {
@ -350,6 +386,7 @@ cancel_holy_order_lease_decision = {
}
reference = "gfx/interface/illustrations/decisions/hindu_soldiers.dds"
}
decision_group_type = religious
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
@ -380,20 +417,20 @@ cancel_holy_order_lease_decision = {
}
is_shown = {
is_landless_adventurer = no
is_playable_character = yes
any_sub_realm_barony = {
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
is_landless_adventurer = no
}
widget = {
controller = revoke_holy_order_lease
barony_valid = {
title_valid = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = scope:ruler }
}
trigger_else = {
custom_description = {
@ -404,16 +441,59 @@ cancel_holy_order_lease_decision = {
}
}
cost = {
piety = {
if = {
limit = {
exists = scope:barony.lessee.faith
}
if = {
limit = { faith = scope:barony.lessee.faith }
add = cancel_holy_order_piety_cost
}
else_if = {
limit = {
faith = {
faith_hostility_level = {
target = scope:barony.lessee.faith
value <= faith_astray_level
}
}
}
add = cancel_astray_holy_order_piety_cost
}
}
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
is_available = yes
age >= 12
is_at_war = no
}
effect = {
revoke_holy_order_lease_effect = {
CHARACTER = root
TARGET = scope:barony.lessee
BARONY = scope:barony
if = {
limit = { exists = scope:barony.lessee }
save_scope_as = cost_paid
revoke_holy_order_lease_effect = {
CHARACTER = root
TARGET = scope:barony.lessee
BARONY = scope:barony
}
# PAM - Catalysts
if = {
limit = {
has_pam_dlc_trigger = yes
OR = { religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion religion = religion:catholic_religion religion = religion:protestant_religion }
situation:the_christian_church ?= {
situation_top_has_catalyst = catalyst_the_christian_church_revoked_order_lease
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_the_christian_church_revoked_order_lease
}
}
}
hidden_effect = {
@ -453,21 +533,36 @@ cancel_holy_order_lease_decision = {
ai_potential = {
is_playable_character = yes
is_available = yes
age >= 12
is_at_war = no
highest_held_title_tier >= tier_county
any_sub_realm_barony = {
county.holder = { is_ai = yes }
is_under_holy_order_lease = yes
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
years_from_game_start >= 1
}
ai_will_do = {
base = 0
# revoke titles leased to holy orders of the wrong faith
# revoke titles leased to Military Orders of the wrong faith
modifier = {
add = 100
add = 75
exists = scope:barony.lessee
scope:barony.lessee.faith != root.faith
}
modifier = {
add = 25
exists = scope:barony.lessee
scope:barony.lessee.faith != root.faith
root.faith = {
faith_hostility_level = {
target = scope:barony.lessee.faith
value >= faith_hostile_level
}
}
}
# Revoke if cynical
modifier = {
add = 100
@ -484,6 +579,8 @@ cancel_holy_order_lease_decision = {
}
}
# Found a Monastic Order
# by Jason Cantalini
create_holy_order_monastic_decision = {
picture = {
trigger = {
@ -645,6 +742,8 @@ create_holy_order_monastic_decision = {
}
}
#Split Leases in your Realm Off into New Order
# by Lonesome Hermit Jason Cantalini
pam_monastic_order_new_movement_decision = {
picture = {
trigger = {