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

Scripted effect

create_custom_duchy_effect

create_custom_duchy_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects_3.txt, line 190 (51 lines). No parameters.

create_custom_duchy_effect is a scripted effect in Crusader Kings III, written at line 190 of its file. It takes no parameters: create_custom_duchy_effect = yes. The game's script calls it in 1 place, among them Found a New Duchy (decision). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects_3.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 (51 lines of game script)
create_custom_duchy_effect = {
	save_scope_as = root_scope
	custom_tooltip = create_new_duchy
	show_as_tooltip = {
		primary_title = {
			custom_tooltip = create_custom_duchy_de_jure_changes
		}
	}

	hidden_effect = {
		save_scope_as = founder
		primary_title = {
			save_scope_as = old_title
		}

		create_dynamic_title = {
			tier = duchy
			name = NEW_CREATED_TITLE_NAME
		}
		create_title_and_vassal_change = {
			type = created
			save_scope_as = change
			add_claim_on_loss = no
		}

		scope:new_title = {
			change_title_holder = {
				holder = root
				change = scope:change
			}
		}

		resolve_title_and_vassal_change = scope:change

		scope:new_title = {
			set_de_jure_liege_title = scope:old_title.kingdom
		}
		scope:old_title = {
			set_de_jure_liege_title = scope:new_title
		}

		scope:new_title = {
			set_coa = scope:old_title
			set_color_from_title = scope:old_title
			set_capital_county = scope:old_title.title_capital_county
		}
		set_primary_title_to = scope:new_title

		trigger_event = major_decisions.1101
	}
}

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

Where it is used

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

Decisions (1)

Source: game/common/scripted_effects/00_major_decisions_scripted_effects_3.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?