This commit is contained in:
Fishedotjpg 2026-12-03 13:24:42 +00:00
parent 5f358289db
commit e901161148
12 changed files with 2813 additions and 3476 deletions

View file

@ -8,7 +8,7 @@
count = all
}
}
faith ?= {
faith = {
NOR = {
has_doctrine_parameter = unreformed # Unreformed Pagans cannot Holy War
AND = {
@ -37,7 +37,7 @@ religious_disorganised = {
count = all
}
}
faith ?= {
faith = {
NOT = { has_doctrine_parameter = holy_wars_forbidden } # Pacifists cannot Holy War
}
herders_and_tributary_constraints = yes

View file

@ -0,0 +1,81 @@
### Brief: key ( database key )
# Name of 'casus_belli_group'
# A group that casus belli types belong to through their 'group' field (see ../casus_belli_types/_casus_belli.info).
# The group adds restrictions and flags shared by every casus belli in it.
# The groups 'religious' and 'de_jure' are referenced by code and must exist:
# religious: used to find holy wars (e.g. counting the holy wars of a faith)
# de_jure: skipped in one of the AI casus belli searches, since de jure targets are handled separately
#
key = {
### Brief: allowed_for_character ( optional trigger )
# Must be true for the attacker to use any casus belli in this group.
# Evaluated together with, and before, the casus belli type's own 'allowed_for_character'.
# Also re-checked when the primary attacker of an ongoing war changes.
# Default: empty (always true)
#
# Supported scopes:
# root ( character ): the attacker
# scope:attacker ( character )
# scope:defender ( character ): may be unset depending on how the trigger is tested
# list target_titles ( landed titles ): only set when the targeted titles are known
#
allowed_for_character = {
<triggers>
}
### Brief: allowed_for_character_display_regardless ( optional trigger )
# Like 'allowed_for_character', but failing it does not hide the group's casus bellis
# from the declare war interface. They are still listed, with this trigger's failure shown as the reason.
# Must be true for the attacker to actually use any casus belli in this group, including for the AI.
# Evaluated after the casus belli type's own 'allowed_for_character',
# and before its 'allowed_for_character_display_regardless'.
# Also re-checked when the primary attacker of an ongoing war changes.
# Default: empty (always true)
#
# Supported scopes: same as 'allowed_for_character'
#
allowed_for_character_display_regardless = {
<triggers>
}
### Brief: should_invalidate ( optional trigger )
# Checked for ongoing wars using a casus belli of this group. If true, the war is invalidated.
# Evaluated before the casus belli type's own 'should_invalidate'; either being true invalidates the war.
# Default: empty (never invalidates)
#
# Supported scopes:
# root ( casus belli ): the war's casus belli
# scope:attacker ( character ): the primary attacker
# scope:defender ( character ): the primary defender
# scope:claimant ( character ): may be unset
# scope:war ( war )
# list target_titles ( landed titles )
# list attackers ( characters ): all attackers, including the primary attacker
# list defenders ( characters ): all defenders, including the primary defender
#
should_invalidate = {
<triggers>
}
### Brief: can_only_start_via_script ( optional bool )
# If yes, casus bellis in this group are never offered in the declare war interface nor used by the AI,
# and can only be started from script.
# Default: no
#
can_only_start_via_script = yes/no
### Brief: should_check_for_interface_availability ( optional bool )
# If no, casus bellis in this group are skipped when the interface checks whether any casus belli
# is available against a character.
# Does not affect the AI or the war declaration logic itself.
# Default: yes
#
should_check_for_interface_availability = yes/no
### Brief: debug ( optional bool )
# Marks the group as a debug/test group. The AI never picks casus bellis from it when looking for wars.
# Does not hide the casus bellis from players.
# Default: no
#
debug = yes/no
}

View file

@ -194,7 +194,7 @@
has_realm_law = camp_purpose_legitimists
}
}
#tgp_japan_offensive_wars_ban_trigger = yes
tgp_japan_offensive_wars_ban_trigger = yes
}
cost = {
@ -276,7 +276,6 @@
this = scope:attacker
is_vassal_or_below_of = scope:attacker
is_courtier_of = scope:attacker
#tgp_is_any_minister = yes
}
}
}
@ -317,7 +316,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 = {
@ -663,8 +662,8 @@
}
multiply = 0.4
}
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

