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

gdp_civic_agitation_success_effect

gdp_civic_agitation_success_effect = { COUNTY = … SPONSOR = … }

game/common/scripted_effects/gdp_burgher_scripted_effects.txt, line 1422 (129 lines). Parameters: $COUNTY$, $SPONSOR$.

gdp_civic_agitation_success_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1422 of its file. A call passes 2 parameters: COUNTY and SPONSOR. The game's script calls it in 1 place, among them Liberty Kindled (event gdp_civic_agitation.0001). Its body carries 8 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

  • $COUNTY$ = { … }
  • If

    a check the game hides

    Then

    • If

      • scope:agitated_lord › Any targeting faction:
        • faction_type = burgher_autonomy_faction
        • Any faction county member:

      Then

      • scope:agitated_lord › One random targeting faction:
        • Where:
          • faction_is_type = burgher_autonomy_faction
          • Any faction county member:
        • You become the sponsor of the Civic Autonomy Faction
        • The Faction demands self-rule
        • add_faction_discontent = burgher_agitation_discontent_value
        • burgher_link_sponsor_effect = { FACTION = this SPONSOR = $SPONSOR$ }

      Else if

      • scope:agitated_county:
        • can_title_create_faction = { type = burgher_autonomy_faction target = scope:agitated_lord }

      Then

      • … starts a Civic Autonomy Faction against …
      • You become the sponsor of the Civic Autonomy Faction
      • The Faction demands self-rule
      • scope:agitated_lord › One random targeting faction:
        • Where:
          • faction_is_type = burgher_autonomy_faction
          • Any faction county member:
        • burgher_link_sponsor_effect = { FACTION = this SPONSOR = $SPONSOR$ }

      Otherwise

• 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 (120 lines of game script)
gdp_civic_agitation_success_effect = {
	$COUNTY$ = {
		save_scope_as = agitated_county
		holder ?= { save_scope_as = agitated_lord }

		add_county_modifier = {
			modifier = gdp_civic_agitation_county_modifier
			years = 10
		}
		change_county_control = -10
	}

	if = {
		limit = { exists = scope:agitated_lord }

		if = {
			limit = {
				scope:agitated_lord = {
					any_targeting_faction = {
						faction_type = burgher_autonomy_faction
						any_faction_county_member = {
							this = scope:agitated_county
						}
					}
				}
			}
			scope:agitated_lord = {
				random_targeting_faction = {
					limit = {
						faction_is_type = burgher_autonomy_faction
						any_faction_county_member = {
							this = scope:agitated_county
						}
					}
					custom_tooltip = gdp_civic_agitation_faction_sponsored_tt
					custom_tooltip = gdp_civic_agitation_demands_self_rule_tt
					add_faction_discontent = burgher_agitation_discontent_value
					burgher_link_sponsor_effect = {
						FACTION = this
						SPONSOR = $SPONSOR$
					}
					save_scope_as = agitated_faction
				}
			}
		}
		else_if = {
			limit = {
				scope:agitated_county = {
					can_title_create_faction = {
						type = burgher_autonomy_faction
						target = scope:agitated_lord
					}
				}
			}
			custom_tooltip = gdp_civic_agitation_faction_raised_tt
			custom_tooltip = gdp_civic_agitation_faction_sponsored_tt
			custom_tooltip = gdp_civic_agitation_demands_self_rule_tt

			hidden_effect = {
				scope:agitated_county = {
					title_create_faction = {
						type = burgher_autonomy_faction
						target = scope:agitated_lord
					}
				}
			}
			scope:agitated_lord = {
				random_targeting_faction = {
					limit = {
						faction_is_type = burgher_autonomy_faction
						any_faction_county_member = {
							this = scope:agitated_county
						}
					}
					burgher_link_sponsor_effect = {
						FACTION = this
						SPONSOR = $SPONSOR$
					}
					save_scope_as = agitated_faction
				}
			}
		}
		else = {
			custom_tooltip = gdp_civic_agitation_no_faction_yet_tt
		}
	}

	hidden_effect = {
		if = {
			limit = { exists = scope:agitated_faction }
			scope:agitated_faction = {
				save_scope_as = faction
				burgher_resolve_county_effect = { FACTION = this }
				faction_target = {
					trigger_event = { on_action = burgher_autonomy_demand }
				}
			}

			$SPONSOR$ = {
				send_interface_toast = {
					type = event_toast_effect_good
					title = gdp_civic_agitation_success_toast
					left_icon = this
					right_icon = scope:agitated_county
					custom_tooltip = gdp_civic_agitation_demands_self_rule_tt
				}
			}
		}
		else = {
			$SPONSOR$ = {
				if = {
					limit = { has_variable = burgher_sponsor_war_chest }
					remove_variable = burgher_sponsor_war_chest
					add_gold = major_gold_value
				}

				remove_variable = burgher_sponsor_joins_war

				send_interface_toast = {
					type = event_toast_effect_neutral

As written in game/common/scripted_effects/gdp_burgher_scripted_effects.txt.

The first 120 of its 129 lines; the rest is in game/common/scripted_effects/gdp_burgher_scripted_effects.txt from line 1422.

Where it is used

Every place in common/, events/ and history/ that calls gdp_civic_agitation_success_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.

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