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

Scripted effect

set_worst_disease_effect

set_worst_disease_effect = yes

game/common/scripted_effects/20_health_effects.txt, line 2498 (93 lines). No parameters.

set_worst_disease_effect is a scripted effect in Crusader Kings III, written at line 2498 of its file. It takes no parameters: set_worst_disease_effect = yes. The game's script calls it in 6 places, among them …: My Ailing … (event health.3102), …: Time For Treatment (event health.3101) and A Sick Leave (event bp2_yearly.7000). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (93 lines of game script)
set_worst_disease_effect = {
	if = {
		limit = { has_trait = bubonic_plague }
		save_scope_value_as = {
			name = disease_type
			value = flag:bubonic_plague
		}
	}
	else_if = {
		limit = { has_trait = cancer }
		save_scope_value_as = {
			name = disease_type
			value = flag:cancer
		}
	}
	else_if = {
		limit = { has_trait = smallpox }
		save_scope_value_as = {
			name = disease_type
			value = flag:smallpox
		}
	}
	else_if = {
		limit = { has_trait = measles }
		save_scope_value_as = {
			name = disease_type
			value = flag:measles
		}
	}
	else_if = {
		limit = { has_trait = dysentery }
		save_scope_value_as = {
			name = disease_type
			value = flag:dysentery
		}
	}
	else_if = {
		limit = { has_trait = ergotism }
		save_scope_value_as = {
			name = disease_type
			value = flag:ergotism
		}
	}
	else_if = {
		limit = { has_trait = consumption }
		save_scope_value_as = {
			name = disease_type
			value = flag:consumption
		}
	}
	else_if = {
		limit = { has_trait = typhus }
		save_scope_value_as = {
			name = disease_type
			value = flag:typhus
		}
	}
	else_if = {
		limit = { has_trait = great_pox }
		save_scope_value_as = {
			name = disease_type
			value = flag:great_pox
		}
	}
	else_if = {
		limit = { has_trait = pneumonic }
		save_scope_value_as = {
			name = disease_type
			value = flag:pneumonic
		}
	}
	else_if = {
		limit = { has_trait = leper }
		save_scope_value_as = {
			name = disease_type
			value = flag:leper
		}
	}
	else_if = {
		limit = { has_trait = gout_ridden }
		save_scope_value_as = {
			name = disease_type
			value = flag:gout_ridden
		}
	}
	else_if = {
		limit = { has_trait = ill }
		save_scope_value_as = {
			name = disease_type
			value = flag:ill
		}
	}
}

As written in game/common/scripted_effects/20_health_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls set_worst_disease_effect.

Events (5)

Scripted effects (1)

Source: game/common/scripted_effects/20_health_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?