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_tgf_fledgling_buy_market_trigger

gdp_tgf_fledgling_buy_market_trigger = { ROUTE = … }

game/common/scripted_triggers/gdp_merchant_triggers.txt, line 1609 (21 lines). Parameters: $ROUTE$.

gdp_tgf_fledgling_buy_market_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1609 of its file. A call passes 1 parameter: ROUTE. The game's script calls it in 4 places, among them A Beginner's Mistake (event gdp_trade_good_flavor.1015), gdp_tgf_fledgling_buy_route_trigger (local trigger) and gdp_tgf_oldhands_market_trigger (local trigger). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.

The comment above it in the file

this = market where $ROUTE$ buys a good whose category root is still fledgling in
Expects root = the merchant

What it checks

Every line of it is script with no tooltip text: the script is below.

The script as written (21 lines of game script)
gdp_tgf_fledgling_buy_market_trigger = {
	save_temporary_scope_as = tgf_fledgling_market_temp
	exists = trade_market_owner.title_province.county
	$ROUTE$ = {
		any_traded_good = {
			save_temporary_scope_as = tgf_fledgling_good_temp
			$ROUTE$ = {
				is_buying_trade_good_in_market = {
					trade_market = scope:tgf_fledgling_market_temp
					trade_good_type = scope:tgf_fledgling_good_temp
				}
			}
			trade_good_need_category = {
				save_temporary_scope_as = tgf_fledgling_cat_temp
			}
			root = {
				gdp_tgf_fledgling_in_category_trigger = { CATEGORY = scope:tgf_fledgling_cat_temp }
			}
		}
	}
}

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

Events (1)

Scripted triggers inside an event file (3)

  • gdp_tgf_fledgling_buy_route_trigger
  • gdp_tgf_oldhands_market_trigger
  • gdp_tgf_sample_market_trigger

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?