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_goblet_effect

create_artifact_goblet_effect = { OWNER = … SMITH = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 1353 (114 lines). Parameters: $OWNER$, $SMITH$.

create_artifact_goblet_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 1353 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 5 places, among them Inspiration Realized (event fund_inspiration.1071), inspiration_adventure_create_artifact_effect (scripted effect) and tournament_contest_generate_prize_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_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 (114 lines of game script)
create_artifact_goblet_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, and materials
		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
		scope:owner = {
			if = {
				limit = { exists = scope:adventurer }
				create_artifact = {	
					name = artifact_goblet_name
					description = placeholder
					visuals = goblet
					type = goblet
					modifier = artifact_placeholder_modifier
					wealth = scope:wealth
					quality = scope:quality
					#decaying = no
					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_goblet_name
					creator = scope:host
					description = placeholder # Will be updated in the post-creation effects after decorations are assigned.
					visuals = goblet
					type = goblet
					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 }
				create_artifact = {	
					name = artifact_goblet_name
					creator = scope:goldsmith
					description = placeholder
					visuals = goblet
					type = goblet
					wealth = scope:wealth
					quality = scope:quality
					#decaying = no
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
				}
			}
			else = {
				create_artifact = {	
					name = artifact_goblet_name
					description = placeholder
					visuals = goblet
					type = goblet
					wealth = scope:wealth
					quality = scope:quality
					#decaying = no
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
					history = { type = created_before_history }
				}
			}
		}
		scope:newly_created_artifact = {
			set_artifact_description = artifact_goblet_description

			# Set grandeur
			add_scaled_artifact_modifier_grandeur_small_effect = yes
			
			# Let's add another random effect to keep goblets interesting!
			random_list = {
				10 = {
					add_scaled_artifact_modifier_minor_prestige_effect = yes
				}
				10 = {
					add_scaled_artifact_modifier_majesty_effect = yes
				}
				30 = {
					trigger = { rarity = common }
					# Common goblets have a chance to not get any extra modifiers
				}
			}
			remove_artifact_modifier = artifact_placeholder_modifier
		}
	}
}

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_goblet_effect.

Character interactions (1)

  • Bestow Artifact

Events (2)

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?