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 Fate of Iberia files

create_artifact_fp2_armillary_sphere_effect

create_artifact_fp2_armillary_sphere_effect = { MAKER = … OWNER = … }

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 1743 (50 lines). Parameters: $MAKER$, $OWNER$.

create_artifact_fp2_armillary_sphere_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1743 of its file. A call passes 2 parameters: MAKER and OWNER. The game's script calls it in 1 place, among them Inspiration Realized (event fund_inspiration.1061). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

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

The script as written (50 lines of game script)
create_artifact_fp2_armillary_sphere_effect = {
	# Set up general scopes.
	$OWNER$ = { save_scope_as = owner }
	$MAKER$ = { save_scope_as = maker }
	# Begin creating.
	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 = {
			if = {
				limit = { has_royal_court = yes }
				create_artifact_fp2_armillary_sphere_core_effect = { TYPE = scientific_apparatus }
			}
			else = {
				create_artifact_fp2_armillary_sphere_core_effect = { TYPE = miscellaneous_when_not_court }
			}
		}
		scope:newly_created_artifact = {
			# Flag this as something that can be reforged for free, if relevant.
			if = {
				limit = {
					$OWNER$ = { has_royal_court = no }
				}
				set_variable = {
					name = dlc_potential_court_artifact
					value = yes
				}
			}
			set_artifact_feature_group = generic_material_wood
			set_artifact_feature_group = decoration_material_inlay
			set_artifact_description = fp2_armillary_sphere_desc
			# Let's add modifiers!
			add_scaled_artifact_modifier_learning_lifestyle_xp_effect = yes
			if = {
				limit = {
					OR = {
						rarity = famed
						rarity = illustrious
					}
				}
				add_artifact_modifier = artifact_learning_per_prestige_level_modifier
			}
			add_scaled_artifact_modifier_grandeur_big_effect = yes
			# Remove the placeholder.
			remove_artifact_modifier = artifact_placeholder_modifier
		}
	}
}

As written in game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

Where it is used

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

Events (1)

Source: game/common/scripted_effects/03_dlc_fp2_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?