fixing cbs

This commit is contained in:
Greekman 2026-11-25 17:30:13 +00:00
parent 09f453493d
commit 5a396156a9
4 changed files with 139 additions and 129 deletions

View file

@ -158,7 +158,13 @@ conquest = {
herders_and_tributary_constraints = yes
tgp_dynastic_cycle_offensive_wars_ban_trigger = yes
tgp_war_ban_all_ministers_trigger = yes
NOT = { government_has_flag = government_is_theocracy }
OR = {
NOT = { government_has_flag = government_is_theocracy }
AND = {
government_has_flag = government_is_ecclesiastical
rite = { rite_has_parameter = neow_theocrats_can_use_secular_cbs }
}
}
}
allowed_for_character_display_regardless = {
pam_personal_pacifism_offensive_war_ban_trigger = yes
@ -211,13 +217,11 @@ subjugation = {
tgp_dynastic_cycle_offensive_wars_ban_trigger = yes
tgp_war_ban_all_ministers_trigger = yes
OR = {
OR = {
NOT = { government_has_flag = government_is_theocracy }
AND = {
government_has_flag = government_is_ecclesiastical
rite = { rite_has_parameter = neow_theocrats_can_use_secular_cbs }
}
}
AND = {
government_has_flag = government_is_theocracy
has_variable = koh_subjugation_cb_allowed
@ -262,7 +266,6 @@ humiliation = {
allowed_for_character = {
gdp_merchant_cb_group_constraints_trigger = yes
herders_and_tributary_constraints = yes
pam_personal_pacifism_offensive_war_ban_trigger = yes
OR = {
NOT = { government_has_flag = government_is_theocracy }
AND = {
@ -280,7 +283,6 @@ mandala = {
allowed_for_character = {
gdp_merchant_cb_group_constraints_trigger = yes
herders_and_tributary_constraints = yes
pam_personal_pacifism_offensive_war_ban_trigger = yes
OR = {
NOT = { government_has_flag = government_is_theocracy }
AND = {
@ -307,6 +309,9 @@ celestial = {
}
}
}
allowed_for_character_display_regardless = {
pam_personal_pacifism_offensive_war_ban_trigger = yes
}
}
@ -320,4 +325,4 @@ merchant_seize_realm = {
allowed_for_character_display_regardless = {
pam_personal_pacifism_offensive_war_ban_trigger = yes
}
}
}

View file

@ -274,10 +274,8 @@
scope:claimant = {
NOR = {
this = scope:attacker
NOR = {
is_vassal_or_below_of = scope:attacker
is_courtier_of = scope:attacker
}
is_vassal_or_below_of = scope:attacker
is_courtier_of = scope:attacker
#tgp_is_any_minister = yes
}
}
@ -319,7 +317,7 @@
on_victory_aggressive_war_effect = yes
pam_notify_claim_war_instigator_effect_win = yes
gg_claim_unites_pope_and_emperor_tooltip_effect = yes
#gg_claim_unites_pope_and_emperor_tooltip_effect = yes
#Grab the higher title tier
ordered_in_list = {
@ -426,7 +424,7 @@
accolade_attacker_war_end_glory_gain_med_effect = yes
}
resolve_title_and_vassal_change = scope:change
on_victory_claim_cb_effect = yes
# Landless Ceremonial Liege
#if = {
@ -504,23 +502,23 @@
# resolve_title_and_vassal_change = scope:change_two
#}
if = {
limit = {
scope:claimant != scope:attacker
scope:attacker = {
can_add_hook = {
type = favor_hook
target = scope:claimant
}
}
}
scope:attacker = {
add_hook = {
target = scope:claimant
type = favor_hook
}
}
}
#if = {
#limit = {
#scope:claimant != scope:attacker
#scope:attacker = {
#can_add_hook = {
#type = favor_hook
#target = scope:claimant
#}
#}
#}
#scope:attacker = {
#add_hook = {
#target = scope:claimant
#type = favor_hook
#}
#}
#}
# Attacker gets Prestige Experience, Defender loses Prestige, all other participants gain Prestige based on their war contribution.
modify_all_participants_fame_values = {

View file

@ -378,23 +378,23 @@
}
}
scope:attacker = {
if = {
limit = {
monthly_character_income > 0
}
pay_short_term_income = {
years = 2
target = scope:defender
}
}
else = {
pay_short_term_gold = {
target = scope:defender
gold = medium_gold_value
}
}
}
#scope:attacker = {
#if = {
#limit = {
#monthly_character_income > 0
#}
#pay_short_term_income = {
#years = 2
#target = scope:defender
#}
#}
#else = {
#pay_short_term_gold = {
#target = scope:defender
#gold = medium_gold_value
#}
#}
#}
}
# Truce
@ -841,6 +841,7 @@ religious_war = {
}
}
}
scope:attacker = {
pay_short_term_gold_reparations_effect = {
GOLD_VALUE = 3
@ -1035,7 +1036,7 @@ major_religious_war = {
}
allowed_against_character = {
religious_war_faith_hostility_trigger = yes
#religious_war_faith_hostility_trigger = yes
scope:attacker = {
ALL_FALSE = {
top_liege = scope:defender.top_liege
@ -1325,36 +1326,42 @@ major_religious_war = {
# piety change
scope:defender = { add_piety_for_war_effect = { TYPE = piety } }
scope:defender = {
add_piety = {
add = religious_cb_piety_gain_kingdom
if = {
limit = {
scope:defender.faith ?= {
has_doctrine_parameter = bonus_holy_war_piety_active
}
}
multiply = 1.5
}
}
}
#scope:defender = {
#add_piety = {
#add = religious_cb_piety_gain_kingdom
#if = {
#limit = {
#scope:defender.faith ?= {
#has_doctrine_parameter = bonus_holy_war_piety_active
#}
#}
#multiply = 1.5
#}
#}
#}
scope:attacker = {
if = {
limit = {
monthly_character_income > 0
}
pay_short_term_income = {
years = 4
target = scope:defender
}
}
else = {
pay_short_term_gold = {
target = scope:defender
gold = medium_gold_value
}
}
#scope:attacker = {
#if = {
#limit = {
#monthly_character_income > 0
#}
#pay_short_term_income = {
#years = 4
#target = scope:defender
#}
#}
#else = {
#pay_short_term_gold = {
#target = scope:defender
#gold = medium_gold_value
#}
#}
#}
#}
scope:attacker = {
pay_short_term_gold_reparations_effect = {
GOLD_VALUE = 4
}
}
@ -3094,7 +3101,7 @@ undirected_great_holy_war = {
change_government = nomad_government
domicile = {
set_domicile_culture = prev.capital_county.culture
set_domicile_faith = prev.capital_county.faith
set_domicile_rite = prev.capital_county.rite
}
}
}
@ -3252,7 +3259,7 @@ undirected_great_holy_war = {
change_government = nomad_government
domicile = {
set_domicile_culture = prev.capital_county.culture
set_domicile_faith = prev.capital_county.faith
set_domicile_rite = prev.capital_county.rite
}
}
}
@ -3426,7 +3433,7 @@ undirected_great_holy_war = {
change_government = nomad_government
domicile = {
set_domicile_culture = prev.capital_county.culture
set_domicile_faith = prev.capital_county.faith
set_domicile_rite = prev.capital_county.rite
}
}
}
@ -3894,7 +3901,7 @@ directed_great_holy_war = {
change_government = nomad_government
domicile = {
set_domicile_culture = prev.capital_county.culture
set_domicile_faith = prev.capital_county.faith
set_domicile_rite = prev.capital_county.rite
}
}
}

View file

@ -502,58 +502,58 @@ allows_declaring_war_against_target_trigger = {
}
}
#You're under Peace Privilege; no wars allowed against the opposite side
custom_tooltip = {
text = not_attack_gg_during_repose_tt
trigger_if = {
limit = {
situation:guelph_ghibelline ?= { situation_current_phase = repose }
OR = {
is_guelph_trigger = yes
is_ghibelline_trigger = yes
}
}
NOR = {
AND = {
is_guelph_trigger = yes
scope:recipient = { is_ghibelline_trigger = yes }
}
AND = {
is_ghibelline_trigger = yes
scope:recipient = { is_guelph_trigger = yes }
}
}
}
}
#custom_tooltip = {
#text = not_attack_gg_during_repose_tt
#trigger_if = {
#limit = {
#situation:guelph_ghibelline ?= { situation_current_phase = repose }
#OR = {
#is_guelph_trigger = yes
#is_ghibelline_trigger = yes
#}
#}
#NOR = {
#AND = {
#is_guelph_trigger = yes
#scope:recipient = { is_ghibelline_trigger = yes }
#}
#AND = {
#is_ghibelline_trigger = yes
#scope:recipient = { is_guelph_trigger = yes }
#}
#}
#}
#}
#The Guelphs won the GG Situation; no HRE wars against theocratic vassals
custom_tooltip = {
text = guelph_victory_hre_no_theocracy_cb_tt
trigger_if = {
limit = { exists = var:gg_ended_in_guelph_victory_no_hre_wars_on_theocratic_vassals }
NOT = {
this = title:e_hre.holder
scope:defender_check = {
is_vassal_of = title:e_hre.holder
government_has_flag = government_is_ecclesiastical
}
}
}
}
#custom_tooltip = {
#text = guelph_victory_hre_no_theocracy_cb_tt
#trigger_if = {
#limit = { exists = var:gg_ended_in_guelph_victory_no_hre_wars_on_theocratic_vassals }
#NOT = {
#this = title:e_hre.holder
#scope:defender_check = {
#is_vassal_of = title:e_hre.holder
#government_has_flag = government_is_ecclesiastical
#}
#}
#}
#}
#... nor against rulers in Northern Italy
custom_tooltip = {
text = guelph_victory_hre_no_cb_tt
trigger_if = {
limit = { exists = var:gg_hre_no_cb_northern_italy }
NOT = {
this = title:e_hre.holder
scope:defender_check = {
primary_title = {
title_province = { geographical_region = gdp_guelph_ghibelline_northern_italy_region }
}
}
}
}
}
#custom_tooltip = {
#text = guelph_victory_hre_no_cb_tt
#trigger_if = {
#limit = { exists = var:gg_hre_no_cb_northern_italy }
#NOT = {
#this = title:e_hre.holder
#scope:defender_check = {
#primary_title = {
#title_province = { geographical_region = gdp_guelph_ghibelline_northern_italy_region }
#}
#}
#}
#}
#}
}
war_declarer_needs_hook_on_liege = {