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_pedestal_crown_iron_effect

create_artifact_pedestal_crown_iron_effect = { OWNER = … }

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

create_artifact_pedestal_crown_iron_effect is a scripted effect in Crusader Kings III, written at line 2893 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 3 places, among them historical_artifacts.0023 (event), generate_historical_artifact_based_on_location_effect (scripted effect) and inspiration_adventure_create_artifact_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.

What it does

  • set_artifact_rarity_illustrious = yes
  • “Iron Crown of Lombardy” Artifact is created
  • scope:newly_created_artifact:
    • add_artifact_history = { … }
    • add_artifact_history = { type = inherited date = 896.1.1 recipient = character:167969 }
    • add_artifact_history = { type = inherited date = 905.3.1 recipient = character:167970 }
    • add_artifact_history = { type = inherited date = 910.8.4 recipient = character:167971 }
    • add_artifact_history = { type = inherited date = 940.1.1 recipient = character:167972 }
    • add_artifact_history = { type = inherited date = 941.11.1 recipient = character:167973 }
    • add_artifact_history = { type = inherited date = 967.1.1 recipient = character:7727 }
    • add_artifact_history = { type = inherited date = 991.1.1 recipient = character:7728 }
    • add_artifact_history = { type = inherited date = 991.6.1 recipient = character:7729 }
    • add_artifact_title_history = { target = title:e_hre date = 1039.2.4 }

• 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 (119 lines of game script)
create_artifact_pedestal_crown_iron_effect = { #Create at start
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_illustrious = yes

	# Create the artifact
	create_artifact = {	
		name = artifact_pedestal_crown_iron_name
		description = artifact_pedestal_crown_iron
		type = pedestal
		template = crown_iron_template
		visuals = pedestal_crown_iron
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created
			date = 313.2.1
			recipient = character:70523 #Konstantinos I the Great
			location = province:496 #Constantinople
		}
		modifier = iron_crown_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = { name = historical_unique_artifact value = yes }
		set_variable = iron_crown
		add_artifact_history = {
			type = given
			date = 600.1.1
			actor = character:7893
			recipient = character:190171
			location = province:2475
		}
		add_artifact_history = {
			type = given
			date = 774.7.10
			recipient = character:6392
			location = province:2475
		}
		add_artifact_history = {
			type = given
			date = 781.1.1
			recipient = character:6394
			location = province:2475
		}
		add_artifact_history = {
			type = inherited
			date = 810.1.1
			recipient = character:6396
			location = province:2475
		}
		add_artifact_history = {
			type = inherited
			date = 818.4.17
			recipient = character:90095
			location = province:2475
		}
		add_artifact_history = {
			type = inherited
			date = 887.1.1
			recipient = character:71901
			location = province:2475
		}
		# k_italy history copied manually because it is destroyed before 1066
		add_artifact_history = {
			type = inherited
			date = 896.1.1
			recipient = character:167969 #Liutfrido
		}
		add_artifact_history = {
			type = inherited
			date = 905.3.1
			recipient = character:167970 #Gotofredo
		}
		add_artifact_history = {
			type = inherited
			date = 910.8.4
			recipient = character:167971 #Gausberto
		}
		add_artifact_history = {
			type = inherited
			date = 940.1.1
			recipient = character:167972 #Uberto
		}
		add_artifact_history = {
			type = inherited
			date = 941.11.1
			recipient = character:167973 #Adalberto
		}
		add_artifact_history = {
			type = inherited
			date = 967.1.1
			recipient = character:7727 #Aleramo Aleramicci
		}
		add_artifact_history = {
			type = inherited
			date = 991.1.1
			recipient = character:7728 #Ottone I
		}
		add_artifact_history = {
			type = inherited
			date = 991.6.1
			recipient = character:7729 #Guglielmo I
		}
		add_artifact_history = {
			type = inherited
			date = 941.11.1
			recipient = character:167973 #Adalberto
		}
		add_artifact_title_history = {
			target = title:e_hre
			date = 1039.2.4
		}
		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_pedestal_crown_iron_effect.

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?