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

remove_isolated_capital_modifiers_effect

remove_isolated_capital_modifiers_effect = yes

game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt, line 648 (37 lines). No parameters.

remove_isolated_capital_modifiers_effect is a scripted effect in Crusader Kings III, in the Legends of the Dead files, written at line 648 of its file. It takes no parameters: remove_isolated_capital_modifiers_effect = yes. The game's script calls it in 7 places, among them bubonic_plague (epidemic), consumption (epidemic) and dysentery (epidemic). Patch 1.20.1.2, from game/common/scripted_effects/06_dlc_ce1_epidemics_effects.txt.

What it does

  • If

    • The county has the modifier “Isolated Capital”
    • No county province epidemic:

    Then

    • The county loses the modifier “Isolated Capital”
  • If

    • Their holder’s top liege › Any sub realm county: The county has the modifier “Isolated Capital”
    • Their holder’s top liege:
      • None of these

        • Any sub realm county › Any county province epidemic:
          • this = scope:epidemic

    Then

    • Their holder’s top liege › Every sub realm county:
      • Where: The county has the modifier “Isolated Capital”
      • The county loses the modifier “Isolated Capital”

• 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 (37 lines of game script)
remove_isolated_capital_modifiers_effect = {
	if = {
		limit = {
			has_county_modifier = isolate_capital_decision_modifier
			NOT = {
				any_county_province_epidemic = {
					this = scope:epidemic
				}
			}
		}
		remove_county_modifier = isolate_capital_decision_modifier
	}
	if = {
		limit = {
			holder.top_liege = {
				any_sub_realm_county = { has_county_modifier = isolate_capital_decision_modifier }
			}
			holder.top_liege = {
				NOT = {
					any_sub_realm_county = {
						any_county_province_epidemic = {
							this = scope:epidemic
						}
					}
				}
			}
		}
		holder.top_liege = {
			every_sub_realm_county = {
				limit = {
					has_county_modifier = isolate_capital_decision_modifier
				}
				remove_county_modifier = isolate_capital_decision_modifier
			}
		}
	}
}

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 remove_isolated_capital_modifiers_effect.

Epidemics (7)

  • bubonic_plague
  • consumption
  • dysentery
  • ergotism
  • measles
  • smallpox
1 more
  • typhus

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?