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

Scripted effect · Silk and Silver files

create_curio_artifact_effect

create_curio_artifact_effect = { CREATOR = … OWNER = … }

game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt, line 31 (52 lines). Parameters: $CREATOR$, $OWNER$.

create_curio_artifact_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 31 of its file. A call passes 2 parameters: CREATOR and OWNER. The game's script calls it in 9 places, among them Solicit Patronage (decision), Spending Spree (decision) and …: Nexus of Knowledge (event gdp_merchant_luxury_contract.1621). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.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 (52 lines of game script)
create_curio_artifact_effect = {
	# Without a caller-set quality the trinket pool includes the bad tier, so roll common to rare here
	hidden_effect = {
		if = {
			limit = {
				NOT = { exists = scope:quality }
			}
			random_list = {
				55 = {
					save_scope_value_as = {
						name = quality
						value = 25
					}
				}
				35 = {
					save_scope_value_as = {
						name = quality
						value = 50
					}
				}
				10 = {
					save_scope_value_as = {
						name = quality
						value = 70
					}
				}
			}
			save_scope_value_as = {
				name = curio_rolled_quality
				value = yes
			}
		}
	}
	generate_trinket_effect = {
		TRINKET_RECEIVER = $OWNER$
		TRINKET_GIVER = $CREATOR$
		GRAB_ALL_TRINKETS = yes
		HISTORY_TYPE = given
	}
	if = {
		limit = { exists = scope:curio_rolled_quality }
		clear_saved_scope = quality
		clear_saved_scope = curio_rolled_quality
	}
	hidden_effect_new_object = {
		scope:new_trinket ?= {
			reforge_artifact = { type = curio }
			domicile_curio_artifact_modifiers_effect = yes
		}
	}
	custom_tooltip = create_curio_artifact
}

As written in game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt.

Where it is used

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

Character interactions (1)

  • Create Domicile Artifact

Events (5)

Scripted effects inside an event file (1)

  • lc_curio_fallback_artifact_effect

Source: game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.

Spotted a mistake on this page, or have an idea for the site?