Scripted effect · Tours and Tournaments files
tournament_contest_update_team_ptv_effect
tournament_contest_update_team_ptv_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 634 (58 lines). No parameters.
tournament_contest_update_team_ptv_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 634 of its file. It takes no parameters: tournament_contest_update_team_ptv_effect = yes. The game's script calls it in 3 places, among them activity_tournament_change_contestant_score_effect (scripted effect), tournament_contest_team_composition_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
Set team ptv variables, which pool all team member's aptitude and score
What it does
- Every guest subset current phase:
name = team_alpha
- Every guest subset current phase:
name = team_beta
• 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 (58 lines of game script)
tournament_contest_update_team_ptv_effect = {
set_variable = {
name = team_a_ptv
value = {
value = 25
every_guest_subset_current_phase = {
name = team_alpha
limit = { exists = var:contest_aptitude }
add = {
value = var:contest_aptitude
divide = 10
}
if = {
limit = { exists = var:progress_to_victory_score }
add = {
value = var:progress_to_victory_score
divide = 10
}
}
}
}
}
set_variable = {
name = team_b_ptv
value = {
value = 25
every_guest_subset_current_phase = {
name = team_beta
limit = { exists = var:contest_aptitude }
add = {
value = var:contest_aptitude
divide = 10
}
if = {
limit = { exists = var:progress_to_victory_score }
add = {
value = var:progress_to_victory_score
divide = 10
}
}
}
}
}
every_guest_subset_current_phase = {
name = team_alpha
set_variable = {
name = progress_to_victory
value = scope:activity.var:team_a_ptv
}
}
every_guest_subset_current_phase = {
name = team_beta
set_variable = {
name = progress_to_victory
value = scope:activity.var:team_b_ptv
}
}
}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_update_team_ptv_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.