Scripted effect
create_contagion_list_effect
create_contagion_list_effect = { CONTAGION_COURT_OWNER = … SICK_CHARACTER = … }game/common/scripted_effects/20_health_effects.txt, line 1011 (47 lines). Parameters: $CONTAGION_COURT_OWNER$, $SICK_CHARACTER$.
create_contagion_list_effect is a scripted effect in Crusader Kings III, written at line 1011 of its file. A call passes 2 parameters: CONTAGION_COURT_OWNER and SICK_CHARACTER. The game's script calls it in 2 places, among them health.1202 (event) and health.1203 (event). Patch 1.20.1.2, from game/common/scripted_effects/20_health_effects.txt.
The comment above it in the file
Creates a list of characters which might contract a disease from you (for plague and smallpox)
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (47 lines of game script)
create_contagion_list_effect = {
$CONTAGION_COURT_OWNER$ = {
if = {
limit = {
NOR = {
this = $SICK_CHARACTER$
is_in_list = contagion_list
}
}
add_to_temporary_list = contagion_list
}
every_courtier_or_guest = {
limit = {
NOR = {
this = $SICK_CHARACTER$
is_in_list = contagion_list
}
}
add_to_temporary_list = contagion_list
}
every_prisoner = {
limit = {
NOR = {
this = $SICK_CHARACTER$
is_in_list = contagion_list
}
}
add_to_temporary_list = contagion_list
}
}
$SICK_CHARACTER$ = {
every_scheme = {
limit = {
friendly_scheme_trigger = yes
NOT = { scheme_target_character = { is_in_list = contagion_list } }
}
scheme_target_character = { add_to_temporary_list = contagion_list }
}
every_targeting_scheme = {
limit = {
friendly_scheme_trigger = yes
NOT = { scheme_owner = { is_in_list = contagion_list } }
}
scheme_owner = { add_to_temporary_list = contagion_list }
}
}
}As written in game/common/scripted_effects/20_health_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_contagion_list_effect.
Events (2)
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.