Scripted effect · Legends of the Dead files
epidemic_outbreak_legitimacy_effect
epidemic_outbreak_legitimacy_effect = { PROVINCE = … }game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt, line 364 (27 lines). Parameters: $PROVINCE$.
epidemic_outbreak_legitimacy_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 364 of its file. A call passes 1 parameter: PROVINCE. The game's script calls it in 9 places, among them bubonic_plague (epidemic), consumption (epidemic) and dysentery (epidemic). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_legitimacy_effects.txt.
The comment above it in the file
LEGITIMACY LOSS FROM EPIDEMIC OUTBREAK
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (27 lines of game script)
epidemic_outbreak_legitimacy_effect = {
save_scope_as = epidemic
$PROVINCE$.county.holder = {
save_scope_as = outbreak_top_liege
if = {
limit = { is_valid_for_legitimacy_change = yes }
if = {
limit = {
scope:epidemic = { outbreak_intensity = major }
}
add_legitimacy = {
value = miniscule_legitimacy_loss
multiply = $PROVINCE$.county.holder.primary_title.tier
}
}
else_if = {
limit = {
scope:epidemic = { outbreak_intensity = apocalyptic }
}
add_legitimacy = {
value = minor_legitimacy_loss
multiply = $PROVINCE$.county.holder.primary_title.tier
}
}
}
}
}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 epidemic_outbreak_legitimacy_effect.
Epidemics (7)
- bubonic_plague
- consumption
- dysentery
- ergotism
- measles
- smallpox
1 more
- typhus
Events (2)
- A Shadow Over …
epidemic_events.1100 - A Shadow Over …
epidemic_events.1101
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.