Scripted effect · Silk and Silver files
merchant_contract_failure_expertise_effect
merchant_contract_failure_expertise_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 970 (22 lines). No parameters.
merchant_contract_failure_expertise_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 970 of its file. It takes no parameters: merchant_contract_failure_expertise_effect = yes. The game's script calls it in 5 places, among them entrepot_buy (contract), entrepot_sell (contract) and Promote Goods (contract). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
If
scope:task_contract.task_contract_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER
Then
- Gains the modifier “Major Trade Setback” for 5 years
- Trade Expertise Growth -30%
Else if
scope:task_contract.task_contract_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER
Then
- Gains the modifier “Trade Setback” for 5 years
- Trade Expertise Growth -20%
Otherwise
- Gains the modifier “Minor Trade Setback” for 5 years
- Trade Expertise Growth -10%
• 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 (22 lines of game script)
merchant_contract_failure_expertise_effect = {
if = {
limit = { scope:task_contract.task_contract_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER }
add_character_modifier = {
modifier = gdp_merchant_contract_failure_expertise_high_modifier
years = 5
}
}
else_if = {
limit = { scope:task_contract.task_contract_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER }
add_character_modifier = {
modifier = gdp_merchant_contract_failure_expertise_medium_modifier
years = 5
}
}
else = {
add_character_modifier = {
modifier = gdp_merchant_contract_failure_expertise_low_modifier
years = 5
}
}
}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 merchant_contract_failure_expertise_effect.
Task contracts (5)
- entrepot_buy
- entrepot_sell
- Promote Goods
- silk_road_caravan
- silk_road_network
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.