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

Scripted effect · Wards and Wardens files

grab_learning_char_relevant_to_child

grab_learning_char_relevant_to_child = { CHILD = … SCOPE_OUTPUT = … }

game/common/scripted_effects/03_bp2_scripted_effects.txt, line 106 (42 lines). Parameters: $CHILD$, $SCOPE_OUTPUT$.

grab_learning_char_relevant_to_child is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 106 of its file. A call passes 2 parameters: CHILD and SCOPE_OUTPUT. The game's script calls it in 2 places, among them In Their Footsteps (event bp2_yearly.2000) and In Their Footsteps (event bp2_yearly.2001). Patch 1.20.1.2, from game/common/scripted_effects/03_bp2_scripted_effects.txt.

The comment above it in the file

Grab learning character relevant to a given child

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (42 lines of game script)
grab_learning_char_relevant_to_child = {
	generate_characters_relevant_to_child_list = { CHILD = $CHILD$ }
	ordered_in_list = {
		list = relevant_characters_to_child_list
		order_by = {
			value = 0
			add = learning
			if = {
				limit = { has_court_position = court_physician_court_position }
				add = 20
			}
			if = {
				limit = { has_court_position = court_tutor_court_position }
				add = 20
			}
			if = {
				limit = { has_court_position = court_guru_court_position }
				add = 20
			}
			if = {
				limit = {
					exists = $CHILD$.liege_or_court_owner.cp:councillor_court_chaplain
					this = $CHILD$.liege_or_court_owner.cp:councillor_court_chaplain
				}
				add = 30
			}
			if = {
				limit = {
					$CHILD$ = { is_ruler = yes }
					exists = $CHILD$.cp:councillor_court_chaplain
					this = $CHILD$.cp:councillor_court_chaplain
				}
				add = 50
			}
			if = {
				limit = { is_close_or_extended_family_of = $CHILD$ }
				add = 15
			}
		}
		save_scope_as = $SCOPE_OUTPUT$
	}
}

As written in game/common/scripted_effects/03_bp2_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls grab_learning_char_relevant_to_child.

Events (2)

Source: game/common/scripted_effects/03_bp2_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?