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

create_artifact_philosophers_stone_effect

create_artifact_philosophers_stone_effect = { OWNER = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 7089 (60 lines). Parameters: $OWNER$.

create_artifact_philosophers_stone_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 7089 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 1 place, among them Inspiration Realized (event fund_inspiration.1081). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.

The comment above it in the file

Philosopher's Stone

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (60 lines of game script)
create_artifact_philosophers_stone_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	hidden_effect_new_object = {
		# Get artifact quality, wealth, and materials
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		if = { #If we have set the location we use it for the materials
			limit = { exists = scope:location }
			scope:location = { add_to_list = artifact_material_sources }
		}

		scope:owner = {
			# Create the artifact
			create_artifact = {
				name = artifact_philosophers_stone_name
				creator = scope:owner
				description = placeholder
				visuals = small_box
				type = philosophers_stone
				modifier = artifact_health_gain_1_modifier
				wealth = scope:wealth
				quality = scope:quality
				save_scope_as = newly_created_artifact
			}
		}

		scope:newly_created_artifact = {
			get_artifact_feature_references_effect = yes
			set_artifact_description = artifact_philosophers_stone_description

			if = {
				limit = {
					rarity = illustrious
				}
				add_artifact_modifier = artifact_health_gain_4_modifier
			}
			else_if = {
				limit = {
					rarity = famed
				}
				add_artifact_modifier = artifact_health_gain_3_modifier
			}
			else_if = {
				limit = {
					rarity = masterwork
				}
				add_artifact_modifier = artifact_health_gain_2_modifier
			} 
			else_if = {
				limit = {
					rarity = common
				}
				add_artifact_modifier = artifact_health_gain_1_modifier
			}
			add_scaled_artifact_modifier_scholarship_effect = yes
			add_scaled_artifact_modifier_prestige_effect = yes
		}
	}
}

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

Where it is used

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

Events (1)

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