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

Scripted effect

form_switzerland_scripted_effect

form_switzerland_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 1193 (39 lines). No parameters.

form_switzerland_scripted_effect is a scripted effect in Crusader Kings III, written at line 1193 of its file. It takes no parameters: form_switzerland_scripted_effect = yes. The game's script calls it in 2 places, among them Form the Swiss Confederation (decision) and The Swiss Confederacy (event middle_europe_decisions.0001). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

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 (39 lines of game script)
form_switzerland_scripted_effect = {
	save_scope_as = scoped_ruler
	title:e_hre.holder = { save_scope_as = scoped_emperor }
	title:d_savoie = { save_scope_as = savoy }
	title:k_switzerland = { save_scope_as = switzerland }
	#De jure shifts.
	title:d_currezia = { set_de_jure_liege_title = title:k_switzerland }
	title:d_transjurania = { set_de_jure_liege_title = title:k_switzerland }
	if = {
		limit = { completely_controls = title:d_savoie }
		title:d_savoie = { set_de_jure_liege_title = title:k_switzerland }
	}
	else = { custom_tooltip = form_switzerland_kingdom_decision_effect_tooltip }
	title:k_switzerland = { set_de_jure_liege_title = root.top_liege.primary_title }
	create_title_and_vassal_change = {
		type = created
		save_scope_as = change
		add_claim_on_loss = no
	}
	title:k_switzerland = {
		change_title_holder = {
			holder = root
			change = scope:change
		}
	}
	resolve_title_and_vassal_change = scope:change
	hidden_effect = { set_primary_title_to = title:k_switzerland }
	add_prestige = major_prestige_gain
	if = {
		limit = {
			OR = {
				has_realm_law = crown_authority_0
				has_realm_law = crown_authority_1
				has_realm_law = crown_authority_2
			}
		}
		add_realm_law_skip_effects = crown_authority_3
	}
}

As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/00_major_decisions_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?