Scripted effect · Silk and Silver files
burgher_agitator_takes_commune_effect
burgher_agitator_takes_commune_effect = yesgame/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 1281 (79 lines). No parameters.
burgher_agitator_takes_commune_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1281 of its file. It takes no parameters: burgher_agitator_takes_commune_effect = yes. The game's script calls it in 1 place, among them The Liberty of … (event gdp_burgher.0020). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
- If their government is not a Republican Government: Adopts Republic Government
- scope:freed_county: Gains the … Title (new commune ruler)
If
scope:burgher_ruler:- Is not an Independent Ruler
burgher_commune_liege_outranks_agitator_trigger = { AGITATOR = scope:new_commune_ruler }
Then
change_liege = { liege = scope:commune_liege change = scope:commune_seat_change }
burgher_grant_city_charter_effect = { RULER = scope:new_commune_ruler LIEGE = scope:commune_liege }If
- scope:burgher_ruler: Is landed
Then
scope:burgher_ruler:change_liege = { liege = scope:new_commune_ruler change = scope:commune_patrician_change }
• 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 (79 lines of game script)
burgher_agitator_takes_commune_effect = {
save_scope_as = new_commune_ruler
if = {
limit = { NOT = { government_has_flag = government_is_republic } }
change_government = republic_government
}
create_title_and_vassal_change = {
type = granted
save_scope_as = commune_seat_change
add_claim_on_loss = no
}
if = {
limit = {
scope:burgher_ruler ?= { this != scope:new_commune_ruler }
scope:burgher_ruler.primary_title ?= { tier >= tier_duchy }
}
scope:burgher_ruler.primary_title = {
change_title_holder = {
holder = scope:new_commune_ruler
change = scope:commune_seat_change
}
}
}
scope:freed_county = {
change_title_holder = {
holder = scope:new_commune_ruler
change = scope:commune_seat_change
}
}
if = {
limit = {
scope:burgher_ruler ?= {
is_independent_ruler = no
exists = liege
burgher_commune_liege_outranks_agitator_trigger = { AGITATOR = scope:new_commune_ruler }
}
}
scope:burgher_ruler.liege = { save_scope_as = commune_liege }
change_liege = {
liege = scope:commune_liege
change = scope:commune_seat_change
}
}
resolve_title_and_vassal_change = scope:commune_seat_change
burgher_grant_city_charter_effect = {
RULER = scope:new_commune_ruler
LIEGE = scope:commune_liege
}
if = {
limit = {
scope:burgher_ruler ?= {
is_alive = yes
is_landed = yes
this != scope:new_commune_ruler
liege ?= { this != scope:new_commune_ruler }
}
}
create_title_and_vassal_change = {
type = granted
save_scope_as = commune_patrician_change
add_claim_on_loss = no
}
scope:burgher_ruler = {
change_liege = {
liege = scope:new_commune_ruler
change = scope:commune_patrician_change
}
}
resolve_title_and_vassal_change = scope:commune_patrician_change
}
}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_agitator_takes_commune_effect.
Events (1)
- The Liberty of …
gdp_burgher.0020
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.