Scripted effect · Silk and Silver files
gdp_disrupt_trade_routes_apply_effect
gdp_disrupt_trade_routes_apply_effect = yesgame/common/scripted_effects/gdp_trade_scheme_effects.txt, line 145 (17 lines). No parameters.
gdp_disrupt_trade_routes_apply_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 145 of its file. It takes no parameters: gdp_disrupt_trade_routes_apply_effect = yes. The game's script calls it in 1 place, among them Disrupt Trade Routes: Success (event gdp_trade_scheme.0012). Patch 1.21.0, from game/common/scripted_effects/gdp_trade_scheme_effects.txt.
What it does
scope:disrupted_trade_route:If
scope:disrupted_route_stat ?= flag:capacity
Then
add_trade_route_modifier = { modifier = gdp_disrupt_trade_routes_capacity_modifier years = 20 }
Otherwise
add_trade_route_modifier = { modifier = gdp_disrupt_trade_routes_competitiveness_modifier years = 20 }
• 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 (17 lines of game script)
gdp_disrupt_trade_routes_apply_effect = {
scope:disrupted_trade_route ?= {
if = {
limit = { scope:disrupted_route_stat ?= flag:capacity }
add_trade_route_modifier = {
modifier = gdp_disrupt_trade_routes_capacity_modifier
years = 20
}
}
else = {
add_trade_route_modifier = {
modifier = gdp_disrupt_trade_routes_competitiveness_modifier
years = 20
}
}
}
}As written in game/common/scripted_effects/gdp_trade_scheme_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_disrupt_trade_routes_apply_effect.
Events (1)
- Disrupt Trade Routes: Success
gdp_trade_scheme.0012
Source: game/common/scripted_effects/gdp_trade_scheme_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.