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

Scripted effect

save_childhood_trait_as_variable_effect

save_childhood_trait_as_variable_effect = yes

game/common/scripted_effects/00_education_effects.txt, line 1304 (37 lines). No parameters.

save_childhood_trait_as_variable_effect is a scripted effect in Crusader Kings III, written at line 1304 of its file. It takes no parameters: save_childhood_trait_as_variable_effect = yes. The game's script calls it in 5 places, among them Coming of Age (event coming_of_age.0001), Coming of Age (event coming_of_age.0002) and Coming of Age (event coming_of_age.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.

The comment above it in the file

Save childhood trait as a variable flag

What it does

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

The script as written (37 lines of game script)
save_childhood_trait_as_variable_effect = {
	if = {
		limit = { has_trait = rowdy }
		set_variable = {
			name = childhood_trait_type
			value = flag:rowdy
		}
	}
	else_if = {
		limit = { has_trait = curious }
		set_variable = {
			name = childhood_trait_type
			value = flag:curious
		}
	}
	else_if = {
		limit = { has_trait = bossy }
		set_variable = {
			name = childhood_trait_type
			value = flag:bossy
		}
	}
	else_if = {
		limit = { has_trait = charming }
		set_variable = {
			name = childhood_trait_type
			value = flag:charming
		}
	}
	else_if = {
		limit = { has_trait = pensive }
		set_variable = {
			name = childhood_trait_type
			value = flag:pensive
		}
	}
}

As written in game/common/scripted_effects/00_education_effects.txt.

Where it is used

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

Events (5)

Source: game/common/scripted_effects/00_education_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?