Scripted effect · Silk and Silver files
burgher_bestow_privilege_effect
burgher_bestow_privilege_effect = { COUNTY = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 579 (44 lines). Parameters: $COUNTY$.
burgher_bestow_privilege_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 579 of its file. A call passes 1 parameter: COUNTY. The game's script calls it in 2 places, among them Bestow Civic Liberties (interaction) and burgher_grant_privilege_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
$COUNTY$ = { burgher_can_receive_privilege_trigger = yes }
Then
If
$COUNTY$ = { burgher_can_demand_market_rights_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = market_rights }
Else if
$COUNTY$ = { burgher_can_demand_guild_rights_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = guild_rights }
Else if
$COUNTY$ = { burgher_can_demand_tax_exemption_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = tax_exemption }
Else if
$COUNTY$ = { burgher_can_demand_militia_charter_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = militia_charter }
• 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 (44 lines of game script)
burgher_bestow_privilege_effect = {
if = {
limit = {
$COUNTY$ = { burgher_can_receive_privilege_trigger = yes }
}
if = {
limit = {
$COUNTY$ = { burgher_can_demand_market_rights_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = market_rights
}
}
else_if = {
limit = {
$COUNTY$ = { burgher_can_demand_guild_rights_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = guild_rights
}
}
else_if = {
limit = {
$COUNTY$ = { burgher_can_demand_tax_exemption_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = tax_exemption
}
}
else_if = {
limit = {
$COUNTY$ = { burgher_can_demand_militia_charter_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = militia_charter
}
}
}
}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_bestow_privilege_effect.
Character interactions (1)
Scripted effects (1)
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.