Scripted effect · Tours and Tournaments files
tournament_clear_tournament_variables_effect
tournament_clear_tournament_variables_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 261 (40 lines). No parameters.
tournament_clear_tournament_variables_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 261 of its file. It takes no parameters: tournament_clear_tournament_variables_effect = yes. The game's script calls it in 1 place, among them Grand Tournament (activity). 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
tournament_clear_contest_variables_effect = yes- If has the Modifier: Melee Protector: Loses “Melee Protector”
• 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 (40 lines of game script)
tournament_clear_tournament_variables_effect = {
tournament_clear_contest_variables_effect = yes
if = {
limit = { exists = var:contest_versus_progress }
remove_variable = contest_versus_progress
}
if = {
limit = { exists = var:tournament_marriage_prize }
remove_variable = tournament_marriage_prize
}
if = {
limit = { has_character_flag = arrived_at_tournament_flag }
remove_character_flag = arrived_at_tournament_flag
}
if = {
limit = { has_character_modifier = tournament_melee_protector_modifier }
remove_character_modifier = tournament_melee_protector_modifier
}
if = {
limit = { has_character_flag = knows_mulan_flag }
remove_character_flag = knows_mulan_flag
}
if = {
limit = { has_character_flag = cloak_duelist_flag }
remove_character_flag = cloak_duelist_flag
}
if = {
limit = { exists = var:contest_horse_race_name }
remove_variable = contest_horse_race_name
}
if = {
limit = { exists = var:contest_horse_race_gender }
remove_variable = contest_horse_race_gender
}
if = {
limit = { exists = var:horse_race_jockey }
remove_variable = horse_race_jockey
}
clear_variable_list = tournament_favor_offers
}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_tournament_variables_effect.
Activities (1)
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.