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

Scripted effect · Roads to Power files

create_artifact_trinket_icon_ancient_effect

create_artifact_trinket_icon_ancient_effect = { OWNER = … }

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 11213 (40 lines). Parameters: $OWNER$.

create_artifact_trinket_icon_ancient_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 11213 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 1 place, among them historical_artifacts.0023 (event). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

The comment above it in the file

Trinket Artifact

What it does

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

The script as written (40 lines of game script)
create_artifact_trinket_icon_ancient_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
		# Create the artifact
		scope:owner = {
			create_artifact = {
				name = artifact_trinket_icon_name
				description = placeholder # Will be regenerated in the post-creation effects
				visuals = trinket_icon
				type = miscellaneous
				modifier = artifact_placeholder_modifier
				save_scope_as = newly_created_artifact
				wealth = scope:wealth
				quality = scope:quality
				history = { type = created_before_history }
			}
		}
		scope:newly_created_artifact = {
			set_artifact_description = artifact_trinket_icon_description
			# Set piety
			add_scaled_artifact_modifier_piety_effect = yes

			if = {
				limit = {
					OR = {
						rarity = famed
						rarity = illustrious
					}
				}
				add_scaled_artifact_modifier_learning_lifestyle_xp_effect = yes
			}
			remove_artifact_modifier = artifact_placeholder_modifier
		}
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/07_dlc_ep3_scripted_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?