Scripted effect
add_truce_white_peace_effect
add_truce_white_peace_effect = yesgame/common/scripted_effects/00_war_effects.txt, line 2003 (175 lines). No parameters.
add_truce_white_peace_effect is a scripted effect in Crusader Kings III, written at line 2003 of its file. It takes no parameters: add_truce_white_peace_effect = yes. The game's script calls it in 84 places, among them …… Ancestral Claim on … (casus belli), ……-… Vassalization War (Dynastic Cycle) (casus belli) and Adventurer Invasion (casus belli). Its body carries 6 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.
The comment above it in the file
Add white peace truce
What it does
scope:attacker:If
- Any vassal:
vassal_stance = glory_hound
Then
- All of … Glory Hound Vassals (…) Lose 10 Opinion of … for 10 years (Disapproves of White Peace)
- Any vassal:
If
- Any vassal:
vassal_stance = zealot
scope:defender:- Their faith is the same as that of attacker
- Government is a Theocratic-type Government
Then
- All of … Zealot Vassals (…) gain 5 Opinion of … for 10 years (Approves of White Peace)
- Any vassal:
If
- Government is Clan
- Their house: House unity is antagonistic
- Any vassal:
house ?= scope:attacker.house
Then
- All of … House Vassals Lose 10 Opinion of … for 10 years (Finds White Peace Weak)
scope:defender:If
- Any vassal:
vassal_stance = glory_hound
Then
- All of … Glory Hound Vassals (…) lose 10 Opinion of … for 10 years (Disapproves of White Peace)
- Any vassal:
If
- Any vassal:
vassal_stance = zealot
scope:attacker:- Their faith is the same as that of defender
- Government is a Theocratic-type Government
Then
- All of … Zealot Vassals (…) lose 5 Opinion of … for 10 years (Disapproves of White Peace)
- Any vassal:
If
- Government is Clan
- Their house: House unity is antagonistic
- Any vassal:
house ?= scope:defender.house
Then
- All of … House Vassals lose 10 Opinion of … for 10 years (Finds White Peace Weak)
bp2_hostage_war_end_tooltip_effect = yes
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (120 lines of game script)
add_truce_white_peace_effect = {
scope:attacker = { # Vassal Stance opinion effect
if = {
limit = {
any_vassal = {
vassal_stance = glory_hound
}
}
custom_tooltip = glory_hound_disapproves_war_white_peace
hidden_effect = {
every_vassal = {
vassal_stance = glory_hound
add_opinion = {
target = scope:attacker
modifier = glory_hound_disapproves_war_white_peace_opinion
}
}
}
}
if = {
limit = {
any_vassal = {
vassal_stance = zealot
}
scope:defender = {
faith = scope:attacker.faith
government_has_flag = government_is_theocracy
}
}
custom_tooltip = zealot_approves_war_white_peace
hidden_effect = {
every_vassal = {
vassal_stance = zealot
add_opinion = {
target = scope:attacker
modifier = zealot_approves_war_white_peace_opinion
}
}
}
}
if = {
limit = {
government_has_flag = government_is_clan
house ?= { has_house_unity_stage = antagonistic }
any_vassal = {
house ?= scope:attacker.house
}
}
custom_tooltip = antagonistic_house_disapproves_war_white_peace
hidden_effect = {
every_vassal = {
limit = {
house ?= scope:attacker.house
}
add_opinion = {
target = scope:attacker
modifier = antagonistic_house_disapproves_war_white_peace_opinion
}
}
}
}
if = {
limit = {
any_active_accolade = {
accolade_parameter = accolade_champions_white_peace
}
}
add_prestige = accolade_white_peace_prestige_value
}
}
scope:defender = { # Vassal Stance opinion effect
if = {
limit = {
any_vassal = {
vassal_stance = glory_hound
}
}
custom_tooltip = glory_hound_disapproves_war_white_peace_defender
hidden_effect = {
every_vassal = {
vassal_stance = glory_hound
add_opinion = {
target = scope:defender
modifier = glory_hound_disapproves_war_white_peace_opinion
}
}
}
}
if = {
limit = {
any_vassal = {
vassal_stance = zealot
}
scope:attacker = {
faith = scope:defender.faith
government_has_flag = government_is_theocracy
}
}
custom_tooltip = zealot_disapproves_war_white_peace_defender
hidden_effect = {
every_vassal = {
vassal_stance = zealot
add_opinion = {
target = scope:defender
modifier = zealot_disapproves_war_white_peace_defender_opinion
}
}
}
}
if = {
limit = {
government_has_flag = government_is_clan
house ?= { has_house_unity_stage = antagonistic }
any_vassal = {
house ?= scope:defender.house
}
}
custom_tooltip = antagonistic_house_disapproves_war_white_peace_defender
hidden_effect = {
every_vassal = {As written in game/common/scripted_effects/00_war_effects.txt.
The first 120 of its 175 lines; the rest is in game/common/scripted_effects/00_war_effects.txt from line 2003.
Where it is used
Every place in common/, events/ and history/ that calls add_truce_white_peace_effect.
Casus belli (84)
- …… Ancestral Claim on …
- ……-… Vassalization War (Dynastic Cycle)
- Adventurer Invasion
- Adventurer Invasion
- Adventurer Invasion
- Adventurer Invasion
78 more
- Artifact
- Azariqa Rebellion
- Border Raid
- Border Raid against the Roman Empire
- Bring Under Tribute
- Challenge Head of Faith
- Chinese Consolidation War
- Chinese Consolidation War
- Claim
- Clan Invasion
- County Conquest
- County Expansion
- Crusader War for Imperial Claim
- De Jure
- Demand Fealty
- Depose Challenger Head of Faith
- Diarch Seizure
- Dissolve Empire
- Ducal Conquest
- Duchy Conquest
- Duchy Expansion
- Excommunication
- Expand Dominance
- Greatest of Khans' Onslaught
- Holy
- Holy Relic Reclamation
- Humiliation War
- Humiliation War
- Iberian Reclamation
- Imperial County Pacification
- Imperial Expedition
- Imperial Reconquest
- Individual De Jure County
- Individual De Jure Duchy
- Invasion
- Invasion
- Invasion
- Invasion
- Investiture Conflict
- Laudabiliter Conquest
- Legendary Adventure
- Major Holy
- Mediterranean Conquest
- Migrate to Pannonia
- Migration War
- Minor Holy
- Mongol Invasion
- Mongol Realm Invasion
- Naval County Expansion
- Naval Duchy Expansion
- Nomadic County Quarrel
- Nomadic Duchy Quarrel
- Overrun Kingdom
- Overrun Kingdom
- Pax Romana
- Pillaging Foray
- Raiktor's "Claim"
- Raiktor's Claim
- Remove Regent
- Resist Capture
- Retaliation War
- Seize Hegemonic County
- Seize Hegemonic County
- Seize Hegemonic Duchy
- Seize Hegemonic Duchy
- Seize Imperial Duchy
- Seize Peripheral Duchy
- Seize the Mandate of Heaven
- Sovereignty War
- Sponsored Administrative War
- Sponsored Conquest
- Struggle Clash
- Subjugation
- Varangian Adventurer
- Vassalization
- Viking Adventurer
- debug_artifact_war
- debug_war
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.