CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · All Under Heaven files

local_examination_grab_nr_of_family_entrants_effect

local_examination_grab_nr_of_family_entrants_effect = yes

game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 1950 (47 lines). No parameters.

local_examination_grab_nr_of_family_entrants_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1950 of its file. It takes no parameters: local_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.7002). 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 (47 lines of game script)
local_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_character_flag = passed_provincial_exam }
		root = {
			change_variable = {
				name = num_exam_family_entrants_passed
				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 = {
			NOT = { has_character_flag = passed_provincial_exam }
		}
		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 local_examination_grab_nr_of_family_entrants_effect.

Events (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.

Spotted a mistake on this page?