Scripted trigger · Legends of the Dead files
realm_has_any_nearby_epidemic
realm_has_any_nearby_epidemic = { INTENSITY = … SIZE = … }game/common/scripted_triggers/06_ce1_epidemic_triggers.txt, line 16 (17 lines). Parameters: $INTENSITY$, $SIZE$.
realm_has_any_nearby_epidemic is a scripted trigger in Crusader Kings III, in the Legends of the Dead files, written at line 16 of its file. A call passes 2 parameters: INTENSITY and SIZE. The game's script calls it in 6 places, among them A Pharmaceutical Compendium (event physician_epidemic_events.1030), Alms (event physician_epidemic_events.1040) and epidemic_events.2004 (event). Patch 1.20.1.2, from game/common/scripted_triggers/06_ce1_epidemic_triggers.txt.
What it checks
- Any sub realm county › Any county province:
One of these
county.holder = rootor
squared_distance = { target = root.capital_province value <= squared_distance_medium }
- Any province epidemic:
outbreak_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 (17 lines of game script)
realm_has_any_nearby_epidemic = {
any_sub_realm_county = {
count >= $SIZE$
any_county_province = {
OR = {
county.holder = root
squared_distance = {
target = root.capital_province
value <= squared_distance_medium #250 map-pixels. Roughly one Ireland away (top to bottom).
}
}
any_province_epidemic = {
outbreak_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_nearby_epidemic.
Events (6)
- A Pharmaceutical Compendium
physician_epidemic_events.1030 - Alms
physician_epidemic_events.1040 - epidemic_events.2004
- Quarantine
physician_epidemic_events.1010 - The … Inn
physician_epidemic_events.1050 - Unorthodox Treatment
physician_epidemic_events.1000
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.