Scripted effect · Roads to Power files
gather_charioteers_effect
gather_charioteers_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 4176 (125 lines). No parameters.
gather_charioteers_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 4176 of its file. It takes no parameters: gather_charioteers_effect = yes. The game's script calls it in 1 place, among them Chariot Race (activity). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
scope:activity:- 1 of 2 things will happen:
- 50%: Nothing else happens
- 50%: Nothing else happens
- 1 of 2 things will happen:
- 50%: Nothing else happens
- 50%: Nothing else happens
- 1 of 2 things will happen:
- 50%: Nothing else happens
- 50%: Nothing else happens
- 1 of 2 things will happen:
- 50%: Nothing else happens
- 50%: Nothing else happens
- One attending character, picked in order:
If
One of these
has_court_position = charioteer_court_positionor
If
available_charioteers_spots_trigger = { TEAM = green }
Then
- Has the Trait: Charioteer of the Prasinoi
or
or
or
Then
scope:activity:add_to_guest_subset = { name = charioteers target = scope:temp_character }
chariot_racers_setup_effect = { TEAM = green }chariot_racers_setup_effect = { TEAM = blue }chariot_racers_setup_effect = { TEAM = red }chariot_racers_setup_effect = { TEAM = white }- Every attending character:
- Where:
NOT = { is_in_guest_subset = { name = charioteers } }
scope:activity:add_to_guest_subset = { name = spectators target = scope:temp_character }
- Where:
- 1 of 2 things will happen:
• 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)
gather_charioteers_effect = {
scope:activity = {
random_list = {
50 = {
set_variable = {
name = num_blues
value = 2
}
}
50 = {
set_variable = {
name = num_blues
value = 3
}
}
}
random_list = {
50 = {
set_variable = {
name = num_greens
value = 2
}
}
50 = {
set_variable = {
name = num_greens
value = 3
}
}
}
random_list = {
50 = {
set_variable = {
name = num_whites
value = 2
}
}
50 = {
set_variable = {
name = num_whites
value = 3
}
}
}
random_list = {
50 = {
set_variable = {
name = num_reds
value = 2
}
}
50 = {
set_variable = {
name = num_reds
value = 3
}
}
}
ordered_attending_character = {
order_by = chariot_ordering_value
max = 12
check_range_bounds = no
save_temporary_scope_as = temp_character
if = {
limit = {
OR = {
has_court_position = charioteer_court_position
trigger_if = {
limit = {
available_charioteers_spots_trigger = { TEAM = green }
}
has_trait = charioteer_green
}
trigger_if = {
limit = {
available_charioteers_spots_trigger = { TEAM = blue }
}
has_trait = charioteer_blue
}
trigger_if = {
limit = {
available_charioteers_spots_trigger = { TEAM = red }
}
has_trait = charioteer_red
}
trigger_if = {
limit = {
available_charioteers_spots_trigger = { TEAM = white }
}
has_trait = charioteer_white
}
}
}
scope:activity = {
add_to_guest_subset = {
name = charioteers
target = scope:temp_character
}
}
}
}
# Finalize the list of charioteers
chariot_racers_setup_effect = { TEAM = green }
chariot_racers_setup_effect = { TEAM = blue }
chariot_racers_setup_effect = { TEAM = red }
chariot_racers_setup_effect = { TEAM = white }
# And filter everyone remaining to spectators.
every_attending_character = {
limit = {
NOT = {
is_in_guest_subset = { name = charioteers }
}
}
save_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = spectators
target = scope:temp_characterAs written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 125 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 4176.
Where it is used
Every place in common/, events/ and history/ that calls gather_charioteers_effect.
Activities (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.