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

Scripted effect · The Royal Court files

generate_historical_artifact_based_on_location_effect

generate_historical_artifact_based_on_location_effect = { LOCATION = … }

game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 14740 (918 lines). Parameters: $LOCATION$.

generate_historical_artifact_based_on_location_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 14740 of its file. A call passes 1 parameter: LOCATION. The game's script calls it in 1 place, among them Treasure Map: A Bird in the Hand... (event ep3_contract_event.0045). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_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 (120 lines of game script)
generate_historical_artifact_based_on_location_effect = {
	random_list = {
		2 = { #Ark of the covenant
			trigger = {
				NOT = {
					any_artifact = { has_variable = ark_of_the_covenant }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east
						geographical_region = world_africa_north_east
						geographical_region = world_africa_east
					}
				}
			}
			create_artifact_sculpture_ark_of_covenant_effect = { OWNER = root }
		}
		2 = { #Babr E Bayan
			trigger = {
				NOT = {
					any_artifact = { has_variable = babr_e_bayan }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east_persia
						#geographical_region = world_steppe
						culture = { has_cultural_pillar = heritage_iranian }
					}
				}
			}
			create_artifact_sculpture_babr_e_bayan_effect = { OWNER = root }
		}
		10 = { #Crown of Justinian
			trigger = {
				NOT = {
					any_artifact = { has_variable = crown_of_justinian }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = custom_eastern_roman_empire
						culture = { has_cultural_pillar = heritage_byzantine }
					}
				}
			}
			create_artifact_pedestal_justinian_effect = { OWNER = root }
		}
		10 = { #Cup of Jamshid
			trigger = {
				NOT = {
					any_artifact = { has_variable = cup_jamshid }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east_persia
						culture = { has_cultural_pillar = heritage_iranian }
					}
				}
			}
			create_artifact_pedestal_cup_jamshid_effect = { OWNER = root }
		}
		10 = { #Harp of David
			trigger = {
				NOT = {
					any_artifact = { has_variable = david_harp }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east_jerusalem
						culture = { has_cultural_pillar = heritage_israelite }
						faith.religion = religion:judaism_religion
					}
				}
			}
			create_artifact_pedestal_david_harp_effect = { OWNER = root }
		}
		10 = { #Iron Crown - Recreate if lost
			trigger = {
				NOT = {
					any_artifact = { has_variable = iron_crown }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = custom_northern_italy
						culture = { has_cultural_pillar = heritage_latin }
					}
				}
			}
			create_artifact_pedestal_crown_iron_effect = { OWNER = root }
		}
		10 = { #Kaviani Banner
			trigger = {
				NOT = {
					any_artifact = { has_variable = banner_kaviani }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east_persia
						#geographical_region = world_steppe
						culture = { has_cultural_pillar = heritage_iranian }
					}
				}
			}
			create_artifact_wall_banner_kaviani_effect = { OWNER = root }
		}
		10 = { #Edessa Banner
			trigger = {
				NOT = {
					any_artifact = { has_variable = banner_edessa }
				}
				$LOCATION$ ?= {
					OR = {
						geographical_region = world_middle_east
						geographical_region = world_asia_minor
					}
				}
			}
			create_artifact_wall_banner_edessa_effect = { OWNER = root }
		}
		10 = { #El Cid's Sword
			trigger = {

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

The first 120 of its 918 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 14740.

Where it is used

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

Events (1)

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