﻿on_9th_birthday = {
	trigger = { age = 9 }

	events = {
		child_personality.4000 #Assigns a sexuality to the child
	}
}

on_13th_birthday = {
	trigger = { age = 13 }

	events = {
		witch.1001
	}
}

on_14th_birthday = {
	trigger = { age = 14 }

	events = {
		childhood_education.9103 #To make sure that every child gets a education
		child_personality.4011 #To make sure everyone gets a sexuality
		childhood.0900#victim transforms into opinion modifier on adulthood
		childhood.0910#bully transforms into opinion modifier on adulthood
		childhood.0998#crush transforms into opinion modifier on adulthood
		coming_of_age.0001#Learning
		coming_of_age.0002#Stewardship
		coming_of_age.0003#Martial
		coming_of_age.0004#Intrigue
		coming_of_age.0005#Diplomacy
		delay = { days = 2 }
		childhood_education.0005 #To remove education focus
		childhood_education.0006 #To remove stray guardians
		childhood_education.0007 #To remove childhood traits and make sure any education trait is applied
	}
}

#To check if character needs education boost or not
childhood_education_boost = {
	trigger = {
		NOT = { has_character_flag = natural_education_progression }
		NOT = { age = 14 } # Already fired in 'on_14th_birthday' on_action
		has_education_focus_trigger = yes
	}
	events = {
		childhood_education.9103 # Education catchup
	}
}
