Scripted trigger · Silk and Silver files
gdp_is_valid_for_merchant_trigger
gdp_is_valid_for_merchant_trigger = yesgame/common/scripted_triggers/gdp_merchant_triggers.txt, line 36 (70 lines). No parameters.
gdp_is_valid_for_merchant_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 36 of its file. It takes no parameters: gdp_is_valid_for_merchant_trigger = yes (or no). The game's script calls it in 1 place, among them Become Merchant (decision). 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
Trigger for the Become Merchant Decision
What it checks
- If government does not allow: profit trade routes:
If
One of these
- Is played by the AI
or
Their government does not have the administrative mechanicor
Is not an Independent Ruleror
Is landed
Then
- Must not be House Head of a Noble Family
- If played by the AI:
- Is available (an adult, not incapable, not imprisoned)
- Is under 60 years old
- Health at least 3
- Highest skill at least 12
One of these
- Ai boldness at least -20
or
Ai energy at least -20
- Does not have the Trait: Content
- Does not have the Trait: Craven
- Does not have the Trait: Lazy
None of these
- Their house › Any house member › Any held title: The … is a Noble Family Title
- Government does not allow: profit trade routes
• 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 (70 lines of game script)
gdp_is_valid_for_merchant_trigger = {
save_temporary_scope_as = potential_merchant_temp
trigger_if = {
limit = {
# If you are a Patrician you should absolutely have this option
NOT = { government_allows = profit_trade_routes }
}
trigger_if = {
limit = {
OR = {
is_ai = yes
NOT = { government_has_mechanic = administrative }
NOT = { top_liege = this }
is_landed = yes
}
}
custom_tooltip = {
text = adventurer_not_nf_head_trigger_tt
NOT = {
any_held_title = { is_noble_family_title = yes }
}
}
}
}
# Not in line for ceremonial liege
trigger_if = {
limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
custom_tooltip = {
text = tgp_japan_imperial_branch_decision_imperial_heir_trigger
NOT = {
ceremonial_liege_title = {
place_in_line_of_succession = {
target = scope:potential_merchant_temp
value <= 4
}
}
}
}
}
trigger_if = {
limit = { is_ai = yes }
is_available_quick = {
adult = yes
incapable = no
imprisoned = no
}
age < 60 # Won't immediately die
health >= fine_health # Healthy enough to venture forth
highest_skill_value >= decent_skill_rating
# Can't be completely unwilling to go outside.
OR = {
ai_boldness >= low_negative_ai_value
ai_energy >= low_negative_ai_value
}
NOR = {
has_trait = content # Too chill to trade
has_trait = craven # Too scared to trade
has_trait = lazy # Too lazy to trade
}
# Block admin members of noble families
NOT = {
house ?= {
any_house_member = {
any_held_title = { is_noble_family_title = yes }
}
}
NOT = { government_allows = profit_trade_routes }
}
}
}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_is_valid_for_merchant_trigger.
Decisions (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.