Scripted effect · Tours and Tournaments files
tournament_contest_team_rewards_effect
tournament_contest_team_rewards_effect = { CONTEST = … }game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4692 (63 lines). Parameters: $CONTEST$.
tournament_contest_team_rewards_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4692 of its file. A call passes 1 parameter: CONTEST. The game's script calls it in 2 places, among them tournament_contest_team_winner_effect (scripted effect) and tournament_display_rewards_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:- Contestants on the winning team:
name = winnerphase = tournament_phase_$CONTEST$tournament_team_winner_prestige_rewards_effect = yestournament_team_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
- One random guest subset:
- Where:
scope:activity.var:melee_winner ?= this
name = winnerphase = tournament_phase_$CONTEST$- … will receive a Prize when the Grand Tournament concludes
- Where:
- Contestants on the losing team:
name = second_placephase = tournament_phase_$CONTEST$tournament_team_loser_prestige_rewards_effect = yestournament_give_trait_effect = { CONTEST = $CONTEST$ }- Gains the modifier “tournament $CONTEST$ participant modifier” for 5 years
- Contestants on the winning team:
• 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 (63 lines of game script)
tournament_contest_team_rewards_effect = {
scope:activity = {
every_guest_subset = {
name = winner
phase = tournament_phase_$CONTEST$
custom = contest_team_winners_tt
# Prestige
tournament_team_winner_prestige_rewards_effect = yes
# Gold
tournament_team_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 = contest_winners
}
random_guest_subset = {
name = winner
phase = tournament_phase_$CONTEST$
limit = {
scope:activity.var:melee_winner ?= this
is_alive = yes
}
alternative_limit = { is_alive = yes }
weight = {
base = 1
tournament_team_captain_modifier = yes
}
save_scope_as = contest_winner
custom_tooltip = contest_winner_ceremony_tt
}
# Losers
every_guest_subset = {
name = second_place
phase = tournament_phase_$CONTEST$
custom = contest_team_losers_tt
# Prestige
tournament_team_loser_prestige_rewards_effect = yes
# Trait
tournament_give_trait_effect = { CONTEST = $CONTEST$ }
# Modifier
add_character_modifier = { modifier = tournament_$CONTEST$_participant_modifier years = 5 }
add_to_list = contest_losers
}
}
}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_team_rewards_effect.
Scripted effects (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.