Scripted effect · Tours and Tournaments files
generate_tournament_trinket_effect
generate_tournament_trinket_effect = { TRINKET_GIVER = … TRINKET_RECEIVER = … }game/common/scripted_effects/02_ep2_artifact_effects.txt, line 82 (79 lines). Parameters: $TRINKET_GIVER$, $TRINKET_RECEIVER$.
generate_tournament_trinket_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 82 of its file. A call passes 2 parameters: TRINKET_GIVER and TRINKET_RECEIVER. The game's script calls it in 1 place, among them Tailor: A New Purchase (event ep2_locale_events.2560). Patch 1.20.1.2, from game/common/scripted_effects/02_ep2_artifact_effects.txt.
What it does
- 1 of 5 things will happen:
• 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 (79 lines of game script)
generate_tournament_trinket_effect = {
$TRINKET_RECEIVER$ = { save_scope_as = trinket_receiver }
$TRINKET_GIVER$ = { save_scope_as = trinket_giver }
random_list = {
50 = { # feather
create_artifact = {
name = feather_trinket
description = feather_trinket.desc
type = miscellaneous
visuals = bird_feather
modifier = artifact_courtly_vassal_opinion_3_modifier
modifier = artifact_attraction_opinion_2_modifier
save_scope_as = purchasable_trinket
wealth = 20
quality = 20
max_durability = 30
generate_history = no
}
}
50 = { # chess piece
create_artifact = {
name = chess_trinket
description = chess_trinket.desc
type = miscellaneous
visuals = pocket_figurine
modifier = artifact_monthly_dynasty_prestige_2_modifier
save_scope_as = purchasable_trinket
wealth = 25
quality = 25
max_durability = 30
generate_history = no
}
}
50 = { # ribbon
create_artifact = {
name = ribbon_trinket
description = ribbon_trinket.desc
type = miscellaneous
visuals = pocket_fancy_case
modifier = artifact_monthly_prestige_2_modifier
modifier = artifact_seduce_scheme_phase_duration_mult_1_modifier
save_scope_as = purchasable_trinket
wealth = 30
quality = 30
max_durability = 30
generate_history = no
}
}
50 = { # glass orb
create_artifact = {
name = glass_orb_trinket
description = glass_orb_trinket.desc
type = miscellaneous
visuals = flask
modifier = artifact_monthly_piety_2_modifier
save_scope_as = purchasable_trinket
wealth = 35
quality = 35
max_durability = 30
generate_history = no
}
}
50 = { # tapestry
create_artifact = {
name = tapestry_trinket
description = tapestry_trinket.desc
type = miscellaneous
visuals = tapestry
modifier = artifact_fertility_gain_2_modifier
save_scope_as = purchasable_trinket
wealth = 40
quality = 40
max_durability = 30
generate_history = no
}
}
}
}As written in game/common/scripted_effects/02_ep2_artifact_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls generate_tournament_trinket_effect.
Events (1)
- Tailor: A New Purchase
ep2_locale_events.2560
Source: game/common/scripted_effects/02_ep2_artifact_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.