Yay things work now

This commit is contained in:
Heidesommer 2026-05-20 04:02:41 -04:00
parent 294570f0f6
commit 719ab62dc9
25 changed files with 5584 additions and 5210 deletions

View file

@ -1,4 +1,17 @@
### Found Holy Order ###
create_holy_order_decision = {
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"
}
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
@ -8,7 +21,10 @@ create_holy_order_decision = {
is_shown = {
is_landed = yes
NOT = {
NOR = {
faith = {
has_doctrine = special_doctrine_immaterial_harmony
}
faith = {
any_faith_holy_order = {
holy_order_patron = root
@ -16,12 +32,6 @@ create_holy_order_decision = {
}
}
}
#trigger_if = {
# limit = { faith = { has_doctrine_parameter = no_holy_orders_til_hof } }
# exists = faith.religious_head
#}
# Jomsvikings should use their special decision if appropriate.
trigger_if = {
limit = { has_fp1_dlc_trigger = yes }
@ -83,19 +93,6 @@ create_holy_order_decision = {
}
is_valid = {
trigger_if = {
limit = {
faith = {
has_doctrine = doctrine_holy_order_head
NOT = {
exists = religious_head
}
}
}
can_create_head_of_faith_title_trigger = {
FAITH = this.faith
}
}
trigger_if = {
limit = {
any_character_struggle = {
@ -123,7 +120,7 @@ create_holy_order_decision = {
trigger_if = {
limit = {
exists = faith.religious_head
NOT = { root = root.faith.religious_head }
root != root.faith.religious_head
}
faith.religious_head = {
opinion = {
@ -151,7 +148,22 @@ create_holy_order_decision = {
}
cost = {
gold = {
value = holy_order_gold_cost
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
}
}
piety = {
value = holy_order_piety_cost
@ -167,7 +179,7 @@ create_holy_order_decision = {
}
hidden_effect = {
if = {
limit = { NOT = { scope:barony.holder = root } }
limit = { scope:barony.holder != root }
create_title_and_vassal_change = {
type = leased_out
save_scope_as = change
@ -195,46 +207,16 @@ create_holy_order_decision = {
NEW_HO_SCOPE = new_holy_order
FOUNDER = root
}
#if a ho_hof faith creates a ho and they don't have a hof yet, make it their hof
if = {
limit = {
faith = {
has_doctrine = doctrine_holy_order_head
NOT = {
exists = religious_head
}
}
}
faith = {
set_religious_head_title = scope:new_holy_order.title
create_head_of_faith_title_effect = yes
#TODO add events to inform faithful
}
}
}
create_holy_order_effect = yes
}
ai_potential = {
OR = {
highest_held_title_tier >= tier_kingdom
AND = {
highest_held_title_tier >= tier_duchy
faith = {
has_doctrine = doctrine_holy_order_head
NOT = {
exists = religious_head
}
}
}
}
highest_held_title_tier >= tier_kingdom
is_playable_character = yes
OR = {
any_held_title = {
tier = tier_barony
title_tier = barony
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
any_vassal = {
@ -258,18 +240,35 @@ create_holy_order_decision = {
}
}
}
modifier = {
government_has_flag = government_is_mandala
add = -150
}
}
}
### Borrow Gold from Holy Order ###
borrow_from_holy_order_decision = { #by Linnéa Thimrén
picture = {
trigger = {
culture = { has_graphical_india_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/decisions/hindu_religious.dds"
}
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
ai_check_interval = 72
ai_check_interval_by_tier = {
barony = 0
county = 72
duchy = 72
kingdom = 72
empire = 72
hegemony = 72
}
cost = {
piety = 50
@ -281,10 +280,9 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
is_playable_character = yes
highest_held_title_tier > tier_barony
faith = {
any_faith_holy_order = { #Your faith must have a Holy Order
always = yes
}
any_faith_holy_order = { count >= 1 } #Your faith must have a Holy Order
}
# cannot already have a loan - keep it simple
NOR = {
exists = var:loan_amount_owed
exists = var:loan_holder
@ -299,6 +297,9 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
any_faith_holy_order = {
leader = {
gold >= holy_order_gold_value
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
}
}
}
@ -307,30 +308,23 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
effect = {
hidden_effect = {
set_variable = {
name = amount_to_loan
value = holy_order_gold_value
days = 1
}
add_character_flag = {
flag = borrow_from_holy_order
days = 3560
}
faith = {
random_faith_holy_order = {
limit = {
leader = { gold >= holy_order_gold_value }
}
leader = {
save_scope_as = recipient
leader = {
gold >= holy_order_gold_value
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
}
}
leader = { save_scope_as = recipient }
save_scope_as = order
}
}
trigger_event = holy_order.0200
}
custom_tooltip = borrow_from_holy_order_decision_effect_tooltip
}
ai_potential = {
@ -348,7 +342,14 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
}
### Revoke Holy Order Lease ###
cancel_holy_order_lease_decision = {
picture = {
trigger = {
culture = { has_graphical_india_culture_group_trigger = yes }
}
reference = "gfx/interface/illustrations/decisions/hindu_soldiers.dds"
}
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
@ -369,17 +370,22 @@ cancel_holy_order_lease_decision = {
}
}
ai_check_interval = 36
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
is_shown = {
is_landless_adventurer = no
is_playable_character = yes
any_sub_realm_barony = {
barony_is_valid_for_holy_order_lease_cancellation_trigger = yes
county.holder = root
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
}
widget = {
@ -387,7 +393,7 @@ cancel_holy_order_lease_decision = {
barony_valid = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_cancellation_trigger = yes
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
trigger_else = {
custom_description = {
@ -403,19 +409,6 @@ cancel_holy_order_lease_decision = {
is_at_war = no
}
cost = {
piety = {
value = 0
if = {
limit = {
exists = scope:barony
scope:barony.lessee.faith = root.faith
}
add = cancel_holy_order_piety_cost
}
}
}
effect = {
revoke_holy_order_lease_effect = {
CHARACTER = root
@ -435,7 +428,7 @@ cancel_holy_order_lease_decision = {
#every_ruler = {
# limit = {
# faith = scope:holy_order_creator.faith
# NOT = { this = scope:holy_order_creator }
# this != scope:holy_order_creator
# }
# send_interface_message = {
# type = holy_order_founded_message
@ -446,7 +439,7 @@ cancel_holy_order_lease_decision = {
#}
#every_neighboring_top_liege_realm_owner = {
# limit = {
# NOT = { faith = scope:holy_order_creator.faith }
# faith != scope:holy_order_creator.faith
# }
# send_interface_message = {
# type = enemy_holy_order_founded_message
@ -459,26 +452,11 @@ cancel_holy_order_lease_decision = {
}
ai_potential = {
OR = {
faith:principlist.religious_head_title = { title_held_years > 0 }
AND = {
is_landed = yes
highest_held_title_tier >= tier_county
any_sub_realm_barony = {
county.holder = { is_ai = yes }
is_under_holy_order_lease = yes
}
}
AND = {
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
}
}
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
}
}
@ -488,9 +466,7 @@ cancel_holy_order_lease_decision = {
modifier = {
add = 100
exists = scope:barony.lessee
NOT = {
scope:barony.lessee.faith = root.faith
}
scope:barony.lessee.faith != root.faith
}
# Revoke if cynical
modifier = {
@ -504,10 +480,6 @@ cancel_holy_order_lease_decision = {
}
}
}
#but don't revoke your HoF!
NOT = {
root.faith.religious_head = scope:barony.lessee
}
}
}
}

View file

@ -52,7 +52,7 @@ restore_european_union_decision = {
has_government = administrative_government
}
any_held_title = {
region = world_europe
geographical_region = world_europe
}
}