Scripted trigger · Legends of the Dead files
realm_has_any_epidemic
realm_has_any_epidemic = { INTENSITY = … SIZE = … }game/common/scripted_triggers/06_ce1_epidemic_triggers.txt, line 9 (6 lines). Parameters: $INTENSITY$, $SIZE$.
realm_has_any_epidemic is a scripted trigger in Crusader Kings III, in the Legends of the Dead files, written at line 9 of its file. A call passes 2 parameters: INTENSITY and SIZE. The game's script calls it in 3 places, among them Isolate Capital (decision), Control Plagues (court task) and The Plague of War (event epidemic_events.2001). Patch 1.20.1.2, from game/common/scripted_triggers/06_ce1_epidemic_triggers.txt.
What it checks
- Any sub realm county:
has_province_with_epidemic = { intensity >= $INTENSITY$ }
• 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 (6 lines of game script)
realm_has_any_epidemic = {
any_sub_realm_county = {
count >= $SIZE$
has_province_with_epidemic = { intensity >= $INTENSITY$ }
}
}As written in game/common/scripted_triggers/06_ce1_epidemic_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls realm_has_any_epidemic.
Source: game/common/scripted_triggers/06_ce1_epidemic_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.