CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Scripted effect

remove_county_corruption_unsafe_highways_modifier_tiers_effect

remove_county_corruption_unsafe_highways_modifier_tiers_effect = yes

game/common/scripted_effects/00_county_corruption_effects.txt, line 1488 (20 lines). No parameters.

remove_county_corruption_unsafe_highways_modifier_tiers_effect is a scripted effect in Crusader Kings III, written at line 1488 of its file. It takes no parameters: remove_county_corruption_unsafe_highways_modifier_tiers_effect = yes. The game's script calls it in 1 place, among them remove_unsafe_highways_modifier_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/00_county_corruption_effects.txt.

What it does

  • title_province.barony.trade_market = { … }
  • If the county has the modifier “Unsafe Highways”: The county loses the modifier “Unsafe Highways”
  • Else, if the county has the modifier “Perilous Paths”: The county loses the modifier “Perilous Paths”
  • Else, if the county has the modifier “Impassable Roads”: The county loses the modifier “Impassable Roads”
  • scope:market:
    • remove_trade_market_modifier = gdp_market_banditry_trade_modifier

• 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 (20 lines of game script)
remove_county_corruption_unsafe_highways_modifier_tiers_effect = {
	title_province.barony.trade_market = {
		save_scope_as = market
		trade_market_owner.county.holder = { save_scope_as = market_owner } # Market Owner
		inform_market_of_banditry_removal_modifier_effect = yes
	}
	if = {
		limit = { has_county_modifier = county_corruption_unsafe_highways_modifier }
		remove_county_modifier = county_corruption_unsafe_highways_modifier
	}
	else_if = {
		limit = { has_county_modifier = county_corruption_unsafe_highways_modifier_2 }
		remove_county_modifier = county_corruption_unsafe_highways_modifier_2
	}
	else_if = {
		limit = { has_county_modifier = county_corruption_unsafe_highways_modifier_3 }
		remove_county_modifier = county_corruption_unsafe_highways_modifier_3
	}
	scope:market = { remove_trade_market_modifier = gdp_market_banditry_trade_modifier }
}

As written in game/common/scripted_effects/00_county_corruption_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/00_county_corruption_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?