Scripted effect · All Under Heaven files
imperial_examination_grab_nr_of_family_entrants_effect
imperial_examination_grab_nr_of_family_entrants_effect = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 1864 (85 lines). No parameters.
imperial_examination_grab_nr_of_family_entrants_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1864 of its file. It takes no parameters: imperial_examination_grab_nr_of_family_entrants_effect = yes. The game's script calls it in 1 place, among them Releasing the Roll (event imperial_examination.7003). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (85 lines of game script)
imperial_examination_grab_nr_of_family_entrants_effect = {
set_variable = {
name = num_exam_family_entrants
value = 0
}
every_in_list = {
list = parent_relevant_entrants
root = {
change_variable = {
name = num_exam_family_entrants
add = 1
}
}
}
# Then measure how many characters did pass the exam
set_variable = {
name = num_exam_family_entrants_passed
value = 0
}
every_in_list = {
list = parent_relevant_entrants
limit = {
has_variable = {
name = passed_palace_exam
name = passed_metropolitan_exam
}
}
root = {
change_variable = {
name = num_exam_family_entrants_passed
add = 1
}
}
}
# More specifically, how many passed the Metropolitan exam
set_variable = {
name = num_exam_family_passed_metropolitan
value = 0
}
every_in_list = {
list = parent_relevant_entrants
limit = {
has_character_flag = passed_metropolitan_exam
NOT = { has_character_flag = passed_palace_exam }
}
root = {
change_variable = {
name = num_exam_family_passed_metropolitan
add = 1
}
}
}
# And how many made it to the Palace exam
set_variable = {
name = num_exam_family_passed_palace
value = 0
}
every_in_list = {
list = parent_relevant_entrants
limit = {
has_character_flag = passed_palace_exam
}
root = {
change_variable = {
name = num_exam_family_passed_palace
add = 1
}
}
}
# Finally, how many did bitterly disappoint...
set_variable = {
name = num_exam_family_entrants_failed
value = 0
}
every_in_list = {
list = parent_relevant_entrants
limit = { has_character_flag = failed_imperial_examination }
root = {
change_variable = {
name = num_exam_family_entrants_failed
add = 1
}
}
}
}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 imperial_examination_grab_nr_of_family_entrants_effect.
Events (1)
- Releasing the Roll
imperial_examination.7003
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.