Scripted effect · Silk and Silver files
burgher_grant_privilege_effect
burgher_grant_privilege_effect = { COUNTY = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 316 (11 lines). Parameters: $COUNTY$.
burgher_grant_privilege_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 316 of its file. A call passes 1 parameter: COUNTY. The game's script calls it in 1 place, among them burgher_grant_demanded_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
burgher_bestow_privilege_effect = { COUNTY = $COUNTY$ }
Otherwise
burgher_grant_lesser_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 (11 lines of game script)
burgher_grant_privilege_effect = {
if = {
limit = {
$COUNTY$ = { burgher_can_receive_privilege_trigger = yes }
}
burgher_bestow_privilege_effect = { COUNTY = $COUNTY$ }
}
else = {
burgher_grant_lesser_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_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.