Scripted trigger · Silk and Silver files
gdp_can_be_trader_trigger
gdp_can_be_trader_trigger = yesgame/common/scripted_triggers/gdp_merchant_triggers.txt, line 6 (28 lines). No parameters.
gdp_can_be_trader_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 6 of its file. It takes no parameters: gdp_can_be_trader_trigger = yes (or no). The game's script calls it in 2 places, among them yearly_playable_pulse (on action) and can_be_trader (scripted rules). Its body carries 2 texts 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
Shared with can_be_trader scripted rule (00_rules.txt)
What it checks
- Is available (an adult, not incapable, not imprisoned)
- Is not a Partner
• 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)
gdp_can_be_trader_trigger = {
is_available_quick = {
alive = yes
adult = yes
incapable = no
imprisoned = no
}
# Merchants have no council seat besides the spouse's
trigger_if = {
limit = {
NOT = {
liege ?= { government_has_flag = government_is_merchant }
}
}
custom_tooltip = {
text = gdp_can_be_trader_council_tt
OR = {
is_councillor = no
has_council_position = councillor_spouse
}
}
}
custom_tooltip = {
text = gdp_can_be_trader_partner_tt
NOT = { has_court_position = partner_court_position }
}
NOT = { exists = var:partner_contract }
}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_can_be_trader_trigger.
On actions (the game's own hooks) (1)
- yearly_playable_pulse
Scripted rules (1)
- can_be_trader
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.