Scripted effect · Friends and Foes files
set_war_over_memory_casus_belli_effect
set_war_over_memory_casus_belli_effect = { OTHER = … OUTCOME = … SELF = … STANCE = … }game/common/scripted_effects/03_bp1_scripted_effects.txt, line 1099 (24 lines). Parameters: $OTHER$, $OUTCOME$, $SELF$, $STANCE$.
set_war_over_memory_casus_belli_effect is a scripted effect in Crusader Kings III, in the Friends and Foes files, written at line 1099 of its file. A call passes 4 parameters: OTHER, OUTCOME, SELF and STANCE. The game's script calls it in 3 places, among them on_war_white_peace (on action), on_war_won_attacker (on action) and on_war_won_defender (on action). Patch 1.20.1.2, from game/common/scripted_effects/03_bp1_scripted_effects.txt.
What it does
- One memory, picked in order:
- Where:
has_memory_type = war_$OUTCOME$- Any memory participant:
copy_war_memory_casus_belli_effect = { MEMORY = scope:war_memory }
- 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 (24 lines of game script)
set_war_over_memory_casus_belli_effect = {
ordered_memory = {
limit = {
has_memory_type = $STANCE$_war
any_memory_participant = {
OR = {
this = scope:$OTHER$
this = { is_vassal_of = scope:$OTHER$ }
}
}
}
order_by = memory_creation_date
save_scope_as = war_memory
}
ordered_memory = {
limit = {
has_memory_type = war_$OUTCOME$
any_memory_participant = { this = scope:$SELF$ }
any_memory_participant = { this = scope:$OTHER$ }
}
order_by = memory_creation_date
copy_war_memory_casus_belli_effect = { MEMORY = scope:war_memory }
}
}As written in game/common/scripted_effects/03_bp1_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_war_over_memory_casus_belli_effect.
On actions (the game's own hooks) (3)
- on_war_white_peace
- on_war_won_attacker
- on_war_won_defender
Source: game/common/scripted_effects/03_bp1_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.