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_tournament_favor_effect

create_artifact_tournament_favor_effect = { OWNER = … RECIPIENT = … }

game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4899 (52 lines). Parameters: $OWNER$, $RECIPIENT$.

create_artifact_tournament_favor_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4899 of its file. A call passes 2 parameters: OWNER and RECIPIENT. The game's script calls it in 2 places, among them …: Token of Favor (event tournament_events.1251) and A Fine Favor (event tournament_events.8000). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.

The comment above it in the file

Create favor given to favorite contestant, e.g. handkerchief

What it does

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

The script as written (52 lines of game script)
create_artifact_tournament_favor_effect = {
	# Get the character the artifact is being made for.
	$OWNER$ = {
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		save_scope_as = owner
	}
	$RECIPIENT$ = { save_scope_as = recipient }
	hidden_effect_new_object = {
		# Get artifact quality, wealth, and materials
		get_artifact_quality_effect = yes
		get_artifact_wealth_effect = yes
		scope:activity.activity_location = { add_to_list = artifact_material_sources }
		scope:recipient = {
			# Create the artifact
			create_artifact = {
				name = artifact_tournament_favor_name
				creator = scope:owner
				description = placeholder
				visuals = small_box
				type = tournament_favor
				modifier = artifact_monthly_prestige_add_1_modifier
				wealth = scope:wealth
				quality = scope:quality
				max_durability = 10
				save_scope_as = newly_created_artifact
				history = {
					type = given
					location = scope:activity.activity_location
					recipient = scope:recipient
				}
			}
		}
		scope:newly_created_artifact = {
			flag_as_trash_artifact = yes
			set_variable = {
				name = favor_giver
				value = scope:owner
			}
			get_artifact_feature_references_effect = yes
			set_artifact_description = artifact_tournament_favor_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
		}
	}
}

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_tournament_favor_effect.

Events (2)

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?