Scripted effect · Legends of the Dead files
get_random_nearby_realm_epidemic
get_random_nearby_realm_epidemic = { INTENSITY = … }game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 372 (68 lines). Parameters: $INTENSITY$.
get_random_nearby_realm_epidemic is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 372 of its file. A call passes 1 parameter: INTENSITY. The game's script calls it in 12 places, among them A Desperate Banishment (event physician_epidemic_events.1060), A Pharmaceutical Compendium (event physician_epidemic_events.1030) and A Romantic Revenant (event epidemic_events.1010). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (68 lines of game script)
get_random_nearby_realm_epidemic = {
random_sub_realm_county = {
limit = {
any_county_province = {
OR = {
county.holder = root
squared_distance = {
target = root.capital_province
value <= squared_distance_medium #250 map-pixels. Roughly one Ireland away (top to bottom).
}
}
any_province_epidemic = {
outbreak_intensity >= $INTENSITY$
}
}
}
weight = {
base = 1
modifier = {
add = 750
has_province_with_epidemic = { intensity >= apocalyptic }
}
modifier = {
add = 5
has_province_with_epidemic = { intensity >= major }
}
}
random_county_province = {
limit = {
any_province_epidemic = {
outbreak_intensity >= $INTENSITY$
}
}
weight = {
base = 1
modifier = {
add = 750
any_province_epidemic = {
outbreak_intensity >= apocalyptic
}
}
modifier = {
add = 5
any_province_epidemic = {
outbreak_intensity >= major
}
}
}
random_province_epidemic = {
limit = {
outbreak_intensity >= $INTENSITY$
}
weight = {
base = 1
modifier = {
add = 750
outbreak_intensity >= apocalyptic
}
modifier = {
add = 5
outbreak_intensity >= major
}
}
save_scope_as = epidemic_scope
}
}
}
}As written in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls get_random_nearby_realm_epidemic.
Events (12)
- A Desperate Banishment
physician_epidemic_events.1060 - A Pharmaceutical Compendium
physician_epidemic_events.1030 - A Romantic Revenant
epidemic_events.1010 - Alms
physician_epidemic_events.1040 - Bodies in the Street
epidemic_events.1110 - Doomsday
epidemic_events.1050
6 more
- epidemic_events.2004
- Flagellant Cult
epidemic_events.1040 - Plague Trials: Bringers of Pestilence
epidemic_events.1060 - Quarantine
physician_epidemic_events.1010 - The … Inn
physician_epidemic_events.1050 - Unorthodox Treatment
physician_epidemic_events.1000
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.