Scripted effect · Tours and Tournaments files
create_artifact_pas_darmes_spurs_effect
create_artifact_pas_darmes_spurs_effect = { LOSER = … WINNER = … }game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4832 (65 lines). Parameters: $LOSER$, $WINNER$.
create_artifact_pas_darmes_spurs_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4832 of its file. A call passes 2 parameters: LOSER and WINNER. The game's script calls it in 2 places, among them A … Pride (event tournament_events.1141) and 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
Create spurs trophy taken from victory
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (65 lines of game script)
create_artifact_pas_darmes_spurs_effect = {
# Get the character the artifact is being made for.
$WINNER$ = {
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
save_scope_as = winner
}
$LOSER$ = { save_scope_as = owner }
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_spurs_name
creator = scope:owner
description = placeholder
visuals = small_box
type = pas_darmes_spurs
modifier = artifact_monthly_prestige_add_1_modifier
wealth = scope:wealth
quality = scope:quality
max_durability = 30
save_scope_as = newly_created_artifact
history = {
#type = pas_darmes_won
type = given
location = scope:location
actor = scope:owner
recipient = scope:winner
}
}
}
scope:newly_created_artifact = {
set_variable = {
name = token_owner
value = scope:owner
}
get_artifact_feature_references_effect = yes
set_artifact_description = artifact_pas_darmes_spurs_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
add_scaled_artifact_modifier_combat_effect = yes
set_variable = {
name = quality
value = scope:quality
}
set_variable = {
name = wealth
value = scope:wealth
}
}
}
}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_spurs_effect.
Events (2)
- A … Pride
tournament_events.1141 - tournament_events.1110
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.