Scripted effect · Silk and Silver files
merchant_charter_benevolent_authority_county_effect
merchant_charter_benevolent_authority_county_effect = { MERCHANT = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 4507 (48 lines). Parameters: $MERCHANT$.
merchant_charter_benevolent_authority_county_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 4507 of its file. A call passes 1 parameter: MERCHANT. The game's script calls it in 3 places, among them Direct Local Investment (decision), A Patron's Pleasure (event gdp_decision.1210) and In the Name of the … (event gdp_decision.1220). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
scope:merchant_temp:add_prestige = { … }
- scope:market_holder: Opinion: Beneficial Charter Mandate (+15)
If
county_control < county_control_baseline
Then
change_county_control = 5
- The county gains the modifier “Charter-Mandated Development” for 5 years
- Prosperity Growth +10%
- One random county province:
- Where › Any built regular district › Any district building:
can_building_be_upgraded = yes
- One random built regular district:
- Where › Any district building:
can_building_be_upgraded = yes
- One random district building:
- Where:
can_building_be_upgraded = yes
upgrade_this_building = yes
- Where:
- Where › Any district building:
- Where › Any built regular district › Any district building:
• 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 (48 lines of game script)
merchant_charter_benevolent_authority_county_effect = {
$MERCHANT$ = { save_temporary_scope_as = merchant_temp }
scope:merchant_temp = {
add_prestige = {
value = 10
if = {
limit = { exists = domicile.domicile_location.county }
multiply = {
value = domicile.domicile_location.county.prosperity_level
add = domicile.domicile_location.province_size_level
}
}
min = 50
max = 500
}
}
scope:market_holder ?= {
add_opinion = {
target = scope:merchant_temp
modifier = charitable_charter_authority_opinion
opinion = 15
}
}
if = {
limit = { county_control < county_control_baseline }
change_county_control = 5
}
add_county_modifier = {
modifier = gdp_charter_charitable_market_county_modifier
years = 5
}
random_county_province = {
limit = {
any_built_regular_district = {
any_district_building = { can_building_be_upgraded = yes }
}
}
random_built_regular_district = {
limit = {
any_district_building = { can_building_be_upgraded = yes }
}
random_district_building = {
limit = { can_building_be_upgraded = yes }
upgrade_this_building = yes
}
}
}
}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_charter_benevolent_authority_county_effect.
Decisions (1)
Events (2)
- A Patron's Pleasure
gdp_decision.1210 - In the Name of the …
gdp_decision.1220
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.