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

Scripted effect · Coronations files

coronation_create_artifact_date_effect

coronation_create_artifact_date_effect = { DATE_CREATION = … DATE_INHERITANCE = … }

game/common/scripted_effects/10_ach_effects.txt, line 3157 (72 lines). Parameters: $DATE_CREATION$, $DATE_INHERITANCE$.

coronation_create_artifact_date_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3157 of its file. A call passes 2 parameters: DATE_CREATION and DATE_INHERITANCE. The game's script calls it in 1 place, among them coronation_create_artifact_game_start_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_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 (72 lines of game script)
coronation_create_artifact_date_effect = {
	if = {
		limit = {
			scope:artifact_type = flag:crown
		}
		create_artifact = {
			name = ach_spawned_crown_name
			description = ach_spawned_crown_desc
			type = helmet
			visuals = crown
			template = crown_wearable_template
			wealth = scope:wealth
			quality = scope:quality
			decaying = no
			modifier = artifact_monthly_minor_prestige_2_modifier
			modifier = artifact_legitimacy_gain_mult_4_modifier
			history = {
				type = created
				date = $DATE_CREATION$
				recipient = scope:title_founder
				location = scope:crown_title.title_capital_county.title_province
			}
			save_scope_as = newly_created_artifact
		}
		scope:newly_created_artifact = {	
			add_artifact_title_history = {
				target = scope:crown_title
				date = $DATE_INHERITANCE$
			}
			set_variable = {
				name = artifact_succession_title
				value = scope:crown_title
			}
			add_scaled_artifact_modifier_rulership_effect = yes
		}
	}
	else_if = {
		limit = {
			scope:artifact_type = flag:regalia
		}
		create_artifact = {
			name = ach_spawned_regalia_name
			description = ach_spawned_regalia_desc
			type = regalia
			visuals = regalia
			wealth = scope:wealth
			quality = scope:quality
			template = regalia_template
			decaying = no
			modifier = artifact_monthly_minor_prestige_2_modifier
			modifier = artifact_legitimacy_gain_mult_4_modifier
			history = {
				type = created
				date = $DATE_CREATION$
				recipient = scope:title_founder
				location = scope:crown_title.title_capital_county.title_province
			}
			save_scope_as = newly_created_artifact
		}
		scope:newly_created_artifact = {		
			add_artifact_title_history = {
				target = scope:crown_title
				date = $DATE_INHERITANCE$
			}
			set_variable = {
				name = artifact_succession_title
				value = scope:crown_title
			}
			add_scaled_artifact_modifier_rulership_effect = yes
		}
	}
}

As written in game/common/scripted_effects/10_ach_effects.txt.

Where it is used

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

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