Scripted effect · Silk and Silver files
trade_opportunities_competitive_pressure_failure_effect
trade_opportunities_competitive_pressure_failure_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 931 (15 lines). No parameters.
trade_opportunities_competitive_pressure_failure_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 931 of its file. It takes no parameters: trade_opportunities_competitive_pressure_failure_effect = yes. The game's script calls it in 16 places, among them alleviate_upheaval (contract), build_category_connections (contract) and challenge_competitor (contract). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
If
- Government is Merchant
- Has the Fortified Lands Perk
Then
- 50% chance of:
add_merchant_competitive_pressure_effect = { VALUE = 1 TOOLTIP = merchant_competitive_pressure_gain_1_tt }
• 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)
trade_opportunities_competitive_pressure_failure_effect = {
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = enduring_hardships_perk
}
random = {
chance = 50
add_merchant_competitive_pressure_effect = {
VALUE = 1
TOOLTIP = merchant_competitive_pressure_gain_1_tt
}
}
}
}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 trade_opportunities_competitive_pressure_failure_effect.
Task contracts (16)
- alleviate_upheaval
- build_category_connections
- challenge_competitor
- disrupt_charter
- entrepot_buy
- entrepot_sell
10 more
- exploit_upheaval
- market_investment
- negotiate_tolls
- Promote Goods
- sabotage_competition
- seek_debtors
- silk_road_caravan
- silk_road_network
- 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.