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_sculpture_effect

create_artifact_sculpture_effect = { OWNER = … SCULPTER = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 2239 (109 lines). Parameters: $OWNER$, $SCULPTER$.

create_artifact_sculpture_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 2239 of its file. A call passes 2 parameters: OWNER and SCULPTER. The game's script calls it in 3 places, among them Inspiration Realized (event fund_inspiration.1061), Bestow Artifact (interaction) and … Statue (event debug.331). 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 (109 lines of game script)
create_artifact_sculpture_effect = {
	$OWNER$ = { save_scope_as = owner }
	$SCULPTER$ = { save_scope_as = sculpter }
	hidden_effect_new_object = {
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		if = {
			limit = {
				scope:owner = { is_female = yes }
			}
			save_scope_value_as = {
				name = owner_fm
				value = flag:female
			}
		}
		else = {
			save_scope_value_as = {
				name = owner_fm
				value = flag:male
			}
		}

		if = {
			limit = {
				OR = {
					scope:sculpter = {	
						OR = {
							artifact_use_mena_building_visuals_trigger = yes
							artifact_use_iranian_building_visuals_trigger = yes
							artifact_use_steppe_building_visuals_trigger = yes
						}
					}
					scope:owner = {
						OR = {
							rite = { rite_has_tenet = tenet_aniconism }
							faith.religion = religion:islam_religion
						}
					}
				}
			}
			scope:owner = {
				create_artifact = {	
					name = artifact_sculpture_name
					creator = scope:sculpter
					description = placeholder
					visuals = statue_mena
					type = sculpture
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
					wealth = scope:wealth
					quality = scope:quality
					#decaying = no
				}
			}
		}
		else = {
			scope:owner = {
				create_artifact = {	
					name = artifact_sculpture_name
					creator = scope:sculpter
					description = placeholder
					visuals = statue
					type = sculpture
					modifier = artifact_placeholder_modifier
					save_scope_as = newly_created_artifact
					wealth = scope:wealth
					quality = scope:quality
					#decaying = no
				}
			}
		}
		scope:newly_created_artifact = {
			if = {
				limit = {
					has_artifact_feature = sculpture_material_wood
				}
				set_artifact_feature_group = generic_material_wood
			}
			#Description
			if = {
				limit = {
					OR = { 
						scope:sculpter = {
							OR = {
								artifact_use_mena_building_visuals_trigger = yes
								artifact_use_iranian_building_visuals_trigger = yes
								artifact_use_steppe_building_visuals_trigger = yes
							}
						}
						scope:owner = { #An owner who follows an aniconic rite will never want a statue that portrays a human
							OR = {
								rite = { rite_has_tenet = tenet_aniconism }
								faith.religion = religion:islam_religion
							}
						}
					}
				}
				set_artifact_description = artifact_sculpture_animal_description #backup description if anti icons
			}
			else = {
				set_artifact_description = artifact_sculpture_description #default description of person
			}
			add_scaled_artifact_modifier_grandeur_small_effect = yes
			add_scaled_artifact_modifier_prestige_effect = yes
			add_scaled_artifact_modifier_majesty_effect = yes
			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_sculpture_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?