Scripted effect · Silk and Silver files
burgher_find_petitioner_effect
burgher_find_petitioner_effect = { COUNTY = … FACTION = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 90 (28 lines). Parameters: $COUNTY$, $FACTION$.
burgher_find_petitioner_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 90 of its file. A call passes 2 parameters: COUNTY and FACTION. The game's script calls it in 1 place, among them gdp_burgher.0001 (event). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
a check the game hides
Then
burgher_find_or_create_local_burgher_effect = { COUNTY = scope:petitioner_county SAVE_AS = burgher_petitioner FLAG = burgher_petitioner_created }
• 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 (28 lines of game script)
burgher_find_petitioner_effect = {
$COUNTY$ = { save_temporary_scope_as = petitioner_county }
scope:petitioner_county = {
random_county_province = {
limit = {
any_province_domicile = {
burgher_merchant_petitioner_trigger = { FACTION = $FACTION$ }
}
}
random_province_domicile = {
limit = {
burgher_merchant_petitioner_trigger = { FACTION = $FACTION$ }
}
owner = { save_scope_as = burgher_petitioner }
}
}
}
if = {
limit = { NOT = { exists = scope:burgher_petitioner } }
burgher_find_or_create_local_burgher_effect = {
COUNTY = scope:petitioner_county
SAVE_AS = burgher_petitioner
FLAG = burgher_petitioner_created
}
}
}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_find_petitioner_effect.
Events (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.