Scripted effect · Silk and Silver files
merchant_contract_failure_reputation_effect
merchant_contract_failure_reputation_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 947 (22 lines). No parameters.
merchant_contract_failure_reputation_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 947 of its file. It takes no parameters: merchant_contract_failure_reputation_effect = yes. The game's script calls it in 10 places, among them build_category_connections (contract), challenge_competitor (contract) and disrupt_charter (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 “Disreputable Dealings” for 5 years
- General Opinion -30
Else if
scope:task_contract.task_contract_tier >= define:NTaskContract|MEDIUM_TASK_CONTRACT_TIER
Then
- Gains the modifier “Unreliable Dealings” for 5 years
- General Opinion -20
Otherwise
- Gains the modifier “Questionable Dealings” for 5 years
- General Opinion -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_reputation_effect = {
if = {
limit = { scope:task_contract.task_contract_tier >= define:NTaskContract|HIGH_TASK_CONTRACT_TIER }
add_character_modifier = {
modifier = gdp_merchant_contract_failure_reputation_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_reputation_medium_modifier
years = 5
}
}
else = {
add_character_modifier = {
modifier = gdp_merchant_contract_failure_reputation_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_reputation_effect.
Task contracts (10)
- build_category_connections
- challenge_competitor
- disrupt_charter
- exploit_upheaval
- market_investment
- negotiate_tolls
4 more
- sabotage_competition
- seek_debtors
- smuggle_goods
- support_guilds
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.