Scripted effect · Silk and Silver files
merchant_charter_abuse_authority_county_effect
merchant_charter_abuse_authority_county_effect = { CUT = … MERCHANT = … }game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 4398 (108 lines). Parameters: $CUT$, $MERCHANT$.
merchant_charter_abuse_authority_county_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 4398 of its file. A call passes 2 parameters: CUT and MERCHANT. The game's script calls it in 3 places, among them Abuse Charter Authority (decision), A Patron's Pique (event gdp_decision.1010) and In the Name of the … (event gdp_decision.1020). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
What it does
If
One of these
$CUT$ = flag:yesor
exists = scope:cut
Then
scope:merchant_temp:add_short_term_gold = { … }
scope:market_holder:add_short_term_gold = { … }
Otherwise
scope:merchant_temp:add_short_term_gold = { … }
- scope:market_holder: Opinion: Abused Charter Authority (-15)
change_prosperity_progress_with_overflow = -50- If county Control more than 0:
change_county_control = -5
- The county gains the modifier “Charter Authority Abused” for 5 years
- Prosperity Growth -10%
title_province.barony.trade_market = { … }
• 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 (108 lines of game script)
merchant_charter_abuse_authority_county_effect = {
$MERCHANT$ = { save_temporary_scope_as = merchant_temp }
if = {
limit = {
exists = scope:market_holder
OR = {
$CUT$ = flag:yes
exists = scope:cut
}
}
scope:merchant_temp = {
add_short_term_gold = {
value = 10
if = {
limit = { exists = scope:market_county }
multiply = {
value = scope:market_county.prosperity_level
add = scope:market_county.title_province.province_size_level
}
}
divide = 2
min = 25
max = 125
}
}
scope:market_holder = {
save_scope_as = cut
add_short_term_gold = {
value = 10
if = {
limit = { exists = scope:market_county }
multiply = {
value = scope:market_county.prosperity_level
add = scope:market_county.title_province.province_size_level
}
}
divide = 2
min = 25
max = 125
}
}
}
else = {
scope:merchant_temp = {
add_short_term_gold = {
value = 5
if = {
limit = { exists = scope:market_county }
multiply = {
value = scope:market_county.prosperity_level
add = scope:market_county.title_province.province_size_level
}
}
min = 50
max = 250
}
}
scope:market_holder ?= {
add_opinion = {
target = scope:merchant_temp
modifier = abused_charter_authority_opinion
opinion = -15
}
}
}
change_prosperity_progress_with_overflow = -50
if = {
limit = { county_control > 0 }
change_county_control = -5
}
add_county_modifier = {
modifier = gdp_charter_abused_market_county_modifier
years = 5
}
title_province.barony.trade_market = {
add_competitiveness_modifier_for_character = {
character = scope:merchant_temp
modifier = gdp_charter_abused_market_modifier
years = 5
}
every_character_in_market = {
custom = every_merchant_house_in_market_custom
limit = {
NOR = {
this = scope:merchant_temp
scope:market_holder ?= this
scope:patron ?= this
}
government_has_flag = government_is_merchant
}
add_opinion = {
modifier = abused_charter_authority_opinion
target = scope:merchant_temp
opinion = -10
}
house ?= {
change_house_relation_effect = {
HOUSE = scope:merchant_temp.house
VALUE = house_relation_damage_minor_value
REASON = leverage_charter
CHAR = scope:merchant_temp.house.house_head
TARGET_CHAR = house_head
TITLE = dummy_female
}
}
}
}
}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_abuse_authority_county_effect.
Decisions (1)
Events (2)
- A Patron's Pique
gdp_decision.1010 - In the Name of the …
gdp_decision.1020
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.