Scripted effect · All Under Heaven files
local_examination_gather_entrants_effect
local_examination_gather_entrants_effect = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 1382 (67 lines). No parameters.
local_examination_gather_entrants_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1382 of its file. It takes no parameters: local_examination_gather_entrants_effect = yes. The game's script calls it in 1 place, among them Local Examination (activity). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
What it does
scope:activity:- Every attending character:
- Only some of them (the filter is in the script below)
scope:activity:add_to_guest_subset = { name = entrants target = scope:temp_character }
- If played by the AI:
set_activity_intent = local_exam_taker_intent
- Every guest subset:
name = entrants
- Every attending character:
• 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 (67 lines of game script)
local_examination_gather_entrants_effect = {
scope:activity = {
set_variable = {
name = num_initial_entrants
value = 0
}
every_attending_character = {
limit = {
is_landed = no
tgp_gender_can_be_exam_entrant_trigger = yes
trigger_if = {
limit = {
exists = primary_title
}
primary_title = {
is_mercenary_company = no
is_holy_order = no
}
}
NOR = {
this = scope:host
is_in_guest_subset = { name = imperial_examiners }
# You have passed the any of the higher level exams
has_character_flag = passed_metropolitan_exam
# You have already passed the Provincial
has_character_flag = passed_provincial_exam
has_trait = devoted
has_trait = eunuch
}
is_adult = yes
}
save_temporary_scope_as = temp_character
scope:activity = {
add_to_guest_subset = {
name = entrants
target = scope:temp_character
}
}
set_variable = {
name = imperial_examination_score
value = imperial_examination_score_value
}
if = {
limit = {
is_ai = yes
}
set_activity_intent = local_exam_taker_intent
}
}
#Run seperately to make sure we include characters added to the entrants subset through edge cases.
every_guest_subset = {
name = entrants
scope:activity = {
change_variable = {
name = num_initial_entrants
add = 1
}
}
}
#Set the base amount of failees we expect during the entire activity
set_variable = {
name = failee_quota
value = imperial_examination_failee_quota_value
}
if = { limit = { exists = var:failee_quota } }
}
}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 local_examination_gather_entrants_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.