Scripted effect · Tours and Tournaments files
tournament_display_rewards_effect
tournament_display_rewards_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 6679 (31 lines). No parameters.
tournament_display_rewards_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 6679 of its file. It takes no parameters: tournament_display_rewards_effect = yes. The game's script calls it in 4 places, among them Archery: Contest Winner (event contest_events.0705), Board Game: Contest Winner (event contest_events.0805) and Horse Race: Contest Winner (event contest_events.0505). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
The comment above it in the file
Tournament reward tooltips
What it does
- Depending on contest complete:
- When contest complete is Joust:
tournament_contest_rewards_effect = { CONTEST = joust }
- When contest complete is wrestling:
tournament_contest_rewards_effect = { CONTEST = wrestling }
- When contest complete is duel:
tournament_contest_rewards_effect = { CONTEST = duel }
- When contest complete is board game:
tournament_contest_rewards_effect = { CONTEST = board_game }
- When contest complete is melee:
tournament_contest_team_rewards_effect = { CONTEST = melee }
- When contest complete is horse race:
tournament_contest_rewards_effect = { CONTEST = horse_race }
- When contest complete is archery:
tournament_contest_rewards_effect = { CONTEST = archery }
- When contest complete is recital:
tournament_contest_rewards_effect = { CONTEST = recital }
- When contest complete is Joust:
• 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 (31 lines of game script)
tournament_display_rewards_effect = {
show_as_tooltip = {
switch = {
trigger = scope:contest_complete
flag:joust = {
tournament_contest_rewards_effect = { CONTEST = joust }
}
flag:wrestling = {
tournament_contest_rewards_effect = { CONTEST = wrestling }
}
flag:duel = {
tournament_contest_rewards_effect = { CONTEST = duel }
}
flag:board_game = {
tournament_contest_rewards_effect = { CONTEST = board_game }
}
flag:melee = {
tournament_contest_team_rewards_effect = { CONTEST = melee }
}
flag:horse_race = {
tournament_contest_rewards_effect = { CONTEST = horse_race }
}
flag:archery = {
tournament_contest_rewards_effect = { CONTEST = archery }
}
flag:recital = {
tournament_contest_rewards_effect = { CONTEST = recital }
}
}
}
}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_display_rewards_effect.
Events (4)
- Archery: Contest Winner
contest_events.0705 - Board Game: Contest Winner
contest_events.0805 - Horse Race: Contest Winner
contest_events.0505 - Melee: Contest Winners
contest_events.0605
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.