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

Scripted trigger · Silk and Silver files

gdp_league_trade_war_target_valid_trigger

gdp_league_trade_war_target_valid_trigger = { LEADER = … }

game/common/scripted_triggers/gdp_republic_triggers.txt, line 891 (32 lines). Parameters: $LEADER$.

gdp_league_trade_war_target_valid_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 891 of its file. It checks, in the game's words: Their Trade League must hold Trade Posts or Monopolies in Trade Markets your own League trades in, outside the Markets seated on their own members' land. A call passes 1 parameter: LEADER. The game's script calls it in 1 place, among them Trade War (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/gdp_republic_triggers.txt.

The comment above it in the file

$LEADER$'s league holds contested assets here

What it checks

• 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 (32 lines of game script)
gdp_league_trade_war_target_valid_trigger = {
	custom_tooltip = {
		text = league_trade_war_contested_market_tt
		confederation ?= {
			save_temporary_scope_as = trade_war_rival_league
			OR = {
				any_confederation_member = {
					OR = {
						gdp_league_holds_contested_trade_assets_trigger = {
							LEAGUE = $LEADER$.confederation
							RIVAL_LEAGUE = scope:trade_war_rival_league
						}
						any_vassal_or_below = {
							gdp_league_holds_contested_trade_assets_trigger = {
								LEAGUE = $LEADER$.confederation
								RIVAL_LEAGUE = scope:trade_war_rival_league
							}
						}
					}
				}
				any_trade_monopoly_for_confederation = {
					monopoly_trade_market ?= {
						gdp_league_contested_market_trigger = {
							LEAGUE = $LEADER$.confederation
							RIVAL_LEAGUE = scope:trade_war_rival_league
						}
					}
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/gdp_republic_triggers.txt.

Where it is used

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

Casus belli (1)

Source: game/common/scripted_triggers/gdp_republic_triggers.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?