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_destroyed_republic_patrician_effect

gdp_destroyed_republic_patrician_effect = { DESTROYER = … }

game/common/scripted_effects/gdp_republic_effects.txt, line 3899 (26 lines). Parameters: $DESTROYER$.

gdp_destroyed_republic_patrician_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3899 of its file. A call passes 1 parameter: DESTROYER. The game's script calls it in 3 places, among them on_title_lost (on action), on_vassal_change (on action) and convert_to_feudalism_from_republic_effect (scripted effect). Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

The comment above it in the file

Run on a patrician whose republic is gone
Over the headroom only notable families become merchants, or every family if a player destroyed the republic
The rest go to the pool

What it does

• 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 (26 lines of game script)
gdp_destroyed_republic_patrician_effect = {
	if = {
		limit = {
			OR = {
				gdp_merchant_companies_below_republic_headroom_trigger = yes
				$DESTROYER$ ?= { is_ai = no }
				gdp_merchant_company_keep_trigger = yes
			}
		}
		create_merchant_title_effect = {
			REASON = flag:republic_destroyed
			FLAVOR_CHAR = $DESTROYER$
		}
	}
	else = {
		save_temporary_scope_as = dissolved_patrician
		every_held_title = {
			limit = { is_noble_family_title = yes }
			scope:dissolved_patrician = { destroy_title = prev }
		}
		if = {
			limit = { is_pool_character = no }
			move_to_pool = yes
		}
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls gdp_destroyed_republic_patrician_effect.

On actions (the game's own hooks) (2)

  • on_title_lost
  • on_vassal_change

Source: game/common/scripted_effects/gdp_republic_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?