Scripted effect · Legends of the Dead files
add_plague_county_modifiers
add_plague_county_modifiers = yesgame/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 716 (148 lines). No parameters.
add_plague_county_modifiers is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 716 of its file. It takes no parameters: add_plague_county_modifiers = yes. The game's script calls it in 3 places, among them A Shadow Over … (event epidemic_events.1100), A Shadow Over … (event epidemic_events.1101) and The Black Death (event epidemic_events.5900). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.
What it does
If
- Any sub realm county: Development level at least 30
Then
- All Counties equal to or above 30 Development:
- The county gains the modifier “Prone to Plague” for 10 years
- Development Decline +250%
- The county gains the modifier “Prone to Plague” for 10 years
If
- Any sub realm county:
- Development level at least 20
- Development level less than 30
Then
- All Counties between 20 and 30 Development:
- The county gains the modifier “Susceptible to Plague” for 10 years
- Development Decline +100%
- The county gains the modifier “Susceptible to Plague” for 10 years
- Any sub realm county:
If
- Any sub realm county:
- Development level at least 15
- Development level less than 20
Then
- All Counties between 15 and 20 Development:
- The county gains the modifier “Vulnerable to Plague” for 10 years
- Development Decline +35%
- The county gains the modifier “Vulnerable to Plague” for 10 years
- Any sub realm county:
If
- Any sub realm county:
- Development level at least 10
- Development level less than 15
Then
- All Counties between 10 and 15 Development:
- The county gains the modifier “At Risk of Plague” for 10 years
- Development Decline +10%
- The county gains the modifier “At Risk of Plague” for 10 years
- Any sub realm county:
• 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 (120 lines of game script)
add_plague_county_modifiers = {
if = {
limit = {
any_sub_realm_county = {
development_level >= 30
}
}
show_as_tooltip = { # Show as tooltip to reduce tooltip size
every_sub_realm_county = {
custom = shattered_by_plague_tt
add_county_modifier = {
modifier = shattered_by_plague
years = 10
}
}
}
}
if = {
limit = {
any_sub_realm_county = {
AND = {
development_level >= 20
development_level < 30
}
}
}
show_as_tooltip = { # Show as tooltip to reduce tooltip size
every_sub_realm_county = {
custom = ravaged_by_plague_tt
add_county_modifier = {
modifier = ravaged_by_plague
years = 10
}
}
}
}
if = {
limit = {
any_sub_realm_county = {
AND = {
development_level >= 15
development_level < 20
}
}
}
show_as_tooltip = { # Show as tooltip to reduce tooltip size
every_sub_realm_county = {
custom = blighted_by_plague_tt
add_county_modifier = {
modifier = blighted_by_plague
years = 10
}
}
}
}
if = {
limit = {
any_sub_realm_county = {
AND = {
development_level >= 10
development_level < 15
}
}
}
show_as_tooltip = { # Show as tooltip to reduce tooltip size
every_sub_realm_county = {
custom = struck_by_plague_tt
add_county_modifier = {
modifier = struck_by_plague
years = 10
}
}
}
}
hidden_effect = {
every_sub_realm_county = {
if = { # Refresh the modifier for new plagues
limit = {
has_county_modifier = struck_by_plague
}
remove_county_modifier = struck_by_plague
}
else_if = {
limit = {
has_county_modifier = blighted_by_plague
}
remove_county_modifier = blighted_by_plague
}
else_if = {
limit = {
has_county_modifier = ravaged_by_plague
}
remove_county_modifier = ravaged_by_plague
}
else_if = {
limit = {
has_county_modifier = shattered_by_plague
}
remove_county_modifier = shattered_by_plague
}
}
every_sub_realm_county = {
limit = {
development_level >= 30
}
add_county_modifier = {
modifier = shattered_by_plague
years = 10
}
}
every_sub_realm_county = {
limit = {
AND = {
development_level >= 20
development_level < 30
}
}
add_county_modifier = {
modifier = ravaged_by_plague
years = 10As written in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.
The first 120 of its 148 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt from line 716.
Where it is used
Every place in common/, events/ and history/ that calls add_plague_county_modifiers.
Events (3)
- A Shadow Over …
epidemic_events.1100 - A Shadow Over …
epidemic_events.1101 - The Black Death
epidemic_events.5900
Source: game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.