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

Scripted effect · Tours and Tournaments files

create_artifact_pas_darmes_token_effect

create_artifact_pas_darmes_token_effect = { OWNER = … WINNER = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4763 (67 lines). Parameters: $OWNER$, $WINNER$.

create_artifact_pas_darmes_token_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4763 of its file. A call passes 2 parameters: OWNER and WINNER. The game's script calls it in 1 place, among them tournament_events.1110 (event). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Token

What it does

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

The script as written (67 lines of game script)
create_artifact_pas_darmes_token_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = {
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		select_local_animal_effect = { TYPE = any } # Save scope to limit possible animals: any/big/small/dangerous/harmless/prowling
		save_scope_as = owner
	}
	$WINNER$ = { save_scope_as = winner }
	hidden_effect_new_object = {
		# Get artifact quality, wealth, and materials
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		if = { #If we have set the location we use it for the materials
			limit = { exists = scope:location }
			scope:location = { add_to_list = artifact_material_sources }
		}
		scope:winner = {
			# Create the artifact
			create_artifact = {
				name = artifact_pas_darmes_token_name
				creator = scope:owner
				description = placeholder
				visuals = small_box
				type = pas_darmes_token
				modifier = artifact_monthly_prestige_add_1_modifier
				wealth = scope:wealth
				quality = scope:quality
				max_durability = 5
				save_scope_as = newly_created_artifact
				history = {
					#type = pas_darmes_yielded
					type = given
					location = scope:location
					actor = scope:owner
					recipient = scope:winner
				}
			}
		}
		scope:newly_created_artifact = {
			set_variable = {
				name = token_owner
				value = scope:owner
			}
			set_artifact_feature_group = decoration_pattern
			set_artifact_feature_group = generic_material_cloth
			set_artifact_description = artifact_pas_darmes_token_description
			switch = {
				trigger = rarity
				illustrious = { add_artifact_modifier = artifact_monthly_prestige_add_4_modifier }
				famed = { add_artifact_modifier = artifact_monthly_prestige_add_3_modifier }
				masterwork = { add_artifact_modifier = artifact_monthly_prestige_add_2_modifier }
				common = { add_artifact_modifier = artifact_monthly_prestige_add_1_modifier }
			}
			add_scaled_artifact_modifier_attractiveness_effect = yes
			set_variable = {
				name = quality
				value = scope:quality
			}
			set_variable = {
				name = wealth
				value = scope:wealth
			}
		}
		scope:owner = { remove_variable = animal_type }
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/04_dlc_ep2_tournament_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?