Scripted effect · Silk and Silver files
commission_merchant_effect
commission_merchant_effect = { DEST = … GOOD = … MERCHANT = … YEARS = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 4763 (39 lines). Parameters: $DEST$, $GOOD$, $MERCHANT$, $YEARS$.
commission_merchant_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 4763 of its file. A call passes 4 parameters: DEST, GOOD, MERCHANT and YEARS. The game's script calls it in 2 places, among them Commission Trade Route (interaction) and gdp_merchant.9021 (event). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
The comment above it in the file
Commission Trade Route
What it does
$MERCHANT$ = { … }- If played by the AI: Opinion: Commissioned Trade Route
• 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 (39 lines of game script)
commission_merchant_effect = {
save_scope_as = commission_issuer
$DEST$ = { save_scope_as = trade_market }
$GOOD$ = { save_scope_as = target }
$MERCHANT$ = {
save_scope_as = commissioned_merchant
create_commission_trade_route = {
commissioner = scope:commission_issuer
primary_good = $GOOD$
destination = $DEST$
years = $YEARS$
save_scope_as = new_commission_route
}
custom_tooltip = {
text = commission_merchant_interaction_tt
}
if = {
limit = { exists = scope:new_commission_route }
scope:new_commission_route = {
add_trade_route_modifier = {
modifier = gdp_commission_merchant_route_modifier
years = $YEARS$
}
}
}
}
if = {
limit = { is_ai = yes }
add_opinion = {
target = scope:commissioned_merchant
modifier = gdp_commissioned_route_opinion
}
}
add_to_variable_list = {
name = commission_routes
target = scope:new_commission_route
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 commission_merchant_effect.
Character interactions (1)
Events (1)
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.