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_brooch_effect

create_artifact_brooch_effect = { OWNER = … SMITH = … }

game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 11282 (157 lines). Parameters: $OWNER$, $SMITH$.

create_artifact_brooch_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 11282 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 22 places, among them …: the Jeweler (event ep3_laamp_decision_event.1065), A Laden Caravan (event travel_events_oltner_2.1030) and A Small Grave (event bp3_roaming.0250). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.

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_brooch_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	$SMITH$ = { save_scope_as = goldsmith }
	save_adventurer_location_effect = yes

	hidden_effect_new_object = {
		# Get artifact quality, wealth, materials, and decorations
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		if = { #Any existing dummy character gets turned into the goldsmith
			limit = {
				exists = scope:dummy_gender
				scope:goldsmith = scope:dummy_gender
			}
			clear_saved_scope = goldsmith
			clear_saved_scope = dummy_gender
		}
		# Create the artifact
		if = {
			limit = { exists = scope:adventurer }
			create_artifact = {
				name = artifact_brooch_name
				description = placeholder
				visuals = brooch
				type = brooch
				modifier = artifact_placeholder_modifier
				wealth = scope:wealth
				quality = scope:quality
				save_scope_as = newly_created_artifact
				history = {
					location = scope:location
					actor = scope:adventurer
					recipient = root
					type = discovered
				}
			}
		}
		else_if = {
			limit = {
				scope:host ?= $OWNER$
				scope:activity ?= { has_activity_type = activity_tournament }
			}
			create_artifact = {
				name = artifact_brooch_name
				creator = scope:host
				description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
				visuals = brooch
				type = brooch
				modifier = artifact_placeholder_modifier
				wealth = scope:wealth
				quality = scope:quality
				history = {
					type = prize_created
					recipient = scope:host
				}
				save_scope_as = newly_created_artifact
			}
		}
		else_if = {
			limit = {
				exists = scope:goldsmith
				exists = scope:owner
				scope:goldsmith = scope:owner
			}
			create_artifact = {
				name = artifact_brooch_name
				description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
				visuals = brooch
				type = brooch
				modifier = artifact_placeholder_modifier
				wealth = scope:wealth
				quality = scope:quality
				history = {
					type = created
					actor = scope:goldsmith
					recipient = scope:goldsmith
					location = scope:goldsmith.location
				}
				save_scope_as = newly_created_artifact
			}
		}
		else_if = {
			limit = { exists = scope:goldsmith }
			create_artifact = {
				name = artifact_brooch_name
				creator = scope:goldsmith
				description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
				visuals = brooch
				type = brooch
				modifier = artifact_placeholder_modifier
				wealth = scope:wealth
				quality = scope:quality
				save_scope_as = newly_created_artifact
			}
		}
		else = {
			create_artifact = {
				name = artifact_brooch_name
				description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
				visuals = brooch
				type = brooch
				modifier = artifact_placeholder_modifier
				wealth = scope:wealth
				quality = scope:quality
				save_scope_as = newly_created_artifact
				history = { type = created_before_history }
			}
		}

		scope:newly_created_artifact = {
			# Finish generating decorations and update description
			if = {
				limit = {
					OR = {
						has_artifact_feature = brooch_decoration_adornment
						has_artifact_feature = brooch_decoration_centerpiece_and_adornment
					}
				}
				set_artifact_feature_group = brooch_adornment

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

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

Where it is used

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

Character interactions (1)

  • Bestow Artifact

Events (17)

11 more

Scripted effects inside an event file (3)

  • create_coronation_artifact_effect
  • create_cultural_artifact_effect
  • tribute_mission_1000_set_artifact_reward_effect

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?