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_martial_char_relevant_to_child

grab_martial_char_relevant_to_child = { CHILD = … SCOPE_OUTPUT = … }

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

grab_martial_char_relevant_to_child is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 69 of its file. A call passes 2 parameters: CHILD and SCOPE_OUTPUT. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_effects/03_bp2_scripted_effects.txt.

The comment above it in the file

Grab martial 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 (35 lines of game script)
grab_martial_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 = martial
			if = {
				limit = { is_knight = yes }
				add = 25
			}
			if = {
				limit = { has_court_position = bodyguard_court_position }
				add = 20
			}
			if = {
				limit = { has_court_position = akolouthos_court_position }
				add = 20
			}
			if = {
				limit = { has_court_position = master_of_hunt_court_position }
				add = 10
			}
			if = {
				limit = { this = $CHILD$.liege_or_court_owner.cp:councillor_marshal }
				add = 30
			}
			if = {
				limit = { is_close_or_extended_family_of = $CHILD$ }
				add = 10
			}
		}
		save_scope_as = $SCOPE_OUTPUT$
	}
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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?