Scripted effect · Roads to Power files
update_chariot_race_standings_effect
update_chariot_race_standings_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 6616 (154 lines). No parameters.
update_chariot_race_standings_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 6616 of its file. It takes no parameters: update_chariot_race_standings_effect = yes. The game's script calls it in 6 places, among them Chariot Race (activity), apa_celebrating_unexpected_overtake (activity pulse) and apa_thunderous_applause (activity pulse). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
Use this effect to update the current standings of the race based on each charioteer's victory score
What it does
scope:activity:clear_placement_variables_effect = yes- One guest subset, picked in order:
name = charioteersassign_charioteer_to_place_variable_effect = yes
• 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 (120 lines of game script)
update_chariot_race_standings_effect = {
scope:activity = {
# Ensure we have dead characters saved for the gui
if = {
limit = {
has_variable = first_place
var:first_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:first_place
}
}
else_if = {
limit = {
has_variable = second_place
var:second_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:second_place
}
}
else_if = {
limit = {
has_variable = third_place
var:third_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:third_place
}
}
else_if = {
limit = {
has_variable = fourth_place
var:fourth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:fourth_place
}
}
else_if = {
limit = {
has_variable = fifth_place
var:fifth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:fifth_place
}
}
else_if = {
limit = {
has_variable = sixth_place
var:sixth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:sixth_place
}
}
else_if = {
limit = {
has_variable = seventh_place
var:seventh_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:seventh_place
}
}
else_if = {
limit = {
has_variable = eighth_place
var:eighth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:eighth_place
}
}
else_if = {
limit = {
has_variable = ninth_place
var:ninth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:ninth_place
}
}
else_if = {
limit = {
has_variable = tenth_place
var:tenth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:tenth_place
}
}
else_if = {
limit = {
has_variable = eleventh_place
var:eleventh_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteers
target = var:eleventh_place
}
}
else_if = {
limit = {
has_variable = twelfth_place
var:twelfth_place = { is_alive = no }
}
add_to_variable_list = {
name = dead_charioteersAs written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 154 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 6616.
Where it is used
Every place in common/, events/ and history/ that calls update_chariot_race_standings_effect.
Activities (1)
Activity pulse actions (2)
- apa_celebrating_unexpected_overtake
- apa_thunderous_applause
Events (1)
- A Treacherous Tangle
chariot_race.3040
On actions (the game's own hooks) (1)
- chariot_race_on_action
Scripted effects (1)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.