Scripted effect
force_truce_GHW_defenders_effect
force_truce_GHW_defenders_effect = yesgame/common/scripted_effects/00_war_effects.txt, line 2304 (43 lines). No parameters.
force_truce_GHW_defenders_effect is a scripted effect in Crusader Kings III, written at line 2304 of its file. It takes no parameters: force_truce_GHW_defenders_effect = yes. The game's script calls it in 2 places, among them Great Holy War (casus belli) and Great Holy War (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.
The comment above it in the file
Force a white peace on any forced.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (43 lines of game script)
force_truce_GHW_defenders_effect = {
hidden_effect = {
#if any defender
#owns lands in target kingdom
#is primary in war with another defender who
#owns land in target kingdom
#is also a primary
#then end that war with a white peace
scope:the_ghw = {
every_pledged_defender = {
save_temporary_scope_as = white_peace_attacker
every_character_war = {
if = {
limit = {
primary_attacker = scope:white_peace_attacker
primary_defender = {
save_temporary_scope_as = white_peace_defender
OR = {
scope:the_ghw = { has_forced_defender = scope:white_peace_defender }
AND = {
scope:target_kingdom = {
any_de_jure_county_holder = {
OR = {
this = scope:white_peace_defender
any_liege_or_above = { this = scope:white_peace_defender }
}
}
}
top_liege = {
save_temporary_scope_as = white_peace_liege
scope:the_ghw = { has_forced_defender = scope:white_peace_liege }
}
}
}
}
}
end_war = white_peace
}
}
}
}
}
}As written in game/common/scripted_effects/00_war_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls force_truce_GHW_defenders_effect.
Casus belli (2)
Source: game/common/scripted_effects/00_war_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.