N3OW/common/decisions/00_holy_order_decisions.txt

486 lines
10 KiB
Text
Raw Normal View History

2026-05-20 04:02:41 -04:00
### Found Holy Order ###
2026-05-19 13:49:18 +01:00
create_holy_order_decision = {
2026-05-20 04:02:41 -04:00
picture = {
trigger = {
culture = { has_graphical_east_asia_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/holding_types/tgp_chinese_pagoda.dds"
}
picture = {
trigger = {
culture = { has_graphical_india_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/holding_types/tgp_castle_se_asia.dds"
}
2026-05-19 13:49:18 +01:00
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
decision_group_type = major
ai_goal = yes
is_shown = {
is_landed = yes
2026-05-20 04:02:41 -04:00
NOR = {
faith = {
has_doctrine = special_doctrine_immaterial_harmony
}
2026-05-19 13:49:18 +01:00
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 }
}
}
}
}
widget = {
controller = create_holy_order
barony_valid = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
}
trigger_else = {
custom_description = {
text = "has_holy_order_barony_selected"
always = no
}
}
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
is_at_war = no
}
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_else = {
custom_description = {
text = "is_king_or_emperor"
highest_held_title_tier >= tier_kingdom
}
}
custom_description = {
text = "has_two_castle_county"
any_held_county = {
any_in_de_jure_hierarchy = {
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
}
trigger_if = {
limit = {
exists = faith.religious_head
2026-05-20 04:02:41 -04:00
root != root.faith.religious_head
2026-05-19 13:49:18 +01:00
}
faith.religious_head = {
opinion = {
target = root
value >= {
value = 0
if = {
limit = { is_ai = no }
add = high_positive_opinion
}
}
}
}
}
trigger_if = {
limit = {
is_ai = yes
}
piety_level >= 1
}
trigger_else = {
piety_level >= 3
}
}
cost = {
gold = {
2026-05-20 04:02:41 -04:00
value = 0
if = {
limit = {
has_treasury = no
}
add = holy_order_gold_cost
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = holy_order_gold_cost
}
2026-05-19 13:49:18 +01:00
}
piety = {
value = holy_order_piety_cost
}
}
effect = {
custom_tooltip = create_holy_order_decision_effect_message
if = { # If you have no valid barony this will throw errors when you open the decision - we add this check to avoid that
limit = {
exists = scope:barony
}
hidden_effect = {
if = {
2026-05-20 04:02:41 -04:00
limit = { scope:barony.holder != root }
2026-05-19 13:49:18 +01:00
create_title_and_vassal_change = {
type = leased_out
save_scope_as = change
add_claim_on_loss = no
}
scope:barony = {
change_title_holder_include_vassals = {
holder = root
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
}
}
create_character = {
template = holy_order_leader_character
location = scope:barony.title_province
save_scope_as = leader
}
create_holy_order_neutral_effect = {
LEADER = scope:leader
CAPITAL = scope:barony
NEW_HO_SCOPE = new_holy_order
FOUNDER = root
}
}
create_holy_order_effect = yes
}
ai_potential = {
2026-05-20 04:02:41 -04:00
highest_held_title_tier >= tier_kingdom
2026-05-19 13:49:18 +01:00
is_playable_character = yes
OR = {
any_held_title = {
2026-05-20 04:02:41 -04:00
title_tier = barony
2026-05-19 13:49:18 +01:00
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
any_vassal = {
primary_title.tier = tier_barony
any_held_title = {
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
}
}
ai_will_do = {
base = 200
modifier = {
add = {
faith = {
# Don't create more than 5 holy orders for a faith
every_faith_holy_order = {
subtract = 40
}
}
}
}
2026-05-20 04:02:41 -04:00
modifier = {
government_has_flag = government_is_mandala
add = -150
}
2026-05-19 13:49:18 +01:00
}
}
2026-05-20 04:02:41 -04:00
### Borrow Gold from Holy Order ###
2026-05-19 13:49:18 +01:00
borrow_from_holy_order_decision = { #by Linnéa Thimrén
2026-05-20 04:02:41 -04:00
picture = {
trigger = {
culture = { has_graphical_india_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/decisions/hindu_religious.dds"
}
2026-05-19 13:49:18 +01:00
picture = {
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
}
desc = borrow_from_holy_order_decision_desc
selection_tooltip = borrow_from_holy_order_decision_tooltip
2026-05-20 04:02:41 -04:00
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 72
kingdom = 72
empire = 72
hegemony = 72
}
2026-05-19 13:49:18 +01:00
cost = {
piety = 50
}
cooldown = { days = 5475 }
is_shown = {
is_playable_character = yes
highest_held_title_tier > tier_barony
faith = {
2026-05-20 04:02:41 -04:00
any_faith_holy_order = { count >= 1 } #Your faith must have a Holy Order
2026-05-19 13:49:18 +01:00
}
2026-05-20 04:02:41 -04:00
# cannot already have a loan - keep it simple
2026-05-19 13:49:18 +01:00
NOR = {
exists = var:loan_amount_owed
exists = var:loan_holder
}
}
is_valid_showing_failures_only = {
is_available = yes
custom_description = {
text = borrow_from_holy_order_gold_condition
faith = {
any_faith_holy_order = {
leader = {
gold >= holy_order_gold_value
2026-05-20 04:02:41 -04:00
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
2026-05-19 13:49:18 +01:00
}
}
}
}
}
effect = {
hidden_effect = {
faith = {
random_faith_holy_order = {
limit = {
2026-05-20 04:02:41 -04:00
leader = {
gold >= holy_order_gold_value
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
}
2026-05-19 13:49:18 +01:00
}
2026-05-20 04:02:41 -04:00
leader = { save_scope_as = recipient }
2026-05-19 13:49:18 +01:00
save_scope_as = order
}
}
trigger_event = holy_order.0200
}
custom_tooltip = borrow_from_holy_order_decision_effect_tooltip
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 50
ai_value_modifier = {
ai_zeal = -0.5
}
ai_value_modifier = {
ai_greed = 0.5
}
}
}
2026-05-20 04:02:41 -04:00
### Revoke Holy Order Lease ###
2026-05-19 13:49:18 +01:00
cancel_holy_order_lease_decision = {
2026-05-20 04:02:41 -04:00
picture = {
trigger = {
culture = { has_graphical_india_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/decisions/hindu_soldiers.dds"
}
2026-05-19 13:49:18 +01:00
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
desc = {
first_valid = {
triggered_desc = {
trigger = {
faith = {
faith_hostility_level = {
target = scope:barony.lessee_title.holder.faith
value >= faith_hostile_level
}
}
}
desc = cancel_holy_order_lease_hostile_decision_desc
}
desc = cancel_holy_order_lease_decision_desc
}
}
2026-05-20 04:02:41 -04:00
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
2026-05-19 13:49:18 +01:00
is_shown = {
is_landless_adventurer = no
is_playable_character = yes
any_sub_realm_barony = {
2026-05-20 04:02:41 -04:00
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
2026-05-19 13:49:18 +01:00
}
}
widget = {
controller = revoke_holy_order_lease
barony_valid = {
trigger_if = {
limit = { exists = this }
2026-05-20 04:02:41 -04:00
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
2026-05-19 13:49:18 +01:00
}
trigger_else = {
custom_description = {
text = "has_holy_order_barony_selected"
always = no
}
}
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
is_at_war = no
}
effect = {
revoke_holy_order_lease_effect = {
CHARACTER = root
TARGET = scope:barony.lessee
BARONY = scope:barony
}
hidden_effect = {
#Message is sent through the on_holy_order_destroyed on_action instead!
#send_interface_toast = {
# type = holy_order_founded_message
# desc = i_created_holy_order_message
# left_icon = scope:leader
# right_icon = scope:new_holy_order.title
#}
#save_scope_as = holy_order_creator
#every_ruler = {
# limit = {
# faith = scope:holy_order_creator.faith
2026-05-20 04:02:41 -04:00
# this != scope:holy_order_creator
2026-05-19 13:49:18 +01:00
# }
# send_interface_message = {
# type = holy_order_founded_message
# desc = someone_created_holy_order_message
# left_icon = scope:holy_order_creator
# right_icon = scope:new_holy_order.title
# }
#}
#every_neighboring_top_liege_realm_owner = {
# limit = {
2026-05-20 04:02:41 -04:00
# faith != scope:holy_order_creator.faith
2026-05-19 13:49:18 +01:00
# }
# send_interface_message = {
# type = enemy_holy_order_founded_message
# desc = other_faith_neighbor_created_holy_order_message
# left_icon = scope:holy_order_creator
# right_icon = scope:new_holy_order.title
# }
#}
}
}
ai_potential = {
2026-05-20 04:02:41 -04:00
is_playable_character = yes
highest_held_title_tier >= tier_county
any_sub_realm_barony = {
county.holder = { is_ai = yes }
is_under_holy_order_lease = yes
2026-05-19 13:49:18 +01:00
}
}
ai_will_do = {
base = 0
# revoke titles leased to holy orders of the wrong faith
modifier = {
add = 100
exists = scope:barony.lessee
2026-05-20 04:02:41 -04:00
scope:barony.lessee.faith != root.faith
2026-05-19 13:49:18 +01:00
}
# Revoke if cynical
modifier = {
add = 100
ai_zeal <= -50
exists = scope:barony.lessee
NOT = {
any_patroned_holy_order = {
leader = {
this = scope:barony.lessee
}
}
}
}
}
}