Scripted trigger · Silk and Silver files
gdp_trader_needs_competitiveness_trigger
gdp_trader_needs_competitiveness_trigger = yesgame/common/scripted_triggers/gdp_merchant_triggers.txt, line 1231 (16 lines). No parameters.
gdp_trader_needs_competitiveness_trigger is a scripted trigger in Crusader Kings III, in the Silk and Silver files, written at line 1231 of its file. It takes no parameters: gdp_trader_needs_competitiveness_trigger = yes (or no). The game's script calls it in 5 places, among them Appraising Goods (scheme), Appraising Markets (scheme) and Lobbying Advantages (scheme). Patch 1.21.0, from game/common/scripted_triggers/gdp_merchant_triggers.txt.
What it checks
If
assigned_trade_route ?= { current_capacity < max_capacity }
Then
assigned_trade_route.trade_route_owner ?= { save_temporary_scope_as = trader_route_owner_temp }location.barony.trade_market ?= { … }
Otherwise
- Never
• 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)
gdp_trader_needs_competitiveness_trigger = {
trigger_if = {
# If we are at max capacity competitiveness doesn't matter.
limit = {
assigned_trade_route ?= { current_capacity < max_capacity }
}
assigned_trade_route.trade_route_owner ?= {
save_temporary_scope_as = trader_route_owner_temp
}
# Check for rivals; if we hold a monopoly we don't care about competitiveness.
location.barony.trade_market ?= {
gdp_market_competitiveness_contested_trigger = { ROUTE_OWNER = scope:trader_route_owner_temp }
}
}
trigger_else = { always = no }
}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_trader_needs_competitiveness_trigger.
Schemes (5)
- Appraising Goods
- Appraising Markets
- Lobbying Advantages
- Negotiating Deals
- Undermining Competitors
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.