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

Scripted effect

restore_dumnonia_decision_scripted_effect

restore_dumnonia_decision_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 2420 (34 lines). No parameters.

restore_dumnonia_decision_scripted_effect is a scripted effect in Crusader Kings III, written at line 2420 of its file. It takes no parameters: restore_dumnonia_decision_scripted_effect = yes. The game's script calls it in 2 places, among them Restore the Kingdom of Cornwall (decision) and … Kingdom Restored (event british_isles.4001). 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 (34 lines of game script)
restore_dumnonia_decision_scripted_effect = {
	save_scope_as = founder
	create_title_and_vassal_change = {
		type = created
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	title:k_cornwall = {
		change_title_holder = {
			holder = root
			change = scope:title_change
		}
	}
	resolve_title_and_vassal_change = scope:title_change

	hidden_effect = {
		title:d_somerset = { save_scope_as = cornwall_somerset }
		title:d_gloucester = { save_scope_as = cornwall_gloucester }
		title:d_cornwall = { set_de_jure_liege_title = title:k_cornwall }
		if = {	#If owned, annex Somerset/Wessex.
			limit = {
				title:d_somerset = { holder = root }
			}
			title:d_somerset = { set_de_jure_liege_title = title:k_cornwall }
		}
		if = {	#If owned, annex Gloucestershire/Hwicce.
			limit = {
				title:d_gloucester = { holder = root }
			}
			title:d_gloucester = { set_de_jure_liege_title = title:k_cornwall }
		}
	}
	custom_tooltip = restore_dumnonia_decision_effects_de_jure_tt
}

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 restore_dumnonia_decision_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?