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

Scripted effect · Silk and Silver files

gdp_trade_league_enforce_monopoly_effect

gdp_trade_league_enforce_monopoly_effect = { COUNTY = … LEAGUE_HEAD = … }

game/common/scripted_effects/gdp_republic_effects.txt, line 441 (42 lines). Parameters: $COUNTY$, $LEAGUE_HEAD$.

gdp_trade_league_enforce_monopoly_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 441 of its file. A call passes 2 parameters: COUNTY and LEAGUE_HEAD. The game's script calls it in 1 place, among them Enforce a Monopoly (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

The comment above it in the file

Complete monopoly in $COUNTY$'s market for $LEAGUE_HEAD$'s league

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 (42 lines of game script)
gdp_trade_league_enforce_monopoly_effect = {
	$COUNTY$ = { save_scope_as = monopoly_county }
	$LEAGUE_HEAD$ = { save_scope_as = monopoly_enforcer }
	$LEAGUE_HEAD$.confederation = { save_scope_as = trade_league_monopoly }
	$COUNTY$.title_province.barony.trade_market = { save_scope_as = trade_market }

	custom_tooltip = request_monopoly_trade_league_tt_complete_normal

	hidden_effect = {
		create_trade_monopoly = {
			owning_confederation = scope:trade_league_monopoly
			trade_market = scope:trade_market
			type = normal
			is_complete = yes
		}
		scope:monopoly_enforcer = {
			save_scope_as = actor
			save_scope_as = monopoly_creator
		}
		scope:trade_market = {
			save_scope_as = monopolized_market
			every_character_in_market = {
				limit = {
					is_ai = no
					NOR = {
						this = scope:monopoly_enforcer
						is_member_of_confederation = scope:trade_league_monopoly
						any_liege_or_above = {
							is_member_of_confederation = scope:trade_league_monopoly
						}
					}
				}
				send_interface_toast = {
					title = trade_monopoly_created_against_you_toast_title
					type = msg_trade_monopoly
					left_icon = scope:monopoly_enforcer
					desc = trade_monopoly_created_against_you_complete_toast_desc
				}
			}
		}
	}
}

As written in game/common/scripted_effects/gdp_republic_effects.txt.

Where it is used

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

Casus belli (1)

Source: game/common/scripted_effects/gdp_republic_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?