Scripted effect · Silk and Silver files
burgher_refusal_revolt_effect
burgher_refusal_revolt_effect = { COUNTY = … FACTION = … }game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 810 (59 lines). Parameters: $COUNTY$, $FACTION$.
burgher_refusal_revolt_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 810 of its file. A call passes 2 parameters: COUNTY and FACTION. The game's script calls it in 1 place, among them burgher_refuse_demand_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.
What it does
If
$FACTION$ = { faction_is_at_war = no }
Then
- 1 of 2 things will happen:
- 0 – The towns take up arms (base chance; changed in play):
If
$FACTION$ = { … }
Then
- The Civic Autonomy Faction starts a War with the War for Civic Liberty Casus Belli If they win: Every rebelling County becomes a self-governing Republic, starting with Free City Rights, moving its Capital to the County's largest city if needed. Three or more will form a Trade League
Otherwise
- The Civic Autonomy Faction starts a War with the War for Civic Liberty Casus Belli If they win: Every rebelling County becomes a self-governing Republic, starting with Chartered City Rights, moving its Capital to the County's largest city if needed. Three or more will form a Trade League
- 0 – The towns lose their nerve (base chance; changed in play):
$FACTION$ = { add_faction_discontent = burgher_refusal_no_revolt_discontent_value }
- 0 – The towns take up arms (base chance; changed in play):
• 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 (59 lines of game script)
burgher_refusal_revolt_effect = {
if = {
limit = {
$FACTION$ = { faction_is_at_war = no }
}
$FACTION$ = { save_scope_as = burgher_revolt_faction }
$COUNTY$ = {
save_scope_value_as = {
name = burgher_revolt_chance
value = burgher_refusal_revolt_chance_value
}
}
random_list = {
0 = {
desc = burgher_refusal_revolt_outcome_war_tt
modifier = { add = scope:burgher_revolt_chance }
if = {
limit = {
$FACTION$ = {
faction_target ?= { gdp_can_have_free_cities_trigger = yes }
}
}
custom_tooltip = burgher_refusal_revolt_war_free_city_tt
}
else = {
custom_tooltip = burgher_refusal_revolt_war_tt
}
hidden_effect = {
$FACTION$ = {
setup_burgher_leader_effect = yes
faction_start_war = {}
}
}
}
0 = {
desc = burgher_refusal_revolt_outcome_calm_tt
modifier = { add = 100 }
modifier = {
add = {
value = scope:burgher_revolt_chance
multiply = -1
}
}
$FACTION$ = {
add_faction_discontent = burgher_refusal_no_revolt_discontent_value
}
}
}
}
}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_refusal_revolt_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.