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

@ -21,7 +21,8 @@ create_holy_order_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 30
ai_goal = yes
@ -31,6 +32,7 @@ create_holy_order_decision = {
highest_held_title_tier >= tier_kingdom
any_held_county = {
any_in_de_jure_hierarchy = {
holder = root
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
@ -65,6 +67,7 @@ create_holy_order_decision = {
title_valid = {
trigger_if = {
limit = { exists = this }
holder = scope:ruler
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
}
trigger_else = {
@ -102,6 +105,7 @@ create_holy_order_decision = {
text = "has_two_castle_county"
any_held_county = {
any_in_de_jure_hierarchy = {
holder = root
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
}
}
@ -185,24 +189,6 @@ create_holy_order_decision = {
limit = {
exists = scope:barony
}
hidden_effect = {
if = {
limit = { scope:barony.holder != root }
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
@ -239,18 +225,11 @@ create_holy_order_decision = {
ai_potential = {
highest_held_title_tier >= tier_kingdom
is_playable_character = yes
OR = {
any_held_title = {
title_tier = barony
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 }
}
}
}
is_at_war = no
piety_level >= 1
trigger_if = { limit = { has_pam_dlc_trigger = yes } OR = { government_has_flag = government_is_theocracy exists = root.puppet:theological_agent_puppet exists = root.puppet:external_theological_agent_puppet } }
is_available_adult = yes
any_held_title = { title_tier = barony barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } }
}
ai_will_do = {
@ -304,6 +283,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
is_shown = {
highest_held_title_tier > tier_barony
is_playable_character = yes
faith ?= {
any_faith_holy_order = { #Your faith must have a Military Order
leader = {
@ -311,12 +291,6 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
}
}
is_playable_character = yes
# cannot already have a loan - keep it simple
NOR = {
exists = var:loan_amount_owed
exists = var:loan_holder
}
}
is_valid_showing_failures_only = {
@ -331,6 +305,15 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
NOT = {
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
}
save_temporary_scope_as = lender_temp
}
root = {
NOT = {
any_owned_story = {
story_Type = story_cycle_loan
var:lender = scope:lender_temp
}
}
}
}
}
@ -360,7 +343,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
}
ai_potential = {
always = yes
is_available = yes
}
ai_will_do = {
@ -431,6 +414,30 @@ cancel_holy_order_lease_decision = {
trigger_if = {
limit = { exists = this }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = scope:ruler }
trigger_if = {
limit = {
scope:ruler = { is_ai = yes }
exists = lessee.faith
}
trigger_if = {
limit = { scope:ruler.faith = root.lessee.faith }
scope:ruler.piety >= cancel_holy_order_piety_cost
}
trigger_else_if = {
limit = {
scope:ruler.faith = {
faith_hostility_level = {
target = root.lessee.faith
value <= faith_astray_level
}
}
}
scope:ruler.piety >= cancel_astray_holy_order_piety_cost
}
trigger_else = {
always = yes
}
}
}
trigger_else = {
custom_description = {
@ -537,11 +544,12 @@ cancel_holy_order_lease_decision = {
age >= 12
is_at_war = no
highest_held_title_tier >= tier_county
years_from_game_start >= 1
any_sub_realm_barony = {
is_under_holy_order_lease = yes
county.holder = { is_ai = yes }
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
}
years_from_game_start >= 1
}
ai_will_do = {
@ -597,7 +605,8 @@ create_holy_order_monastic_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/pam_pre-romanesque_church_exterior.dds"
}
decision_group_type = major
decision_group_type = realm
sort_order = 30
ai_goal = yes
@ -713,6 +722,20 @@ create_holy_order_monastic_decision = {
ai_potential = {
highest_held_title_tier >= tier_duchy
is_playable_character = yes
is_at_war = no
piety_level >= 1
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
}
OR = {
government_has_flag = government_is_theocracy
exists = root.puppet:theological_agent_puppet
exists = root.puppet:external_theological_agent_puppet
}
}
faith ?= { faith_has_monasticism_trigger = yes }
is_available_adult = yes
any_held_county = {
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
}
@ -1135,6 +1158,42 @@ pam_monastic_order_new_movement_decision = {
ai_potential = {
highest_held_title_tier >= tier_duchy
is_playable_character = yes
piety_level >= 1
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
NOT = {
government_has_flag = government_is_theocracy
}
}
exists = root.puppet:theological_agent_puppet
}
trigger_else = {
OR = {
AND = {
has_trait = lifestyle_scholar
has_trait_xp = {
trait = lifestyle_scholar
value >= 60
}
}
has_trait = theologian
has_trait = erudite
has_trait = lifestyle_mystic
has_trait = devoted
has_trait = family_first
has_trait = diplomat
has_trait = schemer
}
}
trigger_if = {
limit = {
has_pam_dlc_trigger = yes
}
exists = root.puppet:external_theological_agent_puppet
}
faith = { faith_has_monasticism_trigger = yes }
is_available_adult = yes
any_held_county = {
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
}