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_elixir_effect

create_artifact_elixir_effect = { ALCHEMIST = … OWNER = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 6959 (127 lines). Parameters: $ALCHEMIST$, $OWNER$.

create_artifact_elixir_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 6959 of its file. A call passes 2 parameters: ALCHEMIST and 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

Elixir

What it does

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

The script as written (120 lines of game script)
create_artifact_elixir_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	$ALCHEMIST$ = { save_scope_as = alchemist }
	hidden_effect_new_object = {
		# Get artifact quality, wealth, and materials
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes

		scope:owner = {
			create_artifact = {
				name = placeholder
				description = placeholder
				creator = scope:alchemist
				visuals = flask
				type = elixir
				modifier = artifact_monthly_learning_lifestyle_xp_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_feature_group = elixir_type
			set_artifact_name = artifact_elixir_name
			set_artifact_description = artifact_elixir_description

			if = { # Strong health bonus for elixir of immortality
				limit = {
					has_artifact_feature = elixir_immortality
				}
				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_penalty_1_modifier
				}
			}
			else_if = { # Fertility bonus for elixir of youth
				limit = {
					has_artifact_feature = elixir_youth
				}
				if = {
					limit = {
						rarity = illustrious
					}
					add_artifact_modifier = artifact_fertility_gain_4_modifier
				}
				else_if = {
					limit = {
						rarity = famed
					}
					add_artifact_modifier = artifact_fertility_gain_3_modifier
				}
				else_if = {
					limit = {
						rarity = masterwork
					}
					add_artifact_modifier = artifact_fertility_gain_2_modifier
				} 
				else_if = {
					limit = {
						rarity = common
					}
					add_artifact_modifier = artifact_fertility_negative_modifier
				}
			}
			else = { # Otherwise you get a small health boost
				if = {
					limit = {
						rarity = illustrious
					}
					add_artifact_modifier = artifact_health_gain_2_modifier
				}
				else_if = {
					limit = {
						rarity = famed
					}
					add_artifact_modifier = artifact_health_gain_2_modifier
				}
				else_if = {
					limit = {
						rarity = masterwork
					}
					add_artifact_modifier = artifact_health_gain_1_modifier
				} 
				else_if = {
					limit = {
						rarity = common
					}
					add_artifact_modifier = artifact_health_gain_1_modifier
				}
			}
			# Rarity determines prestige
			add_scaled_artifact_modifier_minor_prestige_effect = yes

			set_variable = {
				name = quality
				value = scope:quality
			}

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

The first 120 of its 127 lines; the rest is in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt from line 6959.

Where it is used

Every place in common/, events/ and history/ that calls create_artifact_elixir_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?