Scripted effect
on_white_peace_faction_revolt_war
on_white_peace_faction_revolt_war = yesgame/common/scripted_effects/00_war_effects.txt, line 1219 (29 lines). No parameters.
on_white_peace_faction_revolt_war is a scripted effect in Crusader Kings III, written at line 1219 of its file. It takes no parameters: on_white_peace_faction_revolt_war = yes. The game's script calls it in 12 places, among them Assassin Dissolution (casus belli), Ceremonial Claimant Faction (casus belli) and Claimant Faction (casus belli). Patch 1.20.1.2, from game/common/scripted_effects/00_war_effects.txt.
The comment above it in the file
Add revoke reason on all faction-members if they white peace a revolt-war
What it does
If
a check the game hides
Then
- scope:attacker.joined_faction › Every faction member:
If
a check the game hides
Then
leave_faction_with_cooldown_effect = { FACTION = scope:current_faction YEARS = faction_war_white_peace_cooldown }
Otherwise
add_faction_cooldown_effect = { YEARS = faction_war_white_peace_cooldown }
- scope:defender: Opinion: Revolted Against Me
scope:current_faction:add_faction_discontent = -200
- scope:attacker.joined_faction › Every faction member:
• 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 (29 lines of game script)
on_white_peace_faction_revolt_war = {
if = {
limit = { exists = scope:attacker.joined_faction }
scope:attacker.joined_faction = {
save_scope_as = current_faction
every_faction_member = {
if = {
limit = {
exists = scope:current_faction # Can get destroyed as we loop through
}
leave_faction_with_cooldown_effect = {
FACTION = scope:current_faction
YEARS = faction_war_white_peace_cooldown
}
}
else = {
add_faction_cooldown_effect = { YEARS = faction_war_white_peace_cooldown }
}
scope:defender = {
add_opinion = {
target = prev
modifier = vassal_wp_faction_revolt_war
}
}
}
}
scope:current_faction ?= { add_faction_discontent = -200 }
}
}As written in game/common/scripted_effects/00_war_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls on_white_peace_faction_revolt_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.