Scripted trigger · Silk and Silver files
gdp_merchant_company_title_trigger
gdp_merchant_company_title_trigger = yesgame/common/scripted_triggers/gdp_merchant_triggers.txt, line 1076 (12 lines). No parameters.
gdp_merchant_company_title_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1076 of its file. It takes no parameters: gdp_merchant_company_title_trigger = yes (or no). The game's script calls it in 20 places, among them A Truce of Traders (event gdp_trade_good_flavor.1012), Flooded Market (event gdp_trade_good_flavor.1047) and Peruse the Genizah: … (event religious_decision.0911). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.
What it checks
- Title tier exactly County
One of these
- Has “merchant creation reason” (a variable the game's script sets)
or
All of these
is_landless_type_title = yes- The … is a Noble Family Title
title_domicile ?= { is_domicile_type = merchant_company }
• 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 (12 lines of game script)
gdp_merchant_company_title_trigger = {
tier = tier_county
OR = {
has_variable = merchant_creation_reason
AND = {
is_landless_type_title = yes
is_noble_family_title = yes
# Admin noble family titles pass the checks above but hold estates, not companies
title_domicile ?= { is_domicile_type = merchant_company }
}
}
}As written in game/common/scripted_triggers/gdp_merchant_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_merchant_company_title_trigger.
Events (6)
- A Truce of Traders
gdp_trade_good_flavor.1012 - Flooded Market
gdp_trade_good_flavor.1047 - Peruse the Genizah: …
religious_decision.0911 - The Imitator
gdp_trade_good_flavor.1010 - The Price of …
gdp_trade_good_flavor.1011 - Under the Hammer
gdp_trade_good_flavor.1024
Scripted triggers inside an event file (1)
- gdp_tgf_studied_in_category_trigger
On actions (the game's own hooks) (1)
- on_title_gain
Scripted effects (5)
Scripted triggers (7)
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.