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

add_plague_county_modifiers

add_plague_county_modifiers = yes

game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 716 (148 lines). No parameters.

add_plague_county_modifiers is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 716 of its file. It takes no parameters: add_plague_county_modifiers = yes. The game's script calls it in 3 places, among them A Shadow Over … (event epidemic_events.1100), A Shadow Over … (event epidemic_events.1101) and The Black Death (event epidemic_events.5900). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.

What it does

  • If

    • Any sub realm county: Development level at least 30

    Then

  • If

    • Any sub realm county:
      • Development level at least 20
      • Development level less than 30

    Then

  • If

    • Any sub realm county:
      • Development level at least 15
      • Development level less than 20

    Then

  • If

    • Any sub realm county:
      • Development level at least 10
      • Development level less than 15

    Then

• 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 (120 lines of game script)
add_plague_county_modifiers = {
	if = {
		limit = {
			any_sub_realm_county = {
				development_level >= 30
			}
		}
		show_as_tooltip = { # Show as tooltip to reduce tooltip size
			every_sub_realm_county = {
				custom = shattered_by_plague_tt
				add_county_modifier = {
					modifier = shattered_by_plague
					years = 10
				}
			}
		}
	}
	if = {
		limit = {
			any_sub_realm_county = {
				AND = {
					development_level >= 20
					development_level < 30
				}
			}
		}
		show_as_tooltip = { # Show as tooltip to reduce tooltip size
			every_sub_realm_county = {
				custom = ravaged_by_plague_tt
				add_county_modifier = {
					modifier = ravaged_by_plague
					years = 10
				}
			}
		}
	}
	if = {
		limit = {
			any_sub_realm_county = {
				AND = {
					development_level >= 15
					development_level < 20
				}
			}
		}
		show_as_tooltip = { # Show as tooltip to reduce tooltip size
			every_sub_realm_county = {
				custom = blighted_by_plague_tt
				add_county_modifier = {
					modifier = blighted_by_plague
					years = 10
				}
			}
		}
	}
	if = {
		limit = {
			any_sub_realm_county = {
				AND = {
					development_level >= 10
					development_level < 15
				}
			}
		}
		show_as_tooltip = { # Show as tooltip to reduce tooltip size
			every_sub_realm_county = {
				custom = struck_by_plague_tt
				add_county_modifier = {
					modifier = struck_by_plague
					years = 10
				}
			}
		}
	}
	hidden_effect = {
		every_sub_realm_county = {
			if = { # Refresh the modifier for new plagues
				limit = {
					has_county_modifier = struck_by_plague
				}
				remove_county_modifier = struck_by_plague
			}
			else_if = { 
				limit = {
					has_county_modifier = blighted_by_plague
				}
				remove_county_modifier = blighted_by_plague
			}
			else_if = { 
				limit = {
					has_county_modifier = ravaged_by_plague
				}
				remove_county_modifier = ravaged_by_plague
			}
			else_if = {
				limit = {
					has_county_modifier = shattered_by_plague
				}
				remove_county_modifier = shattered_by_plague
			}
		}
		every_sub_realm_county = {
			limit = {
				development_level >= 30
			}
			add_county_modifier = {
				modifier = shattered_by_plague
				years = 10
			}
		}
		every_sub_realm_county = {
			limit = {
				AND = {
					development_level >= 20
					development_level < 30
				}
			}
			add_county_modifier = {
				modifier = ravaged_by_plague
				years = 10

As written in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.

The first 120 of its 148 lines; the rest is in game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt from line 716.

Where it is used

Every place in common/, events/ and history/ that calls add_plague_county_modifiers.

Events (3)

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?