Scripted effect · Legends of the Dead files
infect_with_epidemic_effect
infect_with_epidemic_effect = yesgame/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 705 (10 lines). No parameters.
infect_with_epidemic_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 705 of its file. It takes no parameters: infect_with_epidemic_effect = yes. The game's script calls it in 5 places, among them A Gift From Above (event epidemic_events.1121), A Gift Returned (event epidemic_events.1122) and Danger: Blood on the Door (event epidemic_events.3000). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.
What it does
If
can_contract_disease_trait_scope_trigger = { DISEASE = scope:epidemic_scope.epidemic_type.epidemic_trait }
Then
- Gains the Trait scope:epidemic scope.epidemic type.epidemic trait
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (10 lines of game script)
infect_with_epidemic_effect = {
if = {
limit = {
exists = scope:epidemic_scope
can_contract_disease_trait_scope_trigger = { DISEASE = scope:epidemic_scope.epidemic_type.epidemic_trait }
}
show_as_tooltip = { add_trait = scope:epidemic_scope.epidemic_type.epidemic_trait }
hidden_effect = { infect_with_epidemic = scope: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 infect_with_epidemic_effect.
Events (5)
- A Gift From Above
epidemic_events.1121 - A Gift Returned
epidemic_events.1122 - Danger: Blood on the Door
epidemic_events.3000 - Danger: Carrion
epidemic_events.3010 - The Plague of War
epidemic_events.2001
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.