Scripted effect · Silk and Silver files
gdp_tgf_add_tiered_route_modifier_effect
gdp_tgf_add_tiered_route_modifier_effect = { MODIFIER = … YEARS = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 7224 (15 lines). Parameters: $MODIFIER$, $YEARS$.
gdp_tgf_add_tiered_route_modifier_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 7224 of its file. A call passes 2 parameters: MODIFIER and YEARS. The game's script calls it in 11 places, among them An Open Road (event gdp_trade_good_flavor.1004), Ask for It by Name (event gdp_trade_good_flavor.1007) and Fatten for Market (event gdp_trade_good_flavor.3015). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Adds $MODIFIER$_modifier for $YEARS$ years, or $MODIFIER$_renowned_modifier when root is renowned in scope:tgf_category this = trade route
What it does
If
Then
add_trade_route_modifier = { modifier = $MODIFIER$_renowned_modifier years = $YEARS$ }
Otherwise
add_trade_route_modifier = { modifier = $MODIFIER$_modifier years = $YEARS$ }
• 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 (15 lines of game script)
gdp_tgf_add_tiered_route_modifier_effect = {
if = {
limit = { gdp_tgf_root_renowned_in_event_category_trigger = yes }
add_trade_route_modifier = {
modifier = $MODIFIER$_renowned_modifier
years = $YEARS$
}
}
else = {
add_trade_route_modifier = {
modifier = $MODIFIER$_modifier
years = $YEARS$
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_tgf_add_tiered_route_modifier_effect.
Events (11)
- An Open Road
gdp_trade_good_flavor.1004 - Ask for It by Name
gdp_trade_good_flavor.1007 - Fatten for Market
gdp_trade_good_flavor.3015 - Outside Money
gdp_trade_good_flavor.1031 - Porcelain Ballast
gdp_trade_good_flavor.3025 - The Market Seal
gdp_trade_good_flavor.1037
5 more
- The Mast Trunk
gdp_trade_good_flavor.3020 - The Packing Floor
gdp_trade_good_flavor.1036 - The Trader's Apprentice
gdp_trade_good_flavor.1039 - Their Dish, Our Goods
gdp_trade_good_flavor.2014 - Theriac
gdp_trade_good_flavor.3029
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.