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

Scripted effect

create_artifact_statue_viet_green_amitabha_buddha_effect

create_artifact_statue_viet_green_amitabha_buddha_effect = { OWNER = … }

game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt, line 5103 (35 lines). Parameters: $OWNER$.

create_artifact_statue_viet_green_amitabha_buddha_effect is a scripted effect in Crusader Kings III, written at line 5103 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 2 places, among them historical_artifacts.0023 (event) and inspiration_adventure_create_artifact_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.

What it does

• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists

“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.

The script as written (35 lines of game script)
create_artifact_statue_viet_green_amitabha_buddha_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = { save_scope_as = owner }
	# Not really used, but if we don't set the scopes we get errors in the feature selection
	set_artifact_rarity_famed = yes

	save_scope_value_as = {
		name = owner_fm
		value = flag:male
	}

	# Create the artifact
	create_artifact = {	
		name = artifact_statue_green_amitabha_buddha_name
		description = artifact_statue_green_amitabha_buddha_descripton
		type = sculpture
		visuals = statue
		wealth = scope:wealth
		quality = scope:quality
		history = {
			type = created
			date = 1066.5.1
			recipient = character:viet_ly_10 #Vuong Ly Nhat Ton
			location = province:10861 #Bac Ninh
		}
		modifier = statue_amitabha_buddha_modifier
		save_scope_as = newly_created_artifact
		decaying = no
	}

	scope:newly_created_artifact = {
		set_variable = statue_amitabha_buddha
		save_scope_as = epic
	}
}

As written in game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.txt.

Where it is used

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

Source: game/common/scripted_effects/01_exp1_historical_artifacts_creation_effect.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?