CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Legends of the Dead files

get_random_realm_epidemic

get_random_realm_epidemic = { INTENSITY = … }

game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 314 (57 lines). Parameters: $INTENSITY$.

get_random_realm_epidemic is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 314 of its file. A call passes 1 parameter: INTENSITY. The game's script calls it in 2 places, among them A Coughing Crown (event ach_coronation.0022) and The Plague of War (event epidemic_events.2001). 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 (57 lines of game script)
get_random_realm_epidemic = {
	random_sub_realm_county = {
		limit = {
			any_county_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_realm_epidemic.

Events (2)

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.

Spotted a mistake on this page?