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_win_trade_war_effect

gdp_trade_league_win_trade_war_effect = { LEAGUE_HEAD = … RIVAL_LEAGUE_HEAD = … }

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

gdp_trade_league_win_trade_war_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 532 of its file. A call passes 2 parameters: LEAGUE_HEAD and RIVAL_LEAGUE_HEAD. The game's script calls it in 1 place, among them Trade War (casus belli). Its body carries 2 texts 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

Strip $RIVAL_LEAGUE_HEAD$'s league from markets contested with $LEAGUE_HEAD$

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_win_trade_war_effect = {
	$LEAGUE_HEAD$.confederation = { save_scope_as = victorious_league }
	$RIVAL_LEAGUE_HEAD$.confederation = { save_scope_as = defeated_league }

	custom_tooltip = league_trade_war_posts_tt
	custom_tooltip = league_trade_war_monopolies_tt

	hidden_effect = {
		scope:defeated_league = {
			every_confederation_member = {
				gdp_league_collect_contested_trade_assets_effect = yes

				# Patrician families hold posts and monopolies on their republic's behalf
				every_vassal_or_below = {
					gdp_league_collect_contested_trade_assets_effect = yes
				}
			}

			every_trade_monopoly_for_confederation = {
				limit = {
					monopoly_trade_market ?= {
						gdp_league_contested_market_trigger = {
							LEAGUE = scope:victorious_league
							RIVAL_LEAGUE = scope:defeated_league
						}
					}
				}
				add_to_list = surrendered_monopolies
			}
		}

		# Remove after the loops, or iteration stops early
		every_in_list = {
			list = surrendered_trade_posts
			remove_district_type = trade_post_location_district
		}
		every_in_list = {
			list = surrendered_monopolies
			destroy_trade_monopoly = yes
		}
	}
}

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_win_trade_war_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?