Scripted effect · Silk and Silver files
burgher_find_or_create_local_burgher_effect
burgher_find_or_create_local_burgher_effect = { COUNTY = … FLAG = … SAVE_AS = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 56 (33 lines). Parameters: $COUNTY$, $FLAG$, $SAVE_AS$.
burgher_find_or_create_local_burgher_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 56 of its file. A call passes 3 parameters: COUNTY, FLAG and SAVE_AS. The game's script calls it in 3 places, among them burgher_find_petitioner_effect (scripted effect), burgher_free_member_county_effect (scripted effect) and setup_burgher_leader_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
- scope:local_burgher_county.holder › Any pool character:
province = scope:local_burgher_county.title_provinceburgher_can_head_commune_trigger = yes
Then
burgher_find_local_notable_effect = { COUNTY = scope:local_burgher_county }
Else if
a check the game hides
Then
create_character = { … }scope:$SAVE_AS$:set_character_rite = scope:local_burgher_county.rite
- scope:local_burgher_county.holder › Any pool character:
• 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 (33 lines of game script)
burgher_find_or_create_local_burgher_effect = {
$COUNTY$ = { save_temporary_scope_as = local_burgher_county }
if = {
limit = {
scope:local_burgher_county.holder ?= {
any_pool_character = {
province = scope:local_burgher_county.title_province
burgher_can_head_commune_trigger = yes
}
}
}
burgher_find_local_notable_effect = { COUNTY = scope:local_burgher_county }
scope:burgher_local_notable ?= { save_scope_as = $SAVE_AS$ }
}
else_if = {
limit = { exists = scope:local_burgher_county.holder }
create_character = {
location = scope:local_burgher_county.title_province
template = burgher_faction_leader_template
faith = scope:local_burgher_county.faith
culture = scope:local_burgher_county.culture
gender_female_chance = scope:local_burgher_county.title_faith_dominant_gender_female_chance
save_scope_as = $SAVE_AS$
}
scope:$SAVE_AS$ = {
set_character_rite = scope:local_burgher_county.rite
add_character_flag = $FLAG$
}
}
}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_or_create_local_burgher_effect.
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.