View file

@ -43,26 +43,9 @@
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -273,37 +256,7 @@ duchy_conquest_cb = {
prestige_level > -1
}
trigger_else = {
trigger_if = {
limit = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
prestige_level >= 1
}
trigger_else_if = {
limit = {
OR = {
AND = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
}
prestige_level >= 2
}
trigger_else = {
prestige_level >= 3
}
has_required_prestige_level_to_declare_war = { LEVEL = 3 }
}
# Struggle constraint
@ -332,27 +285,9 @@ duchy_conquest_cb = {
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack tribal
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -837,9 +772,10 @@ ducal_conquest_cb = {
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -1096,8 +1032,9 @@ ireland_laudabiliter_conquest_cb = {
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

View file

@ -5,7 +5,7 @@
allowed_for_character = {
scope:attacker = {
culture ?= {
culture = {
has_innovation = innovation_divine_right
}
NOR = {
@ -253,9 +253,11 @@
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -269,7 +271,7 @@ individual_county_de_jure_cb = {
allowed_for_character = {
scope:attacker = {
culture ?= {
culture = {
has_innovation = innovation_casus_belli
}
NOT = { government_has_flag = government_is_nomadic }
@ -534,9 +536,10 @@ individual_county_de_jure_cb = {
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -551,7 +554,7 @@ individual_duchy_de_jure_cb = {
allowed_for_character = {
scope:attacker = {
culture ?= {
culture = {
has_innovation = innovation_casus_belli
}
NOT = { government_has_flag = government_is_nomadic }
@ -829,9 +832,10 @@ individual_duchy_de_jure_cb = {
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

View file

@ -11,7 +11,7 @@
OR = {
government_has_flag = government_is_tribal
government_has_flag = government_is_nomadic
rite ?= {
rite = {
rite_has_parameter = invasion_cb_enabled
}
has_character_flag = bp2_inspired_culture_for_conquest
@ -35,27 +35,10 @@
limit = {
has_character_flag = bp2_inspired_culture_for_conquest
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
prestige_level >= 0
}
ai_should_get_extreme_conqueror_bonuses = no
}
prestige_level >= 2
}
trigger_else_if = {
limit = {
OR = {
AND = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
ai_should_get_extreme_conqueror_bonuses = no
trigger_else = {
has_required_prestige_level_to_declare_war = { LEVEL = 4 }
}
}
@ -79,17 +62,10 @@
}
ai_score_mult = {
value = viking_conquest_ai_score_value
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -361,37 +337,7 @@ clan_invasion_war = {
}
allowed_for_character_display_regardless = {
trigger_if = {
limit = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
prestige_level >= 2
}
trigger_else_if = {
limit = {
OR = {
AND = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
}
prestige_level >= 3
}
trigger_else = {
prestige_level >= 4
}
has_required_prestige_level_to_declare_war = { LEVEL = 4 }
custom_tooltip = {
text = struggle_involvement_cb_check_failure
@ -411,17 +357,10 @@ clan_invasion_war = {
ai_score_mult = {
value = 1
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {

View file

@ -18,7 +18,7 @@
# Already defined in 00_casus_belli_groups.txt
allowed_for_character = {
scope:attacker.faith ?= {
scope:attacker.faith = {
NOT = { has_doctrine_parameter = unreformed }
NOT = { has_doctrine_parameter = holy_wars_forbidden }
}
@ -45,58 +45,7 @@
NOT = { piety_level = -1 }
}
trigger_else = {
trigger_if = {
limit = {
is_alive = yes
has_variable_list = humsacd_hofs
is_target_in_variable_list = {
name = humsacd_hofs
target = scope:attacker.faith
}
}
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
piety_level >= 0
}
trigger_else = {
piety_level >= 0
}
}
trigger_else = {
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
piety_level >= 0
}
trigger_else = {
piety_level >= 1
}
}
has_required_piety_level_to_declare_war = { LEVEL = 2 }
}
}
}
@ -172,7 +121,10 @@
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = religious_cb_ai_score_mult
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
cost = {
@ -202,7 +154,7 @@
first_valid = {
triggered_desc = {
trigger = {
scope:attacker.rite ?= {
scope:attacker.rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
@ -266,22 +218,7 @@
}
# Piety Progress for the Attacker
every_in_list = {
list = target_titles
scope:attacker = {
add_piety_experience = {
add = religious_cb_piety_gain_county
if = {
limit = {
scope:attacker.faith ?= {
has_doctrine_parameter = bonus_holy_war_piety_active
}
}
multiply = 1.5
}
}
}
}
scope:attacker = { add_piety_for_war_effect = { TYPE = piety_experience } }
ordered_in_list = {
list = target_titles
@ -291,13 +228,13 @@
save_scope_as = war_goal_title
}
scope:attacker.faith ?= {
scope:attacker.faith = {
change_fervor = {
value = trivial_fervor_gain
desc = fervor_loss_religious_war
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = modest_fervor_gain
desc = fervor_gain_religious_war
@ -361,44 +298,7 @@
}
# piety change
every_in_list = {
list = target_titles
scope:defender = {
add_piety = {
add = religious_cb_piety_gain_county
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 = 2
#target = scope:defender
#}
#}
#else = {
#pay_short_term_gold = {
#target = scope:defender
#gold = medium_gold_value
#}
#}
#}
}
# Truce
add_truce_attacker_defeat_effect = yes
scope:defender = { add_piety_for_war_effect = { TYPE = piety } }
scope:attacker = {
pay_short_term_gold_reparations_effect = {
@ -452,7 +352,7 @@ religious_war = {
# Additional requirements to the defines in 00_casus_belli_groups.txt
allowed_for_character = {
scope:attacker.faith ?= {
scope:attacker.faith = {
NOR = {
has_doctrine_parameter = unreformed
has_doctrine_parameter = holy_wars_forbidden
@ -481,58 +381,7 @@ religious_war = {
NOT = { piety_level = -1 }
}
trigger_else = {
trigger_if = {
limit = {
is_alive = yes
has_variable_list = humsacd_hofs
is_target_in_variable_list = {
name = humsacd_hofs
target = scope:attacker.faith
}
}
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
piety_level >= 0
}
trigger_else = {
piety_level >= 1
}
}
trigger_else = {
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
piety_level >= 1
}
trigger_else = {
piety_level >= 2
}
}
has_required_piety_level_to_declare_war = { LEVEL = 2 }
}
}
}
@ -674,7 +523,7 @@ religious_war = {
first_valid = {
triggered_desc = {
trigger = {
scope:attacker.rite ?= {
scope:attacker.rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
@ -737,22 +586,7 @@ religious_war = {
}
# Piety Progress for the Attacker
every_in_list = {
list = target_titles
scope:attacker = {
add_piety_experience = {
add = religious_cb_piety_gain_duchy
if = {
limit = {
scope:attacker.faith ?= {
has_doctrine_parameter = bonus_holy_war_piety_active
}
}
multiply = 1.5
}
}
}
}
scope:attacker = { add_piety_for_war_effect = { TYPE = piety_experience } }
ordered_in_list = {
list = target_titles
@ -762,13 +596,13 @@ religious_war = {
save_scope_as = war_goal_title
}
scope:attacker.faith ?= {
scope:attacker.faith = {
change_fervor = {
value = small_fervor_gain
desc = fervor_loss_religious_war
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = slight_fervor_gain
desc = fervor_gain_religious_war
@ -824,24 +658,8 @@ religious_war = {
}
# piety change
every_in_list = {
list = target_titles
scope:defender = { add_piety_for_war_effect = { TYPE = piety } }
scope:defender = {
add_piety = {
add = religious_cb_piety_gain_duchy
if = {
limit = {
scope:defender.faith ?= {
has_doctrine_parameter = bonus_holy_war_piety_active
}
}
multiply = 1.5
}
}
}
}
scope:attacker = {
pay_short_term_gold_reparations_effect = {
GOLD_VALUE = 3
@ -887,32 +705,10 @@ religious_war = {
ai_score_mult = {
value = 1
# As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# Holy War are limited to connected neighbour to limit big empire expansions over weak realms.
add = {
if = {
limit = { religious_war_vassals_constraints = yes }
add = -1000
}
}
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = religious_cb_ai_score_mult
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -932,7 +728,7 @@ major_religious_war = {
# Additional requirements to the defines in 00_casus_belli_groups.txt
allowed_for_character = {
scope:attacker.faith ?= {
scope:attacker.faith = {
NOT = { has_doctrine_parameter = unreformed }
}
NOR = {
@ -942,71 +738,9 @@ major_religious_war = {
}
allowed_for_character_display_regardless = {
#Piety level reqs should be ignored if this is an interaction
trigger_if = {
limit = {
NOT = { has_character_flag = holy_war_incited }
}
trigger_if = {
limit = {
is_alive = yes
has_variable_list = humsacd_hofs
is_target_in_variable_list = {
name = humsacd_hofs
target = scope:attacker.faith
}
}
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
AND = {
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
}
piety_level >= 1
}
trigger_else = {
piety_level >= 2
}
}
trigger_else = {
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
AND = {
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
}
piety_level >= 2
}
trigger_else = {
piety_level >= 3
}
}
}
trigger_if = {
limit = {
culture ?= {
culture = {
NOT = {
has_cultural_parameter = no_limit_to_kingdom_level_holy_wars
}
@ -1036,7 +770,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
@ -1146,7 +880,7 @@ major_religious_war = {
first_valid = {
triggered_desc = {
trigger = {
scope:attacker.rite ?= {
scope:attacker.rite = {
rite_has_doctrine = doctrine_pluralism_pluralistic
}
}
@ -1236,22 +970,7 @@ major_religious_war = {
}
# Piety Progress for the Attacker
every_in_list = {
list = target_titles
scope:attacker = {
add_piety_experience = {
add = religious_cb_piety_gain_kingdom
if = {
limit = {
scope:attacker.faith ?= {
has_doctrine_parameter = bonus_holy_war_piety_active
}
}
multiply = 1.5
}
}
}
}
scope:attacker = { add_piety_for_war_effect = { TYPE = piety_experience } }
ordered_in_list = {
list = target_titles
@ -1261,13 +980,13 @@ major_religious_war = {
save_scope_as = war_goal_title
}
scope:attacker.faith ?= {
scope:attacker.faith = {
change_fervor = {
value = modest_fervor_gain
desc = fervor_loss_religious_war
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = notable_fervor_gain
desc = fervor_gain_religious_war
@ -1326,39 +1045,6 @@ 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: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
@ -1404,33 +1090,10 @@ major_religious_war = {
ai_score_mult = {
value = 1
# As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# Holy War are limited to connected neighbour to limit big empire expansions over weak realms.
add = {
if = {
limit = { religious_war_vassals_constraints = yes }
add = -1000
}
}
# HOUSE RELATIONS
add = house_relation_ai_score_value
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = religious_cb_ai_score_mult
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -1452,7 +1115,7 @@ excommunication_war = {
has_trait = excommunicated
top_liege = this
faith = scope:attacker.faith
rite ?= { rite_has_parameter = excommunication_active }
rite = { rite_has_parameter = excommunication_active }
}
scope:attacker = {
@ -1681,7 +1344,9 @@ excommunication_war = {
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = religious_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -1692,7 +1357,7 @@ flowery_war_cb = {
allow_hostages = no
allowed_for_character = {
faith ?= { has_doctrine_parameter = flower_war_cb_active }
rite = { rite_has_parameter = flower_war_cb_active }
NOT = { #Must not have any leftover sacrificial prisoners/easy ability to get any.
any_prisoner = { has_character_modifier = designated_human_sacrifice_modifier }
}
@ -1728,11 +1393,11 @@ flowery_war_cb = {
should_invalidate = {
OR = {
AND = { #A formal flowery war only invalidates if neither side is an interested participant.
scope:attacker.faith ?= {
NOT = { has_doctrine_parameter = human_sacrifice_active }
scope:attacker.rite = {
NOT = { rite_has_parameter = human_sacrifice_active }
}
scope:defender.faith ?= {
NOT = { has_doctrine_parameter = human_sacrifice_active }
scope:defender.rite = {
NOT = { rite_has_parameter = human_sacrifice_active }
}
}
scope:attacker = {
@ -1776,7 +1441,7 @@ flowery_war_cb = {
scope:attacker = {
if = { #If the attacker enjoys human sacrifice, then this was sacred.
limit = {
faith ?= { has_doctrine_parameter = human_sacrifice_active }
rite = { rite_has_parameter = human_sacrifice_active }
}
add_piety = {
value = scope:defender.tier_scaled_piety_value
@ -1808,7 +1473,7 @@ flowery_war_cb = {
scope:attacker = { #If the attacker has the appropriate tenet, grab some suitable courtiers from the defender.
if = {
limit = {
faith ?= { has_doctrine_parameter = human_sacrifice_active }
rite = { rite_has_parameter = human_sacrifice_active }
}
custom_tooltip = flowery_war_cb_prisoners.tt_attacker
hidden_effect = {
@ -2140,7 +1805,7 @@ flowery_war_cb = {
scope:attacker = { #Piety loss for the attacker if appropriate, otherwise prestige loss.
if = {
limit = {
faith ?= { has_doctrine_parameter = human_sacrifice_active }
rite = { rite_has_parameter = human_sacrifice_active }
}
add_piety = religious_cb_piety_white_peace
}
@ -2176,10 +1841,9 @@ flowery_war_cb = {
scope:attacker = {
if = { #If the attacker shares the faith of the defender, and both still enjoy human sacrifice, then this war was at least sacred for them.
limit = {
faith ?= {
this = scope:defender.faith
has_doctrine_parameter = human_sacrifice_active
}
faith = scope:defender.faith
rite = { rite_has_parameter = human_sacrifice_active }
scope:defender.rite = { rite_has_parameter = human_sacrifice_active }
}
add_piety = {
value = scope:defender.tier_scaled_piety_value
@ -2196,10 +1860,9 @@ flowery_war_cb = {
scope:defender = {
if = { #If the defender has the same faith as the attacker, and both still enjoy human sacrifice, then this was sacred.
limit = {
faith ?= {
this = scope:attacker.faith
has_doctrine_parameter = human_sacrifice_active
}
faith = scope:attacker.faith
rite = { rite_has_parameter = human_sacrifice_active }
scope:attacker.rite = { rite_has_parameter = human_sacrifice_active }
}
add_piety = {
value = scope:attacker.tier_scaled_piety_value
@ -2214,7 +1877,7 @@ flowery_war_cb = {
scope:defender = { #If the defender has the appropriate tenet, and doesn't already have sacrificial victims, grab some suitable courtiers from the attacker.
if = {
limit = {
faith ?= { has_doctrine_parameter = human_sacrifice_active }
rite = { rite_has_parameter = human_sacrifice_active }
NOT = { #Must not have any leftover sacrificial prisoners, lest the defender get borked sacrifice-accounting events.
any_prisoner = { has_character_modifier = designated_human_sacrifice_modifier }
}
@ -2572,27 +2235,10 @@ flowery_war_cb = {
ai_score_mult = {
value = 1
# Increase odds if the character is a vassal with Ghazi Contract
add = {
if = {
limit = {
scope:attacker = {
top_liege != this
vassal_contract_has_flag = vassal_contract_cheaper_religious_war
}
}
add = 1
}
}
# Holy War are limited to connected neighbour to limit big empire expansions over weak realms.
add = {
if = {
limit = { religious_war_vassals_constraints = yes }
add = -1000
}
}
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = religious_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -2645,7 +2291,7 @@ undirected_great_holy_war = {
any_in_de_jure_hierarchy = { #Any ruler in the dejure of the targeted Kingdom follows a Rite that the HoF's Rite is hostile enough to Holy War against.
continue = { tier > tier_county }
tier = tier_county
scope:attacker.rite ?= {
scope:attacker.rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
}
}
@ -2677,7 +2323,7 @@ undirected_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -2735,7 +2381,7 @@ undirected_great_holy_war = {
# First of the Crusader Kings achievement tracking.
if = {
limit = {
scope:attacker.religion = religion:catholic_religion
scope:attacker.faith = faith:catholic
NOT = { exists = global_var:had_first_catholic_crusade }
}
# Credit where chredit is due.
@ -2753,7 +2399,7 @@ undirected_great_holy_war = {
}
if = {
limit = { scope:attacker.religion = religion:catholic_religion }
limit = { scope:attacker.faith = faith:catholic }
change_global_variable = {
name = num_catholic_crusades
add = 1
@ -2782,7 +2428,7 @@ undirected_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -2844,7 +2490,7 @@ undirected_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -2911,11 +2557,11 @@ undirected_great_holy_war = {
save_scope_as = title_recipient
gender_female_chance = {
if = {
limit = { scope:the_faith ?= { main_rite ?= { rite_has_doctrine = doctrine_gender_male_dominated } } }
limit = { scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_male_dominated } } }
add = 0
}
else_if = {
limit = { scope:the_faith ?= { main_rite ?= { rite_has_doctrine = doctrine_gender_female_dominated } } }
limit = { scope:the_faith = { main_rite = { rite_has_doctrine = doctrine_gender_female_dominated } } }
add = 100
}
else = {
@ -3265,30 +2911,6 @@ undirected_great_holy_war = {
}
}
#Set 30 years cooldown.
hidden_effect = {
scope:attacker.faith ?= {
set_variable = {
name = variable_ghw_cooldown
value = yes
years = 30
}
}
if = { #Clear pledged gold flag.
limit = {
any_player = {
has_character_flag = ghw_pledged_gold
}
}
every_player = {
limit = {
has_character_flag = ghw_pledged_gold
}
remove_character_flag = ghw_pledged_gold
}
}
}
ordered_in_list = {
list = target_titles
order_by = tier
@ -3297,13 +2919,13 @@ undirected_great_holy_war = {
save_scope_as = war_goal_title
}
scope:attacker.faith ?= {
scope:attacker.faith = {
change_fervor = {
value = substantial_fervor_gain
desc = fervor_loss_great_holy_war
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_gain_great_holy_war
@ -3364,7 +2986,7 @@ undirected_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -3372,14 +2994,14 @@ undirected_great_holy_war = {
}
scope:attacker = {
faith ?= {
faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_loss_lost_great_holy_war
}
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_gain_great_holy_war
@ -3438,14 +3060,12 @@ undirected_great_holy_war = {
}
}
}
scope:attacker.faith ?= {
set_variable = {
name = variable_ghw_cooldown
value = yes
years = 30
}
}
if = { #Clear pledged gold flag.
debug_log = undirected_ghw_defeat_debug_message
hidden_effect = {
#Clear pledged gold flag.
every_player = {
limit = {
has_character_flag = ghw_pledged_gold
}
@ -3495,7 +3115,7 @@ directed_great_holy_war = {
transfer_behavior = transfer
allowed_for_character = {
faith ?= {
faith = {
exists = religious_head
suitable_faith_for_directed_ghw_trigger = yes #Right Doctrines
OR = {
@ -3516,19 +3136,19 @@ directed_great_holy_war = {
}
custom_description = {
text = great_holy_war_cooldown
NOT = { scope:attacker.faith ?= { exists = var:variable_ghw_cooldown }}
NOT = { scope:attacker.faith = { exists = var:variable_ghw_cooldown }}
}
tgp_japan_offensive_wars_ban_trigger = yes
}
allowed_against_character = {
scope:attacker.rite ?= {
scope:attacker.rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = scope:defender.rite }
}
}
valid_to_start = {
scope:attacker.faith ?= {
scope:attacker.faith = {
NOR = {
# No active GHW already.
exists = great_holy_war
@ -3553,7 +3173,7 @@ directed_great_holy_war = {
continue = { tier > tier_county }
count >= 5 # The AI doesn't Jihad for an area of less than 5 Counties, for reference, Jerusalem is 8 Counties
tier = tier_county
scope:attacker.rite ?= {
scope:attacker.rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
}
}
@ -3562,7 +3182,7 @@ directed_great_holy_war = {
any_in_de_jure_hierarchy = { #Any ruler in the dejure of the targeted Kingdom follows a Rite that the Caliph's Rite is hostile enough to Holy War against.
continue = { tier > tier_county }
tier = tier_county
scope:attacker.rite ?= {
scope:attacker.rite = {
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
}
}
@ -3579,7 +3199,7 @@ directed_great_holy_war = {
save_scope_as = target
}
hidden_effect = {
scope:attacker.faith ?= {
scope:attacker.faith = {
start_great_holy_war = {
target_character = scope:defender
target_title = scope:target
@ -3609,10 +3229,10 @@ directed_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:defender.faith ?= {
scope:defender.faith = {
save_scope_as = target_faith
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -3644,12 +3264,12 @@ directed_great_holy_war = {
}
trigger_event = great_holy_war.0093 #AI counterpledging.
}
scope:attacker.faith ?= {
scope:attacker.faith = {
every_faith_holy_order = {
trigger_event = great_holy_war.0090 # Military Orders always join
}
}
scope:defender.faith ?= {
scope:defender.faith = {
every_faith_holy_order = {
trigger_event = great_holy_war.0091 # Military Orders always join
}
@ -3716,7 +3336,7 @@ directed_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -3822,15 +3442,6 @@ directed_great_holy_war = {
}
}
hidden_effect = {
scope:attacker = {
faith ?= {
set_variable = {
name = variable_ghw_cooldown
value = yes
years = 30
}
}
}
scope:attacker.faith.great_holy_war = { #Give Prestige/Piety modifier to Dynasty/House of the winners' Beneficiaries (only if they gained any land in the GHW).
every_pledged_attacker = {
limit = { exists = ghw_beneficiary }
@ -3847,13 +3458,13 @@ directed_great_holy_war = {
save_scope_as = war_goal_title
}
scope:attacker.faith ?= {
scope:attacker.faith = {
change_fervor = {
value = substantial_fervor_gain
desc = fervor_loss_great_holy_war
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_gain_great_holy_war
@ -3937,7 +3548,7 @@ directed_great_holy_war = {
scope:defender = {
save_scope_as = ghw_defender
}
scope:attacker.faith ?= {
scope:attacker.faith = {
save_scope_as = the_faith
}
scope:attacker.faith.great_holy_war = {
@ -3970,35 +3581,21 @@ directed_great_holy_war = {
}
scope:attacker = {
faith ?= {
faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_loss_lost_great_holy_war
}
}
}
scope:defender.faith ?= {
scope:defender.faith = {
change_fervor = {
value = significant_fervor_gain
desc = fervor_gain_great_holy_war
}
}
#Set 30 years cooldown.
hidden_effect = {
scope:attacker = {
faith ?= {
set_variable = {
name = variable_ghw_cooldown
value = yes
years = 30
}
}
}
}
#Mandalas gain or lose piety/devotion depending on Decree
mandala_war_defeat_effects = yes
ghw_on_war_end_effect = yes
}
max_ai_diplo_distance_to_title = 750

View file

@ -16,9 +16,9 @@
faith.religious_head = this
pam_is_antipope_trigger = yes
}
faith ?= { has_doctrine = doctrine_temporal_head }
faith = { has_doctrine = doctrine_temporal_head }
}
faith ?= {
faith = {
has_doctrine = eastern_hostility_doctrine
}
house ?= {
@ -68,21 +68,11 @@
government_has_flag = government_is_tribal
}
}
trigger_if = {
limit = {
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
prestige_level >= 1
}
trigger_else = {
prestige_level >= 2
}
has_required_prestige_level_to_declare_war = { LEVEL = 2 }
}
trigger_else_if = {
limit = {
faith ?= { has_doctrine = doctrine_temporal_head }
faith = { has_doctrine = doctrine_temporal_head }
OR = {
AND = {
faith.religious_head = scope:attacker
@ -94,61 +84,10 @@
}
}
}
trigger_if = {
limit = {
OR = {
culture ?= {
has_cultural_parameter = cb_lower_piety_level_requirement
}
# Iberian Struggle Hostility Reward
AND = {
house ?= {
OR = {
has_house_modifier = fp2_struggle_hostility_house_faith_modifier
has_house_modifier = fp2_struggle_hostility_house_combined_modifier
}
}
}
}
}
piety_level >= 2
has_required_piety_level_to_declare_war = { LEVEL = 3 }
}
trigger_else = {
piety_level >= 3
}
}
trigger_else = {
trigger_if = {
limit = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
prestige_level >= 2
}
trigger_else_if = {
limit = {
OR = {
AND = {
government_has_flag = government_is_clan
house ?= {
has_house_unity_stage = antagonistic
}
}
culture ?= {
has_cultural_parameter = cb_lower_prestige_level_requirement
}
}
}
prestige_level >= 3
}
trigger_else = {
prestige_level >= 4
}
has_required_prestige_level_to_declare_war = { LEVEL = 4 }
}
custom_description = {
text = has_used_lifetime_subjugation
@ -194,7 +133,7 @@
}
}
AND = { # Temporal Subjugation
faith ?= { has_doctrine = doctrine_temporal_head }
faith = { has_doctrine = doctrine_temporal_head }
OR = {
AND = {
faith.religious_head = scope:attacker
@ -207,10 +146,10 @@
}
}
AND = { # Indian Subjugation
faith ?= {
faith = {
has_doctrine = eastern_hostility_doctrine
}
scope:defender.faith ?= {
scope:defender.faith = {
has_doctrine = eastern_hostility_doctrine
}
}
@ -538,8 +477,9 @@
ai_score_mult = {
value = 1
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
multiply = zealous_war_on_head_of_faith_ai_score_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = vassalization_cb_ai_score_mult
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

View file

@ -251,7 +251,10 @@ mythical_ancestor_war = {
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}
@ -313,7 +316,10 @@ legendary_adventure = {
ai_can_target_all_titles = { always = yes }
ai_score_mult = {
value = varangian_adventure_ai_targeting_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -1785,6 +1791,10 @@ leg_demand_fealty_cb = {
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = vassalization_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

View file

@ -39,36 +39,9 @@ expansion_cb = {
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
#Declaring war on the frankokratia leader can really ruin the whole thing
# if = {
# limit = {
# scope:defender = {
# any_owned_story = {
# story_type = frankokratia_story
# NOT = { has_variable = franko_war_complete }
# }
# }
# }
# multiply = 0
# }
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -313,36 +286,9 @@ duchy_expansion_cb = {
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack tribal
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
#Declaring war on the frankokratia leader can really ruin the whole thing
# if = {
# limit = {
# scope:defender = {
# any_owned_story = {
# story_type = frankokratia_story
# NOT = { has_variable = franko_war_complete }
# }
# }
# }
# multiply = 0
# }
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
valid_to_start = {
@ -614,36 +560,9 @@ naval_expansion_cb = {
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack owner of tribal holdings if you have a tribal holding to convert already
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
#Declaring war on the frankokratia leader can really ruin the whole thing
# if = {
# limit = {
# scope:defender = {
# any_owned_story = {
# story_type = frankokratia_story
# NOT = { has_variable = franko_war_complete }
# }
# }
# }
# multiply = 0
# }
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
# Target county has to be coastal and not border you.
@ -886,36 +805,9 @@ naval_duchy_expansion_cb = {
ai_score_mult = {
value = viking_conquest_ai_score_value
# As a feudal gov, do not attack tribal
add = {
every_in_list = {
list = target_titles
if = {
limit = { feudal_clan_tribal_conquest_constraints = yes }
add = -1000
}
}
}
# AI in struggles act insularly for wars that don't have a familial or legal basis.
multiply = struggle_wars_prioritise_struggle_targets_value
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
# Tell the Romans to stop going adventuring into the steppe for no gods-damned reason.
multiply = byzantium_conquests_ai_score_value
#Declaring war on the frankokratia leader can really ruin the whole thing
# if = {
# limit = {
# scope:defender = {
# any_owned_story = {
# story_type = frankokratia_story
# NOT = { has_variable = franko_war_complete }
# }
# }
# }
# multiply = 0
# }
add = common_cb_ai_score_mult_additive
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
# Target duchy must have counties that are coastal and doesn't border you.
@ -1395,10 +1287,4 @@ influence_war_cb = {
max_defender_score_from_occupation = 150
max_attacker_score_from_occupation = 150
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
}
}

View file

@ -2143,8 +2143,6 @@ silk_road_vassalization_cb = {
ai_score_mult = {
value = 1
add = frankokratia_leader_protection_value #Set back to 0. Declaring war on the frankokratia leader can really ruin the whole thing
# If the Silk Road is doing well, absolutely attack it
if = {
limit = {
@ -2158,6 +2156,12 @@ silk_road_vassalization_cb = {
}
add = 100
}
add = common_cb_ai_score_mult_additive
multiply = vassalization_cb_ai_score_mult
multiply = aggressive_cb_ai_score_mult
multiply = common_cb_ai_score_mult
}
}

File diff suppressed because it is too large Load diff