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

valid_to_accept_trade_opportunity_trigger

In the game: You must either: • Not be handling an active Contract yourself • Have a Partner who is available and not assigned to a Contract • Have an available Associate eligible to become your Partner

valid_to_accept_trade_opportunity_trigger = yes

game/common/scripted_triggers/11_gdp_triggers.txt, line 31 (45 lines). No parameters.

valid_to_accept_trade_opportunity_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 31 of its file. It checks, in the game's words: You must either: • Not be handling an active Contract yourself • Have a Partner who is available and not assigned to a Contract • Have an available Associate eligible to become your Partner. It takes no parameters: valid_to_accept_trade_opportunity_trigger = yes (or no). The game's script calls it in 16 places, among them alleviate_upheaval (contract), build_category_connections (contract) and challenge_competitor (contract). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/11_gdp_triggers.txt.

What it checks

  • You must either: Not be handling an active Contract yourself · Have a Partner who is available and not assigned to a Contract · Have an available Associate eligible to become your Partner

• 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 (45 lines of game script)
valid_to_accept_trade_opportunity_trigger = {
	custom_tooltip = {
		text = valid_to_accept_trade_opportunity_trigger
		save_temporary_scope_as = contract_owner_temp
		OR = {
			any_character_active_contract = {
				count = 0
				NOT = { exists = var:contract_partner }
			}
			trigger_if = {
				limit = { exists = court_position:partner_court_position }
				court_position:partner_court_position = {
					NOT = { exists = var:partner_contract }
					is_available_quick = {
						adult = yes
						travel = no
						imprisoned = no
						incapable = no
					}
					is_trader = no
				}
			}
			trigger_else = {
				can_employ_court_position_type = partner_court_position
				any_courtier = {
					would_be_valid_for_court_position = {
						employer = scope:contract_owner_temp
						court_position = partner_court_position
					}
					NOT = { exists = var:partner_contract }
					is_available_quick = {
						adult = yes
						imprisoned = no
						incapable = no
					}
					trigger_if = {
						limit = { is_travelling = yes }
						merchant_trade_opportunity_partner_in_entourage_trigger = { TAKER = scope:contract_owner_temp }
					}
					is_trader = no
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/11_gdp_triggers.txt.

Where it is used

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

Task contracts (16)

  • alleviate_upheaval
  • build_category_connections
  • challenge_competitor
  • disrupt_charter
  • entrepot_buy
  • entrepot_sell
10 more
  • exploit_upheaval
  • market_investment
  • negotiate_tolls
  • Promote Goods
  • sabotage_competition
  • seek_debtors
  • silk_road_caravan
  • silk_road_network
  • smuggle_goods
  • support_guilds

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