Scripted trigger · All Under Heaven files
house_relation_merchants_share_market_trigger
house_relation_merchants_share_market_trigger = { HOUSE = … OTHER_HOUSE = … }game/common/scripted_triggers/10_tgp_house_relation_triggers.txt, line 4 (21 lines). Parameters: $HOUSE$, $OTHER_HOUSE$.
house_relation_merchants_share_market_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 4 of its file. A call passes 2 parameters: HOUSE and OTHER_HOUSE. The game's script calls it in 1 place, among them house_relation_heads_in_range_trigger (scripted trigger). Patch 1.21.0, from game/common/scripted_triggers/10_tgp_house_relation_triggers.txt.
The comment above it in the file
Both house heads are merchants with overlapping trade-route markets
What it checks
$HOUSE$ ?= { save_temporary_scope_as = merchant_share_house_1_temp }$OTHER_HOUSE$ ?= { save_temporary_scope_as = merchant_share_house_2_temp }
• 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 (21 lines of game script)
house_relation_merchants_share_market_trigger = {
$HOUSE$ ?= { save_temporary_scope_as = merchant_share_house_1_temp }
$OTHER_HOUSE$ ?= { save_temporary_scope_as = merchant_share_house_2_temp }
trigger_if = {
limit = {
exists = scope:merchant_share_house_1_temp.house_head
exists = scope:merchant_share_house_2_temp.house_head
scope:merchant_share_house_1_temp.house_head = { government_has_flag = government_is_merchant }
scope:merchant_share_house_2_temp.house_head = { government_has_flag = government_is_merchant }
}
scope:merchant_share_house_1_temp.house_head = {
any_trade_route = {
any_trade_market_on_route = {
save_temporary_scope_as = shared_market_temp
any_character_in_market = { this = scope:merchant_share_house_2_temp.house_head }
}
}
}
}
trigger_else = { always = no }
}As written in game/common/scripted_triggers/10_tgp_house_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls house_relation_merchants_share_market_trigger.
Scripted triggers (1)
Source: game/common/scripted_triggers/10_tgp_house_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.