Scripted effect · All Under Heaven files
palace_examination_scoreboard_setup_effect
palace_examination_scoreboard_setup_effect = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 1636 (53 lines). No parameters.
palace_examination_scoreboard_setup_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1636 of its file. It takes no parameters: palace_examination_scoreboard_setup_effect = yes. The game's script calls it in 1 place, among them Capital Examination (activity). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
What it does
- Otherwise › Every guest subset:
name = palace_entrants
- Every attending character:
- Where:
is_in_guest_subset = { name = palace_entrants }None of these
is_in_guest_subset = { name = scoreboard }- scope:activity › Any guest subset:
name = scoreboard
scope:activity:add_to_guest_subset = { name = scoreboard target = scope:temp_character }
- Where:
• 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 (53 lines of game script)
palace_examination_scoreboard_setup_effect = {
#Do we actually have 10 entrants for the scoreboard?
set_variable = {
name = scoreboard_size
value = 0
}
if = {
limit = {
any_guest_subset = {
name = palace_entrants
count >= 10
}
}
change_variable = {
name = scoreboard_size
add = 10
}
}
#Otherwise set the scoreboard size to the amount of entrants
else = {
every_guest_subset = {
name = palace_entrants
scope:activity = {
change_variable = {
name = scoreboard_size
add = 1
}
}
}
}
#Add the fresh entrants to the scoreboard
every_attending_character = {
limit = {
is_in_guest_subset = { name = palace_entrants }
NOR = {
is_in_guest_subset = { name = scoreboard }
scope:activity = {
any_guest_subset = {
name = scoreboard
count = scope:activity.var:scoreboard_size
}
}
}
}
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = scoreboard
target = scope:temp_character
}
}
}
}As written in game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls palace_examination_scoreboard_setup_effect.
Activities (1)
Source: game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.