Scripted effect · Legends of the Dead files
faction_war_end_victory_legitimacy_effect
faction_war_end_victory_legitimacy_effect = yesgame/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt, line 318 (14 lines). No parameters.
faction_war_end_victory_legitimacy_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 318 of its file. It takes no parameters: faction_war_end_victory_legitimacy_effect = yes. The game's script calls it in 15 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/06_dlc_ce1_legitimacy_effects.txt.
The comment above it in the file
LEGITIMACY FOR WINNING A FACTION WAR
What it does
scope:defender:
• 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 (14 lines of game script)
faction_war_end_victory_legitimacy_effect = {
scope:defender = {
if = {
limit = { is_valid_for_legitimacy_change = yes }
send_interface_toast = {
type = msg_legitimacy_gain
title = legitimacy_gain_toast
left_icon = scope:attacker
right_icon = scope:defender
add_legitimacy = minor_legitimacy_gain
}
}
}
}As written in game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls faction_war_end_victory_legitimacy_effect.
Source: game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.