Scripted effect · Tours and Tournaments files
tournament_clear_contest_variables_effect
tournament_clear_contest_variables_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 152 (93 lines). No parameters.
tournament_clear_contest_variables_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 152 of its file. It takes no parameters: tournament_clear_contest_variables_effect = yes. The game's script calls it in 5 places, among them tournament_clear_tournament_variables_effect (scripted effect), tournament_contest_race_winner_effect (scripted effect) and tournament_contest_team_winner_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
The comment above it in the file
Purge all tournament related variables
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (93 lines of game script)
tournament_clear_contest_variables_effect = {
if = {
limit = { exists = var:progress_to_victory }
remove_variable = progress_to_victory
}
if = {
limit = { exists = var:progress_to_victory_score }
remove_variable = progress_to_victory_score
}
if = {
limit = { exists = var:contest_aptitude }
remove_variable = contest_aptitude
}
if = {
limit = { exists = var:mysterious_stranger_origin }
remove_variable = mysterious_stranger_origin
}
if = {
limit = { has_character_flag = resigned_contest_flag }
remove_character_flag = resigned_contest_flag
}
if = {
limit = { has_character_flag = disqualified_contest_flag }
remove_character_flag = disqualified_contest_flag
}
if = {
limit = { has_character_flag = horse_race_mysterious_stranger }
remove_character_flag = horse_race_mysterious_stranger
}
if = {
limit = { has_character_flag = contest_horse_race_war_horse }
remove_character_flag = contest_horse_race_war_horse
}
remove_character_flag = success_pivotal_flag
remove_character_flag = neutral_pivotal_flag
remove_character_flag = failure_pivotal_flag
if = {
limit = { exists = var:contest_qualified_match_wrestling }
remove_variable = contest_qualified_match_wrestling
}
if = {
limit = { exists = var:contest_semi_finalist_match_wrestling }
remove_variable = contest_semi_finalist_match_wrestling
}
if = {
limit = { exists = var:contest_finalist_match_wrestling }
remove_variable = contest_finalist_match_wrestling
}
if = {
limit = { exists = var:contest_qualified_match_duel }
remove_variable = contest_qualified_match_duel
}
if = {
limit = { exists = var:contest_semi_finalist_match_duel }
remove_variable = contest_semi_finalist_match_duel
}
if = {
limit = { exists = var:contest_finalist_match_duel }
remove_variable = contest_finalist_match_duel
}
if = {
limit = { exists = var:contest_qualified_match_joust }
remove_variable = contest_qualified_match_joust
}
if = {
limit = { exists = var:contest_semi_finalist_match_joust }
remove_variable = contest_semi_finalist_match_joust
}
if = {
limit = { exists = var:contest_finalist_match_joust }
remove_variable = contest_finalist_match_joust
}
if = {
limit = { exists = var:contest_qualified_match_board_game }
remove_variable = contest_qualified_match_board_game
}
if = {
limit = { exists = var:contest_semi_finalist_match_board_game }
remove_variable = contest_semi_finalist_match_board_game
}
if = {
limit = { exists = var:contest_finalist_match_board_game }
remove_variable = contest_finalist_match_board_game
}
if = {
limit = { exists = var:last_versus_match }
remove_variable = last_versus_match
}
if = {
limit = { exists = var:next_versus_match }
remove_variable = next_versus_match
}
}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_clear_contest_variables_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.