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_market_competitiveness_contested_trigger

gdp_market_competitiveness_contested_trigger = { ROUTE_OWNER = … }

game/common/scripted_triggers/gdp_merchant_triggers.txt, line 329 (26 lines). Parameters: $ROUTE_OWNER$.

gdp_market_competitiveness_contested_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 329 of its file. A call passes 1 parameter: ROUTE_OWNER. The game's script calls it in 5 places, among them challenge_competitor (contract), sabotage_competition (contract) and gdp_challenge_competitor (on action). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.

The comment above it in the file

this = trade market that is still contested for $ROUTE_OWNER$:
- a profit rival trades in this market
- no complete monopoly exists
- $ROUTE_OWNER$ holds no monopoly over it

What it checks

  • Any character in market:
  • None of these

    • has_complete_trade_monopoly = yes
    • Any trade monopoly for market:
      • One of these

        • character_owner ?= $ROUTE_OWNER$
        • or

          All of these

          • exists = title_owner
          • title_owner.holder ?= $ROUTE_OWNER$
        • or

          All of these

          • exists = $ROUTE_OWNER$.confederation
          • exists = confederation_owner
          • confederation_owner ?= $ROUTE_OWNER$.confederation

• 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 (26 lines of game script)
gdp_market_competitiveness_contested_trigger = {
	save_temporary_scope_as = contested_market_temp
	any_character_in_market = {
		gdp_profit_potential_rival_trigger = {
			ROUTE_OWNER = $ROUTE_OWNER$
			MARKET = scope:contested_market_temp
		}
	}
	NOR = {
		has_complete_trade_monopoly = yes
		any_trade_monopoly_for_market = {
			OR = {
				character_owner ?= $ROUTE_OWNER$
				AND = {
					exists = title_owner
					title_owner.holder ?= $ROUTE_OWNER$
				}
				AND = {
					exists = $ROUTE_OWNER$.confederation
					exists = confederation_owner
					confederation_owner ?= $ROUTE_OWNER$.confederation
				}
			}
		}
	}
}

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

Where it is used

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

Task contracts (2)

  • challenge_competitor
  • sabotage_competition

On actions (the game's own hooks) (2)

  • gdp_challenge_competitor
  • gdp_sabotage_competition

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