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

can_accept_trade_opportunity_while_traveling_trigger

In the game: While Traveling: • The Contract must not be at your current location • No other Contract may be assigned to your Partner • You must have an available Partner who is not a Trader, or, if you have no Partner, an available Associate who is not a Trader and is eligible to become one

can_accept_trade_opportunity_while_traveling_trigger = yes

game/common/scripted_triggers/11_gdp_triggers.txt, line 77 (28 lines). No parameters.

can_accept_trade_opportunity_while_traveling_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 77 of its file. It takes no parameters: can_accept_trade_opportunity_while_traveling_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

  • While Traveling: The Contract must not be at your current location · No other Contract may be assigned to your Partner · You must have an available Partner who is not a Trader, or, if you have no Partner, an available Associate who is not a Trader and is eligible to become one

• 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 (28 lines of game script)
can_accept_trade_opportunity_while_traveling_trigger = {
	custom_tooltip = {
		text = can_accept_trade_opportunity_while_traveling_trigger
		save_temporary_scope_as = task_contract
		task_contract_taker = {
			save_temporary_scope_as = contract_owner_temp
			location != scope:task_contract.task_contract_location
			trigger_if = {
				limit = { exists = court_position:partner_court_position }
				court_position:partner_court_position = {
					save_temporary_scope_as = partner
					merchant_trade_opportunity_partner_available_trigger = yes
				}
			}
			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
					}
					merchant_trade_opportunity_partner_candidate_available_trigger = { TAKER = scope:contract_owner_temp }
				}
			}
			merchant_trade_opportunity_partner_send_blocked_trigger = 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 can_accept_trade_opportunity_while_traveling_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?