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_artifact_reichskrone_effect

create_artifact_reichskrone_effect = { OWNER = … }

game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt, line 2064 (43 lines). Parameters: $OWNER$.

create_artifact_reichskrone_effect is a scripted effect in Crusader Kings III, written at line 2064 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 2 places, among them historical_artifacts.0023 (event) and The Empire of the West (event middle_europe_decisions.0015). Patch 1.20.1.2, from game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.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 (43 lines of game script)
create_artifact_reichskrone_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }

	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = reichskrone_name
		description = reichskrone_description
		type = helmet
		visuals = hre_crown
		wealth = scope:wealth
		quality = scope:quality
		template = reichskrone_template
		history = {
			type = created
			date = 962.1.1
			recipient = character:1282 #Otto I
			location = province:2092 #Aachen
		}
		modifier = reichskrone_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = {
			name = artifact_succession_title
			value = title:e_hre
		}
		add_artifact_title_history = {
			target = title:e_hre
			date = 962.1.1
		}
		set_variable = {
			name = reichskrone
			value = yes
		}
		save_scope_as = epic
	}
}

As written in game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.

Where it is used

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

Events (2)

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