Scripted trigger · Silk and Silver files
merchant_trade_opportunity_partner_candidate_available_trigger
merchant_trade_opportunity_partner_candidate_available_trigger = { TAKER = … }game/common/scripted_triggers/gdp_merchant_triggers.txt, line 275 (19 lines). Parameters: $TAKER$.
merchant_trade_opportunity_partner_candidate_available_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 275 of its file. A call passes 1 parameter: TAKER. The game's script calls it in 2 places, among them Trade Opportunity: … (event gdp_merchant_trade_opportunity.9010) and can_accept_trade_opportunity_while_traveling_trigger (scripted trigger). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.
The comment above it in the file
Partner candidate who can be sent to handle scope:task_contract, from home or from $TAKER$'s entourage
What it checks
- Is available (an adult, not imprisoned, not incapable)
- If traveling:
merchant_trade_opportunity_partner_in_entourage_trigger = { TAKER = $TAKER$ }
is_trader = no- … is already involved in the Trade Opportunity
• 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 (19 lines of game script)
merchant_trade_opportunity_partner_candidate_available_trigger = {
is_available_quick = {
adult = yes
imprisoned = no
incapable = no
}
trigger_if = {
limit = { is_travelling = yes }
merchant_trade_opportunity_partner_in_entourage_trigger = { TAKER = $TAKER$ }
}
is_trader = no
custom_tooltip = {
text = gdp_merchant_trade_opportunity.9010.c.involved.tt
NOR = {
scope:task_contract.task_contract_employer ?= this
scope:task_contract.task_contract_target ?= this
}
}
}As written in game/common/scripted_triggers/gdp_merchant_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls merchant_trade_opportunity_partner_candidate_available_trigger.
Events (1)
- Trade Opportunity: …
gdp_merchant_trade_opportunity.9010
Scripted triggers (1)
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.