Scripted effect · Silk and Silver files
burgher_grant_demanded_privilege_effect
burgher_grant_demanded_privilege_effect = { COUNTY = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 421 (56 lines). Parameters: $COUNTY$.
burgher_grant_demanded_privilege_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 421 of its file. A call passes 1 parameter: COUNTY. The game's script calls it in 1 place, among them burgher_settle_demand_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
a check the game hides
Then
If
scope:burgher_demand = flag:militia_charter$COUNTY$ = { burgher_can_demand_militia_charter_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = militia_charter }
Else if
scope:burgher_demand = flag:tax_exemption$COUNTY$ = { burgher_can_demand_tax_exemption_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = tax_exemption }
Else if
scope:burgher_demand = flag:guild_rights$COUNTY$ = { burgher_can_demand_guild_rights_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = guild_rights }
Else if
scope:burgher_demand = flag:market_rights$COUNTY$ = { burgher_can_demand_market_rights_trigger = yes }
Then
burgher_bestow_named_privilege_effect = { COUNTY = $COUNTY$ PRIVILEGE = market_rights }
Else if
scope:burgher_demand = flag:civic_privileges
Then
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
Otherwise
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
Otherwise
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
• 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 (56 lines of game script)
burgher_grant_demanded_privilege_effect = {
if = {
limit = { exists = scope:burgher_demand }
if = {
limit = {
scope:burgher_demand = flag:militia_charter
$COUNTY$ = { burgher_can_demand_militia_charter_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = militia_charter
}
}
else_if = {
limit = {
scope:burgher_demand = flag:tax_exemption
$COUNTY$ = { burgher_can_demand_tax_exemption_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = tax_exemption
}
}
else_if = {
limit = {
scope:burgher_demand = flag:guild_rights
$COUNTY$ = { burgher_can_demand_guild_rights_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = guild_rights
}
}
else_if = {
limit = {
scope:burgher_demand = flag:market_rights
$COUNTY$ = { burgher_can_demand_market_rights_trigger = yes }
}
burgher_bestow_named_privilege_effect = {
COUNTY = $COUNTY$
PRIVILEGE = market_rights
}
}
else_if = {
limit = { scope:burgher_demand = flag:civic_privileges }
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
}
else = {
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
}
}
else = {
burgher_grant_privilege_effect = { COUNTY = $COUNTY$ }
}
}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_grant_demanded_privilege_effect.
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.