Scripted effect · Roads to Power files
assign_charioteer_to_place_variable_effect
assign_charioteer_to_place_variable_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 6772 (151 lines). No parameters.
assign_charioteer_to_place_variable_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 6772 of its file. It takes no parameters: assign_charioteer_to_place_variable_effect = yes. The game's script calls it in 1 place, among them update_chariot_race_standings_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
Used in update_chariot_race_standings_effect to set variables on both the activity and the individual charioteers
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
assign_charioteer_to_place_variable_effect = {
scope:activity = {
switch = {
trigger = var:num_charioteers
1 = {
set_variable = {
name = first_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 1
}
}
}
2 = {
set_variable = {
name = second_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 2
}
}
}
3 = {
set_variable = {
name = third_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 3
}
}
}
4 = {
set_variable = {
name = fourth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 4
}
}
}
5 = {
set_variable = {
name = fifth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 5
}
}
}
6 = {
set_variable = {
name = sixth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 6
}
}
}
7 = {
set_variable = {
name = seventh_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 7
}
}
}
8 = {
set_variable = {
name = eighth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 8
}
}
}
9 = {
set_variable = {
name = ninth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_race
value = 9
}
}
}
10 = {
set_variable = {
name = tenth_place
value = scope:current_charioteer
}
scope:current_charioteer = {
set_variable = {
name = current_place_in_raceAs written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 151 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 6772.
Where it is used
Every place in common/, events/ and history/ that calls assign_charioteer_to_place_variable_effect.
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.