Scripted trigger · Silk and Silver files
merchant_trade_opportunity_partner_available_trigger
merchant_trade_opportunity_partner_available_trigger = yesgame/common/scripted_triggers/gdp_merchant_triggers.txt, line 248 (16 lines). No parameters.
merchant_trade_opportunity_partner_available_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 248 of its file. It takes no parameters: merchant_trade_opportunity_partner_available_trigger = yes (or no). 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
Scoped partner or partner candidate can be sent to handle scope:task_contract.
What it checks
- Is available (an adult, not imprisoned, not incapable)
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 (16 lines of game script)
merchant_trade_opportunity_partner_available_trigger = {
is_available_quick = {
adult = yes
travel = no
imprisoned = no
incapable = no
}
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_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.