Scripted effect · Tours and Tournaments files
tournament_contest_rewards_effect
tournament_contest_rewards_effect = { CONTEST = … }game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4502 (87 lines). Parameters: $CONTEST$.
tournament_contest_rewards_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4502 of its file. A call passes 1 parameter: CONTEST. The game's script calls it in 4 places, among them tournament_contest_race_winner_effect (scripted effect), tournament_contest_turn_winner_effect (scripted effect) and tournament_contest_versus_winner_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
What it does
scope:activity:- One random guest subset:
name = winnerphase = tournament_phase_$CONTEST$- scope:activity › Activity log entry › scope:contest_winner:
tournament_winner_prestige_rewards_effect = yestournament_winner_gold_rewards_effect = yestournament_give_trait_effect = { CONTEST = $CONTEST$ }- Gains the modifier “tournament $CONTEST$ winner modifier” for 5 years
create_character_memory = { … }- One memory, picked in order:
memory_type = tournament_won_contest_memory
- … will receive a Prize when the Grand Tournament concludes
- One random guest subset:
name = second_placephase = tournament_phase_$CONTEST$tournament_second_prestige_rewards_effect = yestournament_second_gold_rewards_effect = yestournament_give_trait_effect = { CONTEST = $CONTEST$ }- Gains the modifier “tournament $CONTEST$ participant modifier” for 5 years
- One random guest subset:
name = third_placephase = tournament_phase_$CONTEST$tournament_third_prestige_rewards_effect = yestournament_third_gold_rewards_effect = yestournament_give_trait_effect = { CONTEST = $CONTEST$ }- Gains the modifier “tournament $CONTEST$ participant modifier” for 5 years
- All Qualifying Contestants:
name = qualifiedphase = tournament_phase_$CONTEST$tournament_give_trait_effect = { CONTEST = $CONTEST$ }- Gains the modifier “tournament $CONTEST$ participant modifier” for 5 years
- One random guest subset:
• 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 (87 lines of game script)
tournament_contest_rewards_effect = {
scope:activity = {
random_guest_subset = {
name = winner
phase = tournament_phase_$CONTEST$
save_scope_as = contest_winner
add_to_list = awarded_contestants
scope:activity = {
add_activity_log_entry = {
key = tournament_$CONTEST$_winner_log
tags = { winner contest }
score = 80
show_in_conclusion = yes
character = scope:contest_winner
# EFFECT
scope:contest_winner ?= {
# Prestige
tournament_winner_prestige_rewards_effect = yes
# Gold
tournament_winner_gold_rewards_effect = yes
# Trait
tournament_give_trait_effect = { CONTEST = $CONTEST$ }
# Modifier
add_character_modifier = { modifier = tournament_$CONTEST$_winner_modifier years = 5 }
}
}
}
#Memory
create_character_memory = {
type = tournament_won_contest_memory
participants = {
contestant = this
host = scope:host
}
}
ordered_memory = {
memory_type = tournament_won_contest_memory
order_by = memory_creation_date
set_variable = {
name = contest_type
value = flag:tournament_phase_$CONTEST$
}
}
add_to_list = awarded_contestants
custom_tooltip = contest_winner_ceremony_tt
}
# Second Place
random_guest_subset = {
name = second_place
phase = tournament_phase_$CONTEST$
# Prestige
tournament_second_prestige_rewards_effect = yes
# Gold
tournament_second_gold_rewards_effect = yes
# Trait
tournament_give_trait_effect = { CONTEST = $CONTEST$ }
add_character_modifier = { modifier = tournament_$CONTEST$_participant_modifier years = 5 }
add_to_list = awarded_contestants
}
# Third place
random_guest_subset = {
name = third_place
phase = tournament_phase_$CONTEST$
# Prestige
tournament_third_prestige_rewards_effect = yes
# Gold
tournament_third_gold_rewards_effect = yes
# Trait
tournament_give_trait_effect = { CONTEST = $CONTEST$ }
add_character_modifier = { modifier = tournament_$CONTEST$_participant_modifier years = 5 }
add_to_list = awarded_contestants
}
# Other competitors
every_guest_subset = {
name = qualified
phase = tournament_phase_$CONTEST$
custom = contest_individual_losers_tt
limit = {
NOT = { is_in_list = awarded_contestants }
}
tournament_give_trait_effect = { CONTEST = $CONTEST$ }
add_character_modifier = { modifier = tournament_$CONTEST$_participant_modifier years = 5 }
}
}
}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 tournament_contest_rewards_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.