Scripted effect
petition_liege_0101_end_all_wars_effect
petition_liege_0101_end_all_wars_effect = yesgame/common/scripted_effects/00_petition_liege_effects.txt, line 415 (46 lines). No parameters.
petition_liege_0101_end_all_wars_effect is a scripted effect in Crusader Kings III, written at line 415 of its file. It takes no parameters: petition_liege_0101_end_all_wars_effect = yes. The game's script calls it in 1 place, among them petition_type_outcome_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.
The comment above it in the file
Vassal War End all vassal wars
What it does
- scope:petition_liege: Stress and fulfillment impact: by trait: Craven +20, Shy +20, Diplomat -15
- scope:petition_vassal › Every character war:
- Where:
One of these
All of these
primary_attacker = scope:petition_vassalprimary_defender = { is_vassal_of = scope:petition_liege }
or
All of these
primary_defender = scope:petition_vassalprimary_attacker = { is_vassal_of = scope:petition_liege }
end_war = white_peaceprimary_attacker = { … }
- Where:
• 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 (46 lines of game script)
petition_liege_0101_end_all_wars_effect = {
scope:petition_liege = {
stress_and_fulfillment_impact = {
craven = minor_stress_impact_gain
shy = minor_stress_impact_gain
diplomat = minor_stress_impact_loss
}
}
scope:petition_vassal = {
every_character_war = {
limit = {
OR = {
AND = {
primary_attacker = scope:petition_vassal
primary_defender = { is_vassal_of = scope:petition_liege }
}
AND = {
primary_defender = scope:petition_vassal
primary_attacker = { is_vassal_of = scope:petition_liege }
}
}
}
save_temporary_scope_as = this_war
show_as_tooltip = { end_war = white_peace }
primary_attacker = {
add_truce_both_ways = {
character = scope:this_war.primary_defender
years = 5
war = scope:this_war
result = white_peace
}
}
hidden_effect = { end_war = white_peace } # For tooltip ordering, so that we can display the addition of a truce after the war ends instead of before.
}
}
scope:second_party = {
hidden_effect = {
send_interface_toast = {
title = petition_liege.0101.t.end_war
left_icon = scope:petition_vassal
right_icon = scope:petition_liege
custom_tooltip = vassal_war_toast_desc_second_party
}
}
}
}As written in game/common/scripted_effects/00_petition_liege_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_liege_0101_end_all_wars_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_petition_liege_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.