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

give_epidemic_immunity

give_epidemic_immunity = { EPIDEMIC = … }

game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 686 (18 lines). Parameters: $EPIDEMIC$.

give_epidemic_immunity is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 686 of its file. A call passes 1 parameter: EPIDEMIC. The game's script calls it in 1 place, among them contract_disease_effect (scripted effect). 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 (18 lines of game script)
give_epidemic_immunity = {
	if = {
		limit = {
			$EPIDEMIC$.epidemic_type.epidemic_trait = trait:measles
		}
		add_character_flag = disease_immunity_measles
	}
	if = {
		limit = {
			$EPIDEMIC$.epidemic_type.epidemic_trait = trait:bubonic_plague
		}
		add_character_flag = disease_immunity_bubonic_plague
	}
	add_to_variable_list = {
		name = immunised_plagues
		target = $EPIDEMIC$
	}
}

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 give_epidemic_immunity.

Scripted effects (1)

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?