CK3 DatabaseCrusader Kings III · 1.21.0 “Florin” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →Merch→

Scripted effect · Silk and Silver files

burgher_provoke_county_factions_effect

burgher_provoke_county_factions_effect = { COUNTY = … }

game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 652 (85 lines). Parameters: $COUNTY$.

burgher_provoke_county_factions_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 652 of its file. A call passes 1 parameter: COUNTY. The game's script calls it in 1 place, among them Revoke Civic Liberties (interaction). Patch 1.21.0, from game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

What it does

  • $COUNTY$ = { … }
  • If

    a check the game hides

    Then

    • scope:burgher_revoke_faction:
      • add_faction_discontent = burgher_revoke_discontent_value

• 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 (85 lines of game script)
burgher_provoke_county_factions_effect = {
	$COUNTY$ = {
		add_county_modifier = {
			modifier = burgher_broken_charter_county_modifier
			years = burgher_broken_charter_years_value
		}

		holder ?= { save_scope_as = burgher_revoke_liege }

		if = {
			limit = {
				any_title_joined_faction = {
					faction_is_type = burgher_autonomy_faction
				}
			}
			random_title_joined_faction = {
				limit = { faction_is_type = burgher_autonomy_faction }
				save_scope_as = burgher_revoke_faction
			}
		}
		else_if = {
			limit = {
				exists = scope:burgher_revoke_liege
				scope:burgher_revoke_liege = {
					any_targeting_faction = {
						faction_is_type = burgher_autonomy_faction
						$COUNTY$ = { can_title_join_faction = prev }
					}
				}
			}
			scope:burgher_revoke_liege = {
				random_targeting_faction = {
					limit = {
						faction_is_type = burgher_autonomy_faction
						$COUNTY$ = { can_title_join_faction = prev }
					}
					save_scope_as = burgher_revoke_faction
				}
			}
			title_join_faction = scope:burgher_revoke_faction
		}
		else_if = {
			limit = {
				exists = scope:burgher_revoke_liege
				can_title_create_faction = {
					type = burgher_autonomy_faction
					target = scope:burgher_revoke_liege
				}
			}
			title_create_faction = {
				type = burgher_autonomy_faction
				target = scope:burgher_revoke_liege
			}
			scope:burgher_revoke_liege = {
				random_targeting_faction = {
					limit = {
						faction_is_type = burgher_autonomy_faction
						any_faction_county_member = {
							this = $COUNTY$
						}
					}
					save_scope_as = burgher_revoke_faction
				}
			}
		}
	}

	if = {
		limit = { exists = scope:burgher_revoke_faction }
		scope:burgher_revoke_faction = {
			if = {
				limit = { NOT = { has_variable = burgher_grievance } }
				set_variable = {
					name = burgher_grievance
					value = 0
				}
			}
			change_variable = {
				name = burgher_grievance
				add = 1
			}
			add_faction_discontent = burgher_revoke_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_provoke_county_factions_effect.

Character interactions (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.

Spotted a mistake on this page, or have an idea for the site?