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

Scripted effect

add_merchant_smuggling_ring_county_corruption_modifier_effect

add_merchant_smuggling_ring_county_corruption_modifier_effect = yes

game/common/scripted_effects/00_county_corruption_effects.txt, line 3464 (51 lines). No parameters.

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

What it does

• 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 (51 lines of game script)
add_merchant_smuggling_ring_county_corruption_modifier_effect = {
	save_scope_as = county
	if = {
		limit = {
			NOT = { has_county_modifier = county_corruption_smuggling_ring_modifier_3 } # max
		}
		title_province.barony.trade_market = {
			save_scope_as = market
			trade_market_owner.county.holder = { save_scope_as = market_owner } # Market Owner
			inform_market_of_smuggling_modifier_effect = yes
		}
		# Message for County holder
		holder = {
			send_interface_message = {
				type = msg_county_corruption_bad
				title = gain_county_corruption.message.smuggling
				left_icon = scope:county
				scope:county = {
					if = {
						limit = { has_county_modifier = county_corruption_smuggling_ring_modifier_2 }
						hidden_effect = { remove_county_modifier = county_corruption_smuggling_ring_modifier_2 }
						add_county_modifier = {
							modifier = county_corruption_smuggling_ring_modifier_3
							years = 10
						}
					}
					else_if = {
						limit = { has_county_modifier = county_corruption_smuggling_ring_modifier }
						hidden_effect = { remove_county_modifier = county_corruption_smuggling_ring_modifier }
						add_county_modifier = {
							modifier = county_corruption_smuggling_ring_modifier_2
							years = 10
						}
					}
					else = {
						add_county_modifier = {
							modifier = county_corruption_smuggling_ring_modifier
							years = 10
						}
					}
				}
				scope:market = {
					add_trade_market_modifier = {
						modifier = gdp_market_smuggling_trade_modifier
						years = 10
					}
				}
			}
		}
	}
}

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

Task contracts (1)

  • smuggle_goods

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?