Scripted effect · Silk and Silver files
burgher_sponsor_pay_effect
burgher_sponsor_pay_effect = { FACTION = … SERVED_YEARS = … WATCHED_YEARS = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 1199 (49 lines). Parameters: $FACTION$, $SERVED_YEARS$, $WATCHED_YEARS$.
burgher_sponsor_pay_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1199 of its file. A call passes 3 parameters: FACTION, SERVED_YEARS and WATCHED_YEARS. The game's script calls it in 2 places, among them burgher_sponsor_charter_spoils_effect (scripted effect) and burgher_sponsor_spoils_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (49 lines of game script)
burgher_sponsor_pay_effect = {
$FACTION$ = {
set_variable = burgher_outcome_reported
if = {
limit = { var:merchant_sponsor ?= { is_alive = yes } }
if = {
limit = { has_variable = sponsor_shed_blood }
var:merchant_sponsor = {
add_character_modifier = {
modifier = merchant_civic_advantage_modifier
years = $SERVED_YEARS$
}
trigger_event = gdp_burgher.0020
}
}
else_if = {
limit = {
OR = {
has_variable = sponsor_opened_purse
has_variable = burgher_sponsor_joins_war
has_variable = burgher_sponsor_war_chest
}
}
var:merchant_sponsor = { save_scope_as = burgher_sponsor }
burgher_sponsor_bankers_due_effect = {
SPONSOR = scope:burgher_sponsor
YEARS = $SERVED_YEARS$
}
}
else = {
var:merchant_sponsor = {
add_character_modifier = {
modifier = merchant_civic_advantage_modifier
years = $WATCHED_YEARS$
}
}
}
}
remove_variable = sponsor_shed_blood
remove_variable = sponsor_opened_purse
remove_variable = burgher_sponsor_joins_war
remove_variable = burgher_sponsor_war_chest
}
}As written in game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls burgher_sponsor_pay_effect.
Scripted effects (2)
Source: game/common/scripted_effects/gdp_burgher_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.